|
@@ -135,24 +135,11 @@
|
|
label="可用声部"
|
|
label="可用声部"
|
|
show-overflow-tooltip
|
|
show-overflow-tooltip
|
|
></el-table-column>
|
|
></el-table-column>
|
|
-
|
|
|
|
- <!-- <el-table-column
|
|
|
|
- prop="composer"
|
|
|
|
- label="音乐人"
|
|
|
|
- show-overflow-tooltip
|
|
|
|
- ></el-table-column> -->
|
|
|
|
-
|
|
|
|
- <!-- <el-table-column
|
|
|
|
- prop="musicSheetType"
|
|
|
|
- label="多声轨渲染"
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
+ prop="musicCategoryName"
|
|
|
|
+ label="曲目分类"
|
|
show-overflow-tooltip
|
|
show-overflow-tooltip
|
|
- >
|
|
|
|
- <template #default="scope">
|
|
|
|
- <div>
|
|
|
|
- {{ scope.row.musicSheetType === "SINGLE" ? "否" : "是" }}
|
|
|
|
- </div>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column> -->
|
|
|
|
|
|
+ ></el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
|
|
|
|
<pagination
|
|
<pagination
|
|
@@ -197,6 +184,11 @@
|
|
show-overflow-tooltip
|
|
show-overflow-tooltip
|
|
width="150"
|
|
width="150"
|
|
></el-table-column>
|
|
></el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ prop="musicCategoryName"
|
|
|
|
+ label="曲目分类"
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
+ ></el-table-column>
|
|
|
|
|
|
<!-- <el-table-column
|
|
<!-- <el-table-column
|
|
prop="composer"
|
|
prop="composer"
|
|
@@ -217,7 +209,7 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column> -->
|
|
</el-table-column> -->
|
|
|
|
|
|
- <el-table-column prop="musicSheetCategoryId" width="180">
|
|
|
|
|
|
+ <!-- <el-table-column prop="musicSheetCategoryId" width="180">
|
|
<template #header>
|
|
<template #header>
|
|
曲谱分类
|
|
曲谱分类
|
|
<i
|
|
<i
|
|
@@ -227,21 +219,6 @@
|
|
></i>
|
|
></i>
|
|
</template>
|
|
</template>
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
- <!-- <el-form-item label-width="auto" :show-message="false"> -->
|
|
|
|
- <!-- <el-select
|
|
|
|
- v-model="formLists[scope.$index].musicSheetCategoryId"
|
|
|
|
- placeholder="请选择曲谱分类"
|
|
|
|
- clearable
|
|
|
|
- filterable
|
|
|
|
- style="width:150px !important"
|
|
|
|
- >
|
|
|
|
- <el-option
|
|
|
|
- v-for="option in tree"
|
|
|
|
- :key="option.id"
|
|
|
|
- :label="option.name"
|
|
|
|
- :value="option.id"
|
|
|
|
- ></el-option>
|
|
|
|
- </el-select> -->
|
|
|
|
<el-cascader
|
|
<el-cascader
|
|
popper-class="myCascader"
|
|
popper-class="myCascader"
|
|
v-model="formLists[scope.$index].musicSheetCategoryId"
|
|
v-model="formLists[scope.$index].musicSheetCategoryId"
|
|
@@ -252,9 +229,8 @@
|
|
:options="tree"
|
|
:options="tree"
|
|
:props="treeProps"
|
|
:props="treeProps"
|
|
></el-cascader>
|
|
></el-cascader>
|
|
- <!-- </el-form-item> -->
|
|
|
|
</template>
|
|
</template>
|
|
- </el-table-column>
|
|
|
|
|
|
+ </el-table-column> -->
|
|
|
|
|
|
<el-table-column prop="rankType" width="180">
|
|
<el-table-column prop="rankType" width="180">
|
|
<template #header>
|
|
<template #header>
|
|
@@ -331,6 +307,29 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
|
|
|
+ <el-table-column prop="status" width="180">
|
|
|
|
+ <template #header>
|
|
|
|
+ 是否可启用
|
|
|
|
+ <i
|
|
|
|
+ class="el-icon-edit"
|
|
|
|
+ style="cursor: pointer"
|
|
|
|
+ @click="onDialogEdit('status')"
|
|
|
|
+ ></i>
|
|
|
|
+ </template>
|
|
|
|
+ <template #default="scope">
|
|
|
|
+ <el-select
|
|
|
|
+ v-model="formLists[scope.$index].status"
|
|
|
|
+ clearable
|
|
|
|
+ filterable
|
|
|
|
+ placeholder="请选择是否可启用"
|
|
|
|
+ style="width:150px !important"
|
|
|
|
+ >
|
|
|
|
+ <el-option :value="1" label="是"></el-option>
|
|
|
|
+ <el-option :value="0" label="否"></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+
|
|
<el-table-column prop="sortNumber" width="180">
|
|
<el-table-column prop="sortNumber" width="180">
|
|
<template #header>
|
|
<template #header>
|
|
排序
|
|
排序
|
|
@@ -446,6 +445,18 @@
|
|
<el-option :value="0" label="否"></el-option>
|
|
<el-option :value="0" label="否"></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div v-if="dialogType === 'status'">
|
|
|
|
+ <el-select
|
|
|
|
+ v-model="formLists[scope.$index].status"
|
|
|
|
+ clearable
|
|
|
|
+ filterable
|
|
|
|
+ placeholder="请选择是否可启用"
|
|
|
|
+ style="width:150px !important"
|
|
|
|
+ >
|
|
|
|
+ <el-option :value="1" label="是"></el-option>
|
|
|
|
+ <el-option :value="0" label="否"></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </div>
|
|
<template #footer>
|
|
<template #footer>
|
|
<span class="dialog-footer">
|
|
<span class="dialog-footer">
|
|
<el-button @click="dialogVisible = false"> 取消 </el-button>
|
|
<el-button @click="dialogVisible = false"> 取消 </el-button>
|
|
@@ -626,11 +637,13 @@ export default {
|
|
name: item.name,
|
|
name: item.name,
|
|
musicCover: item.musicCover,
|
|
musicCover: item.musicCover,
|
|
subjectNames: item.subjectNames,
|
|
subjectNames: item.subjectNames,
|
|
|
|
+ musicCategoryName: item.musicCategoryName,
|
|
composer: item.composer,
|
|
composer: item.composer,
|
|
sourceType: item.sourceType,
|
|
sourceType: item.sourceType,
|
|
musicSheetCategoryId: null,
|
|
musicSheetCategoryId: null,
|
|
rankType: null,
|
|
rankType: null,
|
|
sortNumber: null,
|
|
sortNumber: null,
|
|
|
|
+ status: null,
|
|
isConvertibleScore: null,
|
|
isConvertibleScore: null,
|
|
scoreType: null
|
|
scoreType: null
|
|
});
|
|
});
|
|
@@ -643,13 +656,13 @@ export default {
|
|
const params = [];
|
|
const params = [];
|
|
for (let i = 0; i < this.formLists.length; i++) {
|
|
for (let i = 0; i < this.formLists.length; i++) {
|
|
const item = this.formLists[i];
|
|
const item = this.formLists[i];
|
|
- if (
|
|
|
|
- !item.musicSheetCategoryId ||
|
|
|
|
- item.musicSheetCategoryId.length == 0
|
|
|
|
- ) {
|
|
|
|
- this.$message.error("曲目标签不能为空");
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
|
|
+ // if (
|
|
|
|
+ // !item.musicSheetCategoryId ||
|
|
|
|
+ // item.musicSheetCategoryId.length == 0
|
|
|
|
+ // ) {
|
|
|
|
+ // this.$message.error("曲目标签不能为空");
|
|
|
|
+ // return;
|
|
|
|
+ // }
|
|
if (!item.rankType) {
|
|
if (!item.rankType) {
|
|
this.$message.error("收费方式不能为空");
|
|
this.$message.error("收费方式不能为空");
|
|
return;
|
|
return;
|
|
@@ -666,6 +679,11 @@ export default {
|
|
this.$message.error("是否可转谱不能为空");
|
|
this.$message.error("是否可转谱不能为空");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+ if(item.status === null || item.isConvertibleScore === undefined ||
|
|
|
|
+ item.isConvertibleScore === "") {
|
|
|
|
+ this.$message.error('是否启用不能为空')
|
|
|
|
+ return
|
|
|
|
+ }
|
|
if (
|
|
if (
|
|
item.sortNumber === null ||
|
|
item.sortNumber === null ||
|
|
item.sortNumber === undefined ||
|
|
item.sortNumber === undefined ||
|
|
@@ -677,12 +695,12 @@ export default {
|
|
params.push({
|
|
params.push({
|
|
...item,
|
|
...item,
|
|
musicSheetId: item.id,
|
|
musicSheetId: item.id,
|
|
- musicSheetCategoryId:
|
|
|
|
- item.musicSheetCategoryId.length > 0
|
|
|
|
- ? item.musicSheetCategoryId[
|
|
|
|
- item.musicSheetCategoryId.length - 1
|
|
|
|
- ]
|
|
|
|
- : null,
|
|
|
|
|
|
+ // musicSheetCategoryId:
|
|
|
|
+ // item.musicSheetCategoryId.length > 0
|
|
|
|
+ // ? item.musicSheetCategoryId[
|
|
|
|
+ // item.musicSheetCategoryId.length - 1
|
|
|
|
+ // ]
|
|
|
|
+ // : null,
|
|
id: null
|
|
id: null
|
|
});
|
|
});
|
|
}
|
|
}
|
|
@@ -709,12 +727,15 @@ export default {
|
|
this.dialogTitle = "默认谱面";
|
|
this.dialogTitle = "默认谱面";
|
|
} else if (type === "isConvertibleScore") {
|
|
} else if (type === "isConvertibleScore") {
|
|
this.dialogTitle = "是否可转谱";
|
|
this.dialogTitle = "是否可转谱";
|
|
|
|
+ } else if(type === 'status') {
|
|
|
|
+ this.dialogTitle = '是否启用'
|
|
}
|
|
}
|
|
this.dialogForms.musicSheetCategoryId = null;
|
|
this.dialogForms.musicSheetCategoryId = null;
|
|
this.dialogForms.rankType = null;
|
|
this.dialogForms.rankType = null;
|
|
this.dialogForms.sortNumber = null;
|
|
this.dialogForms.sortNumber = null;
|
|
this.dialogForms.scoreType = null;
|
|
this.dialogForms.scoreType = null;
|
|
this.dialogForms.isConvertibleScore = null;
|
|
this.dialogForms.isConvertibleScore = null;
|
|
|
|
+ this.dialogForms.status = null
|
|
this.dialogVisible = true;
|
|
this.dialogVisible = true;
|
|
this.dialogType = type;
|
|
this.dialogType = type;
|
|
} catch (e) {
|
|
} catch (e) {
|
|
@@ -734,6 +755,8 @@ export default {
|
|
item.scoreType = this.dialogForms.scoreType;
|
|
item.scoreType = this.dialogForms.scoreType;
|
|
} else if (this.dialogType === "isConvertibleScore") {
|
|
} else if (this.dialogType === "isConvertibleScore") {
|
|
item.isConvertibleScore = this.dialogForms.isConvertibleScore;
|
|
item.isConvertibleScore = this.dialogForms.isConvertibleScore;
|
|
|
|
+ } else if(this.dialogType === 'status') {
|
|
|
|
+ item.status = this.dialogForms.status;
|
|
}
|
|
}
|
|
});
|
|
});
|
|
this.dialogVisible = false;
|
|
this.dialogVisible = false;
|