Browse Source

(*)员工沟通统计导出优化

master
zmh 2 years ago
parent
commit
00956cb31c
  1. 11
      web/client/src/sections/humanAffairs/containers/communication/employeeCommunication.jsx

11
web/client/src/sections/humanAffairs/containers/communication/employeeCommunication.jsx

@ -192,8 +192,19 @@ const EmployeeCommunication = (props) => {
} }
const exportAllData = () => { const exportAllData = () => {
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}&timestamp=${moment().valueOf()}` let url = `export/employee/communicate?token=${user.token}&timestamp=${moment().valueOf()}`
setExportUrl(url); setExportUrl(url);
} else {
Toast.info({
content: '暂无可导出的数据',
duration: 3,
})
}
}
})
} }
const scroll = useMemo(() => ({}), []); const scroll = useMemo(() => ({}), []);
return (<div style={{ padding: '0px 12px' }}> return (<div style={{ padding: '0px 12px' }}>

Loading…
Cancel
Save