|
@@ -6,25 +6,25 @@
|
|
|
<icon name="chart-bar"></icon>
|
|
|
</span>
|
|
|
<div class="d-flex">
|
|
|
- <span class="fs-xl text mx-2">燃料情况</span>
|
|
|
+ <span class="fs-xl text mx-2">发电机趋势</span>
|
|
|
<dv-decoration-3 style="width:1.25rem;height:.25rem; position:relative;top:-.0375rem;" />
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="d-flex jc-center">
|
|
|
- <centreLeft1Chart />
|
|
|
+ <div class="d-flex chartStyle">
|
|
|
+ <!--渐变折线图-->
|
|
|
+ <div id="oneGTGyChart" style="width:100%;height:2rem;"></div>
|
|
|
</div>
|
|
|
- <!-- 4个主要的数据 -->
|
|
|
- <div class="bottom-data">
|
|
|
- <div class="item-box" v-for="(item,index) in numberData" :key="index">
|
|
|
- <div class="d-flex">
|
|
|
- <span class="coin"></span>
|
|
|
- <dv-digital-flop :config="item.number" style="width:2.5rem;height:.625rem;" />
|
|
|
- </div>
|
|
|
- <p class="text" style="text-align: center;">
|
|
|
- {{item.text}}
|
|
|
- <span class="colorYellow">(MW)</span>
|
|
|
- </p>
|
|
|
- </div>
|
|
|
+ <div class="d-flex chartStyle">
|
|
|
+ <!--渐变折线图-->
|
|
|
+ <div id="twoGTGyChart" style="width:100%;height:2rem;"></div>
|
|
|
+ </div>
|
|
|
+ <div class="d-flex chartStyle">
|
|
|
+ <!--渐变折线图-->
|
|
|
+ <div id="threeGTGyChart" style="width:100%;height:2rem;"></div>
|
|
|
+ </div>
|
|
|
+ <div class="d-flex chartStyle">
|
|
|
+ <!--渐变折线图-->
|
|
|
+ <div id="fourGTGyChart" style="width:100%;height:2rem;"></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -104,6 +104,10 @@ export default {
|
|
|
},
|
|
|
mounted() {
|
|
|
this.changeTiming();
|
|
|
+ this.initOneChart();
|
|
|
+ this.initTwoChart();
|
|
|
+ this.initThreeChart();
|
|
|
+ this.initFourChart();
|
|
|
},
|
|
|
methods: {
|
|
|
changeTiming() {
|
|
@@ -116,7 +120,184 @@ export default {
|
|
|
item.number.number[0] += ++index;
|
|
|
item.number = { ...item.number };
|
|
|
});
|
|
|
- }
|
|
|
+ },
|
|
|
+ initOneChart() {
|
|
|
+ // 基于准备好的dom,初始化echarts实例
|
|
|
+ this.chart = this.echarts.init(document.getElementById('oneGTGyChart'))
|
|
|
+
|
|
|
+ this.chart.setOption({
|
|
|
+ /* 周围边距 */
|
|
|
+ grid: {
|
|
|
+ left: '3%',
|
|
|
+ right: '3%',
|
|
|
+ bottom: '1%',
|
|
|
+ top: '13%',
|
|
|
+ containLabel: true
|
|
|
+ },
|
|
|
+ xAxis: {
|
|
|
+ type: 'category',
|
|
|
+ data: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31']
|
|
|
+ },
|
|
|
+ yAxis: {
|
|
|
+ type: 'value'
|
|
|
+ },
|
|
|
+ series: [
|
|
|
+ {
|
|
|
+ data: [150, 230, 224, 218, 135, 147, 260, 150, 230, 224, 218, 135, 147, 260, 150, 230, 224, 218, 135, 147, 260, 150, 230, 224, 218, 135, 147, 260, 23, 147, 123],
|
|
|
+ type: 'line',
|
|
|
+ itemStyle: {
|
|
|
+ color: 'rgb(78,109,60)'
|
|
|
+ },
|
|
|
+ symbol: "none",
|
|
|
+ areaStyle: {
|
|
|
+ color: new this.echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
|
+ {
|
|
|
+ offset: 0,
|
|
|
+ color: 'rgb(207,243,68)'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ offset: 1,
|
|
|
+ color: 'rgb(119,189,74)'
|
|
|
+ }
|
|
|
+ ])
|
|
|
+ },
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ })
|
|
|
+ },
|
|
|
+ initTwoChart() {
|
|
|
+ // 基于准备好的dom,初始化echarts实例
|
|
|
+ this.chart = this.echarts.init(document.getElementById('twoGTGyChart'))
|
|
|
+
|
|
|
+ this.chart.setOption({
|
|
|
+ /* 周围边距 */
|
|
|
+ grid: {
|
|
|
+ left: '3%',
|
|
|
+ right: '3%',
|
|
|
+ bottom: '1%',
|
|
|
+ top: '13%',
|
|
|
+ containLabel: true
|
|
|
+ },
|
|
|
+ xAxis: {
|
|
|
+ type: 'category',
|
|
|
+ data: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31']
|
|
|
+ },
|
|
|
+ yAxis: {
|
|
|
+ type: 'value'
|
|
|
+ },
|
|
|
+ series: [
|
|
|
+ {
|
|
|
+ data: [150, 230, 224, 218, 135, 147, 260, 150, 230, 224, 218, 135, 147, 260, 150, 230, 224, 218, 135, 147, 260, 150, 230, 224, 218, 135, 147, 260, 23, 147, 123],
|
|
|
+ type: 'line',
|
|
|
+ itemStyle: {
|
|
|
+ color: 'rgb(213,173,92)'
|
|
|
+ },
|
|
|
+ symbol: "none",
|
|
|
+ areaStyle: {
|
|
|
+ color: new this.echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
|
+ {
|
|
|
+ offset: 0,
|
|
|
+ color: 'rgb(239,193,152)'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ offset: 1,
|
|
|
+ color: 'rgb(224,148,34)'
|
|
|
+ }
|
|
|
+ ])
|
|
|
+ },
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ })
|
|
|
+ },
|
|
|
+ initThreeChart() {
|
|
|
+ // 基于准备好的dom,初始化echarts实例
|
|
|
+ this.chart = this.echarts.init(document.getElementById('threeGTGyChart'))
|
|
|
+
|
|
|
+ this.chart.setOption({
|
|
|
+ /* 周围边距 */
|
|
|
+ grid: {
|
|
|
+ left: '3%',
|
|
|
+ right: '3%',
|
|
|
+ bottom: '1%',
|
|
|
+ top: '13%',
|
|
|
+ containLabel: true
|
|
|
+ },
|
|
|
+ xAxis: {
|
|
|
+ type: 'category',
|
|
|
+ data: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31']
|
|
|
+ },
|
|
|
+ yAxis: {
|
|
|
+ type: 'value'
|
|
|
+ },
|
|
|
+ series: [
|
|
|
+ {
|
|
|
+ data: [150, 230, 224, 218, 135, 147, 260, 150, 230, 224, 218, 135, 147, 260, 150, 230, 224, 218, 135, 147, 260, 150, 230, 224, 218, 135, 147, 260, 23, 147, 123],
|
|
|
+ type: 'line',
|
|
|
+ itemStyle: {
|
|
|
+ color: 'rgb(142,161,131)'
|
|
|
+ },
|
|
|
+ symbol: "none",
|
|
|
+ areaStyle: {
|
|
|
+ color: new this.echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
|
+ {
|
|
|
+ offset: 0,
|
|
|
+ color: 'rgb(229,245,171)'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ offset: 1,
|
|
|
+ color: 'rgb(156,186,137)'
|
|
|
+ }
|
|
|
+ ])
|
|
|
+ },
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ })
|
|
|
+ },
|
|
|
+ initFourChart() {
|
|
|
+ // 基于准备好的dom,初始化echarts实例
|
|
|
+ this.chart = this.echarts.init(document.getElementById('fourGTGyChart'))
|
|
|
+
|
|
|
+ this.chart.setOption({
|
|
|
+ /* 周围边距 */
|
|
|
+ grid: {
|
|
|
+ left: '3%',
|
|
|
+ right: '3%',
|
|
|
+ bottom: '1%',
|
|
|
+ top: '13%',
|
|
|
+ containLabel: true
|
|
|
+ },
|
|
|
+ xAxis: {
|
|
|
+ type: 'category',
|
|
|
+ data: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31']
|
|
|
+ },
|
|
|
+ yAxis: {
|
|
|
+ type: 'value'
|
|
|
+ },
|
|
|
+ series: [
|
|
|
+ {
|
|
|
+ data: [150, 230, 224, 218, 135, 147, 260, 150, 230, 224, 218, 135, 147, 260, 150, 230, 224, 218, 135, 147, 260, 150, 230, 224, 218, 135, 147, 260, 23, 147, 123],
|
|
|
+ type: 'line',
|
|
|
+ itemStyle: {
|
|
|
+ color: 'rgb(60,95,109)'
|
|
|
+ },
|
|
|
+ symbol: "none",
|
|
|
+ areaStyle: {
|
|
|
+ color: new this.echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
|
+ {
|
|
|
+ offset: 0,
|
|
|
+ color: 'rgb(189,225,250)'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ offset: 1,
|
|
|
+ color: 'rgb(74,143,189)'
|
|
|
+ }
|
|
|
+ ])
|
|
|
+ },
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
}
|
|
|
};
|
|
|
</script>
|
|
@@ -130,6 +311,12 @@ export default {
|
|
|
.bg-color-black {
|
|
|
height: 4.8125rem;
|
|
|
border-radius: 0.125rem;
|
|
|
+ width: 100%;
|
|
|
+ .chartStyle {
|
|
|
+ float: right;
|
|
|
+ position: relative;
|
|
|
+ width: 50%;
|
|
|
+ }
|
|
|
}
|
|
|
.text {
|
|
|
color: #c3cbde;
|
|
@@ -142,7 +329,6 @@ export default {
|
|
|
padding-top: 0.125rem;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
.bottom-data {
|
|
|
.item-box {
|
|
|
float: right;
|