| | |
| | | <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 |
| | |
| | | </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> |
| | |
| | | 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) { |