|
@@ -39,6 +39,7 @@ import { filterTimes } from '@/utils/dateUtil'
|
|
|
import deepClone from '@/utils/deep.clone'
|
|
|
import { getOwnerName } from '@views/music-library/musicUtil'
|
|
|
import UpdateMusic from '@views/music-library/project-music-sheet/module/gyt/updateMusic'
|
|
|
+import MusicPreView from "@views/music-library/music-sheet/modal/musicPreView";
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'project-music-sheet-gyt',
|
|
@@ -87,7 +88,9 @@ export default defineComponent({
|
|
|
userIdDisable: true,
|
|
|
userIdData: [] as any,
|
|
|
updateRow: {} as any, // 修改选择的行
|
|
|
- applicationId: null //应用ID
|
|
|
+ applicationId: null, //应用ID
|
|
|
+ musicPreview: false,
|
|
|
+ musicScore: null as any,
|
|
|
})
|
|
|
|
|
|
onMounted(async () => {
|
|
@@ -233,7 +236,7 @@ export default defineComponent({
|
|
|
<NDescriptionsItem label="曲目名称">
|
|
|
<TheTooltip content={row.name} />{' '}
|
|
|
</NDescriptionsItem>
|
|
|
- <NDescriptionsItem label="曲目编号">{row.id}</NDescriptionsItem>
|
|
|
+ <NDescriptionsItem label="曲目编号"><TheTooltip content={row.id} />{' '}</NDescriptionsItem>
|
|
|
</NDescriptions>
|
|
|
</>
|
|
|
)
|
|
@@ -248,7 +251,7 @@ export default defineComponent({
|
|
|
{getMapValueByKey(row.sourceType, new Map(Object.entries(musicSheetSourceType)))}
|
|
|
</NDescriptionsItem>
|
|
|
<NDescriptionsItem label="所属人">
|
|
|
- {getOwnerName(row.musicSheetExtend, row.sourceType)}
|
|
|
+ <TheTooltip content={getOwnerName(row.musicSheetExtend, row.sourceType)}/>
|
|
|
</NDescriptionsItem>
|
|
|
</NDescriptions>
|
|
|
</>
|
|
@@ -285,7 +288,10 @@ export default defineComponent({
|
|
|
},
|
|
|
{
|
|
|
title: '可用声部',
|
|
|
- key: 'subjectNames'
|
|
|
+ key: 'subjectNames',
|
|
|
+ render: (row: any) => {
|
|
|
+ return <TheTooltip content={row.subjectNames}/>
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
title: '曲目分类',
|
|
@@ -298,17 +304,17 @@ export default defineComponent({
|
|
|
// return <div>{getMapValueByKey(row.availableType, new Map(Object.entries(musicSheetAvailableType)))}</div>
|
|
|
// }
|
|
|
// },
|
|
|
- {
|
|
|
- title: '收费方式',
|
|
|
- key: 'paymentType',
|
|
|
- render: (row: any) => {
|
|
|
- return (
|
|
|
- <div>
|
|
|
- {getMapValueByKey(row.paymentType, new Map(Object.entries(musicSheetPaymentType)))}
|
|
|
- </div>
|
|
|
- )
|
|
|
- }
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // title: '收费方式',
|
|
|
+ // key: 'paymentType',
|
|
|
+ // render: (row: any) => {
|
|
|
+ // return (
|
|
|
+ // <div>
|
|
|
+ // {getMapValueByKey(row.paymentType, new Map(Object.entries(musicSheetPaymentType)))}
|
|
|
+ // </div>
|
|
|
+ // )
|
|
|
+ // }
|
|
|
+ // },
|
|
|
{
|
|
|
title: '上传人',
|
|
|
minWidth: '150px',
|
|
@@ -339,6 +345,17 @@ export default defineComponent({
|
|
|
return (
|
|
|
<NSpace>
|
|
|
<NButton
|
|
|
+ type="primary"
|
|
|
+ size="small"
|
|
|
+ text
|
|
|
+ onClick={() => {
|
|
|
+ state.musicPreview = true
|
|
|
+ state.musicScore = row
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ 预览
|
|
|
+ </NButton>
|
|
|
+ <NButton
|
|
|
type="primary"
|
|
|
size="small"
|
|
|
text
|
|
@@ -351,7 +368,7 @@ export default defineComponent({
|
|
|
type="primary"
|
|
|
size="small"
|
|
|
text
|
|
|
- v-auth=" musicSheetApplicationExtend/update1751235625503162370"
|
|
|
+ v-auth="musicSheetApplicationExtend/update1751235625503162370"
|
|
|
onClick={() => {
|
|
|
state.showEditDialog = true
|
|
|
state.updateRow = row
|
|
@@ -470,14 +487,14 @@ export default defineComponent({
|
|
|
{/* >*/}
|
|
|
{/* </NSelect>*/}
|
|
|
{/*</NFormItem>*/}
|
|
|
- <NFormItem label="收费方式" path="paymentType">
|
|
|
- <NSelect
|
|
|
- placeholder="请选择收费方式"
|
|
|
- v-model:value={state.searchForm.paymentType}
|
|
|
- options={getSelectDataFromObj(musicSheetPaymentType)}
|
|
|
- clearable
|
|
|
- ></NSelect>
|
|
|
- </NFormItem>
|
|
|
+ {/*<NFormItem label="收费方式" path="paymentType">*/}
|
|
|
+ {/* <NSelect*/}
|
|
|
+ {/* placeholder="请选择收费方式"*/}
|
|
|
+ {/* v-model:value={state.searchForm.paymentType}*/}
|
|
|
+ {/* options={getSelectDataFromObj(musicSheetPaymentType)}*/}
|
|
|
+ {/* clearable*/}
|
|
|
+ {/* ></NSelect>*/}
|
|
|
+ {/*</NFormItem>*/}
|
|
|
<NFormItem label="状态" path="status">
|
|
|
<NSelect
|
|
|
v-model:value={state.searchForm.status}
|
|
@@ -605,6 +622,16 @@ export default defineComponent({
|
|
|
musicSheetCategories={state.musicSheetCategories}
|
|
|
/>
|
|
|
</NModal>
|
|
|
+ <NModal
|
|
|
+ blockScroll={true}
|
|
|
+ v-model:show={state.musicPreview}
|
|
|
+ preset="dialog"
|
|
|
+ showIcon={false}
|
|
|
+ title={'曲目预览'}
|
|
|
+ style={{ width: 'auto' }}
|
|
|
+ >
|
|
|
+ <MusicPreView item={state.musicScore} />
|
|
|
+ </NModal>
|
|
|
</div>
|
|
|
)
|
|
|
}
|