lilei 2 лет назад
Родитель
Сommit
d8e3e23340
2 измененных файлов с 4 добавлено и 2 удалено
  1. 1 1
      public/version.json
  2. 3 1
      src/views/common/custList.vue

+ 1 - 1
public/version.json

@@ -1,5 +1,5 @@
 {
   "message": "发现有新版本发布,确定更新系统?",
   "vendorJsVersion": "",
-  "version": 1682232221302
+  "version": 1682233691838
 }

+ 3 - 1
src/views/common/custList.vue

@@ -83,7 +83,7 @@ export default {
       if (this.itemSn) {
         params.customerSn = this.itemSn
       } else {
-        params.queryWord = dealerName
+        params.queryWord = dealerName.replace(/\s+/g,'')
       }
       if (this.isEnabled) {
         params.enabledFlag = 1
@@ -99,9 +99,11 @@ export default {
     },
     handleChange (value) {
       if (value && value.key) {
+        value.key = value.key.replace(/\s+/g,'')
         const ind = this.data.findIndex(item => item.customerName == value.key)
         value.row = ind != -1 ? this.data[ind] : undefined
       }
+      
       Object.assign(this, {
         dealerName: value,
         data: [],