mirror of
https://gitee.com/270580156/weiyu.git
synced 2026-05-14 11:18:02 +00:00
1 line
5.4 KiB
JavaScript
1 line
5.4 KiB
JavaScript
"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[618],{58087:function(e,l,n){var i=n(83910),r=n(44194),s=n(15323),d=n(54183),t=function(e,l){return r.createElement(d.Z,(0,i.Z)({},e,{ref:l,icon:s.Z}))},a=r.forwardRef(t);l.Z=a},18676:function(e,l,n){n.r(l);var i=n(45332),r=n.n(i),s=n(44194),d=n(13847),t=n(32525),a=n(41196),c=n(81739),o=n(39487),h=n(82770),u=n(40110),x=n(54943),j=n(86895),m=n(34201),Z=n(79489),p=n(45067),f=n(66431),v=n(58087),k=n(59304),y=n(7358),I=n(54881),T=n(10162),g=n(31549),w=d.Z.Option,b=t.Z.TextArea;l.default=function(){var e=s.useState(!1),l=r()(e,2),n=l[0],i=l[1],C=s.useState(null),P=r()(C,2),A=P[0],F=P[1],G=a.Z.useForm(),N=r()(G,1)[0],q=[{title:"方案名称",dataIndex:"planName",key:"planName"},{title:"AI模型",dataIndex:"aiModel",key:"aiModel",render:function(e){return(0,g.jsx)(c.Z,{color:"blue",icon:(0,g.jsx)(v.Z,{}),children:e})}},{title:"检测项目",dataIndex:"detectionItems",key:"detectionItems",render:function(e){return(0,g.jsx)(o.Z,{children:e.map((function(e,l){return(0,g.jsx)(c.Z,{color:"green",children:e},l)}))})}},{title:"置信度阈值",dataIndex:"confidenceThreshold",key:"confidenceThreshold",render:function(e){return(0,g.jsxs)(c.Z,{color:"orange",children:[e,"%"]})}},{title:"状态",dataIndex:"status",key:"status",render:function(e){return(0,g.jsx)(c.Z,{color:e?"green":"red",children:e?"启用":"禁用"})}},{title:"创建时间",dataIndex:"createTime",key:"createTime"},{title:"操作",key:"action",render:function(e,l){return(0,g.jsxs)(o.Z,{size:"middle",children:[(0,g.jsx)(h.ZP,{type:"link",size:"small",icon:(0,g.jsx)(k.Z,{}),onClick:function(){return M(l)},children:"编辑"}),(0,g.jsx)(h.ZP,{type:"link",size:"small",icon:(0,g.jsx)(y.Z,{}),children:"复制"}),(0,g.jsx)(h.ZP,{type:"link",size:"small",danger:!0,icon:(0,g.jsx)(I.Z,{}),children:"删除"})]})}}],M=function(e){F(e),i(!0),N.setFieldsValue(e)};return(0,g.jsx)("div",{style:{padding:"20px"},children:(0,g.jsxs)(u.Z,{title:"智能质检方案",extra:(0,g.jsx)(h.ZP,{type:"primary",icon:(0,g.jsx)(T.Z,{}),onClick:function(){F(null),i(!0),N.resetFields()},children:"新建方案"}),children:[(0,g.jsx)("div",{style:{marginBottom:16},children:(0,g.jsxs)(o.Z,{wrap:!0,children:[(0,g.jsx)(t.Z,{placeholder:"搜索方案名称",style:{width:200}}),(0,g.jsxs)(d.Z,{placeholder:"AI模型",style:{width:120},children:[(0,g.jsx)(w,{value:"all",children:"全部"}),(0,g.jsx)(w,{value:"gpt4",children:"GPT-4"}),(0,g.jsx)(w,{value:"claude3",children:"Claude-3"}),(0,g.jsx)(w,{value:"gemini",children:"Gemini"})]}),(0,g.jsxs)(d.Z,{placeholder:"状态",style:{width:120},children:[(0,g.jsx)(w,{value:"all",children:"全部"}),(0,g.jsx)(w,{value:"enabled",children:"启用"}),(0,g.jsx)(w,{value:"disabled",children:"禁用"})]}),(0,g.jsx)(h.ZP,{type:"primary",children:"搜索"})]})}),(0,g.jsx)(x.Z,{columns:q,dataSource:[{key:"1",planName:"智能会话质检方案A",aiModel:"GPT-4",detectionItems:["服务态度","专业能力","响应速度"],confidenceThreshold:80,status:!0,createTime:"2025-01-16 10:30:00"},{key:"2",planName:"智能会话质检方案B",aiModel:"Claude-3",detectionItems:["服务态度","专业能力","响应速度","问题解决"],confidenceThreshold:85,status:!0,createTime:"2025-01-16 11:15:00"}]}),(0,g.jsx)(j.Z,{title:A?"编辑智能质检方案":"新建智能质检方案",open:n,onOk:function(){N.validateFields().then((function(e){console.log("Form values:",e),i(!1),N.resetFields()}))},onCancel:function(){i(!1),N.resetFields()},width:800,children:(0,g.jsxs)(a.Z,{form:N,layout:"vertical",children:[(0,g.jsxs)(m.Z,{gutter:16,children:[(0,g.jsx)(Z.Z,{span:12,children:(0,g.jsx)(a.Z.Item,{name:"planName",label:"方案名称",rules:[{required:!0,message:"请输入方案名称"}],children:(0,g.jsx)(t.Z,{placeholder:"请输入方案名称"})})}),(0,g.jsx)(Z.Z,{span:12,children:(0,g.jsx)(a.Z.Item,{name:"aiModel",label:"AI模型",rules:[{required:!0,message:"请选择AI模型"}],children:(0,g.jsxs)(d.Z,{placeholder:"请选择AI模型",children:[(0,g.jsx)(w,{value:"GPT-4",children:"GPT-4"}),(0,g.jsx)(w,{value:"Claude-3",children:"Claude-3"}),(0,g.jsx)(w,{value:"Gemini",children:"Gemini"}),(0,g.jsx)(w,{value:"Qwen",children:"Qwen"})]})})})]}),(0,g.jsx)(a.Z.Item,{name:"detectionItems",label:"检测项目",rules:[{required:!0,message:"请选择检测项目"}],children:(0,g.jsxs)(d.Z,{mode:"multiple",placeholder:"请选择检测项目",children:[(0,g.jsx)(w,{value:"服务态度",children:"服务态度"}),(0,g.jsx)(w,{value:"专业能力",children:"专业能力"}),(0,g.jsx)(w,{value:"响应速度",children:"响应速度"}),(0,g.jsx)(w,{value:"问题解决",children:"问题解决"}),(0,g.jsx)(w,{value:"客户满意度",children:"客户满意度"}),(0,g.jsx)(w,{value:"沟通技巧",children:"沟通技巧"})]})}),(0,g.jsxs)(m.Z,{gutter:16,children:[(0,g.jsx)(Z.Z,{span:12,children:(0,g.jsx)(a.Z.Item,{name:"confidenceThreshold",label:"置信度阈值",rules:[{required:!0,message:"请输入置信度阈值"}],children:(0,g.jsx)(p.Z,{min:50,max:100,style:{width:"100%"}})})}),(0,g.jsx)(Z.Z,{span:12,children:(0,g.jsx)(a.Z.Item,{name:"maxTokens",label:"最大Token数",rules:[{required:!0,message:"请输入最大Token数"}],children:(0,g.jsx)(p.Z,{min:1e3,max:8e3,style:{width:"100%"}})})})]}),(0,g.jsx)(a.Z.Item,{name:"description",label:"方案描述",children:(0,g.jsx)(b,{rows:3,placeholder:"请输入方案描述"})}),(0,g.jsx)(a.Z.Item,{name:"status",label:"状态",valuePropName:"checked",children:(0,g.jsx)(f.Z,{checkedChildren:"启用",unCheckedChildren:"禁用"})})]})})]})})}}}]); |