From 8cdaaafadbbdcff3e55da90fc160191d34ec40c7 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Thu, 03 Apr 2025 17:14:00 +0800
Subject: [PATCH] feat: 历史任务详情

---
 src/views/SignMachineNest/MachineRight/MachineTableDetails/DeviceEvent.vue |   28 ++++++++++++++++++++++------
 1 files changed, 22 insertions(+), 6 deletions(-)

diff --git a/src/views/SignMachineNest/components/MachineRight/MachineTableDetails/DeviceEvent.vue b/src/views/SignMachineNest/MachineRight/MachineTableDetails/DeviceEvent.vue
similarity index 67%
copy from src/views/SignMachineNest/components/MachineRight/MachineTableDetails/DeviceEvent.vue
copy to src/views/SignMachineNest/MachineRight/MachineTableDetails/DeviceEvent.vue
index 9bbe2c3..9797c3c 100644
--- a/src/views/SignMachineNest/components/MachineRight/MachineTableDetails/DeviceEvent.vue
+++ b/src/views/SignMachineNest/MachineRight/MachineTableDetails/DeviceEvent.vue
@@ -1,12 +1,12 @@
 <template>
 	<el-divider content-position="left">相关事件 {{total}}次</el-divider>
 	<el-table :data="list" style="width: 100%">
-		<el-table-column prop="event_num" label="编号" />
+		<el-table-column prop="id" label="id" />
 		<el-table-column prop="event_name" label="名称" />
 		<el-table-column prop="media_type" label="类型" />
+		<el-table-column prop="ai_types" label="关联算法" />
 		<el-table-column prop="photo_url" label="图片url" />
 		<el-table-column prop="video_url" label="视频url" />
-		<el-table-column prop="remark" label="备注" />
 		<el-table-column prop="status" label="状态">
 			<template #default="scope">
 				<el-tag v-if="scope.row.status === 0" type="info">待处理</el-tag>
@@ -17,7 +17,15 @@
 				<el-tag v-if="scope.row.status === 5" type="success">已完结</el-tag>
 			</template>
 		</el-table-column>
-		<el-table-column prop="wayline_job_id" label="	任务id" />
+    <el-table-column prop="event_dict_key" label="event_dict_key" />
+    <el-table-column prop="create_time" label="创建时间" />
+
+    <el-table-column label="操作" >
+      <template #default="scope">
+        <el-button type="primary" link @click="examine(scope.row)">审核</el-button>
+        <el-button type="primary" link @click="distribution(scope.row)">分拨</el-button>
+      </template>
+    </el-table-column>
 	</el-table>
 	<el-pagination
 		background
@@ -32,6 +40,7 @@
 <script setup>
 import { useStore } from 'vuex'
 import { getDeviceEventList } from '@/api/home/machineNest'
+import { ElMessage } from 'element-plus';
 
 
 const list = ref([])
@@ -40,14 +49,21 @@
 })
 const sizeParams = ref({
 	current: 1,
-	size: 1,
+	size: 10,
 })
 const store = useStore()
-const child_sn = computed(() => store.state.home.singleUavHome.child_sn)
+const device_sn = computed(() => store.state.home.singleUavHome.device_sn)
 const total = ref(0)
 
+const distribution = row => {
+	ElMessage.warning('正在加急开发中...')
+}
+const examine = row => {
+  ElMessage.warning('正在加急开发中...')
+}
+
 const getList = () => {
-	params.value.device_sn = child_sn.value
+	params.value.device_sn = device_sn.value
 	getDeviceEventList(params.value, sizeParams.value).then(res => {
 		const resData = res?.data?.data || {}
 		list.value = resData.records

--
Gitblit v1.9.3