Files
weiyu/deploy/server/admin/p__Dashboard__Quality__smart-config__task.e0df7e7e.async.js

1 line
16 KiB
JavaScript
Raw Normal View History

2025-10-31 17:17:24 +08:00
"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[9206],{91768: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(5901),c=function(e,n){return a.createElement(r.Z,(0,i.Z)({},e,{ref:n,icon:l}))};var d=a.forwardRef(c)},61658: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(5901),c=function(e,n){return a.createElement(r.Z,(0,i.Z)({},e,{ref:n,icon:l}))};var d=a.forwardRef(c)},47719: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(5901),c=function(e,n){return a.createElement(r.Z,(0,i.Z)({},e,{ref:n,icon:l}))};var d=a.forwardRef(c)},29299:function(e,n,t){t.r(n);var i=t(45332),a=t.n(i),l=t(44194),r=t(78380),c=t(13243),d=t(70878),o=t(33633),s=t(89654),u=t(72264),h=t(63052),m=t(44966),g=t(66248),f=t(21478),p=t(22888),x=t(49736),k=t(15065),v=t(61658),b=t(47719),$=t(41881),y=t(91768),I=t(6992),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:"