duy 2 жил өмнө
parent
commit
8cf8680c23

+ 4 - 2
src/views/tentative/detect/test.vue

@@ -198,6 +198,7 @@ import {delMessage, rowsToId} from "~uti/tools";
 import {getDictionary} from "~api/other";
 import {getDictionary} from "~api/other";
 import { eVisaTaskCheckApi} from "~api/other"
 import { eVisaTaskCheckApi} from "~api/other"
 import wbsApi from "~api/data-fill/wbs"
 import wbsApi from "~api/data-fill/wbs"
+import { Loading } from "element-plus/es/components/loading/src/service";
 
 
 //变量
 //变量
 const router = useRouter()
 const router = useRouter()
@@ -268,6 +269,7 @@ const nodeDataInfo = ref({})
 const wbsElTreeClick = ({data, keys}) => {
 const wbsElTreeClick = ({data, keys}) => {
     nodeDataInfo.value = data
     nodeDataInfo.value = data
     primaryKeyId.value = data['primaryKeyId'] || ''
     primaryKeyId.value = data['primaryKeyId'] || ''
+  console.log(data,'data');
     setStoreData('testTreeItem',data)
     setStoreData('testTreeItem',data)
     //缓存自动展开
     //缓存自动展开
     treeAutoExpandKeys.value = keys
     treeAutoExpandKeys.value = keys
@@ -564,7 +566,7 @@ const reportPdfClick = async () => {
                 reportLoading.value = false
                 reportLoading.value = false
                 if (taskCheck) {
                 if (taskCheck) {
                     //初始弹出弹窗,防呆
                     //初始弹出弹窗,防呆
-                    reportIds.value = info['primaryKeyId'] 
+                    reportIds.value =  primaryKeyId.value 
                     reportAddition.value = {
                     reportAddition.value = {
                         classify: authBtnTabKey.value,
                         classify: authBtnTabKey.value,
                         contractIdRelation: info['contractIdRelation'],
                         contractIdRelation: info['contractIdRelation'],
@@ -573,7 +575,7 @@ const reportPdfClick = async () => {
                     //请求文件题名
                     //请求文件题名
                     const {data} = await wbsApi.queryDocumentTitle({
                     const {data} = await wbsApi.queryDocumentTitle({
                         // primaryKeyId: info['primaryKeyId'],
                         // primaryKeyId: info['primaryKeyId'],
-                        primaryKeyId:info['primaryKeyId'],
+                        primaryKeyId: primaryKeyId.value,
                         classify: authBtnTabKey.value
                         classify: authBtnTabKey.value
                     })
                     })
                     reportTaskName.value = isString(data)? data : ''
                     reportTaskName.value = isString(data)? data : ''