谢杰标 2 rokov pred
rodič
commit
93f5d99b22

+ 13 - 2
src/views/Marketing/goods/commodityManageMent/poppleSetTKCOPY.vue

@@ -34,7 +34,11 @@
       >
         <span class="custom-tree-node" slot-scope="{ node }">
           <span>{{ node.label }}</span>
-          <span v-if="node.checked"
+          <span
+            v-if="
+              node.checked &&
+              !(node.paperName == '随机练习' || node.paperName == '每日一练')
+            "
             >试做前
             <el-input-number
               v-model="node.data.num"
@@ -87,6 +91,11 @@ export default {
     },
     inits() {
       this.datas = JSON.parse(JSON.stringify(this.copyData));
+      this.datas.map((e) => {
+        if (e.paperName == "随机练习" || e.paperName == "每日一练") {
+          e.disabled = true;
+        }
+      });
     },
     openExpand() {
       if (this.examConfigList) {
@@ -94,7 +103,7 @@ export default {
           JSON.stringify(this.examConfigList)
         );
         var arrays = this.examConfigList.map((item) => {
-          return item.TypeId
+          return item.TypeId;
         });
         this.$nextTick(() => {
           this.audition = arrays;
@@ -242,6 +251,8 @@ export default {
                     }
                   });
                 }
+                item.disabled =
+                  item.paperName == "随机练习" || item.paperName == "每日一练";
                 item.hasChildren = false;
               });
               return resolve(res.data);