From e908aead856e1da187a27ae6b5f48eaf106d2acf Mon Sep 17 00:00:00 2001
From: 石广澎 <shiguangpeng@163.com>
Date: 星期六, 02 十二月 2023 20:30:13 +0800
Subject: [PATCH] fix: 库存预警编辑问题修复

---
 admin-web/src/views/systemManger/server/user/edit.vue |   36 +++++++++++++++++++-----------------
 1 files changed, 19 insertions(+), 17 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..395ee74 100644
--- a/admin-web/src/views/systemManger/server/user/edit.vue
+++ b/admin-web/src/views/systemManger/server/user/edit.vue
@@ -66,14 +66,14 @@
 </template>
 
 <script>
-    import winSm from '@/components/win/win-sm'
-    import myButton from '@/components/myButton/myButton'
-    import * as DateFormatter from '@/utils/DateFormatter'
-    import * as role from "@/api/system/role";
-    import * as user from "@/api/user";
-    import {departmentListAll} from "@/api/system/deptment";
+import winSm from '@/components/win/win-sm'
+import myButton from '@/components/myButton/myButton'
+import * as DateFormatter from '@/utils/DateFormatter'
+import * as role from "@/api/system/role";
+import * as user from "@/api/user";
+import {departmentListAll} from "@/api/system/deptment";
 
-    export default {
+export default {
         components: {winSm, myButton},
         props: {
             // setting 涓』鑷冲皯鍖呭惈鎺у埗dialog鏄剧ず鎴栭殣钘忕殑灞炴��,鍏朵綑灞炴�у彲鎷撳睍
@@ -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