diff --git a/src/api/dashboard.js b/src/api/dashboard.js index e69de29..6ad37f1 100644 --- a/src/api/dashboard.js +++ b/src/api/dashboard.js @@ -0,0 +1,92 @@ +/** + * 井总览模块接口 + */ +import request from '@/utils/request' + +// 用水量、噪声统计数据 +export function getWatchStatistic() { + return request({ + url: 'waterStatistic/overview', + method: 'get' + }) +} +// 水表数量 +export function waterMeterCount() { + return request({ + url: 'waterMeterData/count', + method: 'get' + }) +} +// 阀门数量 +export function valveCount() { + return request({ + url: '/device/valve/count', + method: 'get' + }) +} + +// 查询一级分区各区用水量 +export function countByFirstArea(params) { + return request({ + url: 'waterStatistic/countByFirstArea', + method: 'get', + params + }) +} + +// 查询一级分区7日用水量 +export function countByDayFirst(params) { + return request({ + url: 'waterStatistic/countByDayFirst', + method: 'get', + params + }) +} + +// 查询二级分区各区用水量 +export function countBySecondArea(params) { + return request({ + url: 'waterStatistic/countBySecondArea', + method: 'get', + params + }) +} + +// 查询二级分区水表告警 +export function alarmBySecondArea(params) { + return request({ + url: 'waterStatistic/alarmBySecondArea', + method: 'get', + params + }) +} + +// 设备7日报警趋势 +export function alarmCountByDay(params) { + return request({ + url: 'waterStatistic/alarmCountByDay', + method: 'get', + params + }) +} + + +// 用水事记查询 +export function getNoteList() { + return request({ + // url: '/note/list', + url: 'waterMeterData/count', + method: 'get', + params + }) +} + +// 用水事记更新 +export function updateNoteList(params) { + return request({ + // url: '/note/update', + url: 'waterMeterData/count', + method: 'post', + params + }) +} diff --git a/src/api/dashboard.js b/src/api/dashboard.js index e69de29..6ad37f1 100644 --- a/src/api/dashboard.js +++ b/src/api/dashboard.js @@ -0,0 +1,92 @@ +/** + * 井总览模块接口 + */ +import request from '@/utils/request' + +// 用水量、噪声统计数据 +export function getWatchStatistic() { + return request({ + url: 'waterStatistic/overview', + method: 'get' + }) +} +// 水表数量 +export function waterMeterCount() { + return request({ + url: 'waterMeterData/count', + method: 'get' + }) +} +// 阀门数量 +export function valveCount() { + return request({ + url: '/device/valve/count', + method: 'get' + }) +} + +// 查询一级分区各区用水量 +export function countByFirstArea(params) { + return request({ + url: 'waterStatistic/countByFirstArea', + method: 'get', + params + }) +} + +// 查询一级分区7日用水量 +export function countByDayFirst(params) { + return request({ + url: 'waterStatistic/countByDayFirst', + method: 'get', + params + }) +} + +// 查询二级分区各区用水量 +export function countBySecondArea(params) { + return request({ + url: 'waterStatistic/countBySecondArea', + method: 'get', + params + }) +} + +// 查询二级分区水表告警 +export function alarmBySecondArea(params) { + return request({ + url: 'waterStatistic/alarmBySecondArea', + method: 'get', + params + }) +} + +// 设备7日报警趋势 +export function alarmCountByDay(params) { + return request({ + url: 'waterStatistic/alarmCountByDay', + method: 'get', + params + }) +} + + +// 用水事记查询 +export function getNoteList() { + return request({ + // url: '/note/list', + url: 'waterMeterData/count', + method: 'get', + params + }) +} + +// 用水事记更新 +export function updateNoteList(params) { + return request({ + // url: '/note/update', + url: 'waterMeterData/count', + method: 'post', + params + }) +} diff --git a/src/components/BigData/Card/index.vue b/src/components/BigData/Card/index.vue index d71e609..45359c9 100644 --- a/src/components/BigData/Card/index.vue +++ b/src/components/BigData/Card/index.vue @@ -10,6 +10,7 @@
{{ context }} + {{unit}}
@@ -39,6 +40,10 @@ color: { type: String, default: '#40c9c6' + }, + unit:{ + type: String, + default:'' } }, computed: { diff --git a/src/api/dashboard.js b/src/api/dashboard.js index e69de29..6ad37f1 100644 --- a/src/api/dashboard.js +++ b/src/api/dashboard.js @@ -0,0 +1,92 @@ +/** + * 井总览模块接口 + */ +import request from '@/utils/request' + +// 用水量、噪声统计数据 +export function getWatchStatistic() { + return request({ + url: 'waterStatistic/overview', + method: 'get' + }) +} +// 水表数量 +export function waterMeterCount() { + return request({ + url: 'waterMeterData/count', + method: 'get' + }) +} +// 阀门数量 +export function valveCount() { + return request({ + url: '/device/valve/count', + method: 'get' + }) +} + +// 查询一级分区各区用水量 +export function countByFirstArea(params) { + return request({ + url: 'waterStatistic/countByFirstArea', + method: 'get', + params + }) +} + +// 查询一级分区7日用水量 +export function countByDayFirst(params) { + return request({ + url: 'waterStatistic/countByDayFirst', + method: 'get', + params + }) +} + +// 查询二级分区各区用水量 +export function countBySecondArea(params) { + return request({ + url: 'waterStatistic/countBySecondArea', + method: 'get', + params + }) +} + +// 查询二级分区水表告警 +export function alarmBySecondArea(params) { + return request({ + url: 'waterStatistic/alarmBySecondArea', + method: 'get', + params + }) +} + +// 设备7日报警趋势 +export function alarmCountByDay(params) { + return request({ + url: 'waterStatistic/alarmCountByDay', + method: 'get', + params + }) +} + + +// 用水事记查询 +export function getNoteList() { + return request({ + // url: '/note/list', + url: 'waterMeterData/count', + method: 'get', + params + }) +} + +// 用水事记更新 +export function updateNoteList(params) { + return request({ + // url: '/note/update', + url: 'waterMeterData/count', + method: 'post', + params + }) +} diff --git a/src/components/BigData/Card/index.vue b/src/components/BigData/Card/index.vue index d71e609..45359c9 100644 --- a/src/components/BigData/Card/index.vue +++ b/src/components/BigData/Card/index.vue @@ -10,6 +10,7 @@
{{ context }} + {{unit}}
@@ -39,6 +40,10 @@ color: { type: String, default: '#40c9c6' + }, + unit:{ + type: String, + default:'' } }, computed: { diff --git a/src/components/BigData/Card1/index.vue b/src/components/BigData/Card1/index.vue index 030b2dc..aa46454 100644 --- a/src/components/BigData/Card1/index.vue +++ b/src/components/BigData/Card1/index.vue @@ -1,10 +1,11 @@ \ No newline at end of file diff --git a/src/api/dashboard.js b/src/api/dashboard.js index e69de29..6ad37f1 100644 --- a/src/api/dashboard.js +++ b/src/api/dashboard.js @@ -0,0 +1,92 @@ +/** + * 井总览模块接口 + */ +import request from '@/utils/request' + +// 用水量、噪声统计数据 +export function getWatchStatistic() { + return request({ + url: 'waterStatistic/overview', + method: 'get' + }) +} +// 水表数量 +export function waterMeterCount() { + return request({ + url: 'waterMeterData/count', + method: 'get' + }) +} +// 阀门数量 +export function valveCount() { + return request({ + url: '/device/valve/count', + method: 'get' + }) +} + +// 查询一级分区各区用水量 +export function countByFirstArea(params) { + return request({ + url: 'waterStatistic/countByFirstArea', + method: 'get', + params + }) +} + +// 查询一级分区7日用水量 +export function countByDayFirst(params) { + return request({ + url: 'waterStatistic/countByDayFirst', + method: 'get', + params + }) +} + +// 查询二级分区各区用水量 +export function countBySecondArea(params) { + return request({ + url: 'waterStatistic/countBySecondArea', + method: 'get', + params + }) +} + +// 查询二级分区水表告警 +export function alarmBySecondArea(params) { + return request({ + url: 'waterStatistic/alarmBySecondArea', + method: 'get', + params + }) +} + +// 设备7日报警趋势 +export function alarmCountByDay(params) { + return request({ + url: 'waterStatistic/alarmCountByDay', + method: 'get', + params + }) +} + + +// 用水事记查询 +export function getNoteList() { + return request({ + // url: '/note/list', + url: 'waterMeterData/count', + method: 'get', + params + }) +} + +// 用水事记更新 +export function updateNoteList(params) { + return request({ + // url: '/note/update', + url: 'waterMeterData/count', + method: 'post', + params + }) +} diff --git a/src/components/BigData/Card/index.vue b/src/components/BigData/Card/index.vue index d71e609..45359c9 100644 --- a/src/components/BigData/Card/index.vue +++ b/src/components/BigData/Card/index.vue @@ -10,6 +10,7 @@
{{ context }} + {{unit}}
@@ -39,6 +40,10 @@ color: { type: String, default: '#40c9c6' + }, + unit:{ + type: String, + default:'' } }, computed: { diff --git a/src/components/BigData/Card1/index.vue b/src/components/BigData/Card1/index.vue index 030b2dc..aa46454 100644 --- a/src/components/BigData/Card1/index.vue +++ b/src/components/BigData/Card1/index.vue @@ -1,10 +1,11 @@ \ No newline at end of file diff --git a/src/icons/svg/icon-valve.svg b/src/icons/svg/icon-valve.svg new file mode 100644 index 0000000..f5d96e2 --- /dev/null +++ b/src/icons/svg/icon-valve.svg @@ -0,0 +1,2 @@ + \ No newline at end of file diff --git a/src/api/dashboard.js b/src/api/dashboard.js index e69de29..6ad37f1 100644 --- a/src/api/dashboard.js +++ b/src/api/dashboard.js @@ -0,0 +1,92 @@ +/** + * 井总览模块接口 + */ +import request from '@/utils/request' + +// 用水量、噪声统计数据 +export function getWatchStatistic() { + return request({ + url: 'waterStatistic/overview', + method: 'get' + }) +} +// 水表数量 +export function waterMeterCount() { + return request({ + url: 'waterMeterData/count', + method: 'get' + }) +} +// 阀门数量 +export function valveCount() { + return request({ + url: '/device/valve/count', + method: 'get' + }) +} + +// 查询一级分区各区用水量 +export function countByFirstArea(params) { + return request({ + url: 'waterStatistic/countByFirstArea', + method: 'get', + params + }) +} + +// 查询一级分区7日用水量 +export function countByDayFirst(params) { + return request({ + url: 'waterStatistic/countByDayFirst', + method: 'get', + params + }) +} + +// 查询二级分区各区用水量 +export function countBySecondArea(params) { + return request({ + url: 'waterStatistic/countBySecondArea', + method: 'get', + params + }) +} + +// 查询二级分区水表告警 +export function alarmBySecondArea(params) { + return request({ + url: 'waterStatistic/alarmBySecondArea', + method: 'get', + params + }) +} + +// 设备7日报警趋势 +export function alarmCountByDay(params) { + return request({ + url: 'waterStatistic/alarmCountByDay', + method: 'get', + params + }) +} + + +// 用水事记查询 +export function getNoteList() { + return request({ + // url: '/note/list', + url: 'waterMeterData/count', + method: 'get', + params + }) +} + +// 用水事记更新 +export function updateNoteList(params) { + return request({ + // url: '/note/update', + url: 'waterMeterData/count', + method: 'post', + params + }) +} diff --git a/src/components/BigData/Card/index.vue b/src/components/BigData/Card/index.vue index d71e609..45359c9 100644 --- a/src/components/BigData/Card/index.vue +++ b/src/components/BigData/Card/index.vue @@ -10,6 +10,7 @@
{{ context }} + {{unit}}
@@ -39,6 +40,10 @@ color: { type: String, default: '#40c9c6' + }, + unit:{ + type: String, + default:'' } }, computed: { diff --git a/src/components/BigData/Card1/index.vue b/src/components/BigData/Card1/index.vue index 030b2dc..aa46454 100644 --- a/src/components/BigData/Card1/index.vue +++ b/src/components/BigData/Card1/index.vue @@ -1,10 +1,11 @@ \ No newline at end of file diff --git a/src/icons/svg/icon-valve.svg b/src/icons/svg/icon-valve.svg new file mode 100644 index 0000000..f5d96e2 --- /dev/null +++ b/src/icons/svg/icon-valve.svg @@ -0,0 +1,2 @@ + \ No newline at end of file diff --git a/src/views/dashboard/components/AlarmCountByDept.vue b/src/views/dashboard/components/AlarmCountByDept.vue new file mode 100644 index 0000000..91df51d --- /dev/null +++ b/src/views/dashboard/components/AlarmCountByDept.vue @@ -0,0 +1,80 @@ + + + + + diff --git a/src/api/dashboard.js b/src/api/dashboard.js index e69de29..6ad37f1 100644 --- a/src/api/dashboard.js +++ b/src/api/dashboard.js @@ -0,0 +1,92 @@ +/** + * 井总览模块接口 + */ +import request from '@/utils/request' + +// 用水量、噪声统计数据 +export function getWatchStatistic() { + return request({ + url: 'waterStatistic/overview', + method: 'get' + }) +} +// 水表数量 +export function waterMeterCount() { + return request({ + url: 'waterMeterData/count', + method: 'get' + }) +} +// 阀门数量 +export function valveCount() { + return request({ + url: '/device/valve/count', + method: 'get' + }) +} + +// 查询一级分区各区用水量 +export function countByFirstArea(params) { + return request({ + url: 'waterStatistic/countByFirstArea', + method: 'get', + params + }) +} + +// 查询一级分区7日用水量 +export function countByDayFirst(params) { + return request({ + url: 'waterStatistic/countByDayFirst', + method: 'get', + params + }) +} + +// 查询二级分区各区用水量 +export function countBySecondArea(params) { + return request({ + url: 'waterStatistic/countBySecondArea', + method: 'get', + params + }) +} + +// 查询二级分区水表告警 +export function alarmBySecondArea(params) { + return request({ + url: 'waterStatistic/alarmBySecondArea', + method: 'get', + params + }) +} + +// 设备7日报警趋势 +export function alarmCountByDay(params) { + return request({ + url: 'waterStatistic/alarmCountByDay', + method: 'get', + params + }) +} + + +// 用水事记查询 +export function getNoteList() { + return request({ + // url: '/note/list', + url: 'waterMeterData/count', + method: 'get', + params + }) +} + +// 用水事记更新 +export function updateNoteList(params) { + return request({ + // url: '/note/update', + url: 'waterMeterData/count', + method: 'post', + params + }) +} diff --git a/src/components/BigData/Card/index.vue b/src/components/BigData/Card/index.vue index d71e609..45359c9 100644 --- a/src/components/BigData/Card/index.vue +++ b/src/components/BigData/Card/index.vue @@ -10,6 +10,7 @@
{{ context }} + {{unit}}
@@ -39,6 +40,10 @@ color: { type: String, default: '#40c9c6' + }, + unit:{ + type: String, + default:'' } }, computed: { diff --git a/src/components/BigData/Card1/index.vue b/src/components/BigData/Card1/index.vue index 030b2dc..aa46454 100644 --- a/src/components/BigData/Card1/index.vue +++ b/src/components/BigData/Card1/index.vue @@ -1,10 +1,11 @@ \ No newline at end of file diff --git a/src/icons/svg/icon-valve.svg b/src/icons/svg/icon-valve.svg new file mode 100644 index 0000000..f5d96e2 --- /dev/null +++ b/src/icons/svg/icon-valve.svg @@ -0,0 +1,2 @@ + \ No newline at end of file diff --git a/src/views/dashboard/components/AlarmCountByDept.vue b/src/views/dashboard/components/AlarmCountByDept.vue new file mode 100644 index 0000000..91df51d --- /dev/null +++ b/src/views/dashboard/components/AlarmCountByDept.vue @@ -0,0 +1,80 @@ + + + + + diff --git a/src/views/dashboard/components/DeviceCount.vue b/src/views/dashboard/components/DeviceCount.vue index 6c36bcb..453fa09 100644 --- a/src/views/dashboard/components/DeviceCount.vue +++ b/src/views/dashboard/components/DeviceCount.vue @@ -1,5 +1,9 @@ \ No newline at end of file diff --git a/src/icons/svg/icon-valve.svg b/src/icons/svg/icon-valve.svg new file mode 100644 index 0000000..f5d96e2 --- /dev/null +++ b/src/icons/svg/icon-valve.svg @@ -0,0 +1,2 @@ + \ No newline at end of file diff --git a/src/views/dashboard/components/AlarmCountByDept.vue b/src/views/dashboard/components/AlarmCountByDept.vue new file mode 100644 index 0000000..91df51d --- /dev/null +++ b/src/views/dashboard/components/AlarmCountByDept.vue @@ -0,0 +1,80 @@ + + + + + diff --git a/src/views/dashboard/components/DeviceCount.vue b/src/views/dashboard/components/DeviceCount.vue index 6c36bcb..453fa09 100644 --- a/src/views/dashboard/components/DeviceCount.vue +++ b/src/views/dashboard/components/DeviceCount.vue @@ -1,5 +1,9 @@ + + diff --git a/src/api/dashboard.js b/src/api/dashboard.js index e69de29..6ad37f1 100644 --- a/src/api/dashboard.js +++ b/src/api/dashboard.js @@ -0,0 +1,92 @@ +/** + * 井总览模块接口 + */ +import request from '@/utils/request' + +// 用水量、噪声统计数据 +export function getWatchStatistic() { + return request({ + url: 'waterStatistic/overview', + method: 'get' + }) +} +// 水表数量 +export function waterMeterCount() { + return request({ + url: 'waterMeterData/count', + method: 'get' + }) +} +// 阀门数量 +export function valveCount() { + return request({ + url: '/device/valve/count', + method: 'get' + }) +} + +// 查询一级分区各区用水量 +export function countByFirstArea(params) { + return request({ + url: 'waterStatistic/countByFirstArea', + method: 'get', + params + }) +} + +// 查询一级分区7日用水量 +export function countByDayFirst(params) { + return request({ + url: 'waterStatistic/countByDayFirst', + method: 'get', + params + }) +} + +// 查询二级分区各区用水量 +export function countBySecondArea(params) { + return request({ + url: 'waterStatistic/countBySecondArea', + method: 'get', + params + }) +} + +// 查询二级分区水表告警 +export function alarmBySecondArea(params) { + return request({ + url: 'waterStatistic/alarmBySecondArea', + method: 'get', + params + }) +} + +// 设备7日报警趋势 +export function alarmCountByDay(params) { + return request({ + url: 'waterStatistic/alarmCountByDay', + method: 'get', + params + }) +} + + +// 用水事记查询 +export function getNoteList() { + return request({ + // url: '/note/list', + url: 'waterMeterData/count', + method: 'get', + params + }) +} + +// 用水事记更新 +export function updateNoteList(params) { + return request({ + // url: '/note/update', + url: 'waterMeterData/count', + method: 'post', + params + }) +} diff --git a/src/components/BigData/Card/index.vue b/src/components/BigData/Card/index.vue index d71e609..45359c9 100644 --- a/src/components/BigData/Card/index.vue +++ b/src/components/BigData/Card/index.vue @@ -10,6 +10,7 @@
{{ context }} + {{unit}}
@@ -39,6 +40,10 @@ color: { type: String, default: '#40c9c6' + }, + unit:{ + type: String, + default:'' } }, computed: { diff --git a/src/components/BigData/Card1/index.vue b/src/components/BigData/Card1/index.vue index 030b2dc..aa46454 100644 --- a/src/components/BigData/Card1/index.vue +++ b/src/components/BigData/Card1/index.vue @@ -1,10 +1,11 @@ \ No newline at end of file diff --git a/src/icons/svg/icon-valve.svg b/src/icons/svg/icon-valve.svg new file mode 100644 index 0000000..f5d96e2 --- /dev/null +++ b/src/icons/svg/icon-valve.svg @@ -0,0 +1,2 @@ + \ No newline at end of file diff --git a/src/views/dashboard/components/AlarmCountByDept.vue b/src/views/dashboard/components/AlarmCountByDept.vue new file mode 100644 index 0000000..91df51d --- /dev/null +++ b/src/views/dashboard/components/AlarmCountByDept.vue @@ -0,0 +1,80 @@ + + + + + diff --git a/src/views/dashboard/components/DeviceCount.vue b/src/views/dashboard/components/DeviceCount.vue index 6c36bcb..453fa09 100644 --- a/src/views/dashboard/components/DeviceCount.vue +++ b/src/views/dashboard/components/DeviceCount.vue @@ -1,5 +1,9 @@ + + diff --git a/src/views/dashboard/components/PanelGroup.vue b/src/views/dashboard/components/PanelGroup.vue index b72d289..7be90a7 100644 --- a/src/views/dashboard/components/PanelGroup.vue +++ b/src/views/dashboard/components/PanelGroup.vue @@ -1,12 +1,12 @@