| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getAllTimeRule } from "@/api/timeRule" |
| | | |
| | | import { jsPlumb } from "jsplumb" |
| | | |
| | | import { savePolygon } from "@/api/polygon" |
| | |
| | | }, |
| | | |
| | | // 初始化摄像机信息,父组件调用 |
| | | 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 |
| | | } |
| | |
| | | } 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 |