mark
2022-09-30 2ec95b3d2fd484b44d5274054bcbd78307a76ef8
src/views/hashrate/CameraManage/CameraRules/index.vue
@@ -64,7 +64,7 @@
            :loading="Camera.loading"
            :canvasWidth="canvasWidth"
            :canvasHeight="canvasHeight"
            :showProportion="1042 / canvasWidth"
            :showProportion="960 / canvasWidth"
            @fromCanvas="getCanvasData"
            @changeLoading="changeLoading"
            @refresh="refresh"
@@ -241,6 +241,8 @@
</template>
<script>
import { getAllTimeRule } from "@/api/timeRule"
import { jsPlumb } from "jsplumb"
import { savePolygon } from "@/api/polygon"
@@ -363,8 +365,8 @@
      cameraId: "",
      showSysInfo: true,
      showCanvas: true,
      canvasWidth: 568,
      canvasHeight: 320,
      canvasWidth: 576,
      canvasHeight: 324,
      stackId: "",
      swiperIndex: 0,
      stackFilesPage: 1,
@@ -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
      }