diff --git a/src/api/cityManage.js b/src/api/cityManage.js
index 04cfea4..d8a790d 100644
--- a/src/api/cityManage.js
+++ b/src/api/cityManage.js
@@ -1,6 +1,6 @@
import request from '@/utils/request'
import config from '@/utils/baseConfig'
-
+import qs from 'qs'
// 城市治理接口
// 城市基本信息:area面积,region区域数量,population人口,street街道数量,community社区数量,grid网格数量
export function fetchBaseInfo (type) {
@@ -19,6 +19,24 @@
})
}
+// 设备数量
+export function fetchDeviceCount (type) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/iot/deviceCountByType',
+ method: 'get'
+ })
+}
+
+// 设备在线情况
+export function fetchDeviceState (type) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/iot/deviceStateByType',
+ method: 'get'
+ })
+}
+
// 交通设施建设数量
export function fetchTrafficCount (type) {
return request({
@@ -49,7 +67,7 @@
// 特殊人群人数
export function fetchSpecial (type) {
return request({
- // baseURL: config.baseUrl,
+ baseURL: config.baseUrl,
url: '/population/special',
method: 'get'
})
@@ -170,6 +188,18 @@
})
}
+// 7天收入
+export function smartParkIncomeByDay (params) {
+ return request({
+ baseURL: config.baseUrl,
+ url: 'smartPark/incomeByDay',
+ method: 'get',
+ params,
+ paramsSerializer: params => {
+ return qs.stringify(params, { indices: false })
+ }
+ })
+}
// 日流量统计
export function fetchParkFlowByDay () {
return request({
@@ -200,3 +230,29 @@
method: 'get'
})
}
+
+// 管网报警
+export function pipeAlarmByType (params) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/pipe/alarmByType',
+ method: 'get',
+ params,
+ paramsSerializer: params => {
+ return qs.stringify(params, { indices: false })
+ }
+ })
+}
+
+// 管网7日报警
+export function fetchAlarmCount (params) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/pipe/alarmByDay',
+ method: 'get',
+ params,
+ paramsSerializer: params => {
+ return qs.stringify(params, { indices: false })
+ }
+ })
+}
diff --git a/src/api/cityManage.js b/src/api/cityManage.js
index 04cfea4..d8a790d 100644
--- a/src/api/cityManage.js
+++ b/src/api/cityManage.js
@@ -1,6 +1,6 @@
import request from '@/utils/request'
import config from '@/utils/baseConfig'
-
+import qs from 'qs'
// 城市治理接口
// 城市基本信息:area面积,region区域数量,population人口,street街道数量,community社区数量,grid网格数量
export function fetchBaseInfo (type) {
@@ -19,6 +19,24 @@
})
}
+// 设备数量
+export function fetchDeviceCount (type) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/iot/deviceCountByType',
+ method: 'get'
+ })
+}
+
+// 设备在线情况
+export function fetchDeviceState (type) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/iot/deviceStateByType',
+ method: 'get'
+ })
+}
+
// 交通设施建设数量
export function fetchTrafficCount (type) {
return request({
@@ -49,7 +67,7 @@
// 特殊人群人数
export function fetchSpecial (type) {
return request({
- // baseURL: config.baseUrl,
+ baseURL: config.baseUrl,
url: '/population/special',
method: 'get'
})
@@ -170,6 +188,18 @@
})
}
+// 7天收入
+export function smartParkIncomeByDay (params) {
+ return request({
+ baseURL: config.baseUrl,
+ url: 'smartPark/incomeByDay',
+ method: 'get',
+ params,
+ paramsSerializer: params => {
+ return qs.stringify(params, { indices: false })
+ }
+ })
+}
// 日流量统计
export function fetchParkFlowByDay () {
return request({
@@ -200,3 +230,29 @@
method: 'get'
})
}
+
+// 管网报警
+export function pipeAlarmByType (params) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/pipe/alarmByType',
+ method: 'get',
+ params,
+ paramsSerializer: params => {
+ return qs.stringify(params, { indices: false })
+ }
+ })
+}
+
+// 管网7日报警
+export function fetchAlarmCount (params) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/pipe/alarmByDay',
+ method: 'get',
+ params,
+ paramsSerializer: params => {
+ return qs.stringify(params, { indices: false })
+ }
+ })
+}
diff --git a/src/api/ecard.js b/src/api/ecard.js
index 0141aa5..5a78023 100644
--- a/src/api/ecard.js
+++ b/src/api/ecard.js
@@ -46,3 +46,34 @@
}
})
}
+
+// 今日就餐人次 today;就餐卡放放数 card;食堂总数 canteen
+export function fetchCanteenInfo (type) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/canteen/' + type,
+ method: 'get'
+ })
+}
+
+// 各食堂每日用餐数量三餐
+export function getCanteenStatistics (params) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/canteen/statistics',
+ method: 'get',
+ params,
+ paramsSerializer: params => {
+ return qs.stringify(params, { indices: false })
+ }
+ })
+}
+
+// 一卡通情况
+export function fetchCardInfo (type) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/card/' + type,
+ method: 'get'
+ })
+}
diff --git a/src/api/cityManage.js b/src/api/cityManage.js
index 04cfea4..d8a790d 100644
--- a/src/api/cityManage.js
+++ b/src/api/cityManage.js
@@ -1,6 +1,6 @@
import request from '@/utils/request'
import config from '@/utils/baseConfig'
-
+import qs from 'qs'
// 城市治理接口
// 城市基本信息:area面积,region区域数量,population人口,street街道数量,community社区数量,grid网格数量
export function fetchBaseInfo (type) {
@@ -19,6 +19,24 @@
})
}
+// 设备数量
+export function fetchDeviceCount (type) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/iot/deviceCountByType',
+ method: 'get'
+ })
+}
+
+// 设备在线情况
+export function fetchDeviceState (type) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/iot/deviceStateByType',
+ method: 'get'
+ })
+}
+
// 交通设施建设数量
export function fetchTrafficCount (type) {
return request({
@@ -49,7 +67,7 @@
// 特殊人群人数
export function fetchSpecial (type) {
return request({
- // baseURL: config.baseUrl,
+ baseURL: config.baseUrl,
url: '/population/special',
method: 'get'
})
@@ -170,6 +188,18 @@
})
}
+// 7天收入
+export function smartParkIncomeByDay (params) {
+ return request({
+ baseURL: config.baseUrl,
+ url: 'smartPark/incomeByDay',
+ method: 'get',
+ params,
+ paramsSerializer: params => {
+ return qs.stringify(params, { indices: false })
+ }
+ })
+}
// 日流量统计
export function fetchParkFlowByDay () {
return request({
@@ -200,3 +230,29 @@
method: 'get'
})
}
+
+// 管网报警
+export function pipeAlarmByType (params) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/pipe/alarmByType',
+ method: 'get',
+ params,
+ paramsSerializer: params => {
+ return qs.stringify(params, { indices: false })
+ }
+ })
+}
+
+// 管网7日报警
+export function fetchAlarmCount (params) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/pipe/alarmByDay',
+ method: 'get',
+ params,
+ paramsSerializer: params => {
+ return qs.stringify(params, { indices: false })
+ }
+ })
+}
diff --git a/src/api/ecard.js b/src/api/ecard.js
index 0141aa5..5a78023 100644
--- a/src/api/ecard.js
+++ b/src/api/ecard.js
@@ -46,3 +46,34 @@
}
})
}
+
+// 今日就餐人次 today;就餐卡放放数 card;食堂总数 canteen
+export function fetchCanteenInfo (type) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/canteen/' + type,
+ method: 'get'
+ })
+}
+
+// 各食堂每日用餐数量三餐
+export function getCanteenStatistics (params) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/canteen/statistics',
+ method: 'get',
+ params,
+ paramsSerializer: params => {
+ return qs.stringify(params, { indices: false })
+ }
+ })
+}
+
+// 一卡通情况
+export function fetchCardInfo (type) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/card/' + type,
+ method: 'get'
+ })
+}
diff --git a/src/utils/baseConfig.js b/src/utils/baseConfig.js
index 3e39af2..7a1d425 100644
--- a/src/utils/baseConfig.js
+++ b/src/utils/baseConfig.js
@@ -1,5 +1,6 @@
export default {
jingyiService: 'http://11.100.6.5:8084/', // 精一的后台地址
+ // baseUrl: 'http://192.168.1.108:11307/api' // 运行监测的后台地址
baseUrl: 'http://11.100.6.149:8080/monitor/api' // 运行监测的后台地址
// baseUrl: 'http://192.168.14.104:8085' // 运行监测的后台地址
}
diff --git a/src/api/cityManage.js b/src/api/cityManage.js
index 04cfea4..d8a790d 100644
--- a/src/api/cityManage.js
+++ b/src/api/cityManage.js
@@ -1,6 +1,6 @@
import request from '@/utils/request'
import config from '@/utils/baseConfig'
-
+import qs from 'qs'
// 城市治理接口
// 城市基本信息:area面积,region区域数量,population人口,street街道数量,community社区数量,grid网格数量
export function fetchBaseInfo (type) {
@@ -19,6 +19,24 @@
})
}
+// 设备数量
+export function fetchDeviceCount (type) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/iot/deviceCountByType',
+ method: 'get'
+ })
+}
+
+// 设备在线情况
+export function fetchDeviceState (type) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/iot/deviceStateByType',
+ method: 'get'
+ })
+}
+
// 交通设施建设数量
export function fetchTrafficCount (type) {
return request({
@@ -49,7 +67,7 @@
// 特殊人群人数
export function fetchSpecial (type) {
return request({
- // baseURL: config.baseUrl,
+ baseURL: config.baseUrl,
url: '/population/special',
method: 'get'
})
@@ -170,6 +188,18 @@
})
}
+// 7天收入
+export function smartParkIncomeByDay (params) {
+ return request({
+ baseURL: config.baseUrl,
+ url: 'smartPark/incomeByDay',
+ method: 'get',
+ params,
+ paramsSerializer: params => {
+ return qs.stringify(params, { indices: false })
+ }
+ })
+}
// 日流量统计
export function fetchParkFlowByDay () {
return request({
@@ -200,3 +230,29 @@
method: 'get'
})
}
+
+// 管网报警
+export function pipeAlarmByType (params) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/pipe/alarmByType',
+ method: 'get',
+ params,
+ paramsSerializer: params => {
+ return qs.stringify(params, { indices: false })
+ }
+ })
+}
+
+// 管网7日报警
+export function fetchAlarmCount (params) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/pipe/alarmByDay',
+ method: 'get',
+ params,
+ paramsSerializer: params => {
+ return qs.stringify(params, { indices: false })
+ }
+ })
+}
diff --git a/src/api/ecard.js b/src/api/ecard.js
index 0141aa5..5a78023 100644
--- a/src/api/ecard.js
+++ b/src/api/ecard.js
@@ -46,3 +46,34 @@
}
})
}
+
+// 今日就餐人次 today;就餐卡放放数 card;食堂总数 canteen
+export function fetchCanteenInfo (type) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/canteen/' + type,
+ method: 'get'
+ })
+}
+
+// 各食堂每日用餐数量三餐
+export function getCanteenStatistics (params) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/canteen/statistics',
+ method: 'get',
+ params,
+ paramsSerializer: params => {
+ return qs.stringify(params, { indices: false })
+ }
+ })
+}
+
+// 一卡通情况
+export function fetchCardInfo (type) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/card/' + type,
+ method: 'get'
+ })
+}
diff --git a/src/utils/baseConfig.js b/src/utils/baseConfig.js
index 3e39af2..7a1d425 100644
--- a/src/utils/baseConfig.js
+++ b/src/utils/baseConfig.js
@@ -1,5 +1,6 @@
export default {
jingyiService: 'http://11.100.6.5:8084/', // 精一的后台地址
+ // baseUrl: 'http://192.168.1.108:11307/api' // 运行监测的后台地址
baseUrl: 'http://11.100.6.149:8080/monitor/api' // 运行监测的后台地址
// baseUrl: 'http://192.168.14.104:8085' // 运行监测的后台地址
}
diff --git a/src/views/cityConstruction/components/iot/components/deviceCountBar.vue b/src/views/cityConstruction/components/iot/components/deviceCountBar.vue
index bb748c8..c84de90 100644
--- a/src/views/cityConstruction/components/iot/components/deviceCountBar.vue
+++ b/src/views/cityConstruction/components/iot/components/deviceCountBar.vue
@@ -20,7 +20,7 @@
diff --git a/src/api/cityManage.js b/src/api/cityManage.js
index 04cfea4..d8a790d 100644
--- a/src/api/cityManage.js
+++ b/src/api/cityManage.js
@@ -1,6 +1,6 @@
import request from '@/utils/request'
import config from '@/utils/baseConfig'
-
+import qs from 'qs'
// 城市治理接口
// 城市基本信息:area面积,region区域数量,population人口,street街道数量,community社区数量,grid网格数量
export function fetchBaseInfo (type) {
@@ -19,6 +19,24 @@
})
}
+// 设备数量
+export function fetchDeviceCount (type) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/iot/deviceCountByType',
+ method: 'get'
+ })
+}
+
+// 设备在线情况
+export function fetchDeviceState (type) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/iot/deviceStateByType',
+ method: 'get'
+ })
+}
+
// 交通设施建设数量
export function fetchTrafficCount (type) {
return request({
@@ -49,7 +67,7 @@
// 特殊人群人数
export function fetchSpecial (type) {
return request({
- // baseURL: config.baseUrl,
+ baseURL: config.baseUrl,
url: '/population/special',
method: 'get'
})
@@ -170,6 +188,18 @@
})
}
+// 7天收入
+export function smartParkIncomeByDay (params) {
+ return request({
+ baseURL: config.baseUrl,
+ url: 'smartPark/incomeByDay',
+ method: 'get',
+ params,
+ paramsSerializer: params => {
+ return qs.stringify(params, { indices: false })
+ }
+ })
+}
// 日流量统计
export function fetchParkFlowByDay () {
return request({
@@ -200,3 +230,29 @@
method: 'get'
})
}
+
+// 管网报警
+export function pipeAlarmByType (params) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/pipe/alarmByType',
+ method: 'get',
+ params,
+ paramsSerializer: params => {
+ return qs.stringify(params, { indices: false })
+ }
+ })
+}
+
+// 管网7日报警
+export function fetchAlarmCount (params) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/pipe/alarmByDay',
+ method: 'get',
+ params,
+ paramsSerializer: params => {
+ return qs.stringify(params, { indices: false })
+ }
+ })
+}
diff --git a/src/api/ecard.js b/src/api/ecard.js
index 0141aa5..5a78023 100644
--- a/src/api/ecard.js
+++ b/src/api/ecard.js
@@ -46,3 +46,34 @@
}
})
}
+
+// 今日就餐人次 today;就餐卡放放数 card;食堂总数 canteen
+export function fetchCanteenInfo (type) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/canteen/' + type,
+ method: 'get'
+ })
+}
+
+// 各食堂每日用餐数量三餐
+export function getCanteenStatistics (params) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/canteen/statistics',
+ method: 'get',
+ params,
+ paramsSerializer: params => {
+ return qs.stringify(params, { indices: false })
+ }
+ })
+}
+
+// 一卡通情况
+export function fetchCardInfo (type) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/card/' + type,
+ method: 'get'
+ })
+}
diff --git a/src/utils/baseConfig.js b/src/utils/baseConfig.js
index 3e39af2..7a1d425 100644
--- a/src/utils/baseConfig.js
+++ b/src/utils/baseConfig.js
@@ -1,5 +1,6 @@
export default {
jingyiService: 'http://11.100.6.5:8084/', // 精一的后台地址
+ // baseUrl: 'http://192.168.1.108:11307/api' // 运行监测的后台地址
baseUrl: 'http://11.100.6.149:8080/monitor/api' // 运行监测的后台地址
// baseUrl: 'http://192.168.14.104:8085' // 运行监测的后台地址
}
diff --git a/src/views/cityConstruction/components/iot/components/deviceCountBar.vue b/src/views/cityConstruction/components/iot/components/deviceCountBar.vue
index bb748c8..c84de90 100644
--- a/src/views/cityConstruction/components/iot/components/deviceCountBar.vue
+++ b/src/views/cityConstruction/components/iot/components/deviceCountBar.vue
@@ -20,7 +20,7 @@
diff --git a/src/views/cityManage/components/pipeAlarm/pipeAlarm.vue b/src/views/cityManage/components/pipeAlarm/pipeAlarm.vue
index 4f347a7..173ca2b 100644
--- a/src/views/cityManage/components/pipeAlarm/pipeAlarm.vue
+++ b/src/views/cityManage/components/pipeAlarm/pipeAlarm.vue
@@ -27,7 +27,7 @@
import PipeAlarmBar from './components/pipeAlarmBar'
import PipeAlarmPie from './components/pipeAlarmPie'
import PipeAlarmLine from './components/pipeAlarmLine'
-import PipeAlarmCount from "./components/pipeAlarmCount";
+import PipeAlarmCount from './components/pipeAlarmCount'
export default {
name: 'PipeAlarm',
components: {PipeAlarmCount, PipeAlarmLine, PipeAlarmPie, PipeAlarmBar},
diff --git a/src/api/cityManage.js b/src/api/cityManage.js
index 04cfea4..d8a790d 100644
--- a/src/api/cityManage.js
+++ b/src/api/cityManage.js
@@ -1,6 +1,6 @@
import request from '@/utils/request'
import config from '@/utils/baseConfig'
-
+import qs from 'qs'
// 城市治理接口
// 城市基本信息:area面积,region区域数量,population人口,street街道数量,community社区数量,grid网格数量
export function fetchBaseInfo (type) {
@@ -19,6 +19,24 @@
})
}
+// 设备数量
+export function fetchDeviceCount (type) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/iot/deviceCountByType',
+ method: 'get'
+ })
+}
+
+// 设备在线情况
+export function fetchDeviceState (type) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/iot/deviceStateByType',
+ method: 'get'
+ })
+}
+
// 交通设施建设数量
export function fetchTrafficCount (type) {
return request({
@@ -49,7 +67,7 @@
// 特殊人群人数
export function fetchSpecial (type) {
return request({
- // baseURL: config.baseUrl,
+ baseURL: config.baseUrl,
url: '/population/special',
method: 'get'
})
@@ -170,6 +188,18 @@
})
}
+// 7天收入
+export function smartParkIncomeByDay (params) {
+ return request({
+ baseURL: config.baseUrl,
+ url: 'smartPark/incomeByDay',
+ method: 'get',
+ params,
+ paramsSerializer: params => {
+ return qs.stringify(params, { indices: false })
+ }
+ })
+}
// 日流量统计
export function fetchParkFlowByDay () {
return request({
@@ -200,3 +230,29 @@
method: 'get'
})
}
+
+// 管网报警
+export function pipeAlarmByType (params) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/pipe/alarmByType',
+ method: 'get',
+ params,
+ paramsSerializer: params => {
+ return qs.stringify(params, { indices: false })
+ }
+ })
+}
+
+// 管网7日报警
+export function fetchAlarmCount (params) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/pipe/alarmByDay',
+ method: 'get',
+ params,
+ paramsSerializer: params => {
+ return qs.stringify(params, { indices: false })
+ }
+ })
+}
diff --git a/src/api/ecard.js b/src/api/ecard.js
index 0141aa5..5a78023 100644
--- a/src/api/ecard.js
+++ b/src/api/ecard.js
@@ -46,3 +46,34 @@
}
})
}
+
+// 今日就餐人次 today;就餐卡放放数 card;食堂总数 canteen
+export function fetchCanteenInfo (type) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/canteen/' + type,
+ method: 'get'
+ })
+}
+
+// 各食堂每日用餐数量三餐
+export function getCanteenStatistics (params) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/canteen/statistics',
+ method: 'get',
+ params,
+ paramsSerializer: params => {
+ return qs.stringify(params, { indices: false })
+ }
+ })
+}
+
+// 一卡通情况
+export function fetchCardInfo (type) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/card/' + type,
+ method: 'get'
+ })
+}
diff --git a/src/utils/baseConfig.js b/src/utils/baseConfig.js
index 3e39af2..7a1d425 100644
--- a/src/utils/baseConfig.js
+++ b/src/utils/baseConfig.js
@@ -1,5 +1,6 @@
export default {
jingyiService: 'http://11.100.6.5:8084/', // 精一的后台地址
+ // baseUrl: 'http://192.168.1.108:11307/api' // 运行监测的后台地址
baseUrl: 'http://11.100.6.149:8080/monitor/api' // 运行监测的后台地址
// baseUrl: 'http://192.168.14.104:8085' // 运行监测的后台地址
}
diff --git a/src/views/cityConstruction/components/iot/components/deviceCountBar.vue b/src/views/cityConstruction/components/iot/components/deviceCountBar.vue
index bb748c8..c84de90 100644
--- a/src/views/cityConstruction/components/iot/components/deviceCountBar.vue
+++ b/src/views/cityConstruction/components/iot/components/deviceCountBar.vue
@@ -20,7 +20,7 @@
diff --git a/src/views/cityManage/components/pipeAlarm/pipeAlarm.vue b/src/views/cityManage/components/pipeAlarm/pipeAlarm.vue
index 4f347a7..173ca2b 100644
--- a/src/views/cityManage/components/pipeAlarm/pipeAlarm.vue
+++ b/src/views/cityManage/components/pipeAlarm/pipeAlarm.vue
@@ -27,7 +27,7 @@
import PipeAlarmBar from './components/pipeAlarmBar'
import PipeAlarmPie from './components/pipeAlarmPie'
import PipeAlarmLine from './components/pipeAlarmLine'
-import PipeAlarmCount from "./components/pipeAlarmCount";
+import PipeAlarmCount from './components/pipeAlarmCount'
export default {
name: 'PipeAlarm',
components: {PipeAlarmCount, PipeAlarmLine, PipeAlarmPie, PipeAlarmBar},
diff --git a/src/views/socialLive/components/canteen/components/canteenCount.vue b/src/views/socialLive/components/canteen/components/canteenCount.vue
index 9470d04..9e8c619 100644
--- a/src/views/socialLive/components/canteen/components/canteenCount.vue
+++ b/src/views/socialLive/components/canteen/components/canteenCount.vue
@@ -6,28 +6,57 @@
diff --git a/src/api/cityManage.js b/src/api/cityManage.js
index 04cfea4..d8a790d 100644
--- a/src/api/cityManage.js
+++ b/src/api/cityManage.js
@@ -1,6 +1,6 @@
import request from '@/utils/request'
import config from '@/utils/baseConfig'
-
+import qs from 'qs'
// 城市治理接口
// 城市基本信息:area面积,region区域数量,population人口,street街道数量,community社区数量,grid网格数量
export function fetchBaseInfo (type) {
@@ -19,6 +19,24 @@
})
}
+// 设备数量
+export function fetchDeviceCount (type) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/iot/deviceCountByType',
+ method: 'get'
+ })
+}
+
+// 设备在线情况
+export function fetchDeviceState (type) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/iot/deviceStateByType',
+ method: 'get'
+ })
+}
+
// 交通设施建设数量
export function fetchTrafficCount (type) {
return request({
@@ -49,7 +67,7 @@
// 特殊人群人数
export function fetchSpecial (type) {
return request({
- // baseURL: config.baseUrl,
+ baseURL: config.baseUrl,
url: '/population/special',
method: 'get'
})
@@ -170,6 +188,18 @@
})
}
+// 7天收入
+export function smartParkIncomeByDay (params) {
+ return request({
+ baseURL: config.baseUrl,
+ url: 'smartPark/incomeByDay',
+ method: 'get',
+ params,
+ paramsSerializer: params => {
+ return qs.stringify(params, { indices: false })
+ }
+ })
+}
// 日流量统计
export function fetchParkFlowByDay () {
return request({
@@ -200,3 +230,29 @@
method: 'get'
})
}
+
+// 管网报警
+export function pipeAlarmByType (params) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/pipe/alarmByType',
+ method: 'get',
+ params,
+ paramsSerializer: params => {
+ return qs.stringify(params, { indices: false })
+ }
+ })
+}
+
+// 管网7日报警
+export function fetchAlarmCount (params) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/pipe/alarmByDay',
+ method: 'get',
+ params,
+ paramsSerializer: params => {
+ return qs.stringify(params, { indices: false })
+ }
+ })
+}
diff --git a/src/api/ecard.js b/src/api/ecard.js
index 0141aa5..5a78023 100644
--- a/src/api/ecard.js
+++ b/src/api/ecard.js
@@ -46,3 +46,34 @@
}
})
}
+
+// 今日就餐人次 today;就餐卡放放数 card;食堂总数 canteen
+export function fetchCanteenInfo (type) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/canteen/' + type,
+ method: 'get'
+ })
+}
+
+// 各食堂每日用餐数量三餐
+export function getCanteenStatistics (params) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/canteen/statistics',
+ method: 'get',
+ params,
+ paramsSerializer: params => {
+ return qs.stringify(params, { indices: false })
+ }
+ })
+}
+
+// 一卡通情况
+export function fetchCardInfo (type) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/card/' + type,
+ method: 'get'
+ })
+}
diff --git a/src/utils/baseConfig.js b/src/utils/baseConfig.js
index 3e39af2..7a1d425 100644
--- a/src/utils/baseConfig.js
+++ b/src/utils/baseConfig.js
@@ -1,5 +1,6 @@
export default {
jingyiService: 'http://11.100.6.5:8084/', // 精一的后台地址
+ // baseUrl: 'http://192.168.1.108:11307/api' // 运行监测的后台地址
baseUrl: 'http://11.100.6.149:8080/monitor/api' // 运行监测的后台地址
// baseUrl: 'http://192.168.14.104:8085' // 运行监测的后台地址
}
diff --git a/src/views/cityConstruction/components/iot/components/deviceCountBar.vue b/src/views/cityConstruction/components/iot/components/deviceCountBar.vue
index bb748c8..c84de90 100644
--- a/src/views/cityConstruction/components/iot/components/deviceCountBar.vue
+++ b/src/views/cityConstruction/components/iot/components/deviceCountBar.vue
@@ -20,7 +20,7 @@
diff --git a/src/views/cityManage/components/pipeAlarm/pipeAlarm.vue b/src/views/cityManage/components/pipeAlarm/pipeAlarm.vue
index 4f347a7..173ca2b 100644
--- a/src/views/cityManage/components/pipeAlarm/pipeAlarm.vue
+++ b/src/views/cityManage/components/pipeAlarm/pipeAlarm.vue
@@ -27,7 +27,7 @@
import PipeAlarmBar from './components/pipeAlarmBar'
import PipeAlarmPie from './components/pipeAlarmPie'
import PipeAlarmLine from './components/pipeAlarmLine'
-import PipeAlarmCount from "./components/pipeAlarmCount";
+import PipeAlarmCount from './components/pipeAlarmCount'
export default {
name: 'PipeAlarm',
components: {PipeAlarmCount, PipeAlarmLine, PipeAlarmPie, PipeAlarmBar},
diff --git a/src/views/socialLive/components/canteen/components/canteenCount.vue b/src/views/socialLive/components/canteen/components/canteenCount.vue
index 9470d04..9e8c619 100644
--- a/src/views/socialLive/components/canteen/components/canteenCount.vue
+++ b/src/views/socialLive/components/canteen/components/canteenCount.vue
@@ -6,28 +6,57 @@
diff --git a/src/views/socialLive/components/canteen/components/canteenDetail.vue b/src/views/socialLive/components/canteen/components/canteenDetail.vue
index f922f2b..9bd1850 100644
--- a/src/views/socialLive/components/canteen/components/canteenDetail.vue
+++ b/src/views/socialLive/components/canteen/components/canteenDetail.vue
@@ -13,8 +13,9 @@
import SimplePieChart from '@/components/pieChart/simplePieChart'
import Corner1 from '@/components/corner/Corner1'
import ChartLayout from '@/components/layout/chartLayout'
-import {fetchOccupationByPark} from '@/api/cityManage'
+import {getCanteenStatistics} from '@/api/ecard'
import ScrollBoard from '@/components/board/ScrollBoard'
+import { dateToString } from '@/utils/formatDate'
export default {
name: 'canteenDetail',
components: {ScrollBoard, ChartLayout, Corner1, SimplePieChart},
@@ -32,18 +33,7 @@
headerFontSize: '0.075rem', // 表头字体大小
rowFontSize: '0.075rem', // 行字体大小
columnWidth: [150],
- data: [
- ['管委会食堂', 231, 123, 231],
- ['管委会食堂', 231, 123, 231],
- ['管委会食堂', 231, 123, 231],
- ['管委会食堂', 231, 123, 231],
- ['管委会食堂', 231, 123, 231],
- ['管委会食堂', 231, 123, 231],
- ['管委会食堂', 231, 123, 231],
- ['管委会食堂', 231, 123, 231],
- ['管委会食堂', 231, 123, 231],
- ['管委会食堂', 231, 123, 231]
- ]
+ data: []
}
}
},
@@ -52,19 +42,19 @@
},
methods: {
getData () {
- // fetchOccupationByPark().then(response => {
- // if (response.code === 200) {
- // const data = response.data
- // const list = data.map(item => {
- // const radio = Math.round(item.already / item.total * 100)
- // return [item.name, item.total, item.already, radio + '%']
- // })
- // this.boardConfig.data = list
- // const boardConfig = this.boardConfig
- // // this.$set(this, 'boardConfig', boardConfig)
- // this.boardConfig = Object.assign({}, boardConfig)
- // }
- // })
+ const today = dateToString(new Date(), 'y-m-d')
+ const params = {params: [today, today]}
+ getCanteenStatistics(params).then(response => {
+ if (response.code === 200) {
+ const data = response.data
+ const list = data.map(item => {
+ return [item.name, item.breakfast, item.lunch, item.dinner]
+ })
+ this.boardConfig.data = list
+ const boardConfig = this.boardConfig
+ this.boardConfig = Object.assign({}, boardConfig)
+ }
+ })
}
}
}
diff --git a/src/api/cityManage.js b/src/api/cityManage.js
index 04cfea4..d8a790d 100644
--- a/src/api/cityManage.js
+++ b/src/api/cityManage.js
@@ -1,6 +1,6 @@
import request from '@/utils/request'
import config from '@/utils/baseConfig'
-
+import qs from 'qs'
// 城市治理接口
// 城市基本信息:area面积,region区域数量,population人口,street街道数量,community社区数量,grid网格数量
export function fetchBaseInfo (type) {
@@ -19,6 +19,24 @@
})
}
+// 设备数量
+export function fetchDeviceCount (type) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/iot/deviceCountByType',
+ method: 'get'
+ })
+}
+
+// 设备在线情况
+export function fetchDeviceState (type) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/iot/deviceStateByType',
+ method: 'get'
+ })
+}
+
// 交通设施建设数量
export function fetchTrafficCount (type) {
return request({
@@ -49,7 +67,7 @@
// 特殊人群人数
export function fetchSpecial (type) {
return request({
- // baseURL: config.baseUrl,
+ baseURL: config.baseUrl,
url: '/population/special',
method: 'get'
})
@@ -170,6 +188,18 @@
})
}
+// 7天收入
+export function smartParkIncomeByDay (params) {
+ return request({
+ baseURL: config.baseUrl,
+ url: 'smartPark/incomeByDay',
+ method: 'get',
+ params,
+ paramsSerializer: params => {
+ return qs.stringify(params, { indices: false })
+ }
+ })
+}
// 日流量统计
export function fetchParkFlowByDay () {
return request({
@@ -200,3 +230,29 @@
method: 'get'
})
}
+
+// 管网报警
+export function pipeAlarmByType (params) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/pipe/alarmByType',
+ method: 'get',
+ params,
+ paramsSerializer: params => {
+ return qs.stringify(params, { indices: false })
+ }
+ })
+}
+
+// 管网7日报警
+export function fetchAlarmCount (params) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/pipe/alarmByDay',
+ method: 'get',
+ params,
+ paramsSerializer: params => {
+ return qs.stringify(params, { indices: false })
+ }
+ })
+}
diff --git a/src/api/ecard.js b/src/api/ecard.js
index 0141aa5..5a78023 100644
--- a/src/api/ecard.js
+++ b/src/api/ecard.js
@@ -46,3 +46,34 @@
}
})
}
+
+// 今日就餐人次 today;就餐卡放放数 card;食堂总数 canteen
+export function fetchCanteenInfo (type) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/canteen/' + type,
+ method: 'get'
+ })
+}
+
+// 各食堂每日用餐数量三餐
+export function getCanteenStatistics (params) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/canteen/statistics',
+ method: 'get',
+ params,
+ paramsSerializer: params => {
+ return qs.stringify(params, { indices: false })
+ }
+ })
+}
+
+// 一卡通情况
+export function fetchCardInfo (type) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/card/' + type,
+ method: 'get'
+ })
+}
diff --git a/src/utils/baseConfig.js b/src/utils/baseConfig.js
index 3e39af2..7a1d425 100644
--- a/src/utils/baseConfig.js
+++ b/src/utils/baseConfig.js
@@ -1,5 +1,6 @@
export default {
jingyiService: 'http://11.100.6.5:8084/', // 精一的后台地址
+ // baseUrl: 'http://192.168.1.108:11307/api' // 运行监测的后台地址
baseUrl: 'http://11.100.6.149:8080/monitor/api' // 运行监测的后台地址
// baseUrl: 'http://192.168.14.104:8085' // 运行监测的后台地址
}
diff --git a/src/views/cityConstruction/components/iot/components/deviceCountBar.vue b/src/views/cityConstruction/components/iot/components/deviceCountBar.vue
index bb748c8..c84de90 100644
--- a/src/views/cityConstruction/components/iot/components/deviceCountBar.vue
+++ b/src/views/cityConstruction/components/iot/components/deviceCountBar.vue
@@ -20,7 +20,7 @@
diff --git a/src/views/cityManage/components/pipeAlarm/pipeAlarm.vue b/src/views/cityManage/components/pipeAlarm/pipeAlarm.vue
index 4f347a7..173ca2b 100644
--- a/src/views/cityManage/components/pipeAlarm/pipeAlarm.vue
+++ b/src/views/cityManage/components/pipeAlarm/pipeAlarm.vue
@@ -27,7 +27,7 @@
import PipeAlarmBar from './components/pipeAlarmBar'
import PipeAlarmPie from './components/pipeAlarmPie'
import PipeAlarmLine from './components/pipeAlarmLine'
-import PipeAlarmCount from "./components/pipeAlarmCount";
+import PipeAlarmCount from './components/pipeAlarmCount'
export default {
name: 'PipeAlarm',
components: {PipeAlarmCount, PipeAlarmLine, PipeAlarmPie, PipeAlarmBar},
diff --git a/src/views/socialLive/components/canteen/components/canteenCount.vue b/src/views/socialLive/components/canteen/components/canteenCount.vue
index 9470d04..9e8c619 100644
--- a/src/views/socialLive/components/canteen/components/canteenCount.vue
+++ b/src/views/socialLive/components/canteen/components/canteenCount.vue
@@ -6,28 +6,57 @@
diff --git a/src/views/socialLive/components/canteen/components/canteenDetail.vue b/src/views/socialLive/components/canteen/components/canteenDetail.vue
index f922f2b..9bd1850 100644
--- a/src/views/socialLive/components/canteen/components/canteenDetail.vue
+++ b/src/views/socialLive/components/canteen/components/canteenDetail.vue
@@ -13,8 +13,9 @@
import SimplePieChart from '@/components/pieChart/simplePieChart'
import Corner1 from '@/components/corner/Corner1'
import ChartLayout from '@/components/layout/chartLayout'
-import {fetchOccupationByPark} from '@/api/cityManage'
+import {getCanteenStatistics} from '@/api/ecard'
import ScrollBoard from '@/components/board/ScrollBoard'
+import { dateToString } from '@/utils/formatDate'
export default {
name: 'canteenDetail',
components: {ScrollBoard, ChartLayout, Corner1, SimplePieChart},
@@ -32,18 +33,7 @@
headerFontSize: '0.075rem', // 表头字体大小
rowFontSize: '0.075rem', // 行字体大小
columnWidth: [150],
- data: [
- ['管委会食堂', 231, 123, 231],
- ['管委会食堂', 231, 123, 231],
- ['管委会食堂', 231, 123, 231],
- ['管委会食堂', 231, 123, 231],
- ['管委会食堂', 231, 123, 231],
- ['管委会食堂', 231, 123, 231],
- ['管委会食堂', 231, 123, 231],
- ['管委会食堂', 231, 123, 231],
- ['管委会食堂', 231, 123, 231],
- ['管委会食堂', 231, 123, 231]
- ]
+ data: []
}
}
},
@@ -52,19 +42,19 @@
},
methods: {
getData () {
- // fetchOccupationByPark().then(response => {
- // if (response.code === 200) {
- // const data = response.data
- // const list = data.map(item => {
- // const radio = Math.round(item.already / item.total * 100)
- // return [item.name, item.total, item.already, radio + '%']
- // })
- // this.boardConfig.data = list
- // const boardConfig = this.boardConfig
- // // this.$set(this, 'boardConfig', boardConfig)
- // this.boardConfig = Object.assign({}, boardConfig)
- // }
- // })
+ const today = dateToString(new Date(), 'y-m-d')
+ const params = {params: [today, today]}
+ getCanteenStatistics(params).then(response => {
+ if (response.code === 200) {
+ const data = response.data
+ const list = data.map(item => {
+ return [item.name, item.breakfast, item.lunch, item.dinner]
+ })
+ this.boardConfig.data = list
+ const boardConfig = this.boardConfig
+ this.boardConfig = Object.assign({}, boardConfig)
+ }
+ })
}
}
}
diff --git a/src/views/socialLive/components/canteen/components/canteenFlowLine.vue b/src/views/socialLive/components/canteen/components/canteenFlowLine.vue
index 3cc1911..c03cc7e 100644
--- a/src/views/socialLive/components/canteen/components/canteenFlowLine.vue
+++ b/src/views/socialLive/components/canteen/components/canteenFlowLine.vue
@@ -35,9 +35,9 @@
height: '100%',
width: '100%',
unit: '次',
- xAxisData: ['9-3', '9-4', '9-5', '9-6', '9-7', '9-8', '9-9'],
+ xAxisData: ['', '', '', '', '', '', ''],
seriesData: [
- {name: '人流量', data: [120, 252, 101, 134, 290, 230, 110], color: '0,144,255'}
+ {name: '人流量', data: [0, 0, 0, 0, 0, 0, 0], color: '0,144,255'}
// {name: '出场流量', data: [110, 222, 91, 82, 278, 200, 91], color: '0,144,255'}
]
}
@@ -54,7 +54,11 @@
fetchCanteenDayNum(params).then(response => {
if (response.code === 200) {
const data = response.data
- this.options.xAxisData = data.map(item => { return item.date.substring(5) })
+ if (data.length === 0) {
+ this.options.xAxisData = []
+ } else {
+ this.options.xAxisData = data.map(item => { return item.date.substring(5) })
+ }
const value = data.map(item => { return item.value === '' ? 0 : item.value })
this.options.seriesData = [
{name: '人流量', data: value, color: '0,144,255'}
diff --git a/src/api/cityManage.js b/src/api/cityManage.js
index 04cfea4..d8a790d 100644
--- a/src/api/cityManage.js
+++ b/src/api/cityManage.js
@@ -1,6 +1,6 @@
import request from '@/utils/request'
import config from '@/utils/baseConfig'
-
+import qs from 'qs'
// 城市治理接口
// 城市基本信息:area面积,region区域数量,population人口,street街道数量,community社区数量,grid网格数量
export function fetchBaseInfo (type) {
@@ -19,6 +19,24 @@
})
}
+// 设备数量
+export function fetchDeviceCount (type) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/iot/deviceCountByType',
+ method: 'get'
+ })
+}
+
+// 设备在线情况
+export function fetchDeviceState (type) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/iot/deviceStateByType',
+ method: 'get'
+ })
+}
+
// 交通设施建设数量
export function fetchTrafficCount (type) {
return request({
@@ -49,7 +67,7 @@
// 特殊人群人数
export function fetchSpecial (type) {
return request({
- // baseURL: config.baseUrl,
+ baseURL: config.baseUrl,
url: '/population/special',
method: 'get'
})
@@ -170,6 +188,18 @@
})
}
+// 7天收入
+export function smartParkIncomeByDay (params) {
+ return request({
+ baseURL: config.baseUrl,
+ url: 'smartPark/incomeByDay',
+ method: 'get',
+ params,
+ paramsSerializer: params => {
+ return qs.stringify(params, { indices: false })
+ }
+ })
+}
// 日流量统计
export function fetchParkFlowByDay () {
return request({
@@ -200,3 +230,29 @@
method: 'get'
})
}
+
+// 管网报警
+export function pipeAlarmByType (params) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/pipe/alarmByType',
+ method: 'get',
+ params,
+ paramsSerializer: params => {
+ return qs.stringify(params, { indices: false })
+ }
+ })
+}
+
+// 管网7日报警
+export function fetchAlarmCount (params) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/pipe/alarmByDay',
+ method: 'get',
+ params,
+ paramsSerializer: params => {
+ return qs.stringify(params, { indices: false })
+ }
+ })
+}
diff --git a/src/api/ecard.js b/src/api/ecard.js
index 0141aa5..5a78023 100644
--- a/src/api/ecard.js
+++ b/src/api/ecard.js
@@ -46,3 +46,34 @@
}
})
}
+
+// 今日就餐人次 today;就餐卡放放数 card;食堂总数 canteen
+export function fetchCanteenInfo (type) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/canteen/' + type,
+ method: 'get'
+ })
+}
+
+// 各食堂每日用餐数量三餐
+export function getCanteenStatistics (params) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/canteen/statistics',
+ method: 'get',
+ params,
+ paramsSerializer: params => {
+ return qs.stringify(params, { indices: false })
+ }
+ })
+}
+
+// 一卡通情况
+export function fetchCardInfo (type) {
+ return request({
+ baseURL: config.baseUrl,
+ url: '/card/' + type,
+ method: 'get'
+ })
+}
diff --git a/src/utils/baseConfig.js b/src/utils/baseConfig.js
index 3e39af2..7a1d425 100644
--- a/src/utils/baseConfig.js
+++ b/src/utils/baseConfig.js
@@ -1,5 +1,6 @@
export default {
jingyiService: 'http://11.100.6.5:8084/', // 精一的后台地址
+ // baseUrl: 'http://192.168.1.108:11307/api' // 运行监测的后台地址
baseUrl: 'http://11.100.6.149:8080/monitor/api' // 运行监测的后台地址
// baseUrl: 'http://192.168.14.104:8085' // 运行监测的后台地址
}
diff --git a/src/views/cityConstruction/components/iot/components/deviceCountBar.vue b/src/views/cityConstruction/components/iot/components/deviceCountBar.vue
index bb748c8..c84de90 100644
--- a/src/views/cityConstruction/components/iot/components/deviceCountBar.vue
+++ b/src/views/cityConstruction/components/iot/components/deviceCountBar.vue
@@ -20,7 +20,7 @@
diff --git a/src/views/cityManage/components/pipeAlarm/pipeAlarm.vue b/src/views/cityManage/components/pipeAlarm/pipeAlarm.vue
index 4f347a7..173ca2b 100644
--- a/src/views/cityManage/components/pipeAlarm/pipeAlarm.vue
+++ b/src/views/cityManage/components/pipeAlarm/pipeAlarm.vue
@@ -27,7 +27,7 @@
import PipeAlarmBar from './components/pipeAlarmBar'
import PipeAlarmPie from './components/pipeAlarmPie'
import PipeAlarmLine from './components/pipeAlarmLine'
-import PipeAlarmCount from "./components/pipeAlarmCount";
+import PipeAlarmCount from './components/pipeAlarmCount'
export default {
name: 'PipeAlarm',
components: {PipeAlarmCount, PipeAlarmLine, PipeAlarmPie, PipeAlarmBar},
diff --git a/src/views/socialLive/components/canteen/components/canteenCount.vue b/src/views/socialLive/components/canteen/components/canteenCount.vue
index 9470d04..9e8c619 100644
--- a/src/views/socialLive/components/canteen/components/canteenCount.vue
+++ b/src/views/socialLive/components/canteen/components/canteenCount.vue
@@ -6,28 +6,57 @@
diff --git a/src/views/socialLive/components/canteen/components/canteenDetail.vue b/src/views/socialLive/components/canteen/components/canteenDetail.vue
index f922f2b..9bd1850 100644
--- a/src/views/socialLive/components/canteen/components/canteenDetail.vue
+++ b/src/views/socialLive/components/canteen/components/canteenDetail.vue
@@ -13,8 +13,9 @@
import SimplePieChart from '@/components/pieChart/simplePieChart'
import Corner1 from '@/components/corner/Corner1'
import ChartLayout from '@/components/layout/chartLayout'
-import {fetchOccupationByPark} from '@/api/cityManage'
+import {getCanteenStatistics} from '@/api/ecard'
import ScrollBoard from '@/components/board/ScrollBoard'
+import { dateToString } from '@/utils/formatDate'
export default {
name: 'canteenDetail',
components: {ScrollBoard, ChartLayout, Corner1, SimplePieChart},
@@ -32,18 +33,7 @@
headerFontSize: '0.075rem', // 表头字体大小
rowFontSize: '0.075rem', // 行字体大小
columnWidth: [150],
- data: [
- ['管委会食堂', 231, 123, 231],
- ['管委会食堂', 231, 123, 231],
- ['管委会食堂', 231, 123, 231],
- ['管委会食堂', 231, 123, 231],
- ['管委会食堂', 231, 123, 231],
- ['管委会食堂', 231, 123, 231],
- ['管委会食堂', 231, 123, 231],
- ['管委会食堂', 231, 123, 231],
- ['管委会食堂', 231, 123, 231],
- ['管委会食堂', 231, 123, 231]
- ]
+ data: []
}
}
},
@@ -52,19 +42,19 @@
},
methods: {
getData () {
- // fetchOccupationByPark().then(response => {
- // if (response.code === 200) {
- // const data = response.data
- // const list = data.map(item => {
- // const radio = Math.round(item.already / item.total * 100)
- // return [item.name, item.total, item.already, radio + '%']
- // })
- // this.boardConfig.data = list
- // const boardConfig = this.boardConfig
- // // this.$set(this, 'boardConfig', boardConfig)
- // this.boardConfig = Object.assign({}, boardConfig)
- // }
- // })
+ const today = dateToString(new Date(), 'y-m-d')
+ const params = {params: [today, today]}
+ getCanteenStatistics(params).then(response => {
+ if (response.code === 200) {
+ const data = response.data
+ const list = data.map(item => {
+ return [item.name, item.breakfast, item.lunch, item.dinner]
+ })
+ this.boardConfig.data = list
+ const boardConfig = this.boardConfig
+ this.boardConfig = Object.assign({}, boardConfig)
+ }
+ })
}
}
}
diff --git a/src/views/socialLive/components/canteen/components/canteenFlowLine.vue b/src/views/socialLive/components/canteen/components/canteenFlowLine.vue
index 3cc1911..c03cc7e 100644
--- a/src/views/socialLive/components/canteen/components/canteenFlowLine.vue
+++ b/src/views/socialLive/components/canteen/components/canteenFlowLine.vue
@@ -35,9 +35,9 @@
height: '100%',
width: '100%',
unit: '次',
- xAxisData: ['9-3', '9-4', '9-5', '9-6', '9-7', '9-8', '9-9'],
+ xAxisData: ['', '', '', '', '', '', ''],
seriesData: [
- {name: '人流量', data: [120, 252, 101, 134, 290, 230, 110], color: '0,144,255'}
+ {name: '人流量', data: [0, 0, 0, 0, 0, 0, 0], color: '0,144,255'}
// {name: '出场流量', data: [110, 222, 91, 82, 278, 200, 91], color: '0,144,255'}
]
}
@@ -54,7 +54,11 @@
fetchCanteenDayNum(params).then(response => {
if (response.code === 200) {
const data = response.data
- this.options.xAxisData = data.map(item => { return item.date.substring(5) })
+ if (data.length === 0) {
+ this.options.xAxisData = []
+ } else {
+ this.options.xAxisData = data.map(item => { return item.date.substring(5) })
+ }
const value = data.map(item => { return item.value === '' ? 0 : item.value })
this.options.seriesData = [
{name: '人流量', data: value, color: '0,144,255'}
diff --git a/src/views/socialLive/components/eCard/components/ecardEarth.vue b/src/views/socialLive/components/eCard/components/ecardEarth.vue
index 3ba3989..f0a2dd2 100644
--- a/src/views/socialLive/components/eCard/components/ecardEarth.vue
+++ b/src/views/socialLive/components/eCard/components/ecardEarth.vue
@@ -12,7 +12,7 @@
diff --git a/src/views/cityManage/components/pipeAlarm/pipeAlarm.vue b/src/views/cityManage/components/pipeAlarm/pipeAlarm.vue
index 4f347a7..173ca2b 100644
--- a/src/views/cityManage/components/pipeAlarm/pipeAlarm.vue
+++ b/src/views/cityManage/components/pipeAlarm/pipeAlarm.vue
@@ -27,7 +27,7 @@
import PipeAlarmBar from './components/pipeAlarmBar'
import PipeAlarmPie from './components/pipeAlarmPie'
import PipeAlarmLine from './components/pipeAlarmLine'
-import PipeAlarmCount from "./components/pipeAlarmCount";
+import PipeAlarmCount from './components/pipeAlarmCount'
export default {
name: 'PipeAlarm',
components: {PipeAlarmCount, PipeAlarmLine, PipeAlarmPie, PipeAlarmBar},
diff --git a/src/views/socialLive/components/canteen/components/canteenCount.vue b/src/views/socialLive/components/canteen/components/canteenCount.vue
index 9470d04..9e8c619 100644
--- a/src/views/socialLive/components/canteen/components/canteenCount.vue
+++ b/src/views/socialLive/components/canteen/components/canteenCount.vue
@@ -6,28 +6,57 @@
diff --git a/src/views/socialLive/components/canteen/components/canteenDetail.vue b/src/views/socialLive/components/canteen/components/canteenDetail.vue
index f922f2b..9bd1850 100644
--- a/src/views/socialLive/components/canteen/components/canteenDetail.vue
+++ b/src/views/socialLive/components/canteen/components/canteenDetail.vue
@@ -13,8 +13,9 @@
import SimplePieChart from '@/components/pieChart/simplePieChart'
import Corner1 from '@/components/corner/Corner1'
import ChartLayout from '@/components/layout/chartLayout'
-import {fetchOccupationByPark} from '@/api/cityManage'
+import {getCanteenStatistics} from '@/api/ecard'
import ScrollBoard from '@/components/board/ScrollBoard'
+import { dateToString } from '@/utils/formatDate'
export default {
name: 'canteenDetail',
components: {ScrollBoard, ChartLayout, Corner1, SimplePieChart},
@@ -32,18 +33,7 @@
headerFontSize: '0.075rem', // 表头字体大小
rowFontSize: '0.075rem', // 行字体大小
columnWidth: [150],
- data: [
- ['管委会食堂', 231, 123, 231],
- ['管委会食堂', 231, 123, 231],
- ['管委会食堂', 231, 123, 231],
- ['管委会食堂', 231, 123, 231],
- ['管委会食堂', 231, 123, 231],
- ['管委会食堂', 231, 123, 231],
- ['管委会食堂', 231, 123, 231],
- ['管委会食堂', 231, 123, 231],
- ['管委会食堂', 231, 123, 231],
- ['管委会食堂', 231, 123, 231]
- ]
+ data: []
}
}
},
@@ -52,19 +42,19 @@
},
methods: {
getData () {
- // fetchOccupationByPark().then(response => {
- // if (response.code === 200) {
- // const data = response.data
- // const list = data.map(item => {
- // const radio = Math.round(item.already / item.total * 100)
- // return [item.name, item.total, item.already, radio + '%']
- // })
- // this.boardConfig.data = list
- // const boardConfig = this.boardConfig
- // // this.$set(this, 'boardConfig', boardConfig)
- // this.boardConfig = Object.assign({}, boardConfig)
- // }
- // })
+ const today = dateToString(new Date(), 'y-m-d')
+ const params = {params: [today, today]}
+ getCanteenStatistics(params).then(response => {
+ if (response.code === 200) {
+ const data = response.data
+ const list = data.map(item => {
+ return [item.name, item.breakfast, item.lunch, item.dinner]
+ })
+ this.boardConfig.data = list
+ const boardConfig = this.boardConfig
+ this.boardConfig = Object.assign({}, boardConfig)
+ }
+ })
}
}
}
diff --git a/src/views/socialLive/components/canteen/components/canteenFlowLine.vue b/src/views/socialLive/components/canteen/components/canteenFlowLine.vue
index 3cc1911..c03cc7e 100644
--- a/src/views/socialLive/components/canteen/components/canteenFlowLine.vue
+++ b/src/views/socialLive/components/canteen/components/canteenFlowLine.vue
@@ -35,9 +35,9 @@
height: '100%',
width: '100%',
unit: '次',
- xAxisData: ['9-3', '9-4', '9-5', '9-6', '9-7', '9-8', '9-9'],
+ xAxisData: ['', '', '', '', '', '', ''],
seriesData: [
- {name: '人流量', data: [120, 252, 101, 134, 290, 230, 110], color: '0,144,255'}
+ {name: '人流量', data: [0, 0, 0, 0, 0, 0, 0], color: '0,144,255'}
// {name: '出场流量', data: [110, 222, 91, 82, 278, 200, 91], color: '0,144,255'}
]
}
@@ -54,7 +54,11 @@
fetchCanteenDayNum(params).then(response => {
if (response.code === 200) {
const data = response.data
- this.options.xAxisData = data.map(item => { return item.date.substring(5) })
+ if (data.length === 0) {
+ this.options.xAxisData = []
+ } else {
+ this.options.xAxisData = data.map(item => { return item.date.substring(5) })
+ }
const value = data.map(item => { return item.value === '' ? 0 : item.value })
this.options.seriesData = [
{name: '人流量', data: value, color: '0,144,255'}
diff --git a/src/views/socialLive/components/eCard/components/ecardEarth.vue b/src/views/socialLive/components/eCard/components/ecardEarth.vue
index 3ba3989..f0a2dd2 100644
--- a/src/views/socialLive/components/eCard/components/ecardEarth.vue
+++ b/src/views/socialLive/components/eCard/components/ecardEarth.vue
@@ -12,7 +12,7 @@