|
@@ -1,8 +1,8 @@
|
|
|
<template>
|
|
|
<div style="height: 100%; width: 100%">
|
|
|
<div class="chart-title">
|
|
|
- <div class="name">
|
|
|
- {{ `${chartData.siteName}:${chartData.indexName}${chartData.unit ? `(${chartData.unit})` : ''}` }}
|
|
|
+ <div class="name" :title="title">
|
|
|
+ {{ title }}
|
|
|
</div>
|
|
|
<div class="operation">
|
|
|
<!-- <el-button size="mini" plain @click="initChart()">
|
|
@@ -58,6 +58,11 @@ export default class IndexLineChart extends Vue {
|
|
|
refetchData(active: boolean) {
|
|
|
if (active) this.onResize()
|
|
|
}
|
|
|
+ get title() {
|
|
|
+ return `${this.chartData.siteName}:${this.chartData.indexName}${
|
|
|
+ this.chartData.unit ? `(${this.chartData.unit})` : ''
|
|
|
+ }`
|
|
|
+ }
|
|
|
myChart = null
|
|
|
isShowTable = false
|
|
|
tableData = []
|
|
@@ -283,6 +288,7 @@ export default class IndexLineChart extends Vue {
|
|
|
label {
|
|
|
@include font();
|
|
|
cursor: pointer;
|
|
|
+ white-space: nowrap;
|
|
|
}
|
|
|
}
|
|
|
}
|