CN-242 Cyptocurrency--配置图表

This commit is contained in:
hanyuxia
2021-12-14 17:21:37 +08:00
parent 6623f6df65
commit 3008b640b5
6 changed files with 13 additions and 11 deletions

View File

@@ -93,7 +93,7 @@
</chart-error>
</template>
<template #title v-if="layout.indexOf(layoutConstant.HEADER) > -1" >
<span :class="{ 'cn-chart__crypto-header':(isEchartsTimeBar||isEchartsCategoryBar)}">{{chartInfo.i18n ? $t(chartInfo.i18n) : chartInfo.name}}</span>
{{chartInfo.i18n ? $t(chartInfo.i18n) : chartInfo.name}}
</template>
<template #operations v-if="layout.indexOf(layoutConstant.HEADER) > -1">
<div class="header__operation header__operation--echarts" v-if="chart.type === 31">
@@ -459,7 +459,7 @@
:errorInfo="errorInfo"
>
</chart-error>
<div class="header__title cn-chart__crypto-header" >
<div class="header__title" >
<span :title="chartInfo.i18n ? $t(chartInfo.i18n) : chartInfo.name">{{chartInfo.i18n ? $t(chartInfo.i18n) : chartInfo.name}}</span>
</div>

View File

@@ -1,6 +1,6 @@
<template>
<div style="padding: 10px 0 20px 20px;" v-if="!isEntityDetail">
<div class="cn-panel" id="cn-panel">
<div id="cn-panel" :class="(isCryptocurrency)?'cn-panel cn-panel-crypto':'cn-panel'">
<div class="panel__time">
<DateTimeRange class="date-time-range" :start-time="timeFilter.startTime" :end-time="timeFilter.endTime" ref="dateTimeRange" @change="reload"/>
<TimeRefresh class="date-time-range" @change="timeRefreshChange" :end-time="timeFilter.endTime"/>
@@ -104,10 +104,13 @@ export default {
// entity详情的chart
detailTabs: [],
detailChartList: [],
currentTab: ''
currentTab: '',
isCryptocurrency: false// 是否为挖矿列表
}
},
async mounted () {
const path = this.$route.path
this.isCryptocurrency = this.$route.path.indexOf('cryptocurrency') > -1
await this.init()
if (!this.$_.isEmpty(this.detailTabs)) {
this.currentTab = this.detailTabs[0].id + ''