Browse Source

组件查询修改

lichao 3 years ago
parent
commit
774074c094

+ 2 - 2
src/components/goodsSelect/index.vue

@@ -1,7 +1,7 @@
 <template>
   <span class="select-component" style="display:inline-flex;width: 100%;">
     <el-select
-      v-model="value"
+      v-model.trim="value"
       size="small"
       :placeholder="configuration.placeholder"
       style="border-right: none;width: 100%"
@@ -226,7 +226,7 @@ export default {
     },
     //点击搜索按钮触发
     searchChange(params, done) {
-      console.log(params)
+      this.treeDeptId = '';
       this.page.currentPage = 1;
       this.onLoad(this.page, params);
       done()

+ 2 - 1
src/components/selectComponent/customerSelect.vue

@@ -1,7 +1,7 @@
 <template>
   <span class="select-component" style="display:inline-flex;width: 100%;">
     <el-select
-        v-model="value"
+        v-model.trim="value"
         size="small"
         :placeholder="configuration.placeholder"
         style="border-right: none;width: 100%"
@@ -227,6 +227,7 @@ export default {
     //点击搜索按钮触发
     searchChange(params, done) {
       console.log(params)
+      this.treeDeptId = '';
       this.page.currentPage = 1;
       this.onLoad(this.page, params);
       done()

+ 2 - 2
src/components/warehouseSelect/index.vue

@@ -1,7 +1,7 @@
 <template>
   <span class="select-component" style="display:inline-flex;width: 100%;">
     <el-select
-      v-model="value"
+      v-model.trim="value"
       size="small"
       :placeholder="configuration.placeholder"
       style="border-right: none;width: 100%"
@@ -202,7 +202,7 @@ export default {
     },
     //点击搜索按钮触发
     searchChange(params, done) {
-      console.log(params)
+      this.treeDeptId = '';
       this.page.currentPage = 1;
       this.onLoad(this.page, params);
       done()