zhanghua
2023-12-04 e6443cf405d4e950abe35a29e6c133d097fc1ad5
src/views/video/index.vue
@@ -5,9 +5,15 @@
    </el-aside>
    <el-container class="video-body-right">
      <el-header style="display: flex; flex-direction: column; height: 120px">
            <el-header
                style="display: flex; flex-direction: column; height: 120px"
            >
        <div
          style="display: flex; justify-content: space-between; height: 80px"
                    style="
                        display: flex;
                        justify-content: space-between;
                        height: 80px;
                    "
        >
          <span
            style="
@@ -78,7 +84,10 @@
        v-show="dialogCreate"
        :before-close="handleClose2"
      >
        <div class="dom" style="width: 100%; height: 600px; position: relative">
                <div
                    class="dom"
                    style="width: 100%; height: 600px; position: relative"
                >
          <div id="dom1" class="dom1"></div>
          <div id="dom2" class="dom2"></div>
          <div id="dom3" class="dom3"></div>
@@ -125,7 +134,11 @@
      ctrl: "ctrl1",
    };
  },
    watch: {
        '$route'(to, from) { //监听路由是否变化
            this.getVideoPointList();
        }
    },
  created() {
    this.getVideoPointList();
  },
@@ -153,15 +166,18 @@
      }
    },
    getVideoPointList(data) {
            let path = this.$route.path;
      let communityId, streetId;
      if (data) {
        communityId = data.id;
        streetId = data.parentId;
      }
      videoPoint
        .getVideoPointList({
          current: this.currentPage,
          size: this.pageSize,
                    type: path.substring(path.length - 1, path.length),
          communityId,
          streetId,
        })