新增 key批次状态为生成中时,操作按钮全部置灰,生成状态的key批次放在进行中tab页中展示

This commit is contained in:
wangsongsole 2022-08-16 09:47:05 +08:00
parent 2c855f9f64
commit c9860ac6a4
1 changed files with 48 additions and 22 deletions

View File

@ -190,6 +190,7 @@ export default class acclist extends React.Component {
{ title: '审核中' }, { title: '审核中' },
{ title: '未通过' }, { title: '未通过' },
{ title: '进行中' }, { title: '进行中' },
{ title: '生成中' },
{ title: '暂停中' }, { title: '暂停中' },
{ title: '已完结' }, { title: '已完结' },
{ title: '已作废' } { title: '已作废' }
@ -414,30 +415,34 @@ export default class acclist extends React.Component {
}, 200) }, 200)
} }
tabFn(index) { tabFn(index) {
console.log(index)
this.setState({ activepage: index, key_word: '' }) this.setState({ activepage: index, key_word: '' })
if (index == 1) { switch (index) {
this.setState({ activepage: 1 }) case 1:
this.setState({ activepage: 1 })
break
case 2:
this.setState({ activepage: 2 })
break
case 3:
this.setState({ activepage: 8 })
break
case 4:
this.setState({ activepage: 4 })
break
case 5:
this.setState({ activepage: 3 })
break
case 6:
this.setState({ activepage: 5 })
break
case 7:
this.setState({ activepage: 6 })
break
case 8:
this.setState({ activepage: 7 })
break
} }
if (index == 2) {
this.setState({ activepage: 2 })
}
if (index == 3) {
this.setState({ activepage: 8 })
}
if (index == 4) {
this.setState({ activepage: 4 })
}
if (index == 5) {
this.setState({ activepage: 5 })
}
if (index == 6) {
this.setState({ activepage: 6 })
}
if (index == 7) {
this.setState({ activepage: 7 })
}
this.setState({ page: 1, limit: 10 }) this.setState({ page: 1, limit: 10 })
setTimeout(() => { setTimeout(() => {
@ -970,6 +975,27 @@ export default class acclist extends React.Component {
</Dropdown> </Dropdown>
</span> </span>
) )
} else if (rowData.status === 3) {
str = (
<span>
<a className='grid-link disabled'>编辑</a>
<a className='grid-link disabled'>复制</a>
<span className='grid-link disabled'>撤销审批</span>
<Dropdown
position={DropdownPosition.RightTop}
visible={this.state.menuVisible}
onVisibleChange={(v) =>
this.setState({ visible: v })
}>
<DropdownClickTrigger>
<div className='linkmore disabled'>
更多 <Icon type={'down'} />{' '}
</div>
</DropdownClickTrigger>
<DropdownContent></DropdownContent>
</Dropdown>
</span>
)
} else { } else {
str = ( str = (
<span> <span>