From 1d552a3bad95caae4af15322df28e6240b797693 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Thu, 13 Aug 2026 15:32:06 +0800
Subject: [PATCH] feat: app视频封面图

---
 applications/drone-command/src/views/detectionCountermeasure/detectionRange/index.vue |   20 ++++++++++++++++----
 1 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/applications/drone-command/src/views/detectionCountermeasure/detectionRange/index.vue b/applications/drone-command/src/views/detectionCountermeasure/detectionRange/index.vue
index c89a5bb..e049ae3 100644
--- a/applications/drone-command/src/views/detectionCountermeasure/detectionRange/index.vue
+++ b/applications/drone-command/src/views/detectionCountermeasure/detectionRange/index.vue
@@ -3,7 +3,7 @@
 		<el-form ref="queryParamsRef" :model="searchParams" class="command-page-history-search">
 			<el-form-item label="设备名称" prop="deviceName">
 				<el-input
-					class="command-search-input"
+					class="command-input"
 					v-model="searchParams.deviceName"
 					placeholder="请输入"
 					clearable
@@ -65,7 +65,7 @@
 							{{ formatDeviceCode(row) }}
 						</template>
 					</el-table-column>
-					<el-table-column label="操作" class-name="operation-btns">
+					<el-table-column label="操作" class-name="operation-btns" fixed="right">
 						<template v-slot="{ row }">
 							<el-link @click="handleView(row)">查看</el-link>
 							<el-link @click="handleEdit(row)">编辑</el-link>
@@ -98,6 +98,8 @@
 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: '', // 设备名称
@@ -116,6 +118,7 @@
 	deviceType: [], // 设备类型
 })
 const visible = ref(false)
+const route = useRoute()
 provide('dictObj', dictObj)
 
 // 获取列表
@@ -176,6 +179,13 @@
 		cancelButtonClass: 'command-message-box-cancel',
 	})
 	await detectionRangeSubmitApi({ id: row.id, effectiveRangeKm: 0 })
+	
+	saveOperationLog({
+		requestUri: route.path,
+		title: `${route.name || '侦测范围管理'}-删除`,
+		type: 1
+	})
+	
 	ElMessage.success('删除成功')
 	getList()
 }
@@ -194,8 +204,10 @@
 
 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) {

--
Gitblit v1.9.3