diff --git a/components/charts/PeakEnergyUseChart.vue b/components/charts/PeakEnergyUseChart.vue index 885fac0..d8e9190 100644 --- a/components/charts/PeakEnergyUseChart.vue +++ b/components/charts/PeakEnergyUseChart.vue @@ -133,58 +133,27 @@ export default { axisTick: { show: false, }, - }, - { - type: 'value', - position: 'right', - name: '单位:KWH', - splitNumber: 5, - axisLabel: { - fontSize: 12, - color: '#B8D3F1' - }, - nameTextStyle: { - color: '#B8D3F1', - fontSize: 12, - lineHeight: 10, - }, - // 分割线 - splitLine: { - show: false, - lineStyle: { - color: 'rgba(176,215,255,0.40)', - type: 'dashed' - }, - }, - axisLine: { - show: false, - }, - axisTick: { - show: false, - }, - }, + } ], series: [ { - name: '用电', + name: 'VOC', type: 'line', smooth: false, zlevel: 3, symbol: 'none', //数据交叉点样式 data: yAxisData1, - yAxisIndex: 0, // 通过这个判断左右 lineStyle: { width: 3, } }, { - name: '用水', + name: 'SEMES', type: 'line', smooth: false, zlevel: 3, symbol: 'none', //数据交叉点样式 (实心点) data: yAxisData2, - yAxisIndex: 1, // 通过这个判断左右 lineStyle: { width: 3, } diff --git a/components/charts/PeakWarningTypeChart.vue b/components/charts/PeakWarningTypeChart.vue index d2bd42f..b30e892 100644 --- a/components/charts/PeakWarningTypeChart.vue +++ b/components/charts/PeakWarningTypeChart.vue @@ -21,7 +21,9 @@ export default { default: () => [ '#F8F661', '#61F8F6', - '#1872FF' + '#1872FF', + 'rgba(173,122,255,1)', + 'rgba(253,189,0,1)' ] } }, @@ -51,7 +53,7 @@ export default { // 复制代码 let chartData = this.dataSource; const colorList = this.color; - const bgColorList = ['rgba(255,221,48,0.2)', 'rgba(84,255,210,0.2)', 'rgba(24,114,255,0.2)'] + const bgColorList = ['rgba(255,221,48,0.2)', 'rgba(84,255,210,0.2)', 'rgba(24,114,255,0.2)','rgba(173,122,255,0.2)','rgba(253,189,0,0.2)'] const pieData1 = []; const sum = chartData.reduce((per, cur) => per + cur.value, 0); const gap = (1 * sum) / 100; @@ -63,9 +65,9 @@ export default { }, }; //图标位置显示 - let lefts = ['40%', '40%', '40%', '40%']; - let aligns = ['left', 'left', 'left', 'left']; - let tops = ['15%', '40%', '65%', '90%']; + let lefts = ['40%', '40%', '40%', '40%','40%']; + let aligns = ['left', 'left', 'left', 'left','left']; + let tops = ['15%', '30%', '45%', '60%','75%']; let legendData = []; for (let i = 0; i < chartData.length; i++) { // 第一圈数据 diff --git a/components/peak-coal-monitoring/AtmosphericModule.vue b/components/peak-coal-monitoring/AtmosphericModule.vue index 217587f..fdf0bd2 100644 --- a/components/peak-coal-monitoring/AtmosphericModule.vue +++ b/components/peak-coal-monitoring/AtmosphericModule.vue @@ -1,14 +1,8 @@ @@ -23,24 +17,10 @@ export default { components: {PeakAirQuality, ChangesPollutants, PeakSecondaryTitle}, data() { return { - title: '大气质量信息总览', - tabList: [ - { - label: '空气质量指数', - value: 1 - }, - { - label: '重要污染物变化趋势', - value: 2 - } - ], - activeTab: 1 + title: '本市空气质量', } }, methods: { - tabChange(val) { - this.activeTab = val - } } } diff --git a/components/peak-coal-monitoring/DeviceOnlineRate.vue b/components/peak-coal-monitoring/DeviceOnlineRate.vue new file mode 100644 index 0000000..52e70e0 --- /dev/null +++ b/components/peak-coal-monitoring/DeviceOnlineRate.vue @@ -0,0 +1,39 @@ + + + + + diff --git a/components/peak-coal-monitoring/EnergyProfile.vue b/components/peak-coal-monitoring/EnergyProfile.vue index 5652f40..4784f84 100644 --- a/components/peak-coal-monitoring/EnergyProfile.vue +++ b/components/peak-coal-monitoring/EnergyProfile.vue @@ -1,15 +1,6 @@ @@ -15,330 +15,54 @@ export default { components: {PeakCustomTable, PeakSecondaryTitle}, data(){ return{ - title: '实时监测数据', + title: '厂区环境趋势', tableTitle: [ { - title: '监测设备', - dataIndex: 'pointName', - dataUnit: null, + title: '设备掉线', + dataIndex: 'deviceName', + width: '35%' + }, + { + title: '故障异常', + dataIndex: 'errorName', width: '25%' }, { - title: '一氧化碳', - dataIndex: 'COValue', - dataUnit: 'COUnit', - width: '15%' - }, - { - title: '二氧化硫', - dataIndex: 'SO2Value', - dataUnit: 'SO2Unit', - width: '15%' - }, - { - title: '氮氧化物', - dataIndex: 'NOValue', - dataUnit: 'NOUnit', - width: '15%' - }, - { - title: '臭氧', - dataIndex: 'O3Value', - dataUnit: 'O3Unit', - width: '15%' - }, - { - title: 'PM10', - dataIndex: 'PM10Value', - dataUnit: 'PM10Unit', - width: '15%' + title: '异常报警', + dataIndex: 'errorImg', + width: '40%' } ], dataSource: [ { - pointName: '监测设备名称', - COValue: 2, - COUnit: '%VOL', - SO2Value: 30, - SO2Unit: 'mg/m³', - NOValue: 20, - NOUnit: 'mg/L', - O3Value: 10, - O3Unit: 'ppm', - PM10Value: 10, - PM10Unit: 'μg/m³', - PM25Value: 30, - PM25Unit: 'μg/m³' + deviceName: '高炉', + errorName: '异常', + errorImg: '红灯' }, { - pointName: '监测设备名称', - COValue: 2, - COUnit: '%VOL', - SO2Value: 30, - SO2Unit: 'mg/m³', - NOValue: 20, - NOUnit: 'mg/L', - O3Value: 10, - O3Unit: 'ppm', - PM10Value: 10, - PM10Unit: 'μg/m³', - PM25Value: 30, - PM25Unit: 'μg/m³' + deviceName: '高炉', + errorName: '异常', + errorImg: '红灯' }, { - pointName: '监测设备名称', - COValue: 2, - COUnit: '%VOL', - SO2Value: 30, - SO2Unit: 'mg/m³', - NOValue: 20, - NOUnit: 'mg/L', - O3Value: 10, - O3Unit: 'ppm', - PM10Value: 10, - PM10Unit: 'μg/m³', - PM25Value: 30, - PM25Unit: 'μg/m³' + deviceName: '高炉', + errorName: '异常', + errorImg: '红灯' }, { - pointName: '监测设备名称', - COValue: 2, - COUnit: '%VOL', - SO2Value: 30, - SO2Unit: 'mg/m³', - NOValue: 20, - NOUnit: 'mg/L', - O3Value: 10, - O3Unit: 'ppm', - PM10Value: 10, - PM10Unit: 'μg/m³', - PM25Value: 30, - PM25Unit: 'μg/m³' + deviceName: '高炉', + errorName: '异常', + errorImg: '红灯' }, { - pointName: '监测设备名称', - COValue: 2, - COUnit: '%VOL', - SO2Value: 30, - SO2Unit: 'mg/m³', - NOValue: 20, - NOUnit: 'mg/L', - O3Value: 10, - O3Unit: 'ppm', - PM10Value: 10, - PM10Unit: 'μg/m³', - PM25Value: 30, - PM25Unit: 'μg/m³' + deviceName: '高炉', + errorName: '异常', + errorImg: '红灯' }, { - pointName: '监测设备名称', - COValue: 2, - COUnit: '%VOL', - SO2Value: 30, - SO2Unit: 'mg/m³', - NOValue: 20, - NOUnit: 'mg/L', - O3Value: 10, - O3Unit: 'ppm', - PM10Value: 10, - PM10Unit: 'μg/m³', - PM25Value: 30, - PM25Unit: 'μg/m³' - }, - { - pointName: '监测设备名称', - COValue: 2, - COUnit: '%VOL', - SO2Value: 30, - SO2Unit: 'mg/m³', - NOValue: 20, - NOUnit: 'mg/L', - O3Value: 10, - O3Unit: 'ppm', - PM10Value: 10, - PM10Unit: 'μg/m³', - PM25Value: 30, - PM25Unit: 'μg/m³' - }, - { - pointName: '监测设备名称', - COValue: 2, - COUnit: '%VOL', - SO2Value: 30, - SO2Unit: 'mg/m³', - NOValue: 20, - NOUnit: 'mg/L', - O3Value: 10, - O3Unit: 'ppm', - PM10Value: 10, - PM10Unit: 'μg/m³', - PM25Value: 30, - PM25Unit: 'μg/m³' - }, - { - pointName: '监测设备名称', - COValue: 2, - COUnit: '%VOL', - SO2Value: 30, - SO2Unit: 'mg/m³', - NOValue: 20, - NOUnit: 'mg/L', - O3Value: 10, - O3Unit: 'ppm', - PM10Value: 10, - PM10Unit: 'μg/m³', - PM25Value: 30, - PM25Unit: 'μg/m³' - }, - { - pointName: '监测设备名称', - COValue: 2, - COUnit: '%VOL', - SO2Value: 30, - SO2Unit: 'mg/m³', - NOValue: 20, - NOUnit: 'mg/L', - O3Value: 10, - O3Unit: 'ppm', - PM10Value: 10, - PM10Unit: 'μg/m³', - PM25Value: 30, - PM25Unit: 'μg/m³' - }, - { - pointName: '监测设备名称', - COValue: 2, - COUnit: '%VOL', - SO2Value: 30, - SO2Unit: 'mg/m³', - NOValue: 20, - NOUnit: 'mg/L', - O3Value: 10, - O3Unit: 'ppm', - PM10Value: 10, - PM10Unit: 'μg/m³', - PM25Value: 30, - PM25Unit: 'μg/m³' - }, - { - pointName: '监测设备名称', - COValue: 2, - COUnit: '%VOL', - SO2Value: 30, - SO2Unit: 'mg/m³', - NOValue: 20, - NOUnit: 'mg/L', - O3Value: 10, - O3Unit: 'ppm', - PM10Value: 10, - PM10Unit: 'μg/m³', - PM25Value: 30, - PM25Unit: 'μg/m³' - }, - { - pointName: '监测设备名称', - COValue: 2, - COUnit: '%VOL', - SO2Value: 30, - SO2Unit: 'mg/m³', - NOValue: 20, - NOUnit: 'mg/L', - O3Value: 10, - O3Unit: 'ppm', - PM10Value: 10, - PM10Unit: 'μg/m³', - PM25Value: 30, - PM25Unit: 'μg/m³' - }, - { - pointName: '监测设备名称', - COValue: 2, - COUnit: '%VOL', - SO2Value: 30, - SO2Unit: 'mg/m³', - NOValue: 20, - NOUnit: 'mg/L', - O3Value: 10, - O3Unit: 'ppm', - PM10Value: 10, - PM10Unit: 'μg/m³', - PM25Value: 30, - PM25Unit: 'μg/m³' - }, - { - pointName: '监测设备名称', - COValue: 2, - COUnit: '%VOL', - SO2Value: 30, - SO2Unit: 'mg/m³', - NOValue: 20, - NOUnit: 'mg/L', - O3Value: 10, - O3Unit: 'ppm', - PM10Value: 10, - PM10Unit: 'μg/m³', - PM25Value: 30, - PM25Unit: 'μg/m³' - }, - { - pointName: '监测设备名称', - COValue: 2, - COUnit: '%VOL', - SO2Value: 30, - SO2Unit: 'mg/m³', - NOValue: 20, - NOUnit: 'mg/L', - O3Value: 10, - O3Unit: 'ppm', - PM10Value: 10, - PM10Unit: 'μg/m³', - PM25Value: 30, - PM25Unit: 'μg/m³' - }, - { - pointName: '监测设备名称', - COValue: 2, - COUnit: '%VOL', - SO2Value: 30, - SO2Unit: 'mg/m³', - NOValue: 20, - NOUnit: 'mg/L', - O3Value: 10, - O3Unit: 'ppm', - PM10Value: 10, - PM10Unit: 'μg/m³', - PM25Value: 30, - PM25Unit: 'μg/m³' - }, - { - pointName: '监测设备名称', - COValue: 2, - COUnit: '%VOL', - SO2Value: 30, - SO2Unit: 'mg/m³', - NOValue: 20, - NOUnit: 'mg/L', - O3Value: 10, - O3Unit: 'ppm', - PM10Value: 10, - PM10Unit: 'μg/m³', - PM25Value: 30, - PM25Unit: 'μg/m³' - }, - { - pointName: '监测设备名称', - COValue: 2, - COUnit: '%VOL', - SO2Value: 30, - SO2Unit: 'mg/m³', - NOValue: 20, - NOUnit: 'mg/L', - O3Value: 10, - O3Unit: 'ppm', - PM10Value: 10, - PM10Unit: 'μg/m³', - PM25Value: 30, - PM25Unit: 'μg/m³' + deviceName: '高炉', + errorName: '异常', + errorImg: '红灯' } ] } diff --git a/components/peak-coal-monitoring/PeakAirQuality.vue b/components/peak-coal-monitoring/PeakAirQuality.vue index b6cf130..f25d66d 100644 --- a/components/peak-coal-monitoring/PeakAirQuality.vue +++ b/components/peak-coal-monitoring/PeakAirQuality.vue @@ -3,12 +3,6 @@
-
-
-
- -
-
@@ -111,22 +105,5 @@ export default { width: 100%; } - .bar-charts { - flex: 1; - height: 0; - width: 100%; - .flex-column; - - ._title { - width: 300px; - height: 30px; - background: url("~/assets/peakCoalMonitoring/left/air-rate-bg.png") no-repeat; - } - - ._bar { - flex: 1; - height: 0; - } - } } diff --git a/components/peak-coal-monitoring/PeakCustomTable.vue b/components/peak-coal-monitoring/PeakCustomTable.vue index 42bf5f0..3b8f5b4 100644 --- a/components/peak-coal-monitoring/PeakCustomTable.vue +++ b/components/peak-coal-monitoring/PeakCustomTable.vue @@ -35,7 +35,8 @@
-
{{ item[dataIndex.dataIndex] }}
+
{{ item[dataIndex.dataIndex] }}
+
详情
{{ item[dataIndex.dataUnit] }}
@@ -64,6 +65,10 @@ export default { tableRoll: { type: Boolean, default: true + }, + limitMoveNum: { + type: Number, + default: 9 } }, data() { @@ -73,7 +78,7 @@ export default { defaultOption() { return { step: 0.3, // 数值越大速度滚动越快 - limitMoveNum: 9, // 开始无缝滚动的数据量 this.dataList.length + limitMoveNum: this.limitMoveNum, // 开始无缝滚动的数据量 this.dataList.length hoverStop: true, // 是否开启鼠标悬停stop direction: 1, // 0向下 1向上 2向左 3向右 openWatch: true, // 开启数据实时监控刷新dom @@ -83,7 +88,11 @@ export default { } }, }, - methods: {} + methods: { + viewDetail(val){ + console.log('val:',val) + } + } } @@ -162,6 +171,15 @@ export default { font-weight: 700; } + ._operation{ + font-family: MicrosoftYaHei-Bold; + font-size: 14px; + color: #FFFFFF; + letter-spacing: 0; + font-weight: 700; + cursor: pointer; + } + ._unit { font-family: MicrosoftYaHei-Bold; font-size: 12px; diff --git a/components/peak-coal-monitoring/PeakEnergyUse.vue b/components/peak-coal-monitoring/PeakEnergyUse.vue index 709fb3e..149099a 100644 --- a/components/peak-coal-monitoring/PeakEnergyUse.vue +++ b/components/peak-coal-monitoring/PeakEnergyUse.vue @@ -1,11 +1,12 @@