|
@@ -129,8 +129,8 @@
|
|
|
},
|
|
},
|
|
|
rules: [{
|
|
rules: [{
|
|
|
required: true,
|
|
required: true,
|
|
|
- message: "请输入所属社区id",
|
|
|
|
|
- trigger: "blur"
|
|
|
|
|
|
|
+ message: "请输入所属社区",
|
|
|
|
|
+ trigger: "change"
|
|
|
}],
|
|
}],
|
|
|
hide: true,
|
|
hide: true,
|
|
|
viewDisplay: false,
|
|
viewDisplay: false,
|
|
@@ -368,11 +368,27 @@
|
|
|
created() {
|
|
created() {
|
|
|
const tenantType = localStorage.getItem("tenantType");
|
|
const tenantType = localStorage.getItem("tenantType");
|
|
|
if (tenantType == 0){
|
|
if (tenantType == 0){
|
|
|
- this.option.column[3].label = "所属社区"
|
|
|
|
|
- this.option.column[5].label = "所属小区"
|
|
|
|
|
|
|
+ let agencyIdProp = this.findObject(this.option.column,"agencyId");
|
|
|
|
|
+ let agencyNameProp = this.findObject(this.option.column,"agencyName");
|
|
|
|
|
+ let residentialIdProp = this.findObject(this.option.column,"residentialId");
|
|
|
|
|
+ let residentialNameProp = this.findObject(this.option.column,"residentialName");
|
|
|
|
|
+ agencyIdProp.label = "所属社区"
|
|
|
|
|
+ agencyIdProp.rules[0].message = "请选择所属社区"
|
|
|
|
|
+ agencyNameProp.label = "所属社区"
|
|
|
|
|
+ residentialIdProp.label = "所属小区"
|
|
|
|
|
+ residentialIdProp.rules[0].message = "请选择所属小区"
|
|
|
|
|
+ residentialNameProp.label = "所属小区"
|
|
|
}else if (tenantType == 1){
|
|
}else if (tenantType == 1){
|
|
|
- this.option.column[3].label = "所属园区"
|
|
|
|
|
- this.option.column[5].label = "所属区域"
|
|
|
|
|
|
|
+ let agencyIdProp = this.findObject(this.option.column,"agencyId");
|
|
|
|
|
+ let agencyNameProp = this.findObject(this.option.column,"agencyName");
|
|
|
|
|
+ let residentialIdProp = this.findObject(this.option.column,"residentialId");
|
|
|
|
|
+ let residentialNameProp = this.findObject(this.option.column,"residentialName");
|
|
|
|
|
+ agencyIdProp.label = "所属园区"
|
|
|
|
|
+ agencyIdProp.rules[0].message = "请选择所属园区"
|
|
|
|
|
+ agencyNameProp.label = "所属园区"
|
|
|
|
|
+ residentialIdProp.label = "所属区域"
|
|
|
|
|
+ residentialIdProp.rules[0].message = "请选择所属区域"
|
|
|
|
|
+ residentialNameProp.label = "所属区域"
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
watch: {
|
|
watch: {
|