uu
This commit is contained in:
parent
5ff0c7ddeb
commit
cf12994c36
@ -10,25 +10,31 @@ if(curMYush == 0) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const dateRangeList = [
|
const dateRangeList = [
|
||||||
{ title: '本周', val: 1,
|
{ title: '今天', val: 1,
|
||||||
|
range: [
|
||||||
|
dayjs().format(formatStr),
|
||||||
|
dayjs().format(formatStr)
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{ title: '本周', val: 2,
|
||||||
range: [
|
range: [
|
||||||
dayjs().startOf('week').add(-6, 'day').format(formatStr),
|
dayjs().startOf('week').add(-6, 'day').format(formatStr),
|
||||||
dayjs().endOf('week').add(-6, 'day').format(formatStr)
|
dayjs().endOf('week').add(-6, 'day').format(formatStr)
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{ title: '当月', val: 2,
|
{ title: '当月', val: 3,
|
||||||
range: [
|
range: [
|
||||||
dayjs().startOf('month').format(formatStr),
|
dayjs().startOf('month').format(formatStr),
|
||||||
dayjs().endOf('month').format(formatStr)
|
dayjs().endOf('month').format(formatStr)
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{ title: '本季度', val: 3,
|
{ title: '本季度', val: 4,
|
||||||
range: [
|
range: [
|
||||||
dayjs().month((curMonth - curMYush)).startOf('month').format(formatStr),
|
dayjs().month((curMonth - curMYush)).startOf('month').format(formatStr),
|
||||||
dayjs().month(curMonth + (3 - curMYush) - 1).endOf('month').format(formatStr)
|
dayjs().month(curMonth + (3 - curMYush) - 1).endOf('month').format(formatStr)
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{ title: '本年度', val: 4,
|
{ title: '本年度', val: 5,
|
||||||
range: [
|
range: [
|
||||||
dayjs().startOf('year').format(formatStr),
|
dayjs().startOf('year').format(formatStr),
|
||||||
dayjs().endOf('year').format(formatStr)
|
dayjs().endOf('year').format(formatStr)
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
"appid" : "__UNI__BCB0FB5",
|
"appid" : "__UNI__BCB0FB5",
|
||||||
"description" : "探路国际速运",
|
"description" : "探路国际速运",
|
||||||
"versionName" : "1.0.1",
|
"versionName" : "1.0.1",
|
||||||
"versionCode" : "1056",
|
"versionCode" : "1057",
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
|
|||||||
@ -83,6 +83,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { dateRangeList } from "@/common/enum"
|
import { dateRangeList } from "@/common/enum"
|
||||||
import * as apiService from "@/common/api"
|
import * as apiService from "@/common/api"
|
||||||
|
import dayjs from "dayjs"
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
},
|
},
|
||||||
@ -90,7 +91,10 @@
|
|||||||
return {
|
return {
|
||||||
dateRangeList,
|
dateRangeList,
|
||||||
searchParam: {
|
searchParam: {
|
||||||
_date: [],
|
_date: [
|
||||||
|
`${dayjs().format('YYYY-MM-DD')} 00:00:00`,
|
||||||
|
`${dayjs().format('YYYY-MM-DD')} 23:59:59`
|
||||||
|
],
|
||||||
},
|
},
|
||||||
queryOption: {
|
queryOption: {
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user