吉安感知网项目-前端
罗广辉
2026-01-16 09443ab98fe5814848604e413f8e9bdc027e54d1
applications/drone-command/src/views/recordManage/alarmRecords/index.vue
@@ -56,12 +56,15 @@
      </el-form>
      <div class="ztzf-table-toolbar">
         <el-button :icon="Download" color="#1A2652" type="primary" @click="exportFile" :loading="exportLoading">导出</el-button>
         <el-button :icon="Download" color="#1A2652" type="primary" @click="exportFile" :loading="exportLoading">
            导出
         </el-button>
      </div>
      <div class="ztzf-table-container" v-loading="loading" element-loading-background="rgba(5, 5, 15, 0.6)">
         <div class="ztzf-table-content ztzf-table-content-bg">
            <el-table class="ztzf-data-cockpit-table" :data="list">
            <el-table class="ztzf-data-cockpit-table" :data="list" @selection-change="handleSelectionChange">
               <el-table-column type="selection" width="46" />
               <el-table-column type="index" show-overflow-tooltip width="64" label="序号" />
               <el-table-column prop="droneName" show-overflow-tooltip width="140" label="无人机名称" />
               <el-table-column prop="droneSerialNo" show-overflow-tooltip label="无人机序列号" />
@@ -148,6 +151,12 @@
   }
}
const selectedIds = ref([]) // 勾选的ID列表
// 勾选值设置
function handleSelectionChange(rows) {
   selectedIds.value = rows.map(item => item.id)
}
// 查询
function handleSearch() {
   searchParams.value.current = 1
@@ -164,7 +173,7 @@
function exportFile() {
   exportLoading.value = true
   exportFwDroneAlarmRecordApi()
   exportFwDroneAlarmRecordApi({ ids: selectedIds.value.join(',') })
      .then(res => {
         blobDownload(res)
      })