2 Commits 7bb31aebd2 ... ff3d2130eb

Author SHA1 Message Date
  duy ff3d2130eb 修改 5 months ago
  duy 77bb7c37c0 更改 5 months ago
2 changed files with 7 additions and 1 deletions
  1. 1 1
      src/api/modules/data-fill/query.js
  2. 6 0
      src/views/data-fill/query.vue

+ 1 - 1
src/api/modules/data-fill/query.js

@@ -21,7 +21,7 @@ export default {
     async getFileUser(form) {
         return HcApi({
             url: '/api/blade-business/informationWriteQuery/getFileUserByContractId',
-            method: 'post',
+            method: 'get',
             params: form,
         })
     },

+ 6 - 0
src/views/data-fill/query.vue

@@ -416,7 +416,9 @@ const wbsElTreeClick = ({ node, data, keys }) => {
         searchForm.value.contractIdRelation = ''
     }
     searchForm.value.current = 1
+    getFileUser()
     getTableData()
+  
 }
 
 //搜索条件
@@ -428,6 +430,10 @@ const reportBatchData = ref([]) //上报批次
 //获取所有填报人
 const getFileUser = async () => {
     const info = nodeDataInfo.value
+    if (!info) {
+        window.$message?.warning('请先点击左侧节点')
+        return
+    }
     const { error, code, data } = await queryApi.getFileUser({
         // contractId: contractId.value,
         contractId: contractInfo.value?.contractType === 2 ? info?.contractIdRelation : contractId.value,