lilei 2 years ago
parent
commit
d4d543d890
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/views/common/custList.vue

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

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