hanbaoshan
2020-10-15 355de6d28489e9ff3d17138575c2fef32266930e
src/pages/analysisPower/index/App.vue
@@ -60,7 +60,7 @@
          border
          :cell-style="cellStyle"
        >
          <el-table-column label="序号" type="index" align="center" width="100px"></el-table-column>
          <el-table-column label="序号" type="index" align="center" width="60px"></el-table-column>
          <el-table-column label="摄像机名称" align="center" show-overflow-tooltip sortable>
            <template slot-scope="scope">
              <span
@@ -70,7 +70,7 @@
          </el-table-column>
          <el-table-column label="摄像机地址" prop="addr" align="center" show-overflow-tooltip sortable></el-table-column>
          <el-table-column label="摄像机IP" prop="ip" align="center" width="130px" sortable></el-table-column>
          <el-table-column label="摄像机类型" align="center" width="110px" sortable>
          <el-table-column label="摄像机类型" align="center" width="120px" sortable>
            <template slot-scope="scope">
              <span>{{scope.row.run_type | cameraType}}</span>
            </template>
@@ -118,7 +118,7 @@
      title="算力设置"
      :visible.sync="drawer"
      direction="rtl"
      size="350px"
      size="450px"
      custom-class="e-drawer"
      :before-close="closeDrawer"
    >
@@ -228,7 +228,13 @@
        }
      })
      return sumPollingCamera * this.PollData.Config.poll_period
      // 所有轮询的摄像机总数 * 轮询时间 / 轮询算力 - 1
      let ret = (sumPollingCamera * this.PollData.Config.poll_period) / this.PollData.PollValidCount - 1
      if (String(ret).indexOf(".") > 0) {
        ret = ret.toFixed(1)
      }
      return ret
    }
  },
  data() {
@@ -267,7 +273,8 @@
    initFormData() {
      this.formData = {
        totalChanle: this.PollData.channelTotal,
        realTime: this.PollData.RealTimeSum,
        //realTime: this.PollData.RealTimeSum,
        realTime: this.PollData.RealTimeValidCount,
        pollEnable: this.PollData.Enabled,
        pollPeriod: this.PollData.Config.poll_period,
        polling: this.PollData.PollChannelTotal,
@@ -483,8 +490,8 @@
      }
      // console.log("this.formData.polling:"+this.formData.polling)
    },
    cellStyle(obj){
      if(obj.column.label=='摄像机名称'||obj.column.label=='摄像机地址'){
    cellStyle(obj) {
      if (obj.column.label == '摄像机名称' || obj.column.label == '摄像机地址') {
        return 'text-align:left;padding-left:8px;'
      }
    }
@@ -503,7 +510,9 @@
    height: 190px;
    min-width: 1609px;
    display: flex;
    .sysinfo-box .eCharts-box {
      width: 36%;
    }
    .progressBar {
      width: 26%;
    }
@@ -513,7 +522,6 @@
      //float: left;
      padding-left: 30px;
      box-sizing: border-box;
    }
    .barGraph {
      width: 16%;
@@ -573,9 +581,16 @@
.e-drawer {
  // margin-top: 150px;
  font-family: PingFangSC-Medium;
  font-size: 14px;
  &:focus {
    outline: none;
  }
  .el-dialog__close {
    &:focus {
      outline: none !important;
    }
  }
  .dawer_details {
    text-align: left;
    margin-left: 70px;
@@ -596,7 +611,17 @@
  }
  .el-drawer__header {
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    font-size: 16px;
    margin-bottom: 0px;
    span {
      border: none !important;
      border-image-width: 0 !important;
      &:focus {
        outline: none;
      }
    }
  }
}
</style>