From 5902e3f912217d977f57482b8c600dc60f8ceaff Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Thu, 14 Sep 2023 09:56:12 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E6=A0=87=E5=87=86=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../selection/StandardSelection.vue | 19 ++++++++++++++++++- .../selection/StandardSelectionModal.vue | 15 ++++++++++++++- 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/src/components/selection/StandardSelection.vue b/src/components/selection/StandardSelection.vue index 07273f9a..de774ddf 100644 --- a/src/components/selection/StandardSelection.vue +++ b/src/components/selection/StandardSelection.vue @@ -18,7 +18,24 @@ import StandardSelectionModal from './StandardSelectionModal' export default { name: 'StandardSelection', components: { StandardSelectionModal }, - props: ['query', 'value', 'standard'], + props: { + type: { + type: Object, + default: () => { + return {} + } + }, + value: { + type: String, + default: '' + }, + standard: { + type: String, + default: () => { + return {} + } + } + }, computed: { isDisabled () { if (this.query.dbFieldName === 'replaced_standard') { diff --git a/src/components/selection/StandardSelectionModal.vue b/src/components/selection/StandardSelectionModal.vue index 3219e51a..5d183eb5 100644 --- a/src/components/selection/StandardSelectionModal.vue +++ b/src/components/selection/StandardSelectionModal.vue @@ -58,7 +58,20 @@ import JDictSelectTag from '../dict/JDictSelectTag' export default { name: 'StandardSelectionModal', components: { JDictSelectTag }, - props: ['query', 'standard'], + props: { + type: { + type: Object, + default: () => { + return {} + } + }, + standard: { + type: String, + default: () => { + return {} + } + } + }, data () { return { visible: false,