|
@@ -102,8 +102,8 @@
|
|
|
url: '',
|
|
|
type: 'GET',
|
|
|
beforeSend: function(xhr) {
|
|
|
- this.url =
|
|
|
- // `http://192.168.0.41:8081/itemGroup/itemDataQuery?id=${id}&startTime=${startTime}&endTime=${endTime}&valueType=${valueType}`
|
|
|
+ // this.url =
|
|
|
+ // `http://192.168.0.41:8081/itemGroup/itemDataQuery?id=${id}&startTime=${startTime}&endTime=${endTime}&valueType=${valueType}`
|
|
|
this.url = window.location.origin +
|
|
|
`/itemGroup/itemDataQuery?id=${id}&startTime=${startTime}&endTime=${endTime}&valueType=${valueType}`
|
|
|
xhr.setRequestHeader("Authorization", "Bearer " +
|
|
@@ -111,7 +111,6 @@
|
|
|
xhr.setRequestHeader("token", token);
|
|
|
},
|
|
|
success: (res) => {
|
|
|
- console.log(res)
|
|
|
if (res.code === 200) {
|
|
|
const {
|
|
|
valueList,
|
|
@@ -135,7 +134,7 @@
|
|
|
option.dataZoom[1].start = lastOption.dataZoom[1].start
|
|
|
option.dataZoom[1].end = lastOption.dataZoom[1].end
|
|
|
}
|
|
|
-console.log(option)
|
|
|
+
|
|
|
chart.setOption(option)
|
|
|
}
|
|
|
}
|