Riku
2025-06-11 5679cbbb630092a197d991cb41997a2d953261e9
src/views/sourcetrace/component/PollutedClueItem.vue
@@ -5,7 +5,7 @@
    <el-row justify="space-between">
      <!-- <el-tag v-if="index == 0" type="danger">最新</el-tag> -->
      <el-text type="primary">{{
        '线索时间:' +
        '切片时间:' +
        item.pollutedData.startTime +
        ' - ' +
        item.pollutedData.endTime
@@ -39,7 +39,13 @@
      </el-col>
      <el-col :span="6">
        <el-statistic
          v-if="item.pollutedData.exceptionType == 4"
          title="变化幅度"
          :value="formatPercentage(item.pollutedData.avgPer)"
        />
        <el-statistic
          v-else-if="item.pollutedData.exceptionType == 9"
          title="变化速率"
          :value="formatPercentage(item.pollutedData.avgPer)"
        />
      </el-col>
@@ -146,6 +152,36 @@
const props = defineProps({
  item: Object
});
const emits = defineEmits(['showMarksAndPolygon']);
function showMarksAndPolygon(item) {
  emits('showMarksAndPolygon', item);
}
function formatPercentage(value) {
  return Math.round(value * 100) + '%';
}
function formatDistanceType(value) {
  switch (value) {
    case 'TYPE1':
      return '50米';
    case 'TYPE2':
      return '50米 - 500米';
    case 'TYPE3':
      return '50米 - 1公里';
    case 'TYPE4':
      return '50米 - 2公里';
    default:
      break;
  }
}
function formatChangeRate() {
}
</script>
<style scoped>
:deep(.el-statistic) {