|
@@ -103,8 +103,10 @@
|
|
|
},
|
|
|
label: {
|
|
|
show: false
|
|
|
- }
|
|
|
+ },
|
|
|
},
|
|
|
+ confine: true,
|
|
|
+ extraCssText: 'white-space: normal; word-break: break-all;',
|
|
|
backgroundColor: 'rgba(255,255,255,0.1)', //通过设置rgba调节背景颜色与透明度
|
|
|
position: 'inside',
|
|
|
formatter: function(params) {
|
|
@@ -155,7 +157,7 @@
|
|
|
// this.url =
|
|
|
// `http://192.168.0.41:8081/chart/getChartById?id=${id}&startTime=${startTime}&endTime=${endTime}`
|
|
|
this.url = window.location.origin +
|
|
|
- `/chart/getChartById?id=${id}&startTime=${startTime}&endTime=${endTime}`
|
|
|
+ `/chart/getChartById?id=${id}&startTime=${startTime}&endTime=${endTime}`
|
|
|
xhr.setRequestHeader("Authorization", "Bearer " +
|
|
|
token);
|
|
|
xhr.setRequestHeader("token", token);
|
|
@@ -237,9 +239,7 @@
|
|
|
beforeSend: function(xhr) {
|
|
|
// this.url =
|
|
|
// `http://192.168.0.41:8081/chart/getChartById?id=${id}&startTime=${lastTime}&endTime=${currentTime}`
|
|
|
- this.url = window.location.origin +
|
|
|
- "/chart/getChartById?id=" + id + "&startTime=" +
|
|
|
- lastTime + "&endTime=" + currentTime
|
|
|
+ this.url=window.location.origin+"/chart/getChartById?id="+id+"&startTime="+lastTime+"&endTime="+currentTime
|
|
|
xhr.setRequestHeader("Authorization", "Bearer " +
|
|
|
token);
|
|
|
xhr.setRequestHeader("token", token);
|