diff --git a/src/components/autocomplete/index.vue b/src/components/autocomplete/index.vue index ba3e6d6..406bead 100644 --- a/src/components/autocomplete/index.vue +++ b/src/components/autocomplete/index.vue @@ -75,7 +75,14 @@ export default { if (type === 'Array') { return item => { return this.config.labelKey.reduce((prev, cur) => { - prev += /^[^0-9a-zA-Z]/.test(cur) ? cur : item[cur] + let type = this.$utils.typeJudgment(cur) + let _function = + type != 'Function' + ? item => { + return /^[^0-9a-zA-Z]/.test(cur) ? cur : item[cur] + } + : cur + prev += _function(item) return prev }, '') } diff --git a/src/views/oilFinalStatement/oilFinalStatementAddList.vue b/src/views/oilFinalStatement/oilFinalStatementAddList.vue index f6ae314..f8a2b1d 100644 --- a/src/views/oilFinalStatement/oilFinalStatementAddList.vue +++ b/src/views/oilFinalStatement/oilFinalStatementAddList.vue @@ -207,7 +207,7 @@