Przeglądaj źródła

fix:管理员不显示

sunchengjie 9 miesięcy temu
rodzic
commit
85f7bad5cb
1 zmienionych plików z 5 dodań i 1 usunięć
  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) {