mirror of
https://github.com/dataease/dataease.git
synced 2025-02-24 19:42:56 +08:00
Merge pull request #6093 from dataease/pr@dev@fix_doris_date_y_q
fix: 桑基图和混合图标题属性调整无效
This commit is contained in:
commit
d58fab72b6
@ -1220,8 +1220,8 @@ public class DorisQueryProvider extends QueryProvider {
|
||||
if (x.getDeExtractType() == 0) {
|
||||
if (StringUtils.equalsIgnoreCase(x.getDateStyle(), "y_Q")) {
|
||||
fieldName = String.format(format,
|
||||
String.format(DorisConstants.DATE_FORMAT, String.format(DorisConstants.STR_TO_DATE, originField, DorisConstants.DEFAULT_DATE_FORMAT), "%Y"),
|
||||
String.format(DorisConstants.QUARTER, String.format(DorisConstants.STR_TO_DATE, originField, DorisConstants.DEFAULT_DATE_FORMAT)));
|
||||
String.format(DorisConstants.DATE_FORMAT, String.format(DorisConstants.STR_TO_DATE, originField, StringUtils.isNotEmpty(x.getDateFormat()) ? x.getDateFormat() : DorisConstants.DEFAULT_DATE_FORMAT), "%Y"),
|
||||
String.format(DorisConstants.QUARTER, String.format(DorisConstants.STR_TO_DATE, originField, StringUtils.isNotEmpty(x.getDateFormat()) ? x.getDateFormat() : DorisConstants.DEFAULT_DATE_FORMAT)));
|
||||
} else {
|
||||
fieldName = String.format(DorisConstants.DATE_FORMAT, String.format(DorisConstants.STR_TO_DATE, originField, StringUtils.isNotEmpty(x.getDateFormat()) ? x.getDateFormat() : DorisConstants.DEFAULT_DATE_FORMAT), format);
|
||||
}
|
||||
|
@ -242,7 +242,6 @@ export default {
|
||||
this.titleClass.textAlign = customStyle.text.hPosition
|
||||
this.titleClass.fontStyle = customStyle.text.isItalic ? 'italic' : 'normal'
|
||||
this.titleClass.fontWeight = customStyle.text.isBolder ? 'bold' : 'normal'
|
||||
this.titleClass.fontSize = customStyle.text.isBolder ? 'bold' : 'normal'
|
||||
|
||||
this.titleClass.fontFamily = customStyle.text.fontFamily ? this.CHART_CONT_FAMILY_MAP[customStyle.text.fontFamily] : 'Microsoft YaHei'
|
||||
this.titleClass.letterSpacing = (customStyle.text.letterSpace ? customStyle.text.letterSpace : '0') + 'px'
|
||||
|
@ -9,12 +9,12 @@
|
||||
v-if="chart.type && antVRenderStatus"
|
||||
v-show="title_show"
|
||||
ref="title"
|
||||
:style="title_class"
|
||||
:style="titleClass"
|
||||
style="cursor: default;display: block;"
|
||||
>
|
||||
<div style="padding:4px 4px 0;margin: 0;">
|
||||
<chart-title-update
|
||||
:title-class="title_class"
|
||||
:title-class="titleClass"
|
||||
:chart-info="chartInfo"
|
||||
:bus="bus"
|
||||
:axios-request="axiosRequest"
|
||||
@ -121,16 +121,6 @@ export default {
|
||||
fontWeight: 'normal',
|
||||
background: hexColorToRGBA('#ffffff', 0)
|
||||
},
|
||||
title_class: {
|
||||
margin: '0 0',
|
||||
width: '100%',
|
||||
fontSize: '18px',
|
||||
color: '#303133',
|
||||
textAlign: 'left',
|
||||
fontStyle: 'normal',
|
||||
fontWeight: 'normal',
|
||||
background: ''
|
||||
},
|
||||
linkageActiveParam: null,
|
||||
linkageActiveHistory: false,
|
||||
CHART_CONT_FAMILY_MAP: {
|
||||
@ -244,7 +234,6 @@ export default {
|
||||
this.titleClass.textAlign = customStyle.text.hPosition
|
||||
this.titleClass.fontStyle = customStyle.text.isItalic ? 'italic' : 'normal'
|
||||
this.titleClass.fontWeight = customStyle.text.isBolder ? 'bold' : 'normal'
|
||||
this.titleClass.fontSize = customStyle.text.isBolder ? 'bold' : 'normal'
|
||||
|
||||
this.titleClass.fontFamily = customStyle.text.fontFamily ? this.CHART_CONT_FAMILY_MAP[customStyle.text.fontFamily] : 'Microsoft YaHei'
|
||||
this.titleClass.letterSpacing = (customStyle.text.letterSpace ? customStyle.text.letterSpace : '0') + 'px'
|
||||
|
Loading…
Reference in New Issue
Block a user