高级编排分组

This commit is contained in:
zhangkai
2024-06-24 15:28:24 +08:00
parent 1c07d4b9df
commit 68c9acc85b
18 changed files with 1353 additions and 126 deletions

View File

@@ -0,0 +1,28 @@
import { Button } from "@/components/bs-ui/button";
import { DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from "@/components/bs-ui/dialog";
import ChatReportForm from "@/pages/ChatAppPage/components/ChatReportForm";
import { useRef } from "react";
export default function RunForm({ show, flow, onChangeShow, onSubmit }) {
const formRef = useRef(null);
const handleSubmit = () => {
formRef.current.submit()
}
return <DialogContent className="sm:max-w-[625px]">
<DialogHeader>
<DialogTitle></DialogTitle>
<DialogDescription></DialogDescription>
</DialogHeader>
{
show && <ChatReportForm ref={formRef} type='diff' vid={flow.id} flow={flow} onStart={onSubmit} />
}
<DialogFooter>
<DialogClose>
<Button variant="outline" className="px-11" type="button" onClick={onChangeShow}></Button>
</DialogClose>
<Button type="submit" className="px-11" onClick={handleSubmit}></Button>
</DialogFooter>
</DialogContent>
};