mirror of
https://gitee.com/270580156/weiyu.git
synced 2026-05-13 19:02:51 +00:00
1 line
16 KiB
JavaScript
1 line
16 KiB
JavaScript
"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[9206],{54881:function(e,n,t){t.d(n,{Z:function(){return d}});var i=t(83910),a=t(44194),l={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"},r=t(54183),c=function(e,n){return a.createElement(r.Z,(0,i.Z)({},e,{ref:n,icon:l}))};var d=a.forwardRef(c)},85255:function(e,n,t){t.d(n,{Z:function(){return d}});var i=t(83910),a=t(44194),l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm-88-532h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8zm224 0h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8z"}}]},name:"pause-circle",theme:"outlined"},r=t(54183),c=function(e,n){return a.createElement(r.Z,(0,i.Z)({},e,{ref:n,icon:l}))};var d=a.forwardRef(c)},82945:function(e,n,t){t.d(n,{Z:function(){return d}});var i=t(83910),a=t(44194),l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}]},name:"play-circle",theme:"outlined"},r=t(54183),c=function(e,n){return a.createElement(r.Z,(0,i.Z)({},e,{ref:n,icon:l}))};var d=a.forwardRef(c)},25323:function(e,n,t){t.r(n);var i=t(45332),a=t.n(i),l=t(44194),r=t(13847),c=t(32525),d=t(41196),o=t(81739),s=t(39487),u=t(82770),h=t(40110),m=t(54943),g=t(86895),f=t(34201),p=t(79489),x=t(739),k=t(66431),v=t(85255),b=t(82945),$=t(59304),y=t(54881),I=t(10162),S=t(31549),j=r.Z.Option,w=c.Z.TextArea;n.default=function(){var e=l.useState(!1),n=a()(e,2),t=n[0],i=n[1],Z=l.useState(null),C=a()(Z,2),E=C[0],M=C[1],q=d.Z.useForm(),z=a()(q,1)[0],O=[{title:"任务名称",dataIndex:"taskName",key:"taskName"},{title:"质检方案",dataIndex:"qualityPlan",key:"qualityPlan"},{title:"执行频率",dataIndex:"frequency",key:"frequency"},{title:"执行时间",dataIndex:"executeTime",key:"executeTime"},{title:"状态",dataIndex:"status",key:"status",render:function(e){var n="运行中"===e?"green":"已暂停"===e?"orange":"red";return(0,S.jsx)(o.Z,{color:n,children:e})}},{title:"上次执行",dataIndex:"lastExecute",key:"lastExecute"},{title:"下次执行",dataIndex:"nextExecute",key:"nextExecute"},{title:"操作",key:"action",render:function(e,n){return(0,S.jsxs)(s.Z,{size:"middle",children:[(0,S.jsx)(u.ZP,{type:"link",size:"small",icon:"运行中"===n.status?(0,S.jsx)(v.Z,{}):(0,S.jsx)(b.Z,{}),children:"运行中"===n.status?"暂停":"启动"}),(0,S.jsx)(u.ZP,{type:"link",size:"small",icon:(0,S.jsx)($.Z,{}),onClick:function(){return P(n)},children:"编辑"}),(0,S.jsx)(u.ZP,{type:"link",size:"small",danger:!0,icon:(0,S.jsx)(y.Z,{}),children:"删除"})]})}}],P=function(e){M(e),i(!0),z.setFieldsValue(e)};return(0,S.jsx)("div",{style:{padding:"20px"},children:(0,S.jsxs)(h.Z,{title:"智能质检任务",extra:(0,S.jsx)(u.ZP,{type:"primary",icon:(0,S.jsx)(I.Z,{}),onClick:function(){M(null),i(!0),z.resetFields()},children:"新建任务"}),children:[(0,S.jsx)("div",{style:{marginBottom:16},children:(0,S.jsxs)(s.Z,{wrap:!0,children:[(0,S.jsx)(c.Z,{placeholder:"搜索任务名称",style:{width:200}}),(0,S.jsxs)(r.Z,{placeholder:"状态",style:{width:120},children:[(0,S.jsx)(j,{value:"all",children:"全部"}),(0,S.jsx)(j,{value:"running",children:"运行中"}),(0,S.jsx)(j,{value:"paused",children:"已暂停"}),(0,S.jsx)(j,{value:"stopped",children:"已停止"})]}),(0,S.jsxs)(r.Z,{placeholder:"执行频率",style:{width:120},children:[(0,S.jsx)(j,{value:"all",children:"全部"}),(0,S.jsx)(j,{value:"daily",children:"每日"}),(0,S.jsx)(j,{value:"weekly",children:"每周"}),(0,S.jsx)(j,{value:"monthly",children:"每月"})]}),(0,S.jsx)(u.ZP,{type:"primary",children:"搜索"})]})}),(0,S.jsx)(m.Z,{columns:O,dataSource:[{key:"1",taskName:"日常会话质检任务",qualityPlan:"标准会话质检方案",frequency:"每日",executeTime:"09:00",status:"运行中",lastExecute:"2025-01-16 09:00:00",nextExecute:"2025-01-17 09:00:00"},{key:"2",taskName:"周度质检任务",qualityPlan:"高级会话质检方案",frequency:"每周",executeTime:"周一 10:00",status:"已暂停",lastExecute:"2025-01-13 10:00:00",nextExecute:"2025-01-20 10:00:00"}]}),(0,S.jsx)(g.Z,{title:E?"编辑质检任务":"新建质检任务",open:t,onOk:function(){z.validateFields().then((function(e){console.log("Form values:",e),i(!1),z.resetFields()}))},onCancel:function(){i(!1),z.resetFields()},width:800,children:(0,S.jsxs)(d.Z,{form:z,layout:"vertical",children:[(0,S.jsxs)(f.Z,{gutter:16,children:[(0,S.jsx)(p.Z,{span:12,children:(0,S.jsx)(d.Z.Item,{name:"taskName",label:"任务名称",rules:[{required:!0,message:"请输入任务名称"}],children:(0,S.jsx)(c.Z,{placeholder:"请输入任务名称"})})}),(0,S.jsx)(p.Z,{span:12,children:(0,S.jsx)(d.Z.Item,{name:"qualityPlan",label:"质检方案",rules:[{required:!0,message:"请选择质检方案"}],children:(0,S.jsxs)(r.Z,{placeholder:"请选择质检方案",children:[(0,S.jsx)(j,{value:"标准会话质检方案",children:"标准会话质检方案"}),(0,S.jsx)(j,{value:"高级会话质检方案",children:"高级会话质检方案"}),(0,S.jsx)(j,{value:"通话质检方案",children:"通话质检方案"})]})})})]}),(0,S.jsxs)(f.Z,{gutter:16,children:[(0,S.jsx)(p.Z,{span:12,children:(0,S.jsx)(d.Z.Item,{name:"frequency",label:"执行频率",rules:[{required:!0,message:"请选择执行频率"}],children:(0,S.jsxs)(r.Z,{placeholder:"请选择执行频率",children:[(0,S.jsx)(j,{value:"每日",children:"每日"}),(0,S.jsx)(j,{value:"每周",children:"每周"}),(0,S.jsx)(j,{value:"每月",children:"每月"}),(0,S.jsx)(j,{value:"自定义",children:"自定义"})]})})}),(0,S.jsx)(p.Z,{span:12,children:(0,S.jsx)(d.Z.Item,{name:"executeTime",label:"执行时间",rules:[{required:!0,message:"请选择执行时间"}],children:(0,S.jsx)(x.Z,{format:"HH:mm",style:{width:"100%"}})})})]}),(0,S.jsx)(d.Z.Item,{name:"description",label:"任务描述",children:(0,S.jsx)(w,{rows:3,placeholder:"请输入任务描述"})}),(0,S.jsx)(d.Z.Item,{name:"autoStart",label:"自动启动",valuePropName:"checked",children:(0,S.jsx)(k.Z,{checkedChildren:"是",unCheckedChildren:"否"})})]})})]})})}},66431:function(e,n,t){t.d(n,{Z:function(){return P}});var i=t(44194),a=t(54883),l=t(51865),r=t.n(l),c=t(83910),d=t(1206),o=t(32906),s=t(38956),u=t(81424),h=t(46748),m=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],g=i.forwardRef((function(e,n){var t,a=e.prefixCls,l=void 0===a?"rc-switch":a,g=e.className,f=e.checked,p=e.defaultChecked,x=e.disabled,k=e.loadingIcon,v=e.checkedChildren,b=e.unCheckedChildren,$=e.onClick,y=e.onChange,I=e.onKeyDown,S=(0,s.Z)(e,m),j=(0,u.Z)(!1,{value:f,defaultValue:p}),w=(0,o.Z)(j,2),Z=w[0],C=w[1];function E(e,n){var t=Z;return x||(C(t=e),null==y||y(t,n)),t}var M=r()(l,g,(t={},(0,d.Z)(t,"".concat(l,"-checked"),Z),(0,d.Z)(t,"".concat(l,"-disabled"),x),t));return i.createElement("button",(0,c.Z)({},S,{type:"button",role:"switch","aria-checked":Z,disabled:x,className:M,ref:n,onKeyDown:function(e){e.which===h.Z.LEFT?E(!1,e):e.which===h.Z.RIGHT&&E(!0,e),null==I||I(e)},onClick:function(e){var n=E(!Z,e);null==$||$(n,e)}}),k,i.createElement("span",{className:"".concat(l,"-inner")},i.createElement("span",{className:"".concat(l,"-inner-checked")},v),i.createElement("span",{className:"".concat(l,"-inner-unchecked")},b)))}));g.displayName="Switch";var f=g,p=t(34972),x=t(31246),k=t(38066),v=t(64357),b=t(59199),$=t(87471),y=t(54184),I=t(51858),S=t(77167);const j=e=>{const{componentCls:n,trackHeightSM:t,trackPadding:i,trackMinWidthSM:a,innerMinMarginSM:l,innerMaxMarginSM:r,handleSizeSM:c,calc:d}=e,o=`${n}-inner`,s=(0,b.bf)(d(c).add(d(i).mul(2)).equal()),u=(0,b.bf)(d(r).mul(2).equal());return{[n]:{[`&${n}-small`]:{minWidth:a,height:t,lineHeight:(0,b.bf)(t),[`${n}-inner`]:{paddingInlineStart:r,paddingInlineEnd:l,[`${o}-checked, ${o}-unchecked`]:{minHeight:t},[`${o}-checked`]:{marginInlineStart:`calc(-100% + ${s} - ${u})`,marginInlineEnd:`calc(100% - ${s} + ${u})`},[`${o}-unchecked`]:{marginTop:d(t).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${n}-handle`]:{width:c,height:c},[`${n}-loading-icon`]:{top:d(d(c).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${n}-checked`]:{[`${n}-inner`]:{paddingInlineStart:l,paddingInlineEnd:r,[`${o}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${o}-unchecked`]:{marginInlineStart:`calc(100% - ${s} + ${u})`,marginInlineEnd:`calc(-100% + ${s} - ${u})`}},[`${n}-handle`]:{insetInlineStart:`calc(100% - ${(0,b.bf)(d(c).add(i).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:t,calc:i}=e;return{[n]:{[`${n}-loading-icon${e.iconCls}`]:{position:"relative",top:i(i(t).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${n}-checked ${n}-loading-icon`]:{color:e.switchColor}}}},Z=e=>{const{componentCls:n,trackPadding:t,handleBg:i,handleShadow:a,handleSize:l,calc:r}=e,c=`${n}-handle`;return{[n]:{[c]:{position:"absolute",top:t,insetInlineStart:t,width:l,height:l,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:i,borderRadius:r(l).div(2).equal(),boxShadow:a,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${n}-checked ${c}`]:{insetInlineStart:`calc(100% - ${(0,b.bf)(r(l).add(t).equal())})`},[`&:not(${n}-disabled):active`]:{[`${c}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${n}-checked ${c}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},C=e=>{const{componentCls:n,trackHeight:t,trackPadding:i,innerMinMargin:a,innerMaxMargin:l,handleSize:r,calc:c}=e,d=`${n}-inner`,o=(0,b.bf)(c(r).add(c(i).mul(2)).equal()),s=(0,b.bf)(c(l).mul(2).equal());return{[n]:{[d]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:l,paddingInlineEnd:a,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:t},[`${d}-checked`]:{marginInlineStart:`calc(-100% + ${o} - ${s})`,marginInlineEnd:`calc(100% - ${o} + ${s})`},[`${d}-unchecked`]:{marginTop:c(t).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${n}-checked ${d}`]:{paddingInlineStart:a,paddingInlineEnd:l,[`${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:c(i).mul(2).equal(),marginInlineEnd:c(i).mul(-1).mul(2).equal()}},[`&${n}-checked ${d}`]:{[`${d}-checked`]:{marginInlineStart:c(i).mul(-1).mul(2).equal(),marginInlineEnd:c(i).mul(2).equal()}}}}}},E=e=>{const{componentCls:n,trackHeight:t,trackMinWidth:i}=e;return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,y.Wf)(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:i,height:t,lineHeight:(0,b.bf)(t),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,y.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 M=(0,I.I$)("Switch",(e=>{const n=(0,S.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[E(n),C(n),Z(n),w(n),j(n)]}),(e=>{const{fontSize:n,lineHeight:t,controlHeight:i,colorWhite:a}=e,l=n*t,r=i/2,c=l-4,d=r-4;return{trackHeight:l,trackHeightSM:r,trackMinWidth:2*c+8,trackMinWidthSM:2*d+4,trackPadding:2,handleBg:a,handleSize:c,handleSizeSM:d,handleShadow:`0 2px 4px 0 ${new $.t("#00230b").setA(.2).toRgbString()}`,innerMinMargin:c/2,innerMaxMargin:c+2+4,innerMinMarginSM:d/2,innerMaxMarginSM:d+2+4}})),q=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a<i.length;a++)n.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(t[i[a]]=e[i[a]])}return t};const z=i.forwardRef(((e,n)=>{const{prefixCls:t,size:l,disabled:c,loading:d,className:o,rootClassName:s,style:h,checked:m,value:g,defaultChecked:b,defaultValue:$,onChange:y}=e,I=q(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[S,j]=(0,u.Z)(!1,{value:null!=m?m:g,defaultValue:null!=b?b:$}),{getPrefixCls:w,direction:Z,switch:C}=i.useContext(x.E_),E=i.useContext(k.Z),z=(null!=c?c:E)||d,O=w("switch",t),P=i.createElement("div",{className:`${O}-handle`},d&&i.createElement(a.Z,{className:`${O}-loading-icon`})),[N,H,T]=M(O),D=(0,v.Z)(l),R=r()(null==C?void 0:C.className,{[`${O}-small`]:"small"===D,[`${O}-loading`]:d,[`${O}-rtl`]:"rtl"===Z},o,s,H,T),F=Object.assign(Object.assign({},null==C?void 0:C.style),h);return N(i.createElement(p.Z,{component:"Switch",disabled:z},i.createElement(f,Object.assign({},I,{checked:S,onChange:(...e)=>{j(e[0]),null==y||y.apply(void 0,e)},prefixCls:O,className:R,style:F,disabled:z,ref:n,loadingIcon:P}))))})),O=z;O.__ANT_SWITCH=!0;var P=O},739:function(e,n,t){var i=t(44194),a=t(51539),l=t(35281),r=t(58276),c=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a<i.length;a++)n.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(t[i[a]]=e[i[a]])}return t};const{TimePicker:d,RangePicker:o}=l.default,s=i.forwardRef(((e,n)=>i.createElement(o,Object.assign({},e,{picker:"time",mode:void 0,ref:n})))),u=i.forwardRef(((e,n)=>{var{addon:t,renderExtraFooter:a,variant:l,bordered:o}=e,s=c(e,["addon","renderExtraFooter","variant","bordered"]);const[u]=(0,r.Z)("timePicker",l,o),h=i.useMemo((()=>a||(t||void 0)),[t,a]);return i.createElement(d,Object.assign({},s,{mode:void 0,ref:n,renderExtraFooter:h,variant:u}))}));const h=(0,a.Z)(u,"popupAlign",void 0,"picker");u._InternalPanelDoNotUseOrYouWillBeFired=h,u.RangePicker=s,u._InternalPanelDoNotUseOrYouWillBeFired=h,n.Z=u}}]); |