From f19e5267cc23b1c714dc746239864f33ed715dd9 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期五, 05 十二月 2025 17:55:02 +0800
Subject: [PATCH] 完成地图制作任务功能初版

---
 src/views/fysp/task/components/CompMonitorPlan.vue |   38 +++++++++++++++++++++++++++-----------
 1 files changed, 27 insertions(+), 11 deletions(-)

diff --git a/src/views/fysp/task/components/CompMonitorPlan.vue b/src/views/fysp/task/components/CompMonitorPlan.vue
index a9c6bf8..acea676 100644
--- a/src/views/fysp/task/components/CompMonitorPlan.vue
+++ b/src/views/fysp/task/components/CompMonitorPlan.vue
@@ -5,7 +5,7 @@
     @update:model-value="onDateChange"
   >
     <template #header="{ date }">
-      <div>
+      <div style="width: 100%">
         <el-row justify="space-between">
           <el-space>
             <el-tag type="default"
@@ -21,7 +21,7 @@
                 )
               }}</el-tag
             >
-            <el-tag type="default">鏁存敼锛歿{ taskStatistic.changed }}</el-tag>
+            <!-- <el-tag type="default">鏁存敼锛歿{ taskStatistic.changed }}</el-tag> -->
           </el-space>
           <el-space>
             <el-text>鑱氱劍鐢ㄦ埛锛�</el-text>
@@ -29,6 +29,8 @@
               v-model="selectedUsers"
               multiple
               clearable
+              collapse-tags
+              :max-collapse-tags="1"
               style="width: 150px"
             >
               <el-option
@@ -47,12 +49,21 @@
               v-for="user in taskStatistic.progressPerUser"
               :key="user.userId"
             >
-              {{
+              <!-- {{
                 `${user.userName}锛氬贰鏌ラ噺 ${
                   user.completeTaskNum
-                }锛屽強鏃舵暣鏀圭巼 ${formatPercent(
+                }锛屽嵆鏃舵暣鏀圭巼 ${formatPercent(
                   user.changedProblemNumOnTime / user.totalProblemNum
                 )}锛屽钩鍧囪�楁椂 ${
+                  user.avgInspectionTime ? user.avgInspectionTime : '--'
+                }`
+              }} -->
+                {{
+                `${user.userName}锛�${
+                  user.completeTaskNum
+                } | ${formatPercent(
+                  user.changedProblemNumOnTime / user.totalProblemNum
+                )} | ${
                   user.avgInspectionTime ? user.avgInspectionTime : '--'
                 }`
               }}
@@ -94,6 +105,7 @@
           >
             <el-row justify="space-between">
               <el-text
+                title="宸℃煡浜哄憳"
                 size="small"
                 :type="
                   selectedUsers.includes(item.userName) ? 'primary' : 'info'
@@ -105,6 +117,7 @@
             <el-row justify="space-between">
               <!-- <el-space> -->
               <el-text
+                title="宸℃煡閲�"
                 size="small"
                 style="text-align: center; flex: 1"
                 :type="
@@ -114,6 +127,7 @@
                 >{{ item.completeTaskNum }}</el-text
               >
               <el-text
+                title="鍗虫椂鏁存敼鐜�"
                 size="small"
                 style="text-align: center; flex: 1"
                 :type="
@@ -127,6 +141,7 @@
                 }}</el-text
               >
               <el-text
+                title="骞冲潎鑰楁椂"
                 size="small"
                 style="text-align: center; flex: 1"
                 :type="
@@ -249,6 +264,7 @@
 
 // 鎬讳换鍔$粺璁�
 const taskStatistic = computed(() => {
+  // const resMap = new Map()
   const res = {
     total: 0,
     complete: 0,
@@ -325,16 +341,16 @@
   top: 5px;
 }
 
-::v-deep .el-calendar-table .el-calendar-day {
+:deep(.el-calendar-table .el-calendar-day) {
   height: initial;
   padding: initial;
 }
 
-::v-deep .el-calendar-table .el-calendar-day:hover {
+:deep(.el-calendar-table .el-calendar-day:hover) {
   background-color: transparent;
 }
 
-/* ::v-deep .el-calendar-table td.is-selected {
+/* :deep(.el-calendar-table td.is-selected) {
   background-color: initial;
 } */
 
@@ -361,15 +377,15 @@
   cursor: not-allowed;
 }
 
-/* ::v-deep .el-calendar-table tr td:first-child {
+/* :deep(.el-calendar-table tr td:first-child) {
   border-left: none !important;
 } */
 
-/* ::v-deep .el-calendar-table tr:first-child td {
+/* :deep(.el-calendar-table tr:first-child td) {
   border-top: none;
 } */
 
-/* ::v-deep .el-calendar-table td {
+/* :deep(.el-calendar-table td) {
   border-bottom: none;
   border-right: none;
   vertical-align: top;
@@ -377,7 +393,7 @@
   transition: background-color 0.2s ease;
 } */
 
-::v-deep .el-calendar-table thead th {
+:deep(.el-calendar-table thead th) {
   padding: 12px 0;
   color: #606266;
   font-weight: normal;

--
Gitblit v1.9.3