From eeabe6e3b1d1dd8d55ff723ebfe3d45acecd0524 Mon Sep 17 00:00:00 2001
From: Caps <452713115@qq.com>
Date: Tue, 14 Apr 2020 15:16:52 +0800
Subject: [PATCH] =?UTF-8?q?=E8=A7=92=E8=89=B2=E7=AE=A1=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/user/AccountManager.vue | 8 +++++++-
src/pages/user/RoleManager.vue | 6 +++---
2 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/src/pages/user/AccountManager.vue b/src/pages/user/AccountManager.vue
index 8f1c25d..f5d4f27 100644
--- a/src/pages/user/AccountManager.vue
+++ b/src/pages/user/AccountManager.vue
@@ -179,12 +179,18 @@
changeRoleId: null,
updateAccountId: 0,
updateUserId: 0,
+ item:this.$route.query,
}
},
mounted: function () {
- this.listAccountInfoFunction();
this.listRoleInfo();
this.listOfShop();
+ debugger;
+ if(this.item != null){
+ //别的页面跳转过来
+ this.changeRoleId = this.item.id;
+ }
+ this.listAccountInfoFunction();
},
methods: {
//切页处理
diff --git a/src/pages/user/RoleManager.vue b/src/pages/user/RoleManager.vue
index 8b1da83..61f0776 100644
--- a/src/pages/user/RoleManager.vue
+++ b/src/pages/user/RoleManager.vue
@@ -98,7 +98,7 @@
{{item.name}}
{{item.number}}
+ @click="goToAccManagerPage(item)">{{item.number}}
@@ -424,8 +424,8 @@
}
},
//点击角色数字跳转到账号管理页面
- goToAccManagerPage: function () {
- this.$router.push({path: '/account/manager'});
+ goToAccManagerPage: function (item) {
+ this.$router.push({path: '/account/manager',query:item});
},
//选中角色
selectRole: function (id) {