|
@@ -0,0 +1,920 @@
|
|
|
+<template>
|
|
|
+ <div class="hui-flex hui-content conservation-item">
|
|
|
+ <div class="hui-content-title">
|
|
|
+ <div class="hui-title-item active">输配侧</div>
|
|
|
+ <div class="hui-title-item">换热侧</div>
|
|
|
+ <div class="hui-title-item">室外侧</div>
|
|
|
+ <div class="hui-title-item">设备侧</div>
|
|
|
+ </div>
|
|
|
+ <div class="hui-flex-box">
|
|
|
+ <div class="conservation-item">
|
|
|
+ <div class="hui-chart-title">
|
|
|
+ 输配侧
|
|
|
+ </div>
|
|
|
+ <div class="conservation-chart">
|
|
|
+ <div class="chart-item">
|
|
|
+ <div class="chart-title">
|
|
|
+ 冷却水供/回水温度
|
|
|
+ </div>
|
|
|
+ <div class="legend-box">
|
|
|
+ <div class="legend-item">
|
|
|
+ <span class="legend-page" style="background:#3371FF;"></span>
|
|
|
+ <span class="legend-name">冷却水管供水温度</span>
|
|
|
+ </div>
|
|
|
+ <div class="legend-item">
|
|
|
+ <span class="legend-page" style="background:#06E0E9;"></span>
|
|
|
+ <span class="legend-name">冷却水管回水温度</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div ref="chart1" class="chart-box"></div>
|
|
|
+ </div>
|
|
|
+ <div class="chart-item">
|
|
|
+ <div class="chart-title">
|
|
|
+ 冷冻水供/回水温度
|
|
|
+ </div>
|
|
|
+ <div class="legend-box">
|
|
|
+ <div class="legend-item">
|
|
|
+ <span class="legend-page" style="background:#3371FF;"></span>
|
|
|
+ <span class="legend-name">冷却水管供水温度</span>
|
|
|
+ </div>
|
|
|
+ <div class="legend-item">
|
|
|
+ <span class="legend-page" style="background:#06E0E9;"></span>
|
|
|
+ <span class="legend-name">冷却水管回水温度</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div ref="chart2" class="chart-box"></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="conservation-item">
|
|
|
+ <div class="hui-chart-title">
|
|
|
+ 冷却塔换热侧
|
|
|
+ </div>
|
|
|
+ <div class="conservation-chart">
|
|
|
+ <div class="chart-item">
|
|
|
+ <div class="chart-title">
|
|
|
+ 1#冷却塔
|
|
|
+ </div>
|
|
|
+ <div class="legend-box">
|
|
|
+ <div class="legend-item">
|
|
|
+ <span class="legend-page" style="background:#06E0E9;"></span>
|
|
|
+ <span class="legend-name">冷却塔出水温度</span>
|
|
|
+ </div>
|
|
|
+ <div class="legend-item">
|
|
|
+ <span class="legend-page" style="background:#F04243;"></span>
|
|
|
+ <span class="legend-name">室外湿球温度</span>
|
|
|
+ </div>
|
|
|
+ <div class="legend-item">
|
|
|
+ <span class="legend-page" style="background:#2DB85C;"></span>
|
|
|
+ <span class="legend-name">逼近温度</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div ref="chart3" class="chart-box"></div>
|
|
|
+ </div>
|
|
|
+ <div class="chart-item">
|
|
|
+ <div class="chart-title">
|
|
|
+ 2#冷却塔
|
|
|
+ </div>
|
|
|
+ <div class="legend-box">
|
|
|
+ <div class="legend-item">
|
|
|
+ <span class="legend-page" style="background:#06E0E9;"></span>
|
|
|
+ <span class="legend-name">冷却塔出水温度</span>
|
|
|
+ </div>
|
|
|
+ <div class="legend-item">
|
|
|
+ <span class="legend-page" style="background:#F04243;"></span>
|
|
|
+ <span class="legend-name">室外湿球温度</span>
|
|
|
+ </div>
|
|
|
+ <div class="legend-item">
|
|
|
+ <span class="legend-page" style="background:#2DB85C;"></span>
|
|
|
+ <span class="legend-name">逼近温度</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div ref="chart4" class="chart-box"></div>
|
|
|
+ </div>
|
|
|
+ <div class="chart-item">
|
|
|
+ <div class="chart-title">
|
|
|
+ 3#冷却塔
|
|
|
+ </div>
|
|
|
+ <div class="legend-box">
|
|
|
+ <div class="legend-item">
|
|
|
+ <span class="legend-page" style="background:#06E0E9;"></span>
|
|
|
+ <span class="legend-name">冷却塔出水温度</span>
|
|
|
+ </div>
|
|
|
+ <div class="legend-item">
|
|
|
+ <span class="legend-page" style="background:#F04243;"></span>
|
|
|
+ <span class="legend-name">室外湿球温度</span>
|
|
|
+ </div>
|
|
|
+ <div class="legend-item">
|
|
|
+ <span class="legend-page" style="background:#2DB85C;"></span>
|
|
|
+ <span class="legend-name">逼近温度</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div ref="chart5" class="chart-box"></div>
|
|
|
+ </div>
|
|
|
+ <div class="chart-item">
|
|
|
+ <div class="chart-title">
|
|
|
+ 4#冷却塔
|
|
|
+ </div>
|
|
|
+ <div class="legend-box">
|
|
|
+ <div class="legend-item">
|
|
|
+ <span class="legend-page" style="background:#06E0E9;"></span>
|
|
|
+ <span class="legend-name">冷却塔出水温度</span>
|
|
|
+ </div>
|
|
|
+ <div class="legend-item">
|
|
|
+ <span class="legend-page" style="background:#F04243;"></span>
|
|
|
+ <span class="legend-name">室外湿球温度</span>
|
|
|
+ </div>
|
|
|
+ <div class="legend-item">
|
|
|
+ <span class="legend-page" style="background:#2DB85C;"></span>
|
|
|
+ <span class="legend-name">逼近温度</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div ref="chart6" class="chart-box"></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="conservation-item">
|
|
|
+ <div class="hui-chart-title">
|
|
|
+ 输配侧
|
|
|
+ </div>
|
|
|
+ <div class="conservation-chart">
|
|
|
+ <div class="chart-item">
|
|
|
+ <div class="chart-title">
|
|
|
+ 室外气象数据
|
|
|
+ </div>
|
|
|
+ <div class="legend-box">
|
|
|
+ <div class="legend-item">
|
|
|
+ <span class="legend-page" style="background:#3371FF;"></span>
|
|
|
+ <span class="legend-name">室外干球温度</span>
|
|
|
+ </div>
|
|
|
+ <div class="legend-item">
|
|
|
+ <span class="legend-page" style="background:#06E0E9;"></span>
|
|
|
+ <span class="legend-name">室外湿球温度</span>
|
|
|
+ </div>
|
|
|
+ <div class="legend-item">
|
|
|
+ <span class="legend-page"
|
|
|
+ style="background: linear-gradient(360deg, rgba(157,96,251,0) 0%, #9D60FB 100%);"></span>
|
|
|
+ <span class="legend-name">室外湿球温度</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div ref="chart7" class="chart-box"></div>
|
|
|
+ </div>
|
|
|
+ <div class="chart-item">
|
|
|
+ <div class="chart-title">
|
|
|
+ 冷冻水供/回水温度
|
|
|
+ </div>
|
|
|
+ <div class="legend-box">
|
|
|
+ <div class="legend-item">
|
|
|
+ <span class="legend-page" style="background:#3371FF;"></span>
|
|
|
+ <span class="legend-name">监测室外湿球温度</span>
|
|
|
+ </div>
|
|
|
+ <div class="legend-item">
|
|
|
+ <span class="legend-page" style="background:#06E0E9;"></span>
|
|
|
+ <span class="legend-name">预测室外相对温度</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div ref="chart8" class="chart-box"></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="conservation-item">
|
|
|
+ <div class="hui-chart-title">
|
|
|
+ 室外侧
|
|
|
+ </div>
|
|
|
+ <div class="conservation-select combination-select">
|
|
|
+ <el-select size="mini" v-model="value" placeholder="请选择">
|
|
|
+ <el-option label="浓度" :value="1">
|
|
|
+ </el-option>
|
|
|
+ <el-option label="浊度" :value="2">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ <el-select size="mini" v-model="value" placeholder="请选择">
|
|
|
+ <el-option label="浓度" :value="1">
|
|
|
+ </el-option>
|
|
|
+ <el-option label="浊度" :value="2">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ <el-date-picker size="mini" v-model="value1" type="daterange" range-separator="-"
|
|
|
+ start-placeholder="开始日期" end-placeholder="结束日期">
|
|
|
+ </el-date-picker>
|
|
|
+ </div>
|
|
|
+ <div class="chart-table">
|
|
|
+ <div class="chart-table-item">
|
|
|
+ <div class="title">冷却水进水温度及负荷率与时间组合分布图</div>
|
|
|
+ <div ref="chart9" class="big-chart"></div>
|
|
|
+ </div>
|
|
|
+ <div class="chart-table-item">
|
|
|
+ <div class="title">冷却水进水温度及负荷率与时间组合分布图</div>
|
|
|
+ <div class="big-chart">
|
|
|
+ <el-table :data="tableData" style="width: 100%" height="100%">
|
|
|
+ <el-table-column prop="type" label="负荷率" width="120">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="冷却水进水温度(°C)">
|
|
|
+ <el-table-column prop="name" label="4°C" min-width="60">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="name" label="20°C" min-width="60">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="name" label="22°C" min-width="60">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="name" label="24°C" min-width="60">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="name" label="26°C" min-width="60">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="name" label="28°C" min-width="60">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="name" label="30°C" min-width="60">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="name" label="32°C" min-width="60">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="name" label="124°C" min-width="80">
|
|
|
+ </el-table-column>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="chart-table">
|
|
|
+ <div class="chart-table-item">
|
|
|
+ <div class="title">冷却水进水温度及负荷率与时间组合分布图</div>
|
|
|
+ <div ref="chart10" class="big-chart"></div>
|
|
|
+ </div>
|
|
|
+ <div class="chart-table-item">
|
|
|
+ <div class="title">冷却水进水温度及负荷率与时间组合分布图</div>
|
|
|
+ <div class="big-chart">
|
|
|
+ <el-table :data="tableData" style="width: 100%" height="100%">
|
|
|
+ <el-table-column prop="type" label="负荷率" width="120">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="冷却水进水温度(°C)">
|
|
|
+ <el-table-column prop="name" label="4°C" min-width="60">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="name" label="20°C" min-width="60">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="name" label="22°C" min-width="60">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="name" label="24°C" min-width="60">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="name" label="26°C" min-width="60">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="name" label="28°C" min-width="60">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="name" label="30°C" min-width="60">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="name" label="32°C" min-width="60">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="name" label="124°C" min-width="80">
|
|
|
+ </el-table-column>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="conservation-select combination-select">
|
|
|
+ <el-select size="mini" v-model="value" placeholder="请选择">
|
|
|
+ <el-option label="浓度" :value="1">
|
|
|
+ </el-option>
|
|
|
+ <el-option label="浊度" :value="2">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+ <div class="conservation-chart">
|
|
|
+ <div class="chart-item">
|
|
|
+ <div class="chart-title">
|
|
|
+ 蒸发器换热能力情况
|
|
|
+ </div>
|
|
|
+ <div class="legend-box">
|
|
|
+ <div class="legend-item">
|
|
|
+ <span class="legend-page" style="background:#3371FF;"></span>
|
|
|
+ <span class="legend-name">蒸发器出水温度</span>
|
|
|
+ </div>
|
|
|
+ <div class="legend-item">
|
|
|
+ <span class="legend-page" style="background:#06E0E9;"></span>
|
|
|
+ <span class="legend-name">蒸发温度</span>
|
|
|
+ </div>
|
|
|
+ <div class="legend-item">
|
|
|
+ <span class="legend-page" style="background:#F9B115;"></span>
|
|
|
+ <span class="legend-name">趋近温度</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div ref="chart11" class="chart-box"></div>
|
|
|
+ </div>
|
|
|
+ <div class="chart-item">
|
|
|
+ <div class="chart-title">
|
|
|
+ 冷凝器换热能力情况
|
|
|
+ </div>
|
|
|
+ <div class="legend-box">
|
|
|
+ <div class="legend-item">
|
|
|
+ <span class="legend-page" style="background:#3371FF;"></span>
|
|
|
+ <span class="legend-name">蒸发器出水温度</span>
|
|
|
+ </div>
|
|
|
+ <div class="legend-item">
|
|
|
+ <span class="legend-page" style="background:#06E0E9;"></span>
|
|
|
+ <span class="legend-name">蒸发温度</span>
|
|
|
+ </div>
|
|
|
+ <div class="legend-item">
|
|
|
+ <span class="legend-page" style="background:#F9B115;"></span>
|
|
|
+ <span class="legend-name">趋近温度</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div ref="chart12" class="chart-box"></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="conservation-chart">
|
|
|
+ <div class="chart-item">
|
|
|
+ <div class="chart-title">
|
|
|
+ 蒸发器换热能力情况
|
|
|
+ </div>
|
|
|
+ <div class="legend-box">
|
|
|
+ <div class="legend-item">
|
|
|
+ <span class="legend-page" style="background:#3371FF;"></span>
|
|
|
+ <span class="legend-name">蒸发器出水温度</span>
|
|
|
+ </div>
|
|
|
+ <div class="legend-item">
|
|
|
+ <span class="legend-page" style="background:#06E0E9;"></span>
|
|
|
+ <span class="legend-name">蒸发温度</span>
|
|
|
+ </div>
|
|
|
+ <div class="legend-item">
|
|
|
+ <span class="legend-page" style="background:#F9B115;"></span>
|
|
|
+ <span class="legend-name">趋近温度</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div ref="chart13" class="chart-box"></div>
|
|
|
+ </div>
|
|
|
+ <div class="chart-item">
|
|
|
+ <div class="chart-title">
|
|
|
+ 冷凝器换热能力情况
|
|
|
+ </div>
|
|
|
+ <div class="legend-box">
|
|
|
+ <div class="legend-item">
|
|
|
+ <span class="legend-page" style="background:#3371FF;"></span>
|
|
|
+ <span class="legend-name">蒸发器出水温度</span>
|
|
|
+ </div>
|
|
|
+ <div class="legend-item">
|
|
|
+ <span class="legend-page" style="background:#06E0E9;"></span>
|
|
|
+ <span class="legend-name">蒸发温度</span>
|
|
|
+ </div>
|
|
|
+ <div class="legend-item">
|
|
|
+ <span class="legend-page" style="background:#F9B115;"></span>
|
|
|
+ <span class="legend-name">趋近温度</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div ref="chart14" class="chart-box"></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+ export default {
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ value: '',
|
|
|
+ value1: [],
|
|
|
+ tableData: [{
|
|
|
+ type: '0%',
|
|
|
+ name: 10,
|
|
|
+ }, {
|
|
|
+ type: '10%',
|
|
|
+ name: 10,
|
|
|
+ }, {
|
|
|
+ type: '20%',
|
|
|
+ name: 10,
|
|
|
+ }, {
|
|
|
+ type: '30%',
|
|
|
+ name: 10,
|
|
|
+ }, {
|
|
|
+ type: '40%',
|
|
|
+ name: 10,
|
|
|
+ }, {
|
|
|
+ type: '50%',
|
|
|
+ name: 10,
|
|
|
+ }, {
|
|
|
+ type: '60%',
|
|
|
+ name: 10,
|
|
|
+ }, {
|
|
|
+ type: '70%',
|
|
|
+ name: 10,
|
|
|
+ }, {
|
|
|
+ type: '80%',
|
|
|
+ name: 10,
|
|
|
+ }, {
|
|
|
+ type: '90%',
|
|
|
+ name: 10,
|
|
|
+ }, {
|
|
|
+ type: '100%',
|
|
|
+ name: 10,
|
|
|
+ }, {
|
|
|
+ type: '时间权重总汇',
|
|
|
+ name: 10,
|
|
|
+ }, {
|
|
|
+ type: '总时长(H)',
|
|
|
+ name: 10,
|
|
|
+ }]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.chart(this.$refs.chart1, [
|
|
|
+ [1, 3, 2, 6, 1, 1, 3, 2, 6, 1],
|
|
|
+ [2, 3, 1, 4, 4, 2, 3, 1, 4, 4]
|
|
|
+ ], ['#3371FF', '#06E0E9'], ['类目1', '类目2', '类目3', '类目4', '类目5', '类目6', '类目7', '类目8', '类目9',
|
|
|
+ '类目10'
|
|
|
+ ])
|
|
|
+ this.chart(this.$refs.chart2, [
|
|
|
+ [1, 3, 2, 6, 1, 1, 3, 2, 6, 1],
|
|
|
+ [2, 3, 1, 4, 4, 2, 3, 1, 4, 4]
|
|
|
+ ], ['#3371FF', '#06E0E9'], ['类目1', '类目2', '类目3', '类目4', '类目5', '类目6', '类目7', '类目8', '类目9',
|
|
|
+ '类目10'
|
|
|
+ ])
|
|
|
+ this.chart(this.$refs.chart3, [
|
|
|
+ [1, 3, 2, 6, 1, 1],
|
|
|
+ [2, 3, 1, 4, 4, 2],
|
|
|
+ [3, 2, 1, 5, 3, 3],
|
|
|
+ ], ['#06E0E9', '#F04243', '#2DB85C'], ['类目1', '类目2', '类目3', '类目4', '类目5', '类目6'])
|
|
|
+ this.chart(this.$refs.chart4, [
|
|
|
+ [1, 3, 2, 6, 1, 1],
|
|
|
+ [2, 3, 1, 4, 4, 2],
|
|
|
+ [3, 2, 1, 5, 3, 3],
|
|
|
+ ], ['#06E0E9', '#F04243', '#2DB85C'], ['类目1', '类目2', '类目3', '类目4', '类目5', '类目6'])
|
|
|
+ this.chart(this.$refs.chart5, [
|
|
|
+ [1, 3, 2, 6, 1, 1],
|
|
|
+ [2, 3, 1, 4, 4, 2],
|
|
|
+ [3, 2, 1, 5, 3, 3],
|
|
|
+ ], ['#06E0E9', '#F04243', '#2DB85C'], ['类目1', '类目2', '类目3', '类目4', '类目5', '类目6'])
|
|
|
+ this.chart(this.$refs.chart6, [
|
|
|
+ [1, 3, 2, 6, 1, 1],
|
|
|
+ [2, 3, 1, 4, 4, 2],
|
|
|
+ [3, 2, 1, 5, 3, 3],
|
|
|
+ ], ['#06E0E9', '#F04243', '#2DB85C'], ['类目1', '类目2', '类目3', '类目4', '类目5', '类目6'])
|
|
|
+ this.chart(this.$refs.chart7, [
|
|
|
+ [1, 3, 2, 6, 1, 1, 3, 2, 6, 1],
|
|
|
+ [2, 3, 1, 4, 4, 2, 3, 1, 4, 4]
|
|
|
+ ], ['#3371FF', '#06E0E9'], ['类目1', '类目2', '类目3', '类目4', '类目5', '类目6', '类目7', '类目8', '类目9',
|
|
|
+ '类目10'
|
|
|
+ ], 'bar', [2, 3, 1, 4, 4, 2, 3, 1, 4, 4])
|
|
|
+ this.chart(this.$refs.chart8, [
|
|
|
+ [1, 3, 2, 6, 1, 1, 3, 2, 6, 1],
|
|
|
+ [2, 3, 1, 4, 4, 2, 3, 1, 4, 4]
|
|
|
+ ], ['#3371FF', '#06E0E9'], ['类目1', '类目2', '类目3', '类目4', '类目5', '类目6', '类目7', '类目8', '类目9',
|
|
|
+ '类目10'
|
|
|
+ ])
|
|
|
+ this.chart2(this.$refs.chart9);
|
|
|
+ this.chart2(this.$refs.chart10);
|
|
|
+ this.chart(this.$refs.chart11, [
|
|
|
+ [1, 3, 2, 6, 1, 1, 3, 2, 6, 1],
|
|
|
+ [2, 3, 1, 4, 4, 2, 3, 1, 4, 4],
|
|
|
+ [3, 4, 3, 4, 5, 3, 2, 3, 1, 3]
|
|
|
+ ], ['#3371FF', '#06E0E9', '#F9B115'], ['类目1', '类目2', '类目3', '类目4', '类目5', '类目6', '类目7',
|
|
|
+ '类目8', '类目9', '类目10'
|
|
|
+ ])
|
|
|
+ this.chart(this.$refs.chart12, [
|
|
|
+ [1, 3, 2, 6, 1, 1, 3, 2, 6, 1],
|
|
|
+ [2, 3, 1, 4, 4, 2, 3, 1, 4, 4],
|
|
|
+ [3, 4, 3, 4, 5, 3, 2, 3, 1, 3]
|
|
|
+ ], ['#3371FF', '#06E0E9', '#F9B115'], ['类目1', '类目2', '类目3', '类目4', '类目5', '类目6', '类目7',
|
|
|
+ '类目8', '类目9', '类目10'
|
|
|
+ ])
|
|
|
+ this.chart(this.$refs.chart13, [
|
|
|
+ [1, 3, 2, 6, 1, 1, 3, 2, 6, 1],
|
|
|
+ [2, 3, 1, 4, 4, 2, 3, 1, 4, 4],
|
|
|
+ [3, 4, 3, 4, 5, 3, 2, 3, 1, 3]
|
|
|
+ ], ['#3371FF', '#06E0E9', '#F9B115'], ['类目1', '类目2', '类目3', '类目4', '类目5', '类目6', '类目7',
|
|
|
+ '类目8', '类目9', '类目10'
|
|
|
+ ])
|
|
|
+ this.chart(this.$refs.chart14, [
|
|
|
+ [1, 3, 2, 6, 1, 1, 3, 2, 6, 1],
|
|
|
+ [2, 3, 1, 4, 4, 2, 3, 1, 4, 4],
|
|
|
+ [3, 4, 3, 4, 5, 3, 2, 3, 1, 3]
|
|
|
+ ], ['#3371FF', '#06E0E9', '#F9B115'], ['类目1', '类目2', '类目3', '类目4', '类目5', '类目6', '类目7',
|
|
|
+ '类目8', '类目9', '类目10'
|
|
|
+ ])
|
|
|
+ })
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ chart(elem, data, color, x, type, data1) {
|
|
|
+ let chart = echarts.init(elem);
|
|
|
+ let series = [];
|
|
|
+ for (var i = 0; i < data.length; i++) {
|
|
|
+ series = series.concat([{
|
|
|
+ data: data[i],
|
|
|
+ type: 'line',
|
|
|
+ symbolSize: 6,
|
|
|
+ color: color[i],
|
|
|
+ lineStyle: {
|
|
|
+ width: 1
|
|
|
+ },
|
|
|
+ z: 99
|
|
|
+ }, {
|
|
|
+ data: data[i],
|
|
|
+ type: 'line',
|
|
|
+ showSymbol: false,
|
|
|
+ label: {
|
|
|
+ show: true,
|
|
|
+ color: '#D0DEEE'
|
|
|
+ },
|
|
|
+ lineStyle: {
|
|
|
+ width: 1
|
|
|
+ },
|
|
|
+ color: color[i],
|
|
|
+ z: 99
|
|
|
+ }]);
|
|
|
+ }
|
|
|
+ if (type === 'bar') {
|
|
|
+ series.push({
|
|
|
+ data: data1,
|
|
|
+ type: 'bar',
|
|
|
+ barWidth: 6,
|
|
|
+ color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
|
|
|
+ offset: 0,
|
|
|
+ color: '#9D60FB'
|
|
|
+ }, {
|
|
|
+ offset: 1,
|
|
|
+ color: 'rgba(157, 96, 251, 0)'
|
|
|
+ }, ]),
|
|
|
+ })
|
|
|
+ }
|
|
|
+ let option = {
|
|
|
+ tooltip: {
|
|
|
+ show: true,
|
|
|
+ trigger: 'axis',
|
|
|
+ formatter: function() {
|
|
|
+ return ''
|
|
|
+ },
|
|
|
+ backgroundColor: 'rgba(255,255,255,0)',
|
|
|
+ borderWidth: 0,
|
|
|
+ padding: 0,
|
|
|
+ axisPointer: {
|
|
|
+ lineStyle: {
|
|
|
+ type: 'solid',
|
|
|
+ color: '#4E5561',
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ grid: {
|
|
|
+ left: '15',
|
|
|
+ top: '35',
|
|
|
+ right: '15',
|
|
|
+ bottom: '25',
|
|
|
+ containLabel: true
|
|
|
+ },
|
|
|
+ xAxis: {
|
|
|
+ type: 'category',
|
|
|
+ data: x,
|
|
|
+ axisLabel: {
|
|
|
+ margin: 4,
|
|
|
+ color: '#D0DEEE',
|
|
|
+ fontSize: 10
|
|
|
+ },
|
|
|
+ boundaryGap: true,
|
|
|
+ axisLine: {
|
|
|
+ lineStyle: {
|
|
|
+ color: '#6C8097'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ axisTick: {
|
|
|
+ show: false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ yAxis: {
|
|
|
+ type: 'value',
|
|
|
+ axisLabel: {
|
|
|
+ margin: 10,
|
|
|
+ color: '#D0DEEE',
|
|
|
+ fontSize: 10
|
|
|
+ },
|
|
|
+ splitLine: {
|
|
|
+ show: true,
|
|
|
+ lineStyle: {
|
|
|
+ color: 'rgba(108,128,151,0.3)',
|
|
|
+ type: 'dashed'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ series: series
|
|
|
+ };
|
|
|
+ chart.setOption(option);
|
|
|
+ },
|
|
|
+ chart2(elem) {
|
|
|
+ let chart = echarts.init(elem);
|
|
|
+ // prettier-ignore
|
|
|
+ var hours = ['12a', '1a', '2a', '3a', '4a', '5a', '6a',
|
|
|
+ '7a', '8a', '9a', '10a', '11a',
|
|
|
+ '12p', '1p', '2p', '3p', '4p', '5p',
|
|
|
+ '6p', '7p', '8p', '9p', '10p', '11p'
|
|
|
+ ];
|
|
|
+ // prettier-ignore
|
|
|
+ var days = ['Saturday', 'Friday', 'Thursday',
|
|
|
+ 'Wednesday', 'Tuesday', 'Monday', 'Sunday'
|
|
|
+ ];
|
|
|
+ // prettier-ignore
|
|
|
+ var data = [
|
|
|
+ [0, 10, 0],
|
|
|
+ [0, 11, 2],
|
|
|
+ [0, 12, 4],
|
|
|
+ [0, 13, 1],
|
|
|
+ [0, 14, 1],
|
|
|
+ [0, 15, 3],
|
|
|
+ [0, 16, 4],
|
|
|
+ [0, 17, 6],
|
|
|
+ [0, 18, 4],
|
|
|
+ [0, 19, 4],
|
|
|
+ [0, 20, 3],
|
|
|
+ [0, 21, 3],
|
|
|
+ [0, 22, 2],
|
|
|
+ [0, 23, 5],
|
|
|
+ [1, 0, 7],
|
|
|
+ [1, 1, 0],
|
|
|
+ [1, 2, 0],
|
|
|
+ [1, 3, 0],
|
|
|
+ [1, 4, 0],
|
|
|
+ [1, 5, 0],
|
|
|
+ [1, 6, 0],
|
|
|
+ [1, 7, 0],
|
|
|
+ [1, 8, 0],
|
|
|
+ [1, 9, 0],
|
|
|
+ [1, 10, 5],
|
|
|
+ [1, 23, 2],
|
|
|
+ [2, 0, 1],
|
|
|
+ [2, 1, 1],
|
|
|
+ [2, 14, 8],
|
|
|
+ [2, 15, 10],
|
|
|
+ [2, 16, 6],
|
|
|
+ [2, 17, 5],
|
|
|
+ [2, 18, 5],
|
|
|
+ [2, 19, 5],
|
|
|
+ [2, 20, 7],
|
|
|
+ [2, 21, 4],
|
|
|
+ [2, 22, 2],
|
|
|
+ [2, 23, 4],
|
|
|
+ [3, 0, 7],
|
|
|
+ [3, 1, 3],
|
|
|
+ [3, 2, 0],
|
|
|
+ [3, 3, 0],
|
|
|
+ [3, 4, 0],
|
|
|
+ [3, 5, 0],
|
|
|
+ [3, 6, 0],
|
|
|
+ [3, 7, 0],
|
|
|
+ [3, 20, 6],
|
|
|
+ [3, 21, 4],
|
|
|
+ [3, 22, 4],
|
|
|
+ [3, 23, 1],
|
|
|
+ [4, 0, 1],
|
|
|
+ [4, 1, 3],
|
|
|
+ [4, 2, 0],
|
|
|
+ [4, 20, 3],
|
|
|
+ [4, 21, 7],
|
|
|
+ [4, 22, 3],
|
|
|
+ [4, 23, 0],
|
|
|
+ [5, 8, 2],
|
|
|
+ [5, 9, 0],
|
|
|
+ [5, 10, 4],
|
|
|
+ [5, 11, 1],
|
|
|
+ [5, 12, 5],
|
|
|
+ [5, 13, 10],
|
|
|
+ [5, 14, 5],
|
|
|
+ [5, 15, 7],
|
|
|
+ [5, 16, 11],
|
|
|
+ ];
|
|
|
+ let option = {
|
|
|
+ tooltip: {},
|
|
|
+ visualMap: {
|
|
|
+ max: 20,
|
|
|
+ inRange: {
|
|
|
+ color: [
|
|
|
+ '#313695',
|
|
|
+ '#4575b4',
|
|
|
+ '#74add1',
|
|
|
+ '#abd9e9',
|
|
|
+ '#e0f3f8',
|
|
|
+ '#ffffbf',
|
|
|
+ '#fee090',
|
|
|
+ '#fdae61',
|
|
|
+ '#f46d43',
|
|
|
+ '#d73027',
|
|
|
+ '#a50026'
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ xAxis3D: {
|
|
|
+ type: 'category',
|
|
|
+ data: hours,
|
|
|
+ axisLabel: {
|
|
|
+ margin: 4,
|
|
|
+ color: '#D0DEEE',
|
|
|
+ fontSize: 10
|
|
|
+ },
|
|
|
+ splitLine: {
|
|
|
+ show: true,
|
|
|
+ lineStyle: {
|
|
|
+ color: 'rgba(108,128,151,0.3)',
|
|
|
+ type: 'dashed'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ yAxis3D: {
|
|
|
+ type: 'category',
|
|
|
+ data: days,
|
|
|
+ axisLabel: {
|
|
|
+ margin: 4,
|
|
|
+ color: '#D0DEEE',
|
|
|
+ fontSize: 10
|
|
|
+ },
|
|
|
+ splitLine: {
|
|
|
+ show: true,
|
|
|
+ lineStyle: {
|
|
|
+ color: 'rgba(108,128,151,0.3)',
|
|
|
+ type: 'dashed'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ zAxis3D: {
|
|
|
+ type: 'value',
|
|
|
+ axisLabel: {
|
|
|
+ margin: 4,
|
|
|
+ color: '#D0DEEE',
|
|
|
+ fontSize: 10
|
|
|
+ },
|
|
|
+ splitLine: {
|
|
|
+ show: true,
|
|
|
+ lineStyle: {
|
|
|
+ color: 'rgba(108,128,151,0.3)',
|
|
|
+ type: 'dashed'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ grid3D: {
|
|
|
+ boxWidth: 140,
|
|
|
+ boxHeight: 60,
|
|
|
+ boxDepth: 60,
|
|
|
+ viewControl: {
|
|
|
+ // projection: 'orthographic'
|
|
|
+ },
|
|
|
+ light: {
|
|
|
+ main: {
|
|
|
+ intensity: 1.2,
|
|
|
+ shadow: true
|
|
|
+ },
|
|
|
+ ambient: {
|
|
|
+ intensity: 0.3
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ series: [{
|
|
|
+ type: 'bar3D',
|
|
|
+ data: data.map(function(item) {
|
|
|
+ return {
|
|
|
+ value: [item[1], item[0], item[2]]
|
|
|
+ };
|
|
|
+ }),
|
|
|
+ shading: 'lambert',
|
|
|
+ label: {
|
|
|
+ fontSize: 16,
|
|
|
+ borderWidth: 1
|
|
|
+ },
|
|
|
+ emphasis: {
|
|
|
+ label: {
|
|
|
+ fontSize: 20,
|
|
|
+ color: '#900'
|
|
|
+ },
|
|
|
+ itemStyle: {
|
|
|
+ color: '#900'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }]
|
|
|
+ };
|
|
|
+ chart.setOption(option);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ }
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss">
|
|
|
+ .conservation-item {
|
|
|
+ margin-bottom: 12px;
|
|
|
+
|
|
|
+ .chart-table {
|
|
|
+ display: flex;
|
|
|
+ font-size: 12px;
|
|
|
+
|
|
|
+
|
|
|
+ .chart-table-item {
|
|
|
+ flex: 1;
|
|
|
+ width: 0;
|
|
|
+ margin-right: 12px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .title {
|
|
|
+ margin: 13px 0;
|
|
|
+ font-weight: 600;
|
|
|
+ }
|
|
|
+
|
|
|
+ .big-chart {
|
|
|
+ height: 601px;
|
|
|
+ background: #222433;
|
|
|
+ }
|
|
|
+
|
|
|
+ .el-table {
|
|
|
+ font-size: 12px;
|
|
|
+ color: #D2E4FF;
|
|
|
+ border-color: rgba(97, 133, 214, 0.15);
|
|
|
+ background: transparent;
|
|
|
+
|
|
|
+ thead.is-group th.el-table__cell {
|
|
|
+ background: rgba(97, 133, 214, 0.05);
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+
|
|
|
+ tr,
|
|
|
+ th.el-table__cell.is-leaf,
|
|
|
+ td.el-table__cell {
|
|
|
+ background: transparent;
|
|
|
+ }
|
|
|
+
|
|
|
+ .el-table__cell {
|
|
|
+ padding: 8px 0;
|
|
|
+ text-align: center;
|
|
|
+ border-right: 1px solid rgba(97, 133, 214, 0.15);
|
|
|
+ }
|
|
|
+
|
|
|
+ thead {
|
|
|
+ color: #D2E4FF;
|
|
|
+ }
|
|
|
+
|
|
|
+ .el-table__header th.el-table__cell,
|
|
|
+ th.el-table__cell.is-leaf,
|
|
|
+ td.el-table__cell {
|
|
|
+ border-color: rgba(97, 133, 214, 0.15);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .el-table--group::after,
|
|
|
+ .el-table--border::after,
|
|
|
+ .el-table::before {
|
|
|
+ display: none;
|
|
|
+ }
|
|
|
+
|
|
|
+ .chart-table-item:last-child {
|
|
|
+ margin-right: 0;
|
|
|
+
|
|
|
+ .big-chart {
|
|
|
+ background: transparent;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .conservation-select {
|
|
|
+ display: flex;
|
|
|
+ margin-top: 20px;
|
|
|
+
|
|
|
+ .el-select {
|
|
|
+ width: 140px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .date {
|
|
|
+ width: 184px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .hui-flex-box {
|
|
|
+ margin: 20px 0;
|
|
|
+ padding: 0 20px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .conservation-item {
|
|
|
+ background: rgba(0, 4, 10, 0.3);
|
|
|
+ padding: 20px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .conservation-chart {
|
|
|
+ margin-top: 18px;
|
|
|
+ display: flex;
|
|
|
+ }
|
|
|
+
|
|
|
+ .chart-item {
|
|
|
+ background: #181F2D;
|
|
|
+ flex: 1;
|
|
|
+ margin-right: 12px;
|
|
|
+ position: relative;
|
|
|
+ }
|
|
|
+
|
|
|
+ .chart-item:last-child {
|
|
|
+ margin-right: 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ .legend-box {
|
|
|
+ width: 100%;
|
|
|
+ top: 52px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .chart-title {
|
|
|
+ font-weight: 600;
|
|
|
+ line-height: 48px;
|
|
|
+ padding-left: 20px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .chart-box {
|
|
|
+ height: 200px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+</style>
|