Commit 2b890877 authored by LiXuyang's avatar LiXuyang

任务流设计-任务设计

parent 2157c1c1
...@@ -600,6 +600,36 @@ export const dataLoadFormSchema: FormSchema[] = [ ...@@ -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[] = [ export const labelCheckFormSchema: FormSchema[] = [
{ {
label: '落标检查', label: '落标检查',
......
...@@ -101,6 +101,12 @@ ...@@ -101,6 +101,12 @@
<TabPane v-if="type === '7'" key="8" tab="数据加载任务"> <TabPane v-if="type === '7'" key="8" tab="数据加载任务">
<BasicForm @register="dataLoadForm" /> <BasicForm @register="dataLoadForm" />
</TabPane> </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="数据质量任务"> <TabPane v-if="type === '9'" key="9" tab="数据质量任务">
<BasicForm @register="dataQualityForm"> <BasicForm @register="dataQualityForm">
<template #perc="{ field, model }"> <template #perc="{ field, model }">
...@@ -139,16 +145,16 @@ ...@@ -139,16 +145,16 @@
</template> </template>
</BasicForm> </BasicForm>
</TabPane> </TabPane>
<TabPane key="100" tab="任务参数"> <TabPane v-if="type !== '7' && type !== '8' && type !== '10'" key="100" tab="任务参数">
<!--嵌套任务流任务区别部分--> <!--嵌套任务流任务区别部分-->
<div v-if="type === '11'"> <div v-if="type === '11'">
<CheckboxGroup <CheckboxGroup
style="margin-left: 15px" style="margin-left: 15px"
:options="embedConfigOptions" :options="embedConfigOptions"
/><InfoCircleOutlined /> /><InfoCircleOutlined />
</div> <div>
<div> <a-button type="link">查看内置函数</a-button>
<a-button type="link">查看内置函数</a-button> </div>
</div> </div>
<BasicTable @register="configTable" :searchInfo="searchInfo"> <BasicTable @register="configTable" :searchInfo="searchInfo">
<template #name="{ text, record }"> <template #name="{ text, record }">
...@@ -172,7 +178,7 @@ ...@@ -172,7 +178,7 @@
</BasicTable> </BasicTable>
</TabPane> </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"> <BasicTable @register="dataLoadConfigTable" :searchInfo="searchInfo">
<template #toolbar> <template #toolbar>
<div style="flex: 1; display: flex; justify-content: space-between"> <div style="flex: 1; display: flex; justify-content: space-between">
...@@ -212,9 +218,10 @@ ...@@ -212,9 +218,10 @@
import { BasicModal, useModalInner } from '@/components/Modal'; import { BasicModal, useModalInner } from '@/components/Modal';
import { BasicForm, useForm } from '@/components/Form'; import { BasicForm, useForm } from '@/components/Form';
import { import {
dataIndexFormSchema,
dataLoadConfigColumn, dataLoadConfigColumn,
dataLoadFormSchema, dataLoadFormSchema,
dataQualityFormSchema, delayFormSchema, dataQualityFormSchema, dataSyncFormSchema, delayFormSchema,
embedFlowFormSchema, embedFlowFormSchema,
infoFormSchema, infoFormSchema,
javaFormSchema, javaFormSchema,
...@@ -265,7 +272,7 @@ ...@@ -265,7 +272,7 @@
} }
//初始化弹框 //初始化弹框
const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => { const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => {
resetConfigTable(); // resetConfigTable();
activeKey.value = '1'; activeKey.value = '1';
setModalProps({ confirmLoading: false }); setModalProps({ confirmLoading: false });
type.value = data?.type; type.value = data?.type;
...@@ -392,6 +399,24 @@ ...@@ -392,6 +399,24 @@
span: 23, 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({ const [dataQualityForm, {}] = useForm({
labelWidth: 120, labelWidth: 120,
baseColProps: { lg: 24, md: 24 }, 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