This is an automated email from the ASF dual-hosted git repository.
dockerzhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/inlong.git
The following commit(s) were added to refs/heads/master by this push:
new 8d2ca8770 [INLONG-8051][Dashboard] Optimize the display effect of the
batch parse dialog (#8052)
8d2ca8770 is described below
commit 8d2ca8770fa8b5dd12742a05a5b0053fc95d8023
Author: feat <[email protected]>
AuthorDate: Fri May 19 22:23:33 2023 +0800
[INLONG-8051][Dashboard] Optimize the display effect of the batch parse
dialog (#8052)
* [INLONG-8051][Dashboard] Optimize the display effect of the batch parse
dialog
* [INLONG-8051][Dashboard] Optimize the display effect of the batch parse
dialog
---
.../src/ui/components/FieldParseModule/index.tsx | 21 ++++++++++++++-------
1 file changed, 14 insertions(+), 7 deletions(-)
diff --git a/inlong-dashboard/src/ui/components/FieldParseModule/index.tsx
b/inlong-dashboard/src/ui/components/FieldParseModule/index.tsx
index e76fe5541..527cde546 100644
--- a/inlong-dashboard/src/ui/components/FieldParseModule/index.tsx
+++ b/inlong-dashboard/src/ui/components/FieldParseModule/index.tsx
@@ -109,6 +109,7 @@ const FieldParseModule: React.FC<FieldParseModuleProps> = ({
name: 'file',
action: config.requestPrefix + '/stream/parseFieldsByExcel',
accept: '.xlsx',
+ showUploadList: false,
headers: {
authorization: 'authorization-text',
},
@@ -211,12 +212,6 @@ user_age,int,age of user`);
<>
<Modal
key={'field-parse-module'}
- title={
- <>
- <FileAddOutlined />
- {t('components.FieldParseModule.BatchAddField')}
- </>
- }
open={visible}
onCancel={handleCancel}
footer={[
@@ -343,12 +338,24 @@ user_age,int,age of user`);
</div>
{selectedFormat === 'excel' && (
- <div>
+ <div
+ style={{
+ display: 'flex',
+ alignItems: 'center',
+ border: '1px solid #ccc',
+ borderRadius: '5px',
+ backgroundColor: 'rgba(245,245,245,0.32)',
+ padding: '15px',
+ marginTop: '10px',
+ marginBottom: '20px',
+ }}
+ >
<Upload {...uploadProps}>
<Button key="upload" type={'primary'} icon={<UploadOutlined />}
size={'small'}>
{t('components.FieldParseModule.Upload')}
</Button>
</Upload>
+ <span style={{ marginRight: '20px' }} />
<Button
key="downloadTemplate"
onClick={downloadTemplate}