完善网格绘制功能
This commit is contained in:
parent
5997e45639
commit
9a608d0c21
@ -150,7 +150,7 @@ public class GridController extends DefaultBaseController {
|
||||
@GetMapping("listpage")
|
||||
public SuccessResultList<List<GridDTO>> listPage(@RequestParam(name = "areaCodeLike", required = false) String areaCodeLike, ListPage page) {
|
||||
if (!StringUtils.isBlank(areaCodeLike)) {
|
||||
areaCodeLike = WStringUtil.cutContinuityRepeatCharDesc(areaCodeLike, '0');
|
||||
areaCodeLike = WStringUtil.cutContinuityRepeatCharDesc(areaCodeLike, '0', 3);
|
||||
}
|
||||
Map<String, Object> params = requestParams();
|
||||
params.put("areaCodeLike", areaCodeLike);
|
||||
|
@ -92,7 +92,7 @@ public class GridAppController extends DefaultBaseController {
|
||||
@GetMapping("listpage")
|
||||
public SuccessResultList<List<GridDTO>> listPage(@RequestHeader("token") String token, @RequestParam(name = "areaCodeLike", required = false) String areaCodeLike, ListPage page) {
|
||||
if (!StringUtils.isBlank(areaCodeLike)) {
|
||||
areaCodeLike = WStringUtil.cutContinuityRepeatCharDesc(areaCodeLike, '0');
|
||||
areaCodeLike = WStringUtil.cutContinuityRepeatCharDesc(areaCodeLike, '0', 3);
|
||||
}
|
||||
Map<String, Object> params = requestParams();
|
||||
params.put("areaCodeLike", areaCodeLike);
|
||||
|
@ -111,7 +111,7 @@ public class GridResourceController extends DefaultBaseController {
|
||||
@GetMapping("listpage")
|
||||
public SuccessResultList<List<GridDTO>> listPage(@RequestParam(name = "areaCodeLike", required = false) String areaCodeLike, ListPage page) {
|
||||
if (!StringUtils.isBlank(areaCodeLike)) {
|
||||
areaCodeLike = WStringUtil.cutContinuityRepeatCharDesc(areaCodeLike, '0');
|
||||
areaCodeLike = WStringUtil.cutContinuityRepeatCharDesc(areaCodeLike, '0', 3);
|
||||
}
|
||||
Map<String, Object> params = requestParams();
|
||||
params.put("areaCodeLike", areaCodeLike);
|
||||
|
@ -389,7 +389,7 @@ public class GridServiceImpl extends DefaultBaseService implements IGridService
|
||||
|
||||
@Override
|
||||
public List<GridDTO> listSubByAreaCode(String areaCode, Map<String, Object> params) {
|
||||
params.put("areaCodeLike", WStringUtil.cutContinuityRepeatCharDesc(areaCode, '0'));
|
||||
params.put("areaCodeLike", WStringUtil.cutContinuityRepeatCharDesc(areaCode, '0', 3));
|
||||
params.put("excludeAreaCode", areaCode);
|
||||
return list(params);
|
||||
}
|
||||
@ -411,7 +411,7 @@ public class GridServiceImpl extends DefaultBaseService implements IGridService
|
||||
|
||||
@Override
|
||||
public List<GridDTO> listAllWithPointByAreaCode(String areaCode, Map<String, Object> params) {
|
||||
params.put("areaCodeLike", WStringUtil.cutContinuityRepeatCharDesc(areaCode, '0'));
|
||||
params.put("areaCodeLike", WStringUtil.cutContinuityRepeatCharDesc(areaCode, '0', 3));
|
||||
return list(params, false, true);
|
||||
}
|
||||
|
||||
|
@ -200,9 +200,7 @@
|
||||
function initGridBG(areaCode) {
|
||||
baiduMap.clearMap();
|
||||
var layIndex;
|
||||
top.restAjax.get(top.restAjax.path('api/grid/list', []), {
|
||||
areaCode: areaCode
|
||||
}, null, function(code, data) {
|
||||
top.restAjax.get(top.restAjax.path('api/grid/list-all-with-point/area-code/{areaCode}', [areaCode]), {}, null, function(code, data) {
|
||||
var gridArray = [];
|
||||
for(var i = 0, item; item = data[i++];) {
|
||||
var pointArray = [];
|
||||
@ -212,7 +210,7 @@
|
||||
gridArray.push({
|
||||
id: item.gridId,
|
||||
label: item.gridName,
|
||||
fillColor: item.fillColor,
|
||||
fillColor: '#ffffff',
|
||||
pointArray: pointArray
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user