Pārlūkot izejas kodu

预览完整pdf

duy 2 gadi atpakaļ
vecāks
revīzija
36dd2a2851
1 mainītis faili ar 4 papildinājumiem un 3 dzēšanām
  1. 4 3
      src/views/tentative/detect/test-form.vue

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

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