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
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ exports[`test SqlStatementFormItem renders SqlStatementFormItem component 1`] =
class="ant-form ant-form-horizontal"
>
<div
class="ant-form-item form-item-label-mb-16 css-1jlm9cy"
class="ant-form-item form-item-label-mb-16 has-label-tip css-1jlm9cy"
>
<div
class="ant-row ant-form-item-row"
Expand All @@ -19,12 +19,9 @@ exports[`test SqlStatementFormItem renders SqlStatementFormItem component 1`] =
title=""
>
<div
class="ant-space ant-space-horizontal ant-space-align-center"
class="label-cont-custom"
>
<div
class="ant-space-item"
style="margin-right: 8px;"
>
<div>
<svg
class="custom-icon-ellipse"
fill="none"
Expand All @@ -48,48 +45,14 @@ exports[`test SqlStatementFormItem renders SqlStatementFormItem component 1`] =
stroke-width="2"
/>
</svg>
</div>
<div
class="ant-space-item"
style="margin-right: 8px;"
>
<span>
选择SQL语句上传方式
</span>
</div>
<div
class="ant-space-item"
class="tip-content-box"
>
<div
class="ant-space ant-space-horizontal ant-space-align-center basic-tooltips-wrapper css-4jbtl9"
>
<div
class="ant-space-item"
>
<span
aria-label="info-circle"
class="anticon anticon-info-circle tooltips-default-icon"
role="img"
>
<svg
aria-hidden="true"
data-icon="info-circle"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"
/>
<path
d="M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"
/>
</svg>
</span>
</div>
</div>
单次上线SQL数量为1000条
</div>
</div>
</label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ exports[`test SqlStatementFormItem renders SqlStatementFormItem component 1`] =
class="ant-form ant-form-horizontal"
>
<div
class="ant-form-item form-item-label-mb-16 css-1jlm9cy"
class="ant-form-item form-item-label-mb-16 has-label-tip css-1jlm9cy"
>
<div
class="ant-row ant-form-item-row"
Expand All @@ -19,12 +19,9 @@ exports[`test SqlStatementFormItem renders SqlStatementFormItem component 1`] =
title=""
>
<div
class="ant-space ant-space-horizontal ant-space-align-center"
class="label-cont-custom"
>
<div
class="ant-space-item"
style="margin-right: 8px;"
>
<div>
<svg
class="custom-icon-ellipse"
fill="none"
Expand All @@ -48,48 +45,14 @@ exports[`test SqlStatementFormItem renders SqlStatementFormItem component 1`] =
stroke-width="2"
/>
</svg>
</div>
<div
class="ant-space-item"
style="margin-right: 8px;"
>
<span>
选择SQL语句上传方式
</span>
</div>
<div
class="ant-space-item"
class="tip-content-box"
>
<div
class="ant-space ant-space-horizontal ant-space-align-center basic-tooltips-wrapper css-4jbtl9"
>
<div
class="ant-space-item"
>
<span
aria-label="info-circle"
class="anticon anticon-info-circle tooltips-default-icon"
role="img"
>
<svg
aria-hidden="true"
data-icon="info-circle"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"
/>
<path
d="M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"
/>
</svg>
</span>
</div>
</div>
单次上线SQL数量为1000条
</div>
</div>
</label>
Expand Down Expand Up @@ -551,7 +514,7 @@ exports[`test SqlStatementFormItem renders SqlStatementFormItem component 2`] =
class="ant-form ant-form-horizontal"
>
<div
class="ant-form-item form-item-label-mb-16 css-1jlm9cy"
class="ant-form-item form-item-label-mb-16 has-label-tip css-1jlm9cy"
>
<div
class="ant-row ant-form-item-row"
Expand All @@ -564,12 +527,9 @@ exports[`test SqlStatementFormItem renders SqlStatementFormItem component 2`] =
title=""
>
<div
class="ant-space ant-space-horizontal ant-space-align-center"
class="label-cont-custom"
>
<div
class="ant-space-item"
style="margin-right: 8px;"
>
<div>
<svg
class="custom-icon-ellipse"
fill="none"
Expand All @@ -593,48 +553,14 @@ exports[`test SqlStatementFormItem renders SqlStatementFormItem component 2`] =
stroke-width="2"
/>
</svg>
</div>
<div
class="ant-space-item"
style="margin-right: 8px;"
>
<span>
选择SQL语句上传方式
</span>
</div>
<div
class="ant-space-item"
class="tip-content-box"
>
<div
class="ant-space ant-space-horizontal ant-space-align-center basic-tooltips-wrapper css-4jbtl9"
>
<div
class="ant-space-item"
>
<span
aria-label="info-circle"
class="anticon anticon-info-circle tooltips-default-icon"
role="img"
>
<svg
aria-hidden="true"
data-icon="info-circle"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"
/>
<path
d="M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"
/>
</svg>
</span>
</div>
</div>
单次上线SQL数量为1000条
</div>
</div>
</label>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { BasicToolTip, ModeSwitcher } from '@actiontech/dms-kit';
import { ModeSwitcher } from '@actiontech/dms-kit';
import { AuditTaskResV1SqlSourceEnum } from '@actiontech/shared/lib/api/sqle/service/common.enum';
import { FormItemLabel, FormItemNoLabel } from '@actiontech/dms-kit';
import { useTranslation } from 'react-i18next';
import { defaultUploadTypeOptions } from './index.data';
import { SqlStatementFormItemProps } from './index.type';
import { useMemo } from 'react';
import SqlUploadContent from './components/SqlUploadContent';
import { Form, Space } from 'antd';
import { Form } from 'antd';
import { SqlAuditInfoFormProps } from '../../../Create/components/FormStep/SqlAuditInfoForm/index.type';
import SqlExecModeSelector from './components/SqlExecModeSelector';
import SqlFormatterAndSubmitter from './components/SqlFormatterAndSubmitter';
Expand Down Expand Up @@ -48,16 +48,17 @@ const SqlStatementFormItem: React.FC<SqlStatementFormItemProps> = ({
<>
<FormItemLabel
label={
<Space>
<RingPieFilled className="custom-icon-ellipse" />
<span>{t('execWorkflow.create.form.sqlInfo.uploadType')}</span>
<BasicToolTip
suffixIcon
title={t('execWorkflow.create.form.sqlInfo.uploadTypeTips')}
/>
</Space>
<div className="label-cont-custom">
<div>
<RingPieFilled className="custom-icon-ellipse" />
<span>{t('execWorkflow.create.form.sqlInfo.uploadType')}</span>
</div>
<div className="tip-content-box">
{t('execWorkflow.create.form.sqlInfo.uploadTypeTips')}
</div>
</div>
}
className="form-item-label-mb-16"
className="form-item-label-mb-16 has-label-tip"
/>

<FormItemNoLabel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ exports[`test SqlStatementFormController ce should match snapshot 1`] = `
class="ant-form ant-form-horizontal"
>
<div
class="ant-form-item form-item-label-mb-16 css-1jlm9cy"
class="ant-form-item form-item-label-mb-16 has-label-tip css-1jlm9cy"
>
<div
class="ant-row ant-form-item-row"
Expand All @@ -19,12 +19,9 @@ exports[`test SqlStatementFormController ce should match snapshot 1`] = `
title=""
>
<div
class="ant-space ant-space-horizontal ant-space-align-center"
class="label-cont-custom"
>
<div
class="ant-space-item"
style="margin-right: 8px;"
>
<div>
<svg
class="custom-icon-ellipse"
fill="none"
Expand All @@ -48,48 +45,14 @@ exports[`test SqlStatementFormController ce should match snapshot 1`] = `
stroke-width="2"
/>
</svg>
</div>
<div
class="ant-space-item"
style="margin-right: 8px;"
>
<span>
选择SQL语句上传方式
</span>
</div>
<div
class="ant-space-item"
class="tip-content-box"
>
<div
class="ant-space ant-space-horizontal ant-space-align-center basic-tooltips-wrapper css-4jbtl9"
>
<div
class="ant-space-item"
>
<span
aria-label="info-circle"
class="anticon anticon-info-circle tooltips-default-icon"
role="img"
>
<svg
aria-hidden="true"
data-icon="info-circle"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"
/>
<path
d="M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"
/>
</svg>
</span>
</div>
</div>
单次上线SQL数量为1000条
</div>
</div>
</label>
Expand Down
Loading
Loading