Browse Source

上级渠道下拉列表支出既可以根据名称匹配,也可以根据手机号码匹配

guanglong 3 years ago
parent
commit
e1d53a00f0
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/views/business/salesite/index.vue

+ 2 - 1
src/views/business/salesite/index.vue

@@ -331,7 +331,8 @@ export default {
       if (val) { //val存在
       if (val) { //val存在
         this.channelList = this.channelCopyList.filter((item) => {
         this.channelList = this.channelCopyList.filter((item) => {
           // console.log("dataFilter item"+JSON.stringify(item))
           // console.log("dataFilter item"+JSON.stringify(item))
-          if (!!~item.mobile.indexOf(val) || !!~item.mobile.toUpperCase().indexOf(val.toUpperCase())) {
+          if (!!~item.mobile.indexOf(val) || !!~item.mobile.toUpperCase().indexOf(val.toUpperCase())
+                 || !!~item.name.indexOf(val) || !!~item.name.indexOf(val)) {
              return true
              return true
           }
           }
         })
         })