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
9bd4d0e2
Commit
9bd4d0e2
authored
Jul 14, 2022
by
muhammad ridwan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
front end tambahan menu carfm
parent
9bd0ec10
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
1369 additions
and
42 deletions
+1369
-42
.env_dev
.env_dev
+1
-1
index.js
src/api/index.js
+5
-0
AntiFraud.js
src/container/CRFM/AntiFraud.js
+357
-0
CreateCrafmDoc.js
src/container/CRFM/CreateCrafmDoc.js
+514
-0
InternalAudit.js
src/container/CRFM/InternalAudit.js
+112
-37
RiskManagement.js
src/container/CRFM/RiskManagement.js
+357
-0
TableDocument.js
src/container/CRFM/TableDocument.js
+8
-4
homeRoutes.js
src/router/homeRoutes.js
+15
-0
No files found.
.env_dev
View file @
9bd4d0e2
// contents of .env
REACT_APP_URL_MAIN_BE=https://tia.eksad.com/tia-reporting
-dev
REACT_APP_URL_MAIN_BE=https://tia.eksad.com/tia-reporting
REACT_APP_URL_MAIN_FE=/tia-web-dev
"cpy_file_build_windows" : "robocopy E:\tia-web\src\tia-dev\src E:\tia-web\src /e",
...
...
src/api/index.js
View file @
9bd4d0e2
...
...
@@ -470,6 +470,7 @@ const create = (type = "") => {
// MANAGEMENT DOCUMENT
// const getDocumentCategory = (body) => api.post('setting/get_all_setting_document_category', body)
const
getDocumentCategory
=
()
=>
api
.
get
(
'setting/get_all_setting_document_category'
)
const
getCarfmDocumentBySubmenu
=
(
body
)
=>
api
.
post
(
'document/get_cafrm_document_by_submenu'
,
body
);
const
getAllDocument
=
(
body
)
=>
api
.
post
(
'document/get_all_document'
,
body
)
const
uploadDocument
=
(
body
)
=>
api
.
post
(
'document/upload_document'
,
body
)
const
updateDocument
=
(
body
)
=>
api
.
post
(
'document/update_document'
,
body
)
...
...
@@ -477,6 +478,8 @@ const create = (type = "") => {
const
getPerusahaanUserActive
=
()
=>
api
.
get
(
'company/get_all_user_company_active'
)
const
getDetailDocument
=
(
id
)
=>
api
.
get
(
`document/get_document_by_id/
${
id
}
`
)
const
deleteDocument
=
(
id
)
=>
api
.
post
(
`document/delete_document/
${
id
}
`
)
const
uploadCarfmDocument
=
(
body
)
=>
api
.
post
(
'document/upload_cafrm_document'
,
body
)
// Monitoring
const
getMonitoringMB
=
(
body
)
=>
api
.
get
(
`transaction/monitoring/submission/
${
body
.
year
}
`
)
...
...
@@ -591,9 +594,11 @@ const create = (type = "") => {
deleteParameter
,
deletePerusahaan
,
deleteReportItems
,
getCarfmDocumentBySubmenu
,
getDocumentCategory
,
getAllDocument
,
uploadDocument
,
uploadCarfmDocument
,
updateDocument
,
downloadDocument
,
getPerusahaanUserActive
,
...
...
src/container/CRFM/AntiFraud.js
0 → 100644
View file @
9bd4d0e2
This diff is collapsed.
Click to expand it.
src/container/CRFM/CreateCrafmDoc.js
0 → 100644
View file @
9bd4d0e2
This diff is collapsed.
Click to expand it.
src/container/CRFM/InternalAudit.js
View file @
9bd4d0e2
This diff is collapsed.
Click to expand it.
src/container/CRFM/RiskManagement.js
0 → 100644
View file @
9bd4d0e2
This diff is collapsed.
Click to expand it.
src/container/CRFM/TableDocument.js
View file @
9bd4d0e2
...
...
@@ -36,7 +36,7 @@ export default class TableDocument extends Component {
componentWillReceiveProps
(
props
)
{
// console.log(props);
const
{
refresh
,
id
}
=
this
.
props
;
const
{
refresh
}
=
this
.
props
;
if
(
props
.
refresh
!==
refresh
)
{
this
.
getData
()
}
...
...
@@ -47,8 +47,10 @@ export default class TableDocument extends Component {
"submenu_id"
:
this
.
props
.
submenu_id
}
this
.
setState
({
loading
:
true
})
api
.
create
().
getCrfmDocumentBySubmenu
(
payload
).
then
(
response
=>
{
api
.
create
().
getCarfmDocumentBySubmenu
(
payload
).
then
(
response
=>
{
console
.
log
(
"table document carfm"
);
console
.
log
(
response
)
console
.
log
(
"table document carfm stop"
)
if
(
response
.
data
)
{
if
(
response
.
ok
)
{
if
(
response
.
data
.
status
==
'success'
)
{
...
...
@@ -98,9 +100,11 @@ export default class TableDocument extends Component {
})
}
}
else
{
console
.
log
(
"error di table document getcarfm 1"
);
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'error'
,
loading
:
false
})
}
}
else
{
console
.
log
(
"error di table document getcarfm 2"
);
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
problem
,
tipeAlert
:
'error'
,
loading
:
false
})
}
})
...
...
@@ -139,7 +143,7 @@ export default class TableDocument extends Component {
<
div
style
=
{{
display
:
'flex'
}}
>
{
this
.
props
.
btn
view
&&
<
a
data
-
tip
=
{
'Download'
}
data
-
for
=
"download"
>
{
this
.
props
.
btn
download
&&
<
a
data
-
tip
=
{
'Download'
}
data
-
for
=
"download"
>
<
button
style
=
{{
backgroundColor
:
'transparent'
,
...
...
@@ -166,7 +170,7 @@ export default class TableDocument extends Component {
display
:
false
}
},
"Description"
,
"Description"
,
"Company Name"
,
"Period Month"
,
"Period Year"
,
"Type"
,
"File Size"
,
"Created By"
,
"Created Date"
,
{
name
:
"Category"
,
...
...
src/router/homeRoutes.js
View file @
9bd4d0e2
...
...
@@ -21,6 +21,9 @@ import SubHolding from '../container/Laporan/SubHolding';
import
SummaryTriputra
from
'../container/SummaryTriputra/SummaryOfTriputra'
;
import
MasterDataCAT
from
'../container/MasterData/MasterDataCAT/MasterDataCAT'
import
ProgressReport
from
'../container/Progress/ProgressReport'
import
InternalAudit
from
"../container/CRFM/InternalAudit"
;
import
AntiFraud
from
"../container/CRFM/AntiFraud"
;
import
RiskManagement
from
"../container/CRFM/RiskManagement"
;
const
routes
=
[
{
...
...
@@ -111,6 +114,18 @@ const routes = [
path
:
"/home/progress-reports"
,
main
:
ProgressReport
},
{
path
:
"/home/internal-audit"
,
main
:
InternalAudit
},
{
path
:
"/home/anti-fraud"
,
main
:
AntiFraud
},
{
path
:
"/home/risk-management"
,
main
:
RiskManagement
},
{
path
:
"*"
,
main
:
screen404
...
...
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