Browse Source

是否同节点复制

duy 2 years ago
parent
commit
c4e48a60c0
1 changed files with 10 additions and 1 deletions
  1. 10 1
      src/views/data-fill/division.vue

+ 10 - 1
src/views/data-fill/division.vue

@@ -776,7 +776,16 @@ const copyNodeClick = async () => {
         })
         classify = arr.join(',')
     }
-
+    //isSameNode 是否同节点 1=同节点,0=跨节点
+    if(table.length>0){
+        table.forEach((ele)=>{
+            if(ele.primaryKeyId===formCopyNodeModel.value.primaryKeyId){
+               ele.isSameNode =1 
+            }else{
+                ele.isSameNode =0
+            }
+        })
+    }
     //效验数据
     if (type === '1') {
         const validate = await formValidate(formCopyNodeModelRef.value)