Browse Source

刷新表格数据

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

+ 8 - 2
src/views/tentative/detect/test-form.vue

@@ -358,6 +358,7 @@ const alllistData = ref([])
 const orgAlllistData = ref([])
 const getSearchNodeTables = async (newaddId) => {
     isLoading.value = true
+    const isid=dataId.length > 0 ? dataId : nodeIdvalue.value||newaddId||''
     if (isaddType) {
         const {error, code, data} = await dataApi.searchNodeTables({
             id: dataId.length > 0 ? dataId : nodeIdvalue.value||newaddId,
@@ -366,7 +367,8 @@ const getSearchNodeTables = async (newaddId) => {
             primaryKeyId: nodeId,
             type: authBtnTabKey.value,
             tableType: tabTypeKey.value,
-            isAdd: 1
+            // isAdd: 1
+            isAdd: isid.length>0?'':1
         })
         //处理数据
         isLoading.value = false
@@ -414,6 +416,8 @@ const getSearchNodeTables = async (newaddId) => {
 }
 const getSearchNodeTablesall = async (type,newaddId) => {
     orgAlllistData.value = []
+    const isid=dataId.length > 0 ? dataId : nodeIdvalue.value||newaddId||''
+    console.log(isid,'isid');
     const {error, code, data} = await dataApi.searchNodeTables({
         id: dataId.length > 0 ? dataId : nodeIdvalue.value||newaddId,
         projectId: projectId.value,
@@ -422,7 +426,9 @@ const getSearchNodeTablesall = async (type,newaddId) => {
         type: authBtnTabKey.value,
         tableType: type,
         // isAdd: 1
-        isAdd: isaddType ? 1 : ''
+        // isAdd: isaddType ? 1 : ''
+        isAdd: isid.length>0?'':1
+       
     })
     //处理数据
     isLoading.value = false