mo 2 лет назад
Родитель
Сommit
b89e6375e6

+ 2 - 2
src/components/remote-search/index.vue

@@ -114,7 +114,8 @@ export default {
               item.userName
                 .toLowerCase()
                 .indexOf(query.toString().toLowerCase()) > -1 ||
-              item.userId == query;
+              item.userId == query || item.mobile.indexOf(query) > -1  ;
+              // console.log(item.mobile,'query',query,item.mobile.indexOf(query))
             if (this.multiple) {
               return flag || this.value.includes(item.userId);
             } else {
@@ -128,7 +129,6 @@ export default {
         try {
           await this.getList();
           const optionids = this.options.map((item) => item.userId);
-
           const valueItem = this.listById[this.value];
           if (!optionids.includes(this.value) && valueItem) {
             this.options.push(valueItem);

+ 2 - 0
src/views/smallStudentManager/components/index.vue

@@ -10,6 +10,7 @@
             </el-button> -->
           </div>
         </template>
+        <div v-if="activeNames">
         <el-row class="rows" :gutter="20">
           <el-col :xs="24" :sm="24" :md="24" :lg="12" :xl="12">
             <sleep :data="statistic" />
@@ -24,6 +25,7 @@
             <studentChange :groupType="groupType" />
           </el-col>
         </el-row>
+      </div>
       </el-collapse-item>
     </el-collapse>
     <div v-show="false">{{ isSearchs }}</div>