| | |
| | | <el-table-column prop="deviceSn" show-overflow-tooltip width="140" label="设备编码" /> |
| | | <el-table-column prop="status" show-overflow-tooltip width="100" label="设备状态"> |
| | | <template v-slot="{ row }"> |
| | | {{ getDictLabel(row.status, dictObj.deviceStatus) }} |
| | | {{ formatDeployLocation(row) }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="areaName" show-overflow-tooltip width="120" label="区域" /> |
| | |
| | | } |
| | | return row.dispatchStartTime || row.dispatchEndTime || '' |
| | | } |
| | | |
| | | function formatDeployLocation(row) { |
| | | if (!row.longitude || !row.latitude) return '' |
| | | return `${row.longitude}, ${row.latitude}` |
| | | } |
| | | // 获取列表 |
| | | async function getList() { |
| | | loading.value = true |