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
e6f4840f
Commit
e6f4840f
authored
Dec 03, 2024
by
罗林杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
3a74f1a1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
82 additions
and
41 deletions
+82
-41
databaseOfflineLoading.vue
...tion/dataLoading/dataEntryLake/databaseOfflineLoading.vue
+59
-16
getMetadataModal.vue
...ntegration/dataLoading/dataEntryLake/getMetadataModal.vue
+3
-1
mock.ts
src/views/dataIntegration/dataLoading/dataEntryLake/mock.ts
+20
-24
No files found.
src/views/dataIntegration/dataLoading/dataEntryLake/databaseOfflineLoading.vue
View file @
e6f4840f
...
@@ -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
();
...
...
src/views/dataIntegration/dataLoading/dataEntryLake/getMetadataModal.vue
View file @
e6f4840f
...
@@ -77,7 +77,9 @@
...
@@ -77,7 +77,9 @@
}
}
/**确定按钮*/
/**确定按钮*/
async
function
handleSubmit
()
{
function
handleSubmit
()
{
emit
(
'success'
);
createMessage
.
success
(
'获取元数据成功'
);
closeModal
();
closeModal
();
}
}
...
...
src/views/dataIntegration/dataLoading/dataEntryLake/mock.ts
View file @
e6f4840f
...
@@ -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
=
[
{
{
...
...
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