yizai 3 年之前
父節點
當前提交
c8680f3dde
共有 1 個文件被更改,包括 1 次插入30 次删除
  1. 1 30
      src/views/bridge/device-manage/tky-manage.vue

+ 1 - 30
src/views/bridge/device-manage/tky-manage.vue

@@ -14,7 +14,7 @@
           <el-input v-model="query.deviceCode" disabled style="width:30%">
             <template slot="prepend">设备编号</template>
           </el-input>
-          <!-- <el-tag type="success" style="margin-left: 6px;" size="mini">在线</el-tag> -->
+          <el-tag :type="data.isOnline?'success':'danger'" style="margin-left: 6px;">{{ data.isOnline?"在线":"离线" }}</el-tag>
           <!-- <el-input v-model="query.beamCode" disabled style="float:right;margin-right: 6px;width:30%">
             <template slot="prepend">梁片编号</template>
           </el-input> -->
@@ -221,35 +221,6 @@ export default {
       playback: { anim: null, isAnimRunning: false }
     }
   },
-  created() {
-  },
-  async mounted() {
-    this.loading = true
-
-    // try {
-    //   await this.$store.dispatch('user/login', { username: 'test-grider', password: crypto.decryptAES('B0B10217A69BFEE4F3043E5769106053') })
-    //   this.loading = false
-    // } catch (ex) {
-    //   console.log(ex)
-    // }
-    // try {
-    //   await this.$store.dispatch('user/login', { username: 'yjlview419', password: cryptosss.decryptAES('B00BB09C02A845CE99A9EE6DAF052DC7') })
-    //   this.loading = false
-    // } catch (ex) {
-    //   console.log(ex)
-    // }
-    // this.$nextTick(() => {
-    //   _.forEach(this.videos, (i, index) => {
-    //     var id = 'video' + index
-    //     var video = document.getElementById(id)
-    //     new JSWebrtc.Player(i.webRtc, {
-    //       video: video,
-    //       autoplay: true,
-    //       onPlay: obj => {}
-    //     })
-    //   })
-    // })
-  },
   methods: {
     show(data) {
       this.query.deviceCode = data.deviceCode