diff --git a/core/frontend/src/views/chart/components/dragItem/DrillItem.vue b/core/frontend/src/views/chart/components/dragItem/DrillItem.vue index 4b527cc706..04368fa734 100644 --- a/core/frontend/src/views/chart/components/dragItem/DrillItem.vue +++ b/core/frontend/src/views/chart/components/dragItem/DrillItem.vue @@ -59,9 +59,72 @@ /> + + + + + + {{ $t('chart.dateStyle') }} + ({{ $t('chart.'+item.dateStyle) }}) + + + + + {{ $t('chart.y') }} + {{ $t('chart.y_Q') }} + {{ $t('chart.y_M') }} + {{ $t('chart.y_W') }} + {{ $t('chart.y_M_d') }} + {{ $t('chart.H_m_s') }} + {{ $t('chart.y_M_d_H') }} + {{ $t('chart.y_M_d_H_m') }} + {{ $t('chart.y_M_d_H_m_s') }} + + + + + + + + + {{ $t('chart.datePattern') }} + ({{ $t('chart.'+item.datePattern) }}) + + + + + {{ $t('chart.date_sub') }}(1990-01-01) + {{ $t('chart.date_split') }}(1990/01/01) + + + + {{ $t('chart.delete') }} @@ -147,6 +210,25 @@ export default { }, getItemTagType() { this.tagType = getItemType(this.dimensionData, this.quotaData, this.item) + }, + + dateStyle(param) { + this.item.dateStyle = param.type + this.$emit('onDimensionItemChange', this.item) + }, + beforeDateStyle(type) { + return { + type: type + } + }, + datePattern(param) { + this.item.datePattern = param.type + this.$emit('onDimensionItemChange', this.item) + }, + beforeDatePattern(type) { + return { + type: type + } } } }