From 9e890991a32479c0f8c0dd885862f2020947c6bd Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期五, 23 二月 2024 10:06:29 +0800
Subject: [PATCH] 主数据模块高级查询不生效bug

---
 Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue
index 7b9018a..e0e64c2 100644
--- a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue
+++ b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue
@@ -415,9 +415,8 @@
     },
     tableHeadDataFateher: {
       handler(newval, oldval) {
-        // console.log(newval)
-        if (newval.length > 0) {
-          this.options = newval.tableDefineVO.seniorQueryColumns
+        if (Object.keys(newval).length > 0) {
+          this.options = newval.tableDefineVO.seniorQueryColumns;
         }
       }
     },
@@ -623,12 +622,16 @@
     async submitSync() {
       if (this.SyncValue) {
         this.syncLoading = true;
-        const response = await syncSearch({enDate: this.SyncValue})
+        const response = await syncSearch({endDate: this.SyncValue})
         if (response.status === 200) {
           this.$message.success('鍚屾鎴愬姛锛�')
           this.syncLoading = false;
           this.syncDialogBox = false;
           this.SyncValue = "";
+        }else {
+          this.syncLoading = false;
+          this.syncDialogBox = false;
+          this.SyncValue = "";
         }
       } else {
         this.$message.warning('璇烽�夋嫨鏈�鍚庢洿鏂版椂闂达紒')

--
Gitblit v1.9.3