|
@@ -24,13 +24,19 @@ import {
|
|
musicSheetAvailableType,
|
|
musicSheetAvailableType,
|
|
musicSheetPaymentType,
|
|
musicSheetPaymentType,
|
|
musicSheetSourceType,
|
|
musicSheetSourceType,
|
|
- musicSheetType, scoreType
|
|
|
|
|
|
+ musicSheetType,
|
|
|
|
+ scoreType
|
|
} from '@/utils/constant'
|
|
} from '@/utils/constant'
|
|
-import {musicSheetApplicationExtendSaveBatch, musicSheetApplicationExtendTagList, musicSheetApplicationOwnerList, musicSheetPage} from '@views/music-library/api'
|
|
|
|
|
|
+import {
|
|
|
|
+ musicSheetApplicationExtendSaveBatch,
|
|
|
|
+ musicSheetApplicationExtendTagList,
|
|
|
|
+ musicSheetApplicationOwnerList,
|
|
|
|
+ musicSheetPage
|
|
|
|
+} from '@views/music-library/api'
|
|
import deepClone from '@/utils/deep.clone'
|
|
import deepClone from '@/utils/deep.clone'
|
|
import { getOwnerName } from '@views/music-library/musicUtil'
|
|
import { getOwnerName } from '@views/music-library/musicUtil'
|
|
-import TheTooltip from "@components/TheTooltip";
|
|
|
|
-import {sysApplicationPage} from "@views/menu-manage/api";
|
|
|
|
|
|
+import TheTooltip from '@components/TheTooltip'
|
|
|
|
+import { sysApplicationPage } from '@views/menu-manage/api'
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
name: 'klx-addMusic',
|
|
name: 'klx-addMusic',
|
|
@@ -66,12 +72,12 @@ export default defineComponent({
|
|
},
|
|
},
|
|
searchForm: {
|
|
searchForm: {
|
|
keyword: null,
|
|
keyword: null,
|
|
- musicSheetType: null,
|
|
|
|
|
|
+ // musicSheetType: null,
|
|
subjectId: null,
|
|
subjectId: null,
|
|
sourceType: null,
|
|
sourceType: null,
|
|
- composer : null,
|
|
|
|
- userId : null,
|
|
|
|
- applicationId : null,
|
|
|
|
|
|
+ composer: null,
|
|
|
|
+ userId: null,
|
|
|
|
+ applicationId: null
|
|
},
|
|
},
|
|
subjectList: [] as any,
|
|
subjectList: [] as any,
|
|
showAdd: false,
|
|
showAdd: false,
|
|
@@ -92,13 +98,13 @@ export default defineComponent({
|
|
globalTopFlag: null as any, //是否置顶
|
|
globalTopFlag: null as any, //是否置顶
|
|
globalExquisiteFlag: null as any, //精品乐谱
|
|
globalExquisiteFlag: null as any, //精品乐谱
|
|
globalStartSortNum: null as any, // 排序起始值
|
|
globalStartSortNum: null as any, // 排序起始值
|
|
- isConvertibleScore: null as any,//是否支持转简谱
|
|
|
|
- scoreType: null as any,//默认谱面
|
|
|
|
|
|
+ isConvertibleScore: null as any, //是否支持转简谱
|
|
|
|
+ scoreType: null as any //默认谱面
|
|
})
|
|
})
|
|
|
|
|
|
onMounted(async () => {
|
|
onMounted(async () => {
|
|
state.searchForm.keyword = null
|
|
state.searchForm.keyword = null
|
|
- state.searchForm.musicSheetType = null
|
|
|
|
|
|
+ // state.searchForm.musicSheetType = null
|
|
state.searchForm.subjectId = null
|
|
state.searchForm.subjectId = null
|
|
state.searchForm.sourceType = null
|
|
state.searchForm.sourceType = null
|
|
state.searchForm.composer = null
|
|
state.searchForm.composer = null
|
|
@@ -111,7 +117,10 @@ export default defineComponent({
|
|
// 加载曲目标签
|
|
// 加载曲目标签
|
|
|
|
|
|
try {
|
|
try {
|
|
- const {data} = await musicSheetApplicationExtendTagList({applicationId: props.appId, enable: true})
|
|
|
|
|
|
+ const { data } = await musicSheetApplicationExtendTagList({
|
|
|
|
+ applicationId: props.appId,
|
|
|
|
+ enable: true
|
|
|
|
+ })
|
|
if (data && data.length > 0) {
|
|
if (data && data.length > 0) {
|
|
data.forEach((item: any) => {
|
|
data.forEach((item: any) => {
|
|
state.musicSheetTagList.push({
|
|
state.musicSheetTagList.push({
|
|
@@ -121,8 +130,7 @@ export default defineComponent({
|
|
})
|
|
})
|
|
})
|
|
})
|
|
}
|
|
}
|
|
- } catch (err) {
|
|
|
|
- }
|
|
|
|
|
|
+ } catch (err) {}
|
|
await initUseAppList()
|
|
await initUseAppList()
|
|
await getList()
|
|
await getList()
|
|
})
|
|
})
|
|
@@ -151,8 +159,14 @@ export default defineComponent({
|
|
state.loading = true
|
|
state.loading = true
|
|
const search = {
|
|
const search = {
|
|
...state.searchForm,
|
|
...state.searchForm,
|
|
- userId: (state.searchForm.sourceType && state.searchForm.sourceType == 'PERSON') ? state.searchForm.userId : null,
|
|
|
|
- organizationRoleId: (state.searchForm.sourceType && state.searchForm.sourceType == 'ORG') ? state.searchForm.userId : null,
|
|
|
|
|
|
+ userId:
|
|
|
|
+ state.searchForm.sourceType && state.searchForm.sourceType == 'PERSON'
|
|
|
|
+ ? state.searchForm.userId
|
|
|
|
+ : null,
|
|
|
|
+ organizationRoleId:
|
|
|
|
+ state.searchForm.sourceType && state.searchForm.sourceType == 'ORG'
|
|
|
|
+ ? state.searchForm.userId
|
|
|
|
+ : null
|
|
}
|
|
}
|
|
const { data } = await musicSheetPage({
|
|
const { data } = await musicSheetPage({
|
|
...state.pagination,
|
|
...state.pagination,
|
|
@@ -223,7 +237,7 @@ export default defineComponent({
|
|
if (!item.paymentType.includes('CHARGE')) {
|
|
if (!item.paymentType.includes('CHARGE')) {
|
|
item.musicPrice = 0
|
|
item.musicPrice = 0
|
|
} else {
|
|
} else {
|
|
- if (item.musicPrice === null || item.musicPrice === undefined || item.musicPrice==='') {
|
|
|
|
|
|
+ if (item.musicPrice === null || item.musicPrice === undefined || item.musicPrice === '') {
|
|
message.error('曲目价格不能为空')
|
|
message.error('曲目价格不能为空')
|
|
return
|
|
return
|
|
}
|
|
}
|
|
@@ -288,7 +302,7 @@ export default defineComponent({
|
|
title: '可用声部',
|
|
title: '可用声部',
|
|
key: 'subjectNames',
|
|
key: 'subjectNames',
|
|
render: (row: any) => {
|
|
render: (row: any) => {
|
|
- return <TheTooltip content={row.subjectNames}/>
|
|
|
|
|
|
+ return <TheTooltip content={row.subjectNames} />
|
|
}
|
|
}
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -299,17 +313,17 @@ export default defineComponent({
|
|
title: '音乐人',
|
|
title: '音乐人',
|
|
key: 'composer'
|
|
key: 'composer'
|
|
},
|
|
},
|
|
- {
|
|
|
|
- title: '谱面渲染',
|
|
|
|
- key: 'musicSheetType',
|
|
|
|
- render: (row: any) => {
|
|
|
|
- return (
|
|
|
|
- <div>
|
|
|
|
- {getMapValueByKey(row.musicSheetType, new Map(Object.entries(musicSheetType)))}
|
|
|
|
- </div>
|
|
|
|
- )
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
|
|
+ // {
|
|
|
|
+ // title: '谱面渲染',
|
|
|
|
+ // key: 'musicSheetType',
|
|
|
|
+ // render: (row: any) => {
|
|
|
|
+ // return (
|
|
|
|
+ // <div>
|
|
|
|
+ // {getMapValueByKey(row.musicSheetType, new Map(Object.entries(musicSheetType)))}
|
|
|
|
+ // </div>
|
|
|
|
+ // )
|
|
|
|
+ // }
|
|
|
|
+ // },
|
|
{
|
|
{
|
|
title: '曲目来源',
|
|
title: '曲目来源',
|
|
key: 'sourceType',
|
|
key: 'sourceType',
|
|
@@ -390,7 +404,7 @@ export default defineComponent({
|
|
)
|
|
)
|
|
},
|
|
},
|
|
key: 'musicTagIds',
|
|
key: 'musicTagIds',
|
|
- width:'180px',
|
|
|
|
|
|
+ width: '180px',
|
|
render: (row: any) => {
|
|
render: (row: any) => {
|
|
// })
|
|
// })
|
|
return (
|
|
return (
|
|
@@ -430,24 +444,30 @@ export default defineComponent({
|
|
},
|
|
},
|
|
[
|
|
[
|
|
h(NSelect, {
|
|
h(NSelect, {
|
|
- value: state.globalPaymentType,
|
|
|
|
- onUpdateValue(v) {
|
|
|
|
- state.globalPaymentType = v
|
|
|
|
- const free = 'FREE'
|
|
|
|
- if (state.globalPaymentType[state.globalPaymentType.length - 1] == free) {
|
|
|
|
- state.globalPaymentType = [free]
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (state.globalPaymentType.length > 1 && state.globalPaymentType.includes(free)) {
|
|
|
|
- state.globalPaymentType.splice(state.globalPaymentType.indexOf(free), 1)
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- },
|
|
|
|
|
|
+ value: state.globalPaymentType,
|
|
|
|
+ onUpdateValue(v) {
|
|
|
|
+ state.globalPaymentType = v
|
|
|
|
+ const free = 'FREE'
|
|
|
|
+ if (
|
|
|
|
+ state.globalPaymentType[state.globalPaymentType.length - 1] == free
|
|
|
|
+ ) {
|
|
|
|
+ state.globalPaymentType = [free]
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (
|
|
|
|
+ state.globalPaymentType.length > 1 &&
|
|
|
|
+ state.globalPaymentType.includes(free)
|
|
|
|
+ ) {
|
|
|
|
+ state.globalPaymentType.splice(
|
|
|
|
+ state.globalPaymentType.indexOf(free),
|
|
|
|
+ 1
|
|
|
|
+ )
|
|
|
|
+ }
|
|
|
|
+ },
|
|
multiple: true,
|
|
multiple: true,
|
|
clearable: true,
|
|
clearable: true,
|
|
options: getSelectDataFromObj(musicSheetPaymentType)
|
|
options: getSelectDataFromObj(musicSheetPaymentType)
|
|
- }
|
|
|
|
- )
|
|
|
|
|
|
+ })
|
|
]
|
|
]
|
|
)
|
|
)
|
|
},
|
|
},
|
|
@@ -457,7 +477,7 @@ export default defineComponent({
|
|
for (let i = 0; i < state.selectRowData.length; i++) {
|
|
for (let i = 0; i < state.selectRowData.length; i++) {
|
|
const item = state.selectRowData[i]
|
|
const item = state.selectRowData[i]
|
|
item.paymentType = state.globalPaymentType
|
|
item.paymentType = state.globalPaymentType
|
|
- if (!state.globalPaymentType.includes("CHARGE")) {
|
|
|
|
|
|
+ if (!state.globalPaymentType.includes('CHARGE')) {
|
|
item.musicPrice = 0
|
|
item.musicPrice = 0
|
|
item.musicPriceDisable = true
|
|
item.musicPriceDisable = true
|
|
}
|
|
}
|
|
@@ -480,7 +500,7 @@ export default defineComponent({
|
|
)
|
|
)
|
|
},
|
|
},
|
|
key: 'paymentType',
|
|
key: 'paymentType',
|
|
- width:'180px',
|
|
|
|
|
|
+ width: '180px',
|
|
render: (row: any) => {
|
|
render: (row: any) => {
|
|
return (
|
|
return (
|
|
<NSelect
|
|
<NSelect
|
|
@@ -498,7 +518,7 @@ export default defineComponent({
|
|
} else if (row.paymentType.length > 1 && row.paymentType.includes(free)) {
|
|
} else if (row.paymentType.length > 1 && row.paymentType.includes(free)) {
|
|
row.paymentType.splice(row.paymentType.indexOf(free), 1)
|
|
row.paymentType.splice(row.paymentType.indexOf(free), 1)
|
|
}
|
|
}
|
|
- if (!row.paymentType.includes("CHARGE")) {
|
|
|
|
|
|
+ if (!row.paymentType.includes('CHARGE')) {
|
|
row.musicPrice = 0
|
|
row.musicPrice = 0
|
|
}
|
|
}
|
|
}}
|
|
}}
|
|
@@ -543,7 +563,8 @@ export default defineComponent({
|
|
if (state.globalMusicPrice) {
|
|
if (state.globalMusicPrice) {
|
|
for (let i = 0; i < state.selectRowData.length; i++) {
|
|
for (let i = 0; i < state.selectRowData.length; i++) {
|
|
const item = state.selectRowData[i]
|
|
const item = state.selectRowData[i]
|
|
- if (item.paymentType.includes("CHARGE")) { // 只修改包含单曲收费,则价格为0
|
|
|
|
|
|
+ if (item.paymentType.includes('CHARGE')) {
|
|
|
|
+ // 只修改包含单曲收费,则价格为0
|
|
item.musicPrice = state.globalMusicPrice
|
|
item.musicPrice = state.globalMusicPrice
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -829,55 +850,55 @@ export default defineComponent({
|
|
field.push({
|
|
field.push({
|
|
title(column: any) {
|
|
title(column: any) {
|
|
return (
|
|
return (
|
|
- <NSpace>
|
|
|
|
- 默认谱面
|
|
|
|
- <NButton
|
|
|
|
- type="primary"
|
|
|
|
- size="small"
|
|
|
|
- text
|
|
|
|
- onClick={() => {
|
|
|
|
- dialogs.create({
|
|
|
|
- title: '请选择默认谱面',
|
|
|
|
- showIcon: false,
|
|
|
|
- content: () => {
|
|
|
|
- return h(
|
|
|
|
- 'div',
|
|
|
|
- {
|
|
|
|
- class: 'flex flex-col justify-center items-center text-14px'
|
|
|
|
- },
|
|
|
|
- [
|
|
|
|
- // icon
|
|
|
|
- h(NSelect, {
|
|
|
|
- onUpdateValue(v) {
|
|
|
|
- state.scoreType = v
|
|
|
|
- },
|
|
|
|
- options: getSelectDataFromObj(scoreType)
|
|
|
|
- })
|
|
|
|
- ]
|
|
|
|
- )
|
|
|
|
|
|
+ <NSpace>
|
|
|
|
+ 默认谱面
|
|
|
|
+ <NButton
|
|
|
|
+ type="primary"
|
|
|
|
+ size="small"
|
|
|
|
+ text
|
|
|
|
+ onClick={() => {
|
|
|
|
+ dialogs.create({
|
|
|
|
+ title: '请选择默认谱面',
|
|
|
|
+ showIcon: false,
|
|
|
|
+ content: () => {
|
|
|
|
+ return h(
|
|
|
|
+ 'div',
|
|
|
|
+ {
|
|
|
|
+ class: 'flex flex-col justify-center items-center text-14px'
|
|
},
|
|
},
|
|
- positiveText: '确定',
|
|
|
|
- negativeText: '取消',
|
|
|
|
- onPositiveClick: () => {
|
|
|
|
- for (let i = 0; i < state.selectRowData.length; i++) {
|
|
|
|
- const item = state.selectRowData[i]
|
|
|
|
- item.scoreType = state.scoreType
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- }}
|
|
|
|
- >
|
|
|
|
- <NIcon size={15} style="padding-left: 5px;margin-top:4px">
|
|
|
|
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
|
|
|
|
- <path d="M2 26h28v2H2z" fill="currentColor"></path>
|
|
|
|
- <path
|
|
|
|
- d="M25.4 9c.8-.8.8-2 0-2.8l-3.6-3.6c-.8-.8-2-.8-2.8 0l-15 15V24h6.4l15-15zm-5-5L24 7.6l-3 3L17.4 7l3-3zM6 22v-3.6l10-10l3.6 3.6l-10 10H6z"
|
|
|
|
- fill="currentColor"
|
|
|
|
- ></path>
|
|
|
|
- </svg>
|
|
|
|
- </NIcon>
|
|
|
|
- </NButton>
|
|
|
|
- </NSpace>
|
|
|
|
|
|
+ [
|
|
|
|
+ // icon
|
|
|
|
+ h(NSelect, {
|
|
|
|
+ onUpdateValue(v) {
|
|
|
|
+ state.scoreType = v
|
|
|
|
+ },
|
|
|
|
+ options: getSelectDataFromObj(scoreType)
|
|
|
|
+ })
|
|
|
|
+ ]
|
|
|
|
+ )
|
|
|
|
+ },
|
|
|
|
+ positiveText: '确定',
|
|
|
|
+ negativeText: '取消',
|
|
|
|
+ onPositiveClick: () => {
|
|
|
|
+ for (let i = 0; i < state.selectRowData.length; i++) {
|
|
|
|
+ const item = state.selectRowData[i]
|
|
|
|
+ item.scoreType = state.scoreType
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }}
|
|
|
|
+ >
|
|
|
|
+ <NIcon size={15} style="padding-left: 5px;margin-top:4px">
|
|
|
|
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
|
|
|
|
+ <path d="M2 26h28v2H2z" fill="currentColor"></path>
|
|
|
|
+ <path
|
|
|
|
+ d="M25.4 9c.8-.8.8-2 0-2.8l-3.6-3.6c-.8-.8-2-.8-2.8 0l-15 15V24h6.4l15-15zm-5-5L24 7.6l-3 3L17.4 7l3-3zM6 22v-3.6l10-10l3.6 3.6l-10 10H6z"
|
|
|
|
+ fill="currentColor"
|
|
|
|
+ ></path>
|
|
|
|
+ </svg>
|
|
|
|
+ </NIcon>
|
|
|
|
+ </NButton>
|
|
|
|
+ </NSpace>
|
|
)
|
|
)
|
|
},
|
|
},
|
|
key: 'scoreType',
|
|
key: 'scoreType',
|
|
@@ -885,78 +906,79 @@ export default defineComponent({
|
|
render: (row: any) => {
|
|
render: (row: any) => {
|
|
// })
|
|
// })
|
|
return (
|
|
return (
|
|
- <NSelect
|
|
|
|
- placeholder="请选择默认谱面"
|
|
|
|
- value={row.scoreType}
|
|
|
|
- options={getSelectDataFromObj(scoreType)}
|
|
|
|
- onUpdateValue={(value: any) => {
|
|
|
|
- row.scoreType = value
|
|
|
|
- }}
|
|
|
|
- clearable
|
|
|
|
- />
|
|
|
|
|
|
+ <NSelect
|
|
|
|
+ placeholder="请选择默认谱面"
|
|
|
|
+ value={row.scoreType}
|
|
|
|
+ options={getSelectDataFromObj(scoreType)}
|
|
|
|
+ onUpdateValue={(value: any) => {
|
|
|
|
+ row.scoreType = value
|
|
|
|
+ }}
|
|
|
|
+ clearable
|
|
|
|
+ />
|
|
)
|
|
)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
field.push({
|
|
field.push({
|
|
title(column: any) {
|
|
title(column: any) {
|
|
return (
|
|
return (
|
|
- <NSpace>
|
|
|
|
- 是否支持转谱
|
|
|
|
- <NButton
|
|
|
|
- type="primary"
|
|
|
|
- size="small"
|
|
|
|
- text
|
|
|
|
- onClick={() => {
|
|
|
|
- dialogs.create({
|
|
|
|
- title: '是否支持转谱',
|
|
|
|
- showIcon: false,
|
|
|
|
- content: () => {
|
|
|
|
- return h(
|
|
|
|
- 'div',
|
|
|
|
|
|
+ <NSpace>
|
|
|
|
+ 是否支持转谱
|
|
|
|
+ <NButton
|
|
|
|
+ type="primary"
|
|
|
|
+ size="small"
|
|
|
|
+ text
|
|
|
|
+ onClick={() => {
|
|
|
|
+ dialogs.create({
|
|
|
|
+ title: '是否支持转谱',
|
|
|
|
+ showIcon: false,
|
|
|
|
+ content: () => {
|
|
|
|
+ return h(
|
|
|
|
+ 'div',
|
|
|
|
+ {
|
|
|
|
+ class: 'flex flex-col justify-center items-center text-14px'
|
|
|
|
+ },
|
|
|
|
+ [
|
|
|
|
+ // icon
|
|
|
|
+ h(NSelect, {
|
|
|
|
+ onUpdateValue(v) {
|
|
|
|
+ state.isConvertibleScore = v
|
|
|
|
+ },
|
|
|
|
+ options: [
|
|
{
|
|
{
|
|
- class: 'flex flex-col justify-center items-center text-14px'
|
|
|
|
|
|
+ label: '是',
|
|
|
|
+ value: true
|
|
},
|
|
},
|
|
- [
|
|
|
|
- // icon
|
|
|
|
- h(NSelect, {
|
|
|
|
- onUpdateValue(v) {
|
|
|
|
- state.isConvertibleScore = v
|
|
|
|
- },
|
|
|
|
- options: [
|
|
|
|
- {
|
|
|
|
- label: '是',
|
|
|
|
- value: true
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- label: '否',
|
|
|
|
- value: false
|
|
|
|
- }] as any
|
|
|
|
- })
|
|
|
|
- ]
|
|
|
|
- )
|
|
|
|
- },
|
|
|
|
- positiveText: '确定',
|
|
|
|
- negativeText: '取消',
|
|
|
|
- onPositiveClick: () => {
|
|
|
|
- for (let i = 0; i < state.selectRowData.length; i++) {
|
|
|
|
- const item = state.selectRowData[i]
|
|
|
|
- item.isConvertibleScore = state.isConvertibleScore
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- }}
|
|
|
|
- >
|
|
|
|
- <NIcon size={15} style="padding-left: 5px;margin-top:4px">
|
|
|
|
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
|
|
|
|
- <path d="M2 26h28v2H2z" fill="currentColor"></path>
|
|
|
|
- <path
|
|
|
|
- d="M25.4 9c.8-.8.8-2 0-2.8l-3.6-3.6c-.8-.8-2-.8-2.8 0l-15 15V24h6.4l15-15zm-5-5L24 7.6l-3 3L17.4 7l3-3zM6 22v-3.6l10-10l3.6 3.6l-10 10H6z"
|
|
|
|
- fill="currentColor"
|
|
|
|
- ></path>
|
|
|
|
- </svg>
|
|
|
|
- </NIcon>
|
|
|
|
- </NButton>
|
|
|
|
- </NSpace>
|
|
|
|
|
|
+ {
|
|
|
|
+ label: '否',
|
|
|
|
+ value: false
|
|
|
|
+ }
|
|
|
|
+ ] as any
|
|
|
|
+ })
|
|
|
|
+ ]
|
|
|
|
+ )
|
|
|
|
+ },
|
|
|
|
+ positiveText: '确定',
|
|
|
|
+ negativeText: '取消',
|
|
|
|
+ onPositiveClick: () => {
|
|
|
|
+ for (let i = 0; i < state.selectRowData.length; i++) {
|
|
|
|
+ const item = state.selectRowData[i]
|
|
|
|
+ item.isConvertibleScore = state.isConvertibleScore
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }}
|
|
|
|
+ >
|
|
|
|
+ <NIcon size={15} style="padding-left: 5px;margin-top:4px">
|
|
|
|
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
|
|
|
|
+ <path d="M2 26h28v2H2z" fill="currentColor"></path>
|
|
|
|
+ <path
|
|
|
|
+ d="M25.4 9c.8-.8.8-2 0-2.8l-3.6-3.6c-.8-.8-2-.8-2.8 0l-15 15V24h6.4l15-15zm-5-5L24 7.6l-3 3L17.4 7l3-3zM6 22v-3.6l10-10l3.6 3.6l-10 10H6z"
|
|
|
|
+ fill="currentColor"
|
|
|
|
+ ></path>
|
|
|
|
+ </svg>
|
|
|
|
+ </NIcon>
|
|
|
|
+ </NButton>
|
|
|
|
+ </NSpace>
|
|
)
|
|
)
|
|
},
|
|
},
|
|
key: 'isConvertibleScore',
|
|
key: 'isConvertibleScore',
|
|
@@ -964,24 +986,24 @@ export default defineComponent({
|
|
render: (row: any) => {
|
|
render: (row: any) => {
|
|
// })
|
|
// })
|
|
return (
|
|
return (
|
|
- <NSelect
|
|
|
|
- value={row.isConvertibleScore}
|
|
|
|
- options={[
|
|
|
|
- {
|
|
|
|
- label: '是',
|
|
|
|
- value: true
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- label: '否',
|
|
|
|
- value: false
|
|
|
|
- } as any
|
|
|
|
- ]}
|
|
|
|
- onUpdateValue={(value: any) => {
|
|
|
|
- row.isConvertibleScore = value
|
|
|
|
- }}
|
|
|
|
- filterable
|
|
|
|
- clearable
|
|
|
|
- />
|
|
|
|
|
|
+ <NSelect
|
|
|
|
+ value={row.isConvertibleScore}
|
|
|
|
+ options={[
|
|
|
|
+ {
|
|
|
|
+ label: '是',
|
|
|
|
+ value: true
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '否',
|
|
|
|
+ value: false
|
|
|
|
+ } as any
|
|
|
|
+ ]}
|
|
|
|
+ onUpdateValue={(value: any) => {
|
|
|
|
+ row.isConvertibleScore = value
|
|
|
|
+ }}
|
|
|
|
+ filterable
|
|
|
|
+ clearable
|
|
|
|
+ />
|
|
)
|
|
)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -1162,14 +1184,14 @@ export default defineComponent({
|
|
clearable
|
|
clearable
|
|
/>
|
|
/>
|
|
</NFormItem>
|
|
</NFormItem>
|
|
- <NFormItem label="谱面渲染" path="musicSheetType">
|
|
|
|
|
|
+ {/* <NFormItem label="谱面渲染" path="musicSheetType">
|
|
<NSelect
|
|
<NSelect
|
|
placeholder="请选择谱面渲染"
|
|
placeholder="请选择谱面渲染"
|
|
v-model:value={state.searchForm.musicSheetType}
|
|
v-model:value={state.searchForm.musicSheetType}
|
|
options={getSelectDataFromObj(musicSheetType)}
|
|
options={getSelectDataFromObj(musicSheetType)}
|
|
clearable
|
|
clearable
|
|
/>
|
|
/>
|
|
- </NFormItem>
|
|
|
|
|
|
+ </NFormItem> */}
|
|
<NFormItem label="可用声部" path="musicSubject">
|
|
<NFormItem label="可用声部" path="musicSubject">
|
|
<NSelect
|
|
<NSelect
|
|
placeholder="请选择可用声部"
|
|
placeholder="请选择可用声部"
|
|
@@ -1181,9 +1203,9 @@ export default defineComponent({
|
|
</NFormItem>
|
|
</NFormItem>
|
|
<NFormItem label="音乐人" path="composer">
|
|
<NFormItem label="音乐人" path="composer">
|
|
<NInput
|
|
<NInput
|
|
- placeholder="请选择音乐人"
|
|
|
|
- v-model:value={state.searchForm.composer}
|
|
|
|
- clearable
|
|
|
|
|
|
+ placeholder="请选择音乐人"
|
|
|
|
+ v-model:value={state.searchForm.composer}
|
|
|
|
+ clearable
|
|
/>
|
|
/>
|
|
</NFormItem>
|
|
</NFormItem>
|
|
<NFormItem label="曲目来源" path="sourceType">
|
|
<NFormItem label="曲目来源" path="sourceType">
|
|
@@ -1206,33 +1228,36 @@ export default defineComponent({
|
|
</NFormItem>
|
|
</NFormItem>
|
|
<NFormItem label="所属项目" path="applicationId">
|
|
<NFormItem label="所属项目" path="applicationId">
|
|
<NSelect
|
|
<NSelect
|
|
- placeholder="请选择所属项目"
|
|
|
|
- v-model:value={state.searchForm.applicationId}
|
|
|
|
- options={state.useProjectData}
|
|
|
|
- clearable
|
|
|
|
- onUpdateValue={async (value: any) => {
|
|
|
|
- state.searchForm.applicationId = value
|
|
|
|
- if (value) {
|
|
|
|
- await updateUserIdData(state.searchForm.sourceType)
|
|
|
|
- state.userIdDisable = !(
|
|
|
|
- state.searchForm.sourceType && state.searchForm.sourceType !== 'PLATFORM'
|
|
|
|
- )
|
|
|
|
- } else {
|
|
|
|
- state.searchForm.userId = null
|
|
|
|
- state.userIdDisable = true
|
|
|
|
- state.userIdData = []
|
|
|
|
- }
|
|
|
|
- }}
|
|
|
|
|
|
+ placeholder="请选择所属项目"
|
|
|
|
+ v-model:value={state.searchForm.applicationId}
|
|
|
|
+ options={state.useProjectData}
|
|
|
|
+ clearable
|
|
|
|
+ onUpdateValue={async (value: any) => {
|
|
|
|
+ state.searchForm.applicationId = value
|
|
|
|
+ if (value) {
|
|
|
|
+ await updateUserIdData(state.searchForm.sourceType)
|
|
|
|
+ state.userIdDisable = !(
|
|
|
|
+ state.searchForm.sourceType && state.searchForm.sourceType !== 'PLATFORM'
|
|
|
|
+ )
|
|
|
|
+ } else {
|
|
|
|
+ state.searchForm.userId = null
|
|
|
|
+ state.userIdDisable = true
|
|
|
|
+ state.userIdData = []
|
|
|
|
+ }
|
|
|
|
+ }}
|
|
/>
|
|
/>
|
|
</NFormItem>
|
|
</NFormItem>
|
|
<NFormItem label="所属人" path="author">
|
|
<NFormItem label="所属人" path="author">
|
|
<NSelect
|
|
<NSelect
|
|
- filterable
|
|
|
|
- placeholder="请选择所属人"
|
|
|
|
- disabled={state.userIdDisable || (!state.searchForm.applicationId && !state.searchForm.sourceType)}
|
|
|
|
- v-model:value={state.searchForm.userId}
|
|
|
|
- options={state.userIdData}
|
|
|
|
- clearable
|
|
|
|
|
|
+ filterable
|
|
|
|
+ placeholder="请选择所属人"
|
|
|
|
+ disabled={
|
|
|
|
+ state.userIdDisable ||
|
|
|
|
+ (!state.searchForm.applicationId && !state.searchForm.sourceType)
|
|
|
|
+ }
|
|
|
|
+ v-model:value={state.searchForm.userId}
|
|
|
|
+ options={state.userIdData}
|
|
|
|
+ clearable
|
|
></NSelect>
|
|
></NSelect>
|
|
</NFormItem>
|
|
</NFormItem>
|
|
<NFormItem>
|
|
<NFormItem>
|
|
@@ -1316,4 +1341,4 @@ export default defineComponent({
|
|
)
|
|
)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-})
|
|
|
|
|
|
+})
|