From e135ffaa14f74496402596502d2c1e3be9f38d85 Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Mon, 21 Apr 2025 11:33:44 +0800
Subject: [PATCH] Merge branch 'test' of http://139.196.74.78:10010/r/drone/command-center-dashboard into test

---
 src/views/SignMachineNest/MachineRight/InspectionRaskList.vue |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/src/views/SignMachineNest/MachineRight/InspectionRaskList.vue b/src/views/SignMachineNest/MachineRight/InspectionRaskList.vue
index e7d18bc..2253d3b 100644
--- a/src/views/SignMachineNest/MachineRight/InspectionRaskList.vue
+++ b/src/views/SignMachineNest/MachineRight/InspectionRaskList.vue
@@ -9,7 +9,7 @@
 					<div :class="tabIndex === 2 ? 'active' : ''" @click="tabClick(2)">历史任务</div>
 				</div>
 				<div class="search-box">
-					<el-input v-model="searchText" placeholder="请输入搜索内容" class="input-with-select">
+					<el-input v-model="searchText" placeholder="请输入关键字" class="input-with-select">
 						<template #append>
 							<el-button :icon="Search" @click="searchNickName" />
 						</template>
@@ -201,6 +201,12 @@
 const taskClick = item => {
 	if (tabIndex.value === 1) {
 		// 展示当前任务详情
+		if (!item?.device_sns.length) return ElMessage.warning('没有device_sns');
+		if (item?.device_sns?.length !== 1) {
+			// todo 后续开发
+			ElMessage.success('即将跳转到集群调度');
+			return
+		}
 		currentInfoId.value = item.wayline_job_info_id
 		isShowCurrentTaskDetails.value = true
 	} else {
@@ -212,7 +218,13 @@
 
 watch([() => tabIndex.value, () => tableList.value], async ([newTabIndex, newTableList]) => {
 	if (newTabIndex == 1 && newTableList.length > 0) {
-		await getTaskDetails(newTableList[0].wayline_job_info_id)
+		const params = {
+			// 航线信息id
+			wayLineJobInfoId:newTableList[0].wayline_job_info_id,
+			// 当前航线id
+			waylineJobId:newTableList[0].id,
+		}
+		await getTaskDetails(params)
 	}
 })
 

--
Gitblit v1.9.3