From a9d2b856e0f6be6475319c2dc36bf405c2f908fc Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期二, 22 九月 2026 14:04:52 +0800
Subject: [PATCH] 测试完成

---
 src/views/sfstatistics/percentage/index.vue |   18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/src/views/sfstatistics/percentage/index.vue b/src/views/sfstatistics/percentage/index.vue
index e972387..39b83e2 100644
--- a/src/views/sfstatistics/percentage/index.vue
+++ b/src/views/sfstatistics/percentage/index.vue
@@ -58,8 +58,7 @@
 
         <el-form-item label="鏈嶅姟绫诲瀷" prop="userName">
           <el-select
-            v-model="queryParams.serviceType"
-            multiple
+            v-model="serviceTypeSingle"
             placeholder="璇烽�夋嫨"
           >
             <el-option
@@ -319,6 +318,18 @@
       },
     };
   },
+  computed: {
+    // 鏈嶅姟绫诲瀷鍗曢�夛細UI 缁戝畾鍗曞�硷紝鍐呴儴浠嶄互鏁扮粍褰㈠紡浼犵粰鍚庣
+    serviceTypeSingle: {
+      get() {
+        const st = this.queryParams.serviceType;
+        return Array.isArray(st) ? st[0] : st;
+      },
+      set(val) {
+        this.queryParams.serviceType = val == null || val === "" ? [] : [val];
+      },
+    },
+  },
   created() {
     this.getDeptTree();
     this.loadCurrentTabData();
@@ -397,7 +408,8 @@
 
     handleQuery() {
       if (!this.queryParams.dateRange) this.queryParams.dateRange = [];
-      if (!this.queryParams.dateRangecy) this.queryParams.dateRange = [];
+      if (!this.queryParams.dateRangecy) this.queryParams.dateRangecy = [];
+
       this.queryParams.startTime = this.parseTime(
         this.queryParams.dateRange[0]
       );

--
Gitblit v1.9.3