mirror of
https://github.com/dataease/dataease.git
synced 2026-05-16 22:41:06 +08:00
fix(数据集): 自定义时间格式
This commit is contained in:
@@ -833,8 +833,9 @@ export default {
|
||||
this.quotaChange()
|
||||
})
|
||||
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
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user