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

1 line
9.2 KiB
JavaScript

"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[2346],{94011:function(e,t,n){n.d(t,{Z:function(){return i}});var a=n(77260),r=n(44194),l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},o=n(5901),s=function(e,t){return r.createElement(o.Z,(0,a.Z)({},e,{ref:t,icon:l}))};var i=r.forwardRef(s)},35911:function(e,t,n){n.d(t,{Z:function(){return i}});var a=n(77260),r=n(44194),l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"},o=n(5901),s=function(e,t){return r.createElement(o.Z,(0,a.Z)({},e,{ref:t,icon:l}))};var i=r.forwardRef(s)},46490:function(e,t,n){n.r(t);n(44194);var a=n(34251),r=n(41123),l=n(63065),o=n(43413),s=n(77407),i=n(5858),c=n(9248),u=n(14318),p=n(68525),d=n(35911),f=n(94011),m=n(31549),x=a.Z.Option,g=r.default.RangePicker;t.default=function(){return(0,m.jsx)("div",{style:{padding:"20px"},children:(0,m.jsxs)(l.Z,{title:"会话质检统计",extra:(0,m.jsxs)(o.Z,{children:[(0,m.jsx)(s.ZP,{icon:(0,m.jsx)(d.Z,{}),children:"刷新"}),(0,m.jsx)(s.ZP,{icon:(0,m.jsx)(f.Z,{}),type:"primary",children:"导出报表"})]}),children:[(0,m.jsxs)(i.Z,{gutter:16,style:{marginBottom:24},children:[(0,m.jsx)(c.Z,{span:6,children:(0,m.jsx)(u.Z,{title:"总质检数",value:1128})}),(0,m.jsx)(c.Z,{span:6,children:(0,m.jsx)(u.Z,{title:"平均分",value:87.5,suffix:"分"})}),(0,m.jsx)(c.Z,{span:6,children:(0,m.jsx)(u.Z,{title:"优秀率",value:68.2,suffix:"%"})}),(0,m.jsx)(c.Z,{span:6,children:(0,m.jsx)(u.Z,{title:"申诉率",value:2.1,suffix:"%"})})]}),(0,m.jsxs)(i.Z,{gutter:16,style:{marginBottom:24},children:[(0,m.jsx)(c.Z,{span:6,children:(0,m.jsx)(u.Z,{title:"本月质检数",value:156})}),(0,m.jsx)(c.Z,{span:6,children:(0,m.jsx)(u.Z,{title:"本月平均分",value:89.2,suffix:"分"})}),(0,m.jsx)(c.Z,{span:6,children:(0,m.jsx)(u.Z,{title:"本月优秀率",value:72.4,suffix:"%"})}),(0,m.jsx)(c.Z,{span:6,children:(0,m.jsx)(u.Z,{title:"本月申诉数",value:8})})]}),(0,m.jsx)("div",{style:{marginBottom:16},children:(0,m.jsxs)(o.Z,{wrap:!0,children:[(0,m.jsxs)(a.Z,{placeholder:"选择客服",style:{width:150},children:[(0,m.jsx)(x,{value:"all",children:"全部客服"}),(0,m.jsx)(x,{value:"zhangsan",children:"张三"}),(0,m.jsx)(x,{value:"lisi",children:"李四"}),(0,m.jsx)(x,{value:"wangwu",children:"王五"})]}),(0,m.jsx)(g,{placeholder:["开始时间","结束时间"]}),(0,m.jsx)(s.ZP,{type:"primary",children:"查询"})]})}),(0,m.jsx)(l.Z,{title:"客服质检统计",size:"small",children:(0,m.jsx)(p.Z,{columns:[{title:"客服",dataIndex:"agent",key:"agent"},{title:"质检总数",dataIndex:"totalInspections",key:"totalInspections"},{title:"平均分",dataIndex:"averageScore",key:"averageScore"},{title:"优秀率",dataIndex:"excellentRate",key:"excellentRate"},{title:"良好率",dataIndex:"goodRate",key:"goodRate"},{title:"待改进率",dataIndex:"poorRate",key:"poorRate"},{title:"申诉数",dataIndex:"appealCount",key:"appealCount"}],dataSource:[{key:"1",agent:"张三",totalInspections:156,averageScore:92.5,excellentRate:"75.6%",goodRate:"20.5%",poorRate:"3.9%",appealCount:2},{key:"2",agent:"李四",totalInspections:142,averageScore:88.3,excellentRate:"65.5%",goodRate:"28.2%",poorRate:"6.3%",appealCount:5},{key:"3",agent:"王五",totalInspections:168,averageScore:90.1,excellentRate:"70.2%",goodRate:"25.0%",poorRate:"4.8%",appealCount:3}],pagination:!1})})]})})}},9248:function(e,t,n){var a=n(70065);t.Z=a.Z},5858:function(e,t,n){var a=n(70231);t.Z=a.Z},14318:function(e,t,n){n.d(t,{Z:function(){return R}});var a=n(44194),r=n(99026),l=n(59644),o=n(26867),s=n(51865),i=n.n(s),c=n(53230),u=n(81424),p=n(83043);var d=e=>{const{value:t,formatter:n,precision:r,decimalSeparator:l,groupSeparator:o="",prefixCls:s}=e;let i;if("function"==typeof n)i=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 r&&(c=c.padEnd(r,"0").slice(0,r>0?r:0)),c&&(c=`${l}${c}`),i=[a.createElement("span",{key:"int",className:`${s}-content-value-int`},e,t),c&&a.createElement("span",{key:"decimal",className:`${s}-content-value-decimal`},c)]}else i=e}return a.createElement("span",{className:`${s}-content-value`},i)},f=n(15273),m=n(81254),x=n(10750);const g=e=>{const{componentCls:t,marginXXS:n,padding:a,colorTextDescription:r,titleFontSize:l,colorTextHeading:o,contentFontSize:s,fontFamily:i}=e;return{[t]:Object.assign(Object.assign({},(0,f.Wf)(e)),{[`${t}-title`]:{marginBottom:n,color:r,fontSize:l},[`${t}-skeleton`]:{paddingTop:a},[`${t}-content`]:{color:o,fontSize:s,fontFamily:i,[`${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 v=(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 a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n};const y=a.forwardRef(((e,t)=>{const{prefixCls:n,className:r,rootClassName:l,style:o,valueStyle:s,value:f=0,title:m,valueRender:x,prefix:g,suffix:y,loading:j=!1,formatter:Z,precision:S,decimalSeparator:b=".",groupSeparator:O=",",onMouseEnter:w,onMouseLeave:E}=e,R=h(e,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:$,direction:k,className:C,style:I}=(0,u.dj)("statistic"),z=$("statistic",n),[N,M,P]=v(z),F=a.createElement(d,{decimalSeparator:b,groupSeparator:O,prefixCls:z,formatter:Z,precision:S,value:f}),H=i()(z,{[`${z}-rtl`]:"rtl"===k},C,r,l,M,P),B=a.useRef(null);a.useImperativeHandle(t,(()=>({nativeElement:B.current})));const T=(0,c.Z)(R,{aria:!0,data:!0});return N(a.createElement("div",Object.assign({},T,{ref:B,className:H,style:Object.assign(Object.assign({},I),o),onMouseEnter:w,onMouseLeave:E}),m&&a.createElement("div",{className:`${z}-title`},m),a.createElement(p.Z,{paragraph:!1,loading:j,className:`${z}-skeleton`},a.createElement("div",{style:s,className:`${z}-content`},g&&a.createElement("span",{className:`${z}-content-prefix`},g),x?x(F):F,y&&a.createElement("span",{className:`${z}-content-suffix`},y)))))}));var j=y;const Z=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]];function S(e,t,n){const{format:a=""}=t,r=new Date(e).getTime(),l=Date.now();return function(e,t){let n=e;const a=/\[[^\]]*]/g,r=(t.match(a)||[]).map((e=>e.slice(1,-1))),l=t.replace(a,"[]"),o=Z.reduce(((e,[t,a])=>{if(e.includes(t)){const r=Math.floor(n/a);return n-=r*a,e.replace(new RegExp(`${t}+`,"g"),(e=>{const t=e.length;return r.toString().padStart(t,"0")}))}return e}),l);let s=0;return o.replace(a,(()=>{const e=r[s];return s+=1,e}))}(n?Math.max(r-l,0):Math.max(l-r,0),a)}var b=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n};var O=e=>{const{value:t,format:n="HH:mm:ss",onChange:s,onFinish:i,type:c}=e,u=b(e,["value","format","onChange","onFinish","type"]),p="countdown"===c,[d,f]=a.useState(null),m=(0,r.zX)((()=>{const e=Date.now(),n=function(e){return new Date(e).getTime()}(t);f({});return null==s||s(p?n-e:e-n),!(p&&n<e)||(null==i||i(),!1)}));a.useEffect((()=>{let e;const t=()=>{e=(0,l.Z)((()=>{m()&&t()}))};return t(),()=>l.Z.cancel(e)}),[t,p]),a.useEffect((()=>{f({})}),[]);return a.createElement(j,Object.assign({},u,{value:t,valueRender:e=>(0,o.Tm)(e,{title:void 0}),formatter:(e,t)=>d?S(e,Object.assign(Object.assign({},t),{format:n}),p):"-"}))};const w=e=>a.createElement(O,Object.assign({},e,{type:"countdown"}));var E=a.memo(w);j.Timer=O,j.Countdown=E;var R=j}}]);