"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[9206],{61658:function(e,l,t){t.d(l,{Z:function(){return c}});var n=t(77260),a=t(44194),s={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(5901),i=function(e,l){return a.createElement(r.Z,(0,n.Z)({},e,{ref:l,icon:s}))};var c=a.forwardRef(i)},47719:function(e,l,t){t.d(l,{Z:function(){return c}});var n=t(77260),a=t(44194),s={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(5901),i=function(e,l){return a.createElement(r.Z,(0,n.Z)({},e,{ref:l,icon:s}))};var c=a.forwardRef(i)},44056:function(e,l,t){t.r(l);var n=t(45332),a=t.n(n),s=t(44194),r=t(34251),i=t(25950),c=t(34651),d=t(43443),u=t(43413),x=t(77407),h=t(63065),o=t(68525),m=t(35129),j=t(5858),Z=t(9248),f=t(14030),y=t(38862),v=t(61658),p=t(47719),k=t(41881),g=t(91768),q=t(6992),w=t(31549),I=r.Z.Option,z=i.Z.TextArea;l.default=function(){var e=s.useState(!1),l=a()(e,2),t=l[0],n=l[1],P=s.useState(null),b=a()(P,2),C=b[0],E=b[1],F=c.Z.useForm(),N=a()(F,1)[0],S=[{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 l="运行中"===e?"green":"已暂停"===e?"orange":"red";return(0,w.jsx)(d.Z,{color:l,children:e})}},{title:"上次执行",dataIndex:"lastExecute",key:"lastExecute"},{title:"下次执行",dataIndex:"nextExecute",key:"nextExecute"},{title:"操作",key:"action",render:function(e,l){return(0,w.jsxs)(u.Z,{size:"middle",children:[(0,w.jsx)(x.ZP,{type:"link",size:"small",icon:"运行中"===l.status?(0,w.jsx)(v.Z,{}):(0,w.jsx)(p.Z,{}),children:"运行中"===l.status?"暂停":"启动"}),(0,w.jsx)(x.ZP,{type:"link",size:"small",icon:(0,w.jsx)(k.Z,{}),onClick:function(){return T(l)},children:"编辑"}),(0,w.jsx)(x.ZP,{type:"link",size:"small",danger:!0,icon:(0,w.jsx)(g.Z,{}),children:"删除"})]})}}],T=function(e){E(e),n(!0),N.setFieldsValue(e)};return(0,w.jsx)("div",{style:{padding:"20px"},children:(0,w.jsxs)(h.Z,{title:"智能质检任务",extra:(0,w.jsx)(x.ZP,{type:"primary",icon:(0,w.jsx)(q.Z,{}),onClick:function(){E(null),n(!0),N.resetFields()},children:"新建任务"}),children:[(0,w.jsx)("div",{style:{marginBottom:16},children:(0,w.jsxs)(u.Z,{wrap:!0,children:[(0,w.jsx)(i.Z,{placeholder:"搜索任务名称",style:{width:200}}),(0,w.jsxs)(r.Z,{placeholder:"状态",style:{width:120},children:[(0,w.jsx)(I,{value:"all",children:"全部"}),(0,w.jsx)(I,{value:"running",children:"运行中"}),(0,w.jsx)(I,{value:"paused",children:"已暂停"}),(0,w.jsx)(I,{value:"stopped",children:"已停止"})]}),(0,w.jsxs)(r.Z,{placeholder:"执行频率",style:{width:120},children:[(0,w.jsx)(I,{value:"all",children:"全部"}),(0,w.jsx)(I,{value:"daily",children:"每日"}),(0,w.jsx)(I,{value:"weekly",children:"每周"}),(0,w.jsx)(I,{value:"monthly",children:"每月"})]}),(0,w.jsx)(x.ZP,{type:"primary",children:"搜索"})]})}),(0,w.jsx)(o.Z,{columns:S,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,w.jsx)(m.Z,{title:C?"编辑质检任务":"新建质检任务",open:t,onOk:function(){N.validateFields().then((function(e){console.log("Form values:",e),n(!1),N.resetFields()}))},onCancel:function(){n(!1),N.resetFields()},width:800,children:(0,w.jsxs)(c.Z,{form:N,layout:"vertical",children:[(0,w.jsxs)(j.Z,{gutter:16,children:[(0,w.jsx)(Z.Z,{span:12,children:(0,w.jsx)(c.Z.Item,{name:"taskName",label:"任务名称",rules:[{required:!0,message:"请输入任务名称"}],children:(0,w.jsx)(i.Z,{placeholder:"请输入任务名称"})})}),(0,w.jsx)(Z.Z,{span:12,children:(0,w.jsx)(c.Z.Item,{name:"qualityPlan",label:"质检方案",rules:[{required:!0,message:"请选择质检方案"}],children:(0,w.jsxs)(r.Z,{placeholder:"请选择质检方案",children:[(0,w.jsx)(I,{value:"标准会话质检方案",children:"标准会话质检方案"}),(0,w.jsx)(I,{value:"高级会话质检方案",children:"高级会话质检方案"}),(0,w.jsx)(I,{value:"通话质检方案",children:"通话质检方案"})]})})})]}),(0,w.jsxs)(j.Z,{gutter:16,children:[(0,w.jsx)(Z.Z,{span:12,children:(0,w.jsx)(c.Z.Item,{name:"frequency",label:"执行频率",rules:[{required:!0,message:"请选择执行频率"}],children:(0,w.jsxs)(r.Z,{placeholder:"请选择执行频率",children:[(0,w.jsx)(I,{value:"每日",children:"每日"}),(0,w.jsx)(I,{value:"每周",children:"每周"}),(0,w.jsx)(I,{value:"每月",children:"每月"}),(0,w.jsx)(I,{value:"自定义",children:"自定义"})]})})}),(0,w.jsx)(Z.Z,{span:12,children:(0,w.jsx)(c.Z.Item,{name:"executeTime",label:"执行时间",rules:[{required:!0,message:"请选择执行时间"}],children:(0,w.jsx)(f.Z,{format:"HH:mm",style:{width:"100%"}})})})]}),(0,w.jsx)(c.Z.Item,{name:"description",label:"任务描述",children:(0,w.jsx)(z,{rows:3,placeholder:"请输入任务描述"})}),(0,w.jsx)(c.Z.Item,{name:"autoStart",label:"自动启动",valuePropName:"checked",children:(0,w.jsx)(y.Z,{checkedChildren:"是",unCheckedChildren:"否"})})]})})]})})}},9248:function(e,l,t){var n=t(70065);l.Z=n.Z},5858:function(e,l,t){var n=t(70231);l.Z=n.Z}}]);