Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bigDataSystem
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伯涛
bigDataSystem
Commits
0b77a978
Commit
0b77a978
authored
Nov 26, 2024
by
罗林杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改导入弹窗
parent
150a4442
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
82 additions
and
5 deletions
+82
-5
dataEntry.data.ts
...taIntegration/dataLoading/dataEntryLake/dataEntry.data.ts
+69
-2
importModal.vue
...dataIntegration/dataLoading/dataEntryLake/importModal.vue
+13
-3
No files found.
src/views/dataIntegration/dataLoading/dataEntryLake/dataEntry.data.ts
View file @
0b77a978
...
@@ -141,18 +141,85 @@ export const formSchemaNewFolder: any = [
...
@@ -141,18 +141,85 @@ export const formSchemaNewFolder: any = [
];
];
export
const
importFormSchema
:
any
[]
=
[
export
const
importFormSchema
:
any
[]
=
[
{
label
:
'导入任务版本'
,
field
:
'importVersionAlert'
,
slot
:
'importVersionAlert'
,
colProps
:
{
lg
:
24
,
md
:
24
},
},
{
field
:
'importType'
,
label
:
'导入类型'
,
component
:
'RadioGroup'
,
required
:
true
,
colProps
:
{
lg
:
24
,
md
:
24
},
defaultValue
:
'1'
,
componentProps
:
{
options
:
[
{
label
:
'同集群导入'
,
value
:
'1'
},
{
label
:
'其他集群导入'
,
value
:
'2'
},
],
},
},
{
field
:
'importOptionsAlert'
,
slot
:
'importOptionsAlert'
,
colProps
:
{
lg
:
24
,
md
:
24
},
},
{
field
:
'deptId'
,
label
:
'导入至'
,
component
:
'TreeSelect'
,
colProps
:
{
lg
:
24
,
md
:
24
},
componentProps
:
{
fieldNames
:
{
label
:
'deptName'
,
value
:
'businessId'
,
},
treeData
:
[
{
deptName
:
'数据加载'
,
businessId
:
'1'
,
children
:
[
{
deptName
:
'个人工作区'
,
businessId
:
'11'
,
children
:
[
{
deptName
:
'图标验收'
,
businessId
:
'111'
,
},
],
},
{
deptName
:
'共享工作区'
,
businessId
:
'12'
,
children
:
[
{
deptName
:
'学生成绩'
,
businessId
:
'122'
,
},
],
},
],
},
],
},
required
:
true
,
},
{
{
field
:
'fileMethods'
,
field
:
'fileMethods'
,
label
:
'导入文件选择'
,
label
:
'导入文件选择'
,
slot
:
'fileMethods'
,
slot
:
'fileMethods'
,
colProps
:
{
lg
:
24
,
md
:
24
,
offset
:
3
},
colProps
:
{
lg
:
24
,
md
:
24
},
},
},
{
{
field
:
'fileRename'
,
field
:
'fileRename'
,
label
:
'文件重名'
,
label
:
'文件重名'
,
component
:
'RadioGroup'
,
component
:
'RadioGroup'
,
required
:
true
,
required
:
true
,
colProps
:
{
lg
:
24
,
md
:
24
,
offset
:
3
},
defaultValue
:
'3'
,
colProps
:
{
lg
:
24
,
md
:
24
},
componentProps
:
{
componentProps
:
{
options
:
[
options
:
[
{
label
:
'全部放弃'
,
value
:
'1'
},
{
label
:
'全部放弃'
,
value
:
'1'
},
...
...
src/views/dataIntegration/dataLoading/dataEntryLake/importModal.vue
View file @
0b77a978
...
@@ -7,11 +7,21 @@
...
@@ -7,11 +7,21 @@
@
ok=
"handleSubmit"
@
ok=
"handleSubmit"
>
>
<BasicForm
@
register=
"registerForm"
>
<BasicForm
@
register=
"registerForm"
>
<template
#
importVersionAlert
>
<Alert
show-icon
style=
"font-size: 13px"
message=
"仅支持TDS同版本资源导入"
type=
"warning"
/>
</
template
>
<
template
#
importOptionsAlert
>
<Alert
show-icon
style=
"font-size: 13px"
message=
"跨工作区导入将会按照配置管理 >全部数据源 配置数据源替换信息,否则将会自动创建同源数据源。"
type=
"warning"
/>
</
template
>
<
template
#
fileMethods=
"{ model, field }"
>
<
template
#
fileMethods=
"{ model, field }"
>
<div
style=
"display: flex"
>
<div
style=
"display: flex"
>
<div>
<div>
<a-button>
下载模板
</a-button>
<a-button
type=
"primary"
style=
"margin-left: 5px"
>
选择
</a-button>
<a-button
type=
"primary"
style=
"margin-left: 5px"
>
选择文件
</a-button>
</div>
</div>
<div
style=
"width: 200px; margin-top: 6px; margin-left: 5px"
<div
style=
"width: 200px; margin-top: 6px; margin-left: 5px"
>
数据质量只能导入单个zip文件
</div
>
数据质量只能导入单个zip文件
</div
...
@@ -26,6 +36,7 @@
...
@@ -26,6 +36,7 @@
import
{
BasicModal
,
useModalInner
}
from
'@/components/Modal'
;
import
{
BasicModal
,
useModalInner
}
from
'@/components/Modal'
;
import
{
BasicForm
,
useForm
}
from
'@/components/Form'
;
import
{
BasicForm
,
useForm
}
from
'@/components/Form'
;
import
{
importFormSchema
}
from
'./dataEntry.data'
;
import
{
importFormSchema
}
from
'./dataEntry.data'
;
import
{
Alert
}
from
'ant-design-vue'
;
const
emit
=
defineEmits
([
'success'
,
'register'
]);
const
emit
=
defineEmits
([
'success'
,
'register'
]);
const
isUpdate
=
ref
(
true
);
const
isUpdate
=
ref
(
true
);
...
@@ -35,7 +46,6 @@
...
@@ -35,7 +46,6 @@
//初始化表单
//初始化表单
const
[
registerForm
,
{
setFieldsValue
,
updateSchema
,
resetFields
,
validate
}]
=
useForm
({
const
[
registerForm
,
{
setFieldsValue
,
updateSchema
,
resetFields
,
validate
}]
=
useForm
({
labelWidth
:
100
,
labelWidth
:
100
,
baseColProps
:
{
lg
:
12
,
md
:
24
},
schemas
:
importFormSchema
,
schemas
:
importFormSchema
,
showActionButtonGroup
:
false
,
showActionButtonGroup
:
false
,
actionColOptions
:
{
actionColOptions
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment