forked from github/dataease
refactor(仪表板): 仪表板信息弹窗修改人显示别名
This commit is contained in:
parent
ad0c505a80
commit
ead9940bf2
@ -17,6 +17,8 @@ import java.util.Map;
|
||||
public class PanelGroupDTO extends PanelGroupWithBLOBs implements ITreeBase<PanelGroupDTO> {
|
||||
@ApiModelProperty("创建用户名")
|
||||
private String creatorName;
|
||||
@ApiModelProperty("更新用户名")
|
||||
private String updateName;
|
||||
@ApiModelProperty("标签")
|
||||
private String label;
|
||||
@ApiModelProperty("是否叶子节点")
|
||||
|
@ -10,6 +10,7 @@
|
||||
<result column="default_panel_name" jdbcType="VARCHAR" property="defaultPanelName"/>
|
||||
<result column="source_panel_name" jdbcType="VARCHAR" property="sourcePanelName"/>
|
||||
<result column="creator_name" jdbcType="VARCHAR" property="creatorName"/>
|
||||
<result column="update_name" jdbcType="VARCHAR" property="updateName"/>
|
||||
<result column="is_default" property="isDefault"/>
|
||||
</resultMap>
|
||||
|
||||
@ -17,6 +18,7 @@
|
||||
select panel_group.*,
|
||||
panel_group.name as label,
|
||||
(select nick_name from sys_user where username = panel_group.create_by) as creator_name,
|
||||
(select nick_name from sys_user where username = panel_group.update_by) as update_name,
|
||||
get_auths(panel_group.id, 'panel', #{userId}) as `privileges`
|
||||
from panel_group
|
||||
where id = #{panelId}
|
||||
|
@ -170,6 +170,7 @@ export function initPanelData(panelId, useCache = false, callback) {
|
||||
createTime: response.data.createTime,
|
||||
creatorName: response.data.creatorName,
|
||||
updateBy: response.data.updateBy,
|
||||
updateName: response.data.updateName,
|
||||
updateTime: response.data.updateTime
|
||||
})
|
||||
// 刷新联动信息
|
||||
|
@ -10,7 +10,7 @@
|
||||
</el-col>
|
||||
<el-col class="info-item">
|
||||
<p class="info-title">{{ $t('panel.update_by') }}</p>
|
||||
<p class="info-content">{{ panelInfo.updateBy || 'N/A' }}</p>
|
||||
<p class="info-content">{{ panelInfo.updateName || 'N/A' }}</p>
|
||||
</el-col>
|
||||
<el-col class="info-item">
|
||||
<p class="info-title">{{ $t('panel.update_time') }}</p>
|
||||
|
Loading…
Reference in New Issue
Block a user