From 0fa59e97c2e87bd7391be3089e46bd80a943e48d Mon Sep 17 00:00:00 2001
From: weidy <lastanimals@163.com>
Date: 星期四, 06 七月 2023 20:04:09 +0800
Subject: [PATCH] 生命周期的换字段

---
 Source/UBCS-WEB/src/components/refer/vciWebReferDefalut.vue |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/refer/vciWebReferDefalut.vue b/Source/UBCS-WEB/src/components/refer/vciWebReferDefalut.vue
index 690e721..18bf484 100644
--- a/Source/UBCS-WEB/src/components/refer/vciWebReferDefalut.vue
+++ b/Source/UBCS-WEB/src/components/refer/vciWebReferDefalut.vue
@@ -81,8 +81,8 @@
   },
   created() {
     this.getParams();
-    console.log('referConfig:')
-    console.log(this.referConfig)
+    // console.log('referConfig:')
+    // console.log(this.referConfig)
   },
   mounted() {
     if(this.referConfig.options.page){
@@ -272,8 +272,7 @@
         var query={}
         if (this.query) {
           for (var key in this.query) {
-            query['conditionMap["' + key + '"]'] = '*'+this.query[key]+'*';
-            query[key]='*'+this.query[key]+'*';
+            query['conditionMap["' + key + '"]'] = this.query[key];
           }
         }
         getList(Object.assign(params,this.params,this.query, query),page.currentPage, page.pageSize, this.url).then(res => {
@@ -281,6 +280,9 @@
           this.page.total=res.data.total
           this.loading = false;
           this.selectionClear();
+        }).catch(error=>{
+          this.$message.error(error);
+          this.loading = false;
         });
       }
 

--
Gitblit v1.9.3