监控修改
This commit is contained in:
parent
ba344a503a
commit
efe0e77a1d
@ -54,6 +54,8 @@ const install = (Vue, vm) => {
|
||||
//预警处理
|
||||
warnsProcess:(params = {})=>vm.$u.post(config.adminPath+'/sis/alarmEvents/complete',params),
|
||||
|
||||
getWarnDetail:(params = {}, id) => vm.$u.get(config.adminPath+`/sis/alarmEvents/${id}`,params),
|
||||
|
||||
//巡检任务列表
|
||||
getInspection:(params = {})=>vm.$u.get(config.adminPath+'/property/item/list',params),
|
||||
|
||||
|
@ -120,6 +120,7 @@ export default {
|
||||
this.pageType = options.pageType;
|
||||
}
|
||||
},
|
||||
|
||||
computed: {
|
||||
warnInfoList() {
|
||||
return [
|
||||
@ -134,7 +135,17 @@ export default {
|
||||
];
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.loadDetail();
|
||||
},
|
||||
methods: {
|
||||
async loadDetail() {
|
||||
let res = await this.$u.api.getWarnDetail({}, this.warnInfo.id);
|
||||
if (res.code == "200") {
|
||||
|
||||
}
|
||||
this.loading = false;
|
||||
},
|
||||
// 处理文件列表变化
|
||||
onListChange(list) {
|
||||
this.selectedImages = list;
|
||||
@ -149,6 +160,7 @@ export default {
|
||||
this.handleStatus = status;
|
||||
this.showStatusPopup = false;
|
||||
},
|
||||
|
||||
async submit() {
|
||||
this.loading = true;
|
||||
if (this.selectedImages.length <= 0) {
|
||||
|
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<view>
|
||||
<view v-if="node.children && node.children.length" class="tree-title" @click="toggle">
|
||||
<view v-if="node.level ==1" class="tree-title" @click="toggle">
|
||||
<text>{{ expanded ? '▼' : '▶' }} {{ node.title }}</text>
|
||||
</view>
|
||||
|
||||
|
@ -47,12 +47,13 @@ export default {
|
||||
methods: {
|
||||
async getPlay() {
|
||||
let params = {
|
||||
"videoIp": this.detailItem.deviceIp,
|
||||
"factoryNo":this.detailItem.factoryNo,
|
||||
"account":this.detailItem.deviceAccount,
|
||||
"pwd":this.detailItem.devicePwd,
|
||||
"channelId":this.detailItem.channelNo
|
||||
videoIp: this.detailItem.deviceIp,
|
||||
factoryNo:this.detailItem.factoryNo,
|
||||
account:this.detailItem.deviceAccount,
|
||||
pwd:this.detailItem.devicePwd,
|
||||
channelId:this.detailItem.channelNo
|
||||
}
|
||||
console.log("t1",params)
|
||||
let res = await this.$u.api.getPlay(params);
|
||||
if (res.code == 200) {
|
||||
this.videoSrc = res.data.hls
|
||||
|
Loading…
Reference in New Issue
Block a user