From 5d745c2c8854d2c1e94e5ee9004d5219681f6d7c Mon Sep 17 00:00:00 2001
From: 石广澎 <shiguangpeng@163.com>
Date: 星期五, 29 十二月 2023 11:02:50 +0800
Subject: [PATCH] 增加图片验证码和登录日志

---
 admin-web/src/views/systemManger/server/user/edit.vue |   37 +++++++++++++++++++------------------
 1 files changed, 19 insertions(+), 18 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..9e4d187 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鏄剧ず鎴栭殣钘忕殑灞炴��,鍏朵綑灞炴�у彲鎷撳睍
@@ -121,7 +121,7 @@
                 },
                 rules: {
                     sysDeptId: [
-                        {required: true, message: '璇疯緭鍏�', trigger: 'blur'}
+                        {required: true, message: '璇烽�夋嫨閮ㄩ棬', trigger: 'change'}
                     ],
                     userName: [
                         {required: true, message: '璇疯緭鍏ヤ汉鍛樺鍚�', trigger: 'blur'}
@@ -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