|
@@ -23,10 +23,10 @@ import TheTooltip from '@components/TheTooltip'
|
|
|
import AddMusic from '@views/music-library/project-music-sheet/module/kt/addMusic'
|
|
|
import UpdateMusic from '@views/music-library/project-music-sheet/module/kt/updateMusic'
|
|
|
import {
|
|
|
- musicSheetApplicationExtendCategoryList,
|
|
|
+ musicSheetApplicationExtendCategoryList, musicSheetApplicationExtendDel,
|
|
|
musicSheetApplicationExtendStatus,
|
|
|
musicSheetApplicationOwnerList,
|
|
|
- musicSheetPageByApplication
|
|
|
+ musicSheetPageByApplication, musicSheetRemove
|
|
|
} from '@views/music-library/api'
|
|
|
import { getMapValueByKey, getSelectDataFromObj } from '@/utils/objectUtil'
|
|
|
import {appKey, musicSheetAudioType, musicSheetSourceType, musicSheetType} from '@/utils/constant'
|
|
@@ -259,6 +259,22 @@ export default defineComponent({
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ const onRmove = (row: any): void => {
|
|
|
+ dialog.warning({
|
|
|
+ title: '提示',
|
|
|
+ content: `删除曲目,是否继续?`,
|
|
|
+ positiveText: '确定',
|
|
|
+ negativeText: '取消',
|
|
|
+ onPositiveClick: async () => {
|
|
|
+ try {
|
|
|
+ await musicSheetApplicationExtendDel(row.applicationExtendId)
|
|
|
+ getList()
|
|
|
+ message.success('删除成功')
|
|
|
+ } catch {}
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
const columns = (): any => {
|
|
|
return [
|
|
@@ -403,6 +419,16 @@ export default defineComponent({
|
|
|
>
|
|
|
修改
|
|
|
</NButton>
|
|
|
+ <NButton
|
|
|
+ type="primary"
|
|
|
+ size="small"
|
|
|
+ text
|
|
|
+ disabled={!!row.status}
|
|
|
+ onClick={() => onRmove(row)}
|
|
|
+ v-auth="musicSheetApplicationExtend/del1770696070576254977"
|
|
|
+ >
|
|
|
+ 删除
|
|
|
+ </NButton>
|
|
|
</NSpace>
|
|
|
)
|
|
|
}
|
|
@@ -445,9 +471,9 @@ export default defineComponent({
|
|
|
clearable
|
|
|
/>
|
|
|
</NFormItem>
|
|
|
- <NFormItem label="项目" path="applicationId">
|
|
|
+ <NFormItem label="所属项目" path="applicationId">
|
|
|
<NSelect
|
|
|
- placeholder="请选择项目"
|
|
|
+ placeholder="请选择所属项目"
|
|
|
v-model:value={state.searchForm.extendApplicationId}
|
|
|
options={state.useProjectData}
|
|
|
clearable
|