From cad7ce46baed5e18a59c41fb3c830d97dc83bcb5 Mon Sep 17 00:00:00 2001 From: junjun Date: Mon, 4 Mar 2024 17:50:46 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E8=A7=86=E5=9B=BE):=20=E6=97=A5?= =?UTF-8?q?=E6=9C=9F=E5=AD=97=E6=AE=B5=E4=B8=8B=E9=92=BB=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chart/components/dragItem/DrillItem.vue | 82 +++++++++++++++++++ 1 file changed, 82 insertions(+) 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 + } } } }