监控修改

This commit is contained in:
liyuanchao 2025-08-19 15:09:48 +08:00
parent ba344a503a
commit efe0e77a1d
4 changed files with 21 additions and 6 deletions

View File

@ -54,6 +54,8 @@ const install = (Vue, vm) => {
//预警处理 //预警处理
warnsProcess:(params = {})=>vm.$u.post(config.adminPath+'/sis/alarmEvents/complete',params), 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), getInspection:(params = {})=>vm.$u.get(config.adminPath+'/property/item/list',params),

View File

@ -120,6 +120,7 @@ export default {
this.pageType = options.pageType; this.pageType = options.pageType;
} }
}, },
computed: { computed: {
warnInfoList() { warnInfoList() {
return [ return [
@ -134,7 +135,17 @@ export default {
]; ];
} }
}, },
created() {
this.loadDetail();
},
methods: { methods: {
async loadDetail() {
let res = await this.$u.api.getWarnDetail({}, this.warnInfo.id);
if (res.code == "200") {
}
this.loading = false;
},
// //
onListChange(list) { onListChange(list) {
this.selectedImages = list; this.selectedImages = list;
@ -149,6 +160,7 @@ export default {
this.handleStatus = status; this.handleStatus = status;
this.showStatusPopup = false; this.showStatusPopup = false;
}, },
async submit() { async submit() {
this.loading = true; this.loading = true;
if (this.selectedImages.length <= 0) { if (this.selectedImages.length <= 0) {

View File

@ -1,6 +1,6 @@
<template> <template>
<view> <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> <text>{{ expanded ? '▼' : '▶' }} {{ node.title }}</text>
</view> </view>

View File

@ -47,12 +47,13 @@ export default {
methods: { methods: {
async getPlay() { async getPlay() {
let params = { let params = {
"videoIp": this.detailItem.deviceIp, videoIp: this.detailItem.deviceIp,
"factoryNo":this.detailItem.factoryNo, factoryNo:this.detailItem.factoryNo,
"account":this.detailItem.deviceAccount, account:this.detailItem.deviceAccount,
"pwd":this.detailItem.devicePwd, pwd:this.detailItem.devicePwd,
"channelId":this.detailItem.channelNo channelId:this.detailItem.channelNo
} }
console.log("t1",params)
let res = await this.$u.api.getPlay(params); let res = await this.$u.api.getPlay(params);
if (res.code == 200) { if (res.code == 200) {
this.videoSrc = res.data.hls this.videoSrc = res.data.hls