feat(ai-web): 完成执行任务的创建

This commit is contained in:
v-zhangjc9
2025-07-04 19:31:24 +08:00
parent 4f1dc84405
commit 64ef5514b4
5 changed files with 96 additions and 18 deletions

View File

@@ -1,9 +1,9 @@
import {isEmpty, isEqual} from 'licia'
import React from 'react'
import {useParams} from 'react-router'
import styled from 'styled-components'
import {amisRender, commonInfo, horizontalFormOptions} from '../../../../util/amis.tsx'
import {generateInputForm, typeMap} from '../InputSchema.tsx'
import { useParams } from 'react-router'
const TemplateEditDiv = styled.div`
.antd-EditorControl {
@@ -54,7 +54,7 @@ const FlowTaskTemplateEdit: React.FC = () => {
actionType: 'setValue',
args: {
value: {
inputPreview: generateInputForm(inputSchema),
inputPreview: generateInputForm(inputSchema, '入参表单预览'),
},
},
})
@@ -75,6 +75,8 @@ const FlowTaskTemplateEdit: React.FC = () => {
label: '名称',
required: true,
clearable: true,
maxLength: 10,
showCounter: true,
},
{
type: 'textarea',
@@ -82,6 +84,8 @@ const FlowTaskTemplateEdit: React.FC = () => {
label: '描述',
required: true,
clearable: true,
maxLength: 500,
showCounter: true,
},
{
type: 'group',