refactor(项目管理): 日期格式调整
This commit is contained in:
parent
ce1c141a50
commit
8ef236c36b
|
@ -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,
|
||||
},
|
||||
|
|
|
@ -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',
|
||||
},
|
||||
];
|
||||
|
|
|
@ -129,7 +129,7 @@
|
|||
<span class="label">{{ t('system.orgTemplate.dateFormat') }}</span>
|
||||
<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
|
||||
>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue