diff --git a/src/views/work/components/MailCheck.vue b/src/views/work/components/MailCheck.vue
index 5b0056f..15e0a34 100644
--- a/src/views/work/components/MailCheck.vue
+++ b/src/views/work/components/MailCheck.vue
@@ -12,7 +12,7 @@
+ range-separator="~" start-placeholder="开始日期" end-placeholder="结束日期" @change="handleMailTimeQuery"/>
@@ -144,6 +144,8 @@ const importData = ref([])
const handleUpload: UploadProps['httpRequest'] = (file) => {
const formData = new FormData(); // 创建表单数据对象
+ formData.append("mailTimeStart",query.value.mailTimeStart)
+ formData.append("mailTimeStartEnd",query.value.mailTimeEnd)
formData.append("file", file.file); // 将文件添加到表单数据中
return axios.post("/lan-api/api/work/check", formData) // 使用 axios 发送 post 请求到后端
.then((res) => {
@@ -190,6 +192,15 @@ const handleExceed: UploadProps['onExceed'] = (files) => {
function resetView(){
ifShow.value = false
}
+const handleMailTimeQuery = (val: any) => {
+ if (val) {
+ query.value.mailTimeStart = val[0];
+ query.value.mailTimeEnd = val[1];
+ }else{
+ delete query.value.mailTimeStart
+ delete query.value.mailTimeEnd
+ }
+}