8
0
duy 8 сар өмнө
parent
commit
476d5e3e03

+ 9 - 1
src/views/project/list/independent/index.vue

@@ -37,7 +37,7 @@
         <!-- 引用元素表 -->
         <quteElePage v-model="quteEleShow" :project-id="projectId" @close="quteEleClose" />
         <!-- 关联清表 -->
-        <HcAssociationList v-model="isAssociationShow" :info="associationInfo" :type="2" />
+        <HcAssociationList v-model="isAssociationShow" :info="associationInfo" :type="2" @close="linkClose" />
         <!-- 编辑元素 -->
         <HcEditElement v-model="isEditElementShow" :info="editElementInfo" :data="editElementData" :type="2" @to-page="editElementToPage" />
         <!-- 调整表单 -->
@@ -248,6 +248,12 @@ const linkExcelClick = async (item) => {
     await nextTick()
     isAssociationShow.value = true
 }
+const linkClose = ()=>{
+    isAssociationShow.value = false
+
+    getTableData().then()
+    refreshTree()
+}
 
 //公式配置
 const elementFormulasObj = ref({})
@@ -406,6 +412,8 @@ const batchDel = async () => {
         if (!isRes) return
         window.$message.success('删除成功')
         getTableData().then()
+        refreshTree()
+      
     })
 }