forked from github/dataease
fix(数据集): 自定义时间格式
This commit is contained in:
parent
2ec594f1f7
commit
afb9469d8c
@ -833,8 +833,9 @@ export default {
|
|||||||
this.quotaChange()
|
this.quotaChange()
|
||||||
})
|
})
|
||||||
dateformats(this.param.id).then((response) => {
|
dateformats(this.param.id).then((response) => {
|
||||||
const children = (response?.data || []).map(ele => ({ label: ele.dateformat, value: ele.dateformat }))
|
|
||||||
children.push({ label: '自定义', value: 'custom' })
|
const children = (response?.data || []).map(ele => ({ label: ele.dateformat + ( ele.desc !== null ? ('(' + ele.desc) + ')' : ""), value: ele.dateformat }))
|
||||||
|
children.push({ label: this.$t('commons.custom'), value: 'custom' })
|
||||||
this.dateformats = children
|
this.dateformats = children
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user