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
2b890877
Commit
2b890877
authored
Nov 23, 2024
by
LiXuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
任务流设计-任务设计
parent
2157c1c1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
62 additions
and
7 deletions
+62
-7
design.data.ts
src/views/taskScheduling/taskFlowDesign/design.data.ts
+30
-0
taskModel.vue
src/views/taskScheduling/taskFlowDesign/taskModel.vue
+32
-7
No files found.
src/views/taskScheduling/taskFlowDesign/design.data.ts
View file @
2b890877
...
...
@@ -600,6 +600,36 @@ export const dataLoadFormSchema: FormSchema[] = [
},
},
];
export
const
dataSyncFormSchema
:
FormSchema
[]
=
[
{
label
:
'数据同步'
,
field
:
'path'
,
component
:
'Select'
,
componentProps
:
{
options
:
[
{
label
:
'/数据同步'
,
value
:
'/数据同步'
,
},
],
},
},
];
export
const
dataIndexFormSchema
:
FormSchema
[]
=
[
{
label
:
'数据指标'
,
field
:
'path'
,
component
:
'Select'
,
componentProps
:
{
options
:
[
{
label
:
'/数据指标'
,
value
:
'/数据指标'
,
},
],
},
},
];
export
const
labelCheckFormSchema
:
FormSchema
[]
=
[
{
label
:
'落标检查'
,
...
...
src/views/taskScheduling/taskFlowDesign/taskModel.vue
View file @
2b890877
...
...
@@ -101,6 +101,12 @@
<TabPane
v-if=
"type === '7'"
key=
"8"
tab=
"数据加载任务"
>
<BasicForm
@
register=
"dataLoadForm"
/>
</TabPane>
<TabPane
v-if=
"type === '8'"
key=
"8-1"
tab=
"数据同步任务"
>
<BasicForm
@
register=
"dataSyncForm"
/>
</TabPane>
<TabPane
v-if=
"type === '10'"
key=
"8-2"
tab=
"数据指标任务"
>
<BasicForm
@
register=
"dataIndexForm"
/>
</TabPane>
<TabPane
v-if=
"type === '9'"
key=
"9"
tab=
"数据质量任务"
>
<BasicForm
@
register=
"dataQualityForm"
>
<
template
#
perc=
"{ field, model }"
>
...
...
@@ -139,16 +145,16 @@
</
template
>
</BasicForm>
</TabPane>
<TabPane
key=
"100"
tab=
"任务参数"
>
<TabPane
v-if=
"type !== '7' && type !== '8' && type !== '10'"
key=
"100"
tab=
"任务参数"
>
<!--嵌套任务流任务区别部分-->
<div
v-if=
"type === '11'"
>
<CheckboxGroup
style=
"margin-left: 15px"
:options=
"embedConfigOptions"
/><InfoCircleOutlined
/>
</
div>
<div
>
<
a-button
type=
"link"
>
查看内置函数
</a-button
>
<
div>
<a-button
type=
"link"
>
查看内置函数
</a-button
>
<
/div
>
</div>
<BasicTable
@
register=
"configTable"
:searchInfo=
"searchInfo"
>
<
template
#
name=
"{ text, record }"
>
...
...
@@ -172,7 +178,7 @@
</BasicTable>
</TabPane>
<!--数据加载任务的任务参数-->
<TabPane
v-if=
"type === '7'"
key=
"101"
tab=
"任务参数"
>
<TabPane
v-if=
"type === '7'
|| type === '8' || type === '10'
"
key=
"101"
tab=
"任务参数"
>
<BasicTable
@
register=
"dataLoadConfigTable"
:searchInfo=
"searchInfo"
>
<
template
#
toolbar
>
<div
style=
"flex: 1; display: flex; justify-content: space-between"
>
...
...
@@ -212,9 +218,10 @@
import
{
BasicModal
,
useModalInner
}
from
'@/components/Modal'
;
import
{
BasicForm
,
useForm
}
from
'@/components/Form'
;
import
{
dataIndexFormSchema
,
dataLoadConfigColumn
,
dataLoadFormSchema
,
dataQualityFormSchema
,
delayFormSchema
,
dataQualityFormSchema
,
d
ataSyncFormSchema
,
d
elayFormSchema
,
embedFlowFormSchema
,
infoFormSchema
,
javaFormSchema
,
...
...
@@ -265,7 +272,7 @@
}
//初始化弹框
const
[
registerModal
,
{
setModalProps
,
closeModal
}]
=
useModalInner
(
async
(
data
)
=>
{
resetConfigTable
();
//
resetConfigTable();
activeKey
.
value
=
'1'
;
setModalProps
({
confirmLoading
:
false
});
type
.
value
=
data
?.
type
;
...
...
@@ -392,6 +399,24 @@
span
:
23
,
},
});
const
[
dataSyncForm
,
{}]
=
useForm
({
labelWidth
:
100
,
baseColProps
:
{
lg
:
24
,
md
:
24
},
schemas
:
dataSyncFormSchema
,
showActionButtonGroup
:
false
,
actionColOptions
:
{
span
:
23
,
},
});
const
[
dataIndexForm
,
{}]
=
useForm
({
labelWidth
:
100
,
baseColProps
:
{
lg
:
24
,
md
:
24
},
schemas
:
dataIndexFormSchema
,
showActionButtonGroup
:
false
,
actionColOptions
:
{
span
:
23
,
},
});
const
[
dataQualityForm
,
{}]
=
useForm
({
labelWidth
:
120
,
baseColProps
:
{
lg
:
24
,
md
:
24
},
...
...
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