diff --git a/src/pages/authority/roles.vue b/src/pages/authority/roles.vue index b49e6ade64b057a26575c815e670e7f865a98112..fb82c133acc99aa355498c52d3d8033cfdfaff25 100644 --- a/src/pages/authority/roles.vue +++ b/src/pages/authority/roles.vue @@ -50,6 +50,12 @@ export default { showDialog() { this.$refs.dialog.show(); }, + editItem(item) { + this.$router.push(`/authority/roles/edit/${item.id}`); + }, + allotItem(item) { + this.$router.push(`/authority/roles/allot/${item.id}`); + }, deleteItem(item) { this.dialogInfo.title = ""; this.dialogInfo.msg = "确认删除当前角色"; @@ -67,9 +73,7 @@ export default { label: "角色类型", prop: "name", type: "button", - callback(item) { - console.log("查看详情 - " + item.name); - }, + callback: this.editItem, }, { label: "创建人", @@ -91,9 +95,7 @@ export default { actionList: [ { label: "分配权限", - callback(item) { - console.log("分配权限 - " + item.name); - }, + callback: this.allotItem, }, { label: "删除", diff --git a/src/pages/authority/users.vue b/src/pages/authority/users.vue index 5441c33974f4b247eab9ba667b57ca3fcd17ad99..204ca7f8e7a1d46fcc3e527c1f768e1563db9f3d 100644 --- a/src/pages/authority/users.vue +++ b/src/pages/authority/users.vue @@ -1,9 +1,9 @@