Quellcode durchsuchen

排除每日一练

谢杰标 vor 2 Jahren
Ursprung
Commit
8e80297313

+ 7 - 4
src/views/education/mockTestManagement/mockExamArrangement/activeExam.vue

@@ -90,7 +90,9 @@
                   scope.row[item.prop3]
                 }}
               </span>
-              <span v-else-if="item.scope === 'fabStatus'">{{scope.row[item.prop] === 1 ? '已发布':'未发布'}}</span>
+              <span v-else-if="item.scope === 'fabStatus'">{{
+                scope.row[item.prop] === 1 ? "已发布" : "未发布"
+              }}</span>
               <span v-else>{{ scope.row[item.prop] }}</span></template
             >
           </el-table-column>
@@ -171,8 +173,8 @@ export default {
     };
   },
   methods: {
-    openBoxGoods(index, indexs,obj) {
-      this.getData = JSON.parse(JSON.stringify(obj))
+    openBoxGoods(index, indexs, obj) {
+      this.getData = JSON.parse(JSON.stringify(obj));
       this.$set(this.examActiveObj, "examId", obj.examId);
       this.$set(this.examActiveObj, "examName", obj.examName);
       this.index = index;
@@ -201,7 +203,7 @@ export default {
         .then((res) => {
           this.tableData = res.rows;
           this.total = res.total;
-          console.log(this.examActiveObj)
+          console.log(this.examActiveObj);
         })
         .finally(() => {
           this.loading = false;
@@ -216,6 +218,7 @@ export default {
         key: "",
         publishStatus: 1,
         status: 1,
+        exclude: 1,
         // paperName: "模考配的试卷",
       };
       this.getGoods();

+ 28 - 18
src/views/resource/videoManagement/courseManagement/chapterContent/index.vue

@@ -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,