|
|
@@ -19,7 +19,7 @@
|
|
|
<MonitoingList :list="item" :taskStatus="taskData.taskStatus"></MonitoingList>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <!-- ------------ -->
|
|
|
+
|
|
|
<div v-else>
|
|
|
<van-collapse-item :name="item.hostId" v-for="item in hostList" :key="item.hostId">
|
|
|
<template #title>
|
|
|
@@ -88,11 +88,11 @@ export default {
|
|
|
},
|
|
|
|
|
|
created() {
|
|
|
- this.init()
|
|
|
+ this.init(1)
|
|
|
},
|
|
|
methods: {
|
|
|
//项目初始化获取数据
|
|
|
- init() {
|
|
|
+ init(num=0) {
|
|
|
registrationList({ taskId: this.$route.params.id.split('_')[0] }).then(res => {
|
|
|
let { code, data, msg } = res
|
|
|
if (code == 200) {
|
|
|
@@ -100,24 +100,24 @@ export default {
|
|
|
|
|
|
//如果当前是调阅中则获取视频主机和通道
|
|
|
if (data && data.taskStatus < 2) {
|
|
|
- this.getHostHandler(1)
|
|
|
+ this.getHostHandler(num)
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- getHostHandlerA() {
|
|
|
- this.getHostHandler()
|
|
|
- this.init()
|
|
|
+ getHostHandlerA(num) {
|
|
|
+ // this.getHostHandler()
|
|
|
+ this.init(num)
|
|
|
},
|
|
|
getHostHandler(num = 0) {
|
|
|
// num//判断是不是第一次初始化
|
|
|
-
|
|
|
+ console.log(num);
|
|
|
getSysDeviceByTaskId({ taskId: this.$route.params.id.split('_')[0] }).then(res => {
|
|
|
let { code, data, msg } = res
|
|
|
if (code == 200) {
|
|
|
this.hostList = data
|
|
|
if (num == 1) {
|
|
|
- console.log('////')
|
|
|
+
|
|
|
this.activeNames = [this.hostList[0].hostId]
|
|
|
} else {
|
|
|
console.log(this.activeNames, '////')
|
|
|
@@ -222,7 +222,9 @@ export default {
|
|
|
|
|
|
})
|
|
|
},
|
|
|
- addActiveNames() {}
|
|
|
+ addActiveNames() {
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|