diff --git a/mock/chart.js b/mock/chart.js
index 55c8a412dbb080897ca50f8285307b48b18e70c7..fc0942823dbec97b3201ce5658d42fef2121f727 100644
--- a/mock/chart.js
+++ b/mock/chart.js
@@ -40,77 +40,77 @@ for (let i = 0; i < 50; i += 1) {
}
const salesTypeData = [
{
- x: '家用电器',
+ x: 'House appliances',
y: 4544,
},
{
- x: '食用酒水',
+ x: 'Drink & wine',
y: 3321,
},
{
- x: '个护健康',
+ x: 'Health & care',
y: 3113,
},
{
- x: '服饰箱包',
+ x: 'Clothing & bags',
y: 2341,
},
{
- x: '母婴产品',
+ x: 'Mother-baby',
y: 1231,
},
{
- x: '其他',
+ x: 'Other',
y: 1231,
},
];
const salesTypeDataOnline = [
{
- x: '家用电器',
+ x: 'House appliances',
y: 244,
},
{
- x: '食用酒水',
+ x: 'Drink & wine',
y: 321,
},
{
- x: '个护健康',
+ x: 'Health & care',
y: 311,
},
{
- x: '服饰箱包',
+ x: 'Clothing & bags',
y: 41,
},
{
- x: '母婴产品',
+ x: 'Mother-baby',
y: 121,
},
{
- x: '其他',
+ x: 'Other',
y: 111,
},
];
const salesTypeDataOffline = [
{
- x: '家用电器',
+ x: 'House appliances',
y: 99,
},
{
- x: '个护健康',
+ x: 'Drink & wine',
y: 188,
},
{
- x: '服饰箱包',
+ x: 'Health & care',
y: 344,
},
{
- x: '母婴产品',
+ x: 'Clothing & bags',
y: 255,
},
{
- x: '其他',
+ x: 'Other',
y: 65,
},
];
@@ -118,7 +118,7 @@ const salesTypeDataOffline = [
const offlineData = [];
for (let i = 0; i < 10; i += 1) {
offlineData.push({
- name: `门店${i}`,
+ name: `Stores ${i}`,
cvr: Math.ceil(Math.random() * 9) / 10,
});
}
diff --git a/src/components/GlobalHeader/RightContent.js b/src/components/GlobalHeader/RightContent.js
index 7b4f98c684e8ef6453bac3e52e25658d8cacf995..596bd3ea09f65190aebdc09c1515677421110e29 100644
--- a/src/components/GlobalHeader/RightContent.js
+++ b/src/components/GlobalHeader/RightContent.js
@@ -1,4 +1,5 @@
import React, { PureComponent } from 'react';
+import { FormattedMessage } from 'react-intl';
import { Spin, Tag, Menu, Icon, Dropdown, Avatar, Tooltip } from 'antd';
import moment from 'moment';
import groupBy from 'lodash/groupBy';
@@ -51,13 +52,16 @@ export default class GlobalHeaderRight extends PureComponent {
const menu = (