Commit b6ceacf9 authored by 徐一鸣's avatar 徐一鸣

Merge branch 'xym' into dev

parents 0278c8e3 42237864
...@@ -50,6 +50,12 @@ export default { ...@@ -50,6 +50,12 @@ export default {
showDialog() { showDialog() {
this.$refs.dialog.show(); 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) { deleteItem(item) {
this.dialogInfo.title = ""; this.dialogInfo.title = "";
this.dialogInfo.msg = "确认删除当前角色"; this.dialogInfo.msg = "确认删除当前角色";
...@@ -67,9 +73,7 @@ export default { ...@@ -67,9 +73,7 @@ export default {
label: "角色类型", label: "角色类型",
prop: "name", prop: "name",
type: "button", type: "button",
callback(item) { callback: this.editItem,
console.log("查看详情 - " + item.name);
},
}, },
{ {
label: "创建人", label: "创建人",
...@@ -91,9 +95,7 @@ export default { ...@@ -91,9 +95,7 @@ export default {
actionList: [ actionList: [
{ {
label: "分配权限", label: "分配权限",
callback(item) { callback: this.allotItem,
console.log("分配权限 - " + item.name);
},
}, },
{ {
label: "删除", label: "删除",
......
<template> <template>
<div class="users_list"> <div class="users_list">
<apass-list <apass-list
@list-action="listAction"
search-placeholder="请输入关键字" search-placeholder="请输入关键字"
:list-total="listTotal" :list-total="listTotal"
@list-action="initDatas"
> >
<el-breadcrumb separator="/" slot="breadcrumb"> <el-breadcrumb separator="/" slot="breadcrumb">
<el-breadcrumb-item to="/authority">权限管理</el-breadcrumb-item> <el-breadcrumb-item to="/authority">权限管理</el-breadcrumb-item>
...@@ -185,8 +185,29 @@ export default { ...@@ -185,8 +185,29 @@ export default {
showDialog: false, showDialog: false,
}), }),
methods: { methods: {
listAction(value) { initDatas(filter) {
console.log(value); // console.log(filter);
this.$http
.get("/apaas/backmgt/user/list", {
params: {
keyword: filter.keyword,
limit: filter.page,
page: filter.size,
user_id: "ym",
user_name: "",
department_id: "",
state: 1,
},
})
.then(({ data }) => {
console.log(data);
// this.listTotal = data.data.total;
// this.listData = data.data.data;
})
.catch((error) => {
console.log(error);
});
}, },
setRole(item) { setRole(item) {
console.log("setRole " + item.name); console.log("setRole " + item.name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment