@@ -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 315c83a..a8006f7 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 8d9861e..ebb002c 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 02e27cd..2258847 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 65cdec7..752330a 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 b562719..d51bfb7 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,6 +51,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -67,11 +87,14 @@
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 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'
export default {
name: 'Dashboard',
@@ -90,7 +113,29 @@
WellCountByBfzt,
WellCountByType,
DeviceCount,
- DeviceCountByOnline
+ 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')
+ } // 分区报警查询条件
+ }
},
computed: {
...mapGetters([
@@ -114,20 +159,6 @@
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) {
// 需要刷新
@@ -145,12 +176,16 @@
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
new file mode 100644
index 0000000..b562719
--- /dev/null
+++ b/src/views/dashboard/index_bak2.vue
@@ -0,0 +1,176 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/dataManage/dataManage.vue b/src/views/dataManage/dataManage.vue
index ea6926c..addba3d 100644
--- a/src/views/dataManage/dataManage.vue
+++ b/src/views/dataManage/dataManage.vue
@@ -7,13 +7,13 @@
-
+
-
+
@@ -25,9 +25,15 @@
-
+
+
+
+
+
+
+
@@ -40,6 +46,8 @@
import ListHarmfulData from './deviceData/listHarmfulData'
import ListTempData from './deviceData/listTempData'
import ListWellLocaData from './deviceData/listWellLocaData'
+import ListCorrodeData from './deviceData/listCorrodeData'
+import ListGasflowData from './deviceData/listGasflowData'
import { parseUrl } from '@/utils/parseutils'
import { hasPermission } from '@/utils/permission'
import ListNoiseData from './deviceData/listNoiseData'
@@ -47,7 +55,19 @@
export default {
name: 'DataManage',
- components: { ListWaterData, ListNoiseData, ListWellLocaData, ListTempData, ListHarmfulData, ListDigData, ListGasData, ListLiquidData, ListWellCoverData },
+ components: {
+ ListWaterData,
+ ListNoiseData,
+ ListWellLocaData,
+ ListTempData,
+ ListHarmfulData,
+ ListDigData,
+ ListGasData,
+ ListLiquidData,
+ ListWellCoverData,
+ ListCorrodeData,
+ ListGasflowData
+ },
data() {
return {
activeName: 'water'
@@ -90,11 +110,16 @@
this.$refs.digdatacomp.fetchData()
} else if (tab.name === 'wellloca') {
this.$refs.welllocadatacomp.fetchData()
- } else if (tab.name === 'waater') {
+ } else if (tab.name === 'water') {
this.$refs.waterdatacomp.fetchData()
+ } else if (tab.name === 'corrode') {
+ this.$refs.corrodetacomp.fetchData()
+ } else if (tab.name === 'gasflow') {
+ this.$refs.gasflowcomp.fetchData()
}
},
changeTab(deviceType) {
+ console.log(deviceType)
if (deviceType === '1') {
this.activeName = 'wellcover'
} else if (deviceType === '2') {
@@ -111,8 +136,12 @@
this.activeName = 'wellloca'
} else if (deviceType === '8') {
this.activeName = 'noise'
- } else if (deviceType === '10') {
+ } else if (deviceType === '9') {
this.activeName = 'water'
+ } else if (deviceType === '10') {
+ this.activeName = 'corrode'
+ } else if (deviceType === '11') {
+ this.activeName = 'gasflow'
}
},
// 计算那个是当前第一个tab
@@ -133,6 +162,10 @@
this.activeName = 'wellloca'
} else if (hasPermission('/noisedata/list')) {
this.activeName = 'noise'
+ } else if (hasPermission('/corrodedata/list')) {
+ this.activeName = 'corrode'
+ } else if (hasPermission('/gasflowdata/list')) {
+ this.activeName = 'gasflow'
} else {
this.activeName = 'water'
}
diff --git a/src/views/dataManage/deviceData/listCorrodeData.vue b/src/views/dataManage/deviceData/listCorrodeData.vue
new file mode 100644
index 0000000..fbb44a0
--- /dev/null
+++ b/src/views/dataManage/deviceData/listCorrodeData.vue
@@ -0,0 +1,281 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+
+
+
+
+
+
+
+
+ 导出记录
+
+
+
+
+
+
+
+ {{ scope.row[column.value] }}
+ {{ scope.row[column.value] }}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/package.json b/package.json
index be3e56e..a60e7b3 100644
--- a/package.json
+++ b/package.json
@@ -86,7 +86,7 @@
"vue-template-compiler": "2.5.17",
"webpack": "4.16.5",
"webpack-bundle-analyzer": "2.13.1",
- "webpack-cli": "3.1.0",
+ "webpack-cli": "^3.1.0",
"webpack-dev-server": "3.1.14",
"webpack-merge": "4.1.4"
},
diff --git a/src/views/alarmRule/components/editRule.vue b/src/views/alarmRule/components/editRule.vue
index 503102f..491f1e6 100644
--- a/src/views/alarmRule/components/editRule.vue
+++ b/src/views/alarmRule/components/editRule.vue
@@ -112,7 +112,7 @@
devcode: '', // 设备编号
deviceType: '', // 设备类型
highValue: '', // 告警上限
- lowValue: '0',// 告警下限
+ lowValue: '0', // 告警下限
warnValue: '' // 预警上限
}, // 表单
textMap: {
@@ -140,7 +140,7 @@
return true
},
showLowValue() {
- if (this.alarmRuleForm.deviceType === '13') {
+ if (this.alarmRuleForm.deviceType === '13' || this.alarmRuleForm.deviceType === '15') {
return true
} else {
return false
diff --git a/src/views/alarmRule/components/listRule.vue b/src/views/alarmRule/components/listRule.vue
index 3a8bb47..b5428ab 100644
--- a/src/views/alarmRule/components/listRule.vue
+++ b/src/views/alarmRule/components/listRule.vue
@@ -9,10 +9,11 @@
+ v-for="item in deviceTypeList"
+ :key="item.value"
+ :label="item.name"
+ :value="item.value"
+ />
@@ -76,7 +77,7 @@
import editRule from '@/views/alarmRule/components/editRule'
import { getDeviceType } from '@/api/device'
import { getAlarmRuleList, delAlarmRule } from '@/api/alarmRule'
-import AreaSelectTree from "@/components/AreaSelect/areaSelectTree";
+import AreaSelectTree from '@/components/AreaSelect/areaSelectTree'
export default {
name: 'ListRule',
@@ -86,8 +87,8 @@
listQuery: {
keywords: '',
status: '',
- deviceType:'',
- areaId:'',
+ deviceType: '',
+ areaId: '',
offset: 1,
limit: 20,
sort: '',
diff --git a/src/views/dashboard/components/AlarmCountByDept.vue b/src/views/dashboard/components/AlarmCountByDept.vue
index 4347727..4395df9 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 cbacc0f..30fa639 100644
--- a/src/views/dashboard/components/DeviceCount.vue
+++ b/src/views/dashboard/components/DeviceCount.vue
@@ -46,20 +46,17 @@
mounted() {
// TODO:待调试真接口
this.fetchData()
- // 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 }
- // ]
+ 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 }
+ ]
},
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 7cdf078..2232a6f 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,14 +58,7 @@
],
dataGroup: [
{
- title: '阀门数量',
- context: '--',
- icon: 'icon-valve',
- color: '#40c9c6',
- permission: '/device/list'
- },
- {
- title: '水表数量',
+ title: '气体流量计',
context: '--',
icon: 'icon-watch',
color: '#9694f7',
@@ -99,7 +92,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
new file mode 100644
index 0000000..534d8f3
--- /dev/null
+++ b/src/views/dashboard/components/alarmGasCountByDept.vue
@@ -0,0 +1,73 @@
+
+
+
+
+
+
diff --git a/src/views/dashboard/components/corrodeCountByDay.vue b/src/views/dashboard/components/corrodeCountByDay.vue
new file mode 100644
index 0000000..8563956
--- /dev/null
+++ b/src/views/dashboard/components/corrodeCountByDay.vue
@@ -0,0 +1,84 @@
+
+
+
+
+
+
+
+
diff --git a/src/views/dashboard/components/watchAlarmBar.vue b/src/views/dashboard/components/watchAlarmBar.vue
index 5fe709d..dbf30c7 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
new file mode 100644
index 0000000..ae7266e
--- /dev/null
+++ b/src/views/dashboard/components/watchGasAlarmBar.vue
@@ -0,0 +1,150 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/dashboard/components/waterCompare.vue b/src/views/dashboard/components/waterCompare.vue
index 6a62089..5f7d7c8 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 315c83a..a8006f7 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 8d9861e..ebb002c 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 02e27cd..2258847 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 65cdec7..752330a 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 b562719..d51bfb7 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,6 +51,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -67,11 +87,14 @@
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 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'
export default {
name: 'Dashboard',
@@ -90,7 +113,29 @@
WellCountByBfzt,
WellCountByType,
DeviceCount,
- DeviceCountByOnline
+ 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')
+ } // 分区报警查询条件
+ }
},
computed: {
...mapGetters([
@@ -114,20 +159,6 @@
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) {
// 需要刷新
@@ -145,12 +176,16 @@
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
new file mode 100644
index 0000000..b562719
--- /dev/null
+++ b/src/views/dashboard/index_bak2.vue
@@ -0,0 +1,176 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/dataManage/dataManage.vue b/src/views/dataManage/dataManage.vue
index ea6926c..addba3d 100644
--- a/src/views/dataManage/dataManage.vue
+++ b/src/views/dataManage/dataManage.vue
@@ -7,13 +7,13 @@
-
+
-
+
@@ -25,9 +25,15 @@
-
+
+
+
+
+
+
+
@@ -40,6 +46,8 @@
import ListHarmfulData from './deviceData/listHarmfulData'
import ListTempData from './deviceData/listTempData'
import ListWellLocaData from './deviceData/listWellLocaData'
+import ListCorrodeData from './deviceData/listCorrodeData'
+import ListGasflowData from './deviceData/listGasflowData'
import { parseUrl } from '@/utils/parseutils'
import { hasPermission } from '@/utils/permission'
import ListNoiseData from './deviceData/listNoiseData'
@@ -47,7 +55,19 @@
export default {
name: 'DataManage',
- components: { ListWaterData, ListNoiseData, ListWellLocaData, ListTempData, ListHarmfulData, ListDigData, ListGasData, ListLiquidData, ListWellCoverData },
+ components: {
+ ListWaterData,
+ ListNoiseData,
+ ListWellLocaData,
+ ListTempData,
+ ListHarmfulData,
+ ListDigData,
+ ListGasData,
+ ListLiquidData,
+ ListWellCoverData,
+ ListCorrodeData,
+ ListGasflowData
+ },
data() {
return {
activeName: 'water'
@@ -90,11 +110,16 @@
this.$refs.digdatacomp.fetchData()
} else if (tab.name === 'wellloca') {
this.$refs.welllocadatacomp.fetchData()
- } else if (tab.name === 'waater') {
+ } else if (tab.name === 'water') {
this.$refs.waterdatacomp.fetchData()
+ } else if (tab.name === 'corrode') {
+ this.$refs.corrodetacomp.fetchData()
+ } else if (tab.name === 'gasflow') {
+ this.$refs.gasflowcomp.fetchData()
}
},
changeTab(deviceType) {
+ console.log(deviceType)
if (deviceType === '1') {
this.activeName = 'wellcover'
} else if (deviceType === '2') {
@@ -111,8 +136,12 @@
this.activeName = 'wellloca'
} else if (deviceType === '8') {
this.activeName = 'noise'
- } else if (deviceType === '10') {
+ } else if (deviceType === '9') {
this.activeName = 'water'
+ } else if (deviceType === '10') {
+ this.activeName = 'corrode'
+ } else if (deviceType === '11') {
+ this.activeName = 'gasflow'
}
},
// 计算那个是当前第一个tab
@@ -133,6 +162,10 @@
this.activeName = 'wellloca'
} else if (hasPermission('/noisedata/list')) {
this.activeName = 'noise'
+ } else if (hasPermission('/corrodedata/list')) {
+ this.activeName = 'corrode'
+ } else if (hasPermission('/gasflowdata/list')) {
+ this.activeName = 'gasflow'
} else {
this.activeName = 'water'
}
diff --git a/src/views/dataManage/deviceData/listCorrodeData.vue b/src/views/dataManage/deviceData/listCorrodeData.vue
new file mode 100644
index 0000000..fbb44a0
--- /dev/null
+++ b/src/views/dataManage/deviceData/listCorrodeData.vue
@@ -0,0 +1,281 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+
+
+
+
+
+
+
+
+ 导出记录
+
+
+
+
+
+
+
+ {{ scope.row[column.value] }}
+ {{ scope.row[column.value] }}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/dataManage/deviceData/listGasflowData.vue b/src/views/dataManage/deviceData/listGasflowData.vue
new file mode 100644
index 0000000..e67cc7a
--- /dev/null
+++ b/src/views/dataManage/deviceData/listGasflowData.vue
@@ -0,0 +1,289 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+
+
+
+
+
+
+
+
+ 导出记录
+
+
+
+
+
+
+
+ {{ scope.row[column.value] }}
+ {{ scope.row[column.value] }}
+
+
+
+
+
+
+
+
+
+
+
+