Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 修复多语言词条错误 #633

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 0 additions & 42 deletions src/pages/user/constants.ts
Original file line number Diff line number Diff line change
@@ -1,51 +1,9 @@
import { t } from '@/locales';

export interface UserInfoListType {
title: string;
content: string;
span?: number;
}

export const USER_INFO_LIST: Array<UserInfoListType> = [
{
title: t('pages.user.personalInfo.desc.mobile'),
content: '+86 13923734567',
},
{
title: t('pages.user.personalInfo.desc.phone'),
content: '734567',
},
{
title: t('pages.user.personalInfo.desc.email'),
content: 'Account@qq.com',
},
{
title: t('pages.user.personalInfo.desc.seat'),
content: 'T32F 012',
},
{
title: t('pages.user.personalInfo.desc.entity'),
content: '腾讯集团',
},
{
title: t('pages.user.personalInfo.desc.leader'),
content: 'Michael Wang',
},
{
title: t('pages.user.personalInfo.desc.position'),
content: '高级 UI 设计师',
},
{
title: t('pages.user.personalInfo.desc.joinDay'),
content: '2021-07-01',
},
{
title: t('pages.user.personalInfo.desc.group'),
content: '腾讯/腾讯公司/某事业群/某产品部/某运营中心/商户服务组',
span: 6,
},
];

export const TEAM_MEMBERS = [
{
avatar: 'https://avatars.githubusercontent.com/Wen1kang',
Expand Down
43 changes: 42 additions & 1 deletion src/pages/user/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,12 @@ import ProductAIcon from '@/assets/assets-product-1.svg';
import ProductBIcon from '@/assets/assets-product-2.svg';
import ProductCIcon from '@/assets/assets-product-3.svg';
import ProductDIcon from '@/assets/assets-product-4.svg';
import { t } from '@/locales';
import { useSettingStore } from '@/store';
import { changeChartsTheme } from '@/utils/color';
import { LAST_7_DAYS } from '@/utils/date';

import { PRODUCT_LIST, TEAM_MEMBERS, USER_INFO_LIST } from './constants';
import { PRODUCT_LIST, TEAM_MEMBERS, UserInfoListType } from './constants';
import { getFolderLineDataSet } from './index';

echarts.use([GridComponent, TooltipComponent, LineChart, CanvasRenderer, LegendComponent]);
Expand All @@ -119,6 +120,46 @@ let lineChart: echarts.ECharts;
const store = useSettingStore();
const chartColors = computed(() => store.chartColors);

const USER_INFO_LIST: Array<UserInfoListType> = [
{
title: t('pages.user.personalInfo.desc.mobile'),
content: '+86 13923734567',
},
{
title: t('pages.user.personalInfo.desc.phone'),
content: '734567',
},
{
title: t('pages.user.personalInfo.desc.email'),
content: 'Account@qq.com',
},
{
title: t('pages.user.personalInfo.desc.seat'),
content: 'T32F 012',
},
{
title: t('pages.user.personalInfo.desc.entity'),
content: '腾讯集团',
},
{
title: t('pages.user.personalInfo.desc.leader'),
content: 'Michael Wang',
},
{
title: t('pages.user.personalInfo.desc.position'),
content: '高级 UI 设计师',
},
{
title: t('pages.user.personalInfo.desc.joinDay'),
content: '2021-07-01',
},
{
title: t('pages.user.personalInfo.desc.group'),
content: '腾讯/腾讯公司/某事业群/某产品部/某运营中心/商户服务组',
span: 6,
},
];

const onLineChange = (value: DateRangeValue) => {
lineChart.setOption(
getFolderLineDataSet({
Expand Down
Loading