修复多域匹配区域bug,由于后台只查询了主表的匹配区域导致了展示错误
This commit is contained in:
@@ -436,8 +436,8 @@ public class MultipleCfgController extends BaseController{
|
||||
Map<String,ComplexkeywordCfg> map=cfg.getComplexCfg();
|
||||
map.put(tableName,complexCfg);
|
||||
}
|
||||
List<SysDictInfo> districts=sysDictInfoService.getDistrictDict(tableName);
|
||||
model.addAttribute("districts", districts);
|
||||
// List<SysDictInfo> districts=sysDictInfoService.getDistrictDict(tableName);
|
||||
// model.addAttribute("districts", districts);
|
||||
}
|
||||
}
|
||||
cfg.setAction(action);
|
||||
@@ -573,8 +573,8 @@ public class MultipleCfgController extends BaseController{
|
||||
this.setPropertiesToMultipleCfg(resultCfg, resultComplexCfg,"update");
|
||||
}
|
||||
}
|
||||
List<SysDictInfo> districts=sysDictInfoService.getDistrictDict(tableName);
|
||||
model.addAttribute("districts", districts);
|
||||
// List<SysDictInfo> districts=sysDictInfoService.getDistrictDict(tableName);
|
||||
// model.addAttribute("districts", districts);
|
||||
}
|
||||
}
|
||||
model.addAttribute("_cfg", resultCfg);
|
||||
|
||||
@@ -38,7 +38,7 @@ $(function(){
|
||||
<c:when test="${mainTableType eq '4' and otherTable==null}">
|
||||
<select name="complexCfg[${mainTable}].district" class="district selectpicker select2 form-control">
|
||||
<option value=""><spring:message code='select'/></option>
|
||||
<c:forEach items="${districts}" var="district">
|
||||
<c:forEach items="${fns:getFeaturesDictData(mainTable)}" var="district">
|
||||
<option value="${district.itemValue}"
|
||||
<c:if test="${_cfg.complexCfg[mainTable].district eq district.itemValue}">selected</c:if>
|
||||
>${district.itemValue}</option>
|
||||
@@ -48,7 +48,7 @@ $(function(){
|
||||
<c:when test="${otherTable!=null and otherTable.tableType eq '4'}">
|
||||
<select name="complexCfg[${otherTable.tableName}].district" class="district selectpicker select2 form-control">
|
||||
<option value=""><spring:message code='select'/></option>
|
||||
<c:forEach items="${districts}" var="district">
|
||||
<c:forEach items="${fns:getFeaturesDictData(otherTable.tableName)}" var="district">
|
||||
<option value="${district.itemValue}"
|
||||
<c:if test="${_cfg.complexCfg[otherTable.tableName].district eq district.itemValue}">selected</c:if>
|
||||
>${district.itemValue}</option>
|
||||
|
||||
Reference in New Issue
Block a user