From 6b30df029f83f6b90938654705e455ddca9b586f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=9C=84?= Date: Mon, 29 Jan 2024 15:14:38 +0800 Subject: [PATCH] fix 81418 --- .../specialProjectLibrary/SpecialProjectLibrary.vue | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/views/projectLibrary/specialProjectLibrary/SpecialProjectLibrary.vue b/src/views/projectLibrary/specialProjectLibrary/SpecialProjectLibrary.vue index c6f93322..0c06b6c3 100644 --- a/src/views/projectLibrary/specialProjectLibrary/SpecialProjectLibrary.vue +++ b/src/views/projectLibrary/specialProjectLibrary/SpecialProjectLibrary.vue @@ -11,7 +11,7 @@ :placeholder="$t('pleaseSelect')+$t('standardSelect.source')" type="select" :triggerChange="false" - dict-code="standard_source" /> + :options="standardSourceOptions" /> @@ -154,6 +154,7 @@ import { JeroListMixin } from '../../../mixins/JeroListMixin' import BasisDescriptionModal from './modules/BasisDescriptionModal' import SpecialProjectLibraryModal from './modules/SpecialProjectLibraryModal' import { StandardSource } from '../../../enums/commonEnums' +import { ajaxGetDictItems } from '../../../api/api' export default { name: 'SpecialProjectLibrary', @@ -271,10 +272,18 @@ export default { clickEvent: 'handleEdit', has: 'specialProjectLibrary:edit' } - ] + ], + standardSourceOptions: [] } }, methods: { + initDictConfig () { + ajaxGetDictItems('standard_source').then(res => { + if (res.success) { + this.standardSourceOptions = (res.result || []).filter(tt => tt.value !== StandardSource.ENTERPRISE.value) + } + }) + }, /** * 跳转标准详情 * @param record