|
@@ -212,25 +212,25 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
// 获取图表信息
|
|
|
- // getAction(_this.url.listparams, _this.queryParams).then((res) => {
|
|
|
- // if (res.success) {
|
|
|
- // console.log("listparams")
|
|
|
- // _this.equipmentparams = res.result.records || res.result;
|
|
|
- // getAction(_this.url.list, _this.queryParams).then((res) => {
|
|
|
- // console.log("list")
|
|
|
- // if (res.success) {
|
|
|
- // _this.mongodbdata = [];
|
|
|
- // _this.mongodbdata = res.result.records || res.result;
|
|
|
- // _this.initEcharts();
|
|
|
- // } else {
|
|
|
- // this.$message.warning(res.message)
|
|
|
- // }
|
|
|
- // });
|
|
|
- // } else {
|
|
|
- // this.$message.warning(res.message)
|
|
|
- // }
|
|
|
- // });
|
|
|
- this.getTest();
|
|
|
+ getAction(_this.url.listparams, _this.queryParams).then((res) => {
|
|
|
+ if (res.success) {
|
|
|
+ console.log("listparams")
|
|
|
+ _this.equipmentparams = res.result.records || res.result;
|
|
|
+ getAction(_this.url.list, _this.queryParams).then((res) => {
|
|
|
+ console.log("list")
|
|
|
+ if (res.success) {
|
|
|
+ _this.mongodbdata = [];
|
|
|
+ _this.mongodbdata = res.result.records || res.result;
|
|
|
+ _this.initEcharts();
|
|
|
+ } else {
|
|
|
+ this.$message.warning(res.message)
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$message.warning(res.message)
|
|
|
+ }
|
|
|
+ });
|
|
|
+ // this.getTest();
|
|
|
},
|
|
|
// 后端好了需要删掉
|
|
|
getTest() {
|