From 73533ebccc70ecd41073edcc98846ef2eaee1e8d Mon Sep 17 00:00:00 2001 From: weinan2087 Date: Thu, 9 Feb 2023 16:39:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/manage/AddAudiences.vue | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/views/manage/AddAudiences.vue b/src/views/manage/AddAudiences.vue index 5fe29b6f..5509854e 100644 --- a/src/views/manage/AddAudiences.vue +++ b/src/views/manage/AddAudiences.vue @@ -20,7 +20,7 @@ - + @@ -52,7 +52,7 @@ - + @@ -334,7 +334,7 @@ let userItem = {} userItem.aid = this.userSelection[i].id; userItem.id = this.userSelection[i].id; - userItem.name = this.userSelection[i].name; + userItem.realName = this.userSelection[i].realName; userItem.userNo = this.userSelection[i].userNo; userItem.departId = this.userSelection[i].departId; userItem.departName = this.userSelection[i].departName; @@ -369,8 +369,8 @@ const array = []; for (let i = 0; i < tableDataTemp.length; i += 1) { let match = false; - if(tableDataTemp[i]['name'] || tableDataTemp[i]['userNo']){ - match |= (tableDataTemp[i]['name'].includes(searchValue) || tableDataTemp[i]['userNo'].includes(searchValue)); + if(tableDataTemp[i]['realName'] || tableDataTemp[i]['userNo']){ + match |= (tableDataTemp[i]['realName'].includes(searchValue) || tableDataTemp[i]['userNo'].includes(searchValue)); } if ( match ) { array.push({ @@ -450,7 +450,6 @@ this.$refs['upload'].clearFiles();//清除文件 this.$refs['upload'].handleStart(files[0]);//选择文件后的赋值方法 }, - // 上传 submitUpload(){ this.$refs.upload.submit(); },