|
|
@ -172,12 +172,12 @@ |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="crud.toEdit(scope.row)">修改</el-button> |
|
|
|
<el-button size="mini" type="text" icon="el-icon-delete" @click="handdeleted(scope.row)">删除</el-button> |
|
|
|
<el-dropdown v-hasPermi="['system:user:resetPwd', 'system:user:edit']" size="mini"> |
|
|
|
<el-dropdown size="mini"> |
|
|
|
<el-button size="mini" type="text" icon="el-icon-d-arrow-right">更多</el-button> |
|
|
|
<el-dropdown-menu slot="dropdown"> |
|
|
|
<el-dropdown-item icon="el-icon-refresh-right"><span @click="resetPassword(scope.row)">重置密码</span></el-dropdown-item> |
|
|
|
<el-dropdown-item icon="el-icon-key"> |
|
|
|
<span @click="openDeptDrawer(scope.row)">部门权限</span> |
|
|
|
<span @click="openDeptDrawer(scope.row)">分配部门</span> |
|
|
|
</el-dropdown-item> |
|
|
|
<el-dropdown-item icon="el-icon-key"> |
|
|
|
<span @click="openDataDialog(scope.row)">数据权限</span> |
|
|
@ -304,11 +304,7 @@ |
|
|
|
:data="dataPermissions" |
|
|
|
style="width: 100%; max-height: 500px" |
|
|
|
> |
|
|
|
<el-table-column prop="permission_scope_type" label="权限类型" min-width="100" show-overflow-tooltip> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ dict.label.permissionScopeType[scope.row.permissionScopeType] }} |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="permissionScopeType" label="权限类型" min-width="100" show-overflow-tooltip /> |
|
|
|
<el-table-column prop="permissionName" label="权限范围" min-width="100" show-overflow-tooltip /> |
|
|
|
<el-table-column prop="deptName" label="部门名称" min-width="100" show-overflow-tooltip /> |
|
|
|
<el-table-column prop="personName" label="用户名称" min-width="100" show-overflow-tooltip /> |
|
|
@ -321,7 +317,7 @@ |
|
|
|
|
|
|
|
<script> |
|
|
|
import crudUser from '@/views/system/user/user' |
|
|
|
import crudDept from '@/api/system/dept' |
|
|
|
import crudDept from '@/views/system/dept/dept' |
|
|
|
import crudDataPermission from '@/views/system/dataPermission/dataPermission' |
|
|
|
import { getAll, getLevel } from '@/views/system/role/role' |
|
|
|
import CRUD, { crud, form, header, presenter } from '@crud/crud' |
|
|
@ -868,6 +864,7 @@ export default { |
|
|
|
permissionScopeType: row.value |
|
|
|
} |
|
|
|
crudDataPermission.getDataDetail(param).then(res => { |
|
|
|
console.log(res) |
|
|
|
this.dataPermissions = res |
|
|
|
}) |
|
|
|
this.showData = true |
|
|
|