Browse Source

关联工程用途部位回显

duy 2 năm trước cách đây
mục cha
commit
e4bdcecc40
1 tập tin đã thay đổi với 14 bổ sung4 xóa
  1. 14 4
      src/views/tentative/detect/test-form.vue

+ 14 - 4
src/views/tentative/detect/test-form.vue

@@ -155,7 +155,8 @@
                          :h-props="treeProps" 
                          showCheckbox 
                          @check="divisionTreeCheck" 
-                         :defaultCheckedKeys="defaultCheckarrIds"/>
+                         :defaultCheckedKeys="defaultCheckarrIds"
+                         :checkStrictly="true"/>
                     </el-scrollbar>
                 </div>
             </div>
@@ -647,8 +648,12 @@ const linksRelateModalSave = async () => {
     let infodata = await getpositiondata()
     positiondata.value=infodata
     ListItemRef.value.changePositionInput(infodata)
-    window.$message?.success('操作成功')
-    linksRelateModal.value = false
+    if(infodata.length>0){
+         window.$message?.success('操作成功')
+        linksRelateModal.value = false
+    }
+   
+    
 
 
 }
@@ -959,7 +964,12 @@ const getpositiondata = async () => {
         contractId: contractId.value
 
     })
-    return data
+    if(!error && code === 200){
+       
+        return data
+        
+    }
+    
 }
 //关闭关联取样
 const linksSampleModalClose = () => {