Commit e72137e9 authored by d.arizona's avatar d.arizona

apdet

parent 159df07c
......@@ -688,6 +688,9 @@ export default class MonthlyReport extends Component {
}
clickDetail(item, id, revision, status) {
console.log(this.state.dataForRevision)
console.log(item)
console.log(revision)
console.log(item)
let items = ''
if (item === 'Corporate Annual Target') {
......@@ -697,7 +700,7 @@ export default class MonthlyReport extends Component {
}
this.state.dataForRevision.map(i => {
if (i.report_name === items) {
if (i.revision !== revision) {
if (i.revision == revision) {
this.setState({ prevRevision: true })
} else {
this.setState({ prevRevision: false })
......@@ -710,6 +713,7 @@ export default class MonthlyReport extends Component {
status: status
}, () => {
console.log(status)
console.log(this.state.prevRevision)
if (item === 'Balance Sheet') {
this.setState({
visibleMonthlyReport: false,
......
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