Browse Source

资料查询提示

duy 1 year ago
parent
commit
20abadd93d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/views/data-fill/query.vue

+ 2 - 1
src/views/data-fill/query.vue

@@ -568,7 +568,7 @@ const getTableData = async () => {
         tableLoading.value = true
 
         // const classifyType = getContractTypeKey();
-        const { error, code, data } = await queryApi.getPageData({
+        const { error, code, data, msg } = await queryApi.getPageData({
             projectId: projectId.value,
             contractId: contractId.value,
             ...searchForm.value,
@@ -580,6 +580,7 @@ const getTableData = async () => {
             tableListData.value = getArrValue(data['records'])
             searchForm.value.total = data.total || 0
         } else {
+            window.$message?.error(msg)
             tableListData.value = []
             searchForm.value.total = 0
         }