|
@@ -280,6 +280,57 @@
|
|
|
<!-- </el-form-item> -->
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+
|
|
|
+ <el-table-column prop="scoreType" width="180">
|
|
|
+ <template #header>
|
|
|
+ 默认谱面
|
|
|
+ <i
|
|
|
+ class="el-icon-edit"
|
|
|
+ style="cursor: pointer"
|
|
|
+ @click="onDialogEdit('scoreType')"
|
|
|
+ ></i>
|
|
|
+ </template>
|
|
|
+ <template #default="scope">
|
|
|
+ <el-select
|
|
|
+ v-model="formLists[scope.$index].scoreType"
|
|
|
+ clearable
|
|
|
+ filterable
|
|
|
+ placeholder="请选择默认谱面"
|
|
|
+ style="width:150px !important"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="(item, index) in scoreTypeList"
|
|
|
+ :key="index"
|
|
|
+ :value="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+
|
|
|
+ <el-table-column prop="isConvertibleScore" width="180">
|
|
|
+ <template #header>
|
|
|
+ 是否可转谱
|
|
|
+ <i
|
|
|
+ class="el-icon-edit"
|
|
|
+ style="cursor: pointer"
|
|
|
+ @click="onDialogEdit('isConvertibleScore')"
|
|
|
+ ></i>
|
|
|
+ </template>
|
|
|
+ <template #default="scope">
|
|
|
+ <el-select
|
|
|
+ v-model="formLists[scope.$index].isConvertibleScore"
|
|
|
+ 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">
|
|
|
<template #header>
|
|
|
排序
|
|
@@ -367,6 +418,34 @@
|
|
|
style="width: 100% !important"
|
|
|
/>
|
|
|
</div>
|
|
|
+ <div v-if="dialogType === 'scoreType'">
|
|
|
+ <el-select
|
|
|
+ v-model="dialogForms.scoreType"
|
|
|
+ clearable
|
|
|
+ filterable
|
|
|
+ placeholder="请选择默认谱面"
|
|
|
+ style="width: 100% !important"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="(item, index) in scoreTypeList"
|
|
|
+ :key="index"
|
|
|
+ :value="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+ <div v-if="dialogType === 'isConvertibleScore'">
|
|
|
+ <el-select
|
|
|
+ v-model="dialogForms.isConvertibleScore"
|
|
|
+ clearable
|
|
|
+ filterable
|
|
|
+ placeholder="请选择是否可转谱"
|
|
|
+ style="width: 100% !important"
|
|
|
+ >
|
|
|
+ <el-option :value="1" label="是"></el-option>
|
|
|
+ <el-option :value="0" label="否"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
<template #footer>
|
|
|
<span class="dialog-footer">
|
|
|
<el-button @click="dialogVisible = false"> 取消 </el-button>
|
|
@@ -384,6 +463,7 @@ import {
|
|
|
api_pageByApplication,
|
|
|
musicSheetApplicationExtendSaveBatch
|
|
|
} from "../api";
|
|
|
+import { scoreTypeList } from "@/utils/searchArray";
|
|
|
export default {
|
|
|
name: "edit-music",
|
|
|
props: ["tree"],
|
|
@@ -392,6 +472,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ scoreTypeList,
|
|
|
currentStep: 0,
|
|
|
chioseIdList: [], // 选中的数据
|
|
|
searchForm: {
|
|
@@ -412,7 +493,9 @@ export default {
|
|
|
dialogForms: {
|
|
|
musicSheetCategoryId: null,
|
|
|
rankType: null,
|
|
|
- sortNumber: null
|
|
|
+ sortNumber: null,
|
|
|
+ isConvertibleScore: null,
|
|
|
+ scoreType: null
|
|
|
},
|
|
|
dialogVisible: false,
|
|
|
tableList: [],
|
|
@@ -547,7 +630,9 @@ export default {
|
|
|
sourceType: item.sourceType,
|
|
|
musicSheetCategoryId: null,
|
|
|
rankType: null,
|
|
|
- sortNumber: null
|
|
|
+ sortNumber: null,
|
|
|
+ isConvertibleScore: null,
|
|
|
+ scoreType: null
|
|
|
});
|
|
|
});
|
|
|
this.formLists = tempList;
|
|
@@ -569,6 +654,18 @@ export default {
|
|
|
this.$message.error("收费方式不能为空");
|
|
|
return;
|
|
|
}
|
|
|
+ if (!item.scoreType) {
|
|
|
+ this.$message.error("默认谱面不能为空");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ item.isConvertibleScore === null ||
|
|
|
+ item.isConvertibleScore === undefined ||
|
|
|
+ item.isConvertibleScore === ""
|
|
|
+ ) {
|
|
|
+ this.$message.error("是否可转谱不能为空");
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (
|
|
|
item.sortNumber === null ||
|
|
|
item.sortNumber === undefined ||
|
|
@@ -627,6 +724,10 @@ export default {
|
|
|
item.rankType = this.dialogForms.rankType;
|
|
|
} else if (this.dialogType === "sortNumber") {
|
|
|
item.sortNumber = this.dialogForms.sortNumber;
|
|
|
+ } else if (this.dialogType === "scoreType") {
|
|
|
+ item.scoreType = this.dialogForms.scoreType;
|
|
|
+ } else if (this.dialogType === "isConvertibleScore") {
|
|
|
+ item.isConvertibleScore = this.dialogForms.isConvertibleScore;
|
|
|
}
|
|
|
});
|
|
|
this.dialogVisible = false;
|