From 0dbf19e9f92f5cb1d5ca9a06fd268d3b16e466e3 Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期三, 07 十二月 2022 15:22:01 +0800 Subject: [PATCH] 完善断流监控,集群和设备详情的查询 --- src/views/hashrate/CameraManage/CameraRules/index.vue | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/src/views/hashrate/CameraManage/CameraRules/index.vue b/src/views/hashrate/CameraManage/CameraRules/index.vue index 92e0f3d..f319cdd 100644 --- a/src/views/hashrate/CameraManage/CameraRules/index.vue +++ b/src/views/hashrate/CameraManage/CameraRules/index.vue @@ -241,6 +241,8 @@ </template> <script> +import { getAllTimeRule } from "@/api/timeRule" + import { jsPlumb } from "jsplumb" import { savePolygon } from "@/api/polygon" @@ -529,7 +531,12 @@ }, // 鍒濆鍖栨憚鍍忔満淇℃伅锛岀埗缁勪欢璋冪敤 - async initCameraData(id) { + async initCameraData(id, devId) { + this.$store.commit("setDevId", devId) + devId ? false : (devId = "") + getAllTimeRule(devId).then((rsp) => { + this.VideoManageData.TimeRules = rsp.data.timeRules + }) if (!id) { return } @@ -843,6 +850,7 @@ } else if (newRule.action === "edit") { //鐙珛鍦烘櫙 if (this.ruleType == "separate") { + this.SeparateRules[newRule.data.index].time_name = newRule.data.time_name this.SeparateRules[newRule.data.index].alarm_level = newRule.data.alarm_level this.SeparateRules[newRule.data.index].scene_name = newRule.data.scene_name this.SeparateRules[newRule.data.index].desc = newRule.data.desc -- Gitblit v1.8.0