Explorar o código

半选节点也要传

duy %!s(int64=2) %!d(string=hai) anos
pai
achega
4b75fe017c
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  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) {