diff --git a/src/api/dashboard.js b/src/api/dashboard.js index e69de29..0a4ddfc 100644 --- a/src/api/dashboard.js +++ b/src/api/dashboard.js @@ -0,0 +1,73 @@ +/** + * 井总览模块接口 + */ +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: 'waterMeterData/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 + }) +} + + diff --git a/src/api/dashboard.js b/src/api/dashboard.js index e69de29..0a4ddfc 100644 --- a/src/api/dashboard.js +++ b/src/api/dashboard.js @@ -0,0 +1,73 @@ +/** + * 井总览模块接口 + */ +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: 'waterMeterData/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 + }) +} + + 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..0a4ddfc 100644 --- a/src/api/dashboard.js +++ b/src/api/dashboard.js @@ -0,0 +1,73 @@ +/** + * 井总览模块接口 + */ +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: 'waterMeterData/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 + }) +} + + 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..0a4ddfc 100644 --- a/src/api/dashboard.js +++ b/src/api/dashboard.js @@ -0,0 +1,73 @@ +/** + * 井总览模块接口 + */ +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: 'waterMeterData/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 + }) +} + + 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..0a4ddfc 100644 --- a/src/api/dashboard.js +++ b/src/api/dashboard.js @@ -0,0 +1,73 @@ +/** + * 井总览模块接口 + */ +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: 'waterMeterData/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 + }) +} + + 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/PanelGroup.vue b/src/views/dashboard/components/PanelGroup.vue index b72d289..332cbf9 100644 --- a/src/views/dashboard/components/PanelGroup.vue +++ b/src/views/dashboard/components/PanelGroup.vue @@ -1,12 +1,12 @@