ZZJ
2021-10-13 878ce80ef3ca88a2c108fbc713cd6ea461c44de1
src/pages/syslog/views/pollingLog.vue
@@ -11,7 +11,7 @@
          <div class="opts">
            <div class="opt" @click="openDialog">选择摄像机</div>
          </div>
          <div class="pick-num">已选({{pickNum}})</div>
          <div class="pick-num">已选 : {{ pickNum }}</div>
        </div>
        <div class="search">
          <el-input
@@ -77,11 +77,22 @@
        ></el-table-column>
        <el-table-column
          :align="'center'"
          prop="procName"
          prop="minute"
          label="轮询时长(分)"
        ></el-table-column>
      </el-table>
    </div>
    <el-pagination
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :current-page="page"
      :page-sizes="[15, 30, 50, 100]"
      :page-size="15"
      layout="total, sizes, prev, pager, next, jumper"
      :total="total"
    >
    </el-pagination>
    <el-dialog
      title="选择摄像机"
@@ -142,7 +153,7 @@
      dialogVisible: false,
      procID: "",
      procName: "",
      pickNum:0
      pickNum: 0,
    };
  },
  mounted() {
@@ -151,6 +162,14 @@
    this.getOptions();
  },
  methods: {
    handleSizeChange(val) {
      this.pageSize = val;
      this.getOperationLog();
    },
    handleCurrentChange(val) {
      this.page = val;
      this.getOperationLog();
    },
    cancelShow() {
      this.dialogVisible = false;
      this.pickAllNot();
@@ -163,7 +182,7 @@
    },
    confirmCamera() {
      const selectedIDs = this.$refs.cameraTree.getCheckedKeys();
      this.pickNum = selectedIDs.length
      this.pickNum = selectedIDs.length;
      this.procID = selectedIDs.join(",");
      this.getScheduleLog();
      this.dialogVisible = false;
@@ -279,15 +298,17 @@
        display: flex;
        justify-content: space-between;
        align-items: center;
        .title,.pick-num {
        .title,
        .pick-num {
          margin-right: 10px;
          font-size: 14px;
          min-width: fit-content;
        }
        .opts {
          display: flex;
          justify-content: space-between;
          .opt {
            width: fit-content;
            width: 70px;
            height: 32px;
            padding: 0 15px;
            border-radius: 4px;
@@ -327,6 +348,7 @@
    border-radius: 5px;
    padding: 12px;
    background-color: white;
    .tableBox {
      th {
        padding: 0 !important;
@@ -340,5 +362,11 @@
      }
    }
  }
  .el-pagination {
    padding: 20px 5px;
    height: 100%;
    box-sizing: border-box;
    background-color: white;
  }
}
</style>