From 636318536b86a4ff6698a5f85f36e50dea462847 Mon Sep 17 00:00:00 2001 From: gaoyuanwei <2826352639@qq.com> Date: Mon, 1 Aug 2022 15:57:09 +0800 Subject: [PATCH] =?UTF-8?q?765bug=EF=BC=8C=E4=B8=8A=E6=9E=B6=E5=85=B3?= =?UTF-8?q?=E8=81=94=E7=BB=84=E4=BB=B6=E6=97=B6=E6=90=9C=E7=B4=A2=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../capacityOnTheShelf/components/PutOnTheShelf.vue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue b/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue index db50a51e..d8832e02 100644 --- a/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue +++ b/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue @@ -477,6 +477,8 @@ :render="(item) => item.title" @change="handleChangeOther" @selectChange="handleSelectChangeOther" + show-search + :filter-option="filterOptionTransfer" /> @@ -927,7 +929,7 @@ mockDataOther.value.push({ key: val.id, title: val.name, - description: val.id, + description: val.name, }) }) }) @@ -948,7 +950,7 @@ mockDataOther.value.push({ key: val.id, title: val.name, - description: val.id, + description: val.name, }) }) }) @@ -978,6 +980,11 @@ console.log('targetSelectedKeys: ', targetSelectedKeys, sourceSelectedKeys) } + const filterOptionTransfer = (inputValue, option) => { + console.log(option, 'option') + return option.description.indexOf(inputValue) > -1 + } + const handleOk = (e) => { console.log(e) visibleAssociatedApplicationOther.value = false