← Back
Editing: group-logs-legacy.js
!function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return r};var n,r={},o=Object.prototype,i=o.hasOwnProperty,a=Object.defineProperty||function(t,e,n){t[e]=n.value},u="function"==typeof Symbol?Symbol:{},l=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(n){s=function(t,e,n){return t[e]=n}}function h(t,e,n,r){var o=e&&e.prototype instanceof b?e:b,i=Object.create(o.prototype),u=new T(r||[]);return a(i,"_invoke",{value:k(t,n,u)}),i}function v(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}r.wrap=h;var d="suspendedStart",p="suspendedYield",y="executing",g="completed",m={};function b(){}function w(){}function _(){}var x={};s(x,l,(function(){return this}));var L=Object.getPrototypeOf,j=L&&L(L(F([])));j&&j!==o&&i.call(j,l)&&(x=j);var E=_.prototype=b.prototype=Object.create(x);function O(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function S(e,n){function r(o,a,u,l){var c=v(e[o],e,a);if("throw"!==c.type){var f=c.arg,s=f.value;return s&&"object"==t(s)&&i.call(s,"__await")?n.resolve(s.__await).then((function(t){r("next",t,u,l)}),(function(t){r("throw",t,u,l)})):n.resolve(s).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,l)}))}l(c.arg)}var o;a(this,"_invoke",{value:function(t,e){function i(){return new n((function(n,o){r(t,e,n,o)}))}return o=o?o.then(i,i):i()}})}function k(t,e,r){var o=d;return function(i,a){if(o===y)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:n,done:!0}}for(r.method=i,r.arg=a;;){var u=r.delegate;if(u){var l=P(u,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=y;var c=v(t,e,r);if("normal"===c.type){if(o=r.done?g:p,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=g,r.method="throw",r.arg=c.arg)}}}function P(t,e){var r=e.method,o=t.iterator[r];if(o===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=n,P(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=v(o,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,m;var a=i.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,m):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,m)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function G(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function F(e){if(e||""===e){var r=e[l];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function t(){for(;++o<e.length;)if(i.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=n,t.done=!0,t};return a.next=a}}throw new TypeError(t(e)+" is not iterable")}return w.prototype=_,a(E,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:w,configurable:!0}),w.displayName=s(_,f,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,s(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},r.awrap=function(t){return{__await:t}},O(S.prototype),s(S.prototype,c,(function(){return this})),r.AsyncIterator=S,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new S(h(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(E),s(E,f,"Generator"),s(E,l,(function(){return this})),s(E,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},r.values=F,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(G),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,o){return u.type="throw",u.arg=t,e.next=r,o&&(e.method="next",e.arg=n),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],u=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),G(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;G(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:F(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),m}},r}function n(t,e,n,r,o,i,a){try{var u=t[i](a),l=u.value}catch(t){return void n(t)}u.done?e(l):Promise.resolve(l).then(r,o)}System.register(["./utils-lib-legacy.js?v=VERSION_NUMBER","./base-lib-legacy.js?v=VERSION_NUMBER","./index-legacy116.js?v=VERSION_NUMBER","./site-legacy.js?v=VERSION_NUMBER","./group-detail-legacy.js?v=VERSION_NUMBER","./__commonjsHelpers__-legacy.js?v=VERSION_NUMBER","./index-legacy103.js?v=VERSION_NUMBER","./column-legacy.js?v=VERSION_NUMBER","./index-legacy104.js?v=VERSION_NUMBER"],(function(t,r){"use strict";var o,i,a,u,l,c,f,s,h,v,d,p,y,g,m,b,w,_,x,L,j,E,O,S,k,P,N,G,T;return{setters:[function(t){o=t.al,i=t.b},function(t){a=t.c,u=t.ay,l=t.r,c=t.g,f=t.w,s=t.p,h=t.q,v=t.v,d=t.y,p=t.e,y=t.A,g=t.B,m=t.z,b=t.x,w=t.H,_=t.I,x=t.F,L=t.a_,j=t.P,E=t.bN,O=t.bM,S=t.D,k=t.M,P=t.aA},function(t){N=t._},function(t){G=t.getProjectLogs},function(t){T=t.j},null,null,null,null],execute:function(){var r={class:"p-[2rem]"},F={class:"text-[1.6rem] text-[#555] mb-[2rem] mt-[1.6rem] font-bold flex justify-between"},A={class:"mt-[2rem]"};t("default",a({__name:"group-logs",props:{compData:{default:{}}},setup:function(t){var a=i(),I=u("popupClose",(function(){})),C=l(""),H=c((function(){var t;return(null===(t=T.value.running_step)||void 0===t?void 0:t.names)||[]})),V=l(!1),D=l(""),M=c((function(){return!H.value.length})),Y=c((function(){return!T.value.running}));f((function(){return T.value.running_step}),(function(t){t&&(C.value=H.value[0],z(C.value))}),{immediate:!0}),f(Y,(function(t){t&&(a.success("项目组已经执行完毕"),I())}));var q=c((function(){var t,e;return(null===(t=T.value.running_step)||void 0===t?void 0:t.msg)||(null===(e=T.value.running_data)||void 0===e?void 0:e.msg)||T.value.msg||"--"})),z=function(){var t,r=(t=e().mark((function t(n){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return V.value=!0,t.prev=1,t.next=4,G({data:JSON.stringify({project_name:n})},"java");case 4:(r=t.sent).status?D.value=r.data.data:a.error(r.msg),t.next=10;break;case 8:t.prev=8,t.t0=t.catch(1);case 10:return t.prev=10,V.value=!1,t.finish(10);case 13:case"end":return t.stop()}}),t,null,[[1,8,10,13]])})),function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function u(t){n(a,o,i,u,l,"next",t)}function l(t){n(a,o,i,u,l,"throw",t)}u(void 0)}))});return function(t){return r.apply(this,arguments)}}();return s((function(){})),function(t,e){var n=E,i=O,a=S,u=N,l=P,c=o;return h(),v("div",r,[d("div",null,[p(i,{title:"项目组信息",border:"",column:3,class:"table-descriptions"},{default:y((function(){return[p(n,{label:"总项目数"},{default:y((function(){var t,e;return[g(m((null===(t=b(T))||void 0===t||null===(t=t.running_data)||void 0===t?void 0:t.length)>-1?null===(e=b(T))||void 0===e||null===(e=e.running_data)||void 0===e?void 0:e.length:"--"),1)]})),_:1}),p(n,{label:"未执行的项目数"},{default:y((function(){var t,e;return[g(m((null===(t=b(T))||void 0===t||null===(t=t.running_data)||void 0===t?void 0:t.remaining)>-1?null===(e=b(T))||void 0===e||null===(e=e.running_data)||void 0===e?void 0:e.remaining:"--"),1)]})),_:1}),p(n,{label:"正在执行中的项目数"},{default:y((function(){var t,e;return[g(m((null===(t=b(T))||void 0===t||null===(t=t.running_data)||void 0===t?void 0:t.executing)>-1?null===(e=b(T))||void 0===e||null===(e=e.running_data)||void 0===e?void 0:e.executing:"--"),1)]})),_:1}),p(n,{label:"当前执行步骤"},{default:y((function(){return[g(m(b(q)),1)]})),_:1})]})),_:1})]),d("div",F,[e[4]||(e[4]=g(" 项目日志 ")),w(p(a,{type:"default",onClick:e[0]||(e[0]=function(t){return z(b(C))})},{default:y((function(){return e[3]||(e[3]=[g("刷新")])})),_:1},512),[[_,!b(Y)&&!b(M)]])]),w(p(c,{class:"h-[30rem]",type:"card",modelValue:b(C),"onUpdate:modelValue":e[1]||(e[1]=function(t){return j(C)?C.value=t:null}),onTabClick:e[2]||(e[2]=function(t){return z(b(C))})},{default:y((function(){return[(h(!0),v(x,null,L(b(H),(function(t){return h(),k(l,{key:t,label:t,name:t},{default:y((function(){return[p(u,{content:b(D),isHtml:!0,class:"mt-16x",fullScreen:{title:"全屏查看【项目】日志",onRefresh:function(){return z(b(C))}},style:{height:"48rem",width:"99.5%"}},null,8,["content","fullScreen"])]})),_:2},1032,["label","name"])})),128))]})),_:1},8,["modelValue"]),[[_,!b(M)]]),w(d("span",A,"暂无日志",512),[[_,b(M)]])])}}}))}}}))}();
Save File
Cancel