Ver código fonte

勾选相关联试验不传父节点

duy 1 ano atrás
pai
commit
89b0cec1e0
1 arquivos alterados com 3 adições e 3 exclusões
  1. 3 3
      src/views/manager/projectinfo/tree.vue

+ 3 - 3
src/views/manager/projectinfo/tree.vue

@@ -2006,7 +2006,7 @@ export default {
         } else {
           this.nodeDetail = Object.assign({}, res.data.data);
         
-          // this.mixRatioTestIds = this.toSplit(res.data.data.mixRatioTestIds);
+          this.mixRatioTestIds = this.toSplit(res.data.data.mixRatioTestIds);
         }
         this.nodeDetail.type = 1; //	'1'节点 '2'表单
         this.nodeDetail.wbsId = this.id;
@@ -2303,8 +2303,8 @@ export default {
       return arr ? arr.join() : "";
     },
     TestTreeCheckChange(_, { checkedKeys, halfCheckedKeys }) {
-      const newarr = [...checkedKeys, ...halfCheckedKeys];
-      //  const newarr = [...checkedKeys]
+      // const newarr = [...checkedKeys, ...halfCheckedKeys];
+       const newarr = [...checkedKeys]
       this.nodeDetail.mixRatioTestIds = this.toJoin(newarr);
      
     },