Procházet zdrojové kódy

fix:管理员不显示

sunchengjie před 9 měsíci
rodič
revize
85f7bad5cb
1 změnil soubory, kde provedl 5 přidání a 1 odebrání
  1. 5 1
      src/pages/new/storage.vue

+ 5 - 1
src/pages/new/storage.vue

@@ -208,7 +208,11 @@ export default {
         // 搜索关键
         async searchCrux() {
             const res = await appGetEmployeeInfoByPhone({ inquire: this.searchKey }, { emulateJSON: true, loading: true, message: '获取数据中...' })
-            this.searchKeyList = res.employeeInfo
+            const employeeInfoVlaue = res.employeeInfo.filter((item) => {
+                return item.role && !item.role.includes("管理员"); 
+            })
+            console.log(employeeInfoVlaue)
+            this.searchKeyList = employeeInfoVlaue
         },
         // 点击group
         onGroup(item) {