From ce1d9926ff986e195fd4a58cb5159fc8f45b32a5 Mon Sep 17 00:00:00 2001
From: 石广澎 <shiguangpeng@163.com>
Date: 星期五, 01 十二月 2023 16:06:59 +0800
Subject: [PATCH] feat: 部门物品 1、报废单列表 2、报废明细 3、退回单列表 4、退回明细

---
 admin-web/src/views/systemManger/server/user/edit.vue |   35 ++++++++++++++++++-----------------
 1 files changed, 18 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 a68d1b5..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鏄剧ず鎴栭殣钘忕殑灞炴��,鍏朵綑灞炴�у彲鎷撳睍
@@ -149,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