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
6436fa85
Commit
6436fa85
authored
Dec 04, 2024
by
LiXuyang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
1640d05e
64f498c2
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
225 additions
and
51 deletions
+225
-51
BatchScaleNameMappingModal.vue
.../dataLoading/dataEntryLake/BatchScaleNameMappingModal.vue
+3
-3
dataEntry.data.ts
...taIntegration/dataLoading/dataEntryLake/dataEntry.data.ts
+37
-8
dataTransformationRuleModal.vue
...dataLoading/dataEntryLake/dataTransformationRuleModal.vue
+1
-1
databaseOfflineLoading.vue
...tion/dataLoading/dataEntryLake/databaseOfflineLoading.vue
+92
-22
fieldNameMappingRuleModal.vue
...n/dataLoading/dataEntryLake/fieldNameMappingRuleModal.vue
+2
-2
fieldTypeMappingRuleModal.vue
...n/dataLoading/dataEntryLake/fieldTypeMappingRuleModal.vue
+1
-1
offlineLoading.data.ts
...egration/dataLoading/dataEntryLake/offlineLoading.data.ts
+35
-0
singleTableFieldMappingRuleModal.vue
...oading/dataEntryLake/singleTableFieldMappingRuleModal.vue
+2
-2
CreateHistory.vue
...ews/dataWarehousePlanning/physicalModel/CreateHistory.vue
+13
-1
assetER.vue
...nning/physicalModel/modelDetail/assetRelation/assetER.vue
+11
-5
index.vue
...dataWarehousePlanning/physicalModel/modelDetail/index.vue
+6
-1
relateImage.vue
...ysicalModel/modelDetail/modelRelationship/relateImage.vue
+7
-1
versionIndex.vue
...ehousePlanning/physicalModel/modelDetail/versionIndex.vue
+5
-1
index.vue
...iews/dataWarehousePlanning/physicalModel/upload/index.vue
+10
-3
No files found.
src/views/dataIntegration/dataLoading/dataEntryLake/BatchScaleNameMappingModal.vue
View file @
6436fa85
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<BasicModal
<BasicModal
v-bind=
"$attrs"
v-bind=
"$attrs"
@
register=
"registerModal"
@
register=
"registerModal"
title=
"
全局新增字段规则
"
title=
"
批量表名映射
"
@
ok=
"handleSubmit"
@
ok=
"handleSubmit"
width=
"700px"
width=
"700px"
minHeight=
"50"
minHeight=
"50"
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
import
{
fieldNameMappingRuleTableList
}
from
'@/views/dataIntegration/dataLoading/dataEntryLake/mock'
;
import
{
fieldNameMappingRuleTableList
}
from
'@/views/dataIntegration/dataLoading/dataEntryLake/mock'
;
import
BasicTable
from
'@/components/Table/src/BasicTable.vue'
;
import
BasicTable
from
'@/components/Table/src/BasicTable.vue'
;
import
{
useTable
}
from
'@/components/Table'
;
import
{
useTable
}
from
'@/components/Table'
;
import
{
fieldNameMappingRule
Columns
}
from
'@/views/dataIntegration/dataLoading/dataEntryLake/offlineLoading.data'
;
import
{
batchScaleNameMapping
Columns
}
from
'@/views/dataIntegration/dataLoading/dataEntryLake/offlineLoading.data'
;
const
fieldNameMappingRuleTable
=
ref
();
const
fieldNameMappingRuleTable
=
ref
();
const
emit
=
defineEmits
([
'success'
,
'register'
]);
const
emit
=
defineEmits
([
'success'
,
'register'
]);
...
@@ -73,7 +73,7 @@
...
@@ -73,7 +73,7 @@
formConfig
:
{
formConfig
:
{
labelWidth
:
160
,
labelWidth
:
160
,
},
},
columns
:
fieldNameMappingRule
Columns
,
columns
:
batchScaleNameMapping
Columns
,
showTableSetting
:
false
,
showTableSetting
:
false
,
showIndexColumn
:
false
,
showIndexColumn
:
false
,
bordered
:
false
,
bordered
:
false
,
...
...
src/views/dataIntegration/dataLoading/dataEntryLake/dataEntry.data.ts
View file @
6436fa85
...
@@ -250,7 +250,15 @@ export const NewFieldRuleFormSchema: FormSchema[] = [
...
@@ -250,7 +250,15 @@ export const NewFieldRuleFormSchema: FormSchema[] = [
{
{
field
:
'newFieldType'
,
field
:
'newFieldType'
,
label
:
'新增字段类型'
,
label
:
'新增字段类型'
,
component
:
'Input'
,
component
:
'Select'
,
componentProps
:
{
options
:
[
{
label
:
'INT'
,
value
:
'INT'
},
{
label
:
'BIGINT'
,
value
:
'BIGINT'
},
{
label
:
'DECIMAL'
,
value
:
'DECIMAL'
},
{
label
:
'VARCHAR'
,
value
:
'VARCHAR'
},
],
},
required
:
true
,
required
:
true
,
},
},
{
{
...
@@ -275,7 +283,15 @@ export const FieldTypeMappingRuleFormSchema: FormSchema[] = [
...
@@ -275,7 +283,15 @@ export const FieldTypeMappingRuleFormSchema: FormSchema[] = [
{
{
field
:
'sourceFieldType'
,
field
:
'sourceFieldType'
,
label
:
'源字段类型'
,
label
:
'源字段类型'
,
component
:
'Input'
,
component
:
'Select'
,
componentProps
:
{
options
:
[
{
label
:
'INT'
,
value
:
'INT'
},
{
label
:
'BIGINT'
,
value
:
'BIGINT'
},
{
label
:
'DECIMAL'
,
value
:
'DECIMAL'
},
{
label
:
'VARCHAR'
,
value
:
'VARCHAR'
},
],
},
required
:
true
,
required
:
true
,
},
},
{
{
...
@@ -329,6 +345,14 @@ export const DataTransformationRuleFormSchema: FormSchema[] = [
...
@@ -329,6 +345,14 @@ export const DataTransformationRuleFormSchema: FormSchema[] = [
field
:
'selectExistingField'
,
field
:
'selectExistingField'
,
label
:
'选择已有字段'
,
label
:
'选择已有字段'
,
component
:
'Select'
,
component
:
'Select'
,
componentProps
:
{
options
:
[
{
label
:
'total_amount'
,
value
:
'total_amount'
},
{
label
:
'payment_id'
,
value
:
'payment_id'
},
{
label
:
'position'
,
value
:
'position'
},
{
label
:
'employee_id'
,
value
:
'employee_id'
},
],
},
required
:
true
,
required
:
true
,
ifShow
:
false
,
ifShow
:
false
,
},
},
...
@@ -343,10 +367,14 @@ export const DataTransformationRuleFormSchema: FormSchema[] = [
...
@@ -343,10 +367,14 @@ export const DataTransformationRuleFormSchema: FormSchema[] = [
field
:
'newFieldType'
,
field
:
'newFieldType'
,
label
:
'新增字段类型'
,
label
:
'新增字段类型'
,
component
:
'Select'
,
component
:
'Select'
,
options
:
[
componentProps
:
{
{
label
:
'覆盖已有字段'
,
value
:
'覆盖已有字段'
},
options
:
[
{
label
:
'写入新增字段'
,
value
:
'写入新增字段'
},
{
label
:
'INT'
,
value
:
'INT'
},
],
{
label
:
'BIGINT'
,
value
:
'BIGINT'
},
{
label
:
'DECIMAL'
,
value
:
'DECIMAL'
},
{
label
:
'VARCHAR'
,
value
:
'VARCHAR'
},
],
},
required
:
true
,
required
:
true
,
ifShow
:
false
,
ifShow
:
false
,
},
},
...
@@ -354,7 +382,7 @@ export const DataTransformationRuleFormSchema: FormSchema[] = [
...
@@ -354,7 +382,7 @@ export const DataTransformationRuleFormSchema: FormSchema[] = [
field
:
'conversionRule'
,
field
:
'conversionRule'
,
label
:
'转换规则'
,
label
:
'转换规则'
,
component
:
'RadioGroup'
,
component
:
'RadioGroup'
,
defaultValue
:
'
自定义
'
,
defaultValue
:
'
配置规则
'
,
componentProps
:
({
formModel
,
formActionType
})
=>
({
componentProps
:
({
formModel
,
formActionType
})
=>
({
onChange
:
()
=>
{
onChange
:
()
=>
{
const
flag
=
formModel
.
conversionRule
===
'自定义'
;
const
flag
=
formModel
.
conversionRule
===
'自定义'
;
...
@@ -553,7 +581,7 @@ export const SingleTableFieldMappingRuleFormSchema: FormSchema[] = [
...
@@ -553,7 +581,7 @@ export const SingleTableFieldMappingRuleFormSchema: FormSchema[] = [
},
},
{
{
field
:
'selectiveDataTable'
,
field
:
'selectiveDataTable'
,
label
:
'
选择数据表
'
,
label
:
'
源表名
'
,
component
:
'Select'
,
component
:
'Select'
,
componentProps
:
{
componentProps
:
{
options
:
[
options
:
[
...
@@ -576,6 +604,7 @@ export const PartitionedDataProcessingFormSchema: FormSchema[] = [
...
@@ -576,6 +604,7 @@ export const PartitionedDataProcessingFormSchema: FormSchema[] = [
field
:
'partitionType'
,
field
:
'partitionType'
,
label
:
'分区类型'
,
label
:
'分区类型'
,
component
:
'RadioGroup'
,
component
:
'RadioGroup'
,
defaultValue
:
'单值分区'
,
componentProps
:
{
componentProps
:
{
options
:
[{
label
:
'单值分区'
,
value
:
'单值分区'
}],
options
:
[{
label
:
'单值分区'
,
value
:
'单值分区'
}],
},
},
...
...
src/views/dataIntegration/dataLoading/dataEntryLake/dataTransformationRuleModal.vue
View file @
6436fa85
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<BasicModal
<BasicModal
v-bind=
"$attrs"
v-bind=
"$attrs"
@
register=
"registerModal"
@
register=
"registerModal"
title=
"
全局新增字段
规则"
title=
"
数据转换
规则"
@
ok=
"handleSubmit"
@
ok=
"handleSubmit"
minHeight=
"50"
minHeight=
"50"
>
>
...
...
src/views/dataIntegration/dataLoading/dataEntryLake/databaseOfflineLoading.vue
View file @
6436fa85
...
@@ -76,10 +76,7 @@
...
@@ -76,10 +76,7 @@
<a-button
type=
"primary"
>
导入文件
</a-button>
<a-button
type=
"primary"
>
导入文件
</a-button>
</
template
>
</
template
>
</BasicForm>
</BasicForm>
<div
<div
v-if=
"isGetMeta === 'true'"
style=
"width: 20%"
>
v-if=
"isGetMeta === 'true'"
style=
"width: 20%; background: #f4f7fa"
>
<BasicTree
<BasicTree
class=
"btStyle"
class=
"btStyle"
toolbar
toolbar
...
@@ -90,12 +87,11 @@
...
@@ -90,12 +87,11 @@
:treeData=
"tableTreeData"
:treeData=
"tableTreeData"
v-model:checkedKeys=
"myCheckedKeys"
v-model:checkedKeys=
"myCheckedKeys"
@
select=
"handleSelect"
@
select=
"handleSelect"
style=
"background-color: #f4f7fa !important"
>
>
<
template
#
headerTitle
>
<
template
#
headerTitle
>
<span
style=
"margin-left: 20px"
>
表名
</span>
<span
style=
"margin-left: 20px"
>
表名
</span>
<a
v-if=
"myCheckedKeys.length > 0"
@
click=
"handleDeplys"
style=
"margin-left: 2px"
<a
v-if=
"myCheckedKeys.length > 0"
@
click=
"handleDeplys"
style=
"margin-left: 2px"
>
>
批量配置
</a
批量配置
</a
>
>
<a
v-else
style=
"color: grey; margin-left: 2px"
>
批量配置
</a>
<a
v-else
style=
"color: grey; margin-left: 2px"
>
批量配置
</a>
</
template
>
</
template
>
...
@@ -113,7 +109,7 @@
...
@@ -113,7 +109,7 @@
<BasicForm
<BasicForm
v-if=
"isGetMeta === 'true'"
v-if=
"isGetMeta === 'true'"
@
register=
"registerLoadingStrategyForm"
@
register=
"registerLoadingStrategyForm"
style=
"
background-color: #f4f7fa !important
; width: 50%"
style=
"
padding-left: 20px
; width: 50%"
>
>
<
template
#
incrementalRepresentationColumnAlert
>
<
template
#
incrementalRepresentationColumnAlert
>
<Alert
<Alert
...
@@ -281,22 +277,23 @@
...
@@ -281,22 +277,23 @@
<!--左侧配置表-->
<!--左侧配置表-->
<
template
#
configurationTable
>
<
template
#
configurationTable
>
<!--配置表-->
<!--配置表-->
<BasicTable
@
register=
"registerConfigurationTable"
>
<BasicTable
title=
" "
@
register=
"registerConfigurationTable"
>
<template
#
toolbar
>
<template
#
headerTop
>
<div>
<div>
<!--展开按钮&配置按钮-->
<!--展开按钮&配置按钮-->
<div
style=
"margin-right: 600px"
>
<div
style=
"display: flex; gap: 5px; justify-content: space-between"
>
<!--展开按照序号批量选择按钮-->
<div
style=
"display: flex; gap: 5px"
>
<div
style=
"display: flex; gap: 5px"
>
<!--展开按照序号批量选择按钮-->
<a-button
@
click=
"handleConfigurationTableSelectClick"
>
<a-button
@
click=
"handleConfigurationTableSelectClick"
>
通过序号批量选择
通过序号批量选择
<Icon
v-if=
"unfoldConfigurationTableSelect"
icon=
"fe:arrow-up"
/>
<Icon
v-if=
"unfoldConfigurationTableSelect"
icon=
"fe:arrow-up"
/>
<Icon
v-else
icon=
"fe:arrow-down"
/>
<Icon
v-else
icon=
"fe:arrow-down"
/>
</a-button>
</a-button>
<a-input-search
style=
"width: 220px"
@
search=
"onSearch"
/>
<a-input-search
style=
"width: 220px"
@
search=
"onSearch"
/>
<!--配置按钮-->
</div>
<!--配置按钮-->
<div
style=
"display: flex; gap: 5px"
>
<a-button
<a-button
style=
"margin-left: 60px"
:disabled=
"getConfigurationTableRowSelection().selectedRowKeys
<
=
0
"
:disabled=
"getConfigurationTableRowSelection().selectedRowKeys
<
=
0
"
@
click=
"handlePartitionedDataProcessing"
@
click=
"handlePartitionedDataProcessing"
>
分区数据处理
>
分区数据处理
...
@@ -499,6 +496,11 @@
...
@@ -499,6 +496,11 @@
<BatchScaleNameMappingModal
@
register=
"registerBatchScaleNameMappingModal"
/>
<BatchScaleNameMappingModal
@
register=
"registerBatchScaleNameMappingModal"
/>
<ClearConfigurationModal
@
register=
"registerClearConfigurationModal"
/>
<ClearConfigurationModal
@
register=
"registerClearConfigurationModal"
/>
<ViewLogModal
@
register=
"registerViewLogsModal"
/>
<ViewLogModal
@
register=
"registerViewLogsModal"
/>
<NewFieldRuleModal
@
register=
"registerNewFieldRuleModal"
/>
<FieldNameMappingRuleModal
@
register=
"registerFieldNameMappingRuleModal"
/>
<FieldTypeMappingRuleModal
@
register=
"registerFieldTypeMappingRuleModal"
/>
<DataTransformationRuleModal
@
register=
"registerDataTransformationRuleModal"
/>
<SingleTableFieldMappingRuleModal
@
register=
"registerSingleTableFieldMappingRuleModal"
/>
</PageWrapper>
</PageWrapper>
</template>
</template>
<
script
lang=
"ts"
setup
>
<
script
lang=
"ts"
setup
>
...
@@ -527,7 +529,7 @@
...
@@ -527,7 +529,7 @@
tabularPresentationColumns
,
tabularPresentationColumns
,
compareColumns
,
compareColumns
,
tabularPresentationSearchFormSchema
,
tabularPresentationSearchFormSchema
,
compareSearchFormSchema
,
compareSearchFormSchema
,
noConfigurationColumns
,
}
from
'./offlineLoading.data'
;
}
from
'./offlineLoading.data'
;
import
Icon
from
'@/components/Icon/Icon.vue'
;
import
Icon
from
'@/components/Icon/Icon.vue'
;
import
{
useMessage
}
from
'@/hooks/web/useMessage'
;
import
{
useMessage
}
from
'@/hooks/web/useMessage'
;
...
@@ -564,6 +566,11 @@
...
@@ -564,6 +566,11 @@
import
VersionManageModal
from
'@/views/dataIntegration/dataLoading/dataEntryLake/versionManageModal.vue'
;
import
VersionManageModal
from
'@/views/dataIntegration/dataLoading/dataEntryLake/versionManageModal.vue'
;
import
RunOptionsModal
from
'@/views/dataIntegration/dataLoading/dataEntryLake/runOptionsModal.vue'
;
import
RunOptionsModal
from
'@/views/dataIntegration/dataLoading/dataEntryLake/runOptionsModal.vue'
;
import
ViewLogModal
from
'@/views/dataIntegration/dataLoading/dataEntryLake/ViewLogModal.vue'
;
import
ViewLogModal
from
'@/views/dataIntegration/dataLoading/dataEntryLake/ViewLogModal.vue'
;
import
NewFieldRuleModal
from
'@/views/dataIntegration/dataLoading/dataEntryLake/newFieldRuleModal.vue'
;
import
FieldNameMappingRuleModal
from
'@/views/dataIntegration/dataLoading/dataEntryLake/fieldNameMappingRuleModal.vue'
;
import
FieldTypeMappingRuleModal
from
'@/views/dataIntegration/dataLoading/dataEntryLake/fieldTypeMappingRuleModal.vue'
;
import
DataTransformationRuleModal
from
'@/views/dataIntegration/dataLoading/dataEntryLake/dataTransformationRuleModal.vue'
;
import
SingleTableFieldMappingRuleModal
from
'@/views/dataIntegration/dataLoading/dataEntryLake/singleTableFieldMappingRuleModal.vue'
;
const
route
=
useRoute
();
const
route
=
useRoute
();
const
emit
=
defineEmits
([
'success'
,
'register'
]);
const
emit
=
defineEmits
([
'success'
,
'register'
]);
...
@@ -594,7 +601,7 @@
...
@@ -594,7 +601,7 @@
let
customSQLFlag
=
ref
();
let
customSQLFlag
=
ref
();
let
isAutomaticTableConstructionFlag
=
ref
(
false
);
let
isAutomaticTableConstructionFlag
=
ref
(
false
);
let
isParsingSQL
=
ref
(
false
);
let
isParsingSQL
=
ref
(
false
);
let
isClearTargetTable
=
ref
(
false
);
let
isClearTargetTable
=
ref
(
'否'
);
const
isSave
=
ref
(
'false'
);
const
isSave
=
ref
(
'false'
);
const
isRun
=
ref
(
'false'
);
const
isRun
=
ref
(
'false'
);
const
key
=
ref
(
'1'
);
const
key
=
ref
(
'1'
);
...
@@ -632,6 +639,18 @@
...
@@ -632,6 +639,18 @@
},
},
];
];
const
[
registerNewFieldRuleModal
,
{
openModal
:
openNewFieldRuleModal
}]
=
useModal
();
const
[
registerFieldNameMappingRuleModal
,
{
openModal
:
openFieldNameMappingRuleModal
}]
=
useModal
();
const
[
registerFieldTypeMappingRuleModal
,
{
openModal
:
openFieldTypeMappingRuleModal
}]
=
useModal
();
const
[
registerDataTransformationRuleModal
,
{
openModal
:
openDataTransformationRuleModal
}]
=
useModal
();
const
[
registerSingleTableFieldMappingRuleModal
,
{
openModal
:
openSingleTableFieldMappingRuleModal
},
]
=
useModal
();
const
sourceSideConfigurationFormSchema
:
FormSchema
[]
=
[
const
sourceSideConfigurationFormSchema
:
FormSchema
[]
=
[
{
{
field
:
'loadType'
,
field
:
'loadType'
,
...
@@ -991,6 +1010,7 @@
...
@@ -991,6 +1010,7 @@
label
:
'允许最大并发数'
,
label
:
'允许最大并发数'
,
component
:
'Input'
,
component
:
'Input'
,
colProps
:
{
lg
:
12
,
md
:
12
},
colProps
:
{
lg
:
12
,
md
:
12
},
defaultValue
:
'10'
,
componentProps
:
{
componentProps
:
{
placeholder
:
''
,
placeholder
:
''
,
},
},
...
@@ -1045,6 +1065,13 @@
...
@@ -1045,6 +1065,13 @@
componentProps
:
({
formModel
,
formActionType
})
=>
({
componentProps
:
({
formModel
,
formActionType
})
=>
({
onChange
:
()
=>
{
onChange
:
()
=>
{
isAutomaticTableConstructionFlag
.
value
=
formModel
.
isAutomaticTableConstruction
===
'是'
;
isAutomaticTableConstructionFlag
.
value
=
formModel
.
isAutomaticTableConstruction
===
'是'
;
if
(
isAutomaticTableConstructionFlag
.
value
){
setColumns
(
configurationColumns
);
reload
();
}
else
{
setColumns
(
noConfigurationColumns
);
reload
();
}
// formActionType.updateSchema([{ field: 'quantityBasedAlert', ifShow: flag }]);
// formActionType.updateSchema([{ field: 'quantityBasedAlert', ifShow: flag }]);
// formActionType.updateSchema([{ field: 'conditionBasedAlert', ifShow: !flag }]);
// formActionType.updateSchema([{ field: 'conditionBasedAlert', ifShow: !flag }]);
},
},
...
@@ -1318,7 +1345,7 @@
...
@@ -1318,7 +1345,7 @@
});
});
const
[
registerLoadingStrategyForm
,
{
updateSchema
,
setFieldsValue
}]
=
useForm
({
const
[
registerLoadingStrategyForm
,
{
updateSchema
,
setFieldsValue
}]
=
useForm
({
labelWidth
:
1
8
0
,
labelWidth
:
1
2
0
,
labelAlign
:
'left'
,
labelAlign
:
'left'
,
baseColProps
:
{
lg
:
24
,
md
:
24
},
baseColProps
:
{
lg
:
24
,
md
:
24
},
schemas
:
LoadingStrategyFormSchema
,
schemas
:
LoadingStrategyFormSchema
,
...
@@ -1480,6 +1507,7 @@
...
@@ -1480,6 +1507,7 @@
getDataSource
,
getDataSource
,
getRowSelection
:
getConfigurationTableRowSelection
,
getRowSelection
:
getConfigurationTableRowSelection
,
setSelectedRowKeys
,
setSelectedRowKeys
,
setColumns
,
},
},
]
=
useTable
({
]
=
useTable
({
api
:
async
()
=>
{
api
:
async
()
=>
{
...
@@ -1499,7 +1527,7 @@
...
@@ -1499,7 +1527,7 @@
rowSelection
:
true
,
rowSelection
:
true
,
striped
:
false
,
striped
:
false
,
customRow
:
configurationTableOnClick
,
customRow
:
configurationTableOnClick
,
columns
:
c
onfigurationColumns
,
columns
:
noC
onfigurationColumns
,
showTableSetting
:
false
,
showTableSetting
:
false
,
showIndexColumn
:
true
,
showIndexColumn
:
true
,
bordered
:
false
,
bordered
:
false
,
...
@@ -1884,11 +1912,42 @@
...
@@ -1884,11 +1912,42 @@
}
}
function
handleEdit
(
record
)
{
function
handleEdit
(
record
)
{
createMessage
.
success
(
'编辑:'
+
record
);
switch
(
record
.
ruleName
)
{
case
'[全局] 新增字段规则'
:
console
.
log
(
'Handling new field rule'
);
openNewFieldRuleModal
(
true
);
break
;
case
'[全局] 字段名称映射规则'
:
console
.
log
(
'Handling field name mapping rule'
);
openFieldNameMappingRuleModal
(
true
);
break
;
case
'[全局] 字段类型映射规则'
:
console
.
log
(
'Handling field type mapping rule'
);
openFieldTypeMappingRuleModal
(
true
);
break
;
case
'数据转换规则'
:
console
.
log
(
'Handling data transformation rule'
);
openDataTransformationRuleModal
(
true
);
break
;
case
'[单表] 字段映射规则'
:
console
.
log
(
'Handling single table field mapping rule'
);
openSingleTableFieldMappingRuleModal
(
true
);
break
;
default
:
console
.
log
(
'Unknown rule type'
);
}
// createMessage.success('编辑:' + record);
}
}
function
handleDeleteRule
(
record
)
{
function
handleDeleteRule
(
record
)
{
createMessage
.
success
(
'删除规则成功'
+
record
);
createConfirm
({
iconType
:
'warning'
,
title
:
'删除规则'
,
content
:
'是否确认删除规则?'
,
onOk
()
{
createMessage
.
success
(
'删除规则成功'
);
},
});
}
}
function
handleDeleteRules
()
{
function
handleDeleteRules
()
{
...
@@ -2163,12 +2222,11 @@
...
@@ -2163,12 +2222,11 @@
reloadOtherConfigurationTable
();
reloadOtherConfigurationTable
();
}
}
</
script
>
</
script
>
<
style
lang=
"
sc
ss"
scoped
>
<
style
lang=
"
le
ss"
scoped
>
.content-padding {
.content-padding {
background-color: white;
background-color: white;
}
}
.modal_top {
.modal_top {
padding
:
0
0
20px
0
;
display: flex;
display: flex;
align-items: center;
align-items: center;
.title {
.title {
...
@@ -2189,4 +2247,16 @@
...
@@ -2189,4 +2247,16 @@
.selected-row {
.selected-row {
background-color: #5cb3ff; /* 可以根据需要调整颜色 */
background-color: #5cb3ff; /* 可以根据需要调整颜色 */
}
}
:deep(.vben-basic-table-form-container) {
padding: 0;
}
:deep(.ant-page-header) {
padding: 5px 24px;
}
:deep(.ant-col-lg-12) {
padding: 5px;
}
</
style
>
</
style
>
src/views/dataIntegration/dataLoading/dataEntryLake/fieldNameMappingRuleModal.vue
View file @
6436fa85
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
<BasicModal
<BasicModal
v-bind=
"$attrs"
v-bind=
"$attrs"
@
register=
"registerModal"
@
register=
"registerModal"
title=
"全局
新增字段
规则"
title=
"全局
字段名称映射
规则"
@
ok=
"handleSubmit"
@
ok=
"handleSubmit"
style=
"width:
35%"
width=
"
35%"
minHeight=
"50"
minHeight=
"50"
>
>
<BasicForm
@
register=
"registerForm"
>
<BasicForm
@
register=
"registerForm"
>
...
...
src/views/dataIntegration/dataLoading/dataEntryLake/fieldTypeMappingRuleModal.vue
View file @
6436fa85
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<BasicModal
<BasicModal
v-bind=
"$attrs"
v-bind=
"$attrs"
@
register=
"registerModal"
@
register=
"registerModal"
title=
"全局
新增字段
规则"
title=
"全局
字段类型映射
规则"
@
ok=
"handleSubmit"
@
ok=
"handleSubmit"
minHeight=
"50"
minHeight=
"50"
>
>
...
...
src/views/dataIntegration/dataLoading/dataEntryLake/offlineLoading.data.ts
View file @
6436fa85
...
@@ -48,6 +48,29 @@ export const configurationColumns: BasicColumn[] = [
...
@@ -48,6 +48,29 @@ export const configurationColumns: BasicColumn[] = [
width
:
90
,
width
:
90
,
},
},
];
];
export
const
noConfigurationColumns
:
BasicColumn
[]
=
[
{
title
:
'源端'
,
dataIndex
:
'sourceTableName'
,
},
{
title
:
'目标端'
,
dataIndex
:
'targetTableName'
,
edit
:
true
,
},
{
title
:
'分区数据配置'
,
dataIndex
:
'partitionQuantityConfiguration'
,
slots
:
{
customRender
:
'partitionQuantityConfiguration'
},
width
:
90
,
},
{
title
:
'清理配置'
,
dataIndex
:
'clearConfiguration'
,
slots
:
{
customRender
:
'clearConfiguration'
},
width
:
90
,
},
];
export
const
partitionKeyColumns
:
BasicColumn
[]
=
[
export
const
partitionKeyColumns
:
BasicColumn
[]
=
[
{
{
...
@@ -157,6 +180,18 @@ export const fieldNameMappingRuleColumns: BasicColumn[] = [
...
@@ -157,6 +180,18 @@ export const fieldNameMappingRuleColumns: BasicColumn[] = [
},
},
];
];
export
const
batchScaleNameMappingColumns
:
BasicColumn
[]
=
[
{
title
:
'源表名'
,
dataIndex
:
'tableName'
,
labelWidth
:
160
,
},
{
title
:
'目标表名'
,
dataIndex
:
'targetTableName'
,
},
];
export
const
singleSourceFieldNameMappingRuleColumns
:
BasicColumn
[]
=
[
export
const
singleSourceFieldNameMappingRuleColumns
:
BasicColumn
[]
=
[
{
{
title
:
'字段名'
,
title
:
'字段名'
,
...
...
src/views/dataIntegration/dataLoading/dataEntryLake/singleTableFieldMappingRuleModal.vue
View file @
6436fa85
...
@@ -2,10 +2,10 @@
...
@@ -2,10 +2,10 @@
<BasicModal
<BasicModal
v-bind=
"$attrs"
v-bind=
"$attrs"
@
register=
"registerModal"
@
register=
"registerModal"
title=
"
全局新增字段
规则"
title=
"
单表字段映射
规则"
@
ok=
"handleSubmit"
@
ok=
"handleSubmit"
style=
"width: 35%"
minHeight=
"50"
minHeight=
"50"
width=
"50%"
>
>
<BasicForm
@
register=
"registerForm"
>
<BasicForm
@
register=
"registerForm"
>
<template
#
mappingTable
>
<template
#
mappingTable
>
...
...
src/views/dataWarehousePlanning/physicalModel/CreateHistory.vue
View file @
6436fa85
<
template
>
<
template
>
<PageWrapper
dense
contentFullHeight
fixedHeight
contentClass=
"flex"
>
<PageWrapper
title=
"建表记录"
dense
contentFullHeight
fixedHeight
contentClass=
"flex"
@
back=
"handleGoBack"
>
<BasicTable
@
register=
"registerTable"
:searchInfo=
"searchInfo"
>
<BasicTable
@
register=
"registerTable"
:searchInfo=
"searchInfo"
>
<template
#
bodyCell=
"
{ column, record }">
<template
#
bodyCell=
"
{ column, record }">
<template
v-if=
"column.key === 'action'"
>
<template
v-if=
"column.key === 'action'"
>
...
@@ -124,6 +131,11 @@
...
@@ -124,6 +131,11 @@
});
});
}
}
const
router
=
useRouter
();
function
handleGoBack
()
{
router
.
go
(
-
1
);
}
onMounted
(()
=>
{
onMounted
(()
=>
{
tableData
.
value
=
TreeData
;
tableData
.
value
=
TreeData
;
const
path
=
route
.
path
;
const
path
=
route
.
path
;
...
...
src/views/dataWarehousePlanning/physicalModel/modelDetail/assetRelation/assetER.vue
View file @
6436fa85
<
template
>
<
template
>
<PageWrapper
title=
"资产关系图谱"
contentBackground
headerSticky
>
<PageWrapper
title=
"资产关系图谱"
contentBackground
headerSticky
@
back=
"handleGoBack"
>
<template
#
extra
>
<template
#
extra
>
<a-button
type=
"primary"
>
导出
</a-button>
<a-button
type=
"primary"
>
导出
</a-button>
<a-button
type=
"primary"
>
刷新
</a-button>
<a-button
type=
"primary"
>
刷新
</a-button>
<a-button
type=
"primary"
>
全屏
</a-button>
<a-button
type=
"primary"
>
全屏
</a-button>
<a-button
type=
"primary"
>
退出
</a-button>
<a-button
type=
"primary"
>
退出
</a-button>
</
template
>
</
template
>
<img
src=
"../../../../../assets/images/assetER.png"
style=
"width: 100%"
/>
<img
src=
"../../../../../assets/images/assetER.png"
style=
"width: 100%"
/>
</PageWrapper>
</PageWrapper>
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
import
CrossModel
from
'@/views/dataWarehousePlanning/physicalModel/modelDetail/modelRelationship/crossModel.vue'
;
import
CrossModel
from
'@/views/dataWarehousePlanning/physicalModel/modelDetail/modelRelationship/crossModel.vue'
;
import
{
useModal
}
from
'@/components/Modal'
;
import
{
useModal
}
from
'@/components/Modal'
;
import
{
ref
}
from
'vue'
;
import
{
ref
}
from
'vue'
;
import
{
useRouter
}
from
'vue-router'
;
// 模态框
// 模态框
const
[
crossModal
,
{
openModal
}]
=
useModal
();
const
[
crossModal
,
{
openModal
}]
=
useModal
();
...
@@ -30,6 +31,11 @@
...
@@ -30,6 +31,11 @@
modelLevel
.
value
=
'0'
;
modelLevel
.
value
=
'0'
;
}
}
}
}
const
router
=
useRouter
();
function
handleGoBack
()
{
router
.
go
(
-
1
);
}
function
handleAdd
()
{
function
handleAdd
()
{
openModal
(
true
);
openModal
(
true
);
}
}
...
...
src/views/dataWarehousePlanning/physicalModel/modelDetail/index.vue
View file @
6436fa85
<
template
>
<
template
>
<PageWrapper
:title=
"modelName"
contentBackground
headerSticky
>
<PageWrapper
:title=
"modelName"
contentBackground
headerSticky
@
back=
"handleGoBack"
>
<template
#
extra
>
<template
#
extra
>
<a-button
type=
"primary"
v-if=
"!editFlag"
@
click=
"handleCreateTable"
>
自动建表
</a-button>
<a-button
type=
"primary"
v-if=
"!editFlag"
@
click=
"handleCreateTable"
>
自动建表
</a-button>
<a-button
type=
"primary"
v-if=
"!editFlag"
@
click=
"handleVersion"
>
版本管理
</a-button>
<a-button
type=
"primary"
v-if=
"!editFlag"
@
click=
"handleVersion"
>
版本管理
</a-button>
...
@@ -235,6 +235,7 @@
...
@@ -235,6 +235,7 @@
import
{
RollbackOutlined
}
from
'@ant-design/icons-vue'
;
import
{
RollbackOutlined
}
from
'@ant-design/icons-vue'
;
import
FailModal
from
'@/views/dataWarehousePlanning/physicalModel/modelDetail/failModal.vue'
;
import
FailModal
from
'@/views/dataWarehousePlanning/physicalModel/modelDetail/failModal.vue'
;
const
router
=
useRouter
();
const
[
registerModal
,
{
openModal
}]
=
useModal
();
const
[
registerModal
,
{
openModal
}]
=
useModal
();
const
[
registerDebugModal
,
{
openModal
:
openDebugModal
}]
=
useModal
();
const
[
registerDebugModal
,
{
openModal
:
openDebugModal
}]
=
useModal
();
const
[
registerCreateModal
,
{
openModal
:
openCreateModal
}]
=
useModal
();
const
[
registerCreateModal
,
{
openModal
:
openCreateModal
}]
=
useModal
();
...
@@ -410,6 +411,10 @@
...
@@ -410,6 +411,10 @@
}
}
}
}
function
handleGoBack
()
{
router
.
go
(
-
1
);
}
/** 版本管理*/
/** 版本管理*/
function
handleVersion
()
{
function
handleVersion
()
{
openVersionModal
(
true
,
{
openVersionModal
(
true
,
{
...
...
src/views/dataWarehousePlanning/physicalModel/modelDetail/modelRelationship/relateImage.vue
View file @
6436fa85
<
template
>
<
template
>
<PageWrapper
title=
"模型关系"
contentBackground
headerSticky
>
<PageWrapper
title=
"模型关系"
contentBackground
headerSticky
@
back=
"handleGoBack"
>
<template
#
extra
>
<template
#
extra
>
<a-button
type=
"primary"
>
刷新
</a-button>
<a-button
type=
"primary"
>
刷新
</a-button>
<a-button
type=
"primary"
>
全屏
</a-button>
<a-button
type=
"primary"
>
全屏
</a-button>
...
@@ -57,6 +57,7 @@
...
@@ -57,6 +57,7 @@
import
CrossModel
from
'@/views/dataWarehousePlanning/physicalModel/modelDetail/modelRelationship/crossModel.vue'
;
import
CrossModel
from
'@/views/dataWarehousePlanning/physicalModel/modelDetail/modelRelationship/crossModel.vue'
;
import
{
useModal
}
from
'@/components/Modal'
;
import
{
useModal
}
from
'@/components/Modal'
;
import
{
ref
}
from
'vue'
;
import
{
ref
}
from
'vue'
;
import
{
useRouter
}
from
'vue-router'
;
// 模态框
// 模态框
const
[
crossModal
,
{
openModal
}]
=
useModal
();
const
[
crossModal
,
{
openModal
}]
=
useModal
();
...
@@ -72,6 +73,11 @@
...
@@ -72,6 +73,11 @@
function
handleAdd
()
{
function
handleAdd
()
{
openModal
(
true
);
openModal
(
true
);
}
}
const
router
=
useRouter
();
function
handleGoBack
()
{
router
.
go
(
-
1
);
}
// const options = [
// const options = [
// {
// {
// label: '全部实体',
// label: '全部实体',
...
...
src/views/dataWarehousePlanning/physicalModel/modelDetail/versionIndex.vue
View file @
6436fa85
<
template
>
<
template
>
<PageWrapper
title=
"版本对比"
contentBackground
headerSticky
>
<PageWrapper
title=
"版本对比"
contentBackground
headerSticky
@
back=
"handleGoBack"
>
<template
#
extra
>
<template
#
extra
>
<a-button
type=
"primary"
>
导出对比结果
</a-button>
<a-button
type=
"primary"
>
导出对比结果
</a-button>
<a-button
type=
"primary"
@
click=
"handleCancel"
>
取消对比
</a-button>
<a-button
type=
"primary"
@
click=
"handleCancel"
>
取消对比
</a-button>
...
@@ -33,6 +33,7 @@
...
@@ -33,6 +33,7 @@
import
Detail
from
'@/views/dataWarehousePlanning/physicalModel/upload/detail.vue'
;
import
Detail
from
'@/views/dataWarehousePlanning/physicalModel/upload/detail.vue'
;
import
{
useRouter
}
from
'vue-router'
;
import
{
useRouter
}
from
'vue-router'
;
const
router
=
useRouter
();
defineOptions
({
name
:
'AccountManagement'
});
defineOptions
({
name
:
'AccountManagement'
});
const
{
push
}
=
useRouter
();
const
{
push
}
=
useRouter
();
const
basicVersion
=
ref
(
'V1.0 2023-06-15 15:34:40'
);
const
basicVersion
=
ref
(
'V1.0 2023-06-15 15:34:40'
);
...
@@ -53,6 +54,9 @@
...
@@ -53,6 +54,9 @@
path
:
'/dataWarehousePlanning/physicalModel/detail'
,
path
:
'/dataWarehousePlanning/physicalModel/detail'
,
});
});
}
}
function
handleGoBack
()
{
router
.
go
(
-
1
);
}
</
script
>
</
script
>
<
style
scoped
></
style
>
<
style
scoped
></
style
>
src/views/dataWarehousePlanning/physicalModel/upload/index.vue
View file @
6436fa85
<
template
>
<
template
>
<PageWrapper
title=
"申请发布"
contentBackground
headerSticky
>
<PageWrapper
title=
"申请发布"
contentBackground
headerSticky
@
back=
"handleGoBack"
>
<template
#
extra
>
<template
#
extra
>
<a-button
type=
"primary"
@
click=
"handleCancel"
>
取消
</a-button>
<a-button
type=
"primary"
@
click=
"handleCancel"
>
取消
</a-button>
<a-button
type=
"primary"
@
click=
"handleSubmit"
>
提交申请
</a-button>
<a-button
type=
"primary"
@
click=
"handleSubmit"
>
提交申请
</a-button>
</
template
>
</
template
>
<
template
#
footer
>
<
template
#
footer
>
<span
class=
"table-title"
style=
"font-size: 15px; margin: 12px 10px 0;font-weight: 550"
>
申请信息
</span>
<span
class=
"table-title"
style=
"font-size: 15px; margin: 12px 10px 0; font-weight: 550"
>
申请信息
</span
>
<BasicForm
@
register=
"registerForm"
>
<BasicForm
@
register=
"registerForm"
>
<template
#
person=
"
{ model, field }">
<template
#
person=
"
{ model, field }">
{{
model
[
field
]
}}
{{
model
[
field
]
}}
...
@@ -17,7 +19,9 @@
...
@@ -17,7 +19,9 @@
{{
model
[
field
]
}}
{{
model
[
field
]
}}
</
template
>
</
template
>
</BasicForm>
</BasicForm>
<span
class=
"table-title"
style=
"font-size: 15px; margin: 12px 10px 0;font-weight: 550"
>
数据模型详情
</span>
<span
class=
"table-title"
style=
"font-size: 15px; margin: 12px 10px 0; font-weight: 550"
>
数据模型详情
</span
>
<div
style=
"display: flex"
>
<div
style=
"display: flex"
>
<BasicTable
class=
"w-1/5"
@
register=
"registerTable"
:searchInfo=
"searchInfo"
/>
<BasicTable
class=
"w-1/5"
@
register=
"registerTable"
:searchInfo=
"searchInfo"
/>
<div
class=
"w-4/5"
>
<div
class=
"w-4/5"
>
...
@@ -79,6 +83,9 @@
...
@@ -79,6 +83,9 @@
value
:
'V1.0 2023-06-15 15:34:40'
,
value
:
'V1.0 2023-06-15 15:34:40'
,
},
},
]);
]);
function
handleGoBack
()
{
router
.
go
(
-
1
);
}
function
handleCancel
()
{
function
handleCancel
()
{
router
.
go
(
-
1
);
router
.
go
(
-
1
);
}
}
...
...
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