- 场区用气事记
+ 场区用水事记
diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue
index d51bfb7..b562719 100644
--- a/src/views/dashboard/index.vue
+++ b/src/views/dashboard/index.vue
@@ -2,7 +2,7 @@
-
+
@@ -15,13 +15,13 @@
-
+
-
+
-
+
@@ -39,7 +39,7 @@
-
+
@@ -51,26 +51,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -87,14 +67,11 @@
import WaterCountByDept from './components/waterCountByDept'
import WaterCountByDeptBar from './components/waterCountByDeptBar'
import WaterCountByDay from './components/waterCountByDay'
-import WaterCountByAreaBar from './components/waterCountByAreaBar'
-import WatchAlarmBar from './components/watchAlarmBar'
-import WaterNote from './components/waterNote'
-import AlarmCountByDept from './components/AlarmCountByDept'
-import WaterCompare from './components/waterCompare'
-import watchGasAlarmBar from './components/watchGasAlarmBar'
-import alarmGasCountByDept from './components/alarmGasCountByDept'
-import corrodeCountByDay from './components/corrodeCountByDay'
+import WaterCountByAreaBar from "./components/waterCountByAreaBar";
+import WatchAlarmBar from "./components/watchAlarmBar";
+import WaterNote from "./components/waterNote";
+import AlarmCountByDept from "./components/AlarmCountByDept";
+import WaterCompare from "./components/waterCompare";
export default {
name: 'Dashboard',
@@ -113,29 +90,7 @@
WellCountByBfzt,
WellCountByType,
DeviceCount,
- DeviceCountByOnline,
- watchGasAlarmBar,
- alarmGasCountByDept,
- corrodeCountByDay
- },
- data() {
- return {
- listQuery1: {
- areaId: '110000',
- startTime: new Date().Format('yyyy-MM-dd'),
- endTime: new Date().Format('yyyy-MM-dd')
- }, // 分区用气量查询条件
- listQuery2: {
- areaId: '110000',
- startTime: new Date().Format('yyyy-MM-dd'),
- endTime: new Date().Format('yyyy-MM-dd')
- }, // 分区报警查询条件
- listQuery3: {
- areaId: '110000',
- startTime: new Date().Format('yyyy-MM-dd'),
- endTime: new Date().Format('yyyy-MM-dd')
- } // 分区报警查询条件
- }
+ DeviceCountByOnline
},
computed: {
...mapGetters([
@@ -159,6 +114,20 @@
state.needRefresh = needRefresh
}
},
+ data(){
+ return {
+ listQuery1:{
+ areaId:'110000',
+ startTime:new Date().Format('yyyy-MM-dd'),
+ endTime:new Date().Format('yyyy-MM-dd')
+ },// 分区用水量查询条件
+ listQuery2:{
+ areaId:'110000',
+ startTime:new Date().Format('yyyy-MM-dd'),
+ endTime:new Date().Format('yyyy-MM-dd')
+ } // 分区报警查询条件
+ }
+ },
watch: {
needRefresh(val) {
// 需要刷新
@@ -176,16 +145,12 @@
this.$store.dispatch('initWebSocket')
},
// 切换分区查询条件
- changeWaterQuery(listQuery1) {
+ changeWaterQuery(listQuery1){
this.listQuery1 = listQuery1
},
// 切换报警查询条件
- changeAlarmQuery(listQuery2) {
+ changeAlarmQuery(listQuery2){
this.listQuery2 = listQuery2
- },
- // 切换报警查询条件
- changeAlarmGasQuery(listQuery3) {
- this.listQuery3 = listQuery3
}
}
}
diff --git a/src/views/dashboard/index_bak2.vue b/src/views/dashboard/index_bak2.vue
deleted file mode 100644
index b562719..0000000
--- a/src/views/dashboard/index_bak2.vue
+++ /dev/null
@@ -1,176 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/gasDashboard/components/AlarmCountByDept.vue b/src/views/gasDashboard/components/AlarmCountByDept.vue
new file mode 100644
index 0000000..4395df9
--- /dev/null
+++ b/src/views/gasDashboard/components/AlarmCountByDept.vue
@@ -0,0 +1,79 @@
+
+
+
+
+
+
+
diff --git a/src/views/gasDashboard/components/AlarmNowList.vue b/src/views/gasDashboard/components/AlarmNowList.vue
new file mode 100644
index 0000000..890325f
--- /dev/null
+++ b/src/views/gasDashboard/components/AlarmNowList.vue
@@ -0,0 +1,35 @@
+
+
+
+
+
diff --git a/src/views/gasDashboard/components/DeviceCount.vue b/src/views/gasDashboard/components/DeviceCount.vue
new file mode 100644
index 0000000..30fa639
--- /dev/null
+++ b/src/views/gasDashboard/components/DeviceCount.vue
@@ -0,0 +1,64 @@
+
+
+
+
+
+
diff --git a/src/views/gasDashboard/components/FunctionArea.vue b/src/views/gasDashboard/components/FunctionArea.vue
new file mode 100644
index 0000000..4c05cee
--- /dev/null
+++ b/src/views/gasDashboard/components/FunctionArea.vue
@@ -0,0 +1,137 @@
+
+
+
+ 本年度
+ 本季度
+ 近30日
+ 近7日
+ 今日
+
+
+
+
+
+
+
diff --git a/src/views/gasDashboard/components/PanelGroup.vue b/src/views/gasDashboard/components/PanelGroup.vue
new file mode 100644
index 0000000..2232a6f
--- /dev/null
+++ b/src/views/gasDashboard/components/PanelGroup.vue
@@ -0,0 +1,249 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/gasDashboard/components/alarmGasCountByDept.vue b/src/views/gasDashboard/components/alarmGasCountByDept.vue
new file mode 100644
index 0000000..534d8f3
--- /dev/null
+++ b/src/views/gasDashboard/components/alarmGasCountByDept.vue
@@ -0,0 +1,73 @@
+
+
+
+
+
+
diff --git a/src/views/gasDashboard/components/corrodeCountByDay.vue b/src/views/gasDashboard/components/corrodeCountByDay.vue
new file mode 100644
index 0000000..8563956
--- /dev/null
+++ b/src/views/gasDashboard/components/corrodeCountByDay.vue
@@ -0,0 +1,84 @@
+
+
+
+
+
+
+
+
diff --git a/src/views/gasDashboard/components/watchAlarmBar.vue b/src/views/gasDashboard/components/watchAlarmBar.vue
new file mode 100644
index 0000000..dbf30c7
--- /dev/null
+++ b/src/views/gasDashboard/components/watchAlarmBar.vue
@@ -0,0 +1,208 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/gasDashboard/components/watchGasAlarmBar.vue b/src/views/gasDashboard/components/watchGasAlarmBar.vue
new file mode 100644
index 0000000..ae7266e
--- /dev/null
+++ b/src/views/gasDashboard/components/watchGasAlarmBar.vue
@@ -0,0 +1,150 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/gasDashboard/components/waterCompare.vue b/src/views/gasDashboard/components/waterCompare.vue
new file mode 100644
index 0000000..5f7d7c8
--- /dev/null
+++ b/src/views/gasDashboard/components/waterCompare.vue
@@ -0,0 +1,123 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/gasDashboard/components/waterCountByAreaBar.vue b/src/views/gasDashboard/components/waterCountByAreaBar.vue
new file mode 100644
index 0000000..a8006f7
--- /dev/null
+++ b/src/views/gasDashboard/components/waterCountByAreaBar.vue
@@ -0,0 +1,236 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/gasDashboard/components/waterCountByDay.vue b/src/views/gasDashboard/components/waterCountByDay.vue
new file mode 100644
index 0000000..ebb002c
--- /dev/null
+++ b/src/views/gasDashboard/components/waterCountByDay.vue
@@ -0,0 +1,157 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/gasDashboard/components/waterCountByDept.vue b/src/views/gasDashboard/components/waterCountByDept.vue
new file mode 100644
index 0000000..2258847
--- /dev/null
+++ b/src/views/gasDashboard/components/waterCountByDept.vue
@@ -0,0 +1,169 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/gasDashboard/components/waterNote.vue b/src/views/gasDashboard/components/waterNote.vue
new file mode 100644
index 0000000..752330a
--- /dev/null
+++ b/src/views/gasDashboard/components/waterNote.vue
@@ -0,0 +1,148 @@
+
+
+
+
+ 场区用气事记
+
+
+
+
+
+
+
{{index+1}}. {{item.content}}
+
+
{{index+1}}.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/gasDashboard/index.vue b/src/views/gasDashboard/index.vue
new file mode 100644
index 0000000..a9f13eb
--- /dev/null
+++ b/src/views/gasDashboard/index.vue
@@ -0,0 +1,199 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/gasOverview/cesiumViewer.vue b/src/views/gasOverview/cesiumViewer.vue
new file mode 100644
index 0000000..d787dfd
--- /dev/null
+++ b/src/views/gasOverview/cesiumViewer.vue
@@ -0,0 +1,31 @@
+
+
+
+
+
+
+
diff --git a/src/views/gasOverview/gasOverviewSimple.vue b/src/views/gasOverview/gasOverviewSimple.vue
new file mode 100644
index 0000000..bc2f67d
--- /dev/null
+++ b/src/views/gasOverview/gasOverviewSimple.vue
@@ -0,0 +1,1033 @@
+
+
+
+
+
+
+
+
+
+
+ 搜索
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row[column.value] }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row[column.value] }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/gasOverview/overview.vue b/src/views/gasOverview/overview.vue
new file mode 100644
index 0000000..936577c
--- /dev/null
+++ b/src/views/gasOverview/overview.vue
@@ -0,0 +1,802 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+
+ 显示全部井
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row[column.value] }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/gasOverview/overviewBj.vue b/src/views/gasOverview/overviewBj.vue
new file mode 100644
index 0000000..29c11ba
--- /dev/null
+++ b/src/views/gasOverview/overviewBj.vue
@@ -0,0 +1,1240 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+
+
+ 显示全部井
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row[column.value] }}
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/router/index.js b/src/router/index.js
index e2cf1e9..4f3dbe0 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -63,6 +63,19 @@
name: 'Dashboard',
meta: { title: '首页', icon: 'dashboard', noCache: true, affix: true }
}]
+ },
+ {
+ path: '/',
+ component: Layout,
+ redirect: 'gasDashboard',
+ name: 'GasDashboard',
+ // hidden: true,
+ children: [{
+ path: 'gasDashboard',
+ component: () => import('@/views/gasDashboard/index'),
+ name: 'GasDashboard',
+ meta: { title: '动力管线首页', icon: 'dashboard', noCache: true, affix: true }
+ }]
}
]
// 实例化vue的时候直挂载constantRouter
@@ -75,6 +88,42 @@
// 异步挂载路由
// 动态需要根据权限加载的路由表
export const asyncRouterMap = [
+ // {
+ // path: 'gasDashboard',
+ // component: Layout,
+ // redirect: '/gasDashboard',
+ // meta: {
+ // title: '动力管线首页',
+ // icon: 'icon-config', // 图标
+ // permission: ['/gasDashboard']// 权限名称
+ // },
+ // children: [
+ // {
+ // path: '/gasDashboard',
+ // component: () => import('@/views/gasDashboard/index'),
+ // name: 'gasDashboard',
+ // meta: { title: '动力管线首页', icon: 'icon-config', permission: ['/gasDashboard'] }
+ // }
+ // ]
+ // },
+ {
+ path: 'gasOverview',
+ component: Layout,
+ redirect: '/gasOverview',
+ meta: {
+ title: '动力管线总览',
+ icon: 'icon-config', // 图标
+ permission: ['/gasOverview']// 权限名称
+ },
+ children: [
+ {
+ path: '/gasOverview',
+ component: () => import('@/views/gasOverview/gasOverviewSimple'),
+ name: 'gasOverview',
+ meta: { title: '动力管线总览', icon: 'icon-config', permission: ['/gasOverview'] }
+ }
+ ]
+ },
{
path: 'overview',
component: Layout,
diff --git a/src/views/dashboard/components/AlarmCountByDept.vue b/src/views/dashboard/components/AlarmCountByDept.vue
index 4395df9..4347727 100644
--- a/src/views/dashboard/components/AlarmCountByDept.vue
+++ b/src/views/dashboard/components/AlarmCountByDept.vue
@@ -44,10 +44,10 @@
label: { show: true, position: 'outside', formatter: '{b}' },
right: 120
},
- // tooltip: { trigger: 'item', formatter: '{b}
用气量:{c}吨
占比:{d}%' }
+ // tooltip: { trigger: 'item', formatter: '{b}
用水量:{c}吨
占比:{d}%' }
},
title: {
- text: '分区气体流量计报警占比'
+ text: '分区水表报警占比图'
},
chartSettings: {
labelMap: {
diff --git a/src/views/dashboard/components/DeviceCount.vue b/src/views/dashboard/components/DeviceCount.vue
index 30fa639..cbacc0f 100644
--- a/src/views/dashboard/components/DeviceCount.vue
+++ b/src/views/dashboard/components/DeviceCount.vue
@@ -46,17 +46,20 @@
mounted() {
// TODO:待调试真接口
this.fetchData()
- this.chartData.rows = [
- { 'deviceType': '气体流量计', 'deviceCount': 20, '下单用户': 1093, '下单率': 0.32 },
- { 'deviceType': '供水泄露监测仪', 'deviceCount': 20, '下单用户': 3230, '下单率': 0.26 },
- { 'deviceType': '气体泄露监测仪', 'deviceCount': 50, '下单用户': 2623, '下单率': 0.76 },
- { 'deviceType': '腐蚀速率监测仪', 'deviceCount': 10, '下单用户': 1423, '下单率': 0.49 }
- ]
+ // this.chartData.rows = [
+ // { 'deviceType': '井盖状态监测仪', 'deviceCount': 1393, '下单用户': 1093, '下单率': 0.32 },
+ // { 'deviceType': '液位监测仪', 'deviceCount': 3530, '下单用户': 3230, '下单率': 0.26 },
+ // { 'deviceType': '燃气智能监测终端', 'deviceCount': 2923, '下单用户': 2623, '下单率': 0.76 },
+ // { 'deviceType': '开挖监测仪', 'deviceCount': 1723, '下单用户': 1423, '下单率': 0.49 },
+ // { 'deviceType': '有害气体监测仪', 'deviceCount': 3792, '下单用户': 3492, '下单率': 0.323 },
+ // { 'deviceType': '水质监测仪', 'deviceCount': 2, '下单用户': 4293, '下单率': 0.78 },
+ // { 'deviceType': '流量监测仪', 'deviceCount': 2, '下单用户': 4293, '下单率': 0.78 }
+ // ]
},
methods: {
fetchData() {
deviceStaticsByType().then(response => {
- // this.chartData.rows = response.data
+ this.chartData.rows = response.data
})
}
}
diff --git a/src/views/dashboard/components/PanelGroup.vue b/src/views/dashboard/components/PanelGroup.vue
index 2232a6f..7cdf078 100644
--- a/src/views/dashboard/components/PanelGroup.vue
+++ b/src/views/dashboard/components/PanelGroup.vue
@@ -32,7 +32,7 @@
return {
dataGroup1: [
{
- title: ['总用气量', '本月用气量'],
+ title: ['总用水量', '本月用水量'],
context: ['--', '--'],
icon: '',
color: '#40c9c6',
@@ -40,7 +40,7 @@
index: 0
},
{
- title: ['今日用气量', '生产厂区用气量'],
+ title: ['今日用水量', '生产厂区用水量'],
context: ['--', '--'],
icon: '',
color: '#36a3f7',
@@ -58,7 +58,14 @@
],
dataGroup: [
{
- title: '气体流量计',
+ title: '阀门数量',
+ context: '--',
+ icon: 'icon-valve',
+ color: '#40c9c6',
+ permission: '/device/list'
+ },
+ {
+ title: '水表数量',
context: '--',
icon: 'icon-watch',
color: '#9694f7',
@@ -92,7 +99,7 @@
this.$router.push(path)
},
getWater() {
- // 用气量
+ // 用水量
getWatchStatistic().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) : '--']
diff --git a/src/views/dashboard/components/alarmGasCountByDept.vue b/src/views/dashboard/components/alarmGasCountByDept.vue
deleted file mode 100644
index 534d8f3..0000000
--- a/src/views/dashboard/components/alarmGasCountByDept.vue
+++ /dev/null
@@ -1,73 +0,0 @@
-
-
-
-
-
-
diff --git a/src/views/dashboard/components/corrodeCountByDay.vue b/src/views/dashboard/components/corrodeCountByDay.vue
deleted file mode 100644
index 8563956..0000000
--- a/src/views/dashboard/components/corrodeCountByDay.vue
+++ /dev/null
@@ -1,84 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/src/views/dashboard/components/watchAlarmBar.vue b/src/views/dashboard/components/watchAlarmBar.vue
index dbf30c7..5fe709d 100644
--- a/src/views/dashboard/components/watchAlarmBar.vue
+++ b/src/views/dashboard/components/watchAlarmBar.vue
@@ -1,4 +1,4 @@
-
+
@@ -45,7 +45,7 @@
data() {
return {
title:{
- text: '气体流量计告警统计'
+ text: '水表告警统计'
},
chartSettings:{
itemStyle: {
diff --git a/src/views/dashboard/components/watchGasAlarmBar.vue b/src/views/dashboard/components/watchGasAlarmBar.vue
deleted file mode 100644
index ae7266e..0000000
--- a/src/views/dashboard/components/watchGasAlarmBar.vue
+++ /dev/null
@@ -1,150 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/dashboard/components/waterCompare.vue b/src/views/dashboard/components/waterCompare.vue
index 5f7d7c8..6a62089 100644
--- a/src/views/dashboard/components/waterCompare.vue
+++ b/src/views/dashboard/components/waterCompare.vue
@@ -1,4 +1,4 @@
-
+
@@ -18,7 +18,7 @@
components: { FunctionArea },
data() {
return {
- title: { text: '分区用气对比' },
+ title: { text: '分区用水对比图' },
chartSettings: {
labelMap: {
'areaName': '分区',
@@ -47,7 +47,7 @@
}
},
yAxis: {
- name: '用气量(吨)',
+ name: '用水量(吨)',
position: 'left',
max: 10
},
@@ -66,12 +66,12 @@
rows: []
},
nameDict: {
- 'today': ['昨日用气', '今日用气'],
- 'week': ['近7日用气', '对照时间用气'],
- 'month': ['近30日用气', '对照时间用气'],
- 'season': ['上季度用气', '本季度用气'],
- 'year': ['上年度用气', '本年度用气'],
- 'other': ['对照时间用气', '自选时间用气']
+ 'today': ['昨日用水', '今日用水'],
+ 'week': ['近7日用水', '对照时间用水'],
+ 'month': ['近30日用水', '对照时间用水'],
+ 'season': ['上季度用水', '本季度用水'],
+ 'year': ['上年度用水', '本年度用水'],
+ 'other': ['对照时间用水', '自选时间用水']
}
}
},
diff --git a/src/views/dashboard/components/waterCountByAreaBar.vue b/src/views/dashboard/components/waterCountByAreaBar.vue
index a8006f7..315c83a 100644
--- a/src/views/dashboard/components/waterCountByAreaBar.vue
+++ b/src/views/dashboard/components/waterCountByAreaBar.vue
@@ -57,14 +57,14 @@
}
},
yAxis: {
- name: '用气量(吨)',
+ name: '用水量(吨)',
position: 'left'
},
series: {
label: { show: true, position: 'top', formatter: '{c}' },
barWidth: 25
},
- tooltip: { trigger: 'item', formatter: '{b}
用气量:{c}吨' }
+ tooltip: { trigger: 'item', formatter: '{b}
用水量:{c}吨' }
}
this.grid = {
right: 40,
@@ -72,7 +72,7 @@
bottom: 5
}
this.title = {
- text: '分区用气统计'
+ text: '分区用水统计图'
}
this.chartSettings = {
itemStyle: {
@@ -81,7 +81,7 @@
labelMap: {
'areaName': '分区',
- 'count': '用气量'
+ 'count': '用水量'
},
dimension: ['areaName'],
metrics: ['count']
diff --git a/src/views/dashboard/components/waterCountByDay.vue b/src/views/dashboard/components/waterCountByDay.vue
index ebb002c..8d9861e 100644
--- a/src/views/dashboard/components/waterCountByDay.vue
+++ b/src/views/dashboard/components/waterCountByDay.vue
@@ -36,7 +36,7 @@
endTime: ''
},
title: {
- text: '用气走势图'
+ text: '用水走势图'
},
chartSettings: {
labelMap: {date:'日期'},
@@ -48,7 +48,7 @@
top: 120
},
yAxis: {
- name: '用气量(吨)',
+ name: '用水量(吨)',
position: 'left'
},
legend: {
diff --git a/src/views/dashboard/components/waterCountByDept.vue b/src/views/dashboard/components/waterCountByDept.vue
index 2258847..02e27cd 100644
--- a/src/views/dashboard/components/waterCountByDept.vue
+++ b/src/views/dashboard/components/waterCountByDept.vue
@@ -64,15 +64,15 @@
label: { show: true, position: 'outside', formatter: '{b}' },
right: 120
},
- tooltip: { trigger: 'item', formatter: '{b}
用气量:{c}吨
占比:{d}%' }
+ tooltip: { trigger: 'item', formatter: '{b}
用水量:{c}吨
占比:{d}%' }
},
title: {
- text: '分区用气占比图'
+ text: '分区用水占比图'
},
chartSettings: {
labelMap: {
'areaName': '分区',
- 'count': '用气量'
+ 'count': '用水量'
},
dimension: 'areaName',
metrics: 'count'
diff --git a/src/views/dashboard/components/waterNote.vue b/src/views/dashboard/components/waterNote.vue
index 752330a..65cdec7 100644
--- a/src/views/dashboard/components/waterNote.vue
+++ b/src/views/dashboard/components/waterNote.vue
@@ -2,7 +2,7 @@
- 场区用气事记
+ 场区用水事记
diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue
index d51bfb7..b562719 100644
--- a/src/views/dashboard/index.vue
+++ b/src/views/dashboard/index.vue
@@ -2,7 +2,7 @@
-
+
@@ -15,13 +15,13 @@
-
+
-
+
-
+
@@ -39,7 +39,7 @@
-
+
@@ -51,26 +51,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -87,14 +67,11 @@
import WaterCountByDept from './components/waterCountByDept'
import WaterCountByDeptBar from './components/waterCountByDeptBar'
import WaterCountByDay from './components/waterCountByDay'
-import WaterCountByAreaBar from './components/waterCountByAreaBar'
-import WatchAlarmBar from './components/watchAlarmBar'
-import WaterNote from './components/waterNote'
-import AlarmCountByDept from './components/AlarmCountByDept'
-import WaterCompare from './components/waterCompare'
-import watchGasAlarmBar from './components/watchGasAlarmBar'
-import alarmGasCountByDept from './components/alarmGasCountByDept'
-import corrodeCountByDay from './components/corrodeCountByDay'
+import WaterCountByAreaBar from "./components/waterCountByAreaBar";
+import WatchAlarmBar from "./components/watchAlarmBar";
+import WaterNote from "./components/waterNote";
+import AlarmCountByDept from "./components/AlarmCountByDept";
+import WaterCompare from "./components/waterCompare";
export default {
name: 'Dashboard',
@@ -113,29 +90,7 @@
WellCountByBfzt,
WellCountByType,
DeviceCount,
- DeviceCountByOnline,
- watchGasAlarmBar,
- alarmGasCountByDept,
- corrodeCountByDay
- },
- data() {
- return {
- listQuery1: {
- areaId: '110000',
- startTime: new Date().Format('yyyy-MM-dd'),
- endTime: new Date().Format('yyyy-MM-dd')
- }, // 分区用气量查询条件
- listQuery2: {
- areaId: '110000',
- startTime: new Date().Format('yyyy-MM-dd'),
- endTime: new Date().Format('yyyy-MM-dd')
- }, // 分区报警查询条件
- listQuery3: {
- areaId: '110000',
- startTime: new Date().Format('yyyy-MM-dd'),
- endTime: new Date().Format('yyyy-MM-dd')
- } // 分区报警查询条件
- }
+ DeviceCountByOnline
},
computed: {
...mapGetters([
@@ -159,6 +114,20 @@
state.needRefresh = needRefresh
}
},
+ data(){
+ return {
+ listQuery1:{
+ areaId:'110000',
+ startTime:new Date().Format('yyyy-MM-dd'),
+ endTime:new Date().Format('yyyy-MM-dd')
+ },// 分区用水量查询条件
+ listQuery2:{
+ areaId:'110000',
+ startTime:new Date().Format('yyyy-MM-dd'),
+ endTime:new Date().Format('yyyy-MM-dd')
+ } // 分区报警查询条件
+ }
+ },
watch: {
needRefresh(val) {
// 需要刷新
@@ -176,16 +145,12 @@
this.$store.dispatch('initWebSocket')
},
// 切换分区查询条件
- changeWaterQuery(listQuery1) {
+ changeWaterQuery(listQuery1){
this.listQuery1 = listQuery1
},
// 切换报警查询条件
- changeAlarmQuery(listQuery2) {
+ changeAlarmQuery(listQuery2){
this.listQuery2 = listQuery2
- },
- // 切换报警查询条件
- changeAlarmGasQuery(listQuery3) {
- this.listQuery3 = listQuery3
}
}
}
diff --git a/src/views/dashboard/index_bak2.vue b/src/views/dashboard/index_bak2.vue
deleted file mode 100644
index b562719..0000000
--- a/src/views/dashboard/index_bak2.vue
+++ /dev/null
@@ -1,176 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/gasDashboard/components/AlarmCountByDept.vue b/src/views/gasDashboard/components/AlarmCountByDept.vue
new file mode 100644
index 0000000..4395df9
--- /dev/null
+++ b/src/views/gasDashboard/components/AlarmCountByDept.vue
@@ -0,0 +1,79 @@
+
+
+
+
+
+
+
diff --git a/src/views/gasDashboard/components/AlarmNowList.vue b/src/views/gasDashboard/components/AlarmNowList.vue
new file mode 100644
index 0000000..890325f
--- /dev/null
+++ b/src/views/gasDashboard/components/AlarmNowList.vue
@@ -0,0 +1,35 @@
+
+
+
+
+
diff --git a/src/views/gasDashboard/components/DeviceCount.vue b/src/views/gasDashboard/components/DeviceCount.vue
new file mode 100644
index 0000000..30fa639
--- /dev/null
+++ b/src/views/gasDashboard/components/DeviceCount.vue
@@ -0,0 +1,64 @@
+
+
+
+
+
+
diff --git a/src/views/gasDashboard/components/FunctionArea.vue b/src/views/gasDashboard/components/FunctionArea.vue
new file mode 100644
index 0000000..4c05cee
--- /dev/null
+++ b/src/views/gasDashboard/components/FunctionArea.vue
@@ -0,0 +1,137 @@
+
+
+
+ 本年度
+ 本季度
+ 近30日
+ 近7日
+ 今日
+
+
+
+
+
+
+
diff --git a/src/views/gasDashboard/components/PanelGroup.vue b/src/views/gasDashboard/components/PanelGroup.vue
new file mode 100644
index 0000000..2232a6f
--- /dev/null
+++ b/src/views/gasDashboard/components/PanelGroup.vue
@@ -0,0 +1,249 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/gasDashboard/components/alarmGasCountByDept.vue b/src/views/gasDashboard/components/alarmGasCountByDept.vue
new file mode 100644
index 0000000..534d8f3
--- /dev/null
+++ b/src/views/gasDashboard/components/alarmGasCountByDept.vue
@@ -0,0 +1,73 @@
+
+
+
+
+
+
diff --git a/src/views/gasDashboard/components/corrodeCountByDay.vue b/src/views/gasDashboard/components/corrodeCountByDay.vue
new file mode 100644
index 0000000..8563956
--- /dev/null
+++ b/src/views/gasDashboard/components/corrodeCountByDay.vue
@@ -0,0 +1,84 @@
+
+
+
+
+
+
+
+
diff --git a/src/views/gasDashboard/components/watchAlarmBar.vue b/src/views/gasDashboard/components/watchAlarmBar.vue
new file mode 100644
index 0000000..dbf30c7
--- /dev/null
+++ b/src/views/gasDashboard/components/watchAlarmBar.vue
@@ -0,0 +1,208 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/gasDashboard/components/watchGasAlarmBar.vue b/src/views/gasDashboard/components/watchGasAlarmBar.vue
new file mode 100644
index 0000000..ae7266e
--- /dev/null
+++ b/src/views/gasDashboard/components/watchGasAlarmBar.vue
@@ -0,0 +1,150 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/gasDashboard/components/waterCompare.vue b/src/views/gasDashboard/components/waterCompare.vue
new file mode 100644
index 0000000..5f7d7c8
--- /dev/null
+++ b/src/views/gasDashboard/components/waterCompare.vue
@@ -0,0 +1,123 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/gasDashboard/components/waterCountByAreaBar.vue b/src/views/gasDashboard/components/waterCountByAreaBar.vue
new file mode 100644
index 0000000..a8006f7
--- /dev/null
+++ b/src/views/gasDashboard/components/waterCountByAreaBar.vue
@@ -0,0 +1,236 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/gasDashboard/components/waterCountByDay.vue b/src/views/gasDashboard/components/waterCountByDay.vue
new file mode 100644
index 0000000..ebb002c
--- /dev/null
+++ b/src/views/gasDashboard/components/waterCountByDay.vue
@@ -0,0 +1,157 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/gasDashboard/components/waterCountByDept.vue b/src/views/gasDashboard/components/waterCountByDept.vue
new file mode 100644
index 0000000..2258847
--- /dev/null
+++ b/src/views/gasDashboard/components/waterCountByDept.vue
@@ -0,0 +1,169 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/gasDashboard/components/waterNote.vue b/src/views/gasDashboard/components/waterNote.vue
new file mode 100644
index 0000000..752330a
--- /dev/null
+++ b/src/views/gasDashboard/components/waterNote.vue
@@ -0,0 +1,148 @@
+
+
+
+
+ 场区用气事记
+
+
+
+
+
+
+
{{index+1}}. {{item.content}}
+
+
{{index+1}}.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/gasDashboard/index.vue b/src/views/gasDashboard/index.vue
new file mode 100644
index 0000000..a9f13eb
--- /dev/null
+++ b/src/views/gasDashboard/index.vue
@@ -0,0 +1,199 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/gasOverview/cesiumViewer.vue b/src/views/gasOverview/cesiumViewer.vue
new file mode 100644
index 0000000..d787dfd
--- /dev/null
+++ b/src/views/gasOverview/cesiumViewer.vue
@@ -0,0 +1,31 @@
+
+
+
+
+
+
+
diff --git a/src/views/gasOverview/gasOverviewSimple.vue b/src/views/gasOverview/gasOverviewSimple.vue
new file mode 100644
index 0000000..bc2f67d
--- /dev/null
+++ b/src/views/gasOverview/gasOverviewSimple.vue
@@ -0,0 +1,1033 @@
+
+
+
+
+
+
+
+
+
+
+ 搜索
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row[column.value] }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row[column.value] }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/gasOverview/overview.vue b/src/views/gasOverview/overview.vue
new file mode 100644
index 0000000..936577c
--- /dev/null
+++ b/src/views/gasOverview/overview.vue
@@ -0,0 +1,802 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+
+ 显示全部井
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row[column.value] }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/gasOverview/overviewBj.vue b/src/views/gasOverview/overviewBj.vue
new file mode 100644
index 0000000..29c11ba
--- /dev/null
+++ b/src/views/gasOverview/overviewBj.vue
@@ -0,0 +1,1240 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+
+
+ 显示全部井
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row[column.value] }}
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/gasOverview/overviewCesium.vue b/src/views/gasOverview/overviewCesium.vue
new file mode 100644
index 0000000..9915f5f
--- /dev/null
+++ b/src/views/gasOverview/overviewCesium.vue
@@ -0,0 +1,1211 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+
+ 显示全部井
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row[column.value] }}
+
+
+
+
+
+
+
+
+
+
+
+
+