|
|
@@ -200,7 +200,7 @@
|
|
|
span:24,
|
|
|
// dicUrl: "/api/cyzh-community/residential/list?agencyId={{key}}",
|
|
|
// dicUrl: "/api/cyzh-community/residential/list?size=500",
|
|
|
- dicUrl: "/api/cyzh-community/residential/select?size=1000",
|
|
|
+ dicUrl: "/api/cyzh-community/agency/list?size=1000",
|
|
|
dicFormatter:(res)=>{
|
|
|
return res.data.records;//返回字典的层级结构
|
|
|
},
|
|
|
@@ -214,7 +214,7 @@
|
|
|
message: "请选择所属小区",
|
|
|
trigger: "blur"
|
|
|
}]
|
|
|
- }
|
|
|
+ },
|
|
|
]
|
|
|
},
|
|
|
data: []
|
|
|
@@ -271,11 +271,20 @@
|
|
|
watch: {
|
|
|
'form.resourceType': {
|
|
|
handler(val) {
|
|
|
+ console.log(val,"val")
|
|
|
let resourceIds = this.findObject(this.option.column, "resourceIds");
|
|
|
if (val == 1) {
|
|
|
+ this.option.column[7].props.label="name"
|
|
|
+ resourceIds.dicUrl = `/api/cyzh-community/agency/list?size=500&name={{key}}`
|
|
|
+ } else if (val==2){
|
|
|
+ this.option.column[7].props.label="name"
|
|
|
+ resourceIds.dicUrl = "/api/cyzh-community/residentail/list?size=9999";
|
|
|
+ }else if(val==3){
|
|
|
+ this.option.column[7].props.label="name"
|
|
|
resourceIds.dicUrl = `/api/cyzh-community/agency/list?size=500&name={{key}}`
|
|
|
- } else {
|
|
|
- resourceIds.dicUrl = "/api/cyzh-community/residential/list?size=99999";
|
|
|
+ }else{
|
|
|
+ resourceIds.dicUrl = "/api/cyzh-enterprise/enterprise/list?size=500";
|
|
|
+ this.option.column[7].props.label="enterpriseName"
|
|
|
}
|
|
|
}
|
|
|
}
|