dify ai
This commit is contained in:
@@ -21,8 +21,8 @@ import { supabase } from "@/config/supabase";
|
||||
import { useNavigate, useParams, useSearchParams } from "react-router-dom";
|
||||
import { v4 as uuidv4 } from "uuid";
|
||||
import SectionList from '@/components/SectionList'
|
||||
import ChatAIDrawer from '@/components/ChatAi';
|
||||
|
||||
import DifyChatDrawer from '@/components/difyChatAi';
|
||||
import ChatAIDrawer from '@/components/ChatAi';
|
||||
const { Title } = Typography;
|
||||
|
||||
// 添加货币符号映射
|
||||
@@ -311,7 +311,8 @@ const QuotationForm = () => {
|
||||
}
|
||||
}, [id, templateId]);
|
||||
|
||||
const [open, setOpen] = useState(false);
|
||||
const [difyOpen, setDifyOpen] = useState(false);
|
||||
const [vercelOpen, setVercelOpen] = useState(false);
|
||||
|
||||
const handleExport = (data) => {
|
||||
if(data?.activityName&&data?.currency){
|
||||
@@ -353,7 +354,8 @@ const QuotationForm = () => {
|
||||
message.success('已添加新的服务项目');
|
||||
}
|
||||
|
||||
setOpen(false);
|
||||
setDifyOpen(false);
|
||||
setVercelOpen(false);
|
||||
};
|
||||
|
||||
return (
|
||||
@@ -393,8 +395,11 @@ const QuotationForm = () => {
|
||||
保存
|
||||
</Button>
|
||||
|
||||
<Button onClick={() => setOpen(true)}>
|
||||
AI 助手
|
||||
<Button onClick={() => setDifyOpen(true)}>
|
||||
AI for Dify
|
||||
</Button>
|
||||
<Button onClick={() => setVercelOpen(true)}>
|
||||
AI for Vercel
|
||||
</Button>
|
||||
</>
|
||||
)}
|
||||
@@ -497,9 +502,15 @@ const QuotationForm = () => {
|
||||
</Card>
|
||||
</Form>
|
||||
</Card>
|
||||
|
||||
<DifyChatDrawer
|
||||
open={difyOpen}
|
||||
onClose={() => setDifyOpen(false)}
|
||||
onExport={handleExport}
|
||||
/>
|
||||
<ChatAIDrawer
|
||||
open={open}
|
||||
onClose={() => setOpen(false)}
|
||||
open={vercelOpen}
|
||||
onClose={() => setVercelOpen(false)}
|
||||
onExport={handleExport}
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user