NEZ-3100 fix: alert message详情Dashboard标签页,新增,编辑,删除,复制按钮点击无反应

This commit is contained in:
zhangyu
2023-08-21 16:02:19 +08:00
parent cb2b134375
commit 45ee9e6285
3 changed files with 8 additions and 2 deletions

View File

@@ -64,6 +64,12 @@
height: 100%; height: 100%;
padding-bottom: 0; padding-bottom: 0;
} }
.message-info-dashboard {
.nz-chart{
height: calc(100% - 55px);
padding-bottom: 0;
}
}
.alert-message-info-tab { .alert-message-info-tab {
height: 61.8%; height: 61.8%;
flex: 1; flex: 1;

View File

@@ -47,7 +47,7 @@
<span v-show="chartInfo.param.collapse" class="collapse-content">({{chartData ? chartData.length : 0}} charts)</span> <span v-show="chartInfo.param.collapse" class="collapse-content">({{chartData ? chartData.length : 0}} charts)</span>
</div> </div>
<div class="temp"></div> <div class="temp"></div>
<div class="chart-header__tools" v-if="chartInfo.type !== 'endpointInfo' && chartInfo.type !== 'assetInfo' && !isExportHtml"> <div class="chart-header__tools" v-if="chartInfo.type !== 'endpointInfo' && chartInfo.type !== 'assetInfo' && !isExportHtml && showTool">
<span v-if="chartInfo.param.link" :title="$t('overall.link')" class="chart-header__tool" @click="openUrl"> <span v-if="chartInfo.param.link" :title="$t('overall.link')" class="chart-header__tool" @click="openUrl">
<i class="nz-icon nz-icon-more-app tool__icon"></i> <i class="nz-icon nz-icon-more-app tool__icon"></i>
</span> </span>

View File

@@ -6,7 +6,7 @@
<alert-message-info-detail :info-data="infoData"/> <alert-message-info-detail :info-data="infoData"/>
</div> </div>
<div v-else-if="item.key === 'dashboard' && activeName === 'dashboard'" class="alert-message-info-dashboard"> <div v-else-if="item.key === 'dashboard' && activeName === 'dashboard'" class="alert-message-info-dashboard">
<dashboard :temp-id="infoData.alertRule.dashboardId" :showImport="false" :showName="false" :url-type="'dashboard'" :time="timeRange" :from="fromRoute.dashboard"></dashboard> <dashboard :temp-id="infoData.alertRule.dashboardId" :showImport="false" :showName="false" :url-type="'dashboard'" :time="timeRange" class="message-info-dashboard" :from="fromRoute.dashboard"></dashboard>
</div> </div>
<div v-else-if="(activeName === item.key) && infoData[item.key]" class="no-position-alert-label"> <div v-else-if="(activeName === item.key) && infoData[item.key]" class="no-position-alert-label">
<!-- <searchItemInfo :obj="findData(item.key)" :severityData="severityData" :fa-loading="false"></searchItemInfo>--> <!-- <searchItemInfo :obj="findData(item.key)" :severityData="severityData" :fa-loading="false"></searchItemInfo>-->