Skip to content
Merged
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
6 changes: 5 additions & 1 deletion packages/base/src/locale/zh-CN/dmsDataExport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@ export default {
},
result: {
success: '工单创建成功',
guide: '查看刚刚创建的工单'
guide: '查看刚刚创建的工单',
retentionNotice: '审批通过后,系统会为您保留导出任务',
retentionHours: '24 小时',
retentionNoticeSuffix: '。',
reminderNotice: '为确保您顺利获取文件,请及时查看审批结果并完成导出操作。'
}
},
batchClose: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1230,18 +1230,55 @@ exports[`first should match snapshot when pageState is equal SUBMIT_RESULT 1`] =
<div
class="ant-result-extra"
>
<a
href="/project/700300/data/export/123"
<div
class="ant-space ant-space-vertical"
>
<button
class="ant-btn ant-btn-primary basic-button-wrapper css-1vnelmv"
type="button"
<div
class="ant-space-item"
style="margin-bottom: 12px;"
>
<span>
查看刚刚创建的工单
<span
class="ant-typography"
>
审批通过后,系统会为您保留导出任务

<span
class="ant-typography"
>
<strong>
24 小时
</strong>
</span>
</span>
</button>
</a>
</div>
<div
class="ant-space-item"
style="margin-bottom: 12px;"
>
<span
class="ant-typography"
>
为确保您顺利获取文件,请及时查看审批结果并完成导出操作。
</span>
</div>
<div
class="ant-space-item"
>
<a
href="/project/700300/data/export/123"
>
<button
class="ant-btn ant-btn-primary basic-button-wrapper css-1vnelmv"
type="button"
>
<span>
查看刚刚创建的工单
</span>
</button>
</a>
</div>
</div>
</div>
</div>
</section>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -416,18 +416,55 @@ exports[`test base/DataExport/Create/SubmitResult should match snapshot 1`] = `
<div
class="ant-result-extra"
>
<a
href="/project/700300/data/export/123"
<div
class="ant-space ant-space-vertical"
>
<button
class="ant-btn ant-btn-primary basic-button-wrapper css-1vnelmv"
type="button"
<div
class="ant-space-item"
style="margin-bottom: 12px;"
>
<span>
查看刚刚创建的工单
<span
class="ant-typography"
>
审批通过后,系统会为您保留导出任务

<span
class="ant-typography"
>
<strong>
24 小时
</strong>
</span>
</span>
</div>
<div
class="ant-space-item"
style="margin-bottom: 12px;"
>
<span
class="ant-typography"
>
为确保您顺利获取文件,请及时查看审批结果并完成导出操作。
</span>
</button>
</a>
</div>
<div
class="ant-space-item"
>
<a
href="/project/700300/data/export/123"
>
<button
class="ant-btn ant-btn-primary basic-button-wrapper css-1vnelmv"
type="button"
>
<span>
查看刚刚创建的工单
</span>
</button>
</a>
</div>
</div>
</div>
</div>
</section>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import { useTranslation } from 'react-i18next';
import useCreateDataExportReduxManage from '../../hooks/index.redux';
import { ROUTE_PATHS } from '@actiontech/dms-kit';
import { Space, Typography } from 'antd';

const ExportWorkflowSubmitResult: React.FC = () => {
const { t } = useTranslation();
const { projectID } = useCurrentProject();
Expand All @@ -14,18 +16,29 @@
title={t('dmsDataExport.create.result.success')}
subTitle={formValues?.baseValues.desc}
extra={[
<TypedLink
key="jumpToOrderDetail"
to={ROUTE_PATHS.BASE.DATA_EXPORT.detail}
params={{
projectID,
workflowID: workflowID ?? ''
}}
>
<BasicButton type="primary">
{t('dmsDataExport.create.result.guide')}
</BasicButton>
</TypedLink>
<Space direction="vertical" size={12} key="retentionNotice">
<Typography.Text>
{t('dmsDataExport.create.result.retentionNotice')}{' '}
<Typography.Text strong>
{t('dmsDataExport.create.result.retentionHours')}
</Typography.Text>
{t('dmsDataExport.create.result.retentionNoticeSuffix')}
</Typography.Text>
<Typography.Text>
{t('dmsDataExport.create.result.reminderNotice')}
</Typography.Text>
<TypedLink
to={ROUTE_PATHS.BASE.DATA_EXPORT.detail}
params={{
projectID,
workflowID: workflowID ?? ''

Check warning on line 34 in packages/base/src/page/DataExportManagement/Create/components/SubmitResult/index.tsx

View workflow job for this annotation

GitHub Actions / Coverage annotations (🧪 jest-coverage-report-action)

🌿 Branch is not covered

Warning! Not covered branch
}}
>
<BasicButton type="primary">
{t('dmsDataExport.create.result.guide')}
</BasicButton>
</TypedLink>
</Space>
]}
/>
);
Expand Down