新增 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: '生成中' },
|
||||||
{ 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) {
|
||||||
|
case 1:
|
||||||
this.setState({ activepage: 1 })
|
this.setState({ activepage: 1 })
|
||||||
}
|
break
|
||||||
if (index == 2) {
|
case 2:
|
||||||
this.setState({ activepage: 2 })
|
this.setState({ activepage: 2 })
|
||||||
}
|
break
|
||||||
|
case 3:
|
||||||
if (index == 3) {
|
|
||||||
this.setState({ activepage: 8 })
|
this.setState({ activepage: 8 })
|
||||||
}
|
break
|
||||||
if (index == 4) {
|
case 4:
|
||||||
this.setState({ activepage: 4 })
|
this.setState({ activepage: 4 })
|
||||||
}
|
break
|
||||||
if (index == 5) {
|
case 5:
|
||||||
|
this.setState({ activepage: 3 })
|
||||||
|
break
|
||||||
|
case 6:
|
||||||
this.setState({ activepage: 5 })
|
this.setState({ activepage: 5 })
|
||||||
}
|
break
|
||||||
if (index == 6) {
|
case 7:
|
||||||
this.setState({ activepage: 6 })
|
this.setState({ activepage: 6 })
|
||||||
}
|
break
|
||||||
if (index == 7) {
|
case 8:
|
||||||
this.setState({ activepage: 7 })
|
this.setState({ activepage: 7 })
|
||||||
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
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>
|
||||||
|
|
Loading…
Reference in New Issue