Files
weiyu/deploy/server/admin/p__Dashboard__Quality__smart-config__plan.d7ed76f7.async.js
jack ning 4c7623244a update
2025-07-30 11:08:35 +08:00

1 line
14 KiB
JavaScript

"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[618],{91768:function(e,n,i){i.d(n,{Z:function(){return d}});var a=i(77260),l=i(44194),t={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"},c=i(5901),r=function(e,n){return l.createElement(c.Z,(0,a.Z)({},e,{ref:n,icon:t}))};var d=l.forwardRef(r)},80597:function(e,n,i){var a=i(77260),l=i(44194),t=i(15323),c=i(5901),r=function(e,n){return l.createElement(c.Z,(0,a.Z)({},e,{ref:n,icon:t.Z}))},d=l.forwardRef(r);n.Z=d},24466:function(e,n,i){i.r(n);var a=i(45332),l=i.n(a),t=i(44194),c=i(34251),r=i(25950),d=i(34651),o=i(43443),s=i(43413),h=i(77407),u=i(63065),m=i(68525),g=i(35129),x=i(5858),p=i(9248),k=i(61978),f=i(38862),$=i(80597),v=i(41881),I=i(32164),b=i(91768),j=i(6992),Z=i(31549),S=c.Z.Option,w=r.Z.TextArea;n.default=function(){var e=t.useState(!1),n=l()(e,2),i=n[0],a=n[1],y=t.useState(null),C=l()(y,2),M=C[0],E=C[1],T=d.Z.useForm(),q=l()(T,1)[0],z=[{title:"方案名称",dataIndex:"planName",key:"planName"},{title:"AI模型",dataIndex:"aiModel",key:"aiModel",render:function(e){return(0,Z.jsx)(o.Z,{color:"blue",icon:(0,Z.jsx)($.Z,{}),children:e})}},{title:"检测项目",dataIndex:"detectionItems",key:"detectionItems",render:function(e){return(0,Z.jsx)(s.Z,{children:e.map((function(e,n){return(0,Z.jsx)(o.Z,{color:"green",children:e},n)}))})}},{title:"置信度阈值",dataIndex:"confidenceThreshold",key:"confidenceThreshold",render:function(e){return(0,Z.jsxs)(o.Z,{color:"orange",children:[e,"%"]})}},{title:"状态",dataIndex:"status",key:"status",render:function(e){return(0,Z.jsx)(o.Z,{color:e?"green":"red",children:e?"启用":"禁用"})}},{title:"创建时间",dataIndex:"createTime",key:"createTime"},{title:"操作",key:"action",render:function(e,n){return(0,Z.jsxs)(s.Z,{size:"middle",children:[(0,Z.jsx)(h.ZP,{type:"link",size:"small",icon:(0,Z.jsx)(v.Z,{}),onClick:function(){return N(n)},children:"编辑"}),(0,Z.jsx)(h.ZP,{type:"link",size:"small",icon:(0,Z.jsx)(I.Z,{}),children:"复制"}),(0,Z.jsx)(h.ZP,{type:"link",size:"small",danger:!0,icon:(0,Z.jsx)(b.Z,{}),children:"删除"})]})}}],N=function(e){E(e),a(!0),q.setFieldsValue(e)};return(0,Z.jsx)("div",{style:{padding:"20px"},children:(0,Z.jsxs)(u.Z,{title:"智能质检方案",extra:(0,Z.jsx)(h.ZP,{type:"primary",icon:(0,Z.jsx)(j.Z,{}),onClick:function(){E(null),a(!0),q.resetFields()},children:"新建方案"}),children:[(0,Z.jsx)("div",{style:{marginBottom:16},children:(0,Z.jsxs)(s.Z,{wrap:!0,children:[(0,Z.jsx)(r.Z,{placeholder:"搜索方案名称",style:{width:200}}),(0,Z.jsxs)(c.Z,{placeholder:"AI模型",style:{width:120},children:[(0,Z.jsx)(S,{value:"all",children:"全部"}),(0,Z.jsx)(S,{value:"gpt4",children:"GPT-4"}),(0,Z.jsx)(S,{value:"claude3",children:"Claude-3"}),(0,Z.jsx)(S,{value:"gemini",children:"Gemini"})]}),(0,Z.jsxs)(c.Z,{placeholder:"状态",style:{width:120},children:[(0,Z.jsx)(S,{value:"all",children:"全部"}),(0,Z.jsx)(S,{value:"enabled",children:"启用"}),(0,Z.jsx)(S,{value:"disabled",children:"禁用"})]}),(0,Z.jsx)(h.ZP,{type:"primary",children:"搜索"})]})}),(0,Z.jsx)(m.Z,{columns:z,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,Z.jsx)(g.Z,{title:M?"编辑智能质检方案":"新建智能质检方案",open:i,onOk:function(){q.validateFields().then((function(e){console.log("Form values:",e),a(!1),q.resetFields()}))},onCancel:function(){a(!1),q.resetFields()},width:800,children:(0,Z.jsxs)(d.Z,{form:q,layout:"vertical",children:[(0,Z.jsxs)(x.Z,{gutter:16,children:[(0,Z.jsx)(p.Z,{span:12,children:(0,Z.jsx)(d.Z.Item,{name:"planName",label:"方案名称",rules:[{required:!0,message:"请输入方案名称"}],children:(0,Z.jsx)(r.Z,{placeholder:"请输入方案名称"})})}),(0,Z.jsx)(p.Z,{span:12,children:(0,Z.jsx)(d.Z.Item,{name:"aiModel",label:"AI模型",rules:[{required:!0,message:"请选择AI模型"}],children:(0,Z.jsxs)(c.Z,{placeholder:"请选择AI模型",children:[(0,Z.jsx)(S,{value:"GPT-4",children:"GPT-4"}),(0,Z.jsx)(S,{value:"Claude-3",children:"Claude-3"}),(0,Z.jsx)(S,{value:"Gemini",children:"Gemini"}),(0,Z.jsx)(S,{value:"Qwen",children:"Qwen"})]})})})]}),(0,Z.jsx)(d.Z.Item,{name:"detectionItems",label:"检测项目",rules:[{required:!0,message:"请选择检测项目"}],children:(0,Z.jsxs)(c.Z,{mode:"multiple",placeholder:"请选择检测项目",children:[(0,Z.jsx)(S,{value:"服务态度",children:"服务态度"}),(0,Z.jsx)(S,{value:"专业能力",children:"专业能力"}),(0,Z.jsx)(S,{value:"响应速度",children:"响应速度"}),(0,Z.jsx)(S,{value:"问题解决",children:"问题解决"}),(0,Z.jsx)(S,{value:"客户满意度",children:"客户满意度"}),(0,Z.jsx)(S,{value:"沟通技巧",children:"沟通技巧"})]})}),(0,Z.jsxs)(x.Z,{gutter:16,children:[(0,Z.jsx)(p.Z,{span:12,children:(0,Z.jsx)(d.Z.Item,{name:"confidenceThreshold",label:"置信度阈值",rules:[{required:!0,message:"请输入置信度阈值"}],children:(0,Z.jsx)(k.Z,{min:50,max:100,style:{width:"100%"}})})}),(0,Z.jsx)(p.Z,{span:12,children:(0,Z.jsx)(d.Z.Item,{name:"maxTokens",label:"最大Token数",rules:[{required:!0,message:"请输入最大Token数"}],children:(0,Z.jsx)(k.Z,{min:1e3,max:8e3,style:{width:"100%"}})})})]}),(0,Z.jsx)(d.Z.Item,{name:"description",label:"方案描述",children:(0,Z.jsx)(w,{rows:3,placeholder:"请输入方案描述"})}),(0,Z.jsx)(d.Z.Item,{name:"status",label:"状态",valuePropName:"checked",children:(0,Z.jsx)(f.Z,{checkedChildren:"启用",unCheckedChildren:"禁用"})})]})})]})})}},9248:function(e,n,i){var a=i(70065);n.Z=a.Z},5858:function(e,n,i){var a=i(70231);n.Z=a.Z},38862:function(e,n,i){i.d(n,{Z:function(){return N}});var a=i(44194),l=i(31568),t=i(51865),c=i.n(t),r=i(77260),d=i(54549),o=i(76285),s=i(17323),h=i(92032),u=i(68195),m=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],g=a.forwardRef((function(e,n){var i,l=e.prefixCls,t=void 0===l?"rc-switch":l,g=e.className,x=e.checked,p=e.defaultChecked,k=e.disabled,f=e.loadingIcon,$=e.checkedChildren,v=e.unCheckedChildren,I=e.onClick,b=e.onChange,j=e.onKeyDown,Z=(0,s.Z)(e,m),S=(0,h.Z)(!1,{value:x,defaultValue:p}),w=(0,o.Z)(S,2),y=w[0],C=w[1];function M(e,n){var i=y;return k||(C(i=e),null==b||b(i,n)),i}var E=c()(t,g,(i={},(0,d.Z)(i,"".concat(t,"-checked"),y),(0,d.Z)(i,"".concat(t,"-disabled"),k),i));return a.createElement("button",(0,r.Z)({},Z,{type:"button",role:"switch","aria-checked":y,disabled:k,className:E,ref:n,onKeyDown:function(e){e.which===u.Z.LEFT?M(!1,e):e.which===u.Z.RIGHT&&M(!0,e),null==j||j(e)},onClick:function(e){var n=M(!y,e);null==I||I(n,e)}}),f,a.createElement("span",{className:"".concat(t,"-inner")},a.createElement("span",{className:"".concat(t,"-inner-checked")},$),a.createElement("span",{className:"".concat(t,"-inner-unchecked")},v)))}));g.displayName="Switch";var x=g,p=i(68756),k=i(81424),f=i(68304),$=i(38879),v=i(23490),I=i(87471),b=i(15273),j=i(81254),Z=i(10750);const S=e=>{const{componentCls:n,trackHeightSM:i,trackPadding:a,trackMinWidthSM:l,innerMinMarginSM:t,innerMaxMarginSM:c,handleSizeSM:r,calc:d}=e,o=`${n}-inner`,s=(0,v.bf)(d(r).add(d(a).mul(2)).equal()),h=(0,v.bf)(d(c).mul(2).equal());return{[n]:{[`&${n}-small`]:{minWidth:l,height:i,lineHeight:(0,v.bf)(i),[`${n}-inner`]:{paddingInlineStart:c,paddingInlineEnd:t,[`${o}-checked, ${o}-unchecked`]:{minHeight:i},[`${o}-checked`]:{marginInlineStart:`calc(-100% + ${s} - ${h})`,marginInlineEnd:`calc(100% - ${s} + ${h})`},[`${o}-unchecked`]:{marginTop:d(i).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${n}-handle`]:{width:r,height:r},[`${n}-loading-icon`]:{top:d(d(r).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${n}-checked`]:{[`${n}-inner`]:{paddingInlineStart:t,paddingInlineEnd:c,[`${o}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${o}-unchecked`]:{marginInlineStart:`calc(100% - ${s} + ${h})`,marginInlineEnd:`calc(-100% + ${s} - ${h})`}},[`${n}-handle`]:{insetInlineStart:`calc(100% - ${(0,v.bf)(d(r).add(a).equal())})`}},[`&:not(${n}-disabled):active`]:{[`&:not(${n}-checked) ${o}`]:{[`${o}-unchecked`]:{marginInlineStart:d(e.marginXXS).div(2).equal(),marginInlineEnd:d(e.marginXXS).mul(-1).div(2).equal()}},[`&${n}-checked ${o}`]:{[`${o}-checked`]:{marginInlineStart:d(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:d(e.marginXXS).div(2).equal()}}}}}}},w=e=>{const{componentCls:n,handleSize:i,calc:a}=e;return{[n]:{[`${n}-loading-icon${e.iconCls}`]:{position:"relative",top:a(a(i).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${n}-checked ${n}-loading-icon`]:{color:e.switchColor}}}},y=e=>{const{componentCls:n,trackPadding:i,handleBg:a,handleShadow:l,handleSize:t,calc:c}=e,r=`${n}-handle`;return{[n]:{[r]:{position:"absolute",top:i,insetInlineStart:i,width:t,height:t,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:a,borderRadius:c(t).div(2).equal(),boxShadow:l,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${n}-checked ${r}`]:{insetInlineStart:`calc(100% - ${(0,v.bf)(c(t).add(i).equal())})`},[`&:not(${n}-disabled):active`]:{[`${r}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${n}-checked ${r}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},C=e=>{const{componentCls:n,trackHeight:i,trackPadding:a,innerMinMargin:l,innerMaxMargin:t,handleSize:c,calc:r}=e,d=`${n}-inner`,o=(0,v.bf)(r(c).add(r(a).mul(2)).equal()),s=(0,v.bf)(r(t).mul(2).equal());return{[n]:{[d]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:t,paddingInlineEnd:l,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${d}-checked, ${d}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:i},[`${d}-checked`]:{marginInlineStart:`calc(-100% + ${o} - ${s})`,marginInlineEnd:`calc(100% - ${o} + ${s})`},[`${d}-unchecked`]:{marginTop:r(i).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${n}-checked ${d}`]:{paddingInlineStart:l,paddingInlineEnd:t,[`${d}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${d}-unchecked`]:{marginInlineStart:`calc(100% - ${o} + ${s})`,marginInlineEnd:`calc(-100% + ${o} - ${s})`}},[`&:not(${n}-disabled):active`]:{[`&:not(${n}-checked) ${d}`]:{[`${d}-unchecked`]:{marginInlineStart:r(a).mul(2).equal(),marginInlineEnd:r(a).mul(-1).mul(2).equal()}},[`&${n}-checked ${d}`]:{[`${d}-checked`]:{marginInlineStart:r(a).mul(-1).mul(2).equal(),marginInlineEnd:r(a).mul(2).equal()}}}}}},M=e=>{const{componentCls:n,trackHeight:i,trackMinWidth:a}=e;return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,b.Wf)(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:a,height:i,lineHeight:(0,v.bf)(i),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${n}-disabled)`]:{background:e.colorTextTertiary}}),(0,b.Qy)(e)),{[`&${n}-checked`]:{background:e.switchColor,[`&:hover:not(${n}-disabled)`]:{background:e.colorPrimaryHover}},[`&${n}-loading, &${n}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${n}-rtl`]:{direction:"rtl"}})}};var E=(0,j.I$)("Switch",(e=>{const n=(0,Z.IX)(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[M(n),C(n),y(n),w(n),S(n)]}),(e=>{const{fontSize:n,lineHeight:i,controlHeight:a,colorWhite:l}=e,t=n*i,c=a/2,r=t-4,d=c-4;return{trackHeight:t,trackHeightSM:c,trackMinWidth:2*r+8,trackMinWidthSM:2*d+4,trackPadding:2,handleBg:l,handleSize:r,handleSizeSM:d,handleShadow:`0 2px 4px 0 ${new I.t("#00230b").setA(.2).toRgbString()}`,innerMinMargin:r/2,innerMaxMargin:r+2+4,innerMinMarginSM:d/2,innerMaxMarginSM:d+2+4}})),T=function(e,n){var i={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&n.indexOf(a)<0&&(i[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(a=Object.getOwnPropertySymbols(e);l<a.length;l++)n.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(e,a[l])&&(i[a[l]]=e[a[l]])}return i};const q=a.forwardRef(((e,n)=>{const{prefixCls:i,size:t,disabled:r,loading:d,className:o,rootClassName:s,style:u,checked:m,value:g,defaultChecked:v,defaultValue:I,onChange:b}=e,j=T(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[Z,S]=(0,h.Z)(!1,{value:null!=m?m:g,defaultValue:null!=v?v:I}),{getPrefixCls:w,direction:y,switch:C}=a.useContext(k.E_),M=a.useContext(f.Z),q=(null!=r?r:M)||d,z=w("switch",i),N=a.createElement("div",{className:`${z}-handle`},d&&a.createElement(l.Z,{className:`${z}-loading-icon`})),[H,O,P]=E(z),A=(0,$.Z)(t),D=c()(null==C?void 0:C.className,{[`${z}-small`]:"small"===A,[`${z}-loading`]:d,[`${z}-rtl`]:"rtl"===y},o,s,O,P),L=Object.assign(Object.assign({},null==C?void 0:C.style),u);return H(a.createElement(p.Z,{component:"Switch"},a.createElement(x,Object.assign({},j,{checked:Z,onChange:(...e)=>{S(e[0]),null==b||b.apply(void 0,e)},prefixCls:z,className:D,style:L,disabled:q,ref:n,loadingIcon:N}))))})),z=q;z.__ANT_SWITCH=!0;var N=z}}]);