diff --git a/src/pages/back/index.vue b/src/pages/back/index.vue index a2d25ba..c554d2a 100644 --- a/src/pages/back/index.vue +++ b/src/pages/back/index.vue @@ -150,7 +150,10 @@ import { debounce } from 'lodash-es' const total = ref(0) // 数据总量 const active = ref(1) // tap索引 const tableList = ref([]) // 列表数据源 -const dateArray = ref([]) // 日期范围 +const dateArray = ref([ + new Date(new Date().getTime() - 30 * 24 * 60 * 60 * 1000).toISOString().split('T')[0], + new Date().toISOString().split('T')[0] +]) // 日期范围 const swipeRef = ref() // 签字状态选项 const signOptions = ref([ @@ -160,8 +163,8 @@ const signOptions = ref([ ]); // 查询参数 const queryParams = ref({ - startTime: '', // 开始时间 - endTime: '', // 结束时间 + startTime: dateArray.value[0] || '', // 开始时间 + endTime: dateArray.value[1] || '', // 结束时间 keyWord: '', // 关键字 appTaskStatus: 0, isSign: 0, // 默认显示全部 diff --git a/src/pages/new-purchase/accept/index.vue b/src/pages/new-purchase/accept/index.vue index 90027d9..963ba16 100644 --- a/src/pages/new-purchase/accept/index.vue +++ b/src/pages/new-purchase/accept/index.vue @@ -15,6 +15,7 @@