From 24fc98301c0b38a76b7d5aa704fe79a2e385e584 Mon Sep 17 00:00:00 2001
From: 石广澎 <shiguangpeng@163.com>
Date: 星期三, 29 十一月 2023 14:20:41 +0800
Subject: [PATCH] feat: 1、物品分发部门查询 2、分发新增数量校验

---
 admin-web/src/views/systemManger/server/user/edit.vue |   22 ++++++++++++----------
 1 files changed, 12 insertions(+), 10 deletions(-)

diff --git a/admin-web/src/views/systemManger/server/user/edit.vue b/admin-web/src/views/systemManger/server/user/edit.vue
index 14efd94..a97169d 100644
--- a/admin-web/src/views/systemManger/server/user/edit.vue
+++ b/admin-web/src/views/systemManger/server/user/edit.vue
@@ -87,6 +87,7 @@
         },
         data() {
             return {
+                deptmentOptions:[],
                 checkAll: false,
                 checkedList: [],
                 roleList: [
@@ -148,17 +149,18 @@
         methods: {
             // 鑾峰彇鎵�鏈夎鑹�
             getAllRole() {
-              const user = this.$store.getters.userInfo
+              // const user = this.$store.getters.userInfo
+              // this.data_scope = 1
+              // if (user.lv == 1) {
+              //   this.data_scope = 1
+              // }
+              // if (user.lv == 2) {
+              //   this.data_scope = 2
+              // }
+              // if (user.lv == 3) {
+              //   this.data_scope = 3
+              // }
               this.data_scope = 1
-              if (user.lv == 1) {
-                this.data_scope = 1
-              }
-              if (user.lv == 2) {
-                this.data_scope = 2
-              }
-              if (user.lv == 3) {
-                this.data_scope = 3
-              }
               role.listRoleByDataScope({dataScope: this.data_scope}).then(response => {
                   if (response) {
                     this.roleOptions = response;

--
Gitblit v1.9.1