Browse Source

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

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

15
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}&timestamp=${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}&timestamp=${moment().valueOf()}`
setExportUrl(url);
} else {
Toast.info({
content: '暂无可导出的数据',
duration: 3,
})
}
}
})
}
const scroll = useMemo(() => ({}), []);
return (<div style={{ padding: '0px 12px' }}>

Loading…
Cancel
Save