fix(仪表板): 重命名报错无权限

This commit is contained in:
fit2cloud-chenyw 2022-11-25 11:30:54 +08:00
parent f7eebcebf6
commit 6e6228a7fa
2 changed files with 4 additions and 1 deletions

View File

@ -222,6 +222,10 @@ public class PanelGroupService {
} else {
// 更新
if (StringUtils.isBlank(request.getPid())) {
PanelGroupWithBLOBs panel = panelGroupMapper.selectByPrimaryKey(request.getId());
request.setPid(panel.getPid());
}
if (StringUtils.isNotEmpty(request.getName())) {
checkPanelName(request.getName(), request.getPid(), PanelConstants.OPT_TYPE_UPDATE, request.getId(), request.getNodeType());
}

View File

@ -730,7 +730,6 @@ export default {
titlePre: this.$t('commons.edit'),
panelInfo: {
id: param.data.id,
pid: param.data.pid,
name: param.data.name,
nodeType: param.type
}