From 5be15ce87d3cee5116b94300be1241e8980b42ad Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Wed, 7 Aug 2024 11:23:11 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E4=BF=AE=E6=94=B9bug88179?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/customField/Search.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/components/customField/Search.vue b/src/components/customField/Search.vue index 04962af..06e0b7a 100644 --- a/src/components/customField/Search.vue +++ b/src/components/customField/Search.vue @@ -465,6 +465,13 @@ export default { if (standardStateIndex !== -1) { this.searchList[standardStateIndex].fieldShowType = FieldType.OPTION_MORE.value } + // 把标准名称放到第二个 + const standardNameIndex = this.searchList.findIndex(item => item.dbFieldName === 'standard_name') + const standardName = this.searchList.find(item => item.dbFieldName === 'standard_name') + if (standardNameIndex !== -1) { + this.searchList.splice(standardNameIndex, 1) + this.searchList.splice(1, 0, standardName) + } this.getOptionsData() // 获取下拉数据 console.log(this.searchList) }