From 551838c409bae660b6f5a4597c76dc1f87219e51 Mon Sep 17 00:00:00 2001 From: wangxiang <1827945911@qq.com> Date: Wed, 2 Aug 2023 03:20:58 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=B7=A5=E4=BD=9C=E6=B5=81=E8=A1=A8?= =?UTF-8?q?=E5=8D=95=E7=89=88=E6=9C=AC=E6=8E=A7=E5=88=B6testing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/workflow/extension/formJson/formJson.data.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/workflow/extension/formJson/formJson.data.ts b/src/views/workflow/extension/formJson/formJson.data.ts index 208f658..cabe196 100644 --- a/src/views/workflow/extension/formJson/formJson.data.ts +++ b/src/views/workflow/extension/formJson/formJson.data.ts @@ -25,7 +25,7 @@ export const columns: BasicColumn[] = [ dataIndex: 'status', width: 90, customRender: ({ record }) => { - return record.formDefinitionJson?.status == '1' ? + return record.status == '1' ? h(Tag, { color: 'success' }, () => '已发布'): h(Tag, { color: 'red' }, () => '未发布'); } @@ -35,7 +35,7 @@ export const columns: BasicColumn[] = [ dataIndex: 'isPrimary', width: 90, customRender: ({ record }) => { - return record.formDefinitionJson?.status == '1' ? + return record.isPrimary == '1' ? h(Tag, { color: 'success' }, () => '主版本'): h(Tag, { color: 'red' }, () => '非主版本'); }