|
@@ -64,6 +64,8 @@ import { defaultDate } from '@/utils/constants';
|
|
|
import Other from '@/utils/other';
|
|
|
import { callDetailList, callDetailListExport, callPeriodBase } from '@/api/statistics/call';
|
|
|
import { useRouter } from 'vue-router';
|
|
|
+import { formatDate } from '@/utils/formatTime';
|
|
|
+import dayjs from 'dayjs';
|
|
|
|
|
|
const StatisticalTime = defineAsyncComponent(() => import('@/components/StatisticalTime/index.vue')); // 日期类型选择组件
|
|
|
// 表格配置项
|
|
@@ -300,8 +302,8 @@ const linkDetail = (scope: any, type?: string) => {
|
|
|
router.push({
|
|
|
path: '/statistics/call/detailIndexTime',
|
|
|
query: {
|
|
|
- StartTime: scope.row.date,
|
|
|
- EndTime: scope.row.date,
|
|
|
+ StartTime:dayjs(scope.row.date).startOf('day').format('YYYY-MM-DD[T]HH:mm:ss'),
|
|
|
+ EndTime: dayjs(scope.row.date).endOf('day').format('YYYY-MM-DD[T]HH:mm:ss'),
|
|
|
},
|
|
|
});
|
|
|
} else {
|
|
@@ -309,8 +311,8 @@ const linkDetail = (scope: any, type?: string) => {
|
|
|
router.push({
|
|
|
path: '/statistics/call/detailIndexCall',
|
|
|
query: {
|
|
|
- StartTime: scope.row.date,
|
|
|
- EndTime: scope.row.date,
|
|
|
+ StartTime:dayjs(scope.row.date).startOf('day').format('YYYY-MM-DD[T]HH:mm:ss'),
|
|
|
+ EndTime: dayjs(scope.row.date).endOf('day').format('YYYY-MM-DD[T]HH:mm:ss'),
|
|
|
TypeCode,
|
|
|
},
|
|
|
});
|