Commit e6f4840f authored by 罗林杰's avatar 罗林杰

修改bug

parent 3a74f1a1
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
</div> </div>
</template> </template>
<div> <div>
<Tabs> <Tabs v-model:activeKey="key">
<TabPane key="1" tab="源端配置"> <TabPane key="1" tab="源端配置">
<div style="display: flex"> <div style="display: flex">
<BasicForm @register="registerSourceSideConfigurationForm" style="width: 30%"> <BasicForm @register="registerSourceSideConfigurationForm" style="width: 30%">
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
<a-button type="primary">导入文件</a-button> <a-button type="primary">导入文件</a-button>
</template> </template>
</BasicForm> </BasicForm>
<div style="width: 20%; padding: 0 5px 5px"> <div v-if="isGetMeta === 'true'" style="width: 20%; padding: 0 5px 5px">
<BasicTree <BasicTree
toolbar toolbar
search search
...@@ -102,7 +102,11 @@ ...@@ -102,7 +102,11 @@
<CodeEditor v-model:value="sql" style="height: 100%" /> <CodeEditor v-model:value="sql" style="height: 100%" />
</div> </div>
</div> </div>
<BasicForm @register="registerLoadingStrategyForm" style="width: 50%"> <BasicForm
v-if="isGetMeta === 'true'"
@register="registerLoadingStrategyForm"
style="width: 50%"
>
<template #incrementalRepresentationColumnAlert> <template #incrementalRepresentationColumnAlert>
<Alert <Alert
show-icon show-icon
...@@ -474,7 +478,7 @@ ...@@ -474,7 +478,7 @@
</TabPane> </TabPane>
</Tabs> </Tabs>
</div> </div>
<GetMetadataModal @register="registerGetMetadataModal" /> <GetMetadataModal @register="registerGetMetadataModal" @success="successGetMetadata" />
<DeplysModal @register="registerDeplysModal" /> <DeplysModal @register="registerDeplysModal" />
<AddDataConversionRuleModal @register="registerAddRuleModal" /> <AddDataConversionRuleModal @register="registerAddRuleModal" />
<DataOptionsModal @register="registerDataOptionsModal" /> <DataOptionsModal @register="registerDataOptionsModal" />
...@@ -585,6 +589,8 @@ ...@@ -585,6 +589,8 @@
let isClearTargetTable = ref(false); let isClearTargetTable = ref(false);
const isSave = ref('false'); const isSave = ref('false');
const isRun = ref('false'); const isRun = ref('false');
const key = ref('1');
const isGetMeta= ref('false');
let loadType = ref('全量数据加载'); let loadType = ref('全量数据加载');
let configurationModeFlag = ref(''); let configurationModeFlag = ref('');
let selectAdvancedConfiguration = ref(); let selectAdvancedConfiguration = ref();
...@@ -1595,12 +1601,6 @@ ...@@ -1595,12 +1601,6 @@
{ reload: reloadTabularPresentationTable, getDataSource: getTabularPresentationDataSource }, { reload: reloadTabularPresentationTable, getDataSource: getTabularPresentationDataSource },
] = useTable({ ] = useTable({
api: async (params) => { api: async (params) => {
tabularPresentationTable.value = tabularPresentationTableList.filter(
(item) =>
item.sourceTable.includes(params.tableName) ||
item.targetTable.includes(params.tableName) ||
params.tableName === undefined,
);
const response = { const response = {
pageNu: '1', pageNu: '1',
pageSize: '5', pageSize: '5',
...@@ -1740,16 +1740,55 @@ ...@@ -1740,16 +1740,55 @@
} }
function handleDebug() { function handleDebug() {
router.push({ isEdit.value = 'debug';
path: '/dataIntegration/dataLoading/dataEntryLake/' + 'databaseOfflineLoading', key.value = '4';
query: { tabularPresentationTable.value = [
isEdit: 'debug', {
businessId: '1',
ownershipTableId: '1',
sourceTable: 'table_1',
targetTable: 'test_table_1_obs',
tableType: 'ORC',
areaType: '无',
partitionKey: '-',
debuggingResult: '成功',
},
{
businessId: '1',
ownershipTableId: '1',
sourceTable: 'auto_catalog_hdfs_file_1.txt',
targetTable: 'yesy',
tableType: 'ORC',
areaType: '无',
partitionKey: '-',
debuggingResult: '成功',
},
{
businessId: '1',
ownershipTableId: '1',
sourceTable: 'customer_details',
targetTable: 'yesy',
tableType: 'ORC',
areaType: '无',
partitionKey: '-',
debuggingResult: '成功',
},
{
businessId: '1',
ownershipTableId: '1',
sourceTable: 'order_history',
targetTable: 'yesy',
tableType: 'ORC',
areaType: '无',
partitionKey: '-',
debuggingResult: '成功',
}, },
}); ];
reloadTabularPresentationTable();
} }
function handleExitDebug() { function handleExitDebug() {
router.back(); isEdit.value = 'true';
} }
async function handleSave() { async function handleSave() {
...@@ -1997,6 +2036,10 @@ ...@@ -1997,6 +2036,10 @@
}; };
} }
function successGetMetadata() {
isGetMeta.value = 'true';
}
function handleChangeToTheConfigurationItem() { function handleChangeToTheConfigurationItem() {
configurationModeFlag.value = 1; configurationModeFlag.value = 1;
updateDestinationConfiguration(); updateDestinationConfiguration();
......
...@@ -77,7 +77,9 @@ ...@@ -77,7 +77,9 @@
} }
/**确定按钮*/ /**确定按钮*/
async function handleSubmit() { function handleSubmit() {
emit('success');
createMessage.success('获取元数据成功');
closeModal(); closeModal();
} }
......
...@@ -957,30 +957,6 @@ export const configurationTableList = [ ...@@ -957,30 +957,6 @@ export const configurationTableList = [
configurationMode: 1, configurationMode: 1,
businessId: '3', 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 = [ export const mappingRuleConfigurationTableList = [
...@@ -1440,6 +1416,26 @@ export const tabularPresentationTableList = [ ...@@ -1440,6 +1416,26 @@ export const tabularPresentationTableList = [
partitionKey: '-', partitionKey: '-',
debuggingResult: '', debuggingResult: '',
}, },
{
businessId: '1',
ownershipTableId: '1',
sourceTable: 'customer_details',
targetTable: 'yesy',
tableType: 'ORC',
areaType: '无',
partitionKey: '-',
debuggingResult: '',
},
{
businessId: '1',
ownershipTableId: '1',
sourceTable: 'order_history',
targetTable: 'yesy',
tableType: 'ORC',
areaType: '无',
partitionKey: '-',
debuggingResult: '',
},
]; ];
export const compareTableList = [ export const compareTableList = [
{ {
......
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