|
|
@@ -996,6 +996,14 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
init(){
|
|
|
+ const tenantType = localStorage.getItem("tenantType");
|
|
|
+ if (tenantType == 0){
|
|
|
+ let residentialNameProp = this.findObject(this.optionBuilding.column, "residentialName");
|
|
|
+ residentialNameProp.label = "所属小区"
|
|
|
+ }else if (tenantType == 1){
|
|
|
+ let residentialNameProp = this.findObject(this.optionBuilding.column, "residentialName");
|
|
|
+ residentialNameProp.label = "所属区域"
|
|
|
+ }
|
|
|
this.option = this.optionBuilding;
|
|
|
this.treeData = [{ id: this.residentialId, type: this.typeParent, name: this.residentialName, children: [] }];
|
|
|
this.onLoadBuilding(this.residentialId);
|