diff --git a/src/locales/en-US.js b/src/locales/en-US.js index b0b2f3f60d97b5e9fbf16dba25c2dccbc49a7709..b348d1212ea100953fd09ef5495dda57f8ee05ca 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 5876b8b4a0c706e20cd8205dffbc8d4c5b0729bd..04fdda124db8ffa3d5ccc40681c8690a3332167b 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 45a2f02bcd268b21f9a974456fe3169c6b83524f..173e01cbc7c9bbe02a77278fb90230af6546b65f 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 = ( }} >