forked from github/dataease
fix(仪表板): 重命名报错无权限
This commit is contained in:
parent
f7eebcebf6
commit
6e6228a7fa
@ -222,6 +222,10 @@ public class PanelGroupService {
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
// 更新
|
// 更新
|
||||||
|
if (StringUtils.isBlank(request.getPid())) {
|
||||||
|
PanelGroupWithBLOBs panel = panelGroupMapper.selectByPrimaryKey(request.getId());
|
||||||
|
request.setPid(panel.getPid());
|
||||||
|
}
|
||||||
if (StringUtils.isNotEmpty(request.getName())) {
|
if (StringUtils.isNotEmpty(request.getName())) {
|
||||||
checkPanelName(request.getName(), request.getPid(), PanelConstants.OPT_TYPE_UPDATE, request.getId(), request.getNodeType());
|
checkPanelName(request.getName(), request.getPid(), PanelConstants.OPT_TYPE_UPDATE, request.getId(), request.getNodeType());
|
||||||
}
|
}
|
||||||
|
@ -730,7 +730,6 @@ export default {
|
|||||||
titlePre: this.$t('commons.edit'),
|
titlePre: this.$t('commons.edit'),
|
||||||
panelInfo: {
|
panelInfo: {
|
||||||
id: param.data.id,
|
id: param.data.id,
|
||||||
pid: param.data.pid,
|
|
||||||
name: param.data.name,
|
name: param.data.name,
|
||||||
nodeType: param.type
|
nodeType: param.type
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user