Merge pull request #10179 from dataease/pr@dev-v2@refactor_date

refactor(数据集): 特殊日期格式自定义
This commit is contained in:
Junjun 2024-06-11 13:43:32 +08:00 committed by GitHub
commit e153ab7f6b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 10 deletions

View File

@ -116,10 +116,6 @@ const fieldOptions = [
value: 'yyyy/MM/dd',
label: 'yyyy/MM/dd'
},
{
value: 'yyyyMMdd',
label: 'yyyyMMdd'
},
{
value: 'yyyy-MM-dd HH:mm:ss',
label: 'yyyy-MM-dd HH:mm:ss'
@ -128,10 +124,6 @@ const fieldOptions = [
value: 'yyyy/MM/dd HH:mm:ss',
label: 'yyyy/MM/dd HH:mm:ss'
},
{
value: 'yyyyMMdd HH:mm:ss',
label: 'yyyyMMdd HH:mm:ss'
},
{
value: 'custom',
label: t('visualization.custom')

View File

@ -113,10 +113,8 @@ const getFieldName = (fields, name) => {
const timeTypes = [
'yyyy-MM-dd',
'yyyy/MM/dd',
'yyyyMMdd',
'yyyy-MM-dd HH:mm:ss',
'yyyy/MM/dd HH:mm:ss',
'yyyyMMdd HH:mm:ss',
'custom'
]