Commit 3c103baf authored by 梁光意's avatar 梁光意

修复点击节点查询显示仪表盘配置接口

parent c4ae196e
......@@ -81,8 +81,8 @@ public class InstrumentPanelTreeController extends BaseRestController {
required = true,
dataTypeClass = String.class),
@ApiImplicitParam(name = "panelId", value = "仪表板id", required = true, dataTypeClass = String.class)})
public R<InstrumentPanelConfigVo> childrenPanel(@PathVariable String appId, @RequestParam("nodeId") String nodeId) {
return call(() -> (configService.getPublishConfigByPanelId(nodeId)));
public R<InstrumentPanelConfigVo> childrenPanel(@PathVariable String appId, @RequestParam("panelId") String panelId) {
return call(() -> (configService.getPublishConfigByPanelId(panelId)));
}
......
......@@ -325,7 +325,7 @@ public class InstrumentPanelConfigServiceImpl extends ServiceImpl<InstrumentPane
vo.setPermissions(permissionService.getPublishPermissionByPanelId(instrumentPanelId, published.value));
InstrumentPanelVo panelVo = new InstrumentPanelVo();
if (PublishedStatus.PUBLISHED.value.equals(published.value)) {
InstrumentPanelDraft panel = draftService.getById(instrumentPanelId);
InstrumentPanelDraft panel = draftService.getByPanelId(instrumentPanelId);
BeanUtils.copyProperties(panel, panelVo);
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment