fix:panel图表补充toolbox 提示
This commit is contained in:
@@ -395,7 +395,6 @@ export default {
|
|||||||
this.isError = false;
|
this.isError = false;
|
||||||
this.errorContent = '';
|
this.errorContent = '';
|
||||||
}
|
}
|
||||||
console.log('seriesItem','' == 0)
|
|
||||||
if(seriesItem||(typeof seriesItem == 'number'&&seriesItem == 0) ||(typeof seriesItem=='string'&& seriesItem !='')){ //0 为false
|
if(seriesItem||(typeof seriesItem == 'number'&&seriesItem == 0) ||(typeof seriesItem=='string'&& seriesItem !='')){ //0 为false
|
||||||
this.noData=false;
|
this.noData=false;
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
@@ -443,13 +443,20 @@
|
|||||||
toolbox:{
|
toolbox:{
|
||||||
show:false,
|
show:false,
|
||||||
top:'0',
|
top:'0',
|
||||||
showTitle:false,
|
showTitle:true,
|
||||||
feature:{
|
feature:{
|
||||||
dataZoom:{
|
dataZoom:{
|
||||||
yAxisIndex:false
|
yAxisIndex:false,
|
||||||
|
title:{
|
||||||
|
zoom:self.$t('overall.toolBox.zoom'),
|
||||||
|
back:self.$t('overall.toolBox.back'),
|
||||||
|
}
|
||||||
},
|
},
|
||||||
magicType:{
|
magicType:{
|
||||||
type:['stack'],
|
type:['stack'],
|
||||||
|
title:{
|
||||||
|
stack:self.$t('overall.toolBox.stack')
|
||||||
|
},
|
||||||
iconStyle:{
|
iconStyle:{
|
||||||
borderColor:stackIconBorderColor,
|
borderColor:stackIconBorderColor,
|
||||||
},
|
},
|
||||||
@@ -752,17 +759,30 @@
|
|||||||
window.addEventListener('resize', function () {
|
window.addEventListener('resize', function () {
|
||||||
self.echartStore.resize();
|
self.echartStore.resize();
|
||||||
});
|
});
|
||||||
|
|
||||||
this.echartStore.on('magictypechanged', function (params) {
|
this.echartStore.on('magictypechanged', function (params) {
|
||||||
self.isStackArea = !self.isStackArea;
|
self.isStackArea = !self.isStackArea;
|
||||||
if(self.isStackArea){
|
if(self.isStackArea){
|
||||||
this.setOption({
|
this.setOption({
|
||||||
toolbox:{
|
toolbox:{
|
||||||
feature:{
|
feature:{
|
||||||
|
dataZoom:{
|
||||||
|
yAxisIndex:false,
|
||||||
|
title:{
|
||||||
|
zoom:self.$t('overall.toolBox.zoom'),
|
||||||
|
back:self.$t('overall.toolBox.back'),
|
||||||
|
}
|
||||||
|
},
|
||||||
magicType:{
|
magicType:{
|
||||||
|
type:['stack'],
|
||||||
|
title:{
|
||||||
|
stack:self.$t('overall.toolBox.stack')
|
||||||
|
},
|
||||||
iconStyle:{
|
iconStyle:{
|
||||||
borderColor:'#7e7e7e',
|
borderColor:'#7e7e7e',
|
||||||
},
|
},
|
||||||
|
emphasis:{
|
||||||
|
borderColor:stackIconChooseBorderColor,
|
||||||
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -877,12 +897,27 @@
|
|||||||
this.setOption({
|
this.setOption({
|
||||||
toolbox:{
|
toolbox:{
|
||||||
feature:{
|
feature:{
|
||||||
|
dataZoom:{
|
||||||
|
yAxisIndex:false,
|
||||||
|
title:{
|
||||||
|
zoom:self.$t('overall.toolBox.zoom'),
|
||||||
|
back:self.$t('overall.toolBox.back'),
|
||||||
|
}
|
||||||
|
},
|
||||||
magicType:{
|
magicType:{
|
||||||
|
type:['stack'],
|
||||||
|
title:{
|
||||||
|
stack:self.$t('overall.toolBox.stack')
|
||||||
|
},
|
||||||
iconStyle:{
|
iconStyle:{
|
||||||
borderColor:'#7e7e7e',
|
borderColor:'#7e7e7e',
|
||||||
},
|
},
|
||||||
|
emphasis:{
|
||||||
|
borderColor:stackIconChooseBorderColor,
|
||||||
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
tooltip: {
|
tooltip: {
|
||||||
formatter:function(params){
|
formatter:function(params){
|
||||||
|
|||||||
Reference in New Issue
Block a user