|
|
@@ -600,8 +600,16 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</div>
|
|
|
- <h5 class="fengs">颁发证书</h5>
|
|
|
- <div class="dis_fs">
|
|
|
+ <h5
|
|
|
+ class="fengs"
|
|
|
+ v-if="listData.goodsType === 1 || listData.goodsType === 2"
|
|
|
+ >
|
|
|
+ 颁发证书
|
|
|
+ </h5>
|
|
|
+ <div
|
|
|
+ class="dis_fs"
|
|
|
+ v-if="listData.goodsType === 1 || listData.goodsType === 2"
|
|
|
+ >
|
|
|
<el-popover placement="bottom" trigger="click">
|
|
|
<el-checkbox-group v-model="listData.certificateIds">
|
|
|
<el-checkbox
|
|
|
@@ -686,10 +694,10 @@
|
|
|
</div>
|
|
|
<div style="text-align: center; margin-top: 20px">
|
|
|
<el-button @click="backPage" size="mini">取消</el-button>
|
|
|
- <el-button type="primary" @click="submit('listData', 1)" size="mini"
|
|
|
+ <el-button type="primary" @click="submit('listData', 1)" size="mini" :loading="disabledBtn"
|
|
|
>保存</el-button
|
|
|
>
|
|
|
- <el-button type="primary" @click="submit('listData', 2)" size="mini"
|
|
|
+ <el-button type="primary" @click="submit('listData', 2)" size="mini" :loading="disabledBtn"
|
|
|
>上架</el-button
|
|
|
>
|
|
|
</div>
|
|
|
@@ -1123,7 +1131,7 @@
|
|
|
<el-radio-group
|
|
|
v-model="photoVideoList.photographConfig.photograph"
|
|
|
>
|
|
|
- <el-radio :label="1">是</el-radio>
|
|
|
+ <el-radio :label="1" @change="photoVideoList.photographConfig.intervalTime.push(0)">是</el-radio>
|
|
|
<el-radio
|
|
|
:label="0"
|
|
|
@change="photoVideoList.photographConfig.intervalTime = []"
|
|
|
@@ -1134,7 +1142,7 @@
|
|
|
size="mini"
|
|
|
style="margin-left: 10px"
|
|
|
v-if="photoVideoList.photographConfig.photograph === 1"
|
|
|
- @click="photoVideoList.photographConfig.intervalTime.push('')"
|
|
|
+ @click="photoVideoList.photographConfig.intervalTime.push(0)"
|
|
|
>添加</el-button
|
|
|
>
|
|
|
</div>
|
|
|
@@ -1149,7 +1157,7 @@
|
|
|
:controls="false"
|
|
|
v-model="photoVideoList.photographConfig.intervalTime[indexs]"
|
|
|
style="width: 60px"
|
|
|
- :precision="0"
|
|
|
+ :precision="2"
|
|
|
size="mini"
|
|
|
></el-input-number
|
|
|
>分钟
|
|
|
@@ -1170,7 +1178,7 @@
|
|
|
<el-radio-group
|
|
|
v-model="photoVideoList.goodsPhotographExamConfig.photograph"
|
|
|
>
|
|
|
- <el-radio :label="1">是</el-radio>
|
|
|
+ <el-radio :label="1" @change="photoVideoList.goodsPhotographExamConfig.intervalTime.push(0)">是</el-radio>
|
|
|
<el-radio
|
|
|
:label="0"
|
|
|
@change="
|
|
|
@@ -1184,7 +1192,7 @@
|
|
|
style="margin-left: 10px"
|
|
|
v-if="photoVideoList.goodsPhotographExamConfig.photograph === 1"
|
|
|
@click="
|
|
|
- photoVideoList.goodsPhotographExamConfig.intervalTime.push('')
|
|
|
+ photoVideoList.goodsPhotographExamConfig.intervalTime.push(0)
|
|
|
"
|
|
|
>添加</el-button
|
|
|
>
|
|
|
@@ -1309,6 +1317,15 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import {
|
|
|
+ listConfig,
|
|
|
+ getConfig,
|
|
|
+ delConfig,
|
|
|
+ addConfig,
|
|
|
+ updateConfig,
|
|
|
+ exportConfig,
|
|
|
+ refreshCache,
|
|
|
+} from "@/api/system/config";
|
|
|
import searchBoxNew from "@/components/searchBoxNew";
|
|
|
import poppleSet from "../poppleSet.vue";
|
|
|
import poppleSetTk from "../poppleSetTK.vue";
|
|
|
@@ -1318,6 +1335,7 @@ export default {
|
|
|
components: { searchBoxNew, Editor, pagination, poppleSet, poppleSetTk },
|
|
|
data() {
|
|
|
return {
|
|
|
+ disabledBtn:false,
|
|
|
photoVideoList: {
|
|
|
playConfig: {
|
|
|
autoPlay: 0,
|
|
|
@@ -1593,42 +1611,42 @@ export default {
|
|
|
formDatajy: {
|
|
|
pageNum: 1,
|
|
|
pageSize: 10,
|
|
|
- status: "0,1",
|
|
|
+ status: 1,
|
|
|
},
|
|
|
formListjy: [
|
|
|
+ // {
|
|
|
+ // prop: "educationTypeId",
|
|
|
+ // placeholder: "教育类型",
|
|
|
+ // scope: "educationType",
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // prop: "businessId",
|
|
|
+ // placeholder: "业务层次",
|
|
|
+ // scope: "businessLevel",
|
|
|
+ // edu: "educationTypeId",
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // prop: "status",
|
|
|
+ // placeholder: "发布状态",
|
|
|
+ // scope: "select",
|
|
|
+ // options: [
|
|
|
+ // {
|
|
|
+ // label: "全部状态",
|
|
|
+ // value: "0,1",
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // label: "已发布",
|
|
|
+ // value: 1,
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // label: "未发布",
|
|
|
+ // value: 0,
|
|
|
+ // },
|
|
|
+ // ],
|
|
|
+ // },
|
|
|
{
|
|
|
- prop: "educationTypeId",
|
|
|
- placeholder: "教育类型",
|
|
|
- scope: "educationType",
|
|
|
- },
|
|
|
- {
|
|
|
- prop: "businessId",
|
|
|
- placeholder: "业务层次",
|
|
|
- scope: "businessLevel",
|
|
|
- edu: "educationTypeId",
|
|
|
- },
|
|
|
- {
|
|
|
- prop: "status",
|
|
|
- placeholder: "发布状态",
|
|
|
- scope: "select",
|
|
|
- options: [
|
|
|
- {
|
|
|
- label: "全部状态",
|
|
|
- value: "0,1",
|
|
|
- },
|
|
|
- {
|
|
|
- label: "已发布",
|
|
|
- value: 1,
|
|
|
- },
|
|
|
- {
|
|
|
- label: "未发布",
|
|
|
- value: 0,
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
- {
|
|
|
- prop: "handoutsName",
|
|
|
- placeholder: "请输入讲义名称",
|
|
|
+ prop: "key",
|
|
|
+ placeholder: "请输入讲义标题/讲义编码",
|
|
|
},
|
|
|
],
|
|
|
total3: 0,
|
|
|
@@ -1639,7 +1657,7 @@ export default {
|
|
|
examType: 1,
|
|
|
educationTypeId: "",
|
|
|
businessId: "",
|
|
|
- names:''
|
|
|
+ names:""
|
|
|
},
|
|
|
formList3: [
|
|
|
// {
|
|
|
@@ -1729,6 +1747,7 @@ export default {
|
|
|
currentPage: 1, //当前页码
|
|
|
educationTypeId: "",
|
|
|
businessId: "",
|
|
|
+ publishStatus: 1,
|
|
|
},
|
|
|
formLists: [
|
|
|
// {
|
|
|
@@ -1754,24 +1773,24 @@ export default {
|
|
|
scope: "Professional",
|
|
|
edu: "educationTypeId",
|
|
|
},
|
|
|
+ // {
|
|
|
+ // prop: "publishStatus",
|
|
|
+ // placeholder: "发布状态",
|
|
|
+ // scope: "select",
|
|
|
+ // options: [
|
|
|
+ // {
|
|
|
+ // label: "已发布",
|
|
|
+ // value: 1,
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // label: "未发布",
|
|
|
+ // value: 0,
|
|
|
+ // },
|
|
|
+ // ],
|
|
|
+ // },
|
|
|
{
|
|
|
- prop: "publishStatus",
|
|
|
- placeholder: "发布状态",
|
|
|
- scope: "select",
|
|
|
- options: [
|
|
|
- {
|
|
|
- label: "已发布",
|
|
|
- value: 1,
|
|
|
- },
|
|
|
- {
|
|
|
- label: "未发布",
|
|
|
- value: 0,
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
- {
|
|
|
- prop: "courseName",
|
|
|
- placeholder: "请输入课程名称",
|
|
|
+ prop: "key",
|
|
|
+ placeholder: "请输入课程标题/课程编码",
|
|
|
},
|
|
|
],
|
|
|
disCheckList: [],
|
|
|
@@ -1873,6 +1892,57 @@ export default {
|
|
|
this.getDict();
|
|
|
},
|
|
|
mounted() {
|
|
|
+ listConfig().then((res) => {
|
|
|
+ for (let i = 0; i < res.rows.length; i++) {
|
|
|
+ if (res.rows[i].configKey == "sys.play.autoPlay") {
|
|
|
+ //自动播放
|
|
|
+ this.photoVideoList.playConfig.autoPlay = Number(
|
|
|
+ res.rows[i].configValue
|
|
|
+ );
|
|
|
+ }
|
|
|
+ if (res.rows[i].configKey == "sys.play.drag") {
|
|
|
+ //"进度条拖拉"
|
|
|
+ this.photoVideoList.playConfig.drag = Number(res.rows[i].configValue);
|
|
|
+ }
|
|
|
+ if (res.rows[i].configKey == "sys.play.speed") {
|
|
|
+ //"倍速播放"
|
|
|
+ this.$set(
|
|
|
+ this.photoVideoList.playConfig,
|
|
|
+ "speed",
|
|
|
+ Number(res.rows[i].configValue)
|
|
|
+ );
|
|
|
+ }
|
|
|
+ if (res.rows[i].configKey == "sys.course.photograph") {
|
|
|
+ //"课程拍照"
|
|
|
+ this.photoVideoList.photographConfig.photograph = Number(
|
|
|
+ res.rows[i].configValue
|
|
|
+ );
|
|
|
+ }
|
|
|
+ if (res.rows[i].configKey == "sys.course.intervalTime") {
|
|
|
+ //"间隔时间设置"
|
|
|
+ if (res.rows[i].configValue) {
|
|
|
+ this.photoVideoList.photographConfig.intervalTime = res.rows[
|
|
|
+ i
|
|
|
+ ].configValue
|
|
|
+ .split(",")
|
|
|
+ .map(Number);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (res.rows[i].configKey == "sys.paper.photograph") {
|
|
|
+ //"章节试卷拍照"
|
|
|
+ this.photoVideoList.goodsPhotographExamConfig.photograph = Number(
|
|
|
+ res.rows[i].configValue
|
|
|
+ );
|
|
|
+ }
|
|
|
+ if (res.rows[i].configKey == "sys.paper.intervalNumber") {
|
|
|
+ //"间隔数量设置"
|
|
|
+ if (res.rows[i].configValue) {
|
|
|
+ this.photoVideoList.goodsPhotographExamConfig.intervalTime =
|
|
|
+ res.rows[i].configValue.split(",").map(Number);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
// this.getJyData();
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -1939,37 +2009,37 @@ export default {
|
|
|
},
|
|
|
//打开播放和拍照设置窗口
|
|
|
openPZ() {
|
|
|
- if (this.listData.playConfig) {
|
|
|
- this.photoVideoList.playConfig = JSON.parse(
|
|
|
- JSON.stringify(this.listData.playConfig)
|
|
|
- );
|
|
|
- } else {
|
|
|
- this.photoVideoList.playConfig = {
|
|
|
- autoPlay: 0,
|
|
|
- drag: 0,
|
|
|
- speed: 0,
|
|
|
- };
|
|
|
- }
|
|
|
- if (this.listData.photographConfig) {
|
|
|
- this.photoVideoList.photographConfig = JSON.parse(
|
|
|
- JSON.stringify(this.listData.photographConfig)
|
|
|
- );
|
|
|
- } else {
|
|
|
- this.photoVideoList.photographConfig = {
|
|
|
- photograph: 0,
|
|
|
- intervalTime: [],
|
|
|
- };
|
|
|
- }
|
|
|
- if (this.listData.goodsPhotographExamConfig) {
|
|
|
- this.photoVideoList.goodsPhotographExamConfig = JSON.parse(
|
|
|
- JSON.stringify(this.listData.goodsPhotographExamConfig)
|
|
|
- );
|
|
|
- } else {
|
|
|
- this.photoVideoList.goodsPhotographExamConfig = {
|
|
|
- photograph: 0,
|
|
|
- intervalTime: [],
|
|
|
- };
|
|
|
- }
|
|
|
+ // if (this.listData.playConfig) {
|
|
|
+ // this.photoVideoList.playConfig = JSON.parse(
|
|
|
+ // JSON.stringify(this.listData.playConfig)
|
|
|
+ // );
|
|
|
+ // } else {
|
|
|
+ // this.photoVideoList.playConfig = {
|
|
|
+ // autoPlay: 0,
|
|
|
+ // drag: 0,
|
|
|
+ // speed: 0,
|
|
|
+ // };
|
|
|
+ // }
|
|
|
+ // if (this.listData.photographConfig) {
|
|
|
+ // this.photoVideoList.photographConfig = JSON.parse(
|
|
|
+ // JSON.stringify(this.listData.photographConfig)
|
|
|
+ // );
|
|
|
+ // } else {
|
|
|
+ // this.photoVideoList.photographConfig = {
|
|
|
+ // photograph: 0,
|
|
|
+ // intervalTime: [],
|
|
|
+ // };
|
|
|
+ // }
|
|
|
+ // if (this.listData.goodsPhotographExamConfig) {
|
|
|
+ // this.photoVideoList.goodsPhotographExamConfig = JSON.parse(
|
|
|
+ // JSON.stringify(this.listData.goodsPhotographExamConfig)
|
|
|
+ // );
|
|
|
+ // } else {
|
|
|
+ // this.photoVideoList.goodsPhotographExamConfig = {
|
|
|
+ // photograph: 0,
|
|
|
+ // intervalTime: [],
|
|
|
+ // };
|
|
|
+ // }
|
|
|
this.dialogPhoto = true;
|
|
|
},
|
|
|
//提交播放和拍照设置
|
|
|
@@ -2079,10 +2149,14 @@ export default {
|
|
|
this.formDatajy = {
|
|
|
pageNum: 1,
|
|
|
pageSize: 10,
|
|
|
- status: "0,1",
|
|
|
+ status: 1,
|
|
|
+ key: "",
|
|
|
};
|
|
|
}
|
|
|
- this.$api.inquireCourseHandoutsList(this.formDatajy).then((res) => {
|
|
|
+ var data = JSON.parse(JSON.stringify(this.formDatajy));
|
|
|
+ data.educationTypeId = this.listData.educationTypeId;
|
|
|
+ data.businessId = this.listData.businessId;
|
|
|
+ this.$api.inquireCourseHandoutsList(data).then((res) => {
|
|
|
this.totaljy = res.total;
|
|
|
this.jYtableData = res.rows;
|
|
|
});
|
|
|
@@ -2096,10 +2170,15 @@ export default {
|
|
|
this.aboutJYBox = false;
|
|
|
},
|
|
|
openJY() {
|
|
|
+ if (!this.listData.businessId) {
|
|
|
+ this.$message.warning("请选择业务层次");
|
|
|
+ return;
|
|
|
+ }
|
|
|
this.aboutJYBox = true;
|
|
|
this.handoutsIdTable = this.listData.handoutsId;
|
|
|
},
|
|
|
openJYActiveBox() {
|
|
|
+ this.getJyData(2);
|
|
|
this.jYactiveBoxs = true;
|
|
|
this.templateRadio = this.handoutsIdTable;
|
|
|
},
|
|
|
@@ -2211,13 +2290,14 @@ export default {
|
|
|
this.newMajorOption = newMajorOption;
|
|
|
}
|
|
|
});
|
|
|
- if(this.listData.goodsType === 1){
|
|
|
- this.tableData = []
|
|
|
- this.auditionList = []
|
|
|
+ if (this.listData.goodsType === 1) {
|
|
|
+ this.tableData = [];
|
|
|
+ this.auditionList = [];
|
|
|
+ this.listData.handoutsId = "";
|
|
|
}
|
|
|
- if(this.listData.goodsType === 2){
|
|
|
- this.tableData2 = []
|
|
|
- this.examConfigList = []
|
|
|
+ if (this.listData.goodsType === 2) {
|
|
|
+ this.tableData2 = [];
|
|
|
+ this.examConfigList = [];
|
|
|
}
|
|
|
},
|
|
|
getImgFile() {
|
|
|
@@ -2292,6 +2372,12 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
rulesTableSumbit(int) {
|
|
|
+ this.disabledBtn = true
|
|
|
+ setTimeout(()=>{
|
|
|
+ if(this.disabledBtn){
|
|
|
+ this.disabledBtn = false
|
|
|
+ }
|
|
|
+ },3000)
|
|
|
var datas = JSON.parse(JSON.stringify(this.listData));
|
|
|
if (int === 2) {
|
|
|
datas.goodsStatus = 1;
|
|
|
@@ -2386,7 +2472,9 @@ export default {
|
|
|
setTimeout(() => {
|
|
|
this.$router.go(-1);
|
|
|
}, 300);
|
|
|
- });
|
|
|
+ }).catch(()=>{
|
|
|
+ this.disabledBtn = false
|
|
|
+ })
|
|
|
} else if (this.listData.goodsType === 2) {
|
|
|
var courseIdList = [];
|
|
|
this.tableData2.map((item) => {
|
|
|
@@ -2428,21 +2516,27 @@ export default {
|
|
|
setTimeout(() => {
|
|
|
this.$router.go(-1);
|
|
|
}, 300);
|
|
|
- });
|
|
|
+ }).catch(()=>{
|
|
|
+ this.disabledBtn = false
|
|
|
+ })
|
|
|
} else if (this.listData.goodsType === 3) {
|
|
|
this.$api.addGoodsmake(datas).then((res) => {
|
|
|
this.$message.success("新增成功");
|
|
|
setTimeout(() => {
|
|
|
this.$router.go(-1);
|
|
|
}, 300);
|
|
|
- });
|
|
|
+ }).catch(()=>{
|
|
|
+ this.disabledBtn = false
|
|
|
+ })
|
|
|
} else if (this.listData.goodsType === 4) {
|
|
|
this.$api.addGoodsfront(datas).then((res) => {
|
|
|
this.$message.success("新增成功");
|
|
|
setTimeout(() => {
|
|
|
this.$router.go(-1);
|
|
|
}, 300);
|
|
|
- });
|
|
|
+ }).catch(()=>{
|
|
|
+ this.disabledBtn = false
|
|
|
+ })
|
|
|
} else {
|
|
|
}
|
|
|
},
|
|
|
@@ -2523,6 +2617,7 @@ export default {
|
|
|
pageNum: 1,
|
|
|
educationTypeId: this.listData.educationTypeId,
|
|
|
businessId: this.listData.businessId,
|
|
|
+ publishStatus: 1,
|
|
|
};
|
|
|
}
|
|
|
this.$api.inquireCourseListS(this.formDatas).then((res) => {
|
|
|
@@ -2539,6 +2634,7 @@ export default {
|
|
|
status: 1,
|
|
|
pageSize: 10,
|
|
|
pageNum: 1,
|
|
|
+ publishStatus: 1,
|
|
|
};
|
|
|
if (this.listData.educationTypeId) {
|
|
|
data.educationTypeId = this.listData.educationTypeId;
|
|
|
@@ -2561,7 +2657,7 @@ export default {
|
|
|
self.$refs.searchBox.changeEducationType(
|
|
|
self.listData.educationTypeId
|
|
|
);
|
|
|
- self.formDatas.businessId = self.listData.businessId;
|
|
|
+ // self.formDatas.businessId = self.listData.businessId;
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
@@ -2633,14 +2729,14 @@ export default {
|
|
|
this.formData3.pageNum = 1;
|
|
|
// this.formData3.educationTypeId = "";
|
|
|
// this.formData3.businessId = "";
|
|
|
- this.formData3.names = ''
|
|
|
+ this.formData3.names = "";
|
|
|
this.search3();
|
|
|
},
|
|
|
search3(int) {
|
|
|
var self = this;
|
|
|
- var data = JSON.parse(JSON.stringify(self.formData3))
|
|
|
- if (self.formData3.examType === 1) {
|
|
|
- data.moduleName = data.names
|
|
|
+ var data = JSON.parse(JSON.stringify(self.formData3));
|
|
|
+ if (data.examType === 1) {
|
|
|
+ data.moduleName = data.names;
|
|
|
self.$api.inquireBankModule(data).then((res) => {
|
|
|
res.rows.forEach((item) => {
|
|
|
item.ids = 1 + "-" + item.moduleExamId;
|
|
|
@@ -2648,24 +2744,38 @@ export default {
|
|
|
item.name = item.moduleName;
|
|
|
item.sort = 0;
|
|
|
});
|
|
|
+ var aList = [];
|
|
|
+ self.tableData2.map((item) => {
|
|
|
+ if (item.type === 1) {
|
|
|
+ aList.push(item.moduleExamId);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ self.disCheckList2.moduleCheck = aList;
|
|
|
self.boxtableData2 = res.rows;
|
|
|
self.total3 = res.total;
|
|
|
});
|
|
|
}
|
|
|
- if (self.formData3.examType === 2) {
|
|
|
- data.name = data.names
|
|
|
+ if (data.examType === 2) {
|
|
|
+ data.name = data.names;
|
|
|
self.$api.inquirebankchapterList(data).then((res) => {
|
|
|
res.rows.forEach((item) => {
|
|
|
item.ids = 2 + "-" + item.chapterExamId;
|
|
|
item.sort = 0;
|
|
|
item.type = 2;
|
|
|
});
|
|
|
+ var aList = [];
|
|
|
+ self.tableData2.map((item) => {
|
|
|
+ if (item.type === 2) {
|
|
|
+ aList.push(item.chapterExamId);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ self.disCheckList2.chapterCheck = aList;
|
|
|
self.boxtableData2 = res.rows;
|
|
|
self.total3 = res.total;
|
|
|
});
|
|
|
}
|
|
|
- if (self.formData3.examType === 3) {
|
|
|
- data.examName = data.names
|
|
|
+ if (data.examType === 3) {
|
|
|
+ data.examName = data.names;
|
|
|
self.$api.inquirebankexamList(data).then((res) => {
|
|
|
res.rows.forEach((item) => {
|
|
|
item.ids = 3 + "-" + item.examId;
|
|
|
@@ -2673,6 +2783,13 @@ export default {
|
|
|
item.type = 3;
|
|
|
item.name = item.examName;
|
|
|
});
|
|
|
+ var aList = [];
|
|
|
+ self.tableData2.map((item) => {
|
|
|
+ if (item.type === 3) {
|
|
|
+ aList.push(item.examId);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ self.disCheckList2.examCheck = aList;
|
|
|
self.boxtableData2 = res.rows;
|
|
|
self.total3 = res.total;
|
|
|
});
|
|
|
@@ -2680,7 +2797,6 @@ export default {
|
|
|
},
|
|
|
editAddBoxs2(int) {
|
|
|
var self = this;
|
|
|
- self.formData3.examType = 1
|
|
|
var data = JSON.parse(JSON.stringify(this.formData3));
|
|
|
if (this.listData.educationTypeId) {
|
|
|
data.educationTypeId = this.listData.educationTypeId;
|
|
|
@@ -2689,7 +2805,7 @@ export default {
|
|
|
if (this.listData.businessId) {
|
|
|
data.businessId = this.listData.businessId;
|
|
|
}
|
|
|
- if (self.formData3.examType === 1) {
|
|
|
+ if (data.examType === 1) {
|
|
|
self.$api.inquireBankModule(data).then((res) => {
|
|
|
var aList = [];
|
|
|
self.tableData2.map((item) => {
|
|
|
@@ -2697,12 +2813,12 @@ export default {
|
|
|
aList.push(item.moduleExamId);
|
|
|
}
|
|
|
});
|
|
|
- res.rows.forEach((item) => {
|
|
|
- item.ids = 1 + "-" + item.moduleExamId;
|
|
|
- item.type = 1;
|
|
|
- item.name = item.moduleName;
|
|
|
- item.sort = 0;
|
|
|
- });
|
|
|
+ for(let k = 0; k < res.rows.length;k++){
|
|
|
+ res.rows[k].ids = 1 + "-" + res.rows[k].moduleExamId;
|
|
|
+ res.rows[k].type = 1;
|
|
|
+ res.rows[k].name = res.rows[k].moduleName;
|
|
|
+ res.rows[k].sort = 0;
|
|
|
+ }
|
|
|
self.disCheckList2.moduleCheck = aList;
|
|
|
self.boxtableData2 = res.rows;
|
|
|
self.total3 = res.total;
|
|
|
@@ -2718,7 +2834,7 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
- if (self.formData3.examType === 2) {
|
|
|
+ if (data.examType === 2) {
|
|
|
self.$api.inquirebankchapterList(data).then((res) => {
|
|
|
var aList = [];
|
|
|
self.tableData2.map((item) => {
|
|
|
@@ -2726,11 +2842,11 @@ export default {
|
|
|
aList.push(item.chapterExamId);
|
|
|
}
|
|
|
});
|
|
|
- res.rows.forEach((item) => {
|
|
|
- item.ids = 2 + "-" + item.chapterExamId;
|
|
|
- item.sort = 0;
|
|
|
- item.type = 2;
|
|
|
- });
|
|
|
+ for(let k = 0; k < res.rows.length;k++){
|
|
|
+ res.rows[k].ids = 2 + "-" + res.rows[k].chapterExamId;
|
|
|
+ res.rows[k].sort = 0;
|
|
|
+ res.rows[k].type = 2;
|
|
|
+ }
|
|
|
self.disCheckList2.chapterCheck = aList;
|
|
|
self.boxtableData2 = res.rows;
|
|
|
self.total3 = res.total;
|
|
|
@@ -2746,7 +2862,7 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
- if (self.formData3.examType === 3) {
|
|
|
+ if (data.examType === 3) {
|
|
|
self.$api.inquirebankexamList(data).then((res) => {
|
|
|
var aList = [];
|
|
|
self.tableData2.map((item) => {
|
|
|
@@ -2754,12 +2870,12 @@ export default {
|
|
|
aList.push(item.examId);
|
|
|
}
|
|
|
});
|
|
|
- res.rows.forEach((item) => {
|
|
|
- item.ids = 3 + "-" + item.examId;
|
|
|
- item.sort = 0;
|
|
|
- item.type = 3;
|
|
|
- item.name = item.examName;
|
|
|
- });
|
|
|
+ for(let k = 0; k < res.rows.length;k++){
|
|
|
+ res.rows[k].ids = 3 + "-" + res.rows[k].examId;
|
|
|
+ res.rows[k].sort = 0;
|
|
|
+ res.rows[k].type = 3;
|
|
|
+ res.rows[k].name = res.rows[k].examName;
|
|
|
+ }
|
|
|
self.disCheckList2.examCheck = aList;
|
|
|
self.boxtableData2 = res.rows;
|
|
|
self.total3 = res.total;
|
|
|
@@ -2855,21 +2971,22 @@ export default {
|
|
|
this.activeLists2 = lis;
|
|
|
},
|
|
|
checkboxT2(row, index) {
|
|
|
- if (this.formData3.examType === 1) {
|
|
|
+ const asrty = row.ids.split("-").map(Number)[0]
|
|
|
+ if (asrty === 1) {
|
|
|
if (this.disCheckList2.moduleCheck.indexOf(row.moduleExamId) !== -1) {
|
|
|
return false;
|
|
|
} else {
|
|
|
return true;
|
|
|
}
|
|
|
}
|
|
|
- if (this.formData3.examType === 2) {
|
|
|
+ if (asrty === 2) {
|
|
|
if (this.disCheckList2.chapterCheck.indexOf(row.chapterExamId) !== -1) {
|
|
|
return false;
|
|
|
} else {
|
|
|
return true;
|
|
|
}
|
|
|
}
|
|
|
- if (this.formData3.examType === 3) {
|
|
|
+ if (asrty === 3) {
|
|
|
if (this.disCheckList2.examCheck.indexOf(row.examId) !== -1) {
|
|
|
return false;
|
|
|
} else {
|