|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div class="statistics-call-detail-index-container layout-padding">
|
|
|
- <div class="layout-padding-auto layout-padding-view pd20">
|
|
|
+ <div class="layout-padding-auto layout-padding-view pd20">
|
|
|
<ProTable
|
|
|
ref="proTableRef"
|
|
|
:columns="columns"
|
|
@@ -15,19 +15,19 @@
|
|
|
show-summary
|
|
|
:summary-method="getSummaries"
|
|
|
>
|
|
|
- <template #table-search>
|
|
|
- <el-form :model="state.queryParams" ref="ruleFormRef" @submit.native.prevent inline>
|
|
|
+ <template #table-search>
|
|
|
+ <el-form :model="state.queryParams" ref="ruleFormRef" @submit.native.prevent inline>
|
|
|
<el-form-item prop="crTime">
|
|
|
<statistical-time v-model="state.queryParams.crTime" @change="handleQuery" ref="statisticalTimeRef"/>
|
|
|
</el-form-item>
|
|
|
- <el-form-item>
|
|
|
- <el-button type="primary" @click="handleQuery" :loading="state.loading"> <SvgIcon name="ele-Search" class="mr5" />查询 </el-button>
|
|
|
- <el-button @click="resetQuery(ruleFormRef)" class="default-button" :loading="state.loading">
|
|
|
- <SvgIcon name="ele-Refresh" class="mr5" />重置
|
|
|
- </el-button>
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
- </template>
|
|
|
+ <el-form-item>
|
|
|
+ <el-button type="primary" @click="handleQuery" :loading="state.loading"> <SvgIcon name="ele-Search" class="mr5" />查询 </el-button>
|
|
|
+ <el-button @click="resetQuery(ruleFormRef)" class="default-button" :loading="state.loading">
|
|
|
+ <SvgIcon name="ele-Refresh" class="mr5" />重置
|
|
|
+ </el-button>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ </template>
|
|
|
<template #description>
|
|
|
<el-popover :width="500" trigger="click">
|
|
|
<template #reference>
|
|
@@ -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,
|
|
|
},
|
|
|
});
|