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) }