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
9cefbde2
Commit
9cefbde2
authored
Nov 14, 2024
by
罗林杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改血缘
parent
53b915d2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
239 additions
and
28 deletions
+239
-28
index.ts
src/router/routes/index.ts
+25
-0
index.vue
src/views/kinship/kinshipParse/index.vue
+151
-28
kinshipParseData.ts
src/views/kinship/kinshipParse/kinshipParseData.ts
+16
-0
parse.vue
src/views/kinship/kinshipParse/parse.vue
+47
-0
No files found.
src/router/routes/index.ts
View file @
9cefbde2
...
@@ -433,6 +433,30 @@ export const QualityRuleRoute: AppRouteRecordRaw = {
...
@@ -433,6 +433,30 @@ export const QualityRuleRoute: AppRouteRecordRaw = {
},
},
],
],
};
};
/**血缘解析*/
export
const
kinshipParseRoute
:
AppRouteRecordRaw
=
{
path
:
'/kinship/kinshipParse'
,
name
:
'kinshipParse'
,
component
:
LAYOUT
,
meta
:
{
title
:
'血缘解析'
,
icon
:
''
,
hidden
:
true
,
currentActiveMenu
:
'/kinship/kinshipParse'
,
},
children
:
[
{
path
:
'parse'
,
name
:
'Parse'
,
component
:
()
=>
import
(
'@/views/kinship/kinshipParse/parse.vue'
),
meta
:
{
title
:
'脚本解析'
,
icon
:
''
,
},
},
],
};
// Basic routing without permission
// Basic routing without permission
// 没有权限要求的基本路由
// 没有权限要求的基本路由
export
const
basicRoutes
=
[
export
const
basicRoutes
=
[
...
@@ -445,6 +469,7 @@ export const basicRoutes = [
...
@@ -445,6 +469,7 @@ export const basicRoutes = [
ModelRoute
,
ModelRoute
,
DataSourceRoute
,
DataSourceRoute
,
DataStandardRoute
,
DataStandardRoute
,
kinshipParseRoute
,
// RootRoute,
// RootRoute,
...
mainOutRoutes
,
...
mainOutRoutes
,
REDIRECT_ROUTE
,
REDIRECT_ROUTE
,
...
...
src/views/kinship/kinshipParse/index.vue
View file @
9cefbde2
<
template
>
<
template
>
<PageWrapper
title=
"血缘解析"
class=
"content-padding"
contentBackground
>
<PageWrapper
title=
"血缘解析"
class=
"content-padding"
contentBackground
>
<div
class=
"step-form-form"
>
<template
#
footer
>
<Steps
:current=
"current"
>
<a-tabs
default-active-key=
"1"
v-model:activeKey=
"currentKey"
>
<Steps
.
Step
title=
"上传解析文件"
/>
<a-tab-pane
key=
"1"
tab=
"脚本解析"
/>
<Steps
.
Step
title=
"编辑血缘"
/>
<a-tab-pane
key=
"2"
tab=
"血缘映射"
/>
</Steps>
</a-tabs>
</
template
>
<div
class=
"pt-4 m-4 desc-wrap"
>
<
template
v-if=
"currentKey == '1'"
>
<div
:class=
"`$
{prefixCls}__content`">
<List>
<Row
:gutter=
"16"
>
<template
v-for=
"item in cardData"
:key=
"item.title"
>
<Col
:span=
"6"
>
<List
.
Item
>
<Card
:hoverable=
"true"
:class=
"`$
{prefixCls}__card`" @click="handleParse">
<div>
<Icon
class=
"icon"
v-if=
"item.icon"
:icon=
"item.icon"
:color=
"item.color"
/>
<div
:class=
"`$
{prefixCls}__card-title`">
{{
item
.
title
}}
</div>
</div>
<div
:class=
"`$
{prefixCls}__card-detail`">
适用版本:
{{
item
.
version
}}
</div>
<div
:class=
"`$
{prefixCls}__card-detail`"> 描述:
{{
item
.
remark
}}
</div>
</Card>
</List
.Item
>
</Col>
</
template
>
</Row>
</List>
</div>
</template>
<
template
v-if=
"currentKey == '2'"
>
<BasicTable
@
register=
"registerHistoryTable"
>
<template
#
bodyCell=
"
{ column, record }">
<template
v-if=
"column.key === 'type'"
>
<Tag
color=
"error"
v-if=
"record.type === '0'"
>
导入失败
</Tag>
</
template
>
<
template
v-if=
"column.key === 'type'"
>
<Tag
color=
"success"
v-if=
"record.type === '1'"
>
导入成功
</Tag>
</
template
>
<
template
v-if=
"column.key === 'action'"
>
<TableAction
:actions=
"[
{
icon: 'clarity:download-line',
label: '',
onClick: handleDownload.bind(null),
},
{
icon: 'ant-design:delete-outlined',
color: 'error',
label: '',
popConfirm: {
title: '是否确认删除',
placement: 'left',
confirm: handleDelete.bind(null),
},
},
]"
/>
</
template
>
</template>
</BasicTable>
</template>
</div>
</div>
<Step1
@
next=
"handleStep1Next"
v-show=
"current === 0"
/>
<Step2
@
prev=
"handleStepPrev"
v-show=
"current === 1"
v-if=
"state.initStep2"
/>
</PageWrapper>
</PageWrapper>
</template>
</template>
<
script
lang=
"ts"
setup
>
<
script
lang=
"ts"
setup
>
import
{
reactive
,
ref
}
from
'vue'
;
import
{
onMounted
,
ref
}
from
'vue'
;
import
{
PageWrapper
}
from
'@/components/Page'
;
import
{
PageWrapper
}
from
'@/components/Page'
;
import
{
Steps
}
from
'ant-design-vue'
;
import
{
Card
,
Col
,
List
,
Row
,
Tabs
,
Tag
}
from
'ant-design-vue'
;
import
Step1
from
'./Step1.vue'
;
import
{
BasicTable
,
TableAction
,
useTable
}
from
'@/components/Table'
;
import
Step2
from
'./Step2.vue'
;
import
{
useMessage
}
from
'@/hooks/web/useMessage'
;
import
{
historyColumns
,
SearchFormSchema
}
from
'@/views/kinship/kinshipEdit/data'
;
import
{
editData
,
historyData
}
from
'@/views/kinship/kinshipEdit/kinshipEditData'
;
import
{
cardData
}
from
'@/views/kinship/kinshipParse/kinshipParseData'
;
import
Icon
from
'@/components/Icon/Icon.vue'
;
import
{
router
}
from
"@/router"
;
defineOptions
({
name
:
'AccountDetail'
});
defineOptions
({
name
:
'AccountDetail'
});
const
current
=
ref
(
0
);
const
tableData
=
ref
([]);
const
state
=
reactive
({
const
{
createMessage
,
createConfirm
}
=
useMessage
();
initStep2
:
false
,
const
ATabs
=
Tabs
;
const
ATabPane
=
Tabs
.
TabPane
;
const
currentKey
=
ref
(
'1'
);
const
prefixCls
=
'list-card'
;
const
[
registerHistoryTable
]
=
useTable
({
dataSource
:
historyData
,
columns
:
historyColumns
,
pagination
:
true
,
showIndexColumn
:
false
,
useSearchForm
:
true
,
formConfig
:
{
labelWidth
:
120
,
schemas
:
SearchFormSchema
,
autoSubmitOnEnter
:
true
,
},
actionColumn
:
{
width
:
150
,
title
:
'操作'
,
dataIndex
:
'action'
,
},
scroll
:
{
y
:
400
},
});
});
function
handle
Step1Next
(
step1Values
:
any
)
{
function
handle
Parse
(
)
{
current
.
value
++
;
router
.
push
({
state
.
initStep2
=
true
;
path
:
'/kinship/kinshipParse/parse'
,
console
.
log
(
step1Values
);
}
);
}
}
function
handleDownload
()
{
function
handleStepPrev
()
{
createMessage
.
success
(
'下载成功'
);
current
.
value
--
;
}
function
handleDelete
()
{
createMessage
.
success
(
'删除成功'
);
}
}
onMounted
(()
=>
{
tableData
.
value
=
editData
;
});
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
.step-form-content {
.list-card {
padding: 24px;
&__link {
background-color: @component-background;
margin-top: 10px;
}
font-size: 14px;
a {
margin-right: 30px;
}
span {
margin-left: 5px;
}
}
&__card {
width: 100%;
margin-bottom: -8px;
.ant-card-body {
padding: 16px;
}
&-title {
margin-bottom: 5px;
color: @text-color-base;
font-size: 16px;
font-weight: 500;
.icon {
margin-top: -5px;
margin-right: 10px;
font-size: 38px !important;
}
}
.step-form-form {
&-detail {
width: 750px;
padding-top: 10px;
margin: 0 auto;
color: @text-color-secondary;
font-size: 14px;
}
}
}
}
</
style
>
</
style
>
src/views/kinship/kinshipParse/kinshipParseData.ts
View file @
9cefbde2
...
@@ -42,3 +42,19 @@ export const editData: any[] = [
...
@@ -42,3 +42,19 @@ export const editData: any[] = [
status
:
'1'
,
status
:
'1'
,
},
},
];
];
export
const
cardData
:
any
[]
=
[
{
title
:
'KETTLE脚本解析'
,
version
:
'kettle-1.0'
,
remark
:
'kettle'
,
color
:
'blue'
,
icon
:
'ant-design:file-text-outlined'
,
},
{
title
:
'ORACLE_SQL脚本解析'
,
version
:
'oracle_sql_1.0'
,
remark
:
'oracle_sql'
,
color
:
'blue'
,
icon
:
'ant-design:file-text-outlined'
,
},
];
src/views/kinship/kinshipParse/parse.vue
0 → 100644
View file @
9cefbde2
<
template
>
<PageWrapper
title=
"血缘解析"
class=
"content-padding"
contentBackground
>
<div
class=
"step-form-form"
>
<Steps
:current=
"current"
>
<Steps
.
Step
title=
"上传解析文件"
/>
<Steps
.
Step
title=
"编辑血缘"
/>
</Steps>
</div>
<Step1
@
next=
"handleStep1Next"
v-show=
"current === 0"
/>
<Step2
@
prev=
"handleStepPrev"
v-show=
"current === 1"
v-if=
"state.initStep2"
/>
</PageWrapper>
</
template
>
<
script
lang=
"ts"
setup
>
import
{
reactive
,
ref
}
from
'vue'
;
import
{
PageWrapper
}
from
'@/components/Page'
;
import
{
Steps
}
from
'ant-design-vue'
;
import
Step1
from
'./Step1.vue'
;
import
Step2
from
'./Step2.vue'
;
defineOptions
({
name
:
'AccountDetail'
});
const
current
=
ref
(
0
);
const
state
=
reactive
({
initStep2
:
false
,
});
function
handleStep1Next
(
step1Values
:
any
)
{
current
.
value
++
;
state
.
initStep2
=
true
;
console
.
log
(
step1Values
);
}
function
handleStepPrev
()
{
current
.
value
--
;
}
</
script
>
<
style
lang=
"less"
scoped
>
.step-form-content {
padding: 24px;
background-color: @component-background;
}
.step-form-form {
width: 750px;
margin: 0 auto;
}
</
style
>
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