fix: 🐛 修复已知统计问题
parent
b8c74ac84c
commit
2c66eaae2b
|
@ -138,6 +138,9 @@ export default {
|
||||||
|
|
||||||
this.$emit("selected", this.selectedWay);
|
this.$emit("selected", this.selectedWay);
|
||||||
} else {
|
} 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.selected = true;
|
||||||
item.storeId = this.storeId;
|
item.storeId = this.storeId;
|
||||||
this.month = "";
|
this.month = "";
|
||||||
|
const dateList = this.dateList
|
||||||
|
let currentDate
|
||||||
if (item.searchType == "") {
|
if (item.searchType == "") {
|
||||||
if (
|
if (
|
||||||
dateList.some((date) => {
|
dateList.some((date) => {
|
||||||
|
currentDate = date
|
||||||
return date.title == item.title;
|
return date.title == item.title;
|
||||||
})
|
})
|
||||||
) {
|
) {
|
||||||
item.searchType = date.searchType;
|
item.searchType = currentDate.searchType;
|
||||||
} else {
|
} else {
|
||||||
item.searchType = "LAST_SEVEN";
|
item.searchType = "LAST_SEVEN";
|
||||||
}
|
}
|
||||||
|
@ -183,8 +188,6 @@ export default {
|
||||||
color: $theme_color;
|
color: $theme_color;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
.date-picker {
|
|
||||||
}
|
|
||||||
.active:before {
|
.active:before {
|
||||||
content: "";
|
content: "";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
|
@ -101,6 +101,9 @@ export default {
|
||||||
|
|
||||||
this.$emit("selected", this.selectedWay);
|
this.$emit("selected", this.selectedWay);
|
||||||
} else {
|
} 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.selected = true;
|
||||||
item.storeId = this.storeId;
|
item.storeId = this.storeId;
|
||||||
this.month = "";
|
this.month = "";
|
||||||
|
const dateList = this.dateList
|
||||||
|
let currentDate
|
||||||
if (item.searchType == "") {
|
if (item.searchType == "") {
|
||||||
if (
|
if (
|
||||||
dateList.some((date) => {
|
dateList.some((date) => {
|
||||||
return date.title == item.title;
|
return date.title == item.title;
|
||||||
})
|
})
|
||||||
) {
|
) {
|
||||||
item.searchType = date.searchType;
|
item.searchType = currentDate.searchType;
|
||||||
} else {
|
} else {
|
||||||
item.searchType = "LAST_SEVEN";
|
item.searchType = "LAST_SEVEN";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue