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
8004221d
Commit
8004221d
authored
Feb 24, 2021
by
rifkaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
list md cat
parent
9e2b67f2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
20 deletions
+15
-20
CreateMasterDataCAT.js
...container/MasterData/MasterDataCAT/CreateMasterDataCAT.js
+3
-8
MasterDataCAT.js
src/container/MasterData/MasterDataCAT/MasterDataCAT.js
+12
-12
No files found.
src/container/MasterData/MasterDataCAT/CreateMasterDataCAT.js
View file @
8004221d
...
...
@@ -176,9 +176,10 @@ export default class CreateMasterDataCAT extends Component {
dataSource
[
indexID
].
weight
=
e
.
target
.
value
this
.
setState
({
getParent
:
dataSource
},
()
=>
{
console
.
log
(
this
.
state
.
getParent
);
this
.
clearMessage
()
})
}
console
.
log
(
e
.
target
.
value
)
//
console.log(e.target.value)
}
handleReportName
(
item
)
{
...
...
@@ -476,13 +477,7 @@ export default class CreateMasterDataCAT extends Component {
clearMessage
()
{
this
.
setState
({
errorFormula
:
false
,
msgErrorFormula
:
''
,
errorTipeData
:
false
,
errorCondition
:
false
,
msgErrorTipeData
:
''
,
msgErrorCondition
:
''
,
errorRV
:
false
,
msgErrorRV
:
''
,
errorJenisLaporan
:
false
,
msgErrorJenisLaporan
:
''
,
errorPerusahaan
:
false
,
msgErrorPerusahaan
:
''
errorWeight
:
false
,
msgErrorWeight
:
''
})
}
...
...
src/container/MasterData/MasterDataCAT/MasterDataCAT.js
View file @
8004221d
...
...
@@ -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
,
...
...
@@ -904,60 +904,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
>
);
}
...
...
@@ -969,7 +969,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
>
);
}
...
...
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