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