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
9370f5da
Commit
9370f5da
authored
Dec 10, 2024
by
罗林杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改数据库到数据库
parent
ecd202a5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
84 additions
and
2 deletions
+84
-2
data.ts
src/views/realTimeSync/dataBaseToDataBase/data.ts
+2
-1
dataBaseData.ts
src/views/realTimeSync/dataBaseToDataBase/dataBaseData.ts
+52
-0
optionPage.vue
src/views/realTimeSync/dataBaseToDataBase/optionPage.vue
+30
-1
No files found.
src/views/realTimeSync/dataBaseToDataBase/data.ts
View file @
9370f5da
...
...
@@ -255,7 +255,7 @@ export const mappingRuleConfigurationColumns: BasicColumn[] = [
{
title
:
'规则名称'
,
dataIndex
:
'ruleName'
,
width
:
20
0
,
width
:
12
0
,
edit
:
true
,
editable
:
true
,
editComponent
:
'Input'
,
...
...
@@ -283,6 +283,7 @@ export const mappingRuleConfigurationColumns: BasicColumn[] = [
title
:
'规则详情'
,
dataIndex
:
'ruleDetail'
,
width
:
200
,
slots
:
{
customRender
:
'ruleDetail'
},
},
{
title
:
'执行顺序'
,
...
...
src/views/realTimeSync/dataBaseToDataBase/dataBaseData.ts
View file @
9370f5da
...
...
@@ -1103,3 +1103,55 @@ export const fieldMappingRulesTableData: any[] = [
dataSourceName
:
'pre_SOURCE'
,
},
];
export
const
dataOperation1
=
[
{
label
:
'包含'
,
value
:
'包含'
,
},
{
label
:
'排除'
,
value
:
'排除'
,
},
];
export
const
dataOperation2
=
[
{
label
:
'更新'
,
value
:
'更新'
,
},
{
label
:
'插入'
,
value
:
'插入'
,
},
{
label
:
'删除'
,
value
:
'删除'
,
},
];
export
const
dataFiltering1
=
[
{
label
:
'id'
,
value
:
'id'
,
},
{
label
:
'name'
,
value
:
'name'
,
},
{
label
:
'age'
,
value
:
'age'
,
},
];
export
const
dataFiltering2
=
[
{
label
:
'>'
,
value
:
'>'
,
},
{
label
:
'<'
,
value
:
'<'
,
},
{
label
:
'='
,
value
:
'='
,
},
];
src/views/realTimeSync/dataBaseToDataBase/optionPage.vue
View file @
9370f5da
...
...
@@ -175,6 +175,31 @@
style=
"font-size: 15px; white-space: pre-wrap"
/>
<BasicTable
title=
"数据转换规则"
@
register=
"registerMappingRuleConfigurationTable"
>
<
template
#
ruleDetail=
"{ text }"
>
<div
v-if=
"text === '数据操作过滤'"
style=
"display: flex"
>
<Select
style=
"width: 100%"
placeholder=
"请选择"
:options=
"dataOperation1"
/>
<Select
style=
"width: 100%"
placeholder=
"请选择"
:options=
"dataOperation2"
mode=
"multiple"
/>
</div>
<div
v-if=
"text === '数据值过滤'"
style=
"display: flex"
>
<Select
style=
"width: 100%"
placeholder=
"请选择"
:options=
"dataFiltering1"
/>
<Select
style=
"width: 100%"
placeholder=
"请选择"
:options=
"dataFiltering2"
/>
<AInput
placeholder=
"英文逗号将枚举值隔开"
/>
</div>
<div
v-if=
"text === '字段过滤'"
style=
"display: flex"
>
<Select
style=
"width: 100%"
placeholder=
"请选择"
:options=
"dataOperation1"
/>
<Select
style=
"width: 100%"
placeholder=
"请选择"
:options=
"dataFiltering1"
mode=
"multiple"
/>
</div>
</
template
>
<
template
#
headerTop
>
<a-input-search
placeholder=
"输入关键字搜索"
style=
"width: 200px"
/>
<Select
...
...
@@ -682,6 +707,10 @@
jsonData
,
fieldMappingData
,
fieldMappingRulesTableData
,
dataOperation2
,
dataOperation1
,
dataFiltering1
,
dataFiltering2
,
}
from
'./dataBaseData'
;
import
{
router
}
from
'@/router'
;
import
{
BasicTable
,
useTable
,
TableAction
}
from
'@/components/Table'
;
...
...
@@ -1281,7 +1310,7 @@
businessId
:
n
.
value
+
1
,
name
:
''
,
dataTable
:
''
,
ruleDetail
:
''
,
ruleDetail
:
type
,
ruleType
:
type
,
};
mappingRuleConfigurationTable
.
value
.
push
(
data
);
...
...
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