Merge pull request #3870 from dataease/pr@dev@fix_panel_rename

fix(仪表板): 重命名报错无权限
This commit is contained in:
taojinlong 2022-11-25 12:22:10 +08:00 committed by GitHub
commit da4485a300
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
}