From b8d3f45321cdd7e266d93f309a7121bc9f12cd65 Mon Sep 17 00:00:00 2001 From: zhaoyiran Date: Tue, 23 Jul 2024 10:21:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/qms/counter/counter.data.ts | 1 - src/views/qms/counter/index.vue | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/qms/counter/counter.data.ts b/src/views/qms/counter/counter.data.ts index 2246ff6b3..de708bee0 100644 --- a/src/views/qms/counter/counter.data.ts +++ b/src/views/qms/counter/counter.data.ts @@ -173,7 +173,6 @@ export const Counter = useCrudSchemas( sort: 'custom', dictType: DICT_TYPE.TRUE_FALSE, isSearch: true, - isForm: false, dictClass: 'string', // 默认都是字符串类型其他暂不考虑 form: { component: 'Switch', diff --git a/src/views/qms/counter/index.vue b/src/views/qms/counter/index.vue index d71c9c1c8..9a9a04c9e 100644 --- a/src/views/qms/counter/index.vue +++ b/src/views/qms/counter/index.vue @@ -151,11 +151,13 @@ const buttonTableClick = async (val, row) => { const basicFormRef = ref() const openForm = async (type: string, row?: any) => { + const obj = await CounterApi.getNextStage(row.id) for (const item of Counter.allSchemas.formSchema) { if (item.field === 'nextStage') { - item.componentProps.options = await CounterApi.getNextStage(row.id) + item.componentProps.options = obj.nextStageList } } + row.available = obj.available basicFormRef.value.open(type, row) }