diff --git a/api/ems/site.js b/api/ems/site.js index c0f1e11..dd99a27 100644 --- a/api/ems/site.js +++ b/api/ems/site.js @@ -75,15 +75,28 @@ export function getClusterDataInfoList(data) { }) } // 单体电池图表 -export function getSingleBatteryData({ - siteId, - deviceId, - clusterDeviceId, - startDate, - endDate -}) { +export function getSingleBatteryData(data) { return request({ - url: `/ems/siteMonitor/getSingleBatteryData?siteId=${siteId}&deviceId=${deviceId}&startDate=${startDate}&endDate=${endDate}&clusterDeviceId=${clusterDeviceId}`, - method: 'get' + url: `/ems/siteMonitor/getSingleBatteryData`, //?siteId=${siteId}&deviceId=${deviceId}&startDate=${startDate}&endDate=${endDate}&clusterDeviceId=${clusterDeviceId}`, + method: 'get', + data + }) +} + +//获取单个站点的基本信息 +export function getSingleSiteBaseInfo(data) { + return request({ + url: `/ems/siteMap/getSingleSiteBaseInfo`, //?siteId=${siteId}`, + method: 'get', + data + }) +} + +// 一周冲放曲线 +export function getSevenChargeData(data) { + return request({ + url: `/ems/siteMap/getSevenChargeData`, //?siteId=${siteId}&startDate=${startDate}&endDate=${endDate}`, + method: 'get', + data }) } \ No newline at end of file diff --git a/pages/work/WeekChart.vue b/pages/work/WeekChart.vue new file mode 100644 index 0000000..c5c153c --- /dev/null +++ b/pages/work/WeekChart.vue @@ -0,0 +1,11 @@ + + + + + \ No newline at end of file diff --git a/pages/work/dtdc/index.vue b/pages/work/dtdc/index.vue index 4bd6391..41875fa 100644 --- a/pages/work/dtdc/index.vue +++ b/pages/work/dtdc/index.vue @@ -75,6 +75,9 @@ + + + @@ -116,7 +119,8 @@ clusterOptions: [], search: { stackId: '', - clusterId: '' + clusterId: '', + batteryId: '' }, list: [], siteId: '', @@ -166,7 +170,8 @@ onReset() { this.search = { stackId: '', - clusterId: '' + clusterId: '', + batteryId: '' } this.clusterOptions = [] this.pageNum = 1 @@ -215,7 +220,8 @@ } const { stackId: stackDeviceId, - clusterId: clusterDeviceId + clusterId: clusterDeviceId, + batteryId } = this.search const { siteId, @@ -225,11 +231,12 @@ getClusterDataInfoList({ stackDeviceId, clusterDeviceId, + batteryId, siteId, pageNum, pageSize }).then(response => { - this.list = this.list.concat(response?.rows || []); + this.list = this.list.concat(response?.rows?.[0]?.batteryList || []); this.total = response?.total || 0 }).finally(() => { uni.hideLoading() diff --git a/pages/work/index.vue b/pages/work/index.vue index 2d62041..43a94bd 100644 --- a/pages/work/index.vue +++ b/pages/work/index.vue @@ -1,35 +1,120 @@ @@ -112,6 +263,10 @@ margin-top: 10rpx; } + .sections-list:not(:first-child) { + margin-top: 40rpx; + } + .grid-item-box { flex: 1; /* #ifndef APP-NVUE */ @@ -120,19 +275,29 @@ flex-direction: column; align-items: center; justify-content: center; - padding: 15px 0; - } - - .uni-margin-wrap { - width: 690rpx; - width: 100%; - ; + padding: 30rpx 0; } .icon { - font-size: 26px; + font-size: 52rpx; } + .base-lists { + font-size: 28rpx; + line-height: 40rpx; + padding: 10rpx 20rpx; + padding-left: 40rpx; + + .left { + width: 220rpx; + display: inline-block; + color: #666; + } + + .right { + color: #333; + } + } @media screen and (min-width: 500px) {} \ No newline at end of file