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
700d2fdd
Commit
700d2fdd
authored
Aug 14, 2020
by
Deni Rinaldi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ganti api
parent
ae8ec620
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
index.js
src/api/index.js
+1
-1
UnitBisnis.js
src/container/MasterData/UnitBisnis.js
+2
-2
No files found.
src/api/index.js
View file @
700d2fdd
...
@@ -3,7 +3,7 @@ import apisauce from 'apisauce'
...
@@ -3,7 +3,7 @@ import apisauce from 'apisauce'
import
Constant
from
'../library/Constant'
import
Constant
from
'../library/Constant'
// our "constructor"
// our "constructor"
const
create
=
(
baseURL
=
'https://t
rft
ia.eksad.com/tia-reporting-dev/public/'
)
=>
{
const
create
=
(
baseURL
=
'https://tia.eksad.com/tia-reporting-dev/public/'
)
=>
{
// ------
// ------
// STEP 1
// STEP 1
// ------
// ------
...
...
src/container/MasterData/UnitBisnis.js
View file @
700d2fdd
...
@@ -236,7 +236,7 @@ export default class UnitBisnis extends Component {
...
@@ -236,7 +236,7 @@ export default class UnitBisnis extends Component {
downloadFile
=
async
()
=>
{
downloadFile
=
async
()
=>
{
let
res
=
await
fetch
(
let
res
=
await
fetch
(
"https://t
rft
ia.eksad.com/tia-reporting-dev/public/attachment/download_file?fileName=BusinessUnitTemplate&&fileType=xlsx"
"https://tia.eksad.com/tia-reporting-dev/public/attachment/download_file?fileName=BusinessUnitTemplate&&fileType=xlsx"
)
)
res
=
await
res
.
blob
()
res
=
await
res
.
blob
()
console
.
log
(
res
)
console
.
log
(
res
)
...
@@ -251,7 +251,7 @@ export default class UnitBisnis extends Component {
...
@@ -251,7 +251,7 @@ export default class UnitBisnis extends Component {
downloadDataTable
=
async
()
=>
{
downloadDataTable
=
async
()
=>
{
let
res
=
await
fetch
(
let
res
=
await
fetch
(
"https://t
rft
ia.eksad.com/tia-reporting-dev/public/business_unit/export_business_unit"
"https://tia.eksad.com/tia-reporting-dev/public/business_unit/export_business_unit"
)
)
res
=
await
res
.
blob
()
res
=
await
res
.
blob
()
console
.
log
(
res
)
console
.
log
(
res
)
...
...
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