From 7f5f81e4e66657b543e2e62c78a037c7c5223b02 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期三, 13 九月 2023 09:01:33 +0800
Subject: [PATCH] 代码提交

---
 Source/UBCS-WEB/src/components/dockingSearch/VciDockingSearch.vue |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/dockingSearch/VciDockingSearch.vue b/Source/UBCS-WEB/src/components/dockingSearch/VciDockingSearch.vue
index e34488d..652907c 100644
--- a/Source/UBCS-WEB/src/components/dockingSearch/VciDockingSearch.vue
+++ b/Source/UBCS-WEB/src/components/dockingSearch/VciDockingSearch.vue
@@ -4,7 +4,7 @@
 <!--      闆嗘垚鏃ュ織 浠诲姟 鏁版嵁鍏ㄩ儴鍏敤-->
       <el-form-item label="闆嗘垚鏌ヨ:" size="small">
         <el-select v-model="formInline.type" placeholder="璇烽�夋嫨鍒嗙被" @change="SelectChange">
-          <el-option :label="item.label" :value="item.value" v-for="item in SearchObject.searchData" ></el-option>
+          <el-option :label="item.label" :value="item.value" :key="item.value" v-for="(item,index) in SearchObject.searchData"></el-option>
         </el-select>
       </el-form-item>
 <!--      闆嗘垚鏃ュ織 鏄惁鎴愬姛-->
@@ -64,7 +64,7 @@
       </el-form-item>
 <!--      鏌ヨ鎸夐挳-->
       <el-form-item size="small" v-if="shouldShowButton">
-        <el-button type="success" size="small">鏌ヨ</el-button>
+        <el-button type="success" size="small" @click="handleSearch">鏌ヨ</el-button>
       </el-form-item>
     </el-form>
   </div>
@@ -117,9 +117,13 @@
     },
     SaveHandler(){
       let name = this.SearchObject.searchData[this.formInline.type].prop;
-      getList(this.page.currentPage, this.page.pageSize, {[name]: this.formInline.text}).then(res => {
+      getList(this.page.currentPage, this.page.pageSize, { [`conditionMap['${name}_like']`]: this.formInline.text}).then(res => {
         console.log(res);
       });
+    },
+    handleSearch(){
+      let formattedDate = this.$moment(this.formInline.Date).format('YYYY-M-D');
+      console.log('formattedDate',formattedDate);
     }
   }
 }

--
Gitblit v1.9.3