|
@@ -26,7 +26,7 @@
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div>
|
|
<div>
|
|
<el-button type="primary" size="small" @click="handleAdd('编辑角色', '立即修改', scope.row)">编辑角色</el-button>
|
|
<el-button type="primary" size="small" @click="handleAdd('编辑角色', '立即修改', scope.row)">编辑角色</el-button>
|
|
- <el-button type="primary" size="small" @click="shisha(scope.row.id)">分配权限</el-button>
|
|
|
|
|
|
+ <el-button type="primary" size="small" @click="shisha(scope.row.id), roleName = scope.row.rolename">分配权限</el-button>
|
|
<el-button type="danger" size="small" @click="deteHand(scope.row)">删除</el-button>
|
|
<el-button type="danger" size="small" @click="deteHand(scope.row)">删除</el-button>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -45,7 +45,7 @@
|
|
></el-pagination>
|
|
></el-pagination>
|
|
</el-col> -->
|
|
</el-col> -->
|
|
<!-- 分配权限弹窗 -->
|
|
<!-- 分配权限弹窗 -->
|
|
- <el-dialog title="分配权限" :visible.sync="dialogVisible" width="600" :before-close="handleClose">
|
|
|
|
|
|
+ <el-dialog :title="'分配权限 - '+roleName" :visible.sync="dialogVisible" width="600" :before-close="handleClose">
|
|
<div class="quanxians">
|
|
<div class="quanxians">
|
|
<!-- <el-input placeholder="输入关键字进行过滤" v-model="filterText"></el-input> -->
|
|
<!-- <el-input placeholder="输入关键字进行过滤" v-model="filterText"></el-input> -->
|
|
<!-- <el-tree :data="data" show-checkbox node-key="id" :filter-node-method="filterNode" ref="tree" :default-expanded-keys="[2, 3]" :default-checked-keys="[5]" :props="defaultProps"> </el-tree> -->
|
|
<!-- <el-tree :data="data" show-checkbox node-key="id" :filter-node-method="filterNode" ref="tree" :default-expanded-keys="[2, 3]" :default-checked-keys="[5]" :props="defaultProps"> </el-tree> -->
|
|
@@ -146,7 +146,8 @@ export default {
|
|
keyword: '',
|
|
keyword: '',
|
|
auseList: [],
|
|
auseList: [],
|
|
defaultRole: false,
|
|
defaultRole: false,
|
|
- roleId: ''
|
|
|
|
|
|
+ roleId: '',
|
|
|
|
+ roleName: ''
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: {},
|
|
computed: {},
|