From d498cdcf61fd8e2ec341cad3e7c21829ecef1672 Mon Sep 17 00:00:00 2001 From: sd <shidong@jhsoft.cc> Date: 星期二, 26 八月 2025 17:44:18 +0800 Subject: [PATCH] 摄像机配置、数据推送和文搜万物 bug和样式修复; 知识库卡片样式调整参照大模型平台知识库样式。 --- src/Pool/VideoCapture.ts | 18 +++++++++++------- 1 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/Pool/VideoCapture.ts b/src/Pool/VideoCapture.ts index 95c4e91..bf1070a 100644 --- a/src/Pool/VideoCapture.ts +++ b/src/Pool/VideoCapture.ts @@ -1,4 +1,4 @@ -import { initCaptureData, monitorRealTimeCaptureData } from "@/api/task"; +import { initCaptureData,initCaptureDataTwo, monitorRealTimeCaptureData } from "@/api/task"; export default class VideoCapture { public cards: Array<object> = []; @@ -12,15 +12,18 @@ } public async initCards() { - const rsp: any = await initCaptureData({ + // const rsp: any = await initCaptureData({ + // treeNodes: this.cameras + // }); + const rsp: any = await initCaptureDataTwo({ treeNodes: this.cameras }); - if (rsp && rsp.success && rsp.data.datalist) { + if (rsp && rsp.success && rsp.data.list.datalist) { this.cards = []; this.cards.splice(0, this.cards.length) - rsp.data.datalist.forEach(element => { + rsp.data.list.datalist.forEach(element => { this.cards.push(element) // var obj = { // activeObject: (element as any), @@ -38,12 +41,12 @@ public async monitorCapture() { const rsp: any = await monitorRealTimeCaptureData({ - // treeNodes: this.cameras + treeNodes: this.cameras }); if (rsp && rsp.success) { - if (rsp.data.datalist && rsp.data.datalist.length > 0) { - rsp.data.datalist.reverse().forEach(element => { + if (rsp.data.list.datalist && rsp.data.list.datalist.length > 0) { + rsp.data.list.datalist.reverse().forEach(element => { let rt = this.cards.filter((c: any) => { return c.activeObject.id === element.activeObject.id }) @@ -67,6 +70,7 @@ this.firstCardId = this.cards[0]["activeObject"].id console.log(this.firstCardId ) } + // console.info("card:"+JSON.stringify(this.cards[0])) } } -- Gitblit v1.8.0