From 3f9a23f5e1342b8cdaa922952cfa2a02a6f81e2b Mon Sep 17 00:00:00 2001 From: wangxiaohua <1214073490@qq.com> Date: Wed, 18 Aug 2021 10:10:59 +0800 Subject: [PATCH] init --- config.js | 9 ++ pages/index/index.vue | 244 +++++++++++++++++++++++++++++++++----- static/images/offline.png | Bin 0 -> 2537 bytes 3 files changed, 221 insertions(+), 32 deletions(-) create mode 100644 static/images/offline.png diff --git a/config.js b/config.js index da0815b..a6d4e94 100644 --- a/config.js +++ b/config.js @@ -60,6 +60,15 @@ var config = { getSpeechAnalysis: `${host}/cms/mobile/getBytargetId`, //同音转译接口2 getCorpusAnalysis: `${host}/corpus/audioPlay`, + //查询设备电量 + findElectricity:`${host}/equipment/findElectricity`, + //首页设备查询 + findEquipmentState:`${host}/cusLvStatistics/findEquipmentState`, + //首页实时统计 + realTimeStatistics:`${host}/cusLvStatistics/realTimeStatistics`, + //首页本周工作 + workThisWeek:`${host}/cusLvStatistics/workThisWeek`, + } }; module.exports = config; \ No newline at end of file diff --git a/pages/index/index.vue b/pages/index/index.vue index a4a6f19..bef9ab5 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -8,46 +8,73 @@ {{buildingname}} 切换楼盘 - 我的工牌 - - - - + + 我的工牌 + + + + + + + + + + 电量:{{percentage}}% - 电量:96% - - - - + + + + + + + + + + 信号:{{signalDevicetext}} + + + + + + + 录音:已开启 + 录音:未开启 - 信号:弱 - - - + + + + + + 设备离线 - 录音:未开启 - 设备 - + + + + 设备 + - 158 + {{equipmentobj.totalNum}} 设备总数 - 5 + {{equipmentobj.onlineNum}} 在线 - 2 + {{equipmentobj.activeNum}} 活跃 - 5 + {{equipmentobj.lowPowerNum}} 急需充电 + + + 实时统计 @@ -178,15 +205,29 @@