code refactor

This commit is contained in:
MaysWind
2021-01-20 23:01:40 +08:00
parent c0cfa38257
commit 4179cc00e2
6 changed files with 146 additions and 121 deletions
+54
View File
@@ -0,0 +1,54 @@
const allDateRanges = {
All: {
type: 0,
name: 'All'
},
Today: {
type: 1,
name: 'Today'
},
Yesterday: {
type: 2,
name: 'Yesterday'
},
LastSevenDays: {
type: 3,
name: 'Recent 7 days'
},
LastThirtyDays: {
type: 4,
name: 'Recent 30 days'
},
ThisWeek: {
type: 5,
name: 'This week'
},
LastWeek: {
type: 6,
name: 'Last week'
},
ThisMonth: {
type: 7,
name: 'This month'
},
LastMonth: {
type: 8,
name: 'Last month'
},
ThisYear: {
type: 9,
name: 'This year'
},
LastYear: {
type: 10,
name: 'Last year'
},
Custom: {
type: 11,
name: 'Custom Date'
}
};
export default {
allDateRanges: allDateRanges,
};