From 7f251396c21cc2c68075a533921df728bf2b6d3f Mon Sep 17 00:00:00 2001
From: 赵士淞 <zhaoss@yhzhg.cn>
Date: Thu, 15 Dec 2022 05:21:01 +0000
Subject: [PATCH] 级别管理

---
 eladmin-web-master/src/views/system/user/index.vue |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/eladmin-web-master/src/views/system/user/index.vue b/eladmin-web-master/src/views/system/user/index.vue
index d74717c..00420e1 100644
--- a/eladmin-web-master/src/views/system/user/index.vue
+++ b/eladmin-web-master/src/views/system/user/index.vue
@@ -97,6 +97,7 @@
                   :key="item.name"
                   :label="item.name"
                   :value="item.id"
+                  :disabled="!item.enabled"
                 />
               </el-select>
             </el-form-item>
@@ -192,7 +193,7 @@
 import { isvalidPhone } from '@/utils/validate'
 import { getDepts, getDeptSuperior } from '@/api/system/dept'
 import { getAll, getLevel } from '@/api/system/role'
-import { getAllJob } from '@/api/system/job'
+import crudJob from '@/api/system/job'
 import CRUD, { presenter, header, form, crud } from '@crud/crud'
 import rrOperation from '@crud/RR.operation'
 import crudOperation from '@crud/CRUD.operation'
@@ -460,8 +461,8 @@
     },
     // 获取弹窗内岗位数据
     getJobs() {
-      getAllJob().then(res => {
-        this.jobs = res.content
+      crudJob.getAll().then(res => {
+        this.jobs = res
       }).catch(() => { })
     },
     // 获取权限级别

--
Gitblit v1.9.3