diff --git a/src/views/guildOperationManagement/agentSendSalary.vue b/src/views/guildOperationManagement/agentSendSalary.vue index 2610a61..5d8be60 100644 --- a/src/views/guildOperationManagement/agentSendSalary.vue +++ b/src/views/guildOperationManagement/agentSendSalary.vue @@ -177,8 +177,13 @@ export default { this.tableLoading = true; let { pageParams, searchForm } = this; - searchForm.startTime = dateFormat(searchForm.startTime,'yyyy-MM-dd hh:mm:ss'); - searchForm.endTime = dateFormat(searchForm.endTime,'yyyy-MM-dd hh:mm:ss'); + console.log(searchForm); + searchForm.startTime = searchForm.startTime + ? dateFormat(searchForm.startTime, "yyyy-MM-dd hh:mm:ss") + : null; + searchForm.endTime = searchForm.endTime + ? dateFormat(searchForm.endTime, "yyyy-MM-dd hh:mm:ss") + : null; searchForm = JSON.parse(JSON.stringify(searchForm)); pageParams = JSON.parse(JSON.stringify(pageParams)); Object.keys(searchForm).forEach((item) => { @@ -198,7 +203,7 @@ export default { let data = res.data; this.tableData = data.records; this.pageTotal = data.total; - }else { + } else { ElMessage({ showClose: true, message: res.message, @@ -209,7 +214,7 @@ export default { chargeAgentSum(pageParams).then((res) => { if (res.code == 200) { this.total = res.data; - }else { + } else { ElMessage({ showClose: true, message: res.message,