diff --git a/frontend/src/components/pure/ms-form-create/form-create.ts b/frontend/src/components/pure/ms-form-create/form-create.ts index aa745c70dd..b7aaaf0fa6 100644 --- a/frontend/src/components/pure/ms-form-create/form-create.ts +++ b/frontend/src/components/pure/ms-form-create/form-create.ts @@ -97,7 +97,7 @@ export const DATE = { value: '', props: { // 'placeholder': t('formCreate.PleaseSelect'), - 'format': 'YYYY/MM/DD', + 'format': 'YYYY-MM-DD', 'show-time': false, }, }; @@ -109,7 +109,7 @@ export const DATETIME = { value: '', props: { // 'placeholder': t('formCreate.PleaseSelect'), - 'format': 'YYYY/MM/DD HH:mm:ss', + 'format': 'YYYY-MM-DD HH:mm:ss', 'show-time': true, 'show-now-btn': true, }, diff --git a/frontend/src/views/setting/organization/template/components/fieldSetting.ts b/frontend/src/views/setting/organization/template/components/fieldSetting.ts index b847e3ba75..90667887bd 100644 --- a/frontend/src/views/setting/organization/template/components/fieldSetting.ts +++ b/frontend/src/views/setting/organization/template/components/fieldSetting.ts @@ -40,11 +40,11 @@ const templateStore = useTemplateStore(); // 字段类型-日期 const dateOptions: { label: string; value: FormItemType }[] = [ { - label: dayjs().format('YYYY/MM/DD'), + label: dayjs().format('YYYY-MM-DD'), value: 'DATE', }, { - label: dayjs().format('YYYY/MM/DD HH:mm:ss'), + label: dayjs().format('YYYY-MM-DD HH:mm:ss'), value: 'DATETIME', }, ]; diff --git a/frontend/src/views/setting/organization/template/components/fieldSetting.vue b/frontend/src/views/setting/organization/template/components/fieldSetting.vue index 58bba45d5b..dce1674f7f 100644 --- a/frontend/src/views/setting/organization/template/components/fieldSetting.vue +++ b/frontend/src/views/setting/organization/template/components/fieldSetting.vue @@ -129,7 +129,7 @@ {{ t('system.orgTemplate.dateFormat') }} {{ - detailInfo?.type === 'DATE' ? dayjs().format('YYYY/MM/DD') : dayjs().format('YYYY/MM/DD HH:mm:ss') + detailInfo?.type === 'DATE' ? dayjs().format('YYYY-MM-DD') : dayjs().format('YYYY-MM-DD HH:mm:ss') }}