diff --git a/src/pages/authority/user/organizationuser.vue b/src/pages/authority/user/organizationuser.vue index b60f838fa531c1130bcb6e0717c4d46fa2286ce2..0594c3bfbbf991714180f4044b87b595e91e11d5 100644 --- a/src/pages/authority/user/organizationuser.vue +++ b/src/pages/authority/user/organizationuser.vue @@ -349,10 +349,10 @@ export default { }); }, change_type() { - this.form.systemname = ""; - this.form.domain = ""; - this.form.ip = []; - this.form.origin = ""; + // this.form.systemname = ""; + // this.form.domain = ""; + // this.form.ip = []; + // this.form.origin = ""; }, handleClose(tag) { this.form.ip.splice(this.form.ip.indexOf(tag), 1); @@ -473,18 +473,22 @@ export default { this.$router.back(-1); }, add_user() { + // this.form.systemname = ""; + // this.form.domain = ""; + // this.form.ip = []; + // this.form.origin = ""; var temp = { user_id: this.form.account, // 用户名 password: this.form.password, user_name: this.form.nickname, // 昵称 - system_name: this.form.systemname, //系统名称 + system_name: this.form.type>=2?this.form.systemname:'', //系统名称 phone: this.form.phone + "", // 电话号 email: this.form.email, // 邮箱 - department_id: this.form.origin, // 组织id + department_id: this.form.type>=2?this.form.origin:'', // 组织id is_admin: this.form.type, state: this.form.able, // 用户状态,1——启用,0 禁用 - domain_name: this.form.domain, // - ip_whitelist: this.form.ip, // + domain_name: this.form.type>=3?this.form.domain:'', // + ip_whitelist: this.form.type>=3?this.form.ip:[], // description: this.form.desc, //描述 link_man: this.form.contact, }; @@ -507,14 +511,14 @@ export default { var temp = { user_id: this.form.account, // 用户名 user_name: this.form.nickname, // 昵称 - system_name: this.form.systemname, //系统名称 + system_name: this.form.type>=2?this.form.systemname:'', //系统名称 phone: this.form.phone + "", // 电话号 email: this.form.email, // 邮箱 - department_id: this.form.origin, // 组织id + department_id: this.form.type>=2?this.form.origin:'', // 组织id is_admin: this.form.type, state: this.form.able, // 用户状态,1——启用,0 禁用 - domain_name: this.form.domain, // - ip_whitelist: this.form.ip && this.form.ip.length ? this.form.ip : [], // + domain_name: this.form.type>=3?this.form.domain:'', // + ip_whitelist: this.form.type>=3?this.form.ip && this.form.ip.length ? this.form.ip : []:[], // description: this.form.desc, //描述 link_man: this.form.contact, };