|
|
@@ -354,11 +354,11 @@ class GroupBox extends React.Component {
|
|
|
destroyOnClose={true}
|
|
|
>
|
|
|
<Row>
|
|
|
- <Col span={18}>
|
|
|
+ <Col span={20}>
|
|
|
<Search placeholder='搜索' onChange={this.onSearch}></Search>
|
|
|
</Col>
|
|
|
- <Col span={6}>
|
|
|
- <Button disabled={selectedGroup && selectedGroup.code && (selectedGroup.code.startsWith('new-') || (groupData.findIndex(g => g.code === selectedGroup.code) === -1))} style={{ marginLeft: '8px' }} onClick={() => {
|
|
|
+ <Col span={4}>
|
|
|
+ <Button disabled={selectedGroup && selectedGroup.code && (selectedGroup.code.startsWith('new-') || (groupData.findIndex(g => g.code === selectedGroup.code) === -1))} style={{ marginLeft: '11px' }} onClick={() => {
|
|
|
this.addGroup(selectedGroup);
|
|
|
}}>添加</Button>
|
|
|
</Col>
|