新增 key批次状态为生成中时,操作按钮全部置灰,生成状态的key批次放在进行中tab页中展示
This commit is contained in:
parent
2c855f9f64
commit
c9860ac6a4
|
@ -190,6 +190,7 @@ export default class acclist extends React.Component {
|
|||
{ title: '审核中' },
|
||||
{ title: '未通过' },
|
||||
{ title: '进行中' },
|
||||
{ title: '生成中' },
|
||||
{ title: '暂停中' },
|
||||
{ title: '已完结' },
|
||||
{ title: '已作废' }
|
||||
|
@ -414,30 +415,34 @@ export default class acclist extends React.Component {
|
|||
}, 200)
|
||||
}
|
||||
tabFn(index) {
|
||||
console.log(index)
|
||||
this.setState({ activepage: index, key_word: '' })
|
||||
if (index == 1) {
|
||||
switch (index) {
|
||||
case 1:
|
||||
this.setState({ activepage: 1 })
|
||||
}
|
||||
if (index == 2) {
|
||||
break
|
||||
case 2:
|
||||
this.setState({ activepage: 2 })
|
||||
}
|
||||
|
||||
if (index == 3) {
|
||||
break
|
||||
case 3:
|
||||
this.setState({ activepage: 8 })
|
||||
}
|
||||
if (index == 4) {
|
||||
break
|
||||
case 4:
|
||||
this.setState({ activepage: 4 })
|
||||
}
|
||||
if (index == 5) {
|
||||
break
|
||||
case 5:
|
||||
this.setState({ activepage: 3 })
|
||||
break
|
||||
case 6:
|
||||
this.setState({ activepage: 5 })
|
||||
}
|
||||
if (index == 6) {
|
||||
break
|
||||
case 7:
|
||||
this.setState({ activepage: 6 })
|
||||
}
|
||||
if (index == 7) {
|
||||
break
|
||||
case 8:
|
||||
this.setState({ activepage: 7 })
|
||||
break
|
||||
}
|
||||
|
||||
this.setState({ page: 1, limit: 10 })
|
||||
|
||||
setTimeout(() => {
|
||||
|
@ -970,6 +975,27 @@ export default class acclist extends React.Component {
|
|||
</Dropdown>
|
||||
</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 {
|
||||
str = (
|
||||
<span>
|
||||
|
|
Loading…
Reference in New Issue