|
@@ -984,11 +984,52 @@ export const chartSetMixin = {
|
|
}
|
|
}
|
|
|
|
|
|
let colors = chartTheme&&chartTheme.colorsOptions.reverse()||seasonOptions.colors;
|
|
let colors = chartTheme&&chartTheme.colorsOptions.reverse()||seasonOptions.colors;
|
|
|
|
+ // 季节性 农历成图老逻辑,需要截取 指标成图还在用,后面需要统一或者拆分
|
|
|
|
+ let rangeSelector =
|
|
|
|
+ this.calendar_type === '农历' && this.isPredictorChart
|
|
|
|
+ ? {
|
|
|
|
+ enabled: true,
|
|
|
|
+ selected: 0,
|
|
|
|
+ inputStyle: {
|
|
|
|
+ display: 'none',
|
|
|
|
+ },
|
|
|
|
+ labelStyle: {
|
|
|
|
+ display: 'none',
|
|
|
|
+ },
|
|
|
|
+ buttonTheme: {
|
|
|
|
+ style: {
|
|
|
|
+ display: 'none',
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ buttons: [
|
|
|
|
+ {
|
|
|
|
+ type: 'month',
|
|
|
|
+ count: 12,
|
|
|
|
+ text: '12月',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ type: 'month',
|
|
|
|
+ count: 15,
|
|
|
|
+ text: '15月',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ type: 'all',
|
|
|
|
+ text: '全部',
|
|
|
|
+ type: 'all',
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
|
|
+ }
|
|
|
|
+ : {
|
|
|
|
+ enabled: false,
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+
|
|
this.options = {
|
|
this.options = {
|
|
colors: colors.slice(-chartDataHandle.length),
|
|
colors: colors.slice(-chartDataHandle.length),
|
|
series: seasonData,
|
|
series: seasonData,
|
|
yAxis: seasonYdata,
|
|
yAxis: seasonYdata,
|
|
xAxis,
|
|
xAxis,
|
|
|
|
+ rangeSelector,
|
|
tooltip
|
|
tooltip
|
|
};
|
|
};
|
|
if(this.currentLang=='en') this.changeOptions()
|
|
if(this.currentLang=='en') this.changeOptions()
|