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