From 9529220c815bfe6e43c992fde2f392be823450eb Mon Sep 17 00:00:00 2001
From: wlzboy <66905212@qq.com>
Date: 星期二, 11 十一月 2025 20:27:33 +0800
Subject: [PATCH] feat:增加天地图接口,并增加车辆GPS统计

---
 ruoyi-ui/src/views/task/general/index.vue |   22 ++++++++++++++--------
 1 files changed, 14 insertions(+), 8 deletions(-)

diff --git a/ruoyi-ui/src/views/task/general/index.vue b/ruoyi-ui/src/views/task/general/index.vue
index 5c8c97c..8087b32 100644
--- a/ruoyi-ui/src/views/task/general/index.vue
+++ b/ruoyi-ui/src/views/task/general/index.vue
@@ -94,20 +94,25 @@
 
     <el-table v-loading="loading" :data="taskList" @selection-change="handleSelectionChange">
       <el-table-column type="selection" width="55" align="center" />
-      <el-table-column label="浠诲姟缂栧彿" align="center" prop="taskCode">
+      <el-table-column label="浠诲姟缂栧彿" align="center" prop="taskCode" min-width="180">
         <template slot-scope="scope">
           <el-button
             type="text"
             @click="handleView(scope.row)"
             v-hasPermi="['task:general:query']"
+            style="font-family: 'Courier New', monospace; font-size: 13px;"
           >{{ scope.row.taskCode }}</el-button>
         </template>
       </el-table-column>
-      <el-table-column label="浠诲姟绫诲瀷" align="center" prop="taskType">
+      <el-table-column label="浠诲姟绫诲瀷" align="center" prop="taskType" width="120">
         <template slot-scope="scope">
           <dict-tag :options="dict.type.sys_task_type" :value="scope.row.taskType"/>
+          <el-tag v-if="scope.row.taskType === 'EMERGENCY_TRANSFER'" type="danger" size="mini" style="margin-left: 5px;">
+            <i class="el-icon-warning"></i>
+          </el-tag>
         </template>
       </el-table-column>
+   
       <el-table-column label="浠诲姟鐘舵��" align="center" prop="taskStatus">
         <template slot-scope="scope">
           <dict-tag :options="dict.type.sys_task_status" :value="scope.row.taskStatus"/>
@@ -123,14 +128,11 @@
       </el-table-column>
       <el-table-column label="璁″垝寮�濮嬫椂闂�" align="center" prop="plannedStartTime" width="180">
         <template slot-scope="scope">
-          <span>{{ parseTime(scope.row.plannedStartTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
+          <span v-if="scope.row.plannedStartTime">{{ parseTime(scope.row.plannedStartTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
+          <span v-else style="color: #C0C4CC;">--</span>
         </template>
       </el-table-column>
-      <el-table-column label="璁″垝缁撴潫鏃堕棿" align="center" prop="plannedEndTime" width="180">
-        <template slot-scope="scope">
-          <span>{{ parseTime(scope.row.plannedEndTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
-        </template>
-      </el-table-column>
+     
       <el-table-column label="鍒涘缓浜�" align="center" prop="creatorName" />
       <el-table-column label="鎵ц浜�" align="center" prop="assigneeName" />
       <el-table-column label="鍒涘缓鏃堕棿" align="center" prop="createTime" width="180">
@@ -397,6 +399,8 @@
       total: 0,
       // 浠诲姟绠$悊琛ㄦ牸鏁版嵁
       taskList: [],
+      // 鏄惁鏈夋�ユ晳杞繍浠诲姟锛堢敤浜庢帶鍒跺悓姝ョ姸鎬佸垪鏄剧ず锛�
+      hasEmergencyTask: false,
       // 寮瑰嚭灞傛爣棰�
       title: "",
       // 鏄惁鏄剧ず寮瑰嚭灞�
@@ -469,6 +473,8 @@
       listTask(this.queryParams).then(response => {
         this.taskList = response.rows;
         this.total = response.total;
+        // 妫�鏌ユ槸鍚︽湁鎬ユ晳杞繍浠诲姟锛岀敤浜庢帶鍒跺悓姝ョ姸鎬佺浉鍏冲垪鐨勬樉绀�
+        this.hasEmergencyTask = this.taskList.some(task => task.taskType === 'EMERGENCY_TRANSFER');
         this.loading = false;
       });
     },

--
Gitblit v1.9.1