mirror of
https://github.com/didi/KnowStreaming.git
synced 2026-01-02 02:02:13 +08:00
文案优化
This commit is contained in:
@@ -134,19 +134,19 @@ export class ClusterList extends SearchAndFilterContainer {
|
||||
formData: item ? item : {},
|
||||
visible: true,
|
||||
width: 590,
|
||||
title: '注册集群',
|
||||
title: item ? '编辑' : '接入集群',
|
||||
onSubmit: (value: IRegister) => {
|
||||
value.idc = region.currentRegion;
|
||||
if (item) {
|
||||
value.clusterId = item.clusterId;
|
||||
registerCluster(value).then(data => {
|
||||
admin.getMetaData(true);
|
||||
notification.success({ message: '修改集群成功' });
|
||||
notification.success({ message: '编辑集群成功' });
|
||||
});
|
||||
} else {
|
||||
createCluster(value).then(data => {
|
||||
admin.getMetaData(true);
|
||||
notification.success({ message: '注册集群成功' });
|
||||
notification.success({ message: '接入集群成功' });
|
||||
});
|
||||
}
|
||||
|
||||
@@ -256,7 +256,7 @@ export class ClusterList extends SearchAndFilterContainer {
|
||||
<a
|
||||
onClick={this.createOrRegisterCluster.bind(this, item)}
|
||||
className="action-button"
|
||||
>修改
|
||||
>编辑
|
||||
</a>
|
||||
<Popconfirm
|
||||
title={`确定${item.status === 1 ? '暂停' : '开始'}${item.clusterName}监控?`}
|
||||
@@ -286,7 +286,7 @@ export class ClusterList extends SearchAndFilterContainer {
|
||||
<ul>
|
||||
{this.renderSearch('', '请输入集群名称')}
|
||||
<li className="right-btn-1">
|
||||
<Button type="primary" onClick={this.createOrRegisterCluster.bind(this, null)}>注册集群</Button>
|
||||
<Button type="primary" onClick={this.createOrRegisterCluster.bind(this, null)}>接入集群</Button>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -26,7 +26,7 @@ export const getUserColumns = () => {
|
||||
render: (text: string, record: IUser) => {
|
||||
return (
|
||||
<span className="table-operation">
|
||||
<a onClick={() => showApplyModal(record)}>修改</a>
|
||||
<a onClick={() => showApplyModal(record)}>编辑</a>
|
||||
<Popconfirm
|
||||
title="确定删除?"
|
||||
onConfirm={() => users.deleteUser(record.username)}
|
||||
@@ -105,7 +105,7 @@ export const getVersionColumns = () => {
|
||||
render: (text: string, record: IUploadFile) => {
|
||||
return (
|
||||
<span className="table-operation">
|
||||
<a onClick={() => showModifyModal(record)}>修改</a>
|
||||
<a onClick={() => showModifyModal(record)}>编辑</a>
|
||||
<Popconfirm
|
||||
title="确定删除?"
|
||||
onConfirm={() => version.deleteFile(record.id)}
|
||||
@@ -164,7 +164,7 @@ export const getConfigureColumns = () => {
|
||||
render: (text: string, record: IConfigure) => {
|
||||
return (
|
||||
<span className="table-operation">
|
||||
<a onClick={() => showConfigureModal(record)}>修改</a>
|
||||
<a onClick={() => showConfigureModal(record)}>编辑</a>
|
||||
<Popconfirm
|
||||
title="确定删除?"
|
||||
onConfirm={() => admin.deleteConfigure(record.configKey)}
|
||||
|
||||
@@ -45,7 +45,7 @@ export const migrationTaskColumns = (migrationUrl: string) => {
|
||||
<a style={{ marginRight: 16 }}>开始</a>
|
||||
</Popconfirm>}
|
||||
{[0, 1].indexOf(item.status) > -1 &&
|
||||
<a onClick={() => modifyMigrationTask(item, 'modify')} style={{ marginRight: 16 }}>修改</a>}
|
||||
<a onClick={() => modifyMigrationTask(item, 'modify')} style={{ marginRight: 16 }}>编辑</a>}
|
||||
{item.status === 0 &&
|
||||
<Popconfirm
|
||||
title="确定取消?"
|
||||
|
||||
@@ -130,7 +130,7 @@ export class MigrationDetail extends SearchAndFilterContainer {
|
||||
render: (text: string, item: IReassign) => (
|
||||
<>
|
||||
<a onClick={() => this.renderRessignDetail(item)} style={{ marginRight: 16 }}>详情</a>
|
||||
<a onClick={() => modifyTransferTask(item, 'modify', this.taskId)}>修改</a>
|
||||
<a onClick={() => modifyTransferTask(item, 'modify', this.taskId)}>编辑</a>
|
||||
</>
|
||||
),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user