|
@@ -190,7 +190,12 @@
|
|
|
/>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button @click="dialogVisible = false">取 消</el-button>
|
|
|
- <el-button type="primary" @click="submitForm" :disabled="activeLists.length === 0">确 定</el-button>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ @click="submitForm"
|
|
|
+ :disabled="activeLists.length === 0"
|
|
|
+ >确 定</el-button
|
|
|
+ >
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
<el-dialog
|
|
@@ -606,7 +611,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
initSort() {
|
|
|
- this.sortList = JSON.parse(JSON.stringify(this.tableDataInfos));
|
|
|
+ this.sortList = JSON.parse(JSON.stringify(this.tableDataInfos));
|
|
|
},
|
|
|
submitTableBoxs() {
|
|
|
let arr = this.sortList.map((items) => {
|
|
@@ -650,12 +655,12 @@ export default {
|
|
|
//1确定关联试卷弹窗
|
|
|
submitExam() {
|
|
|
if (!this.templateRadio && !this.goodsName) {
|
|
|
- console.log(this.menuExamList,'this.menuExamList111111');
|
|
|
+ console.log(this.menuExamList, "this.menuExamList111111");
|
|
|
this.menuExamList = this.menuExamList.filter((item) => {
|
|
|
return item.onlyId != this.onlyId;
|
|
|
});
|
|
|
} else {
|
|
|
- console.log(this.menuExamList,'this.menuExamList222222');
|
|
|
+ console.log(this.menuExamList, "this.menuExamList222222");
|
|
|
var arrays = {};
|
|
|
let ast = this.onlyId.split("-").map(Number);
|
|
|
arrays = {
|
|
@@ -684,7 +689,7 @@ export default {
|
|
|
},
|
|
|
//开启关联试卷盒子
|
|
|
openExamBox(node, item) {
|
|
|
- console.log(this.tableDataInfos,'this.tableDataInfos');
|
|
|
+ console.log(this.tableDataInfos, "this.tableDataInfos");
|
|
|
var ints = item.id.split("-").map(Number);
|
|
|
var arr = [];
|
|
|
if (ints[0] === 1) {
|
|
@@ -799,6 +804,7 @@ export default {
|
|
|
data.businessId = this.pageInfo.businessId;
|
|
|
data.subjectId = this.pageInfo.subjectId;
|
|
|
data.name = this.formData6.name;
|
|
|
+ data.exclude = 1;
|
|
|
this.$api.inquirebankexamList(data).then((res) => {
|
|
|
this.tableDataExam = res.rows;
|
|
|
this.total6 = res.total;
|
|
@@ -844,7 +850,7 @@ export default {
|
|
|
this.centerDialogVisible = false;
|
|
|
this.dialogVisible = true;
|
|
|
this.$nextTick(function () {
|
|
|
- self.activeLists = []
|
|
|
+ self.activeLists = [];
|
|
|
self.$refs.multipleTable.clearSelection();
|
|
|
});
|
|
|
},
|
|
@@ -1037,7 +1043,7 @@ export default {
|
|
|
var array = [];
|
|
|
array = this.tableDataInfos.map((item) => {
|
|
|
if (item.type === this.radio) {
|
|
|
- return item.CodeId
|
|
|
+ return item.CodeId;
|
|
|
}
|
|
|
});
|
|
|
if (
|
|
@@ -1245,17 +1251,21 @@ export default {
|
|
|
sort: item.sort,
|
|
|
});
|
|
|
});
|
|
|
- if(this.menuExamList && this.menuExamList.length > 0){
|
|
|
- this.menuExamList.forEach((item) => {
|
|
|
- if(item.moduleId != 0 && item.sectionId == 0 && item.chapterId == 0){
|
|
|
- item.type = 3
|
|
|
- }else if(item.sectionId != 0){
|
|
|
- item.type = 2
|
|
|
- }else{
|
|
|
- item.type = 1
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
+ if (this.menuExamList && this.menuExamList.length > 0) {
|
|
|
+ this.menuExamList.forEach((item) => {
|
|
|
+ if (
|
|
|
+ item.moduleId != 0 &&
|
|
|
+ item.sectionId == 0 &&
|
|
|
+ item.chapterId == 0
|
|
|
+ ) {
|
|
|
+ item.type = 3;
|
|
|
+ } else if (item.sectionId != 0) {
|
|
|
+ item.type = 2;
|
|
|
+ } else {
|
|
|
+ item.type = 1;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
var data = {
|
|
|
courseId: Number(this.$route.query.id),
|
|
|
menuExamList: this.menuExamList,
|