指标库新增web页面树形接口

This commit is contained in:
ly19960718 2021-04-14 16:36:32 +08:00
parent e56da132c2
commit ba86499260
3 changed files with 25 additions and 12 deletions

View File

@ -48,8 +48,6 @@ public class IndexLibController extends DefaultBaseController {
return indexLibService.listWebTags(params);
}
@ApiOperation(value = "web页面指标库树形列表", notes = "web页面指标库树形列表接口")
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@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 = "修改指标状态接口")
@ -81,8 +97,6 @@ public class IndexLibController extends DefaultBaseController {
return new SuccessResult();
}
@ApiOperation(value = "指标库树形列表", notes = "指标库树形列表接口")
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("listztree")
@ -96,10 +110,6 @@ public class IndexLibController extends DefaultBaseController {
return indexLibService.listZTree(params);
}
@ApiOperation(value = "新增", notes = "新增接口")
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@PostMapping("save")

View File

@ -323,6 +323,9 @@
<if test="indexLibParentId != null and indexLibParentId != ''">
AND t1.index_lib_parent_id = #{indexLibParentId}
</if>
<if test="indexLibState != null and indexLibState != ''">
AND t1.index_lib_state = #{indexLibState}
</if>
ORDER BY t1.index_lib_sort
</select>

View File

@ -282,7 +282,7 @@
// 初始化内容
function initData() {
var loadLayerIndex;
//var loadLayerIndex;
top.restAjax.get(top.restAjax.path('api/indexlib/get/{indexLibId}', [indexLibId]), {}, null, function(code, data) {
var dataFormData = {};
dataFormData['dutyIndexLibId'] = data.indexLibId;
@ -296,11 +296,11 @@
initNationTemplate();
initEducationTemplate();
}, function(code, data) {
top.dialog.msg(data.msg);
//top.dialog.msg(data.msg);
}, 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() {
top.dialog.close(loadLayerIndex);
//top.dialog.close(loadLayerIndex);
});