duy 2 жил өмнө
parent
commit
36dd2a2851

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

@@ -470,9 +470,10 @@ const getSearchNodeTablesall = async (type,newaddId) => {
 
 
 }
 }
 //改变原始数据复制隐藏本表的状态
 //改变原始数据复制隐藏本表的状态
-
+const newId=ref('')
 //获取数据
 //获取数据
 const getTableDataAll = (newaddId) => {
 const getTableDataAll = (newaddId) => {
+    newId.value=newaddId
     getSearchNodeTables(newaddId)
     getSearchNodeTables(newaddId)
     queryNodeStatus(newaddId)
     queryNodeStatus(newaddId)
     getSearchNodeTablesall(1,newaddId)
     getSearchNodeTablesall(1,newaddId)
@@ -1353,7 +1354,7 @@ const reportModalClick = async () => {
 //多表预览
 //多表预览
 const bussPdfsLoading = ref(false)
 const bussPdfsLoading = ref(false)
 const nodeIdvalue = ref('')
 const nodeIdvalue = ref('')
-const bussPdfsClick = async (nodeId) => {
+const bussPdfsClick = async (nodeId,newaddId) => {
     bussPdfsLoading.value = true
     bussPdfsLoading.value = true
     const {error, code, data} = await dataApi.getBussPdfs({
     const {error, code, data} = await dataApi.getBussPdfs({
         projectId: projectId.value,
         projectId: projectId.value,
@@ -1361,7 +1362,7 @@ const bussPdfsClick = async (nodeId) => {
         classify: authBtnTabKey.value,
         classify: authBtnTabKey.value,
         tableType: tabTypeKey.value,
         tableType: tabTypeKey.value,
         // nodeId: router.currentRoute.value.query.id,
         // nodeId: router.currentRoute.value.query.id,
-        nodeId: nodeId,
+        nodeId: nodeId||newId.value,
     })
     })
     bussPdfsLoading.value = false
     bussPdfsLoading.value = false
     if (!error && code === 200) {
     if (!error && code === 200) {