|
@@ -145,6 +145,7 @@ export default {
|
|
|
},
|
|
|
yAxis: {
|
|
|
//纵轴标尺固定
|
|
|
+ minInterval:1,
|
|
|
type: "value",
|
|
|
scale: true,
|
|
|
min: 0,
|
|
@@ -201,7 +202,7 @@ export default {
|
|
|
for (const item of res.data) {
|
|
|
// 再循环一遍
|
|
|
for (const key in this.items) {
|
|
|
- // console.log(key);
|
|
|
+
|
|
|
if (item.dataType == key) {
|
|
|
data[item.dataType] = {
|
|
|
...item,
|
|
@@ -213,13 +214,13 @@ export default {
|
|
|
} catch (error) {
|
|
|
console.log(error);
|
|
|
}
|
|
|
- console.log(data);
|
|
|
+
|
|
|
this.loading = false;
|
|
|
this.dataInfo = data;
|
|
|
this.$emit("resetDate", data);
|
|
|
},
|
|
|
isDayOrMoth(arr) {
|
|
|
- console.log(arr);
|
|
|
+
|
|
|
if (!arr || arr.length < 1) {
|
|
|
this.timer = "day";
|
|
|
} else {
|