From 57da2e33a6d03cbf188b915144d1be553e622f1b Mon Sep 17 00:00:00 2001
From: zlyx <1242874891@qq.com>
Date: 星期四, 19 一月 2023 20:03:26 +0800
Subject: [PATCH] update 简化 stream 代码写法 (java 16) xx.collect(Collectors.toList()) => xx.toList() ; update 简化 instanceof 代码写法 (java 12) 直接在后面定义变量 ; update 简化 switch 代码写法 (java 12) ;

---
 ruoyi-ui/src/views/system/user/authRole.vue |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/ruoyi-ui/src/views/system/user/authRole.vue b/ruoyi-ui/src/views/system/user/authRole.vue
index 8e7f82a..7abe26a 100644
--- a/ruoyi-ui/src/views/system/user/authRole.vue
+++ b/ruoyi-ui/src/views/system/user/authRole.vue
@@ -9,7 +9,7 @@
           </el-form-item>
         </el-col>
         <el-col :span="8" :offset="2">
-          <el-form-item label="鐧诲綍璐﹀彿" prop="phonenumber">
+          <el-form-item label="鐧诲綍璐﹀彿" prop="userName">
             <el-input  v-model="form.userName" disabled />
           </el-form-item>
         </el-col>
@@ -103,14 +103,14 @@
       const userId = this.form.userId;
       const roleIds = this.roleIds.join(",");
       updateAuthRole({ userId: userId, roleIds: roleIds }).then((response) => {
-        this.msgSuccess("鎺堟潈鎴愬姛");
+        this.$modal.msgSuccess("鎺堟潈鎴愬姛");
         this.close();
       });
     },
     /** 鍏抽棴鎸夐挳 */
     close() {
-      this.$store.dispatch("tagsView/delView", this.$route);
-      this.$router.push({ path: "/system/user" });
+      const obj = { path: "/system/user" };
+      this.$tab.closeOpenPage(obj);
     },
   },
 };

--
Gitblit v1.9.3