This commit is contained in:
zhangzhiqiang
2022-12-16 15:03:23 +08:00
parent 74105971e1
commit fcaa364c53
2 changed files with 7 additions and 6 deletions

View File

@@ -26,13 +26,13 @@ public class SysDept implements Serializable {
/**
* ID
*/
@TableId(value = "dept_id", type = IdType.AUTO)
private Long deptId;
@TableId(value = "dept_id", type = IdType.NONE)
private String deptId;
/**
* 上级部门
*/
private Long pid;
private String pid;
/**
* 子部门数目

View File

@@ -167,7 +167,7 @@
align="center"
width="200"
>
<template v-if="scope.row.userId !== 1" slot-scope="scope">
<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">
@@ -312,8 +312,8 @@
<el-table-column prop="personName" label="用户名称" min-width="100" show-overflow-tooltip />
</el-table>
</el-dialog>
<relevance-user-dialog :dialog-show.sync="relevanceUser" :is-single="false" :users="userIds" @selectUsers="selectUsers" />
<relevance-dept-dialog :dialog-show.sync="relevanceDept" :is-single="false" :depts="deptIds" @selectDepts="selectDepts" />
<!-- <relevance-user-dialog :dialog-show.sync="relevanceUser" :is-single="false" :users="userIds" @selectUsers="selectUsers" />-->
<!-- <relevance-dept-dialog :dialog-show.sync="relevanceDept" :is-single="false" :depts="deptIds" @selectDepts="selectDepts" />-->
</div>
</template>
@@ -476,6 +476,7 @@ export default {
userRoles = []
const _this = this
if (form.roles !== null && form.roles.length > 0) {
debugger
form.roles.forEach(function(role, index) {
_this.roleDatas.push(role)
const rol = { id: role }