指标库新增web页面树形接口
This commit is contained in:
parent
e56da132c2
commit
ba86499260
@ -48,8 +48,6 @@ public class IndexLibController extends DefaultBaseController {
|
|||||||
return indexLibService.listWebTags(params);
|
return indexLibService.listWebTags(params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ApiOperation(value = "web页面指标库树形列表", notes = "web页面指标库树形列表接口")
|
@ApiOperation(value = "web页面指标库树形列表", notes = "web页面指标库树形列表接口")
|
||||||
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
|
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
|
||||||
@GetMapping("listztreeweb/{indexLibParentId}")
|
@GetMapping("listztreeweb/{indexLibParentId}")
|
||||||
@ -64,6 +62,24 @@ public class IndexLibController extends DefaultBaseController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ApiOperation(value = "web分页列表", notes = "web分页列表接口")
|
||||||
|
@ApiImplicitParams({
|
||||||
|
@ApiImplicitParam(name = "page", value = "当前页码", paramType = "query", dataType = "int", defaultValue = "1"),
|
||||||
|
@ApiImplicitParam(name = "rows", value = "显示数量", paramType = "query", dataType = "int", defaultValue = "20"),
|
||||||
|
@ApiImplicitParam(name = "keywords", value = "关键字", paramType = "query", dataType = "String"),
|
||||||
|
@ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "query", dataType = "String"),
|
||||||
|
@ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataType = "String")
|
||||||
|
})
|
||||||
|
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
|
||||||
|
@GetMapping("listpageweb/{indexLibParentId}")
|
||||||
|
public SuccessResultList<List<IndexLibDTO>> listPageWeb(@PathVariable("indexLibParentId") String indexLibParentId,ListPage page) {
|
||||||
|
Map<String, Object> params = requestParams();
|
||||||
|
params.put("indexLibParentId",indexLibParentId == null ? 0:indexLibParentId);
|
||||||
|
params.put("indexLibState",1);
|
||||||
|
page.setParams(params);
|
||||||
|
return indexLibService.listPage(page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ApiOperation(value = "修改指标状态", notes = "修改指标状态接口")
|
@ApiOperation(value = "修改指标状态", notes = "修改指标状态接口")
|
||||||
@ -81,8 +97,6 @@ public class IndexLibController extends DefaultBaseController {
|
|||||||
return new SuccessResult();
|
return new SuccessResult();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ApiOperation(value = "指标库树形列表", notes = "指标库树形列表接口")
|
@ApiOperation(value = "指标库树形列表", notes = "指标库树形列表接口")
|
||||||
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
|
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
|
||||||
@GetMapping("listztree")
|
@GetMapping("listztree")
|
||||||
@ -96,10 +110,6 @@ public class IndexLibController extends DefaultBaseController {
|
|||||||
return indexLibService.listZTree(params);
|
return indexLibService.listZTree(params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ApiOperation(value = "新增", notes = "新增接口")
|
@ApiOperation(value = "新增", notes = "新增接口")
|
||||||
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
|
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
|
||||||
@PostMapping("save")
|
@PostMapping("save")
|
||||||
|
@ -323,6 +323,9 @@
|
|||||||
<if test="indexLibParentId != null and indexLibParentId != ''">
|
<if test="indexLibParentId != null and indexLibParentId != ''">
|
||||||
AND t1.index_lib_parent_id = #{indexLibParentId}
|
AND t1.index_lib_parent_id = #{indexLibParentId}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="indexLibState != null and indexLibState != ''">
|
||||||
|
AND t1.index_lib_state = #{indexLibState}
|
||||||
|
</if>
|
||||||
ORDER BY t1.index_lib_sort
|
ORDER BY t1.index_lib_sort
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
@ -282,7 +282,7 @@
|
|||||||
|
|
||||||
// 初始化内容
|
// 初始化内容
|
||||||
function initData() {
|
function initData() {
|
||||||
var loadLayerIndex;
|
//var loadLayerIndex;
|
||||||
top.restAjax.get(top.restAjax.path('api/indexlib/get/{indexLibId}', [indexLibId]), {}, null, function(code, data) {
|
top.restAjax.get(top.restAjax.path('api/indexlib/get/{indexLibId}', [indexLibId]), {}, null, function(code, data) {
|
||||||
var dataFormData = {};
|
var dataFormData = {};
|
||||||
dataFormData['dutyIndexLibId'] = data.indexLibId;
|
dataFormData['dutyIndexLibId'] = data.indexLibId;
|
||||||
@ -296,11 +296,11 @@
|
|||||||
initNationTemplate();
|
initNationTemplate();
|
||||||
initEducationTemplate();
|
initEducationTemplate();
|
||||||
}, function(code, data) {
|
}, function(code, data) {
|
||||||
top.dialog.msg(data.msg);
|
//top.dialog.msg(data.msg);
|
||||||
}, function() {
|
}, function() {
|
||||||
loadLayerIndex = top.dialog.msg(top.dataMessage.loading, {icon: 16, time: 0, shade: 0.3});
|
//loadLayerIndex = top.dialog.msg(top.dataMessage.loading, {icon: 16, time: 0, shade: 0.3});
|
||||||
}, function() {
|
}, function() {
|
||||||
top.dialog.close(loadLayerIndex);
|
//top.dialog.close(loadLayerIndex);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user