Commit 8004221d authored by rifkaki's avatar rifkaki

list md cat

parent 9e2b67f2
...@@ -176,9 +176,10 @@ export default class CreateMasterDataCAT extends Component { ...@@ -176,9 +176,10 @@ export default class CreateMasterDataCAT extends Component {
dataSource[indexID].weight = e.target.value dataSource[indexID].weight = e.target.value
this.setState({getParent: dataSource}, () => { this.setState({getParent: dataSource}, () => {
console.log(this.state.getParent); console.log(this.state.getParent);
this.clearMessage()
}) })
} }
console.log(e.target.value) // console.log(e.target.value)
} }
handleReportName(item) { handleReportName(item) {
...@@ -476,13 +477,7 @@ export default class CreateMasterDataCAT extends Component { ...@@ -476,13 +477,7 @@ export default class CreateMasterDataCAT extends Component {
clearMessage() { clearMessage() {
this.setState({ this.setState({
errorFormula: false, msgErrorFormula: '', errorFormula: false, msgErrorFormula: '',
errorTipeData: false, errorWeight: false, msgErrorWeight: ''
errorCondition: false,
msgErrorTipeData: '',
msgErrorCondition: '',
errorRV: false, msgErrorRV: '',
errorJenisLaporan: false, msgErrorJenisLaporan: '',
errorPerusahaan: false, msgErrorPerusahaan: ''
}) })
} }
......
...@@ -604,7 +604,7 @@ export default class MasterDataCAT extends Component { ...@@ -604,7 +604,7 @@ export default class MasterDataCAT extends Component {
return [ return [
index, index,
item.item_report_id, item.item_report_id,
item.report_name, item.item_report_name,
item.company_name, item.company_name,
item.report_name, item.report_name,
item.weight, item.weight,
...@@ -904,60 +904,60 @@ export default class MasterDataCAT extends Component { ...@@ -904,60 +904,60 @@ export default class MasterDataCAT extends Component {
} }
}, },
{ {
name: "Item Report Name", name: "Report Name",
options: { options: {
customBodyRender: (val, tableMeta) => { customBodyRender: (val, tableMeta) => {
return ( return (
<div style={{ display: 'flex' }}> <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 > </div >
); );
} }
} }
}, },
{ {
name: "Company Name", name: "Item Report Name",
options: { options: {
customBodyRender: (val, tableMeta) => { customBodyRender: (val, tableMeta) => {
return ( return (
<div style={{ display: 'flex' }}> <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 > </div >
); );
} }
} }
}, },
{ {
name: "Report Name", name: "Year",
options: { options: {
customBodyRender: (val, tableMeta) => { customBodyRender: (val, tableMeta) => {
return ( return (
<div style={{ display: 'flex' }}> <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 > </div >
); );
} }
} }
}, },
{ {
name: "Weight", name: "Company Name",
options: { options: {
customBodyRender: (val, tableMeta) => { customBodyRender: (val, tableMeta) => {
return ( return (
<div style={{ display: 'flex' }}> <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 > </div >
); );
} }
} }
}, },
{ {
name: "Year", name: "Weight",
options: { options: {
customBodyRender: (val, tableMeta) => { customBodyRender: (val, tableMeta) => {
return ( return (
<div style={{ display: 'flex' }}> <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 > </div >
); );
} }
...@@ -969,7 +969,7 @@ export default class MasterDataCAT extends Component { ...@@ -969,7 +969,7 @@ export default class MasterDataCAT extends Component {
customBodyRender: (val, tableMeta) => { customBodyRender: (val, tableMeta) => {
return ( return (
<div style={{ display: 'flex' }}> <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 > </div >
); );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment