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) {