forked from github/dataease
Merge pull request #3870 from dataease/pr@dev@fix_panel_rename
fix(仪表板): 重命名报错无权限
This commit is contained in:
commit
da4485a300
@ -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());
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user