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
5a6a3fce
Commit
5a6a3fce
authored
Feb 24, 2021
by
Rifka Kurnia
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'rifka' into 'master'
list md cat See merge request
!1217
parents
b2cdb131
d9ebeac5
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
309 deletions
+23
-309
CreateMasterDataCAT.js
...container/MasterData/MasterDataCAT/CreateMasterDataCAT.js
+3
-289
EditMasterDataCAT.js
src/container/MasterData/MasterDataCAT/EditMasterDataCAT.js
+8
-1
MasterDataCAT.js
src/container/MasterData/MasterDataCAT/MasterDataCAT.js
+12
-19
No files found.
src/container/MasterData/MasterDataCAT/CreateMasterDataCAT.js
View file @
5a6a3fce
This diff is collapsed.
Click to expand it.
src/container/MasterData/MasterDataCAT/EditMasterDataCAT.js
View file @
5a6a3fce
...
...
@@ -177,9 +177,9 @@ export default class EditMasterDataCAT extends Component {
dataSource
[
indexID
].
weight
=
e
.
target
.
value
this
.
setState
({
getParent
:
dataSource
},
()
=>
{
console
.
log
(
this
.
state
.
getParent
);
this
.
clearMessage
()
})
}
console
.
log
(
e
.
target
.
value
)
}
handleReportName
(
item
)
{
...
...
@@ -334,6 +334,13 @@ export default class EditMasterDataCAT extends Component {
})
}
clearMessage
()
{
this
.
setState
({
errorFormula
:
false
,
msgErrorFormula
:
''
,
errorWeight
:
false
,
msgErrorWeight
:
''
})
}
closeAlert
()
{
this
.
setState
({
alert
:
false
})
}
...
...
src/container/MasterData/MasterDataCAT/MasterDataCAT.js
View file @
5a6a3fce
...
...
@@ -604,7 +604,7 @@ export default class MasterDataCAT extends Component {
return
[
index
,
item
.
item_report_id
,
item
.
report_name
,
item
.
item_
report_name
,
item
.
company_name
,
item
.
report_name
,
item
.
weight
,
...
...
@@ -877,60 +877,60 @@ export default class MasterDataCAT extends Component {
}
},
{
name
:
"
Item
Report Name"
,
name
:
"Report Name"
,
options
:
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
return
(
<
div
style
=
{{
display
:
'flex'
}}
>
<
span
style
=
{{
color
:
tableMeta
.
rowData
[
7
]
===
"Active"
?
"#656565"
:
'rgba(0, 0, 0, 0.25)'
}}
>
{
val
}
<
/span
>
<
span
style
=
{{
color
:
tableMeta
.
rowData
[
7
]
===
"Active"
?
"#656565"
:
'rgba(0, 0, 0, 0.25)'
}}
>
{
tableMeta
.
rowData
[
4
]
}
<
/span
>
<
/div
>
);
}
}
},
{
name
:
"
Company
Name"
,
name
:
"
Item Report
Name"
,
options
:
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
return
(
<
div
style
=
{{
display
:
'flex'
}}
>
<
span
style
=
{{
color
:
tableMeta
.
rowData
[
7
]
===
"Active"
?
"#656565"
:
'rgba(0, 0, 0, 0.25)'
}}
>
{
val
}
<
/span
>
<
span
style
=
{{
color
:
tableMeta
.
rowData
[
7
]
===
"Active"
?
"#656565"
:
'rgba(0, 0, 0, 0.25)'
}}
>
{
tableMeta
.
rowData
[
2
]
}
<
/span
>
<
/div
>
);
}
}
},
{
name
:
"
Report Name
"
,
name
:
"
Year
"
,
options
:
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
return
(
<
div
style
=
{{
display
:
'flex'
}}
>
<
span
style
=
{{
color
:
tableMeta
.
rowData
[
7
]
===
"Active"
?
"#656565"
:
'rgba(0, 0, 0, 0.25)'
}}
>
{
val
}
<
/span
>
<
span
style
=
{{
color
:
tableMeta
.
rowData
[
7
]
===
"Active"
?
"#656565"
:
'rgba(0, 0, 0, 0.25)'
}}
>
{
tableMeta
.
rowData
[
6
]
}
<
/span
>
<
/div
>
);
}
}
},
{
name
:
"
Weight
"
,
name
:
"
Company Name
"
,
options
:
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
return
(
<
div
style
=
{{
display
:
'flex'
}}
>
<
span
style
=
{{
color
:
tableMeta
.
rowData
[
7
]
===
"Active"
?
"#656565"
:
'rgba(0, 0, 0, 0.25)'
}}
>
{
val
}
<
/span
>
<
span
style
=
{{
color
:
tableMeta
.
rowData
[
7
]
===
"Active"
?
"#656565"
:
'rgba(0, 0, 0, 0.25)'
}}
>
{
tableMeta
.
rowData
[
3
]
}
<
/span
>
<
/div
>
);
}
}
},
{
name
:
"
Year
"
,
name
:
"
Weight
"
,
options
:
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
return
(
<
div
style
=
{{
display
:
'flex'
}}
>
<
span
style
=
{{
color
:
tableMeta
.
rowData
[
7
]
===
"Active"
?
"#656565"
:
'rgba(0, 0, 0, 0.25)'
}}
>
{
val
}
<
/span
>
<
span
style
=
{{
color
:
tableMeta
.
rowData
[
7
]
===
"Active"
?
"#656565"
:
'rgba(0, 0, 0, 0.25)'
}}
>
{
tableMeta
.
rowData
[
5
]
}
<
/span
>
<
/div
>
);
}
...
...
@@ -942,7 +942,7 @@ export default class MasterDataCAT extends Component {
customBodyRender
:
(
val
,
tableMeta
)
=>
{
return
(
<
div
style
=
{{
display
:
'flex'
}}
>
<
span
style
=
{{
color
:
tableMeta
.
rowData
[
7
]
===
"Active"
?
"#656565"
:
'rgba(0, 0, 0, 0.25)'
}}
>
{
val
}
<
/span
>
<
span
style
=
{{
color
:
tableMeta
.
rowData
[
7
]
===
"Active"
?
"#656565"
:
'rgba(0, 0, 0, 0.25)'
}}
>
{
tableMeta
.
rowData
[
7
]
}
<
/span
>
<
/div
>
);
}
...
...
@@ -955,13 +955,6 @@ export default class MasterDataCAT extends Component {
}
}
]
const
data
=
[
[
""
,
"1"
,
"KPI"
,
"TIA"
,
"1"
,
"Financial Perspective"
,
"0"
,
"-"
,
"35%"
,
"Formula"
,
"Aktif"
],
[
""
,
"2"
,
"KPI"
,
"TIA"
,
"2"
,
"Trading Profit"
,
"1"
,
"Rp Bio"
,
"35%"
,
"Formula"
,
"Aktif"
],
[
""
,
"3"
,
"KPI"
,
"TIA"
,
"3"
,
"Revenue"
,
"1"
,
"Rp Bio"
,
"0%"
,
"Formula"
,
"Aktif"
],
[
""
,
"4"
,
"KPI"
,
"TIA"
,
"4"
,
"EBITDA"
,
"1"
,
"Rp Bio"
,
"0%"
,
"Formula"
,
"Non Aktif"
],
[
""
,
"-"
,
"-"
,
"-"
,
"-"
,
"-"
,
"-"
,
"-"
,
"-"
,
"-"
,
"-"
],
]
const
loadingComponent
=
(
<
div
style
=
{{
position
:
'absolute'
,
zIndex
:
110
,
top
:
0
,
left
:
0
,
width
:
'100%'
,
height
:
'100%'
,
display
:
'flex'
,
justifyContent
:
'center'
,
alignItems
:
'center'
,
background
:
'rgba(255,255,255,0.8)'
}}
>
<
PropagateLoader
...
...
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