forked from github/dataease
feat: 仪表板预览添加创建人
This commit is contained in:
parent
a61933e62c
commit
0700ca7c69
@ -73,10 +73,22 @@
|
|||||||
:style="mainSlotStyleInner"
|
:style="mainSlotStyleInner"
|
||||||
class="main-background"
|
class="main-background"
|
||||||
>
|
>
|
||||||
<div @mousedown="elementMouseDown" class="de-drag-area de-drag-top"></div>
|
<div
|
||||||
<div @mousedown="elementMouseDown" class="de-drag-area de-drag-right"></div>
|
class="de-drag-area de-drag-top"
|
||||||
<div @mousedown="elementMouseDown" class="de-drag-area de-drag-bottom"></div>
|
@mousedown="elementMouseDown"
|
||||||
<div @mousedown="elementMouseDown" class="de-drag-area de-drag-left"></div>
|
/>
|
||||||
|
<div
|
||||||
|
class="de-drag-area de-drag-right"
|
||||||
|
@mousedown="elementMouseDown"
|
||||||
|
/>
|
||||||
|
<div
|
||||||
|
class="de-drag-area de-drag-bottom"
|
||||||
|
@mousedown="elementMouseDown"
|
||||||
|
/>
|
||||||
|
<div
|
||||||
|
class="de-drag-area de-drag-left"
|
||||||
|
@mousedown="elementMouseDown"
|
||||||
|
/>
|
||||||
<svg-icon
|
<svg-icon
|
||||||
v-if="svgInnerEnable"
|
v-if="svgInnerEnable"
|
||||||
:style="{'color':element.commonBackground.innerImageColor}"
|
:style="{'color':element.commonBackground.innerImageColor}"
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
:span="12"
|
:span="12"
|
||||||
style="text-overflow:ellipsis;overflow: hidden;white-space: nowrap;font-size: 14px"
|
style="text-overflow:ellipsis;overflow: hidden;white-space: nowrap;font-size: 14px"
|
||||||
>
|
>
|
||||||
<span>{{ panelInfo.name || '测试仪表板' }}</span>
|
<span class="panel-name">{{ panelInfo.name || '测试仪表板' }}</span>
|
||||||
<span
|
<span
|
||||||
v-if="panelInfo.isDefault"
|
v-if="panelInfo.isDefault"
|
||||||
style="color: green;font-size: 12px"
|
style="color: green;font-size: 12px"
|
||||||
@ -40,6 +40,37 @@
|
|||||||
v-if="panelInfo.sourcePanelName"
|
v-if="panelInfo.sourcePanelName"
|
||||||
style="color: green;font-size: 12px"
|
style="color: green;font-size: 12px"
|
||||||
> ({{ $t('panel.source_panel_name') }}:{{ panelInfo.sourcePanelName }})</span>
|
> ({{ $t('panel.source_panel_name') }}:{{ panelInfo.sourcePanelName }})</span>
|
||||||
|
<span
|
||||||
|
v-if="!hasStar && panelInfo && showType !== 1&&panelInfo.status==='publish'"
|
||||||
|
style="margin-left: 9px"
|
||||||
|
>
|
||||||
|
<el-tooltip :content="$t('panel.store')">
|
||||||
|
<i
|
||||||
|
class="el-icon-star-off"
|
||||||
|
@click="star"
|
||||||
|
/>
|
||||||
|
</el-tooltip>
|
||||||
|
</span>
|
||||||
|
<span
|
||||||
|
v-if="hasStar && panelInfo && showType !== 1&&panelInfo.status==='publish'"
|
||||||
|
style="margin-left: 9px"
|
||||||
|
>
|
||||||
|
<el-tooltip :content="$t('commons.cancel') + $t('panel.store')">
|
||||||
|
<i
|
||||||
|
class="el-icon-star-on"
|
||||||
|
@click="unstar"
|
||||||
|
/>
|
||||||
|
</el-tooltip>
|
||||||
|
</span>
|
||||||
|
<template v-if="panelInfo.creatorName">
|
||||||
|
<el-divider
|
||||||
|
style="margin: 0 16px;"
|
||||||
|
direction="vertical"
|
||||||
|
/>
|
||||||
|
<span class="panel-create">
|
||||||
|
{{ $t('panel.create_by') + ':' + panelInfo.creatorName }}
|
||||||
|
</span>
|
||||||
|
</template>
|
||||||
<el-popover
|
<el-popover
|
||||||
placement="right-start"
|
placement="right-start"
|
||||||
width="400"
|
width="400"
|
||||||
@ -48,7 +79,7 @@
|
|||||||
<panel-detail-info />
|
<panel-detail-info />
|
||||||
<i
|
<i
|
||||||
slot="reference"
|
slot="reference"
|
||||||
class="el-icon-warning icon-class"
|
class="el-icon-warning-outline icon-class"
|
||||||
style="margin-left: 4px;cursor: pointer;font-size: 14px;"
|
style="margin-left: 4px;cursor: pointer;font-size: 14px;"
|
||||||
/>
|
/>
|
||||||
</el-popover>
|
</el-popover>
|
||||||
@ -119,22 +150,6 @@
|
|||||||
{{ $t('panel.new_tab_preview') }}
|
{{ $t('panel.new_tab_preview') }}
|
||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
|
|
||||||
<el-dropdown-item
|
|
||||||
v-if="!hasStar && panelInfo && showType !== 1&&panelInfo.status==='publish'"
|
|
||||||
icon="el-icon-star-off"
|
|
||||||
@click.native="star"
|
|
||||||
>
|
|
||||||
{{ $t('panel.store') }}
|
|
||||||
</el-dropdown-item>
|
|
||||||
|
|
||||||
<el-dropdown-item
|
|
||||||
v-if="hasStar && panelInfo && showType !== 1&&panelInfo.status==='publish'"
|
|
||||||
icon="el-icon-star-on"
|
|
||||||
@click.native="unstar"
|
|
||||||
>
|
|
||||||
{{ $t('commons.cancel') + $t('panel.store') }}
|
|
||||||
</el-dropdown-item>
|
|
||||||
|
|
||||||
<el-dropdown-item
|
<el-dropdown-item
|
||||||
v-if="hasStar && panelInfo && showType !== 1&&panelInfo.status==='publish'"
|
v-if="hasStar && panelInfo && showType !== 1&&panelInfo.status==='publish'"
|
||||||
icon="el-icon-refresh"
|
icon="el-icon-refresh"
|
||||||
@ -374,9 +389,9 @@ import GrantAuth from '../grantAuth'
|
|||||||
import msgCfm from '@/components/msgCfm/index'
|
import msgCfm from '@/components/msgCfm/index'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
mixins: [msgCfm],
|
|
||||||
name: 'PanelViewShow',
|
name: 'PanelViewShow',
|
||||||
components: { AppExportForm, PanelDetailInfo, Preview, SaveToTemplate, PDFPreExport, ShareHead, GrantAuth },
|
components: { AppExportForm, PanelDetailInfo, Preview, SaveToTemplate, PDFPreExport, ShareHead, GrantAuth },
|
||||||
|
mixins: [msgCfm],
|
||||||
props: {
|
props: {
|
||||||
activeTab: {
|
activeTab: {
|
||||||
type: String,
|
type: String,
|
||||||
@ -767,7 +782,7 @@ export default {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style lang="less">
|
||||||
.view-list {
|
.view-list {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 20%;
|
width: 20%;
|
||||||
@ -801,6 +816,23 @@ export default {
|
|||||||
background-color: var(--SiderBG, white);
|
background-color: var(--SiderBG, white);
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
|
|
||||||
|
.panel-name {
|
||||||
|
font-family: PingFang SC;
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 500;
|
||||||
|
line-height: 24px;
|
||||||
|
color: var(--deTextPrimary, #1F2329);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.panel-create {
|
||||||
|
font-family: PingFang SC;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 400;
|
||||||
|
line-height: 22px;
|
||||||
|
color: var(--deTextSecondary, #646A73);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel-share-head {
|
.panel-share-head {
|
||||||
|
Loading…
Reference in New Issue
Block a user