Commit 2b890877 authored by LiXuyang's avatar LiXuyang

任务流设计-任务设计

parent 2157c1c1
......@@ -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: '落标检查',
......
......@@ -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, dataSyncFormSchema, delayFormSchema,
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 },
......
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