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
bc46a4fa
Commit
bc46a4fa
authored
Nov 26, 2024
by
chenjiahao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据库离线加载-目标端配置
parent
86a68622
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
818 additions
and
56 deletions
+818
-56
DeplysModal.vue
...dataIntegration/dataLoading/dataEntryLake/DeplysModal.vue
+0
-1
dataEntry.data.ts
...taIntegration/dataLoading/dataEntryLake/dataEntry.data.ts
+0
-7
databaseOfflineLoading.vue
...tion/dataLoading/dataEntryLake/databaseOfflineLoading.vue
+687
-23
mock.ts
src/views/dataIntegration/dataLoading/dataEntryLake/mock.ts
+100
-12
offlineLoading.data.ts
...egration/dataLoading/dataEntryLake/offlineLoading.data.ts
+22
-4
sensitiveRecognition.data.ts
...ecurity/sensitiveRecognition/sensitiveRecognition.data.ts
+0
-3
index.vue
...ataService/APIIntegrationSecurity/AccessControl/index.vue
+9
-6
No files found.
src/views/dataIntegration/dataLoading/dataEntryLake/DeplysModal.vue
View file @
bc46a4fa
...
...
@@ -48,7 +48,6 @@
},
{
field
:
'incrementIdentificationColumnAlert'
,
component
:
'Slot'
,
slot
:
'incrementIdentificationColumnAlert'
,
ifShow
:
false
,
},
...
...
src/views/dataIntegration/dataLoading/dataEntryLake/dataEntry.data.ts
View file @
bc46a4fa
...
...
@@ -172,7 +172,6 @@ export const NewFieldRuleFormSchema: FormSchema[] = [
},
{
field
:
'newFieldRuleAlert'
,
component
:
'Slot'
,
slot
:
'newFieldRuleAlert'
,
},
{
...
...
@@ -184,7 +183,6 @@ export const NewFieldRuleFormSchema: FormSchema[] = [
// {
// field: 'newFieldType',
// label: '规则名称',
// component: 'Slot',
// slot: 'newFieldType',
// required: true,
// },
...
...
@@ -211,7 +209,6 @@ export const FieldTypeMappingRuleFormSchema: FormSchema[] = [
},
{
field
:
'newFieldRuleAlert'
,
component
:
'Slot'
,
slot
:
'newFieldRuleAlert'
,
},
{
...
...
@@ -325,7 +322,6 @@ export const FieldNameMappingRuleFormSchema: FormSchema[] = [
},
{
field
:
'regularExpressionAlert'
,
component
:
'Slot'
,
slot
:
'regularExpressionAlert'
,
},
{
...
...
@@ -396,13 +392,11 @@ export const FieldNameMappingRuleFormSchema: FormSchema[] = [
{
field
:
'reviewButton'
,
label
:
''
,
component
:
'Slot'
,
slot
:
'reviewButton'
,
},
{
field
:
'reviewTable'
,
label
:
''
,
component
:
'Slot'
,
slot
:
'reviewTable'
,
},
];
...
...
@@ -430,7 +424,6 @@ export const SingleTableFieldMappingRuleFormSchema: FormSchema[] = [
},
{
field
:
'mappingTable'
,
component
:
'Slot'
,
slot
:
'mappingTable'
,
},
];
src/views/dataIntegration/dataLoading/dataEntryLake/databaseOfflineLoading.vue
View file @
bc46a4fa
This diff is collapsed.
Click to expand it.
src/views/dataIntegration/dataLoading/dataEntryLake/mock.ts
View file @
bc46a4fa
...
...
@@ -923,6 +923,57 @@ export const getMetadataTableList = [
},
];
export
const
configurationTableList
=
[
{
sourceTableName
:
'bm_datasource'
,
targetTableName
:
'bm_datasource'
,
configurationMode
:
0
,
businessId
:
'0'
,
},
{
sourceTableName
:
'user_info'
,
targetTableName
:
'user_info'
,
configurationMode
:
1
,
businessId
:
'1'
,
},
{
sourceTableName
:
'customer_details'
,
targetTableName
:
'customer_details'
,
configurationMode
:
1
,
businessId
:
'2'
,
},
{
sourceTableName
:
'order_history'
,
targetTableName
:
'order_history'
,
configurationMode
:
1
,
businessId
:
'3'
,
},
{
sourceTableName
:
'product_inventory'
,
targetTableName
:
'product_inventory'
,
configurationMode
:
1
,
businessId
:
'4'
,
},
{
sourceTableName
:
'transaction_logs'
,
targetTableName
:
'transaction_logs'
,
configurationMode
:
1
,
businessId
:
'5'
,
},
{
sourceTableName
:
'employee_records'
,
targetTableName
:
'employee_records'
,
configurationMode
:
1
,
businessId
:
'6'
,
},
{
sourceTableName
:
'payment_details'
,
targetTableName
:
'payment_details'
,
configurationMode
:
1
,
businessId
:
'7'
,
},
];
export
const
mappingRuleConfigurationTableList
=
[
{
businessId
:
'1'
,
...
...
@@ -951,7 +1002,7 @@ export const mappingRuleConfigurationTableList = [
},
];
export
const
newF
ieldTypeOptions
=
[
export
const
f
ieldTypeOptions
=
[
'INT'
,
// 整型
'BIGINT'
,
// 大整型
'FLOAT'
,
// 浮点型
...
...
@@ -1181,7 +1232,6 @@ export const goalFieldNameMappingRuleTableList = [
{
businessId
:
'1'
,
ownershipTableId
:
'1'
,
fieldName
:
'uuid'
,
targetFieldName
:
'test_uuid_obs'
,
annotation
:
'-'
,
fieldType
:
'VARCHAR(50)'
,
...
...
@@ -1189,7 +1239,6 @@ export const goalFieldNameMappingRuleTableList = [
{
businessId
:
'2'
,
ownershipTableId
:
'1'
,
fieldName
:
'catalog_id'
,
targetFieldName
:
'test_catalog_id_obs'
,
annotation
:
'-'
,
fieldType
:
'BIGINT(19)'
,
...
...
@@ -1197,7 +1246,6 @@ export const goalFieldNameMappingRuleTableList = [
{
businessId
:
'3'
,
ownershipTableId
:
'1'
,
fieldName
:
'name'
,
targetFieldName
:
'test_name_obs'
,
annotation
:
'-'
,
fieldType
:
'VARCHAR(255)'
,
...
...
@@ -1205,7 +1253,6 @@ export const goalFieldNameMappingRuleTableList = [
{
businessId
:
'4'
,
ownershipTableId
:
'1'
,
fieldName
:
'description'
,
targetFieldName
:
'test_description_obs'
,
annotation
:
'-'
,
fieldType
:
'TEXT'
,
...
...
@@ -1213,7 +1260,6 @@ export const goalFieldNameMappingRuleTableList = [
{
businessId
:
'5'
,
ownershipTableId
:
'2'
,
fieldName
:
'uuid'
,
targetFieldName
:
'test_uuid_obs_2'
,
annotation
:
'-'
,
fieldType
:
'VARCHAR(50)'
,
...
...
@@ -1221,7 +1267,6 @@ export const goalFieldNameMappingRuleTableList = [
{
businessId
:
'6'
,
ownershipTableId
:
'2'
,
fieldName
:
'user_id'
,
targetFieldName
:
'test_user_id_obs'
,
annotation
:
'-'
,
fieldType
:
'BIGINT(19)'
,
...
...
@@ -1229,7 +1274,6 @@ export const goalFieldNameMappingRuleTableList = [
{
businessId
:
'7'
,
ownershipTableId
:
'2'
,
fieldName
:
'username'
,
targetFieldName
:
'test_username_obs'
,
annotation
:
'-'
,
fieldType
:
'VARCHAR(255)'
,
...
...
@@ -1237,7 +1281,6 @@ export const goalFieldNameMappingRuleTableList = [
{
businessId
:
'8'
,
ownershipTableId
:
'2'
,
fieldName
:
'email'
,
targetFieldName
:
'test_email_obs'
,
annotation
:
'-'
,
fieldType
:
'VARCHAR(255)'
,
...
...
@@ -1245,7 +1288,6 @@ export const goalFieldNameMappingRuleTableList = [
{
businessId
:
'9'
,
ownershipTableId
:
'3'
,
fieldName
:
'uuid'
,
targetFieldName
:
'test_uuid_obs_3'
,
annotation
:
'-'
,
fieldType
:
'VARCHAR(50)'
,
...
...
@@ -1253,7 +1295,6 @@ export const goalFieldNameMappingRuleTableList = [
{
businessId
:
'10'
,
ownershipTableId
:
'3'
,
fieldName
:
'order_id'
,
targetFieldName
:
'test_order_id_obs'
,
annotation
:
'-'
,
fieldType
:
'BIGINT(19)'
,
...
...
@@ -1261,9 +1302,56 @@ export const goalFieldNameMappingRuleTableList = [
{
businessId
:
'11'
,
ownershipTableId
:
'3'
,
fieldName
:
'total_amount'
,
targetFieldName
:
'test_total_amount_obs'
,
annotation
:
'-'
,
fieldType
:
'DECIMAL(10,2)'
,
},
];
export
const
partitionKeyTable
=
[
{
businessId
:
'1'
,
ownershipTableId
:
'1'
,
fieldName
:
'test_uuid_obs'
,
annotation
:
'-'
,
fieldType
:
'VARCHAR(50)'
,
},
{
businessId
:
'2'
,
ownershipTableId
:
'2'
,
fieldName
:
'test_catalog_id_obs'
,
annotation
:
'-'
,
fieldType
:
'BIGINT(19)'
,
},
];
export
const
partitionRangeTable
=
[
{
businessId
:
'1'
,
ownershipTableId
:
'1'
,
name
:
'test_uuid_obs'
,
value
:
'test_uuid_obs>10'
,
},
{
businessId
:
'2'
,
ownershipTableId
:
'2'
,
name
:
'test_catalog_id_obs'
,
value
:
'test_catalog_id_obs!==100'
,
},
];
export
const
otherConfigurationTable
=
[
{
businessId
:
'1'
,
ownershipTableId
:
'1'
,
otherConfigurationType
:
'表注释'
,
otherConfigurationContent
:
'这是个测试用表'
,
},
{
businessId
:
'2'
,
ownershipTableId
:
'2'
,
otherConfigurationType
:
'表注释'
,
otherConfigurationContent
:
'这是个测试用表'
,
},
];
src/views/dataIntegration/dataLoading/dataEntryLake/offlineLoading.data.ts
View file @
bc46a4fa
import
{
FormSchema
}
from
'@/components/Form'
;
import
{
BasicColumn
}
from
'@/components/Table'
;
import
{
goalFieldNameMappingRuleTableList
,
sourceFieldNameMappingRuleTableList
}
from
"@/views/dataIntegration/dataLoading/dataEntryLake/mock"
;
export
const
isCustomSQLColumns
:
BasicColumn
[]
=
[
{
...
...
@@ -23,6 +19,28 @@ export const getMetadataColumns: BasicColumn[] = [
},
];
export
const
configurationColumns
:
BasicColumn
[]
=
[
{
title
:
'源端'
,
dataIndex
:
'sourceTableName'
,
},
{
title
:
'目标端'
,
dataIndex
:
'targetTableName'
,
edit
:
true
,
},
{
title
:
'配置方式'
,
dataIndex
:
'configurationMode'
,
slots
:
{
customRender
:
'configurationMode'
},
},
{
title
:
'分区数量配置'
,
dataIndex
:
'partitionQuantityConfiguration'
,
slots
:
{
customRender
:
'partitionQuantityConfiguration'
},
},
];
export
const
notCustomSQLColumns
:
BasicColumn
[]
=
[
{
title
:
'列名'
,
...
...
src/views/dataService/APIDataSecurity/sensitiveRecognition/sensitiveRecognition.data.ts
View file @
bc46a4fa
...
...
@@ -164,7 +164,6 @@ export const formSchema: any[] = [
},
{
field
:
'requestParameters'
,
component
:
'Slot'
,
label
:
' '
,
labelWidth
:
20
,
slot
:
'requestParameters'
,
...
...
@@ -203,7 +202,6 @@ export const formSchema: any[] = [
field
:
'returnParameter'
,
label
:
' '
,
labelWidth
:
20
,
component
:
'Slot'
,
slot
:
'returnParameter'
,
},
{
...
...
@@ -221,7 +219,6 @@ export const formSchema: any[] = [
},
{
field
:
'sensitiveRules'
,
component
:
'Slot'
,
label
:
' '
,
labelWidth
:
16
,
slot
:
'sensitiveRules'
,
...
...
src/views/dataService/APIIntegrationSecurity/AccessControl/index.vue
View file @
bc46a4fa
...
...
@@ -569,12 +569,15 @@
target
=
index
;
// 这里就是让数据位置互换,让视图更新 你们可以看record,index的输出,看是什么
console
.
log
(
tableData
);
// [tableData.value[source], tableData.value[target]] = [tableData.value[target], tableData.value[source]];
const
temp
=
ref
();
temp
.
value
=
tableData
.
value
[
source
];
tableData
.
value
[
source
]
=
tableData
.
value
[
target
];
tableData
.
value
[
target
]
=
temp
.
value
;
console
.
log
(
record
,
index
,
'target'
,
source
,
target
);
[
tableData
.
value
[
source
],
tableData
.
value
[
target
]]
=
[
tableData
.
value
[
target
],
tableData
.
value
[
source
],
];
// const temp = ref();
// temp.value = tableData.value[source];
// tableData.value[source] = tableData.value[target];
// tableData.value[target] = temp.value;
// console.log(record, index, 'target', source, target);
},
};
}
...
...
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