diff --git a/src/utils/api/index.js b/src/utils/api/index.js index 7163fa2..d3b3206 100644 --- a/src/utils/api/index.js +++ b/src/utils/api/index.js @@ -36,6 +36,24 @@ export function getChannelByTermidJoggle(data) { }); } +//获取装置信息 +export function getDeviceList(data) { + return request({ + url: "/api/getTerminalStatus", + method: "post", + data, + headers:{ 'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8' } + }); +} +//获取最新装置信息 +export function getNewDeviceList(data) { + return request({ + url: "/api/getLastedTerminalStatus", + method: "post", + data, + }); +} + //图片轮巡 //获取图片轮巡接口 export function getPictureList(data) { diff --git a/src/views/realTimeMonitor/components/infoDialog.vue b/src/views/realTimeMonitor/components/infoDialog.vue index 989766e..ae75de3 100644 --- a/src/views/realTimeMonitor/components/infoDialog.vue +++ b/src/views/realTimeMonitor/components/infoDialog.vue @@ -5,37 +5,36 @@ :visible.sync="isShow" :close-on-click-modal="false" width="50%" + @close="handleclose" >
- - XYIGQ10C230300104 + {{ infornr.termId }} - - XYIGQ10C230300104 + {{ infornr.batteryCapacity }} - - xxx + {{ infornr.batteryVoltage }} - - xxxxxxxxxxxx + {{ infornr.cmld }} - - xxxxxxxxxxxxxxxxxxxxxxxx + {{ infornr.connectionState }} - - - xxxxxxxxxxxxxxxxxxxxx + {{ infornr.floatingCharge }} - - xxxxxxxxxxxxxxxxxx + {{ infornr.totalWorkingTime }} + + + {{ infornr.workingTime }} + + + {{ infornr.wsUpdateTime }}
@@ -46,7 +45,7 @@ diff --git a/src/views/realTimeMonitor/index.vue b/src/views/realTimeMonitor/index.vue index b51c976..0d9ee3b 100644 --- a/src/views/realTimeMonitor/index.vue +++ b/src/views/realTimeMonitor/index.vue @@ -467,6 +467,7 @@ export default { //装置信息handleShowInfo handleShowInfo() { this.$refs.infodialog_ref.display(); + this.$refs.infodialog_ref.getListData(this.channelId); }, //历史图片 // handlehistoryPic() {