From 422fb0a0fd672b41a709e943c82055f15ef85a6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=9C=84?= Date: Tue, 21 Nov 2023 16:14:21 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E6=A0=87=E5=87=86=E5=85=A5=E5=BA=93/?= =?UTF-8?q?=E5=8F=98=E6=9B=B4=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../StandardEntryOrChangeProcess.vue | 32 +++++++++---------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/src/views/workCenter/standardEntryOrChangeProcess/StandardEntryOrChangeProcess.vue b/src/views/workCenter/standardEntryOrChangeProcess/StandardEntryOrChangeProcess.vue index 5448b40f..8e19f987 100644 --- a/src/views/workCenter/standardEntryOrChangeProcess/StandardEntryOrChangeProcess.vue +++ b/src/views/workCenter/standardEntryOrChangeProcess/StandardEntryOrChangeProcess.vue @@ -212,7 +212,8 @@ :placeholder="$t('pleaseSelect')+item.dbFieldTxt" :type="'select'" :triggerChange="false" - :dictCode="item.dictField" /> + :options="optionsData[item.dbFieldName]" + :dictCode="item.fieldHref ? null : item.dictField"/> { - if (item.fieldShowType === FieldType.TREE.value || item.fieldShowType === FieldType.TREE_SINGLE.value) { - // 展示类型是树选择,且有接口的 - if (item.fieldHref) { - getAction(item.fieldHref).then(res => { - if (res.success) { - this.$set(this.optionsData, item.dbFieldName, res.result) - } - }) - } else if (item.dictId) { - getFormDictTreeList({ dictId: item.dictId }).then(res => { - if (res.success) { - this.$set(this.optionsData, item.dbFieldName, res.result) - } - }) - } + if (item.fieldHref) { + getAction(item.fieldHref).then(res => { + if (res.success) { + this.$set(this.optionsData, item.dbFieldName, res.result) + } + }) + } else if ((item.fieldShowType === FieldType.TREE.value || item.fieldShowType === FieldType.TREE_SINGLE.value) && item.dictId) { + getFormDictTreeList({ dictId: item.dictId }).then(res => { + if (res.success) { + this.$set(this.optionsData, item.dbFieldName, res.result) + } + }) } }) },