fix: 🐛 修复已知统计问题

master
Yer 2023-09-26 15:53:13 +08:00
parent b8c74ac84c
commit 2c66eaae2b
2 changed files with 13 additions and 6 deletions

View File

@ -138,6 +138,9 @@ export default {
this.$emit("selected", this.selectedWay);
} else {
const current = this.dateList.find(item=>{return item.selected})
this.selectedWay = current
this.$emit("selected", this.selectedWay);
}
},
//
@ -148,14 +151,16 @@ export default {
item.selected = true;
item.storeId = this.storeId;
this.month = "";
const dateList = this.dateList
let currentDate
if (item.searchType == "") {
if (
dateList.some((date) => {
currentDate = date
return date.title == item.title;
})
) {
item.searchType = date.searchType;
item.searchType = currentDate.searchType;
} else {
item.searchType = "LAST_SEVEN";
}
@ -183,8 +188,6 @@ export default {
color: $theme_color;
position: relative;
}
.date-picker {
}
.active:before {
content: "";
position: absolute;

View File

@ -101,6 +101,9 @@ export default {
this.$emit("selected", this.selectedWay);
} else {
const current = this.dateList.find(item=>{return item.selected})
this.selectedWay = current
this.$emit("selected", this.selectedWay);
}
},
//
@ -111,14 +114,15 @@ export default {
item.selected = true;
item.storeId = this.storeId;
this.month = "";
const dateList = this.dateList
let currentDate
if (item.searchType == "") {
if (
dateList.some((date) => {
return date.title == item.title;
})
) {
item.searchType = date.searchType;
item.searchType = currentDate.searchType;
} else {
item.searchType = "LAST_SEVEN";
}