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
1fc4e482
Commit
1fc4e482
authored
Aug 01, 2023
by
Riri Novita
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
locf
parent
2b3c5ad7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
ListOfCreditFacilitiesMR.js
src/container/MonthlyReport/ListOfCreditFacilitiesMR.js
+16
-16
No files found.
src/container/MonthlyReport/ListOfCreditFacilitiesMR.js
View file @
1fc4e482
...
@@ -1004,22 +1004,22 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -1004,22 +1004,22 @@ export default class ListOfCreditFacilities extends Component {
}
}
this
.
setState
({
loading
:
true
,
dataTable
:
[]
})
this
.
setState
({
loading
:
true
,
dataTable
:
[]
})
console
.
log
(
body
)
console
.
log
(
body
)
//
api.create().uploadSimulasiMRLOCF(body).then(response => {
api
.
create
().
uploadSimulasiMRLOCF
(
body
).
then
(
response
=>
{
//
console.log(response)
console
.
log
(
response
)
//
if (response.data) {
if
(
response
.
data
)
{
//
if (response.ok) {
if
(
response
.
ok
)
{
//
if (response.data.status === "success") {
if
(
response
.
data
.
status
===
"success"
)
{
//
this.props.saveToMonthlyReport('LOCF', "simulasiLOCF")
this
.
props
.
saveToMonthlyReport
(
'LOCF'
,
"simulasiLOCF"
)
//
} else {
}
else
{
//
this.setState({ alert: true, messageAlert: response.data.message, tipeAlert: 'error', loading: false })
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'error'
,
loading
:
false
})
//
}
}
//
} else {
}
else
{
//
this.setState({ alert: true, messageAlert: response.data.message, tipeAlert: 'error', loading: false })
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'error'
,
loading
:
false
})
//
}
}
//
} else {
}
else
{
//
this.setState({ alert: true, messageAlert: 'Error saving data. Please try again', tipeAlert: 'error', loading: false })
this
.
setState
({
alert
:
true
,
messageAlert
:
'Error saving data. Please try again'
,
tipeAlert
:
'error'
,
loading
:
false
})
//
}
}
//
})
})
}
}
uploadLOCF
(
type
)
{
uploadLOCF
(
type
)
{
...
...
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