From fa7a09c696cfb3b88b208a15115af4f8fdad650a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=90=8C=E6=B5=B7?= <963808678@qq.com> Date: Thu, 6 Apr 2023 10:19:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E5=8C=BA=E5=88=86=E5=A4=A7=E5=B0=8F?= =?UTF-8?q?=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/main/DjyTenantConfig/addForm.vue | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/src/views/main/DjyTenantConfig/addForm.vue b/src/views/main/DjyTenantConfig/addForm.vue index ab24886..b9b4631 100644 --- a/src/views/main/DjyTenantConfig/addForm.vue +++ b/src/views/main/DjyTenantConfig/addForm.vue @@ -92,12 +92,43 @@ export default { }, handleSearch(value) { let Rdata = [] + let UpperType = false + let LowerType = false if (value) { + let Upper = value.toUpperCase() + let Lower = value.toLowerCase() + this.FieldNameList2.forEach(item => { if (item.name.indexOf(value) > -1) { Rdata.push(item) } }) + this.FieldNameList2.forEach(item => { + if (item.name.indexOf(Upper) > -1) { + UpperType = false + Rdata.forEach(e => { + if (e.code == item.code) { + UpperType = true + } + }) + if (!UpperType) { + Rdata.push(item) + } + } + }) + this.FieldNameList2.forEach(item => { + if (item.name.indexOf(Lower) > -1) { + LowerType = false + Rdata.forEach(e => { + if (e.code == item.code) { + LowerType = true + } + }) + if (!LowerType) { + Rdata.push(item) + } + } + }) } else { Rdata = this.FieldNameList2 }