Files
weiyu/deploy/server/admin/p__Dashboard__Quality__smart-config__plan.4e851e58.async.js

1 line
6.1 KiB
JavaScript
Raw Normal View History

2025-09-20 23:32:02 +08:00
"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[618],{54881:function(e,n,l){l.d(n,{Z:function(){return a}});var i=l(77260),r=l(44194),s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},t=l(54183),d=function(e,n){return r.createElement(t.Z,(0,i.Z)({},e,{ref:n,icon:s}))};var a=r.forwardRef(d)},58087:function(e,n,l){var i=l(77260),r=l(44194),s=l(15323),t=l(54183),d=function(e,n){return r.createElement(t.Z,(0,i.Z)({},e,{ref:n,icon:s.Z}))},a=r.forwardRef(d);n.Z=a},24675:function(e,n,l){l.r(n);var i=l(45332),r=l.n(i),s=l(44194),t=l(27904),d=l(27259),a=l(20903),c=l(88344),h=l(49616),o=l(5780),u=l(79401),x=l(61155),m=l(68349),j=l(78875),Z=l(20228),v=l(67206),p=l(8340),f=l(58087),k=l(59304),y=l(7358),I=l(54881),g=l(10162),T=l(31549),w=t.Z.Option,b=d.Z.TextArea;n.default=function(){var e=s.useState(!1),n=r()(e,2),l=n[0],i=n[1],C=s.useState(null),P=r()(C,2),z=P[0],A=P[1],F=a.Z.useForm(),G=r()(F,1)[0],M=[{title:"方案名称",dataIndex:"planName",key:"planName"},{title:"AI模型",dataIndex:"aiModel",key:"aiModel",render:function(e){return(0,T.jsx)(c.Z,{color:"blue",icon:(0,T.jsx)(f.Z,{}),children:e})}},{title:"检测项目",dataIndex:"detectionItems",key:"detectionItems",render:function(e){return(0,T.jsx)(h.Z,{children:e.map((function(e,n){return(0,T.jsx)(c.Z,{color:"green",children:e},n)}))})}},{title:"置信度阈值",dataIndex:"confidenceThreshold",key:"confidenceThreshold",render:function(e){return(0,T.jsxs)(c.Z,{color:"orange",children:[e,"%"]})}},{title:"状态",dataIndex:"status",key:"status",render:function(e){return(0,T.jsx)(c.Z,{color:e?"green":"red",children:e?"启用":"禁用"})}},{title:"创建时间",dataIndex:"createTime",key:"createTime"},{title:"操作",key:"action",render:function(e,n){return(0,T.jsxs)(h.Z,{size:"middle",children:[(0,T.jsx)(o.ZP,{type:"link",size:"small",icon:(0,T.jsx)(k.Z,{}),onClick:function(){return N(n)},children:"编辑"}),(0,T.jsx)(o.ZP,{type:"link",size:"small",icon:(0,T.jsx)(y.Z,{}),children:"复制"}),(0,T.jsx)(o.ZP,{type:"link",size:"small",danger:!0,icon:(0,T.jsx)(I.Z,{}),children:"删除"})]})}}],N=function(e){A(e),i(!0),G.setFieldsValue(e)};return(0,T.jsx)("div",{style:{padding:"20px"},children:(0,T.jsxs)(u.Z,{title:"智能质检方案",extra:(0,T.jsx)(o.ZP,{type:"primary",icon:(0,T.jsx)(g.Z,{}),onClick:function(){A(null),i(!0),G.resetFields()},children:"新建方案"}),children:[(0,T.jsx)("div",{style:{marginBottom:16},children:(0,T.jsxs)(h.Z,{wrap:!0,children:[(0,T.jsx)(d.Z,{placeholder:"搜索方案名称",style:{width:200}}),(0,T.jsxs)(t.Z,{placeholder:"AI模型",style:{width:120},children:[(0,T.jsx)(w,{value:"all",children:"全部"}),(0,T.jsx)(w,{value:"gpt4",children:"GPT-4"}),(0,T.jsx)(w,{value:"claude3",children:"Claude-3"}),(0,T.jsx)(w,{value:"gemini",children:"Gemini"})]}),(0,T.jsxs)(t.Z,{placeholder:"状态",style:{width:120},children:[(0,T.jsx)(w,{value:"all",children:"全部"}),(0,T.jsx)(w,{value:"enabled",children:"启用"}),(0,T.jsx)(w,{value:"disabled",children:"禁用"})]}),(0,T.jsx)(o.ZP,{type:"primary",children:"搜索"})]})}),(0,T.jsx)(x.Z,{columns:M,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,T.jsx)(m.Z,{title:z?"编辑智能质检方案":"新建智能质检方案",open:l,onOk:function(){G.validateFields().then((function(e){console.log("Form values:",e),i