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
21ba5a14
Commit
21ba5a14
authored
Jan 16, 2023
by
Riri Novita
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev/riri' into 'ENV-DEV'
Binding Maintenance Mode See merge request
!1665
parents
db4f4636
661acec7
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
240 additions
and
44 deletions
+240
-44
index.js
src/api/index.js
+9
-1
MaintenanceMode.js
src/container/GeneralSetting/MaintenanceMode.js
+231
-43
No files found.
src/api/index.js
View file @
21ba5a14
...
@@ -488,6 +488,11 @@ const create = (type = "") => {
...
@@ -488,6 +488,11 @@ const create = (type = "") => {
const
getMonitoringOLPA
=
(
body
)
=>
api
.
get
(
`transaction/monitoring/outlook/
${
body
.
year
}
`
)
const
getMonitoringOLPA
=
(
body
)
=>
api
.
get
(
`transaction/monitoring/outlook/
${
body
.
year
}
`
)
const
getMonitoringCafrm
=
(
body
)
=>
api
.
get
(
`transaction/monitoring/cafrm/
${
body
.
year
}
/
${
body
.
month
}
/
${
body
.
status
}
`
)
const
getMonitoringCafrm
=
(
body
)
=>
api
.
get
(
`transaction/monitoring/cafrm/
${
body
.
year
}
/
${
body
.
month
}
/
${
body
.
status
}
`
)
// Maintenance
const
getDetailMaintenanceMode
=
()
=>
api
.
get
(
'maintenance/mode/get_maintenance_mode'
)
const
createMaintenanceMode
=
(
body
)
=>
api
.
post
(
'maintenance/mode/create_maintenance_mode'
,
body
)
const
updateMaintenanceMode
=
(
body
)
=>
api
.
post
(
'maintenance/mode/update_maintenance_mode'
,
body
)
// Superadmin Approve
// Superadmin Approve
const
getListApprover
=
(
report
,
monthlyReportId
)
=>
api
.
get
(
`transaction/
${
report
}
/get_approver/
${
monthlyReportId
}
`
)
const
getListApprover
=
(
report
,
monthlyReportId
)
=>
api
.
get
(
`transaction/
${
report
}
/get_approver/
${
monthlyReportId
}
`
)
const
getIdToken
=
(
userId
)
=>
api
.
get
(
`transaction/get_token/
${
userId
}
`
)
const
getIdToken
=
(
userId
)
=>
api
.
get
(
`transaction/get_token/
${
userId
}
`
)
...
@@ -844,7 +849,10 @@ const create = (type = "") => {
...
@@ -844,7 +849,10 @@ const create = (type = "") => {
getMonitoringCafrm
,
getMonitoringCafrm
,
getListApprover
,
getListApprover
,
getIdToken
,
getIdToken
,
triggerHistoricalRatio
triggerHistoricalRatio
,
getDetailMaintenanceMode
,
createMaintenanceMode
,
updateMaintenanceMode
}
}
}
}
...
...
src/container/GeneralSetting/MaintenanceMode.js
View file @
21ba5a14
This diff is collapsed.
Click to expand it.
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