Browse Source

台账提示

liuyc 8 months ago
parent
commit
54488415aa
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/views/ledger/components/construction.vue

+ 2 - 1
src/views/ledger/components/construction.vue

@@ -155,7 +155,7 @@ const tableConstructionData = ref([])
 const tableConstructionLoading = ref(false)
 const tableConstructionLoading = ref(false)
 const getTableConstructionData = async () => {
 const getTableConstructionData = async () => {
     tableConstructionLoading.value = true
     tableConstructionLoading.value = true
-    const { error, code, data } = await constructionApi.queryConstructionPage({
+    const { error, code, data ,msg } = await constructionApi.queryConstructionPage({
         ...searchConstructionForm.value,
         ...searchConstructionForm.value,
         projectId: projectId.value,
         projectId: projectId.value,
     })
     })
@@ -167,6 +167,7 @@ const getTableConstructionData = async () => {
     } else {
     } else {
         tableConstructionData.value = []
         tableConstructionData.value = []
         searchConstructionForm.value.total = 0
         searchConstructionForm.value.total = 0
+        window?.$message?.error(msg)
     }
     }
 }
 }