This commit is contained in:
yanran200730
2022-02-14 18:13:25 +08:00
parent 18edb3aebc
commit ea52e27e77

View File

@@ -716,16 +716,6 @@ export default {
}, trigger: "blur" }, trigger: "blur"
}], }],
currentAddress: [{message: "请选择现住址详细地址", required: true}], currentAddress: [{message: "请选择现住址详细地址", required: true}],
householdAreaId: [
{message: "户籍地必须选到村级", required: true, trigger: "blur"},
{
validator: (r, v, cb) => {
if (/.+0{3}$/.test(v)) {
cb("户籍地必须选到村级")
} else cb()
}, trigger: "blur"
}
],
householdName: [ householdName: [
{required: true, message: "请选择是否户主", trigger: "change"} {required: true, message: "请选择是否户主", trigger: "change"}
], ],
@@ -939,14 +929,11 @@ export default {
} }
}, },
created() { created() {
this.disabledLevel = this.user.info.areaMap[this.user.info.areaId].length;
if (!this.showDetail) { if (!this.showDetail) {
this.showEdit1 = true; this.showEdit1 = true;
this.showEdit2 = true; this.showEdit2 = true;
this.showEdit3 = true; this.showEdit3 = true;
this.showEdit4 = true; this.showEdit4 = true;
this.baseInfo.householdAreaId = JSON.parse(JSON.stringify(this.user.info.areaId))
this.baseInfo.currentAreaId = JSON.parse(JSON.stringify(this.user.info.areaId))
this.$nextTick(() => this.$refs.ruleForm?.resetFields()) this.$nextTick(() => this.$refs.ruleForm?.resetFields())
} else { } else {
this.searchDetail(this.$route.query.id); this.searchDetail(this.$route.query.id);