Commit 00a23fc14dc7ae46dc1798d3a28dc5521d93df0b

Authored by fengwotao
1 parent 4735023c

fix:DEFECT-673 图中设备是新加的设备数据,从未上过线,为什么会有离线时间

... ... @@ -210,7 +210,9 @@
210 210 <div style="margin-top:6px;">设备位置:${
211 211 address == '' ? '该设备暂无地理位置' : address
212 212 }</div>
213   - <div style="margin-top:6px;">${activeStatus ? '在' : '离'}线时间:${lastUpdateTs}</div>
  213 + <div style="margin-top:6px;">${
  214 + deviceState === 'ONLINE' ? '在线' : deviceState === 'INACTIVE' ? '创建' : '离线'
  215 + }时间:${lastUpdateTs}</div>
214 216 <div style="display:flex;justify-content:end; margin-top:10px">
215 217 <button onclick="openDeviceInfoDrawer()" style="margin-right:10px;color:#fff;background-color:#409eff;padding:4px; border-radius:4px;">设备信息</button>
216 218 <button onclick="openHistoryModal()" style="color:#fff;background-color:#409eff;padding:4px; border-radius:4px;">历史数据</button>
... ...