Skip to content

Commit

Permalink
适配蜜罐文字
Browse files Browse the repository at this point in the history
  • Loading branch information
西门菠萝 authored and 西门菠萝 committed Jun 22, 2021
1 parent c464731 commit 1b1f72d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/containers/Activity/Overview/Home/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class Home extends IntlComponent {
},
{
dataIndex: 'client_ip',
title: '客户端',
title: '蜜罐节点',
key: 'client_ip',
align: 'center',
render: (text) => (
Expand Down
12 changes: 6 additions & 6 deletions src/containers/Visualization/Visual/Visual.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class Visual extends IntlComponent {
width="100%"
height={450}
options={{
radius: [ '40%', '65%' ],
radius: ['40%', '65%'],
textStyle: { fontSize: 16 },
legend: {
type: 'scroll',
Expand All @@ -138,7 +138,7 @@ class Visual extends IntlComponent {
label: {
normal: { show: false },
},
center: [ '35%', '50%' ],
center: ['35%', '50%'],
title: {
show: true,
// text: '请求统计',
Expand All @@ -154,15 +154,15 @@ class Visual extends IntlComponent {
<Card title="累计处理请求:" type="inner" style={{ width: 300, marginBottom: 10 }}>
<span>{`${total} 次`}</span>
</Card>
<Card title="现存日志数:" type="inner" style={{ width: 300, marginBottom: 10 }}>
<Card title="告警数:" type="inner" style={{ width: 300, marginBottom: 10 }}>
<span>{`${sum} 条`}</span>
</Card>
<Card title="日志清理时间:" type="inner" style={{ width: 300, marginBottom: 10 }}>
<Card title="最新日志:" type="inner" style={{ width: 300, marginBottom: 10 }}>
{
typeof (last_clean) === 'string' ? '暂无清理时间' : <Tag color="#87d068">{formatTime(last_clean)}</Tag>
}
</Card>
<Card title="此版本运行时长:" type="inner" style={{ width: 300, marginBottom: 10 }}>
<Card title="累计运行时长:" type="inner" style={{ width: 300, marginBottom: 10 }}>
<span>{dateString}</span>
</Card>
</div>
Expand All @@ -173,7 +173,7 @@ class Visual extends IntlComponent {
选择时间:
<RangePicker
format="YYYY-MM-DD"
defaultValue={[ defaultStartDate, defaultEndDate ]}
defaultValue={[defaultStartDate, defaultEndDate]}
disabledDate={this.disabledDate}
onChange={this.onChange}
/>
Expand Down

0 comments on commit 1b1f72d

Please sign in to comment.