Преглед на файлове

团队数据模糊查询

洪海涛 преди 4 години
родител
ревизия
998065b6ba
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      src/views/monthlyReport/childrenPage/editReport/components/Cascader.vue

+ 2 - 1
src/views/monthlyReport/childrenPage/editReport/components/Cascader.vue

@@ -68,7 +68,8 @@ export default {
               this.$set(this.options, this.options.length, elm)
             }
           }
-          if (key === 'label' && `${elm[key]}`.indexOf(`${id}`) > -1) {
+          const reg = new RegExp(id, 'i')
+          if (key === 'label' && reg.test(`${elm[key]}`)) {
             if (this.isHave(`${id}`) < 0 && elm.valid) {
               this.$set(this.options, this.options.length, elm)
             }