|
@@ -549,11 +549,11 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
init() {
|
|
|
- this.$axios.get('http://122.112.252.100:8081/face/findDb?timeHorizon=oneDay')
|
|
|
+ this.$axios.get('http://119.3.84.55:8081/face/findDb?timeHorizon=oneDay')
|
|
|
.then(res => {
|
|
|
let timeArr = [];
|
|
|
let valueArr = [];
|
|
|
- res.data.object.forEach(item => {
|
|
|
+ res.data.data.forEach(item => {
|
|
|
timeArr.push(item.key);
|
|
|
valueArr.push(item.value);
|
|
|
});
|
|
@@ -569,13 +569,13 @@ export default {
|
|
|
myChartLeft1.setOption(this.options_stztzfb);
|
|
|
|
|
|
});
|
|
|
- this.$http.get('http://122.112.252.100:8081/face/findDb?timeHorizon=oneWeek')
|
|
|
+ this.$http.get('http://119.3.84.55:8081/face/findDb?timeHorizon=oneWeek')
|
|
|
.then(res => {
|
|
|
let timeArr = [];
|
|
|
let valueArr = [];
|
|
|
let arr;
|
|
|
// console.log(res);
|
|
|
- arr = res.object.reverse();
|
|
|
+ arr = res.data.reverse();
|
|
|
arr.forEach(item => {
|
|
|
timeArr.push(item.key);
|
|
|
valueArr.push(item.value);
|
|
@@ -592,12 +592,12 @@ export default {
|
|
|
myChartLeft2.setOption(this.options_mrldqk);
|
|
|
|
|
|
});
|
|
|
- this.$http.get('http://122.112.252.100:8081/face/findDb?timeHorizon=oneYear')
|
|
|
+ this.$http.get('http://119.3.84.55:8081/face/findDb?timeHorizon=oneYear')
|
|
|
.then(res => {
|
|
|
let timeArr = [];
|
|
|
let valueArr = [];
|
|
|
|
|
|
- res.object.forEach(item => {
|
|
|
+ res.data.forEach(item => {
|
|
|
timeArr.push(item.key);
|
|
|
valueArr.push(item.value);
|
|
|
});
|
|
@@ -620,10 +620,10 @@ export default {
|
|
|
let date = Date.parse(new Date());
|
|
|
this.date = utils.timestamp(date);
|
|
|
this.init();
|
|
|
- this.$http.get('http://122.112.252.100:8081/face/findEnd')
|
|
|
+ this.$http.get('http://119.3.84.55:8081/face/findEnd')
|
|
|
.then(res => {
|
|
|
- this.outList = res.object;
|
|
|
- this.outFirst = res.object[0];
|
|
|
+ this.outList = res.data;
|
|
|
+ this.outFirst = res.data[0];
|
|
|
})
|
|
|
}
|
|
|
};
|