提交 d83d35ae 编写于 作者: G GraceWalk

fix: 样式 & 文案优化

上级 1d3caeea
...@@ -21,7 +21,6 @@ export default { ...@@ -21,7 +21,6 @@ export default {
[`menu.${systemKey}.cluster`]: 'Cluster', [`menu.${systemKey}.cluster`]: 'Cluster',
[`menu.${systemKey}.cluster.overview`]: 'Overview', [`menu.${systemKey}.cluster.overview`]: 'Overview',
[`menu.${systemKey}.cluster.balance`]: 'Load Rebalance',
[`menu.${systemKey}.broker`]: 'Broker', [`menu.${systemKey}.broker`]: 'Broker',
[`menu.${systemKey}.broker.dashbord`]: 'Overview', [`menu.${systemKey}.broker.dashbord`]: 'Overview',
...@@ -45,7 +44,7 @@ export default { ...@@ -45,7 +44,7 @@ export default {
[`menu.${systemKey}.consumer-group.group-list`]: 'GroupList', [`menu.${systemKey}.consumer-group.group-list`]: 'GroupList',
[`menu.${systemKey}.operation`]: 'Operation', [`menu.${systemKey}.operation`]: 'Operation',
[`menu.${systemKey}.operation.balance`]: 'Load Rebalance', [`menu.${systemKey}.operation.balance`]: 'Rebalance',
[`menu.${systemKey}.operation.jobs`]: 'Job', [`menu.${systemKey}.operation.jobs`]: 'Job',
[`menu.${systemKey}.acls`]: 'ACLs', [`menu.${systemKey}.acls`]: 'ACLs',
......
...@@ -53,6 +53,10 @@ ...@@ -53,6 +53,10 @@
align-items: center; align-items: center;
.d-range-time-input { .d-range-time-input {
height: 27px !important; height: 27px !important;
padding: 0 11px;
input{
line-height: 100%;
}
} }
.divider { .divider {
width: 1px; width: 1px;
......
...@@ -13,8 +13,8 @@ interface PropsType { ...@@ -13,8 +13,8 @@ interface PropsType {
} }
const typeObj: any = { const typeObj: any = {
1: '周期均衡', 1: '立即均衡',
2: '立即均衡', 2: '周期均衡',
}; };
const { request, post } = Utils; const { request, post } = Utils;
......
...@@ -330,7 +330,7 @@ const LoadBalance: React.FC = (props: any) => { ...@@ -330,7 +330,7 @@ const LoadBalance: React.FC = (props: any) => {
breadcrumbs={[ breadcrumbs={[
{ label: '多集群管理', aHref: '/' }, { label: '多集群管理', aHref: '/' },
{ label: global?.clusterInfo?.name, aHref: `/cluster/${global?.clusterInfo?.id}` }, { label: global?.clusterInfo?.name, aHref: `/cluster/${global?.clusterInfo?.id}` },
{ label: 'Load Rebalance', aHref: `` }, { label: 'Rebalance', aHref: `` },
]} ]}
/> />
</div> </div>
......
...@@ -202,7 +202,7 @@ const AccessClusters = (props: any): JSX.Element => { ...@@ -202,7 +202,7 @@ const AccessClusters = (props: any): JSX.Element => {
} }
if (modifyKey) { if (modifyKey) {
extraMsg[modifyKey] = `连接失败。${message}`; extraMsg[modifyKey] = message;
} }
}); });
...@@ -338,7 +338,7 @@ const AccessClusters = (props: any): JSX.Element => { ...@@ -338,7 +338,7 @@ const AccessClusters = (props: any): JSX.Element => {
<Form.Item <Form.Item
name="bootstrapServers" name="bootstrapServers"
label="Bootstrap Servers" 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'} validateTrigger={'onBlur'}
rules={[ rules={[
{ {
...@@ -374,7 +374,7 @@ const AccessClusters = (props: any): JSX.Element => { ...@@ -374,7 +374,7 @@ const AccessClusters = (props: any): JSX.Element => {
<Form.Item <Form.Item
name="zookeeper" name="zookeeper"
label="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'} validateStatus={zookeeperErrorStatus ? 'error' : 'success'}
validateTrigger={'onBlur'} validateTrigger={'onBlur'}
rules={[ rules={[
......
...@@ -218,10 +218,10 @@ export default (props: any) => { ...@@ -218,10 +218,10 @@ export default (props: any) => {
</Form.Item> </Form.Item>
<div className="create-topic-flex-layout"> <div className="create-topic-flex-layout">
<Form.Item name="partitionNum" label="分区数" rules={[{ required: true, message: '请输入分区数' }]}> <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>
<Form.Item name="replicaNum" label="副本数" rules={[{ required: true, message: '请输入副本数' }]}> <Form.Item name="replicaNum" label="副本数" rules={[{ required: true, message: '请输入副本数' }]}>
<InputNumber min={1} style={{ width: '100%' }} /> <InputNumber min={1} style={{ width: '100%' }} addonAfter="个" />
</Form.Item> </Form.Item>
</div> </div>
<Form.Item className="data-save-time-label" name="dataSaveTime"> <Form.Item className="data-save-time-label" name="dataSaveTime">
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册