|
|
|
|
@ -12,7 +12,7 @@
|
|
|
|
|
<el-col span="6"> |
|
|
|
|
<el-form-item label="来信时间"> |
|
|
|
|
<el-date-picker v-model="query.mailTime" value-format="YYYY-MM-DD" type="daterange" |
|
|
|
|
range-separator="~" start-placeholder="开始日期" end-placeholder="结束日期" /> |
|
|
|
|
range-separator="~" start-placeholder="开始日期" end-placeholder="结束日期" @change="handleMailTimeQuery"/> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col span="6"> |
|
|
|
|
@ -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 |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
|
|