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,11 @@ }, // 初始化摄像机信息,父组件调用 async initCameraData(id) { async initCameraData(id, devId) { devId ? false : (devId = "") getAllTimeRule(devId).then((rsp) => { this.VideoManageData.TimeRules = rsp.data.timeRules }) if (!id) { return }