From 61e6956be147e1e84e7104f16dd47e9f87f20dfd Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Fri, 18 Apr 2025 10:57:32 +0800
Subject: [PATCH] feat: 控制台显示一些信息

---
 src/views/Home/HomeLeft/InspectionRaskDetails/InspectionRaskDetailsDialog.vue |   51 +++++++++++++++++++++++----------------------------
 1 files changed, 23 insertions(+), 28 deletions(-)

diff --git a/src/views/Home/HomeLeft/InspectionRaskDetails/InspectionRaskDetailsDialog.vue b/src/views/Home/HomeLeft/InspectionRaskDetails/InspectionRaskDetailsDialog.vue
index 777af0c..c74eacf 100644
--- a/src/views/Home/HomeLeft/InspectionRaskDetails/InspectionRaskDetailsDialog.vue
+++ b/src/views/Home/HomeLeft/InspectionRaskDetails/InspectionRaskDetailsDialog.vue
@@ -3,7 +3,7 @@
 	<el-dialog
 		class="inspection-rask-details-dialog ztzf-dialog"
 		v-model="isShowDetailsDialog"
-		:width="pxToRem(1000)"
+		:width="pxToRem(1500)"
 		:close-on-click-modal="false"
 		:destroy-on-close="true"
 	>
@@ -64,7 +64,7 @@
 			<el-table
 				:data="taskDetailData"
 				:row-class-name="tableRowClassName"
-				:row-style="{ height: '54px', fontSize: '14px', 'text-align': 'center' }"
+				:row-style="{ height: '45px', fontSize: '14px', 'text-align': 'center' }"
 				:header-cell-style="{ 'text-align': 'center', height: '36px', fontSize: '14px' }"
 			>
 				<el-table-column label="序号" type="index" width="60">
@@ -86,11 +86,9 @@
 									? 'distributed'
 									: scope.row.status === 3
 									? 'finish '
-								
-								
-									: 'fail '
-							"
-						>
+									: scope.row.status === 5
+									? 'fail '
+									: ' '">
 							{{
 								scope.row.status === 1
 									? '待执行'
@@ -98,8 +96,9 @@
 									? '执行中'
 									: scope.row.status === 3
 									? '已执行'
-							
-									: '执行失败'
+									: scope.row.status === 5
+									? '执行失败'
+									: ''
 							}}
 						</span>
 					</template>
@@ -115,7 +114,7 @@
 			</el-table>
 		</div>
 		<!-- 分页 -->
-		<div style="display: flex; justify-content: center">
+		<div style="display: flex; justify-content: center; margin: 15px 0">
 			<el-pagination
 				class="ztzf-pagination"
 				v-model:current-page="pageParams.current"
@@ -150,8 +149,8 @@
 	{ label: '待执行', value: 1 },
 	{ label: '执行中', value: 2 },
 	{ label: '已完成', value: 3 },
-	
-	{ label: '执行失败', value: 4 },
+
+	{ label: '执行失败', value: 5 },
 ]
 // 设备页面参数
 const devicePageParams = ref({
@@ -216,12 +215,11 @@
 }
 // 获取任务列表
 const getJobList = () => {
-// 事件状态:0 =待处理,1=待分拨,2=待处理,3=处理中,4=已完成 5=已完结
+	// 事件状态:0 =待处理,1=待分拨,2=待处理,3=处理中,4=已完成 5=已完结
 	jobList(taskDetailParams).then(res => {
 		if (res.data.code !== 0) return
 		taskDetailData.value = res.data.data.records
 		total.value = res.data.data.total
-		
 	})
 }
 // 机巢列表数据
@@ -322,30 +320,27 @@
 .tabledata {
 	padding: 0 16px;
 	overflow: hidden;
-	height: 640px;
+	// height: 640px;
 	overflow-y: scroll !important;
 }
 
 // 任务状态颜色
+// 待执行
 .pending {
-	color: #e36913;
+	color: #ffe17e;
 }
+// 执行中
 .distributed {
-	color: #ffc398;
+	color: #FFA768;
 }
+// 已执行
 .finish {
-	color: #afd9fb;
+	color: #8effac;
 }
-.cancel {
-	color: #11c4ff;
-}
+
+// 执行失败
 .fail {
-	color: #8cfea7;
+	color: #ff8e8e;
 }
 </style>
-<style lang="scss">
-.inspection-rask-details-dialog {
-	width: 1270px;
-	height: 856px;
-}
-</style>
+

--
Gitblit v1.9.3