From 19192127f0855dfaa7a28751abbabfcff3aa9c47 Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: 星期四, 12 九月 2024 09:35:35 +0800
Subject: [PATCH] bug修改

---
 src/components/scrollSelect/index.vue |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/src/components/scrollSelect/index.vue b/src/components/scrollSelect/index.vue
index 496a084..e80f5c4 100644
--- a/src/components/scrollSelect/index.vue
+++ b/src/components/scrollSelect/index.vue
@@ -72,10 +72,21 @@
         username: '无上级账号'
       }
       if(type === 'change'){
-        list.value = res.data.list
+        list.value = res.data.list.map(item => {
+          return {
+            ...item,
+            username: item.username +'(' + item.name +')'
+          }
+        })
         list.value.unshift(obj)
       }else {
-        list.value = [...list.value, ...res.data.list]
+        const data = res.data.list.map(item => {
+          return {
+            ...item,
+            username: item.username +'(' + item.name +')'
+          }
+        })
+        list.value = [...list.value, ...data]
         if(queryFrom.value.pageNum === 1){
           list.value.unshift(obj)
         }

--
Gitblit v1.9.2