@@ -301,7 +301,7 @@ | |||||
<el-dialog title="更换账号" :visible.sync="dialogVisible3" > | |||||
<el-dialog title="更换账号" :visible.sync="dialogVisible3" @close='replaceClose'> | |||||
<el-form :model="replaceagentobj" label-position="labelPosition" :rules="ruleser" ref="replaceagentobj" label-width="140px" style="width:60%; margin: 0 auto;"> | <el-form :model="replaceagentobj" label-position="labelPosition" :rules="ruleser" ref="replaceagentobj" label-width="140px" style="width:60%; margin: 0 auto;"> | ||||
<el-form-item label="管理员账号:" prop="managerPhone"> | <el-form-item label="管理员账号:" prop="managerPhone"> | ||||
<el-input maxlength="11" v-model="replaceagentobj.managerPhone"></el-input> | <el-input maxlength="11" v-model="replaceagentobj.managerPhone"></el-input> | ||||
@@ -722,6 +722,11 @@ export default { | |||||
this.replaceagentobj.id=row.id; | this.replaceagentobj.id=row.id; | ||||
this.dialogVisible3=true; | this.dialogVisible3=true; | ||||
this.passFlag=false | this.passFlag=false | ||||
}, | |||||
replaceClose(){ | |||||
this.replaceagentobj.managerPhone='' | |||||
this.replaceagentobj.managerPassword='' | |||||
this.$refs.replaceagentobj.resetFields(); | |||||
}, | }, | ||||
//确认更换 | //确认更换 | ||||
replace(){ | replace(){ | ||||
@@ -238,7 +238,7 @@ | |||||
</el-dialog> | </el-dialog> | ||||
<el-dialog title="更换账号" :visible.sync="dialogVisible3" > | |||||
<el-dialog title="更换账号" :visible.sync="dialogVisible3" @close='replaceClose'> | |||||
<el-form :model="replaceagentobj" label-position="labelPosition" :rules="ruleser" ref="replaceagentobj" label-width="140px" style="width:60%; margin: 0 auto;"> | <el-form :model="replaceagentobj" label-position="labelPosition" :rules="ruleser" ref="replaceagentobj" label-width="140px" style="width:60%; margin: 0 auto;"> | ||||
<el-form-item label="管理员账号:" prop="managerPhone"> | <el-form-item label="管理员账号:" prop="managerPhone"> | ||||
<el-input maxlength="11" v-model="replaceagentobj.managerPhone"></el-input> | <el-input maxlength="11" v-model="replaceagentobj.managerPhone"></el-input> | ||||
@@ -716,6 +716,11 @@ export default { | |||||
this.dialogVisible3=true; | this.dialogVisible3=true; | ||||
this.passFlag=false | this.passFlag=false | ||||
}, | }, | ||||
replaceClose(){ | |||||
this.replaceagentobj.managerPhone='' | |||||
this.replaceagentobj.managerPassword='' | |||||
this.$refs.replaceagentobj.resetFields(); | |||||
}, | |||||
//确认更换 | //确认更换 | ||||
replace(){ | replace(){ | ||||
this.$refs.replaceagentobj.validate((valid) => { | this.$refs.replaceagentobj.validate((valid) => { | ||||
@@ -703,7 +703,7 @@ export default { | |||||
accountRules: { | accountRules: { | ||||
managerPhone: [ | managerPhone: [ | ||||
{ required: true, message: "请填写账号", trigger: "change" }, | { required: true, message: "请填写账号", trigger: "change" }, | ||||
{ validator: validatePass1, trigger: "change" }], | |||||
{ validator: validatePass1, trigger: "blur" }], | |||||
managerPassword: [ | managerPassword: [ | ||||
{ required: true, message: "请填写密码", trigger: "change" }, | { required: true, message: "请填写密码", trigger: "change" }, | ||||
{ min: 6, max: 18, message: '请输入6~18位,数字或字母组合的密码', trigger: 'blur' } | { min: 6, max: 18, message: '请输入6~18位,数字或字母组合的密码', trigger: 'blur' } | ||||