|
|
@@ -68,6 +68,7 @@ import { base64ToBlob } from '@/utils/base64TurnImg.js'
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
+ endNum: false, //判断是否能结束调阅
|
|
|
taskData: {},
|
|
|
hostList: [], //主机列表
|
|
|
activeNames: []
|
|
|
@@ -104,7 +105,9 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- getHostHandler() {
|
|
|
+ getHostHandler(num = '') {
|
|
|
+ this.endNum = num == 1 ? true : false
|
|
|
+
|
|
|
getSysDeviceByTaskId({ taskId: this.$route.params.id.split('_')[0] }).then(res => {
|
|
|
let { code, data, msg } = res
|
|
|
if (code == 200) {
|
|
|
@@ -115,12 +118,10 @@ export default {
|
|
|
// on close
|
|
|
this.$router.push('/monitoringCall')
|
|
|
})
|
|
|
- }else{
|
|
|
-
|
|
|
+ } else {
|
|
|
this.hostList = data
|
|
|
this.activeNames = [this.hostList[0].hostId]
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
@@ -131,13 +132,15 @@ export default {
|
|
|
//结束调阅
|
|
|
endMontor() {
|
|
|
//没有记录的时候不能结束调阅
|
|
|
- if (
|
|
|
- !this.taskData.coreMonitoringTaskRegistrationMonitorVOList ||
|
|
|
- this.taskData.coreMonitoringTaskRegistrationMonitorVOList.length == 0
|
|
|
- ) {
|
|
|
+ let falg=this.taskData.coreMonitoringTaskRegistrationMonitorVOList
|
|
|
+ if(this.endNum||(falg&&falg.length>0)){
|
|
|
+ this.$refs.scandialog.visible = true
|
|
|
+ }else{
|
|
|
Dialog({ message: '该调阅没有记录不能进行结束操作!' })
|
|
|
return
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
|
|
|
// let startDate = JSON.parse(JSON.stringify(this.taskData.taskStartTime))
|
|
|
|
|
|
@@ -147,7 +150,7 @@ export default {
|
|
|
// Dialog({ message: '该调阅未满一个小时请确认' })
|
|
|
// // 未满一小时不能结束调阅
|
|
|
// } else {
|
|
|
- this.$refs.scandialog.visible = true
|
|
|
+ // this.$refs.scandialog.visible = true
|
|
|
|
|
|
// startDate = new Date(startDate)
|
|
|
// }
|