|
@@ -6,6 +6,7 @@
|
|
|
:title="'经营数据'"
|
|
|
@changeValue="changeValue"
|
|
|
:isShowQuert="true"
|
|
|
+ :endDate='endDate'
|
|
|
/>
|
|
|
</div>
|
|
|
<statistic :col="5" class="statistic" :cols="0">
|
|
@@ -29,9 +30,7 @@
|
|
|
/>
|
|
|
</el-tooltip>
|
|
|
</span>
|
|
|
- <span>
|
|
|
- <count-to :endVal="item.percent" :decimals="2" />元
|
|
|
- </span>
|
|
|
+ <span> <count-to :endVal="item.percent" :decimals="2" />元 </span>
|
|
|
</statistic-item>
|
|
|
</statistic>
|
|
|
<!-- 按月/按天 -->
|
|
@@ -103,7 +102,7 @@ export default {
|
|
|
},
|
|
|
yAxis: {
|
|
|
//纵轴标尺固定
|
|
|
- minInterval:1,
|
|
|
+ minInterval: 1,
|
|
|
type: "value",
|
|
|
scale: true,
|
|
|
min: 0,
|
|
@@ -157,7 +156,6 @@ export default {
|
|
|
},
|
|
|
chartDataForMoth() {
|
|
|
const values = Object.values(this.items);
|
|
|
- console.log(values);
|
|
|
const months = {};
|
|
|
for (const item of values) {
|
|
|
for (const row of item.indexMonthData || []) {
|
|
@@ -193,12 +191,17 @@ export default {
|
|
|
return {
|
|
|
active: "SHOULD_INCOME_MONEY",
|
|
|
timer: "day",
|
|
|
- mdate: this.search?.dates,
|
|
|
+ mdate:[],
|
|
|
loading: false,
|
|
|
+ endDate:''
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
- console.log(this.search?.dates);
|
|
|
+ this.mdate = this.getInitDate()
|
|
|
+ this.endDate = this.$helpers
|
|
|
+ .dayjs(new Date())
|
|
|
+ .format("YYYY-MM-DD");
|
|
|
+ this.changeValue(this.mdate)
|
|
|
},
|
|
|
methods: {
|
|
|
changeValue(date) {
|
|
@@ -232,14 +235,12 @@ export default {
|
|
|
} catch (error) {
|
|
|
console.log(error);
|
|
|
}
|
|
|
- console.log(data);
|
|
|
this.dataInfo = data;
|
|
|
this.loading = false;
|
|
|
this.$emit("resetDate", data);
|
|
|
},
|
|
|
|
|
|
isDayOrMoth(arr) {
|
|
|
- console.log(arr);
|
|
|
if (!arr || arr.length < 1) {
|
|
|
this.timer = "day";
|
|
|
} else {
|
|
@@ -251,6 +252,16 @@ export default {
|
|
|
: (this.timer = "day");
|
|
|
}
|
|
|
},
|
|
|
+ getInitDate() {
|
|
|
+ const end = this.$helpers
|
|
|
+ .dayjs(new Date())
|
|
|
+ .format("YYYY-MM-DD");
|
|
|
+ const start = this.$helpers
|
|
|
+ .dayjs(new Date())
|
|
|
+ .set("date", 1)
|
|
|
+ .format("YYYY-MM-DD");
|
|
|
+ return [start, end];
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|