diff --git a/web/client/src/sections/humanAffairs/containers/communication/employeeCommunication.jsx b/web/client/src/sections/humanAffairs/containers/communication/employeeCommunication.jsx index 2938434..8c4ff41 100644 --- a/web/client/src/sections/humanAffairs/containers/communication/employeeCommunication.jsx +++ b/web/client/src/sections/humanAffairs/containers/communication/employeeCommunication.jsx @@ -192,8 +192,19 @@ const EmployeeCommunication = (props) => { } const exportAllData = () => { - let url = `export/employee/communicate?token=${user.token}×tamp=${moment().valueOf()}` - setExportUrl(url); + dispatch(humanAffairs.getEmployeeCommunicate({ limit: 1, page: 0 })).then((res) => { + if (res.success) { + if (res.payload.data.count) { + let url = `export/employee/communicate?token=${user.token}×tamp=${moment().valueOf()}` + setExportUrl(url); + } else { + Toast.info({ + content: '暂无可导出的数据', + duration: 3, + }) + } + } + }) } const scroll = useMemo(() => ({}), []); return (