refactor(项目管理): 日期格式调整

This commit is contained in:
WangXu10 2024-03-07 10:23:35 +08:00 committed by 建国
parent ce1c141a50
commit 8ef236c36b
3 changed files with 5 additions and 5 deletions

View File

@ -97,7 +97,7 @@ export const DATE = {
value: '', value: '',
props: { props: {
// 'placeholder': t('formCreate.PleaseSelect'), // 'placeholder': t('formCreate.PleaseSelect'),
'format': 'YYYY/MM/DD', 'format': 'YYYY-MM-DD',
'show-time': false, 'show-time': false,
}, },
}; };
@ -109,7 +109,7 @@ export const DATETIME = {
value: '', value: '',
props: { props: {
// 'placeholder': t('formCreate.PleaseSelect'), // 'placeholder': t('formCreate.PleaseSelect'),
'format': 'YYYY/MM/DD HH:mm:ss', 'format': 'YYYY-MM-DD HH:mm:ss',
'show-time': true, 'show-time': true,
'show-now-btn': true, 'show-now-btn': true,
}, },

View File

@ -40,11 +40,11 @@ const templateStore = useTemplateStore();
// 字段类型-日期 // 字段类型-日期
const dateOptions: { label: string; value: FormItemType }[] = [ const dateOptions: { label: string; value: FormItemType }[] = [
{ {
label: dayjs().format('YYYY/MM/DD'), label: dayjs().format('YYYY-MM-DD'),
value: 'DATE', value: 'DATE',
}, },
{ {
label: dayjs().format('YYYY/MM/DD HH:mm:ss'), label: dayjs().format('YYYY-MM-DD HH:mm:ss'),
value: 'DATETIME', value: 'DATETIME',
}, },
]; ];

View File

@ -129,7 +129,7 @@
<span class="label">{{ t('system.orgTemplate.dateFormat') }}</span> <span class="label">{{ t('system.orgTemplate.dateFormat') }}</span>
<span class="content"> <span class="content">
{{ {{
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')
}}</span }}</span
> >
</div> </div>