NEZ-2802 feat: alertMessaheInfo dashborad 样式优化

This commit is contained in:
zhangyu
2023-04-25 10:55:28 +08:00
parent fccbf70c58
commit 1ade31b1b7
7 changed files with 21 additions and 4 deletions

View File

@@ -427,6 +427,9 @@
.integration-dashboard{
box-sizing: border-box;
height: 100%;
.nz-chart__component.nz-chart__component--bottom .legend-container {
max-height: 60px;
}
.dashboard-container{
height: 100%;
.table-list{

View File

@@ -24,7 +24,7 @@
.legend-container{
overflow: auto;
width: calc(100% - 30px);
max-height:80px;
max-height:80px !important;
min-height:25px;
/*height: 80px;*/
font-size:12px;

View File

@@ -71,7 +71,7 @@
<i class="nz-icon nz-icon-maxview tool__icon"></i>
</div>
</span>
<span class="chart-header__tool" v-if="!chartInfo.repeatIndex&&from!=='integration'">
<span class="chart-header__tool" v-if="!chartInfo.repeatIndex && from!=='integration' && showTool">
<el-dropdown v-clickoutside="clickos" v-has="['main_edit','main_delete','main_add']" trigger="click">
<i class="el-icon-more tool__icon" @click.stop="dropdownMenuShow = !dropdownMenuShow" :title="$t('overall.more')"></i>
<el-dropdown-menu style="display: none" class="temp-dropdown"></el-dropdown-menu>

View File

@@ -27,6 +27,10 @@ export default {
type: Boolean,
default: false
},
showTool: {
type: Boolean,
default: true
},
hiddenText: { // 隐藏图表的悬浮文字
type: String
}

View File

@@ -54,6 +54,7 @@
@groupShow="groupShow"
:isExportHtml="isExportHtml"
:dataJson="dataJson"
:showTool="showTool"
:chart-detail-info="chartDetailInfo"
:hiddenText="showHidden[item.id]&&showHidden[item.id].hiddenText"
@refreshPanel="refreshPanel"
@@ -129,6 +130,10 @@ export default {
variablesInit: {
type: Boolean,
default: true
},
showTool: {
type: Boolean,
default: true
}
},
components: {

View File

@@ -18,6 +18,7 @@
@edit-chart="$emit('edit-chart', chartInfo)"
@refresh="refresh"
@sync="chartSync"
:showTool="showTool"
@groupShow="groupShow"
@showFullscreen="showFullscreen"
></chart-header>
@@ -106,6 +107,10 @@ export default {
type: Boolean,
default: true
},
showTool: {
type: Boolean,
default: true
},
hiddenText: { // 隐藏图表的悬浮文字
type: String
}

View File

@@ -26,7 +26,7 @@
:nowTimeType="nowTimeType"
:from="from"
:time-range="searchTime"
:show-tool="false"
:showTool="false"
:loading="chartListLoading"
></chart-list>
</div>
@@ -152,13 +152,13 @@ export default {
this.chartListLoading = true
this.$get('visual/dashboard/chart?dashboardId=' + params.dashboardId + '&groupId=0' + '&pageSize=-1').then(response => {
if (response.code === 200) {
this.chartListLoading = false
this.dataList = response.data.list.map(item => {
return {
...item,
loaded: false
}
})
this.chartListLoading = false
}
})
},