U 优化页面展示效果

pull/418/head
vapao 2021-12-02 09:32:34 +08:00
parent eb68491043
commit 61b3846b73
4 changed files with 7 additions and 6 deletions

View File

@ -64,7 +64,7 @@ class ComTable extends React.Component {
<Table.Column title="操作" render={info => (
<Action>
<Action.Button auth="alarm.contact.edit" onClick={() => store.showForm(info)}>编辑</Action.Button>
<Action.Button auth="alarm.contact.del" onClick={() => this.handleDelete(info)}>删除</Action.Button>
<Action.Button danger auth="alarm.contact.del" onClick={() => this.handleDelete(info)}>删除</Action.Button>
</Action>
)}/>
)}

View File

@ -84,7 +84,7 @@ class ComTable extends React.Component {
<Table.Column title="操作" render={info => (
<Action>
<Action.Button auth="alarm.group.edit" onClick={() => store.showForm(info)}>编辑</Action.Button>
<Action.Button auth="alarm.group.del" onClick={() => this.handleDelete(info)}>删除</Action.Button>
<Action.Button danger auth="alarm.group.del" onClick={() => this.handleDelete(info)}>删除</Action.Button>
</Action>
)}/>
)}

View File

@ -73,13 +73,13 @@ class ComTable extends React.Component {
showTotal: total => `${total}`,
pageSizeOptions: ['10', '20', '50', '100']
}}>
<Table.Column title="监控分组" dataIndex="group" />
<Table.Column title="监控分组" dataIndex="group"/>
<Table.Column title="监控名称" dataIndex="name"/>
<Table.Column title="类型" dataIndex="type_alias"/>
<Table.Column title="频率" dataIndex="rate" render={value => `${value}分钟`}/>
<Table.Column title="状态" render={info => {
if (info.is_active) {
return <Tag color="blue">已激活</Tag>
return <Tag color="blue">已激活</Tag>
} else {
return <Tag color="red">未激活</Tag>
}
@ -93,7 +93,8 @@ class ComTable extends React.Component {
<Action.Button auth="monitor.monitor.edit"
onClick={() => this.handleActive(info)}>{info['is_active'] ? '禁用' : '启用'}</Action.Button>
<Action.Button auth="monitor.monitor.edit" onClick={() => store.showForm(info)}>编辑</Action.Button>
<Action.Button auth="monitor.monitor.del" onClick={() => this.handleDelete(info)}>删除</Action.Button>
<Action.Button danger auth="monitor.monitor.del"
onClick={() => this.handleDelete(info)}>删除</Action.Button>
</Action>
)}/>
)}

View File

@ -35,7 +35,7 @@ class ComTable extends React.Component {
</Menu.Item>
<Menu.Divider/>
<Menu.Item>
<LinkButton auth="schedule.schedule.del" onClick={() => this.handleDelete(info)}>删除</LinkButton>
<LinkButton danger auth="schedule.schedule.del" onClick={() => this.handleDelete(info)}>删除</LinkButton>
</Menu.Item>
</Menu>
);