From c936a6e7de444d5e60bf5b1aedf68e302943bb55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=A7=80=E7=8E=B2?= Date: Fri, 20 Jul 2018 15:29:13 +0800 Subject: [PATCH] translate success page --- src/locales/en-US.js | 17 ++++++++ src/locales/zh-CN.js | 17 ++++++++ src/pages/Result/Success.js | 87 ++++++++++++++++++++++++++++--------- 3 files changed, 101 insertions(+), 20 deletions(-) diff --git a/src/locales/en-US.js b/src/locales/en-US.js index b0b2f3f6..b348d121 100644 --- a/src/locales/en-US.js +++ b/src/locales/en-US.js @@ -138,4 +138,21 @@ export default { 'app.result.error.hint-text2': 'Your account is not yet eligible to apply', 'app.result.error.hint-btn2': 'Upgrade immediately', 'app.result.error.btn-text': 'Return to modify', + 'app.result.success.title': 'Submission Success', + 'app.result.success.description': + 'The submission results page is used to feed back the results of a series of operational tasks. If it is a simple operation, use the Message global prompt feedback. This text area can show a simple supplementary explanation. If there is a similar requirement for displaying “documents”, the following gray area can present more complicated content.', + 'app.result.success.operate-title': 'Project Name', + 'app.result.success.operate-id': 'Project ID:', + 'app.result.success.principal': 'Principal:', + 'app.result.success.operate-time': 'Effective time:', + 'app.result.success.step1-title': 'Create project', + 'app.result.success.step1-operator': 'Qu Lili', + 'app.result.success.step2-title': 'Departmental preliminary review', + 'app.result.success.step2-operator': 'Zhou Maomao', + 'app.result.success.step2-extra': 'Urge', + 'app.result.success.step3-title': 'Financial review', + 'app.result.success.step4-title': 'Finish', + 'app.result.success.btn-return': 'Back to list', + 'app.result.success.btn-project': 'View project', + 'app.result.success.btn-print': 'Print', }; diff --git a/src/locales/zh-CN.js b/src/locales/zh-CN.js index 5876b8b4..04fdda12 100644 --- a/src/locales/zh-CN.js +++ b/src/locales/zh-CN.js @@ -133,4 +133,21 @@ export default { 'app.result.error.hint-text2': '您的账户还不具备申请资格', 'app.result.error.hint-btn2': '立即升级', 'app.result.error.btn-text': '返回修改', + 'app.result.success.title': '提交成功', + 'app.result.success.description': + '提交结果页用于反馈一系列操作任务的处理结果, 如果仅是简单操作,使用 Message 全局提示反馈即可。 本文字区域可以展示简单的补充说明,如果有类似展示 “单据”的需求,下面这个灰色区域可以呈现比较复杂的内容。', + 'app.result.success.operate-title': '项目名称', + 'app.result.success.operate-id': '项目 ID:', + 'app.result.success.principal': '负责人:', + 'app.result.success.operate-time': '生效时间:', + 'app.result.success.step1-title': '创建项目', + 'app.result.success.step1-operator': '曲丽丽', + 'app.result.success.step2-title': '部门初审', + 'app.result.success.step2-operator': '周毛毛', + 'app.result.success.step2-extra': '催一下', + 'app.result.success.step3-title': '财务复核', + 'app.result.success.step4-title': '完成', + 'app.result.success.btn-return': '返回列表', + 'app.result.success.btn-project': '查看项目', + 'app.result.success.btn-print': '打印', }; diff --git a/src/pages/Result/Success.js b/src/pages/Result/Success.js index 45a2f02b..173e01cb 100644 --- a/src/pages/Result/Success.js +++ b/src/pages/Result/Success.js @@ -1,4 +1,5 @@ import React, { Fragment } from 'react'; +import { formatMessage, FormattedMessage } from 'umi/locale'; import { Button, Row, Col, Icon, Steps, Card } from 'antd'; import Result from 'components/Result'; import PageHeaderLayout from '../layouts/PageHeaderLayout'; @@ -15,7 +16,7 @@ const desc1 = ( }} >
- 曲丽丽 +
2016-12-12 12:32
@@ -25,11 +26,13 @@ const desc1 = ( const desc2 = (
- 周毛毛 +
- 催一下 + + +
); @@ -44,36 +47,83 @@ const extra = ( marginBottom: 20, }} > - 项目名称 + - 项目 ID: + + + 23421 - 负责人: - 曲丽丽 + + + + - 生效时间: + + + 2016-12-12 ~ 2017-12-12 - 创建项目} description={desc1} /> - 部门初审} description={desc2} /> - 财务复核} /> - 完成} /> + + + + } + description={desc1} + /> + + + + } + description={desc2} + /> + + + + } + /> + + + + } + /> ); const actions = ( - - - + + + ); @@ -82,11 +132,8 @@ export default () => (