From fb33e5a1f6b54eee4d3e39656bb9718e99f9b533 Mon Sep 17 00:00:00 2001 From: dashixiong Date: Sun, 8 Feb 2026 17:26:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/ems/site.js | 48 ++- pages.json | 57 +-- pages/index.vue | 632 ++++++++++++++++++++----------- pages/ticket/index.vue | 12 +- pages/ticket/list.vue | 229 +++++++++++ static/images/tabbar/ticket.png | Bin 0 -> 166 bytes static/images/tabbar/ticket_.png | Bin 0 -> 169 bytes 7 files changed, 705 insertions(+), 273 deletions(-) create mode 100644 pages/ticket/list.vue create mode 100644 static/images/tabbar/ticket.png create mode 100644 static/images/tabbar/ticket_.png diff --git a/api/ems/site.js b/api/ems/site.js index c5f1de4..ab066d4 100644 --- a/api/ems/site.js +++ b/api/ems/site.js @@ -83,20 +83,38 @@ export function getSingleBatteryData(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', +//获取单个站点的基本信息 +export function getSingleSiteBaseInfo(data) { + return request({ + url: `/ems/siteMap/getSingleSiteBaseInfo`, //?siteId=${siteId}`, + method: 'get', + data + }) +} + +//单站监控 首页 总累计运行数据 +export function getDzjkHomeView(data) { + return request({ + url: `/ems/siteMonitor/homeView`, //?siteId=${siteId} + method: 'get', + data + }) +} + +// 电价报表(收益数据) +export function getAmmeterRevenueData(params) { + return request({ + url: `/ems/statsReport/getAmmeterRevenueData`, + method: 'get', + params + }) +} + +// 一周冲放曲线 +export function getSevenChargeData(data) { + return request({ + url: `/ems/siteMap/getSevenChargeData`, //?siteId=${siteId}&startDate=${startDate}&endDate=${endDate}`, + method: 'get', data }) } @@ -117,4 +135,4 @@ export function getSiteAllDeviceCategory(data) { method: 'get', data }) -} \ No newline at end of file +} diff --git a/pages.json b/pages.json index 6748101..0a1570d 100644 --- a/pages.json +++ b/pages.json @@ -9,15 +9,13 @@ "style": { "navigationBarTitleText": "注册" } - }, { - "path": "pages/index", - "style": { - "navigationBarTitleText": "工单列表", - "navigationStyle": "custom", - "onReachBottomDistance": 100 - } - }, { - "path": "pages/work/index", + }, { + "path": "pages/index", + "style": { + "navigationBarTitleText": "首页" + } + }, { + "path": "pages/work/index", "style": { "navigationBarTitleText": "工作台" } @@ -71,11 +69,19 @@ "style": { "navigationBarTitleText": "浏览文本" } - }, - { - "path": "pages/ticket/index", - "style": { - "navigationBarTitleText": "工单详情" + }, + { + "path": "pages/ticket/list", + "style": { + "navigationBarTitleText": "工单列表", + "navigationStyle": "custom", + "onReachBottomDistance": 100 + } + }, + { + "path": "pages/ticket/index", + "style": { + "navigationBarTitleText": "工单详情" } }, { @@ -116,14 +122,19 @@ "selectedColor": "#000000", "borderStyle": "white", "backgroundColor": "#ffffff", - "list": [{ - "pagePath": "pages/index", - "iconPath": "static/images/tabbar/home.png", - "selectedIconPath": "static/images/tabbar/home_.png", - "text": "首页" - }, { - "pagePath": "pages/work/index", - "iconPath": "static/images/tabbar/work.png", + "list": [{ + "pagePath": "pages/index", + "iconPath": "static/images/tabbar/home.png", + "selectedIconPath": "static/images/tabbar/home_.png", + "text": "首页" + }, { + "pagePath": "pages/ticket/list", + "iconPath": "static/images/tabbar/ticket.png", + "selectedIconPath": "static/images/tabbar/ticket_.png", + "text": "工单" + }, { + "pagePath": "pages/work/index", + "iconPath": "static/images/tabbar/work.png", "selectedIconPath": "static/images/tabbar/work_.png", "text": "工作台" }, { @@ -138,4 +149,4 @@ "navigationBarTitleText": "EMS", "navigationBarBackgroundColor": "#FFFFFF" } -} \ No newline at end of file +} diff --git a/pages/index.vue b/pages/index.vue index cb7b268..0c2b475 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -1,229 +1,403 @@ - - - - \ No newline at end of file + + + + + diff --git a/pages/ticket/index.vue b/pages/ticket/index.vue index f339d1f..13c4a7b 100644 --- a/pages/ticket/index.vue +++ b/pages/ticket/index.vue @@ -96,11 +96,11 @@ title: '提交成功', duration: 2000 }); - uni.switchTab({ - url: '/pages/index' - }); - } - }).finally(() => this.loading = false) + uni.switchTab({ + url: '/pages/ticket/list' + }); + } + }).finally(() => this.loading = false) }, // 获取上传状态 @@ -211,4 +211,4 @@ .submit-button { font-size: 28rpx; } - \ No newline at end of file + diff --git a/pages/ticket/list.vue b/pages/ticket/list.vue new file mode 100644 index 0000000..7d55206 --- /dev/null +++ b/pages/ticket/list.vue @@ -0,0 +1,229 @@ + + + + \ No newline at end of file diff --git a/static/images/tabbar/ticket.png b/static/images/tabbar/ticket.png new file mode 100644 index 0000000000000000000000000000000000000000..4365e95d8ef6f5b21bc4d6cd07bdbda4382a2a76 GIT binary patch literal 166 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7TyC=xt=bLAr*7pUUTF+puppLu>QaI zcJqu)E8J4pHuc#F_yCnKEchg2ciJ~Tpdo46?Okg;8#oji7z7;{7}rH#Q*q$qGWd8` zbb-a?^)`)jPtRiMU|`}9U}O<^uq)L!nbB{~(`EV^4u&9OK0IXgn7brPb@9Cl5ZBYy K&t;ucLK6Tlzcs4> literal 0 HcmV?d00001 diff --git a/static/images/tabbar/ticket_.png b/static/images/tabbar/ticket_.png new file mode 100644 index 0000000000000000000000000000000000000000..7f819900c0d021b72f85e7798c9cc0b39d1565b2 GIT binary patch literal 169 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7TyC=1)eUBAr*7pUO33fpuod&@XP%z zW)Iv=R8HyK`9Fihb5dCEd5~%(u#Pc=oxwr5q1V`*87lmR?F7dGZ-$w0KJy9=hK8hu eb~LRjo?SEkXtp?ZHD0?0((38z=d#Wzp$Pz(mMKgC literal 0 HcmV?d00001