|
|
@ -19,9 +19,9 @@ |
|
|
|
</el-form> |
|
|
|
<el-table v-loading="loading" border :data="roleList" @selection-change="handleSelectionChange"> |
|
|
|
<el-table-column type="selection" width="55" align="center" /> |
|
|
|
<el-table-column label="角色编号" prop="role_id" width="120" /> |
|
|
|
<el-table-column label="角色名称" prop="rolename" :show-overflow-tooltip="true" width="150" /> |
|
|
|
<el-table-column label="权限字符" prop="role_key" :show-overflow-tooltip="true" width="150" /> |
|
|
|
<el-table-column label="角色编号" prop="role_id" /> |
|
|
|
<el-table-column label="角色名称" prop="rolename" :show-overflow-tooltip="true" /> |
|
|
|
<el-table-column label="权限字符" prop="role_key" :show-overflow-tooltip="true" /> |
|
|
|
<!-- <el-table-column label="显示顺序" prop="role_sort" width="100" /> --> |
|
|
|
<el-table-column label="状态" align="center" width="100"> |
|
|
|
<template slot-scope="scope"> |
|
|
@ -38,7 +38,7 @@ |
|
|
|
<span>{{ parseTime(scope.row.createtime) }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> |
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="220"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button |
|
|
|
size="mini" |
|
|
@ -53,6 +53,12 @@ |
|
|
|
icon="el-icon-circle-check" |
|
|
|
@click="handleDataScope(scope.row)" |
|
|
|
>数据权限</el-button> --> |
|
|
|
<el-button |
|
|
|
size="mini" |
|
|
|
type="text" |
|
|
|
icon="el-icon-share" |
|
|
|
@click="setOperationItem(scope.row)" |
|
|
|
>产线关联</el-button> |
|
|
|
<el-button |
|
|
|
size="mini" |
|
|
|
type="text" |
|
|
@ -148,17 +154,23 @@ |
|
|
|
<el-button @click="cancelDataScope">取 消</el-button> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
<ProductionLine v-if="operationItem" :operationItem="operationItem" @setOperationItem="setOperationItem" /> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { listRole, getRole, delRole, addRole, updateRole, dataScope, changeRoleStatus } from '@/api/system/role' |
|
|
|
import { treeselect as menuTreeselect, roleMenuTreeselect } from '@/api/system/menu' |
|
|
|
|
|
|
|
import ProductionLine from './ProductionLine.vue' |
|
|
|
export default { |
|
|
|
name: 'Role', |
|
|
|
components:{ |
|
|
|
ProductionLine |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
// 当前要操作的对象 |
|
|
|
operationItem:null, |
|
|
|
// 遮罩层 |
|
|
|
loading: true, |
|
|
|
// 选中数组 |
|
|
@ -240,6 +252,9 @@ export default { |
|
|
|
this.getList() |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
setOperationItem(item){ |
|
|
|
this.operationItem=item; |
|
|
|
}, |
|
|
|
/** 查询角色列表 */ |
|
|
|
getList() { |
|
|
|
this.loading = true |
|
|
|