修复多域匹配区域bug,由于后台只查询了主表的匹配区域导致了展示错误

This commit is contained in:
wangxin
2018-04-03 15:46:51 +08:00
parent 33b7df09c9
commit a66a3c0e8e
2 changed files with 6 additions and 6 deletions

View File

@@ -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);

View File

@@ -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>