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
97d9ceec
Commit
97d9ceec
authored
Dec 02, 2024
by
liangjingpeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据入湖-准实时--优化
parent
8c855f07
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
38 deletions
+21
-38
dataLakePunctual.data.ts
...dataIntegration/dataLakePunctual/dataLakePunctual.data.ts
+13
-30
fieldNameMappingRuleModal.vue
...ntegration/dataLakePunctual/fieldNameMappingRuleModal.vue
+1
-1
index.vue
src/views/dataIntegration/dataLakePunctual/index.vue
+6
-6
singleTableFieldMappingRuleModal.vue
...ion/dataLakePunctual/singleTableFieldMappingRuleModal.vue
+1
-1
No files found.
src/views/dataIntegration/dataLakePunctual/dataLakePunctual.data.ts
View file @
97d9ceec
import
{
BasicColumn
,
FormSchema
}
from
"@/components/Table"
;
import
{
BasicColumn
,
FormSchema
}
from
'@/components/Table'
;
/**源端配置-left-表单 */
export
const
sourceSideConfigurationFormSchema
:
FormSchema
[]
=
[
...
...
@@ -52,7 +52,7 @@ export const sourceSideConfigurationFormSchema: FormSchema[] = [
{
field
:
'dataBase'
,
label
:
'数据库'
,
component
:
'
Cascader
'
,
component
:
'
Select
'
,
required
:
true
,
componentProps
:
{
placeholder
:
'请选择数据源'
,
...
...
@@ -61,28 +61,16 @@ export const sourceSideConfigurationFormSchema: FormSchema[] = [
},
options
:
[
{
value
:
'数据库对象资源'
,
label
:
'数据库对象资源'
,
children
:
[
{
value
:
'数据中台工作区01'
,
label
:
'数据中台工作区01'
,
children
:
[
{
value
:
'ArgoDB_Dev01'
,
label
:
'ArgoDB_Dev01'
,
},
{
value
:
'ArgoDB_Dev02'
,
label
:
'ArgoDB_Dev02'
,
},
{
value
:
'GbaseDB_Dev01'
,
label
:
'GbaseDB_Dev01'
,
},
],
},
],
value
:
'ArgoDB_Dev01'
,
label
:
'ArgoDB_Dev01'
,
},
{
value
:
'ArgoDB_Dev02'
,
label
:
'ArgoDB_Dev02'
,
},
{
value
:
'GbaseDB_Dev01'
,
label
:
'GbaseDB_Dev01'
,
},
],
},
...
...
@@ -94,7 +82,6 @@ export const sourceSideConfigurationFormSchema: FormSchema[] = [
component
:
'Slot'
,
slot
:
'getMetadata'
,
},
];
/**源端配置-获取元数据按钮(弹窗)-字段名 */
...
...
@@ -112,7 +99,7 @@ export const LoadingStrategyFormSchema: FormSchema[] = [
component
:
'Select'
,
colProps
:
{
lg
:
23
,
md
:
23
},
componentProps
:
{
mode
:
'multiple'
mode
:
'multiple'
,
},
ifShow
:
false
,
required
:
true
,
...
...
@@ -136,7 +123,6 @@ export const notCustomSQLColumns: BasicColumn[] = [
title
:
'类型'
,
dataIndex
:
'fieldType'
,
},
];
/**映射规则配置-新增规则按钮-新增字段规则表单*/
...
...
@@ -360,7 +346,6 @@ export const singleSourceFieldNameMappingRuleColumns: BasicColumn[] = [
},
];
/**映射规则配置-数据转换规则-列表字段 */
export
const
mappingRuleConfigurationColumns
:
BasicColumn
[]
=
[
{
...
...
@@ -376,6 +361,4 @@ export const mappingRuleConfigurationColumns: BasicColumn[] = [
align
:
'left'
,
slots
:
{
customRender
:
'ruleContent'
},
},
];
src/views/dataIntegration/dataLakePunctual/fieldNameMappingRuleModal.vue
View file @
97d9ceec
...
...
@@ -2,7 +2,7 @@
<BasicModal
v-bind=
"$attrs"
@
register=
"registerModal"
title=
"全局
新增字段
规则"
title=
"全局
字段名称映射
规则"
@
ok=
"handleSubmit"
style=
"width: 35%"
minHeight=
"50"
...
...
src/views/dataIntegration/dataLakePunctual/index.vue
View file @
97d9ceec
...
...
@@ -413,7 +413,7 @@
let
target
=
0
;
// 目标数据序号
// Table拖拽
function
customRow
(
record
,
index
)
{
console
.
log
(
record
,
index
);
// 这里输出是表格全部的数据
console
.
log
(
'record, index:'
,
record
,
index
);
// 这里输出是表格全部的数据
return
{
props
:
{
// draggable: 'true'
...
...
@@ -454,11 +454,11 @@
target
=
index
;
// 这里就是让数据位置互换,让视图更新 你们可以看record,index的输出,看是什么
console
.
log
(
mappingRuleConfigurationTable
);
// [tableData.value[source], tableData.value[target]] = [tableData.value[target], tableData
.value[source]];
const
temp
=
ref
();
temp
.
value
=
mappingRuleConfigurationTable
.
value
[
source
];
mappingRuleConfigurationTable
.
value
[
source
]
=
mappingRuleConfigurationTable
.
value
[
target
];
mappingRuleConfigurationTable
.
value
[
target
]
=
temp
.
value
;
[
mappingRuleConfigurationTable
.
value
[
source
],
mappingRuleConfigurationTable
.
value
[
target
]]
=
[
mappingRuleConfigurationTable
.
value
[
target
],
mappingRuleConfigurationTable
.
value
[
source
]];
//
const temp = ref();
//
temp.value = mappingRuleConfigurationTable.value[source];
//
mappingRuleConfigurationTable.value[source] = mappingRuleConfigurationTable.value[target];
//
mappingRuleConfigurationTable.value[target] = temp.value;
console
.
log
(
record
,
index
,
'target'
,
source
,
target
);
},
};
...
...
src/views/dataIntegration/dataLakePunctual/singleTableFieldMappingRuleModal.vue
View file @
97d9ceec
...
...
@@ -2,7 +2,7 @@
<BasicModal
v-bind=
"$attrs"
@
register=
"registerModal"
title=
"全局
新增字段
规则"
title=
"全局
字段映射
规则"
@
ok=
"handleSubmit"
style=
"width: 35%"
minHeight=
"50"
...
...
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