|
@@ -333,7 +333,7 @@ export default {
|
|
|
if (this.$refs.ruleForm) {
|
|
|
this.$refs.ruleForm.resetFields();
|
|
|
this.$refs.ruleForm.clearValidate();
|
|
|
- const { username, nickname, mobile, email, roleid, status, itemid } =
|
|
|
+ const { username, nickname, mobile, email, roleid, status, depart_code } =
|
|
|
sitem;
|
|
|
this.ruleForm = {
|
|
|
username: username || "", // 账号
|
|
@@ -342,8 +342,9 @@ export default {
|
|
|
email: email || "",
|
|
|
role_id: roleid || "",
|
|
|
status: status || "",
|
|
|
- itemid: itemid || [],
|
|
|
+ itemid: depart_code || [],
|
|
|
};
|
|
|
+ console.log(depart_code);
|
|
|
if (this.id === "add" || this.isDetail) {
|
|
|
this.rules.username[0].required = false;
|
|
|
}
|