From 344ada5bc3e41c5fb42ae0e8ac590b64b7cb04ca Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期六, 24 二月 2024 20:30:16 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 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