mirror of
https://gitee.com/270580156/weiyu.git
synced 2026-01-04 05:12:26 +00:00
1 line
11 KiB
JavaScript
1 line
11 KiB
JavaScript
"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[7350],{60107:function(e,t,n){var r=n(77260),a=n(44194),s=n(20614),o=n(5901),i=function(e,t){return a.createElement(o.Z,(0,r.Z)({},e,{ref:t,icon:s.Z}))},l=a.forwardRef(i);t.Z=l},80597:function(e,t,n){var r=n(77260),a=n(44194),s=n(15323),o=n(5901),i=function(e,t){return a.createElement(o.Z,(0,r.Z)({},e,{ref:t,icon:s.Z}))},l=a.forwardRef(i);t.Z=l},12201:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(77260),a=n(44194),s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 00-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 00-8-8.4z"}}]},name:"smile",theme:"outlined"},o=n(5901),i=function(e,t){return a.createElement(o.Z,(0,r.Z)({},e,{ref:t,icon:s}))};var l=a.forwardRef(i)},65794:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(77260),a=n(44194),s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.2 732.5l60.3-241H281.1l189.6-327.4h224.6L487 427.4h211L378.2 732.5z"}}]},name:"thunderbolt",theme:"outlined"},o=n(5901),i=function(e,t){return a.createElement(o.Z,(0,r.Z)({},e,{ref:t,icon:s}))};var l=a.forwardRef(i)},49750:function(e,t,n){n.r(t);n(44194);var r=n(71373),a=n(43443),s=n(5858),o=n(9248),i=n(63065),l=n(14318),c=n(68525),u=n(12201),d=n(60107),f=n(80597),p=n(65794),m=n(31549);t.default=function(){var e=[{title:"日期",dataIndex:"date",key:"date"},{title:"总问题数",dataIndex:"totalQuestions",key:"totalQuestions",sorter:function(e,t){return e.totalQuestions-t.totalQuestions}},{title:"已回答",dataIndex:"answeredQuestions",key:"answeredQuestions",render:function(e,t){return(0,m.jsxs)("div",{children:[(0,m.jsx)("span",{children:e}),(0,m.jsx)(r.Z,{percent:Math.round(e/t.totalQuestions*100),size:"small",showInfo:!1,strokeColor:"#52c41a"})]})}},{title:"未回答",dataIndex:"unansweredQuestions",key:"unansweredQuestions",render:function(e,t){return(0,m.jsxs)("div",{children:[(0,m.jsx)("span",{children:e}),(0,m.jsx)(r.Z,{percent:Math.round(e/t.totalQuestions*100),size:"small",showInfo:!1,strokeColor:"#ff4d4f"})]})}},{title:"平均响应时间",dataIndex:"avgResponseTime",key:"avgResponseTime"},{title:"准确率",dataIndex:"accuracy",key:"accuracy",render:function(e){return(0,m.jsxs)(a.Z,{color:e>=90?"green":e>=80?"orange":"red",children:[e,"%"]})}},{title:"满意度",dataIndex:"satisfaction",key:"satisfaction",render:function(e){return(0,m.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,m.jsx)("span",{style:{marginRight:4},children:e}),(0,m.jsx)(u.Z,{style:{color:"#faad14"}})]})}}];return(0,m.jsxs)("div",{style:{padding:"24px"},children:[(0,m.jsxs)("div",{style:{marginBottom:"24px"},children:[(0,m.jsx)("h2",{children:"机器人回答统计"}),(0,m.jsx)("p",{children:"查看机器人客服的回答情况和质量分析"})]}),(0,m.jsxs)(s.Z,{gutter:16,style:{marginBottom:"24px"},children:[(0,m.jsx)(o.Z,{span:6,children:(0,m.jsx)(i.Z,{children:(0,m.jsx)(l.Z,{title:"今日总问题数",value:234,prefix:(0,m.jsx)(d.Z,{}),valueStyle:{color:"#3f8600"}})})}),(0,m.jsx)(o.Z,{span:6,children:(0,m.jsx)(i.Z,{children:(0,m.jsx)(l.Z,{title:"已回答问题",value:198,prefix:(0,m.jsx)(f.Z,{}),valueStyle:{color:"#1890ff"}})})}),(0,m.jsx)(o.Z,{span:6,children:(0,m.jsx)(i.Z,{children:(0,m.jsx)(l.Z,{title:"平均响应时间",value:"1.2秒",prefix:(0,m.jsx)(p.Z,{}),valueStyle:{color:"#722ed1"}})})}),(0,m.jsx)(o.Z,{span:6,children:(0,m.jsx)(i.Z,{children:(0,m.jsx)(l.Z,{title:"回答准确率",value:92.3,prefix:(0,m.jsx)(u.Z,{}),valueStyle:{color:"#eb2f96"},suffix:"%"})})})]}),(0,m.jsxs)(s.Z,{gutter:16,style:{marginBottom:"24px"},children:[(0,m.jsx)(o.Z,{span:12,children:(0,m.jsx)(i.Z,{title:"问题类型分布",children:(0,m.jsx)("div",{style:{height:300},children:[{type:"产品咨询",count:89,percentage:38,color:"#1890ff"},{type:"技术支持",count:67,percentage:28.6,color:"#52c41a"},{type:"订单查询",count:45,percentage:19.2,color:"#faad14"},{type:"投诉建议",count:33,percentage:14.2,color:"#ff4d4f"}].map((function(e,t){return(0,m.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:12},children:[(0,m.jsx)("span",{children:e.type}),(0,m.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,m.jsx)("div",{style:{width:12,height:12,backgroundColor:e.color,marginRight:8,borderRadius:2}}),(0,m.jsx)("span",{style:{marginRight:8},children:e.count}),(0,m.jsxs)("span",{style:{color:"#666"},children:["(",e.percentage,"%)"]})]})]},t)}))})})}),(0,m.jsx)(o.Z,{span:12,children:(0,m.jsx)(i.Z,{title:"回答质量分布",children:(0,m.jsx)("div",{style:{height:300},children:[{quality:"优秀",count:156,percentage:66.7,color:"#52c41a"},{quality:"良好",count:42,percentage:17.9,color:"#1890ff"},{quality:"一般",count:23,percentage:9.8,color:"#faad14"},{quality:"较差",count:13,percentage:5.6,color:"#ff4d4f"}].map((function(e,t){return(0,m.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:12},children:[(0,m.jsx)("span",{children:e.quality}),(0,m.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,m.jsx)("div",{style:{width:12,height:12,backgroundColor:e.color,marginRight:8,borderRadius:2}}),(0,m.jsx)("span",{style:{marginRight:8},children:e.count}),(0,m.jsxs)("span",{style:{color:"#666"},children:["(",e.percentage,"%)"]})]})]},t)}))})})})]}),(0,m.jsx)(i.Z,{title:"回答详细数据",children:(0,m.jsx)(c.Z,{columns:e,dataSource:[{key:"1",date:"2025-02-11",totalQuestions:234,answeredQuestions:198,unansweredQuestions:36,avgResponseTime:"1.2秒",accuracy:92.3,satisfaction:4.1},{key:"2",date:"2025-02-10",totalQuestions:189,answeredQuestions:162,unansweredQuestions:27,avgResponseTime:"1.5秒",accuracy:89.7,satisfaction:3.9},{key:"3",date:"2025-02-09",totalQuestions:267,answeredQuestions:231,unansweredQuestions:36,avgResponseTime:"1.1秒",accuracy:94.2,satisfaction:4.3}],pagination:!1,size:"middle"})})]})}},14318:function(e,t,n){n.d(t,{Z:function(){return C}});var r=n(44194),a=n(99026),s=n(59644),o=n(26867),i=n(51865),l=n.n(i),c=n(53230),u=n(81424),d=n(83043);var f=e=>{const{value:t,formatter:n,precision:a,decimalSeparator:s,groupSeparator:o="",prefixCls:i}=e;let l;if("function"==typeof n)l=n(t);else{const e=String(t),n=e.match(/^(-?)(\d*)(\.(\d+))?$/);if(n&&"-"!==e){const e=n[1];let t=n[2]||"0",c=n[4]||"";t=t.replace(/\B(?=(\d{3})+(?!\d))/g,o),"number"==typeof a&&(c=c.padEnd(a,"0").slice(0,a>0?a:0)),c&&(c=`${s}${c}`),l=[r.createElement("span",{key:"int",className:`${i}-content-value-int`},e,t),c&&r.createElement("span",{key:"decimal",className:`${i}-content-value-decimal`},c)]}else l=e}return r.createElement("span",{className:`${i}-content-value`},l)},p=n(15273),m=n(81254),x=n(10750);const g=e=>{const{componentCls:t,marginXXS:n,padding:r,colorTextDescription:a,titleFontSize:s,colorTextHeading:o,contentFontSize:i,fontFamily:l}=e;return{[t]:Object.assign(Object.assign({},(0,p.Wf)(e)),{[`${t}-title`]:{marginBottom:n,color:a,fontSize:s},[`${t}-skeleton`]:{paddingTop:r},[`${t}-content`]:{color:o,fontSize:i,fontFamily:l,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:n},[`${t}-content-suffix`]:{marginInlineStart:n}}})}};var y=(0,m.I$)("Statistic",(e=>{const t=(0,x.IX)(e,{});return[g(t)]}),(e=>{const{fontSizeHeading3:t,fontSize:n}=e;return{titleFontSize:n,contentFontSize:t}})),h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};const v=r.forwardRef(((e,t)=>{const{prefixCls:n,className:a,rootClassName:s,style:o,valueStyle:i,value:p=0,title:m,valueRender:x,prefix:g,suffix:v,loading:j=!1,formatter:Z,precision:w,decimalSeparator:b=".",groupSeparator:S=",",onMouseEnter:E,onMouseLeave:O}=e,C=h(e,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:k,direction:R,className:$,style:z}=(0,u.dj)("statistic"),I=k("statistic",n),[Q,M,N]=y(I),T=r.createElement(f,{decimalSeparator:b,groupSeparator:S,prefixCls:I,formatter:Z,precision:w,value:p}),H=l()(I,{[`${I}-rtl`]:"rtl"===R},$,a,s,M,N),B=r.useRef(null);r.useImperativeHandle(t,(()=>({nativeElement:B.current})));const F=(0,c.Z)(C,{aria:!0,data:!0});return Q(r.createElement("div",Object.assign({},F,{ref:B,className:H,style:Object.assign(Object.assign({},z),o),onMouseEnter:E,onMouseLeave:O}),m&&r.createElement("div",{className:`${I}-title`},m),r.createElement(d.Z,{paragraph:!1,loading:j,className:`${I}-skeleton`},r.createElement("div",{style:i,className:`${I}-content`},g&&r.createElement("span",{className:`${I}-content-prefix`},g),x?x(T):T,v&&r.createElement("span",{className:`${I}-content-suffix`},v)))))}));var j=v;const Z=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]];function w(e,t,n){const{format:r=""}=t,a=new Date(e).getTime(),s=Date.now();return function(e,t){let n=e;const r=/\[[^\]]*]/g,a=(t.match(r)||[]).map((e=>e.slice(1,-1))),s=t.replace(r,"[]"),o=Z.reduce(((e,[t,r])=>{if(e.includes(t)){const a=Math.floor(n/r);return n-=a*r,e.replace(new RegExp(`${t}+`,"g"),(e=>{const t=e.length;return a.toString().padStart(t,"0")}))}return e}),s);let i=0;return o.replace(r,(()=>{const e=a[i];return i+=1,e}))}(n?Math.max(a-s,0):Math.max(s-a,0),r)}var b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};var S=e=>{const{value:t,format:n="HH:mm:ss",onChange:i,onFinish:l,type:c}=e,u=b(e,["value","format","onChange","onFinish","type"]),d="countdown"===c,[f,p]=r.useState(null),m=(0,a.zX)((()=>{const e=Date.now(),n=function(e){return new Date(e).getTime()}(t);p({});return null==i||i(d?n-e:e-n),!(d&&n<e)||(null==l||l(),!1)}));r.useEffect((()=>{let e;const t=()=>{e=(0,s.Z)((()=>{m()&&t()}))};return t(),()=>s.Z.cancel(e)}),[t,d]),r.useEffect((()=>{p({})}),[]);return r.createElement(j,Object.assign({},u,{value:t,valueRender:e=>(0,o.Tm)(e,{title:void 0}),formatter:(e,t)=>f?w(e,Object.assign(Object.assign({},t),{format:n}),d):"-"}))};const E=e=>r.createElement(S,Object.assign({},e,{type:"countdown"}));var O=r.memo(E);j.Timer=S,j.Countdown=O;var C=j}}]); |