From 213695ed301ce4baa63a1f1d1578fa6ea4e55ec4 Mon Sep 17 00:00:00 2001 From: "825299534@qq.com" Date: Thu, 27 Mar 2025 09:36:29 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E4=BF=AE=E6=AD=A3=E5=90=AF=E7=94=A8?= =?UTF-8?q?=E7=8A=B6=E6=80=81=201=E5=90=AF=E7=94=A80=E5=81=9C=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/group/components/config.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/views/system/group/components/config.ts b/src/views/system/group/components/config.ts index b6e4dab..c34a32b 100644 --- a/src/views/system/group/components/config.ts +++ b/src/views/system/group/components/config.ts @@ -19,8 +19,8 @@ export const searchFormSchema: FormSchema[] = [ componentProps: { datasourceType: 'staticData', staticOptions: [ - { key: 1, label: '启用', value: '0' }, - { key: 2, label: '停用', value: '1' }, + { key: 1, label: '启用', value: 1 }, + { key: 2, label: '停用', value: 0 }, ], labelField: 'label', valueField: 'value', @@ -57,8 +57,8 @@ export const columns: BasicColumn[] = [ customRender: ({ record }) => { const staticOptions = [ - { key: 1, label: '启用', value: 0 }, - { key: 2, label: '停用', value: 1 }, + { key: 1, label: '启用', value: 1 }, + { key: 2, label: '停用', value: 0 }, ]; return staticOptions.filter((x) => x.value === record.enabledMark)[0]?.label; }, @@ -229,8 +229,8 @@ export const formProps: FormProps = { disabled: false, optionType: 'default', staticOptions: [ - { key: 1, label: '启用', value: 0 }, - { key: 2, label: '停用', value: 1 }, + { key: 1, label: '启用', value: 1 }, + { key: 2, label: '停用', value: 0 }, ], datasourceType: 'staticData', labelField: 'label',