黄何裕
2024-07-22 ce59cac766bd4f0fb70555bff1c08875181e03bf
src/views/system/work-order/threshold/index.vue
@@ -24,11 +24,15 @@
                type="text"
                icon="el-icon-edit"
                v-hasPermi="['ycl:threshold:edit']"
                @click="a()"
                v-if="!ifEdit"
                @click="showEdit('video')"
                v-if="!ifEditVideo"
                >修改
              </el-button>
              <el-button size="mini" type="primary" @click="a()" v-if="ifEdit"
              <el-button
                size="mini"
                type="primary"
                @click="saveEdit('video')"
                v-if="ifEditVideo"
                >保存
              </el-button>
            </div>
@@ -47,83 +51,28 @@
                  font-size: small;
                  display: flex;
                  flex-direction: row-reverse;
                  width: 172px;
                  width: 192px;
                "
                >工单阈值</div
              >
                工单阈值
              </div>
              <div>
                <el-form label-width="120px">
                  <el-form-item label="模糊分值:">
                <el-form label-width="140px">
                  <el-form-item
                    v-for="(item, index) in thresholdList.video"
                    :label="item.name + ':'"
                    :key="item.id"
                  >
                    <el-input
                      v-model="videoList.blur"
                      v-model="videoList[index].value"
                      size="mini"
                      style="width: 100px"
                      v-if="ifEdit"
                      :type="item.countType=='int'?'number':''"
                      v-if="ifEditVideo"
                    ></el-input>
                    <span v-else>{{ thresholdList[0].blur }}</span>
                  </el-form-item>
                  <el-form-item label="颜色分值:">
                    <el-input
                      v-model="videoList.color"
                      size="mini"
                      style="width: 100px"
                      v-if="ifEdit"
                    ></el-input>
                    <span v-else>{{ thresholdList[0].color }}</span>
                  </el-form-item>
                  <el-form-item label="亮度分值:">
                    <el-input
                      v-model="videoList.light"
                      size="mini"
                      style="width: 100px"
                      v-if="ifEdit"
                    ></el-input>
                    <span v-else>{{ thresholdList[0].light }}</span>
                  </el-form-item>
                  <el-form-item label="遮挡分值:">
                    <el-input
                      v-model="videoList.shade"
                      size="mini"
                      style="width: 100px"
                      v-if="ifEdit"
                    ></el-input>
                    <span v-else>{{ thresholdList[0].shade }}</span>
                  </el-form-item>
                  <el-form-item label="雪花分值:">
                    <el-input
                      v-model="videoList.snow"
                      size="mini"
                      style="width: 100px"
                      v-if="ifEdit"
                    ></el-input>
                    <span v-else>{{ thresholdList[0].snow }}</span>
                  </el-form-item>
                  <el-form-item label="条纹分值:">
                    <el-input
                      v-model="videoList.stripe"
                      size="mini"
                      style="width: 100px"
                      v-if="ifEdit"
                    ></el-input>
                    <span v-else>{{ thresholdList[0].stripe }}</span>
                  </el-form-item>
                  <el-form-item label="无信号分值:">
                    <el-input
                      v-model="videoList.signal"
                      size="mini"
                      style="width: 100px"
                      v-if="ifEdit"
                    ></el-input>
                    <span v-else>{{ thresholdList[0].signal }}</span>
                  </el-form-item>
                  <el-form-item label="标注时间差(秒):">
                    <el-input
                      v-model="videoList.diffTime"
                      size="mini"
                      style="width: 100px"
                      v-if="ifEdit"
                    ></el-input>
                    <span v-else>{{ thresholdList[0].diffTime }}</span>
                    <span v-else>{{ item.value }}</span>
                    <span v-if="item.countType=='percent'">%</span>
                    <span v-if="item.countType=='second'">秒</span>
                  </el-form-item>
                </el-form>
              </div>
@@ -131,78 +80,22 @@
            <div>
              <span style="font-size: small">下发阈值</span>
              <div>
                <el-form ref="form" :model="thresholdList[0]">
                  <el-form-item label="">
                <el-form ref="form">
                  <el-form-item
                    v-for="(item, index) in thresholdList.video"
                    label=""
                    :key="item.id"
                  >
                    <el-input
                      v-model="videoList.blur"
                      v-model="videoList[index].valueAuto"
                      size="mini"
                      style="width: 100px"
                      v-if="ifEdit"
                      :type="item.countType=='int'?'number':''"
                      v-if="ifEditVideo"
                    ></el-input>
                    <span v-else>{{ thresholdList[0].blur }}</span>
                  </el-form-item>
                  <el-form-item label="">
                    <el-input
                      v-model="videoList.color"
                      size="mini"
                      style="width: 100px"
                      v-if="ifEdit"
                    ></el-input>
                    <span v-else>{{ thresholdList[0].color }}</span>
                  </el-form-item>
                  <el-form-item label="">
                    <el-input
                      v-model="videoList.light"
                      size="mini"
                      style="width: 100px"
                      v-if="ifEdit"
                    ></el-input>
                    <span v-else>{{ thresholdList[0].light }}</span>
                  </el-form-item>
                  <el-form-item label="">
                    <el-input
                      v-model="videoList.shade"
                      size="mini"
                      style="width: 100px"
                      v-if="ifEdit"
                    ></el-input>
                    <span v-else>{{ thresholdList[0].shade }}</span>
                  </el-form-item>
                  <el-form-item label="">
                    <el-input
                      v-model="videoList.snow"
                      size="mini"
                      style="width: 100px"
                      v-if="ifEdit"
                    ></el-input>
                    <span v-else>{{ thresholdList[0].snow }}</span>
                  </el-form-item>
                  <el-form-item label="">
                    <el-input
                      v-model="videoList.stripe"
                      size="mini"
                      style="width: 100px"
                      v-if="ifEdit"
                    ></el-input>
                    <span v-else>{{ thresholdList[0].stripe }}</span>
                  </el-form-item>
                  <el-form-item label="">
                    <el-input
                      v-model="videoList.signal"
                      size="mini"
                      style="width: 100px"
                      v-if="ifEdit"
                    ></el-input>
                    <span v-else>{{ thresholdList[0].signal }}</span>
                  </el-form-item>
                  <el-form-item label="">
                    <el-input
                      v-model="videoList.difftime"
                      size="mini"
                      style="width: 100px"
                      v-if="ifEdit"
                    ></el-input>
                    <span v-else>{{ thresholdList[0].difftime }}</span>
                    <span v-else>{{ item.valueAuto }}</span>
                    <span v-if="item.countType=='percent'">%</span>
                    <span v-if="item.countType=='second'">秒</span>
                  </el-form-item>
                </el-form>
              </div>
@@ -220,11 +113,15 @@
                type="text"
                icon="el-icon-edit"
                v-hasPermi="['ycl:threshold:edit']"
                @click="a()"
                v-if="!ifEdit"
                @click="showEdit('face')"
                v-if="!ifEditFace"
                >修改
              </el-button>
              <el-button size="mini" type="primary" @click="b()" v-if="ifEdit"
              <el-button
                size="mini"
                type="primary"
                @click="saveEdit('face')"
                v-if="ifEditFace"
                >保存
              </el-button>
            </div>
@@ -245,131 +142,50 @@
                  flex-direction: row-reverse;
                  width: 190px;
                "
                >工单阈值</div
              >
                工单阈值
              </div>
              <div>
                <el-form label-width="140px">
                  <el-form-item label="时钟准确率:">
                    <el-input
                      v-model="faceList.clockPercent"
                      size="mini"
                      style="width: 100px"
                      v-if="ifEdit"
                    ></el-input>
                    <span v-else>{{ thresholdList[1].clockPercent }}</span>
                  </el-form-item>
                  <el-form-item label="数据及时率:">
                    <el-input
                      v-model="faceList.timelyPercent"
                      size="mini"
                      style="width: 100px"
                      v-if="ifEdit"
                    ></el-input>
                    <span v-else>{{ thresholdList[1].timelyPercent }}</span>
                  </el-form-item>
                  <el-form-item label="不唯一数据量:">
                    <el-input
                      v-model="faceList.nouniqueCount"
                      size="mini"
                      style="width: 100px"
                      v-if="ifEdit"
                    ></el-input>
                    <span v-else>{{ thresholdList[1].nouniqueCount }}</span>
                  </el-form-item>
                  <el-form-item label="建模失败率:">
                    <el-input
                      v-model="faceList.failPercent"
                      size="mini"
                      style="width: 100px"
                      v-if="ifEdit"
                    ></el-input>
                    <span v-else>{{ thresholdList[1].failPercent }}</span>
                  </el-form-item>
                  <el-form-item label="平均人脸低评分率:">
                    <el-input
                      v-model="faceList.lowScorePercent"
                      size="mini"
                      style="width: 100px"
                      v-if="ifEdit"
                    ></el-input>
                    <span v-else>{{
                      thresholdList[1].lowScorePercent
                    }}</span></el-form-item
                  <el-form-item
                    v-for="(item, index) in thresholdList.face"
                    :label="item.name + ':'"
                    :key="item.id"
                  >
                  <el-form-item label="持续无数据天数:">
                    <el-input
                      v-model="thresholdList[0].continueNoDataCount"
                      v-model="faceList[index].value"
                      size="mini"
                      style="width: 100px"
                      v-if="ifEdit"
                      :type="item.countType=='int'?'number':''"
                      v-if="ifEditFace"
                    ></el-input>
                    <span v-else>{{ 10 }}</span></el-form-item
                  >
                    <span v-else>{{ item.value }}</span>
                    <span v-if="item.countType=='percent'">%</span>
                    <span v-if="item.countType=='second'">秒</span>
                  </el-form-item>
                </el-form>
              </div>
            </div>
            <div>
              <span style="font-size: small">下发阈值</span>
              <div>
                <el-form
                  ref="form"
                  :model="thresholdList[0]"
                >
                  <el-form-item label="">
                    <el-input
                      v-model="thresholdList[1].clockPercent"
                      size="mini"
                      style="width: 100px"
                      v-if="ifEdit"
                    ></el-input>
                    <span v-else>{{
                      thresholdList[1].clockPercent
                    }}</span></el-form-item
                <el-form ref="form">
                  <el-form-item
                    v-for="(item, index) in thresholdList.face"
                    label=""
                    :key="item.id"
                  >
                  <el-form-item label="">
                    <el-input
                      v-model="thresholdList[0].timelyPercent"
                      v-model="faceList[index].valueAuto"
                      size="mini"
                      style="width: 100px"
                      v-if="ifEdit"
                      :type="item.countType=='int'?'number':''"
                      v-if="ifEditFace"
                    ></el-input>
                    <span v-else>{{ 10 }}</span></el-form-item
                  >
                  <el-form-item label="">
                    <el-input
                      v-model="thresholdList[0].nouniqueCount"
                      size="mini"
                      style="width: 100px"
                      v-if="ifEdit"
                    ></el-input>
                    <span v-else>{{ 10 }}</span></el-form-item
                  >
                  <el-form-item label="">
                    <el-input
                      v-model="thresholdList[0].failPercent"
                      size="mini"
                      style="width: 100px"
                      v-if="ifEdit"
                    ></el-input>
                    <span v-else>{{ 10 }}</span></el-form-item
                  >
                  <el-form-item label="">
                    <el-input
                      v-model="thresholdList[0].lowScorePercent"
                      size="mini"
                      style="width: 100px"
                      v-if="ifEdit"
                    ></el-input>
                    <span v-else>{{ 10 }}</span></el-form-item
                  >
                  <el-form-item label="">
                    <el-input
                      v-model="thresholdList[0].continueNoDataCount"
                      size="mini"
                      style="width: 100px"
                      v-if="ifEdit"
                    ></el-input>
                    <span v-else>{{ 10 }}</span></el-form-item
                    <span v-else>{{ item.valueAuto }}</span>
                    <span v-if="item.countType=='percent'">%</span>
                    <span v-if="item.countType=='second'">秒</span>
                    </el-form-item
                  >
                </el-form>
              </div>
@@ -387,11 +203,15 @@
                type="text"
                icon="el-icon-edit"
                v-hasPermi="['ycl:threshold:edit']"
                @click="a()"
                v-if="!ifEdit"
                @click="showEdit('car')"
                v-if="!ifEditCar"
                >修改
              </el-button>
              <el-button size="mini" type="primary" @click="a()" v-if="ifEdit"
              <el-button
                size="mini"
                type="primary"
                @click="saveEdit('car')"
                v-if="ifEditCar"
                >保存
              </el-button>
            </div>
@@ -412,67 +232,26 @@
                  flex-direction: row-reverse;
                  width: 232px;
                "
                >工单阈值</div
              >
                工单阈值
              </div>
              <div>
                <el-form
                  ref="form"
                  :model="thresholdList[0]"
                  label-width="180px"
                >
                  <el-form-item label="时钟准确率:">
                <el-form ref="form" label-width="180px">
                  <el-form-item
                    v-for="(item, index) in thresholdList.car"
                    :label="item.name + ':'"
                    :key="item.id"
                  >
                    <el-input
                      v-model="thresholdList[0].clockPercent"
                      v-model="carList[index].value"
                      size="mini"
                      style="width: 100px"
                      v-if="ifEdit"
                      :type="item.countType=='int'?'number':''"
                      v-if="ifEditCar"
                    ></el-input>
                    <span v-else>{{ 10 }}</span>
                  </el-form-item>
                  <el-form-item label="数据及时率:">
                    <el-input
                      v-model="thresholdList[0].timelyPercent"
                      size="mini"
                      style="width: 100px"
                      v-if="ifEdit"
                    ></el-input>
                    <span v-else>{{ 10 }}</span>
                  </el-form-item>
                  <el-form-item label="不唯一数据量:">
                    <el-input
                      v-model="thresholdList[0].nouniqueCount"
                      size="mini"
                      style="width: 100px"
                      v-if="ifEdit"
                    ></el-input>
                    <span v-else>{{ 10 }}</span>
                  </el-form-item>
                  <el-form-item label="车牌未识别量:">
                    <el-input
                      v-model="thresholdList[0].dayNoNumberCount"
                      size="mini"
                      style="width: 100px"
                      v-if="ifEdit"
                    ></el-input>
                    <span v-else>{{ 10 }}</span>
                  </el-form-item>
                  <el-form-item label="车辆六项属性不完整量:">
                    <el-input
                      v-model="thresholdList[0].noIntegrityCount"
                      size="mini"
                      style="width: 100px"
                      v-if="ifEdit"
                    ></el-input>
                    <span v-else>{{ 10 }}</span>
                  </el-form-item>
                  <el-form-item label="持续无数据天数:">
                    <el-input
                      v-model="thresholdList[0].continueNoDataCount"
                      size="mini"
                      style="width: 100px"
                      v-if="ifEdit"
                    ></el-input>
                    <span v-else>{{ 10 }}</span>
                    <span v-else>{{ item.value }}</span>
                    <span v-if="item.countType=='percent'">%</span>
                    <span v-if="item.countType=='second'">秒</span>
                  </el-form-item>
                </el-form>
              </div>
@@ -480,63 +259,22 @@
            <div>
              <span style="font-size: small">下发阈值</span>
              <div>
                <el-form
                  ref="form"
                  :model="thresholdList[0]"
                >
                  <el-form-item label="">
                <el-form ref="form">
                  <el-form-item
                    v-for="(item, index) in thresholdList.car"
                    label=""
                    :key="item.id"
                  >
                    <el-input
                      v-model="thresholdList[0].clockPercent"
                      v-model="carList[index].valueAuto"
                      size="mini"
                      style="width: 100px"
                      v-if="ifEdit"
                      :type="item.countType=='int'?'number':''"
                      v-if="ifEditCar"
                    ></el-input>
                    <span v-else>{{ 10 }}</span>
                  </el-form-item>
                  <el-form-item label="">
                    <el-input
                      v-model="thresholdList[0].timelyPercent"
                      size="mini"
                      style="width: 100px"
                      v-if="ifEdit"
                    ></el-input>
                    <span v-else>{{ 10 }}</span>
                  </el-form-item>
                  <el-form-item label="">
                    <el-input
                      v-model="thresholdList[0].nouniqueCount"
                      size="mini"
                      style="width: 100px"
                      v-if="ifEdit"
                    ></el-input>
                    <span v-else>{{ 10 }}</span>
                  </el-form-item>
                  <el-form-item label="">
                    <el-input
                      v-model="thresholdList[0].dayNoNumberCount"
                      size="mini"
                      style="width: 100px"
                      v-if="ifEdit"
                    ></el-input>
                    <span v-else>{{ 10 }}</span>
                  </el-form-item>
                  <el-form-item label="">
                    <el-input
                      v-model="thresholdList[0].noIntegrityCount"
                      size="mini"
                      style="width: 100px"
                      v-if="ifEdit"
                    ></el-input>
                    <span v-else>{{ 10 }}</span>
                  </el-form-item>
                  <el-form-item label="">
                    <el-input
                      v-model="thresholdList[0].continueNoDataCount"
                      size="mini"
                      style="width: 100px"
                      v-if="ifEdit"
                    ></el-input>
                    <span v-else>{{ 10 }}</span>
                    <span v-else>{{ item.valueAuto }}</span>
                    <span v-if="item.countType=='percent'">%</span>
                    <span v-if="item.countType=='second'">秒</span>
                  </el-form-item>
                </el-form>
              </div>
@@ -545,203 +283,6 @@
        </el-card></el-col
      >
    </el-row>
    <!-- <el-table
      v-loading="loading"
      :data="thresholdList"
      @selection-change="handleSelectionChange"
    >
      <el-table-column type="selection" width="55" align="center" />
      <el-table-column label="设备类型" align="center" prop="monitorType">
        <template slot-scope="scope">
          <span v-show="scope.row['monitorType'] === 'face'">人脸</span>
          <span v-show="scope.row['monitorType'] === 'car'">车辆</span>
          <span v-show="scope.row['monitorType'] === 'video'">视频</span>
        </template>
      </el-table-column>
      <el-table-column label="工单阈值" align="center">
        <template slot-scope="scope">
          <template v-if="scope.row.monitorType === 'face'">
            <div class="table-row">
              <div class="table-row-item">抓拍量</div>
              <div class="table-row-item">{{ scope.row.captureNum }}</div>
            </div>
            <div class="table-row">
              <div class="table-row-item">及时率</div>
              <div class="table-row-item">{{ scope.row.timelyRate }}</div>
            </div>
            <div class="table-row">
              <div class="table-row-item">延迟量</div>
              <div class="table-row-item">{{ scope.row.delayAmount }}</div>
            </div>
            <div class="table-row">
              <div class="table-row-item">设备活跃率</div>
              <div class="table-row-item">{{ scope.row.deviceActiveRate }}</div>
            </div>
            <div class="table-row">
              <div class="table-row-item">抓拍及时率</div>
              <div class="table-row-item">{{ scope.row.timelyCapture }}</div>
            </div>
            <div class="table-row">
              <div class="table-row-item">时钟准确率</div>
              <div class="table-row-item">{{ scope.row.timeAccuracy }}</div>
            </div>
          </template>
          <template v-else-if="scope.row.monitorType === 'car'">
            <div class="table-row">
              <div class="table-row-item">过车数据量</div>
              <div class="table-row-item">{{ scope.row.passCarNum }}</div>
            </div>
            <div class="table-row">
              <div class="table-row-item">过车缺失率</div>
              <div class="table-row-item">{{ scope.row.passCarMissRate }}</div>
            </div>
            <div class="table-row">
              <div class="table-row-item">有效过车数据量</div>
              <div class="table-row-item">
                {{ scope.row.passCarEffectiveNum }}
              </div>
            </div>
            <div class="table-row">
              <div class="table-row-item">设备活跃率</div>
              <div class="table-row-item">{{ scope.row.deviceActiveRate }}</div>
            </div>
            <div class="table-row">
              <div class="table-row-item">抓拍及时率</div>
              <div class="table-row-item">{{ scope.row.timelyCapture }}</div>
            </div>
            <div class="table-row">
              <div class="table-row-item">时钟准确率</div>
              <div class="table-row-item">{{ scope.row.timeAccuracy }}</div>
            </div>
          </template>
          <template v-else-if="scope.row.monitorType === 'video'">
            <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>
        </template>
      </el-table-column>
      <el-table-column label="下发阈值" align="center">
        <template slot-scope="scope">
          <template v-if="scope.row.monitorType === 'face'">
            <div class="table-row">
              <div class="table-row-item">抓拍量</div>
              <div class="table-row-item">{{ scope.row.captureNumAuto }}</div>
            </div>
            <div class="table-row">
              <div class="table-row-item">及时率</div>
              <div class="table-row-item">{{ scope.row.timelyRateAuto }}</div>
            </div>
            <div class="table-row">
              <div class="table-row-item">延迟量</div>
              <div class="table-row-item">{{ scope.row.delayAmountAuto }}</div>
            </div>
            <div class="table-row">
              <div class="table-row-item">设备活跃率</div>
              <div class="table-row-item">
                {{ scope.row.deviceActiveRateAuto }}
              </div>
            </div>
            <div class="table-row">
              <div class="table-row-item">抓拍及时率</div>
              <div class="table-row-item">
                {{ scope.row.timelyCaptureAuto }}
              </div>
            </div>
            <div class="table-row">
              <div class="table-row-item">时钟准确率</div>
              <div class="table-row-item">{{ scope.row.timeAccuracyAuto }}</div>
            </div>
          </template>
          <template v-else-if="scope.row.monitorType === 'car'">
            <div class="table-row">
              <div class="table-row-item">过车数据量</div>
              <div class="table-row-item">{{ scope.row.passCarNumAuto }}</div>
            </div>
            <div class="table-row">
              <div class="table-row-item">过车缺失率</div>
              <div class="table-row-item">
                {{ scope.row.passCarMissRateAuto }}
              </div>
            </div>
            <div class="table-row">
              <div class="table-row-item">有效过车数据量</div>
              <div class="table-row-item">
                {{ scope.row.passCarEffectiveNumAuto }}
              </div>
            </div>
            <div class="table-row">
              <div class="table-row-item">设备活跃率</div>
              <div class="table-row-item">
                {{ scope.row.deviceActiveRateAuto }}
              </div>
            </div>
            <div class="table-row">
              <div class="table-row-item">抓拍及时率</div>
              <div class="table-row-item">
                {{ scope.row.timelyCaptureAuto }}
              </div>
            </div>
            <div class="table-row">
              <div class="table-row-item">时钟准确率</div>
              <div class="table-row-item">{{ scope.row.timeAccuracyAuto }}</div>
            </div>
          </template>
          <template v-else-if="scope.row.monitorType === 'video'">
            <div class="table-row">
              <div class="table-row-item">图像质量</div>
              <div class="table-row-item">{{ scope.row.imageQualityAuto }}</div>
            </div>
            <div class="table-row">
              <div class="table-row-item">视频质量</div>
              <div class="table-row-item">{{ scope.row.videoQualityAuto }}</div>
            </div>
            <div class="table-row">
              <div class="table-row-item">标注准确率</div>
              <div class="table-row-item">
                {{ scope.row.annotationAccuracyAuto }}
              </div>
            </div>
          </template>
        </template>
      </el-table-column>
      <el-table-column
        label="操作"
        align="center"
        class-name="small-padding fixed-width"
      >
        <template slot-scope="scope">
          <el-button
            size="mini"
            type="text"
            icon="el-icon-edit"
            v-hasPermi="['ycl:threshold:edit']"
            @click="updateWho(scope.row)"
            >修改
          </el-button>
        </template>
      </el-table-column>
    </el-table> -->
    <!-- <pagination
      v-show="total > 0"
      :total="total"
      :page.sync="queryParams.pageNum"
      :limit.sync="queryParams.pageSize"
      @pagination="getList"
    /> -->
    <!-- 人脸阈值 -->
    <el-dialog
@@ -1082,7 +623,7 @@
import {
  listThreshold,
  getThreshold,
  editVideo,
  updateThreshold,
} from "@/api/platform/threshold";
import {
  editCar,
@@ -1097,7 +638,9 @@
  name: "Threshold",
  data() {
    return {
      ifEdit: false,
      ifEditVideo: false,
      ifEditFace: false,
      ifEditCar: false,
      indicators: [],
      // 遮罩层
      loading: true,
@@ -1112,9 +655,10 @@
      // 总条数
      total: 0,
      // 运维阈值表格数据
      thresholdList: [],
      thresholdList: {},
      videoList: [],
      faceList: [],
      carList: [],
      // 弹出层标题
      title: "",
      // 是否显示弹出层
@@ -1202,13 +746,38 @@
    this.getList();
  },
  methods: {
    a() {
      this.ifEdit = true;
    showEdit(value) {
      if (value == "video") {
        this.videoList = JSON.parse(JSON.stringify(this.thresholdList.video));
        this.ifEditVideo = true;
      }
      if (value == "face") {
        this.faceList = JSON.parse(JSON.stringify(this.thresholdList.face));
        this.ifEditFace = true;
      }
      if (value == "car") {
        this.carList = JSON.parse(JSON.stringify(this.thresholdList.car));
        this.ifEditCar = true;
      }
    },
    b(){
      console.log(1111111);
      this.ifEdit = false;
      console.log(this.ifEdit);
    saveEdit(value) {
      let data = []
      if (value == "video") {
        data = this.videoList;
        this.ifEditVideo = false;
      }
      if (value == "face") {
        data = this.faceList;
        this.ifEditFace = false;
      }
      if (value == "car") {
        data = this.carList;
        this.ifEditCar = false;
      }
      updateThreshold(data).then((response) => {
        this.$modal.msgSuccess("修改成功");
        this.getList();
      });
    },
    showContent(row) {
      if (row.monitorType === "car") {
@@ -1263,8 +832,10 @@
    getList() {
      this.loading = true;
      listThreshold(this.queryParams).then((response) => {
        this.thresholdList = response.rows;
        this.videoList = this.thresholdList[0];
        this.thresholdList = response.data;
        this.videoList = JSON.parse(JSON.stringify(this.thresholdList.video));
        this.faceList = JSON.parse(JSON.stringify(this.thresholdList.face));
        this.carList = JSON.parse(JSON.stringify(this.thresholdList.car));
        this.total = response.total;
        this.loading = false;
      });