-
+
+
+
diff --git a/src/views/gasDashboard/components/PanelGroup.vue b/src/views/gasDashboard/components/PanelGroup.vue
index 803b666..5613860 100644
--- a/src/views/gasDashboard/components/PanelGroup.vue
+++ b/src/views/gasDashboard/components/PanelGroup.vue
@@ -17,6 +17,7 @@
import Card from '@/components/BigData/Card'
// 首页
import { gasStatistic, deviceCount, alarmNowStatic } from '@/api/gasOverview'
+import { gasStatistic2 } from '../../../api/gasOverview'
export default {
components: {
Card,
@@ -26,40 +27,40 @@
return {
dataGroup1: [
{
- title: ['总用气量', '本月用气量'],
- context: ['--', '--'],
+ title: ['CO₂总用气量', 'CO₂本月用气量', 'CO₂今日用气量'],
+ context: ['--', '--', '--'],
icon: '',
color: '#40c9c6',
- unit: '吨',
+ unit: 'Nm³',
index: 0
},
{
- title: ['今日用气量', '生产厂区用气量'],
- context: ['--', '--'],
+ title: ['O₂总用气量', 'O₂本月用气量', 'O₂今日用气量'],
+ context: ['--', '--', '--'],
icon: '',
color: '#36a3f7',
- unit: '吨',
+ unit: 'Nm³',
index: 1
},
{
+ title: ['燃气总用气量', '燃气本月用气量', '燃气今日用气量'],
+ context: ['--', '--', '--'],
+ icon: '',
+ color: '#36a3f7',
+ unit: 'Nm³',
+ index: 2
+ },
+ {
title: ['滑道实时噪声'],
context: ['--'],
icon: 'icon-noise',
color: '#f1c353',
unit: 'db',
- index: 2
+ index: 3
}
],
dataGroup: [
{
- title: '气体流量计',
- context: '--',
- icon: 'icon-watch',
- color: '#9694f7',
- path: '/deviceList?deviceType=15',
- permission: '/device/list'
- },
- {
title: '告警信息',
context: '--',
icon: 'icon-alarm',
@@ -73,7 +74,7 @@
mounted() {
this.getWater()
// this.getWellCount()
- this.getDeviceCount()
+ // this.getDeviceCount()
this.getAlarmCount()
},
methods: {
@@ -83,19 +84,21 @@
getWater() {
// 用气量
gasStatistic().then(response => {
- this.dataGroup1[0].context = [response.data.total ? parseFloat(response.data.total).toFixed(2) : '--', response.data.month ? parseFloat(response.data.month).toFixed(2) : '--']
- this.dataGroup1[1].context = [response.data.today ? parseFloat(response.data.today).toFixed(2) : '--', response.data.prodution ? parseFloat(response.data.prodution).toFixed(2) : '--']
- this.dataGroup1[2].context = [response.data.sound ? Number(response.data.sound).toFixed(2) : '--']
+ this.dataGroup1[3].context = [response.data.sound ? Number(response.data.sound).toFixed(2) : '--']
})
- },
- getDeviceCount() {
- deviceCount('15').then(response => {
- this.dataGroup[0].context = response.data
+ gasStatistic2('15').then(response => {
+ this.dataGroup1[0].context = [response.data.total.toFixed(2), response.data.month.toFixed(2), response.data.day === '' ? '--' : response.data.day.toFixed(2)]
+ })
+ gasStatistic2('16').then(response => {
+ this.dataGroup1[1].context = [response.data.total.toFixed(2), response.data.month.toFixed(2), response.data.day === '' ? '--' : response.data.day.toFixed(2)]
+ })
+ gasStatistic2('17').then(response => {
+ this.dataGroup1[2].context = [response.data.total.toFixed(2), response.data.month.toFixed(2), response.data.day === '' ? '--' : response.data.day.toFixed(2)]
})
},
getAlarmCount() {
alarmNowStatic().then(response => {
- this.dataGroup[1].context = response.data.total
+ this.dataGroup[0].context = response.data.total
})
}
}
diff --git a/src/views/gasDashboard/components/alarmGasCountByDept.vue b/src/views/gasDashboard/components/alarmGasCountByDept.vue
deleted file mode 100644
index b8bfc23..0000000
--- a/src/views/gasDashboard/components/alarmGasCountByDept.vue
+++ /dev/null
@@ -1,73 +0,0 @@
-
-
-
-
-
-
diff --git a/src/views/gasDashboard/components/alarmGasCountByType.vue b/src/views/gasDashboard/components/alarmGasCountByType.vue
new file mode 100644
index 0000000..4f80d3a
--- /dev/null
+++ b/src/views/gasDashboard/components/alarmGasCountByType.vue
@@ -0,0 +1,72 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/views/gasDashboard/components/alarmLeakCountPie.vue b/src/views/gasDashboard/components/alarmLeakCountPie.vue
new file mode 100644
index 0000000..abfbc2d
--- /dev/null
+++ b/src/views/gasDashboard/components/alarmLeakCountPie.vue
@@ -0,0 +1,74 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/views/gasDashboard/components/corrodeCountByDay.vue b/src/views/gasDashboard/components/corrodeCountByDay.vue
index c144bc6..ecd0289 100644
--- a/src/views/gasDashboard/components/corrodeCountByDay.vue
+++ b/src/views/gasDashboard/components/corrodeCountByDay.vue
@@ -45,7 +45,8 @@
},
extend: {
grid: {
- top: 120
+ top: 120,
+ left: 30
},
yAxis: {
name: '腐蚀率(%)',
diff --git a/src/views/gasDashboard/components/gasAlarmTrend.vue b/src/views/gasDashboard/components/gasAlarmTrend.vue
new file mode 100644
index 0000000..a1d422e
--- /dev/null
+++ b/src/views/gasDashboard/components/gasAlarmTrend.vue
@@ -0,0 +1,100 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/views/gasDashboard/components/gasCountByDay.vue b/src/views/gasDashboard/components/gasCountByDay.vue
index 79a4efb..f0a3977 100644
--- a/src/views/gasDashboard/components/gasCountByDay.vue
+++ b/src/views/gasDashboard/components/gasCountByDay.vue
@@ -1,34 +1,33 @@
-
-
+
+
+
+
diff --git a/src/api/gasOverview.js b/src/api/gasOverview.js
index 559a078..0dc3442 100644
--- a/src/api/gasOverview.js
+++ b/src/api/gasOverview.js
@@ -11,14 +11,50 @@
})
}
-// 气体流量计数量
-// export function deviceCount(params) {
-// return request({
-// url: 'device/count/15',
-// method: 'get',
-// params
-// })
-// }
+// 用水量、噪声统计数据
+export function gasStatistic2(deviceType) {
+ return request({
+ url: 'gas/statistics/used',
+ method: 'get',
+ params: {
+ deviceType: deviceType
+ }
+ })
+}
+
+// 气体用气量走势图
+export function gasTrend(params) {
+ return request({
+ url: '/gas/statistics/trend',
+ method: 'get',
+ params
+ })
+}
+// 用气量超量报警统计
+export function gasAlarmTrend(params) {
+ return request({
+ url: '/gas/alarm/trend',
+ method: 'get',
+ params
+ })
+}
+// 各设备气体用气量
+export function gasUsed(params) {
+ return request({
+ url: '/gas/used',
+ method: 'get',
+ params
+ })
+}
+// 气体泄漏监测结果
+export function gasLeakStatus(params) {
+ return request({
+ url: 'gas/leakage/rate',
+ method: 'get',
+ params
+ })
+}
+
// 气体流量计数量
export function deviceCount(type) {
return request({
@@ -56,7 +92,7 @@
// 查询二级分区燃气告警
export function gasAlarmBySecondArea(params) {
return request({
- url: 'dataStatistic/gasAlarmBySecondArea',
+ url: 'gas/alarm/rate',
method: 'get',
params
})
diff --git a/src/components/BigData/Card1/index.vue b/src/components/BigData/Card1/index.vue
index 748747b..c9ec32d 100644
--- a/src/components/BigData/Card1/index.vue
+++ b/src/components/BigData/Card1/index.vue
@@ -4,21 +4,11 @@
-
-
-
-
-
- {{ title[0] }} {{ context[0] }}{{ unit }}
-
-
- {{ title[1] }}
{{ context[1] }}-->
+
+
+
+ {{ name }} {{ context[index] }}{{ unit }}
@@ -41,7 +31,7 @@
props: {
title: {
type: Array,
- default: function () {
+ default: function() {
return ['标题', '标题']
}
},
@@ -55,7 +45,7 @@
},
context: {
type: Array,
- default: function () {
+ default: function() {
return ['--', '--']
}
},
@@ -83,6 +73,8 @@
height: 108px;
font-size: 12px;
position: relative;
+ display: flex;
+ align-items: center;
overflow: hidden;
color: #666;
background: #fff;
@@ -96,7 +88,6 @@
}
.card-panel-icon-wrapper {
- float: left;
margin: 14px 0 0 10px;
padding: 16px 2px;
transition: all 0.38s ease-out;
@@ -109,25 +100,22 @@
}
.card-panel-description {
- float: left;
+ flex:1;
font-weight: bold;
- margin-top: 26px;
overflow: auto;
margin-left: 5px;
.two {
.card-panel-text {
- line-height: 18px;
+ line-height: 26px;
color: rgba(0, 0, 0, 0.45);
font-size: 14px;
- margin-bottom: 12px;
+ display: flex;
+ justify-content: space-between;
}
-
.card-panel-num {
font-size: 18px;
color: #666;
- padding-left: 10px;
- float: right;
}
}
.only {
diff --git a/src/views/alarmManage/listAlarmNow.vue b/src/views/alarmManage/listAlarmNow.vue
index 97345d9..283c8ef 100644
--- a/src/views/alarmManage/listAlarmNow.vue
+++ b/src/views/alarmManage/listAlarmNow.vue
@@ -5,7 +5,7 @@
-
+
diff --git a/src/views/alarmManage/listAlarmRecords.vue b/src/views/alarmManage/listAlarmRecords.vue
index 8301f8c..03047ac 100644
--- a/src/views/alarmManage/listAlarmRecords.vue
+++ b/src/views/alarmManage/listAlarmRecords.vue
@@ -4,7 +4,7 @@
-
+
diff --git a/src/views/dashboard/components/FunctionArea.vue b/src/views/dashboard/components/FunctionArea.vue
index 4c05cee..6401557 100644
--- a/src/views/dashboard/components/FunctionArea.vue
+++ b/src/views/dashboard/components/FunctionArea.vue
@@ -5,11 +5,11 @@
-->
-
本年度
-
本季度
-
近30日
-
近7日
-
今日
+
本年度
+
本季度
+
近30日
+
近7日
+
今日
diff --git a/src/views/gasDashboard/components/PanelGroup.vue b/src/views/gasDashboard/components/PanelGroup.vue
index 803b666..5613860 100644
--- a/src/views/gasDashboard/components/PanelGroup.vue
+++ b/src/views/gasDashboard/components/PanelGroup.vue
@@ -17,6 +17,7 @@
import Card from '@/components/BigData/Card'
// 首页
import { gasStatistic, deviceCount, alarmNowStatic } from '@/api/gasOverview'
+import { gasStatistic2 } from '../../../api/gasOverview'
export default {
components: {
Card,
@@ -26,40 +27,40 @@
return {
dataGroup1: [
{
- title: ['总用气量', '本月用气量'],
- context: ['--', '--'],
+ title: ['CO₂总用气量', 'CO₂本月用气量', 'CO₂今日用气量'],
+ context: ['--', '--', '--'],
icon: '',
color: '#40c9c6',
- unit: '吨',
+ unit: 'Nm³',
index: 0
},
{
- title: ['今日用气量', '生产厂区用气量'],
- context: ['--', '--'],
+ title: ['O₂总用气量', 'O₂本月用气量', 'O₂今日用气量'],
+ context: ['--', '--', '--'],
icon: '',
color: '#36a3f7',
- unit: '吨',
+ unit: 'Nm³',
index: 1
},
{
+ title: ['燃气总用气量', '燃气本月用气量', '燃气今日用气量'],
+ context: ['--', '--', '--'],
+ icon: '',
+ color: '#36a3f7',
+ unit: 'Nm³',
+ index: 2
+ },
+ {
title: ['滑道实时噪声'],
context: ['--'],
icon: 'icon-noise',
color: '#f1c353',
unit: 'db',
- index: 2
+ index: 3
}
],
dataGroup: [
{
- title: '气体流量计',
- context: '--',
- icon: 'icon-watch',
- color: '#9694f7',
- path: '/deviceList?deviceType=15',
- permission: '/device/list'
- },
- {
title: '告警信息',
context: '--',
icon: 'icon-alarm',
@@ -73,7 +74,7 @@
mounted() {
this.getWater()
// this.getWellCount()
- this.getDeviceCount()
+ // this.getDeviceCount()
this.getAlarmCount()
},
methods: {
@@ -83,19 +84,21 @@
getWater() {
// 用气量
gasStatistic().then(response => {
- this.dataGroup1[0].context = [response.data.total ? parseFloat(response.data.total).toFixed(2) : '--', response.data.month ? parseFloat(response.data.month).toFixed(2) : '--']
- this.dataGroup1[1].context = [response.data.today ? parseFloat(response.data.today).toFixed(2) : '--', response.data.prodution ? parseFloat(response.data.prodution).toFixed(2) : '--']
- this.dataGroup1[2].context = [response.data.sound ? Number(response.data.sound).toFixed(2) : '--']
+ this.dataGroup1[3].context = [response.data.sound ? Number(response.data.sound).toFixed(2) : '--']
})
- },
- getDeviceCount() {
- deviceCount('15').then(response => {
- this.dataGroup[0].context = response.data
+ gasStatistic2('15').then(response => {
+ this.dataGroup1[0].context = [response.data.total.toFixed(2), response.data.month.toFixed(2), response.data.day === '' ? '--' : response.data.day.toFixed(2)]
+ })
+ gasStatistic2('16').then(response => {
+ this.dataGroup1[1].context = [response.data.total.toFixed(2), response.data.month.toFixed(2), response.data.day === '' ? '--' : response.data.day.toFixed(2)]
+ })
+ gasStatistic2('17').then(response => {
+ this.dataGroup1[2].context = [response.data.total.toFixed(2), response.data.month.toFixed(2), response.data.day === '' ? '--' : response.data.day.toFixed(2)]
})
},
getAlarmCount() {
alarmNowStatic().then(response => {
- this.dataGroup[1].context = response.data.total
+ this.dataGroup[0].context = response.data.total
})
}
}
diff --git a/src/views/gasDashboard/components/alarmGasCountByDept.vue b/src/views/gasDashboard/components/alarmGasCountByDept.vue
deleted file mode 100644
index b8bfc23..0000000
--- a/src/views/gasDashboard/components/alarmGasCountByDept.vue
+++ /dev/null
@@ -1,73 +0,0 @@
-
-
-
-
-
-
diff --git a/src/views/gasDashboard/components/alarmGasCountByType.vue b/src/views/gasDashboard/components/alarmGasCountByType.vue
new file mode 100644
index 0000000..4f80d3a
--- /dev/null
+++ b/src/views/gasDashboard/components/alarmGasCountByType.vue
@@ -0,0 +1,72 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/views/gasDashboard/components/alarmLeakCountPie.vue b/src/views/gasDashboard/components/alarmLeakCountPie.vue
new file mode 100644
index 0000000..abfbc2d
--- /dev/null
+++ b/src/views/gasDashboard/components/alarmLeakCountPie.vue
@@ -0,0 +1,74 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/views/gasDashboard/components/corrodeCountByDay.vue b/src/views/gasDashboard/components/corrodeCountByDay.vue
index c144bc6..ecd0289 100644
--- a/src/views/gasDashboard/components/corrodeCountByDay.vue
+++ b/src/views/gasDashboard/components/corrodeCountByDay.vue
@@ -45,7 +45,8 @@
},
extend: {
grid: {
- top: 120
+ top: 120,
+ left: 30
},
yAxis: {
name: '腐蚀率(%)',
diff --git a/src/views/gasDashboard/components/gasAlarmTrend.vue b/src/views/gasDashboard/components/gasAlarmTrend.vue
new file mode 100644
index 0000000..a1d422e
--- /dev/null
+++ b/src/views/gasDashboard/components/gasAlarmTrend.vue
@@ -0,0 +1,100 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/views/gasDashboard/components/gasCountByDay.vue b/src/views/gasDashboard/components/gasCountByDay.vue
index 79a4efb..f0a3977 100644
--- a/src/views/gasDashboard/components/gasCountByDay.vue
+++ b/src/views/gasDashboard/components/gasCountByDay.vue
@@ -1,34 +1,33 @@
-
-
+
+
+
+
diff --git a/src/views/gasDashboard/index.vue b/src/views/gasDashboard/index.vue
index 6eb2d56..be583f2 100644
--- a/src/views/gasDashboard/index.vue
+++ b/src/views/gasDashboard/index.vue
@@ -2,72 +2,60 @@
-
-
+
-
+
-
+
-
-
+
-
+
-
+
-
-
+
-
-
+
-
+
-
+
-
+
-
-
-
-
-
-
-
-
@@ -81,19 +69,23 @@
import DeviceCount from './components/DeviceCount'
import gasCountByDept from './components/gasCountByDept'
import gasCountByDay from './components/gasCountByDay'
-import gasCountByAreaBar from './components/gasCountByAreaBar'
+import gasCountByDeviceBar from './components/gasCountByDeviceBar'
import WatchAlarmBar from './components/watchAlarmBar'
import gasNote from './components/gasNote'
import AlarmCountByDept from './components/AlarmCountByDept'
import gasCompare from './components/gasCompare'
import watchGasAlarmBar from './components/watchGasAlarmBar'
-import alarmGasCountByDept from './components/alarmGasCountByDept'
+import alarmGasCountByType from './components/alarmGasCountByType'
import corrodeCountByDay from './components/corrodeCountByDay'
+import AlarmLeakCountPie from './components/alarmLeakCountPie'
+import GasAlarmTrend from './components/gasAlarmTrend'
export default {
name: 'Dashboard',
components: {
- gasCountByAreaBar,
+ GasAlarmTrend,
+ AlarmLeakCountPie,
+ gasCountByDeviceBar,
gasCountByDept,
gasCountByDay,
gasNote,
@@ -103,7 +95,7 @@
WatchAlarmBar,
AlarmCountByDept,
watchGasAlarmBar,
- alarmGasCountByDept,
+ alarmGasCountByType,
corrodeCountByDay
},
data() {
diff --git a/src/api/gasOverview.js b/src/api/gasOverview.js
index 559a078..0dc3442 100644
--- a/src/api/gasOverview.js
+++ b/src/api/gasOverview.js
@@ -11,14 +11,50 @@
})
}
-// 气体流量计数量
-// export function deviceCount(params) {
-// return request({
-// url: 'device/count/15',
-// method: 'get',
-// params
-// })
-// }
+// 用水量、噪声统计数据
+export function gasStatistic2(deviceType) {
+ return request({
+ url: 'gas/statistics/used',
+ method: 'get',
+ params: {
+ deviceType: deviceType
+ }
+ })
+}
+
+// 气体用气量走势图
+export function gasTrend(params) {
+ return request({
+ url: '/gas/statistics/trend',
+ method: 'get',
+ params
+ })
+}
+// 用气量超量报警统计
+export function gasAlarmTrend(params) {
+ return request({
+ url: '/gas/alarm/trend',
+ method: 'get',
+ params
+ })
+}
+// 各设备气体用气量
+export function gasUsed(params) {
+ return request({
+ url: '/gas/used',
+ method: 'get',
+ params
+ })
+}
+// 气体泄漏监测结果
+export function gasLeakStatus(params) {
+ return request({
+ url: 'gas/leakage/rate',
+ method: 'get',
+ params
+ })
+}
+
// 气体流量计数量
export function deviceCount(type) {
return request({
@@ -56,7 +92,7 @@
// 查询二级分区燃气告警
export function gasAlarmBySecondArea(params) {
return request({
- url: 'dataStatistic/gasAlarmBySecondArea',
+ url: 'gas/alarm/rate',
method: 'get',
params
})
diff --git a/src/components/BigData/Card1/index.vue b/src/components/BigData/Card1/index.vue
index 748747b..c9ec32d 100644
--- a/src/components/BigData/Card1/index.vue
+++ b/src/components/BigData/Card1/index.vue
@@ -4,21 +4,11 @@
-
-
-
-
-
- {{ title[0] }} {{ context[0] }}{{ unit }}
-
-
- {{ title[1] }}
{{ context[1] }}-->
+
+
+
+ {{ name }} {{ context[index] }}{{ unit }}
@@ -41,7 +31,7 @@
props: {
title: {
type: Array,
- default: function () {
+ default: function() {
return ['标题', '标题']
}
},
@@ -55,7 +45,7 @@
},
context: {
type: Array,
- default: function () {
+ default: function() {
return ['--', '--']
}
},
@@ -83,6 +73,8 @@
height: 108px;
font-size: 12px;
position: relative;
+ display: flex;
+ align-items: center;
overflow: hidden;
color: #666;
background: #fff;
@@ -96,7 +88,6 @@
}
.card-panel-icon-wrapper {
- float: left;
margin: 14px 0 0 10px;
padding: 16px 2px;
transition: all 0.38s ease-out;
@@ -109,25 +100,22 @@
}
.card-panel-description {
- float: left;
+ flex:1;
font-weight: bold;
- margin-top: 26px;
overflow: auto;
margin-left: 5px;
.two {
.card-panel-text {
- line-height: 18px;
+ line-height: 26px;
color: rgba(0, 0, 0, 0.45);
font-size: 14px;
- margin-bottom: 12px;
+ display: flex;
+ justify-content: space-between;
}
-
.card-panel-num {
font-size: 18px;
color: #666;
- padding-left: 10px;
- float: right;
}
}
.only {
diff --git a/src/views/alarmManage/listAlarmNow.vue b/src/views/alarmManage/listAlarmNow.vue
index 97345d9..283c8ef 100644
--- a/src/views/alarmManage/listAlarmNow.vue
+++ b/src/views/alarmManage/listAlarmNow.vue
@@ -5,7 +5,7 @@
-
+
diff --git a/src/views/alarmManage/listAlarmRecords.vue b/src/views/alarmManage/listAlarmRecords.vue
index 8301f8c..03047ac 100644
--- a/src/views/alarmManage/listAlarmRecords.vue
+++ b/src/views/alarmManage/listAlarmRecords.vue
@@ -4,7 +4,7 @@
-
+
diff --git a/src/views/dashboard/components/FunctionArea.vue b/src/views/dashboard/components/FunctionArea.vue
index 4c05cee..6401557 100644
--- a/src/views/dashboard/components/FunctionArea.vue
+++ b/src/views/dashboard/components/FunctionArea.vue
@@ -5,11 +5,11 @@
-->
-
本年度
-
本季度
-
近30日
-
近7日
-
今日
+
本年度
+
本季度
+
近30日
+
近7日
+
今日
diff --git a/src/views/gasDashboard/components/PanelGroup.vue b/src/views/gasDashboard/components/PanelGroup.vue
index 803b666..5613860 100644
--- a/src/views/gasDashboard/components/PanelGroup.vue
+++ b/src/views/gasDashboard/components/PanelGroup.vue
@@ -17,6 +17,7 @@
import Card from '@/components/BigData/Card'
// 首页
import { gasStatistic, deviceCount, alarmNowStatic } from '@/api/gasOverview'
+import { gasStatistic2 } from '../../../api/gasOverview'
export default {
components: {
Card,
@@ -26,40 +27,40 @@
return {
dataGroup1: [
{
- title: ['总用气量', '本月用气量'],
- context: ['--', '--'],
+ title: ['CO₂总用气量', 'CO₂本月用气量', 'CO₂今日用气量'],
+ context: ['--', '--', '--'],
icon: '',
color: '#40c9c6',
- unit: '吨',
+ unit: 'Nm³',
index: 0
},
{
- title: ['今日用气量', '生产厂区用气量'],
- context: ['--', '--'],
+ title: ['O₂总用气量', 'O₂本月用气量', 'O₂今日用气量'],
+ context: ['--', '--', '--'],
icon: '',
color: '#36a3f7',
- unit: '吨',
+ unit: 'Nm³',
index: 1
},
{
+ title: ['燃气总用气量', '燃气本月用气量', '燃气今日用气量'],
+ context: ['--', '--', '--'],
+ icon: '',
+ color: '#36a3f7',
+ unit: 'Nm³',
+ index: 2
+ },
+ {
title: ['滑道实时噪声'],
context: ['--'],
icon: 'icon-noise',
color: '#f1c353',
unit: 'db',
- index: 2
+ index: 3
}
],
dataGroup: [
{
- title: '气体流量计',
- context: '--',
- icon: 'icon-watch',
- color: '#9694f7',
- path: '/deviceList?deviceType=15',
- permission: '/device/list'
- },
- {
title: '告警信息',
context: '--',
icon: 'icon-alarm',
@@ -73,7 +74,7 @@
mounted() {
this.getWater()
// this.getWellCount()
- this.getDeviceCount()
+ // this.getDeviceCount()
this.getAlarmCount()
},
methods: {
@@ -83,19 +84,21 @@
getWater() {
// 用气量
gasStatistic().then(response => {
- this.dataGroup1[0].context = [response.data.total ? parseFloat(response.data.total).toFixed(2) : '--', response.data.month ? parseFloat(response.data.month).toFixed(2) : '--']
- this.dataGroup1[1].context = [response.data.today ? parseFloat(response.data.today).toFixed(2) : '--', response.data.prodution ? parseFloat(response.data.prodution).toFixed(2) : '--']
- this.dataGroup1[2].context = [response.data.sound ? Number(response.data.sound).toFixed(2) : '--']
+ this.dataGroup1[3].context = [response.data.sound ? Number(response.data.sound).toFixed(2) : '--']
})
- },
- getDeviceCount() {
- deviceCount('15').then(response => {
- this.dataGroup[0].context = response.data
+ gasStatistic2('15').then(response => {
+ this.dataGroup1[0].context = [response.data.total.toFixed(2), response.data.month.toFixed(2), response.data.day === '' ? '--' : response.data.day.toFixed(2)]
+ })
+ gasStatistic2('16').then(response => {
+ this.dataGroup1[1].context = [response.data.total.toFixed(2), response.data.month.toFixed(2), response.data.day === '' ? '--' : response.data.day.toFixed(2)]
+ })
+ gasStatistic2('17').then(response => {
+ this.dataGroup1[2].context = [response.data.total.toFixed(2), response.data.month.toFixed(2), response.data.day === '' ? '--' : response.data.day.toFixed(2)]
})
},
getAlarmCount() {
alarmNowStatic().then(response => {
- this.dataGroup[1].context = response.data.total
+ this.dataGroup[0].context = response.data.total
})
}
}
diff --git a/src/views/gasDashboard/components/alarmGasCountByDept.vue b/src/views/gasDashboard/components/alarmGasCountByDept.vue
deleted file mode 100644
index b8bfc23..0000000
--- a/src/views/gasDashboard/components/alarmGasCountByDept.vue
+++ /dev/null
@@ -1,73 +0,0 @@
-
-
-
-
-
-
diff --git a/src/views/gasDashboard/components/alarmGasCountByType.vue b/src/views/gasDashboard/components/alarmGasCountByType.vue
new file mode 100644
index 0000000..4f80d3a
--- /dev/null
+++ b/src/views/gasDashboard/components/alarmGasCountByType.vue
@@ -0,0 +1,72 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/views/gasDashboard/components/alarmLeakCountPie.vue b/src/views/gasDashboard/components/alarmLeakCountPie.vue
new file mode 100644
index 0000000..abfbc2d
--- /dev/null
+++ b/src/views/gasDashboard/components/alarmLeakCountPie.vue
@@ -0,0 +1,74 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/views/gasDashboard/components/corrodeCountByDay.vue b/src/views/gasDashboard/components/corrodeCountByDay.vue
index c144bc6..ecd0289 100644
--- a/src/views/gasDashboard/components/corrodeCountByDay.vue
+++ b/src/views/gasDashboard/components/corrodeCountByDay.vue
@@ -45,7 +45,8 @@
},
extend: {
grid: {
- top: 120
+ top: 120,
+ left: 30
},
yAxis: {
name: '腐蚀率(%)',
diff --git a/src/views/gasDashboard/components/gasAlarmTrend.vue b/src/views/gasDashboard/components/gasAlarmTrend.vue
new file mode 100644
index 0000000..a1d422e
--- /dev/null
+++ b/src/views/gasDashboard/components/gasAlarmTrend.vue
@@ -0,0 +1,100 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/views/gasDashboard/components/gasCountByDay.vue b/src/views/gasDashboard/components/gasCountByDay.vue
index 79a4efb..f0a3977 100644
--- a/src/views/gasDashboard/components/gasCountByDay.vue
+++ b/src/views/gasDashboard/components/gasCountByDay.vue
@@ -1,34 +1,33 @@
-
-
+
+
+
+
diff --git a/src/views/gasDashboard/index.vue b/src/views/gasDashboard/index.vue
index 6eb2d56..be583f2 100644
--- a/src/views/gasDashboard/index.vue
+++ b/src/views/gasDashboard/index.vue
@@ -2,72 +2,60 @@
-
-
+
-
+
-
+
-
-
+
-
+
-
+
-
-
+
-
-
+
-
+
-
+
-
+
-
-
-
-
-
-
-
-
@@ -81,19 +69,23 @@
import DeviceCount from './components/DeviceCount'
import gasCountByDept from './components/gasCountByDept'
import gasCountByDay from './components/gasCountByDay'
-import gasCountByAreaBar from './components/gasCountByAreaBar'
+import gasCountByDeviceBar from './components/gasCountByDeviceBar'
import WatchAlarmBar from './components/watchAlarmBar'
import gasNote from './components/gasNote'
import AlarmCountByDept from './components/AlarmCountByDept'
import gasCompare from './components/gasCompare'
import watchGasAlarmBar from './components/watchGasAlarmBar'
-import alarmGasCountByDept from './components/alarmGasCountByDept'
+import alarmGasCountByType from './components/alarmGasCountByType'
import corrodeCountByDay from './components/corrodeCountByDay'
+import AlarmLeakCountPie from './components/alarmLeakCountPie'
+import GasAlarmTrend from './components/gasAlarmTrend'
export default {
name: 'Dashboard',
components: {
- gasCountByAreaBar,
+ GasAlarmTrend,
+ AlarmLeakCountPie,
+ gasCountByDeviceBar,
gasCountByDept,
gasCountByDay,
gasNote,
@@ -103,7 +95,7 @@
WatchAlarmBar,
AlarmCountByDept,
watchGasAlarmBar,
- alarmGasCountByDept,
+ alarmGasCountByType,
corrodeCountByDay
},
data() {
diff --git a/static/project.config.json b/static/project.config.json
index 7b9a3c3..0215df1 100644
--- a/static/project.config.json
+++ b/static/project.config.json
@@ -1,5 +1,5 @@
{
- "title": "场区能源管理系统",
+ "title": "生产及办公能耗管理系统",
"baseUrl": "http://111.198.10.15:20104/",
"mainPage": "http://111.198.10.15:11404/dcms/#",
"singleSys": true,