Sfoglia il codice sorgente

半选节点也要传

duy 2 anni fa
parent
commit
4b75fe017c
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 3 2
      src/views/manager/projectinfo/tree.vue

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

@@ -2281,9 +2281,10 @@ 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);
+      console.log(this.toJoin(newarr),'this.toJoin(newarr)');
     },
     filterChange() {
       if (this.treeData.length > 0) {