whychdw
2022-01-14 f66a5ef1bb84797c95207459e5dcfa4bc5261cc0
设备通讯状态
1个文件已修改
22 ■■■■ 已修改文件
src/pages/dataTest/realTime.vue 22 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/dataTest/realTime.vue
@@ -6,10 +6,7 @@
      @toggleChange="toggleChange"
      @leaf-click="leafClick"
    ></home-list>
    <content-box
      style="margin-left: 4px; margin-right: 4px;"
      :title="battFullName"
    >
    <content-box style="margin-left: 4px; margin-right: 4px;" :title="battFullName" >
      <div slot="box-tools" class="box-tools">
        <el-tooltip
          class="item"
@@ -33,10 +30,20 @@
          ></i>
        </el-tooltip>
      </div>
      <div style="right: 72px;" slot="box-tools" class="box-tools">
        <el-tooltip
          class="item"
          effect="dark"
          content="通讯状态"
          placement="bottom">
          <hdw-light :type="isLink"></hdw-light>
        </el-tooltip>
      </div>
      <div
        slot="box-tools"
        class="box-tools"
        style="right: 72px;"
        style="right: 110px;"
        v-if="esVideoSn"
      >
        <el-tooltip
@@ -1917,7 +1924,6 @@
      let batt = this.batt;
      realTimeLd9Data({
        dev_id: batt.FBSDeviceId,
      }).then(res=>{
        let rs = JSON.parse(res.data.result);
        if(rs.code == 1) {
@@ -3236,6 +3242,10 @@
      //return !isFalseLoad;
      return true;
    },
    // 设备连接状态1为未连接 0正常
    isLink() {
      return this.diagram.type == -1?1:0;
    },
  },
  created() {
    this.skinActive = localStorage.getItem("activeSkin");