Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
Tia-dev
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dida Adams Arizona
Tia-dev
Commits
4212cf00
Commit
4212cf00
authored
Feb 24, 2021
by
rifkaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
download master data cat
parent
e9162c5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
MasterDataCAT.js
src/container/MasterData/MasterDataCAT/MasterDataCAT.js
+4
-2
No files found.
src/container/MasterData/MasterDataCAT/MasterDataCAT.js
View file @
4212cf00
...
...
@@ -765,8 +765,10 @@ export default class MasterDataCAT extends Component {
}
downloadDataTable
=
async
()
=>
{
let
url
=
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/item_report_company/export_item_report_company`
console
.
log
(
url
)
let
res
=
await
fetch
(
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/
public/item_report/export_item_report
`
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/
item_report_company/export_item_report_company
`
)
res
=
await
res
.
blob
()
// console.log(res)
...
...
@@ -774,7 +776,7 @@ export default class MasterDataCAT extends Component {
let
url
=
window
.
URL
.
createObjectURL
(
res
);
let
a
=
document
.
createElement
(
'a'
);
a
.
href
=
url
;
a
.
download
=
'
Report Items
.xlsx'
;
a
.
download
=
'
Master Data - CAT
.xlsx'
;
a
.
click
();
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment