[New Feature] Export Excel Request LOG
This commit is contained in:
@@ -170,7 +170,7 @@ export default function List() {
|
||||
}
|
||||
|
||||
const handleGetData = (type :string) => {
|
||||
axios.get(`customer-service/request/data`)
|
||||
axios.get(`report/logs/export`)
|
||||
.then((response) => {
|
||||
const link = document.createElement('a');
|
||||
link.href = response.data.data.file_url;
|
||||
@@ -200,7 +200,7 @@ export default function List() {
|
||||
sx={{ p: 1.8 }}
|
||||
onClick={handleClick}
|
||||
>
|
||||
Import
|
||||
Export
|
||||
</Button>
|
||||
<Menu
|
||||
id="import-button"
|
||||
@@ -211,9 +211,7 @@ export default function List() {
|
||||
'aria-labelledby': 'basic-button',
|
||||
}}
|
||||
>
|
||||
<MenuItem onClick={handleImportButton}>Import</MenuItem>
|
||||
<MenuItem onClick={() => {handleGetTemplate('template-request-log')}}>Download Template</MenuItem>
|
||||
<MenuItem onClick={() => {handleGetData('data-request-log')}}>Download Request LOG</MenuItem>
|
||||
<MenuItem onClick={() => {handleGetData('')}}>Download Excel</MenuItem>
|
||||
</Menu>
|
||||
</Stack>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user