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
aae18d2f
Commit
aae18d2f
authored
Dec 03, 2024
by
罗林杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
e0006755
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
14 deletions
+42
-14
importModal.vue
...dataIntegration/dataLoading/dataEntryLake/importModal.vue
+3
-0
data.ts
src/views/realTimeSync/dataBaseToDataBase/data.ts
+5
-3
optionPage.vue
src/views/realTimeSync/dataBaseToDataBase/optionPage.vue
+34
-11
No files found.
src/views/dataIntegration/dataLoading/dataEntryLake/importModal.vue
View file @
aae18d2f
...
@@ -37,10 +37,12 @@
...
@@ -37,10 +37,12 @@
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'
;
import
{
Alert
}
from
'ant-design-vue'
;
import
{
useMessage
}
from
"@/hooks/web/useMessage"
;
const
emit
=
defineEmits
([
'success'
,
'register'
]);
const
emit
=
defineEmits
([
'success'
,
'register'
]);
const
isUpdate
=
ref
(
true
);
const
isUpdate
=
ref
(
true
);
const
isMove
=
ref
(
false
);
const
isMove
=
ref
(
false
);
const
{
createMessage
}
=
useMessage
();
const
rowId
=
ref
(
''
);
const
rowId
=
ref
(
''
);
//获取接口数据并放在下拉框里(这里是打开了一个弹框)
//获取接口数据并放在下拉框里(这里是打开了一个弹框)
//初始化表单
//初始化表单
...
@@ -75,6 +77,7 @@
...
@@ -75,6 +77,7 @@
/**确定按钮*/
/**确定按钮*/
async
function
handleSubmit
()
{
async
function
handleSubmit
()
{
createMessage
.
success
(
'导入成功'
);
closeModal
();
closeModal
();
}
}
</
script
>
</
script
>
src/views/realTimeSync/dataBaseToDataBase/data.ts
View file @
aae18d2f
...
@@ -395,9 +395,9 @@ export const sourceSideConfigurationFormSchema: FormSchema[] = [
...
@@ -395,9 +395,9 @@ export const sourceSideConfigurationFormSchema: FormSchema[] = [
ifShow
:
({
model
})
=>
model
.
sourceType
===
'2'
&&
model
.
analysisType
===
'1'
,
ifShow
:
({
model
})
=>
model
.
sourceType
===
'2'
&&
model
.
analysisType
===
'1'
,
},
},
{
{
field
:
'analysisAlter
1
'
,
field
:
'analysisAlter
2
'
,
label
:
''
,
label
:
''
,
slot
:
'analysisAlter
1
'
,
slot
:
'analysisAlter
2
'
,
ifShow
:
({
model
})
=>
model
.
sourceType
===
'2'
&&
model
.
analysisType
===
'2'
,
ifShow
:
({
model
})
=>
model
.
sourceType
===
'2'
&&
model
.
analysisType
===
'2'
,
},
},
{
{
...
@@ -450,6 +450,7 @@ export const sourceSideConfigurationFormSchema: FormSchema[] = [
...
@@ -450,6 +450,7 @@ export const sourceSideConfigurationFormSchema: FormSchema[] = [
field
:
'xstreaName'
,
field
:
'xstreaName'
,
label
:
'xstream服务名称'
,
label
:
'xstream服务名称'
,
component
:
'Input'
,
component
:
'Input'
,
required
:
true
,
ifShow
:
({
model
})
=>
model
.
sourceType
===
'2'
&&
model
.
analysisType
===
'2'
,
ifShow
:
({
model
})
=>
model
.
sourceType
===
'2'
&&
model
.
analysisType
===
'2'
,
},
},
{
{
...
@@ -530,7 +531,7 @@ export const kafkaOptionsFormSchema: FormSchema[] = [
...
@@ -530,7 +531,7 @@ export const kafkaOptionsFormSchema: FormSchema[] = [
min
:
1
,
min
:
1
,
max
:
50
,
max
:
50
,
},
},
defaultValue
:
1
,
defaultValue
:
3
,
required
:
true
,
required
:
true
,
colProps
:
{
lg
:
4
,
md
:
4
},
colProps
:
{
lg
:
4
,
md
:
4
},
},
},
...
@@ -561,6 +562,7 @@ export const mappingRulesTopicTableColumns: BasicColumn[] = [
...
@@ -561,6 +562,7 @@ export const mappingRulesTopicTableColumns: BasicColumn[] = [
editable
:
true
,
editable
:
true
,
editComponent
:
'Select'
,
editComponent
:
'Select'
,
editComponentProps
:
{
editComponentProps
:
{
maxTagCount
:
1
,
showArrow
:
true
,
showArrow
:
true
,
mode
:
'multiple'
,
mode
:
'multiple'
,
options
:
[
options
:
[
...
...
src/views/realTimeSync/dataBaseToDataBase/optionPage.vue
View file @
aae18d2f
...
@@ -268,6 +268,14 @@
...
@@ -268,6 +268,14 @@
/>
/>
</
template
>
</
template
>
<
template
#
mappingRules2
>
<
template
#
mappingRules2
>
<Alert
show-icon
message=
"当前默认情况按照表数量平均分配到设置的Topic中,若Topic数量大于表数量,则无映射关系的Topic不会被创建。"
type=
"warning"
style=
"font-size: 14px"
/>
</
template
>
<
template
#
mappingRules3
>
<Alert
<Alert
show-icon
show-icon
message=
"源端表没有匹配的topic,会按照默认策略进行匹配topic。不支持用户在发布版本并运行任务后在修改topic映射规则,可能会导致数据去失。"
message=
"源端表没有匹配的topic,会按照默认策略进行匹配topic。不支持用户在发布版本并运行任务后在修改topic映射规则,可能会导致数据去失。"
...
@@ -716,6 +724,14 @@
...
@@ -716,6 +724,14 @@
label
:
''
,
label
:
''
,
slot
:
'mappingRules2'
,
slot
:
'mappingRules2'
,
colProps
:
{
lg
:
24
,
md
:
24
},
colProps
:
{
lg
:
24
,
md
:
24
},
ifShow
:
({
model
})
=>
model
.
topicMappingType
===
'1'
,
},
{
field
:
'mappingRules3'
,
label
:
''
,
slot
:
'mappingRules3'
,
colProps
:
{
lg
:
24
,
md
:
24
},
ifShow
:
({
model
})
=>
model
.
topicMappingType
===
'2'
,
},
},
{
{
field
:
'mappingRulesTable'
,
field
:
'mappingRulesTable'
,
...
@@ -1139,18 +1155,25 @@
...
@@ -1139,18 +1155,25 @@
}
}
}
}
function
handleDeleteRules
()
{
function
handleDeleteRules
()
{
const
selectedKeys
=
getRowSelection
().
selectedRowKeys
;
createConfirm
({
if
(
selectedKeys
!==
undefined
)
{
iconType
:
'warning'
,
selectedKeys
.
forEach
((
key
)
=>
{
title
:
'确认删除'
,
const
index
=
mappingRuleConfigurationTable
.
value
.
findIndex
(
content
:
'确认批量删除选中数据吗?'
,
(
item
)
=>
item
.
businessId
===
key
,
onOk
()
{
);
const
selectedKeys
=
getRowSelection
().
selectedRowKeys
;
if
(
index
!==
-
1
)
{
if
(
selectedKeys
!==
undefined
)
{
mappingRuleConfigurationTable
.
value
.
splice
(
index
,
1
);
selectedKeys
.
forEach
((
key
)
=>
{
const
index
=
mappingRuleConfigurationTable
.
value
.
findIndex
(
(
item
)
=>
item
.
businessId
===
key
,
);
if
(
index
!==
-
1
)
{
mappingRuleConfigurationTable
.
value
.
splice
(
index
,
1
);
}
});
createMessage
.
success
(
'批量删除数据转换规则成功'
);
}
}
});
},
createMessage
.
success
(
'批量删除数据转换规则成功'
);
});
}
}
}
/**新增属性*/
/**新增属性*/
...
...
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