Browse Source

init

newStyle
lancer 3 years ago
parent
commit
7cc8607e56
3 changed files with 13 additions and 3 deletions
  1. +6
    -1
      src/views/Customer/AgentManagement.vue
  2. +6
    -1
      src/views/Customer/CompanyRecord.vue
  3. +1
    -1
      src/views/building/index.vue

+ 6
- 1
src/views/Customer/AgentManagement.vue View File

@@ -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-item label="管理员账号:" prop="managerPhone">
<el-input maxlength="11" v-model="replaceagentobj.managerPhone"></el-input>
@@ -722,6 +722,11 @@ export default {
this.replaceagentobj.id=row.id;
this.dialogVisible3=true;
this.passFlag=false
},
replaceClose(){
this.replaceagentobj.managerPhone=''
this.replaceagentobj.managerPassword=''
this.$refs.replaceagentobj.resetFields();
},
//确认更换
replace(){


+ 6
- 1
src/views/Customer/CompanyRecord.vue View File

@@ -238,7 +238,7 @@
</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-item label="管理员账号:" prop="managerPhone">
<el-input maxlength="11" v-model="replaceagentobj.managerPhone"></el-input>
@@ -716,6 +716,11 @@ export default {
this.dialogVisible3=true;
this.passFlag=false
},
replaceClose(){
this.replaceagentobj.managerPhone=''
this.replaceagentobj.managerPassword=''
this.$refs.replaceagentobj.resetFields();
},
//确认更换
replace(){
this.$refs.replaceagentobj.validate((valid) => {


+ 1
- 1
src/views/building/index.vue View File

@@ -703,7 +703,7 @@ export default {
accountRules: {
managerPhone: [
{ required: true, message: "请填写账号", trigger: "change" },
{ validator: validatePass1, trigger: "change" }],
{ validator: validatePass1, trigger: "blur" }],
managerPassword: [
{ required: true, message: "请填写密码", trigger: "change" },
{ min: 6, max: 18, message: '请输入6~18位,数字或字母组合的密码', trigger: 'blur' }


Loading…
Cancel
Save