|
@@ -14,7 +14,7 @@
|
|
|
<el-input v-model="query.deviceCode" disabled style="width:30%">
|
|
<el-input v-model="query.deviceCode" disabled style="width:30%">
|
|
|
<template slot="prepend">设备编号</template>
|
|
<template slot="prepend">设备编号</template>
|
|
|
</el-input>
|
|
</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%">
|
|
<!-- <el-input v-model="query.beamCode" disabled style="float:right;margin-right: 6px;width:30%">
|
|
|
<template slot="prepend">梁片编号</template>
|
|
<template slot="prepend">梁片编号</template>
|
|
|
</el-input> -->
|
|
</el-input> -->
|
|
@@ -221,35 +221,6 @@ export default {
|
|
|
playback: { anim: null, isAnimRunning: false }
|
|
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: {
|
|
methods: {
|
|
|
show(data) {
|
|
show(data) {
|
|
|
this.query.deviceCode = data.deviceCode
|
|
this.query.deviceCode = data.deviceCode
|