mark
2022-09-30 2ec95b3d2fd484b44d5274054bcbd78307a76ef8
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
      }