瀏覽代碼

fix:管理员不显示

sunchengjie 9 月之前
父節點
當前提交
85f7bad5cb
共有 1 個文件被更改,包括 5 次插入1 次删除
  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) {