Commit bc46a4fa authored by chenjiahao's avatar chenjiahao

数据库离线加载-目标端配置

parent 86a68622
......@@ -48,7 +48,6 @@
},
{
field: 'incrementIdentificationColumnAlert',
component: 'Slot',
slot: 'incrementIdentificationColumnAlert',
ifShow: false,
},
......
......@@ -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',
},
];
......@@ -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 newFieldTypeOptions = [
export const fieldTypeOptions = [
'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: '这是个测试用表',
},
];
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: '列名',
......
......@@ -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',
......
......@@ -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);
},
};
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment