diff --git a/dist/102.async.js b/dist/102.async.js new file mode 100644 index 0000000000000000000000000000000000000000..4ec7d71af8f3bc5425548d1a5a35db84f409804f --- /dev/null +++ b/dist/102.async.js @@ -0,0 +1,37 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[102],{59511:function(xe,X,e){e.d(X,{Z:function(){return W}});var H=e(84045),m=e(50959),V={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M456 231a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"more",theme:"outlined"},E=V,q=e(81851),p=function(r,j){return m.createElement(q.Z,(0,H.Z)((0,H.Z)({},r),{},{ref:j,icon:E}))};p.displayName="MoreOutlined";var W=m.forwardRef(p)},10423:function(xe,X,e){e.d(X,{Z:function(){return W}});var H=e(84045),m=e(50959),V={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"},E=V,q=e(81851),p=function(r,j){return m.createElement(q.Z,(0,H.Z)((0,H.Z)({},r),{},{ref:j,icon:E}))};p.displayName="ReloadOutlined";var W=m.forwardRef(p)},89738:function(xe,X,e){e.d(X,{_:function(){return p}});var H=e(30279),m=e.n(H),V=e(50959),E=e(10790),q=e(11527),p=function(K){return m()({ellipsis:!0,render:function(j){return(0,q.jsx)(E.Z,{children:j})}},K)}},87180:function(xe,X,e){e.d(X,{Fk:function(){return j}});var H=e(99976),m=e.n(H),V=e(50959),E=e(17398),q=e(11527),p,W=function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:5;return new Map([[0,"#96043E"],[1,"#F5222D"],[2,"#FAAD14"],[3,"#0088FF"],[4,"#7DC0FB"],[5,"#000000"]]).get(Y)},K=null,r=E.ZP.div(p||(p=m()([` + height: 16px; + width: 24px; + border-radius: 8px; + font-size: 10px; + color: #FFFFFF; + text-align: center; + line-height: 16px; + background-color: `,`; +`])),function(G){var Y=G.color;return Y??W()}),j=function(Y){var T=Y.priority;return(0,q.jsx)(r,{color:W(T),children:"P".concat(T)})}},2162:function(xe,X,e){e.d(X,{Z:function(){return R}});var H=e(99976),m=e.n(H),V=e(50959),E=e(92750),q=e(22526),p=e(814),W=e(21511),K=e(11266),r=e(17398),j=e(66949),G=Object.defineProperty,Y=Object.getOwnPropertySymbols,T=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable,re=(ee,_,M)=>_ in ee?G(ee,_,{enumerable:!0,configurable:!0,writable:!0,value:M}):ee[_]=M,ye=(ee,_)=>{for(var M in _||(_={}))T.call(_,M)&&re(ee,M,_[M]);if(Y)for(var M of Y(_))$.call(_,M)&&re(ee,M,_[M]);return ee};const ce=ee=>V.createElement("svg",ye({width:32,height:32,xmlns:"http://www.w3.org/2000/svg"},ee),V.createElement("title",null,"\u4F18\u5148\u7EA7"),V.createElement("g",{fill:"none",fillRule:"evenodd"},V.createElement("rect",{fill:"#D8D8D8",opacity:.2,width:32,height:32,rx:16}),V.createElement("path",{d:"M20.348 14.016h-3.11l2.006-4.314c.1-.302-.2-.704-.502-.704H14.73c-.2 0-.402.1-.502.302l-3.01 8.027c-.1.401.2.701.5.701h3.513l-1.003 4.516v.1c0 .2.2.401.402.401.1 0 .301-.1.301-.2l5.819-8.028c.2-.401 0-.801-.402-.801Z",opacity:.5,fill:"#000",fillRule:"nonzero"})));var Ee="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSIjRDhEOEQ4IiBvcGFjaXR5PSIuMiIgd2lkdGg9IjMyIiBoZWlnaHQ9IjMyIiByeD0iMTYiLz48cGF0aCBkPSJNMjAuMzQ4IDE0LjAxNmgtMy4xMWwyLjAwNi00LjMxNGMuMS0uMzAyLS4yLS43MDQtLjUwMi0uNzA0SDE0LjczYy0uMiAwLS40MDIuMS0uNTAyLjMwMmwtMy4wMSA4LjAyN2MtLjEuNDAxLjIuNzAxLjUuNzAxaDMuNTEzbC0xLjAwMyA0LjUxNnYuMWMwIC4yLjIuNDAxLjQwMi40MDEuMSAwIC4zMDEtLjEuMzAxLS4ybDUuODE5LTguMDI4Yy4yLS40MDEgMC0uODAxLS40MDItLjgwMVoiIG9wYWNpdHk9Ii41IiBmaWxsPSIjMDAwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L2c+PC9zdmc+",I=e(11527),w,k,ie=r.ZP.div(w||(w=m()([` + width: 32px; + height: 32px; + display: flex; + justify-content: center; + align-items: center; + border-radius: 50%; + overflow: hidden; +`]))),A=r.ZP.div(k||(k=m()([` + display: flex; + flex-direction: column; + .select_menu_cls { + .ant-select-selector { + padding: 0!important; + margin-right: 6px; + font-size: 14px; + height: 22px!important; + } + } +`]))),fe=function(_){var M=_.left,se=_.right;return(0,I.jsxs)(E.Z,{children:[(0,I.jsx)(q.Z,{span:M.span||12,children:(0,I.jsxs)(p.Z,{size:12,align:"center",children:[(0,I.jsx)(W.C,{shape:"circle",src:M.icon||j}),(0,I.jsxs)(A,{children:[(0,I.jsx)(K.Z.Text,{style:{marginBottom:-4},children:M.data||"-"}),(0,I.jsx)("div",{style:{fontSize:12,color:"rgba(0,0,0,0.45)"},children:M.title})]})]})}),(0,I.jsx)(q.Z,{span:se.span||12,children:(0,I.jsxs)(p.Z,{size:12,align:"center",children:[(0,I.jsx)(ie,{children:(0,I.jsx)(ce,{})}),(0,I.jsxs)(A,{children:[(0,I.jsx)("div",{style:{marginBottom:-1},children:se.data}),(0,I.jsx)("div",{style:{fontSize:12,color:"rgba(0,0,0,0.45)"},children:se.title})]})]})})]})},R=fe},85822:function(xe,X,e){var H=e(46686),m=e.n(H),V=e(99976),E=e.n(V),q=e(17398),p=e(50959),W=e(64093),K=e(90500),r=e(11527),j,G=q.ZP.div(j||(j=E()([` + width: 100%; + height: 100%; + + img { + max-height: 300px; + cursor: pointer; + } +`]))),Y=function($){var re=$.content,ye=re===void 0?[]:re,ce=$.style,Ee=p.useState(!1),I=m()(Ee,2),w=I[0],k=I[1],ie=p.useState(""),A=m()(ie,2),fe=A[0],R=A[1],ee=function(M){var se=M.target;se.tagName==="IMG"&&(R(se.src),k(!0))};return p.useEffect(function(){return function(){R(""),k(!1)}},[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(G,{onClick:ee,style:ce,dangerouslySetInnerHTML:{__html:(0,W.createEditor)({content:ye}).getHtml()}}),(0,r.jsx)(K.Z,{width:200,style:{display:"none"},preview:{visible:w,src:fe,onVisibleChange:function(M){k(M)}}})]})};X.Z=Y},73427:function(xe,X,e){var H=e(35290),m=e.n(H),V=e(411),E=e.n(V),q=e(46686),p=e.n(q),W=e(50959),K=e(62945),r=e(814),j=e(61857),G=e(11266),Y=e(69858),T=e(11527),$=function(ye,ce){var Ee=ye.onOk,I=W.useState(!1),w=p()(I,2),k=w[0],ie=w[1],A=W.useState(!1),fe=p()(A,2),R=fe[0],ee=fe[1],_=W.useState(void 0),M=p()(_,2),se=M[0],be=M[1];W.useImperativeHandle(ce,function(){return{show:function(_e){be(_e),ie(!0)}}});var Oe=function(){ie(!1),ee(!1)},je=function(){var Ze=E()(m()().mark(function _e(){return m()().wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:Ee(se),Oe();case 2:case"end":return Ce.stop()}},_e)}));return function(){return Ze.apply(this,arguments)}}();return(0,T.jsx)(K.Z,{visible:k,title:"\u5220\u9664\u63D0\u793A",width:"28%",footer:(0,T.jsxs)(r.Z,{align:"end",children:[(0,T.jsx)(j.Z,{onClick:Oe,children:"\u53D6\u6D88"}),(0,T.jsx)(j.Z,{onClick:je,disabled:R,type:"danger",children:"\u786E\u5B9A\u5220\u9664"})]}),onCancel:Oe,children:(0,T.jsx)(G.Z.Text,{type:"danger",children:(0,T.jsxs)(r.Z,{children:[(0,T.jsx)(Y.Z,{}),"\u8BE5\u64CD\u4F5C\u4E0D\u53EF\u9006\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C"]})})})};X.Z=W.forwardRef($)},69102:function(xe,X,e){e.r(X),e.d(X,{default:function(){return ft}});var H=e(30279),m=e.n(H),V=e(35290),E=e.n(V),q=e(411),p=e.n(q),W=e(46686),K=e.n(W),r=e(50959),j=e(78284),G=e(92750),Y=e(93591),T=e(814),$=e(11266),re=e(61857),ye=e(20837),ce=e(35007),Ee=e(95331),I=e(22526),w=e(33872),k=e(46255),ie=e(29057),A=e(82269),fe=e(31307),R=e(62081),ee=e(19803),_=e.n(ee),M=e(61339),se=e(51283),be=e(67701),Oe=e(60062);function je(u){return Oe.Y.indexOf(u)!==-1}var Ze=function(n){var o,a=n.className,l=n.prefixCls,y=n.style,f=n.color,d=n.children,N=n.text,c=n.placement,C=c===void 0?"end":c,P=r.useContext(se.E_),J=P.getPrefixCls,U=P.direction,O=J("ribbon",l),v=je(f),D=_()(O,"".concat(O,"-placement-").concat(C),(o={},(0,A.Z)(o,"".concat(O,"-rtl"),U==="rtl"),(0,A.Z)(o,"".concat(O,"-color-").concat(f),v),o),a),te={},Z={};return f&&!v&&(te.background=f,Z.color=f),r.createElement("div",{className:"".concat(O,"-wrapper")},d,r.createElement("div",{className:D,style:(0,R.Z)((0,R.Z)({},te),y)},r.createElement("span",{className:"".concat(O,"-text")},N),r.createElement("div",{className:"".concat(O,"-corner"),style:Z})))},_e=Ze,Re=e(17361);function Ce(u){var n=u.prefixCls,o=u.value,a=u.current,l=u.offset,y=l===void 0?0:l,f;return y&&(f={position:"absolute",top:"".concat(y,"00%"),left:0}),r.createElement("span",{style:f,className:_()("".concat(n,"-only-unit"),{current:a})},o)}function Ue(u,n,o){for(var a=u,l=0;(a+10)%10!==n;)a+=o,l+=o;return l}function ze(u){var n=u.prefixCls,o=u.count,a=u.value,l=Number(a),y=Math.abs(o),f=r.useState(l),d=(0,Re.Z)(f,2),N=d[0],c=d[1],C=r.useState(y),P=(0,Re.Z)(C,2),J=P[0],U=P[1],O=function(){c(l),U(y)};r.useEffect(function(){var b=setTimeout(function(){O()},1e3);return function(){clearTimeout(b)}},[l]);var v,D;if(N===l||Number.isNaN(l)||Number.isNaN(N))v=[r.createElement(Ce,(0,R.Z)({},u,{key:l,current:!0}))],D={transition:"none"};else{v=[];for(var te=l+10,Z=[],s=l;s<=te;s+=1)Z.push(s);var x=Z.findIndex(function(b){return b%10===N});v=Z.map(function(b,le){var ne=b%10;return r.createElement(Ce,(0,R.Z)({},u,{key:b,value:ne,offset:le-x,current:le===x}))});var h=JU?"".concat(U,"+"):P,ge=d!=null||c!=null,B=he==="0"||he===0,F=v&&!B,g=F?"":he,S=(0,r.useMemo)(function(){var de=g==null||g==="";return(de||B&&!le)&&!F},[g,B,le,F]),Q=(0,r.useRef)(P);S||(Q.current=P);var ae=Q.current,i=(0,r.useRef)(g);S||(i.current=g);var Me=i.current,z=(0,r.useRef)(F);S||(z.current=F);var Pe=(0,r.useMemo)(function(){if(!s)return(0,R.Z)({},x);var de={marginTop:s[1]};return me==="rtl"?de.left=parseInt(s[0],10):de.right=-parseInt(s[0],10),(0,R.Z)((0,R.Z)({},de),x)},[me,s,x]),vt=Z??(typeof ae=="string"||typeof ae=="number"?ae:void 0),mt=S||!N?null:r.createElement("span",{className:"".concat(L,"-status-text")},N),ht=!ae||(0,fe.Z)(ae)!=="object"?void 0:(0,be.Tm)(ae,function(de){return{style:(0,R.Z)((0,R.Z)({},Pe),de.style)}}),gt=_()((o={},(0,A.Z)(o,"".concat(L,"-status-dot"),ge),(0,A.Z)(o,"".concat(L,"-status-").concat(d),!!d),(0,A.Z)(o,"".concat(L,"-status-").concat(c),je(c)),o)),Fe={};c&&!je(c)&&(Fe.background=c);var $e=_()(L,(a={},(0,A.Z)(a,"".concat(L,"-status"),ge),(0,A.Z)(a,"".concat(L,"-not-a-wrapper"),!f),(0,A.Z)(a,"".concat(L,"-rtl"),me==="rtl"),a),h);if(!f&&ge){var pt=Pe.color;return r.createElement("span",(0,R.Z)({},ne,{className:$e,style:Pe}),r.createElement("span",{className:gt,style:Fe}),r.createElement("span",{style:{color:pt},className:"".concat(L,"-status-text")},N))}return r.createElement("span",(0,R.Z)({},ne,{className:$e}),f,r.createElement(M.Z,{visible:!S,motionName:"".concat(L,"-zoom"),motionAppear:!1,motionDeadline:1e3},function(de){var pe,xt=de.className,yt=ve("scroll-number",y),Te=z.current,Et=_()((pe={},(0,A.Z)(pe,"".concat(L,"-dot"),Te),(0,A.Z)(pe,"".concat(L,"-count"),!Te),(0,A.Z)(pe,"".concat(L,"-count-sm"),te==="small"),(0,A.Z)(pe,"".concat(L,"-multiple-words"),!Te&&Me&&Me.toString().length>1),(0,A.Z)(pe,"".concat(L,"-status-").concat(d),!!d),(0,A.Z)(pe,"".concat(L,"-status-").concat(c),je(c)),pe)),De=(0,R.Z)({},Pe);return c&&!je(c)&&(De=De||{},De.background=c),r.createElement(Ke,{prefixCls:yt,show:!S,motionClassName:xt,className:Et,count:Me,title:vt,style:De,key:"scrollNumber"},ht)}),mt)};Ie.Ribbon=_e;var ke=Ie,He=e(89030),Ae=e(88453),Ve=e(87180),Ne=e(1164),t=e(11527),Ye=function(n){var o=n.onOk,a=n.canSelect,l=a===void 0?!0:a,y=n.dataSource,f=y===void 0?[]:y,d=r.useState([]),N=K()(d,2),c=N[0],C=N[1],P=r.useRef(null);r.useEffect(function(){o==null||o(c)},[c,o]);var J=function(v){C(c.filter(function(D){return D.id!==v.id}))},U=[{title:"\u7528\u4F8B\u540D\u79F0",ellipsis:!0,dataIndex:"name"},{title:"\u4F18\u5148\u7EA7",dataIndex:"priority",render:function(v){return(0,t.jsx)(Ve.Fk,{priority:v})}},{title:"\u8FD0\u884C\u65B9\u5F0F",dataIndex:"run_method",render:function(v){return v?Ae.iM.get(v):"-"}},{title:"\u72B6\u6001",dataIndex:"is_available",render:function(v){var D=Ae.Yl.get(v);return(0,t.jsx)(ke,{status:D==="\u53EF\u7528"?"success":"default",text:D})}},l&&{title:"\u64CD\u4F5C",render:function(v){return(0,t.jsx)("span",{onClick:function(){return J(v)},children:(0,t.jsx)($.Z.Link,{children:"\u5220\u9664"})})}}].filter(Boolean);return(0,t.jsxs)(T.Z,{direction:"vertical",style:{width:"100%"},children:[(0,t.jsx)(G.Z,{justify:"space-between",align:"middle",children:(0,t.jsx)($.Z.Text,{style:{margin:0},strong:!0,children:"\u7528\u4F8B"})}),(0,t.jsx)(Ne.k,{columns:U,showHeader:!!f.length,dataSource:f||[],size:"small",rowKey:"id",pagination:!1}),l&&(0,t.jsx)(He.Z,{ref:P,onOk:C})]})},Je=Ye,Qe=e(10163),ue=e(89738),Xe=function(n){var o=n.onOk,a=n.canSelect,l=a===void 0?!0:a,y=n.onChange,f=n.status,d=r.useRef(null),N=r.useState({tasks:[],cases:[]}),c=K()(N,2),C=c[0],P=c[1],J=(0,w.useParams)(),U=J.plan_id;r.useEffect(function(){o==null||o(C)},[C]);var O=(0,w.useRequest)(k.W1,{manual:!0}),v=O.run;r.useEffect(function(){U&&v(U).then(function(x){P(x)})},[U,v]),r.useEffect(function(){y==null||y(C.cases)},[C,y]);var D=function(){var x=p()(E()().mark(function h(){var b;return E()().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:(b=d.current)===null||b===void 0||b.show(C.tasks.map(function(oe){return oe.id}));case 1:case"end":return ne.stop()}},h)}));return function(){return x.apply(this,arguments)}}(),te=function(h){P(m()(m()({},C),{},{tasks:C.tasks.filter(function(b){return b.id!==h.id})}))},Z=f!=="init"&&!l,s=[Z&&{width:30,dataIndex:"status",render:function(){return(0,t.jsx)(t.Fragment,{})}},{title:"\u4EFB\u52A1\u540D\u79F0",ellipsis:!0,dataIndex:"name"},Z&&{title:"\u7528\u4F8B\u6570",width:60,dataIndex:"cases",render:function(h){return h&&Object.prototype.toString.call(h)==="[object String]"?h.split(",").length:"-"}},(0,ue._)({title:"\u8FD0\u884C\u65B9\u5F0F",dataIndex:"run_method"}),(0,ue._)({title:"\u6D4B\u8BD5\u8BBE\u5907",dataIndex:"device_ip"}),Z&&(0,ue._)({title:"\u8D1F\u8D23\u4EBA",dataIndex:"owner"}),(0,ue._)({title:"Workspace",dataIndex:"workspace"}),(0,ue._)({title:"Project\u540D\u79F0",dataIndex:"project"}),(0,ue._)({title:"Job\u7C7B\u578B",dataIndex:"job_type"}),(0,ue._)({title:"\u5907\u6CE8",dataIndex:"desc"}),Z&&(0,ue._)({title:"\u5F00\u59CB\u65F6\u95F4",dataIndex:"gmt_created"}),Z&&(0,ue._)({title:"\u5B8C\u6210\u65F6\u95F4",dataIndex:"gmt_modifeid"}),l&&{title:"\u64CD\u4F5C",render:function(h){return(0,t.jsx)("span",{onClick:function(){return te(h)},children:(0,t.jsx)($.Z.Link,{children:"\u5220\u9664"})})}}];return(0,t.jsxs)(T.Z,{direction:"vertical",style:{width:"100%"},children:[(0,t.jsxs)(G.Z,{justify:"space-between",align:"middle",children:[(0,t.jsx)($.Z.Text,{style:{margin:0},strong:!0,children:"\u6D4B\u8BD5\u4EFB\u52A1"}),l&&(0,t.jsx)(re.Z,{onClick:D,children:"\u9009\u62E9\u4EFB\u52A1"})]}),(0,t.jsx)(Ne.k,{columns:s.filter(Boolean),dataSource:C.tasks||[],showHeader:!!C.tasks.length,rowKey:"id",size:"small",pagination:!1}),l&&(0,t.jsx)(Qe.Z,{ref:d,onOk:function(h){return P(m()(m()({},C),{},{tasks:h}))}})]})},Le=Xe,qe=e(10423),et=e(59511),Se=e(99390),tt=e(45916),nt=e(33130),rt=e(85735),at=e(60884),Be=e(39919),st=function(n){var o=n.route,a=(0,Be.c)(),l=a.refresh,y=(0,w.useParams)(),f=y.plan_id,d=n.source,N=n.onOk,c=Se.Z.useForm(),C=K()(c,1),P=C[0];r.useEffect(function(){if(d&&JSON.stringify(d)!=="{}"){var x=d.req_id,h=d.title;P.setFieldsValue({req_id:x,title:h})}},[d]);var J=r.useState({}),U=K()(J,2),O=U[0],v=U[1],D=r.useRef(null),te=(0,w.useRequest)(function(){return(0,w.request)("/api/requirement")},{initialData:[]}),Z=te.data,s=function(){P.validateFields().then(function(){var h=p()(E()().mark(function b(le){var ne,oe,ve,me,L,he,ge,B,F,g,S,Q,ae,i;return E()().wrap(function(z){for(;;)switch(z.prev=z.next){case 0:if(oe=O.tasksAndCases,ve=m()(m()({},le),{},{reviewers:"xxxx",tasks:[],content:(ne=D.current)===null||ne===void 0?void 0:ne.children}),me=f&&d,!me){z.next=24;break}return z.next=6,(0,k.uw)(f,ve);case 6:if(L=z.sent,he=L.code,ge=L.msg,he===200){z.next=11;break}return z.abrupt("return",j.ZP.error(ge));case 11:return z.next=13,(0,k.GJ)(f,{tasks:oe==null?void 0:oe.tasks.map(function(Pe){return Pe.id})});case 13:if(B=z.sent,F=B.code,g=B.msg,F===200){z.next=19;break}return j.ZP.error(g),z.abrupt("return");case 19:N(),l(),j.ZP.success("\u64CD\u4F5C\u6210\u529F"),z.next=34;break;case 24:return z.next=26,(0,k.Oe)(ve);case 26:if(S=z.sent,Q=S.data,ae=S.code,i=S.msg,ae===200){z.next=33;break}return j.ZP.error(i),z.abrupt("return");case 33:w.history.push("/plan/".concat(Q.id));case 34:case"end":return z.stop()}},b)}));return function(b){return h.apply(this,arguments)}}())};return(0,t.jsx)("div",{style:{padding:12,backgroundColor:"#fff",height:"100%",overflow:"auto"},children:(0,t.jsxs)(T.Z,{style:{width:"100%"},direction:"vertical",children:[(0,t.jsxs)(G.Z,{justify:"space-between",align:"middle",children:[(0,t.jsx)($.Z.Text,{strong:!0,children:"\u7F16\u8F91\u65B9\u6848"}),(0,t.jsx)(re.Z,{type:"primary",onClick:s,children:"\u4FDD\u5B58"})]}),(0,t.jsx)($.Z.Text,{strong:!0,children:"\u57FA\u7840\u4FE1\u606F"}),(0,t.jsxs)(at.yV,{form:P,labelCol:{span:2},wrapperCol:{span:16},children:[(0,t.jsx)(Se.Z.Item,{label:"\u65B9\u6848\u540D\u79F0",name:"title",rules:[{required:!0,message:"\u65B9\u6848\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}],children:(0,t.jsx)(tt.Z,{allowClear:!0,autoComplete:"off",placeholder:"\u8BF7\u8F93\u5165"})}),(0,t.jsx)(Se.Z.Item,{label:"\u6D4B\u8BD5\u9700\u6C42",name:"req_id",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6D4B\u8BD5\u9700\u6C42"}],children:(0,t.jsx)(nt.Z,{options:Z.map(function(x){return{label:x.title,value:x.id}}),showSearch:!0,placeholder:"\u8BF7\u9009\u62E9\u6D4B\u8BD5\u9700\u6C42",filterOption:function(h,b){return b.label.toLowerCase().indexOf(h.toLowerCase())>=0}})})]}),(0,t.jsx)($.Z.Text,{strong:!0,children:"\u63CF\u8FF0"}),(0,t.jsx)("div",{style:{height:400,border:"1px solid rgba(0,0,0,0.15)",borderRadius:2},children:(0,t.jsx)(rt.Z,{defaultValue:f?d==null?void 0:d.content:void 0,onEditorChange:function(h){return D.current=h}})}),(o==null?void 0:o.name)!=="create"&&(0,t.jsx)(Le,{ids:d==null?void 0:d.tasks,onOk:function(h){return v(function(b){return m()(m()({},b),{},{tasksAndCases:h})})}})]})})},lt=st,ot=e(2162),it=e(73427),ut=e(85822),dt=e(41898),ct=function(){var n=(0,w.useAccess)(),o=(0,w.useParams)(),a=o.plan_id,l=(0,Be.c)(),y=l.refresh,f=r.useState(!1),d=K()(f,2),N=d[0],c=d[1],C=r.useState([]),P=K()(C,2),J=P[0],U=P[1],O=r.useState(!1),v=K()(O,2),D=v[0],te=v[1],Z=(0,w.useRequest)(k.cu,{manual:!0,initialData:null}),s=Z.data,x=Z.run,h=Z.refresh,b=Z.loading,le=r.useRef(),ne=function(){y(),h()};r.useEffect(function(){return a&&x(a),function(){c(!1),U([])}},[a]);var oe=function(F){var g;switch(F.key){case"delete":return(g=le.current)===null||g===void 0?void 0:g.show()}},ve=function(){var B=p()(E()().mark(function F(){var g,S,Q;return E()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,k.NH)(a);case 2:if(g=i.sent,S=g.code,Q=g.msg,S===200){i.next=7;break}return i.abrupt("return",j.ZP.error(Q));case 7:return j.ZP.success("\u64CD\u4F5C\u6210\u529F\uFF01"),i.next=10,y();case 10:w.history.push("/plan");case 11:case"end":return i.stop()}},F)}));return function(){return B.apply(this,arguments)}}(),me=function(){c(!1),ne()},L=function(){var B=p()(E()().mark(function F(){var g,S,Q;return E()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(!D){i.next=2;break}return i.abrupt("return");case 2:return te(!0),i.next=5,(0,k.Nm)({plan_id:a});case 5:if(g=i.sent,S=g.code,Q=g.msg,te(!1),S===200){i.next=11;break}return i.abrupt("return",j.ZP.error(Q));case 11:j.ZP.success("\u64CD\u4F5C\u6210\u529F\uFF01"),y();case 13:case"end":return i.stop()}},F)}));return function(){return B.apply(this,arguments)}}(),he=function(){var B=p()(E()().mark(function F(){var g,S,Q;return E()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,k.L2)(a);case 2:if(g=i.sent,S=g.msg,Q=g.code,Q===200){i.next=7;break}return i.abrupt("return",j.ZP.error(S));case 7:ne();case 8:case"end":return i.stop()}},F)}));return function(){return B.apply(this,arguments)}}(),ge=function(){var B=p()(E()().mark(function F(){var g,S,Q;return E()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,k.GW)(a);case 2:if(g=i.sent,S=g.msg,Q=g.code,Q===200){i.next=7;break}return i.abrupt("return",j.ZP.error(S));case 7:ne();case 8:case"end":return i.stop()}},F)}));return function(){return B.apply(this,arguments)}}();return N?(0,t.jsx)(lt,{isEdit:N,source:s,onOk:me,cases:J}):a&&!s?(0,t.jsx)(ie.Z,{}):a?b?(0,t.jsx)("div",{style:{height:innerHeight,position:"relative"},children:(0,t.jsx)(ie.Z,{})}):(0,t.jsxs)(T.Z,{direction:"vertical",style:{width:"100%",padding:12,height:"100%",overflow:"auto"},children:[(0,t.jsxs)(G.Z,{justify:"space-between",align:"middle",children:[(0,t.jsxs)(T.Z,{children:[(0,t.jsxs)(T.Z,{children:[(0,t.jsx)($.Z.Text,{style:{color:"rgba(0,0,0,0.45)",fontSize:12},children:"\u521B\u5EFA\u4E8E"}),(0,t.jsx)($.Z.Text,{style:{color:"rgba(0,0,0,0.45)",fontSize:12},children:s.gmt_created})]}),(0,t.jsxs)(T.Z,{children:[(0,t.jsx)($.Z.Text,{style:{color:"rgba(0,0,0,0.45)",fontSize:12},children:"\u66F4\u65B0\u4E8E"}),(0,t.jsx)($.Z.Text,{style:{color:"rgba(0,0,0,0.45)",fontSize:12},children:s.gmt_modified})]})]}),(0,t.jsxs)(T.Z,{children:[!["init","finish"].includes(s.status)&&(0,t.jsx)(re.Z,{size:"small",icon:(0,t.jsx)(qe.Z,{}),onClick:function(){return h()}}),s.status==="finish"&&(0,t.jsx)(t.Fragment,{children:s.report?(0,t.jsx)(re.Z,{type:"primary",size:"small",onClick:function(){return w.history.push("/plan/".concat(a,"/report"))},children:"\u67E5\u770B\u6D4B\u8BD5\u62A5\u544A"}):n.canTester()&&(0,t.jsx)(re.Z,{size:"small",onClick:function(){return ge()},children:"\u751F\u6210\u62A5\u544A"})}),n.canTester()&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(re.Z,{size:"small",disabled:s.status!=="init",onClick:he,children:"\u6267\u884C"}),n.canCurrentTester(s==null?void 0:s.owner)&&(0,t.jsx)(re.Z,{size:"small",disabled:s.status!=="init",onClick:function(){return c(!0)},children:"\u7F16\u8F91"}),(0,t.jsx)(re.Z,{size:"small",onClick:L,children:"\u590D\u5236\u65B9\u6848"}),n.canCurrentTester(s==null?void 0:s.owner)&&(0,t.jsx)(ye.Z,{overlay:(0,t.jsx)(ce.Z,{onClick:oe,children:(0,t.jsx)(ce.Z.Item,{children:"\u5220\u9664"},"delete")}),children:(0,t.jsx)("span",{style:{width:24,cursor:"pointer"},children:(0,t.jsx)(et.Z,{})})})]})]})]}),(0,t.jsx)($.Z.Text,{strong:!0,children:s.title}),(0,t.jsx)(ot.Z,{left:{title:"\u8D1F\u8D23\u4EBA",data:s==null?void 0:s.owner,span:6},right:{title:"\u72B6\u6001",data:(0,t.jsx)(dt.iK,m()(m()({},s),{},{style:{transform:"scale(0.8)",transformOrigin:"0 0"}})),span:6}}),(0,t.jsx)(Ee.Z,{style:{margin:0}}),(0,t.jsx)($.Z.Text,{strong:!0,children:"\u57FA\u7840\u4FE1\u606F"}),(0,t.jsxs)(G.Z,{children:[(0,t.jsx)(I.Z,{span:2,children:"\u6D4B\u8BD5\u9700\u6C42"}),(0,t.jsx)(I.Z,{span:20,style:{color:"rgba(0,0,0,0.65)"},children:s==null?void 0:s.req_title})]}),(0,t.jsx)(Ee.Z,{style:{margin:0}}),(0,t.jsx)(G.Z,{justify:"space-between",align:"middle",children:(0,t.jsx)($.Z.Text,{strong:!0,children:"\u63CF\u8FF0"})}),(0,t.jsx)(ut.Z,{style:{background:"#FAFAFA",padding:12},content:s!=null&&s.content&&Object.prototype.toString.call(s==null?void 0:s.content)==="[object Array]"?s==null?void 0:s.content:[]}),(0,t.jsx)(Le,{ids:s.tasks,canSelect:!1,onChange:U}),(0,t.jsx)(G.Z,{style:{height:4}}),(0,t.jsx)(Je,{dataSource:J,canSelect:!1}),(0,t.jsx)(it.Z,{ref:le,onOk:ve})]}):(0,t.jsx)(G.Z,{justify:"center",style:{paddingTop:300,background:"#fff",height:"100%"},children:(0,t.jsx)(Y.Z,{image:Y.Z.PRESENTED_IMAGE_SIMPLE})})},ft=ct}}]); diff --git a/dist/200.async.js b/dist/200.async.js new file mode 100644 index 0000000000000000000000000000000000000000..33ebc9928fde6030a90ced928fae05213cfe780e --- /dev/null +++ b/dist/200.async.js @@ -0,0 +1,3 @@ +(self.webpackChunk=self.webpackChunk||[]).push([[200],{90200:function(ct){(function(D,B){ct.exports=B()})(this,function(){"use strict";function D(r){return D=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},D(r)}function B(r,n){return B=Object.setPrototypeOf||function(s,f){return s.__proto__=f,s},B(r,n)}function mt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function X(r,n,o){return mt()?X=Reflect.construct:X=function(f,R,M){var O=[null];O.push.apply(O,R);var j=Function.bind.apply(f,O),$=new j;return M&&B($,M.prototype),$},X.apply(null,arguments)}function y(r){return pt(r)||dt(r)||vt(r)||ht()}function pt(r){if(Array.isArray(r))return se(r)}function dt(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function vt(r,n){if(!!r){if(typeof r=="string")return se(r,n);var o=Object.prototype.toString.call(r).slice(8,-1);if(o==="Object"&&r.constructor&&(o=r.constructor.name),o==="Map"||o==="Set")return Array.from(r);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return se(r,n)}}function se(r,n){(n==null||n>r.length)&&(n=r.length);for(var o=0,s=new Array(n);o1?o-1:0),f=1;f/gm),wt=S(/^data-[\-\w.\u00B7-\uFFFF]/),It=S(/^aria-[\-\w]+$/),Ct=S(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),xt=S(/^(?:\w+script|data):/i),kt=S(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Pt=S(/^html$/i),Ft=function(){return typeof window>"u"?null:window},Ut=function(n,o){if(D(n)!=="object"||typeof n.createPolicy!="function")return null;var s=null,f="data-tt-policy-suffix";o.currentScript&&o.currentScript.hasAttribute(f)&&(s=o.currentScript.getAttribute(f));var R="dompurify"+(s?"#"+s:"");try{return n.createPolicy(R,{createHTML:function(O){return O},createScriptURL:function(O){return O}})}catch{return console.warn("TrustedTypes policy "+R+" could not be created."),null}};function Ge(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ft(),n=function(e){return Ge(e)};if(n.version="2.4.0",n.removed=[],!r||!r.document||r.document.nodeType!==9)return n.isSupported=!1,n;var o=r.document,s=r.document,f=r.DocumentFragment,R=r.HTMLTemplateElement,M=r.Node,O=r.Element,j=r.NodeFilter,$=r.NamedNodeMap,zt=$===void 0?r.NamedNodeMap||r.MozNamedAttrMap:$,Gt=r.HTMLFormElement,Bt=r.DOMParser,ee=r.trustedTypes,te=O.prototype,Wt=J(te,"cloneNode"),jt=J(te,"nextSibling"),$t=J(te,"childNodes"),ve=J(te,"parentNode");if(typeof R=="function"){var he=s.createElement("template");he.content&&he.content.ownerDocument&&(s=he.content.ownerDocument)}var b=Ut(ee,o),Be=b?b.createHTML(""):"",re=s,Te=re.implementation,Yt=re.createNodeIterator,Vt=re.createDocumentFragment,qt=re.getElementsByTagName,Xt=o.importNode,We={};try{We=x(s).documentMode?s.documentMode:{}}catch{}var N={};n.isSupported=typeof ve=="function"&&Te&&typeof Te.createHTMLDocument<"u"&&We!==9;var _e=Mt,Ae=Lt,Kt=wt,Zt=It,Jt=xt,je=kt,Ee=Ct,m=null,$e=l({},[].concat(y(Fe),y(ce),y(me),y(pe),y(Ue))),d=null,Ye=l({},[].concat(y(He),y(de),y(ze),y(Q))),c=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Y=null,ye=null,Ve=!0,ge=!0,qe=!1,P=!1,k=!1,be=!1,Se=!1,F=!1,ae=!1,ne=!1,Xe=!0,Ke=!1,Qt="user-content-",Re=!0,V=!1,U={},H=null,Ze=l({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Je=null,Qe=l({},["audio","video","img","source","image","track"]),Oe=null,et=l({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ne="http://www.w3.org/1998/Math/MathML",De="http://www.w3.org/2000/svg",C="http://www.w3.org/1999/xhtml",ie=C,Me=!1,z,er=["application/xhtml+xml","text/html"],tr="text/html",p,G=null,rr=s.createElement("form"),tt=function(e){return e instanceof RegExp||e instanceof Function},Le=function(e){G&&G===e||((!e||D(e)!=="object")&&(e={}),e=x(e),z=er.indexOf(e.PARSER_MEDIA_TYPE)===-1?z=tr:z=e.PARSER_MEDIA_TYPE,p=z==="application/xhtml+xml"?function(t){return t}:Z,m="ALLOWED_TAGS"in e?l({},e.ALLOWED_TAGS,p):$e,d="ALLOWED_ATTR"in e?l({},e.ALLOWED_ATTR,p):Ye,Oe="ADD_URI_SAFE_ATTR"in e?l(x(et),e.ADD_URI_SAFE_ATTR,p):et,Je="ADD_DATA_URI_TAGS"in e?l(x(Qe),e.ADD_DATA_URI_TAGS,p):Qe,H="FORBID_CONTENTS"in e?l({},e.FORBID_CONTENTS,p):Ze,Y="FORBID_TAGS"in e?l({},e.FORBID_TAGS,p):{},ye="FORBID_ATTR"in e?l({},e.FORBID_ATTR,p):{},U="USE_PROFILES"in e?e.USE_PROFILES:!1,Ve=e.ALLOW_ARIA_ATTR!==!1,ge=e.ALLOW_DATA_ATTR!==!1,qe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,P=e.SAFE_FOR_TEMPLATES||!1,k=e.WHOLE_DOCUMENT||!1,F=e.RETURN_DOM||!1,ae=e.RETURN_DOM_FRAGMENT||!1,ne=e.RETURN_TRUSTED_TYPE||!1,Se=e.FORCE_BODY||!1,Xe=e.SANITIZE_DOM!==!1,Ke=e.SANITIZE_NAMED_PROPS||!1,Re=e.KEEP_CONTENT!==!1,V=e.IN_PLACE||!1,Ee=e.ALLOWED_URI_REGEXP||Ee,ie=e.NAMESPACE||C,e.CUSTOM_ELEMENT_HANDLING&&tt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(c.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&tt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(c.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(c.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),P&&(ge=!1),ae&&(F=!0),U&&(m=l({},y(Ue)),d=[],U.html===!0&&(l(m,Fe),l(d,He)),U.svg===!0&&(l(m,ce),l(d,de),l(d,Q)),U.svgFilters===!0&&(l(m,me),l(d,de),l(d,Q)),U.mathMl===!0&&(l(m,pe),l(d,ze),l(d,Q))),e.ADD_TAGS&&(m===$e&&(m=x(m)),l(m,e.ADD_TAGS,p)),e.ADD_ATTR&&(d===Ye&&(d=x(d)),l(d,e.ADD_ATTR,p)),e.ADD_URI_SAFE_ATTR&&l(Oe,e.ADD_URI_SAFE_ATTR,p),e.FORBID_CONTENTS&&(H===Ze&&(H=x(H)),l(H,e.FORBID_CONTENTS,p)),Re&&(m["#text"]=!0),k&&l(m,["html","head","body"]),m.table&&(l(m,["tbody"]),delete Y.tbody),_&&_(e),G=e)},rt=l({},["mi","mo","mn","ms","mtext"]),at=l({},["foreignobject","desc","title","annotation-xml"]),ar=l({},["title","style","font","a","script"]),oe=l({},ce);l(oe,me),l(oe,Nt);var we=l({},pe);l(we,Dt);var nr=function(e){var t=ve(e);(!t||!t.tagName)&&(t={namespaceURI:C,tagName:"template"});var a=Z(e.tagName),u=Z(t.tagName);return e.namespaceURI===De?t.namespaceURI===C?a==="svg":t.namespaceURI===Ne?a==="svg"&&(u==="annotation-xml"||rt[u]):Boolean(oe[a]):e.namespaceURI===Ne?t.namespaceURI===C?a==="math":t.namespaceURI===De?a==="math"&&at[u]:Boolean(we[a]):e.namespaceURI===C?t.namespaceURI===De&&!at[u]||t.namespaceURI===Ne&&!rt[u]?!1:!we[a]&&(ar[a]||!oe[a]):!1},L=function(e){W(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch{try{e.outerHTML=Be}catch{e.remove()}}},Ie=function(e,t){try{W(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch{W(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is"&&!d[e])if(F||ae)try{L(t)}catch{}else try{t.setAttribute(e,"")}catch{}},nt=function(e){var t,a;if(Se)e=""+e;else{var u=bt(e,/^[\r\n\t ]+/);a=u&&u[0]}z==="application/xhtml+xml"&&(e=''+e+"");var E=b?b.createHTML(e):e;if(ie===C)try{t=new Bt().parseFromString(E,z)}catch{}if(!t||!t.documentElement){t=Te.createDocument(ie,"template",null);try{t.documentElement.innerHTML=Me?"":E}catch{}}var h=t.body||t.documentElement;return e&&a&&h.insertBefore(s.createTextNode(a),h.childNodes[0]||null),ie===C?qt.call(t,k?"html":"body")[0]:k?t.documentElement:h},it=function(e){return Yt.call(e.ownerDocument||e,e,j.SHOW_ELEMENT|j.SHOW_COMMENT|j.SHOW_TEXT,null,!1)},ir=function(e){return e instanceof Gt&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof zt)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function")},q=function(e){return D(M)==="object"?e instanceof M:e&&D(e)==="object"&&typeof e.nodeType=="number"&&typeof e.nodeName=="string"},w=function(e,t,a){!N[e]||gt(N[e],function(u){u.call(n,t,a,G)})},ot=function(e){var t;if(w("beforeSanitizeElements",e,null),ir(e)||A(/[\u0080-\uFFFF]/,e.nodeName))return L(e),!0;var a=p(e.nodeName);if(w("uponSanitizeElement",e,{tagName:a,allowedTags:m}),e.hasChildNodes()&&!q(e.firstElementChild)&&(!q(e.content)||!q(e.content.firstElementChild))&&A(/<[/\w]/g,e.innerHTML)&&A(/<[/\w]/g,e.textContent)||a==="select"&&A(/