diff --git a/src/views/guildOperationManagement/agentSendSalary.vue b/src/views/guildOperationManagement/agentSendSalary.vue index 87c30d5..2610a61 100644 --- a/src/views/guildOperationManagement/agentSendSalary.vue +++ b/src/views/guildOperationManagement/agentSendSalary.vue @@ -113,6 +113,7 @@ import { chargeAgentList, chargeAgentSum } from "@/api/relAgency/relAgency.js"; import TablePagination from "@/components/common/TablePagination"; import { formatDate, formatDateYMD } from "@/utils/relDate"; +import { dateFormat } from "@/utils/system-helper"; // @ts-ignore import { ElMessage } from "element-plus"; import { ref } from "vue"; @@ -176,8 +177,8 @@ export default { this.tableLoading = true; let { pageParams, searchForm } = this; - searchForm.startTime = formatDate(searchForm.startTime ) - searchForm.endTime = formatDate(searchForm.endTime ) + searchForm.startTime = dateFormat(searchForm.startTime,'yyyy-MM-dd hh:mm:ss'); + searchForm.endTime = dateFormat(searchForm.endTime,'yyyy-MM-dd hh:mm:ss'); searchForm = JSON.parse(JSON.stringify(searchForm)); pageParams = JSON.parse(JSON.stringify(pageParams)); Object.keys(searchForm).forEach((item) => { diff --git a/src/views/guildOperationManagement/officialWithdrawRecord.vue b/src/views/guildOperationManagement/officialWithdrawRecord.vue index 08c6d9f..73e8936 100644 --- a/src/views/guildOperationManagement/officialWithdrawRecord.vue +++ b/src/views/guildOperationManagement/officialWithdrawRecord.vue @@ -158,6 +158,7 @@ import { } from "@/api/relAgency/relAgency.js"; import TablePagination from "@/components/common/TablePagination"; import { formatDate, formatDateYMD } from "@/utils/relDate"; +import { dateFormat } from "@/utils/system-helper"; import { ElMessage } from "element-plus"; import { ElMessageBox } from 'element-plus'; // 正确引入 ElM // 混入 @@ -225,8 +226,8 @@ export default { this.tableLoading = true; let { pageParams, searchForm } = this; - searchForm.startTime = formatDate(searchForm.startTime ) - searchForm.endTime = formatDate(searchForm.endTime ) + searchForm.startTime = dateFormat(searchForm.startTime,'yyyy-MM-dd hh:mm:ss'); + searchForm.endTime = dateFormat(searchForm.endTime,'yyyy-MM-dd hh:mm:ss'); searchForm = JSON.parse(JSON.stringify(searchForm)); pageParams = JSON.parse(JSON.stringify(pageParams)); Object.keys(searchForm).forEach((item) => {