|
@@ -11,14 +11,17 @@
|
|
|
@editInfo="editInfo"
|
|
|
@emitData="openPZDowm"
|
|
|
>
|
|
|
- <template slot="customize">
|
|
|
+ <!-- <template slot="customize">
|
|
|
<el-button size="small" type="success" @click="setOptions"
|
|
|
>配置“视频节和测试卷”的学习顺序</el-button
|
|
|
>
|
|
|
- </template>
|
|
|
+ </template> -->
|
|
|
<template slot="btn" slot-scope="props">
|
|
|
+ <el-button type="text" @click="setOptions(props.scope.row, 1)"
|
|
|
+ >学习顺序</el-button
|
|
|
+ >
|
|
|
<el-button type="text" @click="openPZDowm(props.scope.row, 1)"
|
|
|
- >配置模板</el-button
|
|
|
+ >下单模板</el-button
|
|
|
>
|
|
|
<el-button type="text" @click="addClick(props.scope.row, 0)"
|
|
|
>修改</el-button
|
|
@@ -240,8 +243,9 @@ export default {
|
|
|
choice: true,
|
|
|
addHide: false,
|
|
|
openCheckMore: true,
|
|
|
+ changeWidth: "260px",
|
|
|
backFatherBtn: {
|
|
|
- status: true,
|
|
|
+ status: false,
|
|
|
title: "配置下单填选模板",
|
|
|
},
|
|
|
},
|
|
@@ -269,6 +273,22 @@ export default {
|
|
|
prop: "projectName",
|
|
|
hidden: true,
|
|
|
},
|
|
|
+ {
|
|
|
+ label: "下单模板",
|
|
|
+ prop: "templateStatus",
|
|
|
+ scope: "isOptions",
|
|
|
+ hidden: true,
|
|
|
+ options: [
|
|
|
+ {
|
|
|
+ label: "班级",
|
|
|
+ value: 1,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "考期、报考地区",
|
|
|
+ value: 2,
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
{
|
|
|
label: "学习顺序",
|
|
|
prop: "goodsLearningOrder",
|
|
@@ -423,19 +443,24 @@ export default {
|
|
|
this.disabledBtn = false;
|
|
|
});
|
|
|
},
|
|
|
- setOptions() {
|
|
|
- if (!this.$refs.tableList.allCheckData.length) {
|
|
|
- this.$message.warning("请勾选需要配置的业务层次");
|
|
|
- return;
|
|
|
- }
|
|
|
- const EXAMSORT = this.$refs.tableList.allCheckData.every((item) => {
|
|
|
- return item.goodsLearningOrder === 0;
|
|
|
- });
|
|
|
- if (EXAMSORT) {
|
|
|
+ setOptions(v, int) {
|
|
|
+ if (int) {
|
|
|
+ this.learningOrder = v.goodsLearningOrder;
|
|
|
this.dialogVisibleSet = true;
|
|
|
} else {
|
|
|
- this.$message.warning("只允许设置当前学习顺序为不限制顺序的列表");
|
|
|
- return;
|
|
|
+ if (!this.$refs.tableList.allCheckData.length) {
|
|
|
+ this.$message.warning("请勾选需要配置的业务层次");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ const EXAMSORT = this.$refs.tableList.allCheckData.every((item) => {
|
|
|
+ return item.goodsLearningOrder === 0;
|
|
|
+ });
|
|
|
+ if (EXAMSORT) {
|
|
|
+ this.dialogVisibleSet = true;
|
|
|
+ } else {
|
|
|
+ this.$message.warning("只允许设置当前学习顺序为不限制顺序的列表");
|
|
|
+ return;
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
closeOptions() {
|
|
@@ -500,6 +525,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
loadingClose() {
|
|
|
+ this.learningOrder = "";
|
|
|
this.disabledBtn = false;
|
|
|
},
|
|
|
changeXMList(option) {
|