| | |
| | | import { getDictLabel } from '@ztzf/utils' |
| | | import { detectionRangePageApi, detectionRangeSubmitApi } from '@/api/detectionCountermeasure/detectionRange' |
| | | import DetectionRangeDialog from './DetectionRangeDialog.vue' |
| | | import { saveOperationLog } from '@ztzf/apis' |
| | | import { useRoute } from 'vue-router' |
| | | |
| | | const initSearchParams = () => ({ |
| | | deviceName: '', // 设备名称 |
| | |
| | | deviceType: [], // 设备类型 |
| | | }) |
| | | const visible = ref(false) |
| | | const route = useRoute() |
| | | provide('dictObj', dictObj) |
| | | |
| | | // 获取列表 |
| | |
| | | cancelButtonClass: 'command-message-box-cancel', |
| | | }) |
| | | await detectionRangeSubmitApi({ id: row.id, effectiveRangeKm: 0 }) |
| | | |
| | | saveOperationLog({ |
| | | requestUri: route.path, |
| | | title: `${route.name || '侦测范围管理'}-删除`, |
| | | type: 1 |
| | | }) |
| | | |
| | | ElMessage.success('删除成功') |
| | | getList() |
| | | } |
| | |
| | | |
| | | function formatRange(row) { |
| | | if (!row) return '-' |
| | | const value = row.effectiveRangeKm ?? row.range |
| | | return value === null || value === undefined || value === '' ? '-' : value |
| | | |
| | | let value = row.effectiveRangeKm ?? row.range |
| | | |
| | | return value === null || value === undefined || value === '' ? '-' : Number(value).toFixed(0) |
| | | } |
| | | |
| | | function formatDeviceCode(row) { |