mirror of
https://github.com/didi/KnowStreaming.git
synced 2026-01-11 02:13:28 +08:00
文案优化
This commit is contained in:
@@ -52,7 +52,7 @@ export class AlarmSelect extends React.Component<IAlarmSelectProps> {
|
||||
target="_blank"
|
||||
href="https://github.com/didi/kafka-manager"
|
||||
>
|
||||
新建告警组?
|
||||
新增规则组?
|
||||
</a>
|
||||
</>
|
||||
);
|
||||
|
||||
@@ -14,7 +14,7 @@ import { region } from 'store/region';
|
||||
export const getAlarmColumns = (urlPrefix: string) => {
|
||||
const columns = [
|
||||
{
|
||||
title: '告警名称',
|
||||
title: '告警规则',
|
||||
dataIndex: 'name',
|
||||
key: 'name',
|
||||
width: '25%',
|
||||
@@ -32,7 +32,7 @@ export const getAlarmColumns = (urlPrefix: string) => {
|
||||
</Tooltip>);
|
||||
},
|
||||
}, {
|
||||
title: '应用名称',
|
||||
title: '所属应用',
|
||||
dataIndex: 'appName',
|
||||
key: 'appName',
|
||||
width: '25%',
|
||||
@@ -72,7 +72,7 @@ export const getAlarmColumns = (urlPrefix: string) => {
|
||||
width: '10%',
|
||||
render: (text: string, item: IMonitorStrategies) => (
|
||||
<>
|
||||
<a href={`${urlPrefix}/alarm/modify?id=${item.id}`} className="action-button">修改</a>
|
||||
<a href={`${urlPrefix}/alarm/modify?id=${item.id}`} className="action-button">编辑</a>
|
||||
<Popconfirm
|
||||
title="确定删除?"
|
||||
onConfirm={() => deteleMonitor(item)}
|
||||
@@ -205,8 +205,8 @@ export const xActionFormMap = [{
|
||||
|
||||
export const xTypeFormMap = [{
|
||||
key: 'alarmName',
|
||||
label: '告警名称',
|
||||
rules: [{ required: true, message: '请输入告警名称' }],
|
||||
label: '告警规则',
|
||||
rules: [{ required: true, message: '请输入告警规则' }],
|
||||
attrs: {placeholder: '请输入', disabled: isDetailPage},
|
||||
}, {
|
||||
key: 'app',
|
||||
|
||||
@@ -152,7 +152,7 @@ export class AddAlarm extends SearchAndFilterContainer {
|
||||
<PageHeader
|
||||
className={this.isDetailPage ? 'is-show' : 'btn-group'}
|
||||
onBack={() => handlePageBack('/alarm')}
|
||||
title={(this.id || this.id === 0) ? '修改告警配置' : '新建告警配置'}
|
||||
title={(this.id || this.id === 0) ? '编辑告警规则' : '新建告警规则'}
|
||||
extra={[
|
||||
<Button key="1" type="primary" onClick={() => this.handleSubmit()}>提交</Button>,
|
||||
<Button key="2" onClick={() => this.handleResetForm(this.id)}>重置</Button>,
|
||||
|
||||
Reference in New Issue
Block a user