mirror of
https://github.com/didi/KnowStreaming.git
synced 2025-12-24 11:52:08 +08:00
fix: 样式 & 文案优化
This commit is contained in:
@@ -21,7 +21,6 @@ export default {
|
||||
|
||||
[`menu.${systemKey}.cluster`]: 'Cluster',
|
||||
[`menu.${systemKey}.cluster.overview`]: 'Overview',
|
||||
[`menu.${systemKey}.cluster.balance`]: 'Load Rebalance',
|
||||
|
||||
[`menu.${systemKey}.broker`]: 'Broker',
|
||||
[`menu.${systemKey}.broker.dashbord`]: 'Overview',
|
||||
@@ -45,7 +44,7 @@ export default {
|
||||
[`menu.${systemKey}.consumer-group.group-list`]: 'GroupList',
|
||||
|
||||
[`menu.${systemKey}.operation`]: 'Operation',
|
||||
[`menu.${systemKey}.operation.balance`]: 'Load Rebalance',
|
||||
[`menu.${systemKey}.operation.balance`]: 'Rebalance',
|
||||
[`menu.${systemKey}.operation.jobs`]: 'Job',
|
||||
|
||||
[`menu.${systemKey}.acls`]: 'ACLs',
|
||||
|
||||
@@ -53,6 +53,10 @@
|
||||
align-items: center;
|
||||
.d-range-time-input {
|
||||
height: 27px !important;
|
||||
padding: 0 11px;
|
||||
input{
|
||||
line-height: 100%;
|
||||
}
|
||||
}
|
||||
.divider {
|
||||
width: 1px;
|
||||
|
||||
@@ -13,8 +13,8 @@ interface PropsType {
|
||||
}
|
||||
|
||||
const typeObj: any = {
|
||||
1: '周期均衡',
|
||||
2: '立即均衡',
|
||||
1: '立即均衡',
|
||||
2: '周期均衡',
|
||||
};
|
||||
|
||||
const { request, post } = Utils;
|
||||
|
||||
@@ -330,7 +330,7 @@ const LoadBalance: React.FC = (props: any) => {
|
||||
breadcrumbs={[
|
||||
{ label: '多集群管理', aHref: '/' },
|
||||
{ label: global?.clusterInfo?.name, aHref: `/cluster/${global?.clusterInfo?.id}` },
|
||||
{ label: 'Load Rebalance', aHref: `` },
|
||||
{ label: 'Rebalance', aHref: `` },
|
||||
]}
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -202,7 +202,7 @@ const AccessClusters = (props: any): JSX.Element => {
|
||||
}
|
||||
|
||||
if (modifyKey) {
|
||||
extraMsg[modifyKey] = `连接失败。${message}`;
|
||||
extraMsg[modifyKey] = message;
|
||||
}
|
||||
});
|
||||
|
||||
@@ -338,7 +338,7 @@ const AccessClusters = (props: any): JSX.Element => {
|
||||
<Form.Item
|
||||
name="bootstrapServers"
|
||||
label="Bootstrap Servers"
|
||||
extra={<span className={extra.bootstrapExtra.includes('连接成功') ? 'error-extra-info' : ''}>{extra.bootstrapExtra}</span>}
|
||||
extra={<span className={!extra.bootstrapExtra.includes('连接成功') ? 'error-extra-info' : ''}>{extra.bootstrapExtra}</span>}
|
||||
validateTrigger={'onBlur'}
|
||||
rules={[
|
||||
{
|
||||
@@ -374,7 +374,7 @@ const AccessClusters = (props: any): JSX.Element => {
|
||||
<Form.Item
|
||||
name="zookeeper"
|
||||
label="Zookeeper"
|
||||
extra={<span className={extra.zooKeeperExtra.includes('连接成功') ? 'error-extra-info' : ''}>{extra.zooKeeperExtra}</span>}
|
||||
extra={<span className={!extra.zooKeeperExtra.includes('连接成功') ? 'error-extra-info' : ''}>{extra.zooKeeperExtra}</span>}
|
||||
validateStatus={zookeeperErrorStatus ? 'error' : 'success'}
|
||||
validateTrigger={'onBlur'}
|
||||
rules={[
|
||||
|
||||
@@ -218,10 +218,10 @@ export default (props: any) => {
|
||||
</Form.Item>
|
||||
<div className="create-topic-flex-layout">
|
||||
<Form.Item name="partitionNum" label="分区数" rules={[{ required: true, message: '请输入分区数' }]}>
|
||||
<InputNumber min={1} style={{ width: '100%' }} />
|
||||
<InputNumber min={1} style={{ width: '100%' }} addonAfter="个" />
|
||||
</Form.Item>
|
||||
<Form.Item name="replicaNum" label="副本数" rules={[{ required: true, message: '请输入副本数' }]}>
|
||||
<InputNumber min={1} style={{ width: '100%' }} />
|
||||
<InputNumber min={1} style={{ width: '100%' }} addonAfter="个" />
|
||||
</Form.Item>
|
||||
</div>
|
||||
<Form.Item className="data-save-time-label" name="dataSaveTime">
|
||||
|
||||
Reference in New Issue
Block a user