From c4246ca910f28014efaace64ebf92f47a673a9cf Mon Sep 17 00:00:00 2001
From: queenwuli <942534046@qq.com>
Date: Mon, 25 Jan 2021 11:47:46 +0800
Subject: [PATCH] gx

---
 hive-app/pages/manager/selectEmployee.vue |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/hive-app/pages/manager/selectEmployee.vue b/hive-app/pages/manager/selectEmployee.vue
index 8eb2b5e..a6ccb67 100644
--- a/hive-app/pages/manager/selectEmployee.vue
+++ b/hive-app/pages/manager/selectEmployee.vue
@@ -54,6 +54,7 @@
 				this.loadMemberList();
 			},
 			loadMemberList(){
+				let selectedArr = this.selectIds?this.selectIds.split(','):[];
 				this.$httpUtils.request('/api/user/findAllUsers', {
 					queryKey: this.queryKey
 				}, 'POST').then((res) => {
@@ -62,7 +63,7 @@
 							let index = this.selectItems.findIndex((op) => {
 								return op.id == item.id
 							});
-							if(this.selectIds && this.selectIds.indexOf(item.id) > -1){
+							if(this.selectIds && selectedArr.includes(item.id.toString())){
 								if(index == -1){
 									this.selectItems.push(item);
 								}

--
Gitblit v1.9.1