|
|
|
|
@ -428,8 +428,8 @@ |
|
|
|
|
trigger: "blur" |
|
|
|
|
}, { |
|
|
|
|
min: 2, |
|
|
|
|
max: 5, |
|
|
|
|
message: '姓名长度在2到5个字符' |
|
|
|
|
max: 30, |
|
|
|
|
message: '姓名长度在2到30个字符' |
|
|
|
|
}] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
@ -522,22 +522,22 @@ |
|
|
|
|
trigger: "click" |
|
|
|
|
}] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "所属岗位", |
|
|
|
|
prop: "postId", |
|
|
|
|
type: "tree", |
|
|
|
|
multiple: true, |
|
|
|
|
dicData: [], |
|
|
|
|
props: { |
|
|
|
|
label: "postName", |
|
|
|
|
value: "id" |
|
|
|
|
}, |
|
|
|
|
rules: [{ |
|
|
|
|
required: true, |
|
|
|
|
message: "请选择所属岗位", |
|
|
|
|
trigger: "click" |
|
|
|
|
}], |
|
|
|
|
}, |
|
|
|
|
// { |
|
|
|
|
// label: "所属岗位", |
|
|
|
|
// prop: "postId", |
|
|
|
|
// type: "tree", |
|
|
|
|
// multiple: true, |
|
|
|
|
// dicData: [], |
|
|
|
|
// props: { |
|
|
|
|
// label: "postName", |
|
|
|
|
// value: "id" |
|
|
|
|
// }, |
|
|
|
|
// rules: [{ |
|
|
|
|
// required: true, |
|
|
|
|
// message: "请选择所属岗位", |
|
|
|
|
// trigger: "click" |
|
|
|
|
// }], |
|
|
|
|
// }, |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
] |
|
|
|
|
@ -728,10 +728,10 @@ |
|
|
|
|
const column = this.findObject(this.option.group, "deptId"); |
|
|
|
|
column.dicData = res.data.data; |
|
|
|
|
}); |
|
|
|
|
getPostList(tenantId).then(res => { |
|
|
|
|
const column = this.findObject(this.option.group, "postId"); |
|
|
|
|
column.dicData = res.data.data; |
|
|
|
|
}); |
|
|
|
|
// getPostList(tenantId).then(res => { |
|
|
|
|
// const column = this.findObject(this.option.group, "postId"); |
|
|
|
|
// column.dicData = res.data.data; |
|
|
|
|
// }); |
|
|
|
|
}, |
|
|
|
|
submitRole() { |
|
|
|
|
const roleList = this.$refs.treeRole.getCheckedKeys().join(","); |
|
|
|
|
@ -747,7 +747,7 @@ |
|
|
|
|
rowSave(row, done, loading) { |
|
|
|
|
row.deptId = row.deptId.join(","); |
|
|
|
|
row.roleId = row.roleId.join(","); |
|
|
|
|
row.postId = row.postId.join(","); |
|
|
|
|
// row.postId = row.postId.join(","); |
|
|
|
|
add(row).then(() => { |
|
|
|
|
this.initFlag = false; |
|
|
|
|
this.onLoad(this.page); |
|
|
|
|
@ -764,7 +764,7 @@ |
|
|
|
|
rowUpdate(row, index, done, loading) { |
|
|
|
|
row.deptId = row.deptId.join(","); |
|
|
|
|
row.roleId = row.roleId.join(","); |
|
|
|
|
row.postId = row.postId.join(","); |
|
|
|
|
// row.postId = row.postId.join(","); |
|
|
|
|
update(row).then(() => { |
|
|
|
|
this.initFlag = false; |
|
|
|
|
this.onLoad(this.page); |
|
|
|
|
@ -932,9 +932,9 @@ |
|
|
|
|
if(this.form.hasOwnProperty("roleId")){ |
|
|
|
|
this.form.roleId = this.form.roleId.split(","); |
|
|
|
|
} |
|
|
|
|
if(this.form.hasOwnProperty("postId")){ |
|
|
|
|
this.form.postId = this.form.postId.split(","); |
|
|
|
|
} |
|
|
|
|
// if(this.form.hasOwnProperty("postId")){ |
|
|
|
|
// this.form.postId = this.form.postId.split(","); |
|
|
|
|
// } |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
this.initFlag = true; |
|
|
|
|
|