forked from github/dataease
Merge pull request #10179 from dataease/pr@dev-v2@refactor_date
refactor(数据集): 特殊日期格式自定义
This commit is contained in:
commit
e153ab7f6b
@ -116,10 +116,6 @@ const fieldOptions = [
|
|||||||
value: 'yyyy/MM/dd',
|
value: 'yyyy/MM/dd',
|
||||||
label: 'yyyy/MM/dd'
|
label: 'yyyy/MM/dd'
|
||||||
},
|
},
|
||||||
{
|
|
||||||
value: 'yyyyMMdd',
|
|
||||||
label: 'yyyyMMdd'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
value: 'yyyy-MM-dd HH:mm:ss',
|
value: 'yyyy-MM-dd HH:mm:ss',
|
||||||
label: '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',
|
value: 'yyyy/MM/dd HH:mm:ss',
|
||||||
label: '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',
|
value: 'custom',
|
||||||
label: t('visualization.custom')
|
label: t('visualization.custom')
|
||||||
|
@ -113,10 +113,8 @@ const getFieldName = (fields, name) => {
|
|||||||
const timeTypes = [
|
const timeTypes = [
|
||||||
'yyyy-MM-dd',
|
'yyyy-MM-dd',
|
||||||
'yyyy/MM/dd',
|
'yyyy/MM/dd',
|
||||||
'yyyyMMdd',
|
|
||||||
'yyyy-MM-dd HH:mm:ss',
|
'yyyy-MM-dd HH:mm:ss',
|
||||||
'yyyy/MM/dd HH:mm:ss',
|
'yyyy/MM/dd HH:mm:ss',
|
||||||
'yyyyMMdd HH:mm:ss',
|
|
||||||
'custom'
|
'custom'
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user