xiangpei
2024-04-18 3bab8cb3e60c4905f87583b6e27568af6ac7db86
工单阈值调整bug
2个文件已修改
48 ■■■■ 已修改文件
src/api/platform/threshold.js 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/threshold/index.vue 42 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/platform/threshold.js
@@ -12,7 +12,7 @@
// 查询运维阈值详细
export function getVideo(id) {
  return request({
    url: '/threshold/video' + id,
    url: '/threshold/video/' + id,
    method: 'get'
  })
}
@@ -20,7 +20,7 @@
// 查询运维阈值详细
export function getCar(id) {
  return request({
    url: '/threshold/car' + id,
    url: '/threshold/car/' + id,
    method: 'get'
  })
}
@@ -28,7 +28,7 @@
// 查询运维阈值详细
export function getFace(id) {
  return request({
    url: '/threshold/face' + id,
    url: '/threshold/face/' + id,
    method: 'get'
  })
}
src/views/system/threshold/index.vue
@@ -25,17 +25,33 @@
      </el-table-column>
      <el-table-column label="工单阈值" align="center" prop="indicator">
        <template slot-scope="scope">
          <div v-for="item in JSON.parse(scope.row.indicator)" :key="item" style="display: flex;flex-direction: row">
            <div style="width: 120px;text-align: right">{{ item.label }}</div>
            <div style="width: 60px;text-align: right">{{ item.value}}</div>
          <div class="table-row" style="display: flex;flex-direction: row">
            <div class="table-row-item">图像质量</div>
            <div class="table-row-item">{{ scope.row.imageQuality }}</div>
          </div>
          <div class="table-row" style="display: flex;flex-direction: row">
            <div class="table-row-item">视频质量</div>
            <div class="table-row-item">{{ scope.row.videoQuality }}</div>
          </div>
          <div class="table-row" style="display: flex;flex-direction: row">
            <div class="table-row-item">标注准确率</div>
            <div class="table-row-item">{{ scope.row.annotationAccuracy }}</div>
          </div>
        </template>
      </el-table-column>
      <el-table-column label="下发阈值" align="center" prop="indicator">
        <template slot-scope="scope">
          <div v-for="item in JSON.parse(scope.row.indicator)" :key="item" style="display: flex;flex-direction: row">
            <div style="width: 120px;text-align: right">{{ item.label }}</div>
            <div style="width: 60px;text-align: right">{{ item.value2}}</div>
          <div class="table-row" style="display: flex;flex-direction: row">
            <div class="table-row-item">图像质量</div>
            <div class="table-row-item">{{ scope.row.imageQualityAuto }}</div>
          </div>
          <div class="table-row" style="display: flex;flex-direction: row">
            <div class="table-row-item">视频质量</div>
            <div class="table-row-item">{{ scope.row.videoQualityAuto }}</div>
          </div>
          <div class="table-row" style="display: flex;flex-direction: row">
            <div class="table-row-item">标注准确率</div>
            <div class="table-row-item">{{ scope.row.annotationAccuracyAuto }}</div>
          </div>
        </template>
      </el-table-column>
@@ -346,17 +362,17 @@
    /** 修改按钮操作 */
    updateWho(row) {
      if (row.monitorType === 'face') {
        getFace(id).then(response => {
        getFace(row.id).then(response => {
          this.faceForm = response.data
          this.faceOpen = true;
        })
      } else if (row.monitorType === 'car') {
        getCar(id).then(response => {
        getCar(row.id).then(response => {
          this.carForm = response.data
          this.carOpen = true;
        })
      } else {
        getVideo(id).then(response => {
        getVideo(row.id).then(response => {
          this.videoForm = response.data
          this.videoOpen = true;
        })
@@ -501,4 +517,12 @@
.el-input-half-width {
  width: calc(50% - 6px); /* 减去一些间隔 */
}
.table-row {
  display: flex;
  flex-direction: row;
}
.table-row-item {
  width: 120px;
  text-align: center;
}
</style>