← Back
Editing: index-legacy361.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(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function n(t){for(var n=1;n<arguments.length;n++){var a=null!=arguments[n]?arguments[n]:{};n%2?e(Object(a),!0).forEach((function(e){r(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):e(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function r(e,n,r){return(n=function(e){var n=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,n||"default");if("object"!=t(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==t(n)?n:n+""}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function a(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */a=function(){return n};var e,n={},r=Object.prototype,o=r.hasOwnProperty,u=Object.defineProperty||function(t,e,n){t[e]=n.value},c="function"==typeof Symbol?Symbol:{},i=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",s=c.toStringTag||"@@toStringTag";function f(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(e){f=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var a=e&&e.prototype instanceof b?e:b,o=Object.create(a.prototype),c=new J(r||[]);return u(o,"_invoke",{value:E(t,n,c)}),o}function v(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var h="suspendedStart",m="suspendedYield",d="executing",y="completed",g={};function b(){}function w(){}function x(){}var k={};f(k,i,(function(){return this}));var _=Object.getPrototypeOf,j=_&&_(_(V([])));j&&j!==r&&o.call(j,i)&&(k=j);var T=x.prototype=b.prototype=Object.create(k);function O(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function L(e,n){function r(a,u,c,i){var l=v(e[a],e,u);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==t(f)&&o.call(f,"__await")?n.resolve(f.__await).then((function(t){r("next",t,c,i)}),(function(t){r("throw",t,c,i)})):n.resolve(f).then((function(t){s.value=t,c(s)}),(function(t){return r("throw",t,c,i)}))}i(l.arg)}var a;u(this,"_invoke",{value:function(t,e){function o(){return new n((function(n,a){r(t,e,n,a)}))}return a=a?a.then(o,o):o()}})}function E(t,n,r){var a=h;return function(o,u){if(a===d)throw Error("Generator is already running");if(a===y){if("throw"===o)throw u;return{value:e,done:!0}}for(r.method=o,r.arg=u;;){var c=r.delegate;if(c){var i=S(c,r);if(i){if(i===g)continue;return i}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===h)throw a=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=d;var l=v(t,n,r);if("normal"===l.type){if(a=r.done?y:m,l.arg===g)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(a=y,r.method="throw",r.arg=l.arg)}}}function S(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=v(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var u=o.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function P(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 C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function J(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function V(n){if(n||""===n){var r=n[i];if(r)return r.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var a=-1,u=function t(){for(;++a<n.length;)if(o.call(n,a))return t.value=n[a],t.done=!1,t;return t.value=e,t.done=!0,t};return u.next=u}}throw new TypeError(t(n)+" is not iterable")}return w.prototype=x,u(T,"constructor",{value:x,configurable:!0}),u(x,"constructor",{value:w,configurable:!0}),w.displayName=f(x,s,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,f(t,s,"GeneratorFunction")),t.prototype=Object.create(T),t},n.awrap=function(t){return{__await:t}},O(L.prototype),f(L.prototype,l,(function(){return this})),n.AsyncIterator=L,n.async=function(t,e,r,a,o){void 0===o&&(o=Promise);var u=new L(p(t,e,r,a),o);return n.isGeneratorFunction(e)?u:u.next().then((function(t){return t.done?t.value:u.next()}))},O(T),f(T,s,"Generator"),f(T,i,(function(){return this})),f(T,"toString",(function(){return"[object Generator]"})),n.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}},n.values=V,J.prototype={constructor:J,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},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 n=this;function r(r,a){return c.type="throw",c.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var a=this.tryEntries.length-1;a>=0;--a){var u=this.tryEntries[a],c=u.completion;if("root"===u.tryLoc)return r("end");if(u.tryLoc<=this.prev){var i=o.call(u,"catchLoc"),l=o.call(u,"finallyLoc");if(i&&l){if(this.prev<u.catchLoc)return r(u.catchLoc,!0);if(this.prev<u.finallyLoc)return r(u.finallyLoc)}else if(i){if(this.prev<u.catchLoc)return r(u.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return r(u.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&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var a=r;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var u=a?a.completion:{};return u.type=t,u.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(u)},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),g},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),C(n),g}},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 a=r.arg;C(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:V(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},n}function o(t,e,n,r,a,o,u){try{var c=t[o](u),i=c.value}catch(t){return void n(t)}c.done?e(i):Promise.resolve(i).then(r,a)}function u(t){return function(){var e=this,n=arguments;return new Promise((function(r,a){var u=t.apply(e,n);function c(t){o(u,r,a,c,i,"next",t)}function i(t){o(u,r,a,c,i,"throw",t)}c(void 0)}))}}System.register(["./utils-lib-legacy.js?v=VERSION_NUMBER","./base-lib-legacy.js?v=VERSION_NUMBER","./index-legacy103.js?v=VERSION_NUMBER","./index-legacy123.js?v=VERSION_NUMBER","./index-legacy101.js?v=VERSION_NUMBER","./column-legacy.js?v=VERSION_NUMBER","./site-legacy.js?v=VERSION_NUMBER","./validator-legacy.js?v=VERSION_NUMBER"],(function(t,e){"use strict";var r,o,c,i,l,s,f,p,v,h,m,d,y,g,b,w,x,k,_,j,T,O,L,E,S,P,C,J,V,D,N,F,q,G,K,I,U,B,M,A,H,z,R,Y,X,Q,W,Z,$,tt,et,nt,rt,at,ot,ut,ct,it,lt;return{setters:[function(t){r=t.aX,o=t.n,c=t.L,i=t.M,l=t.p,s=t.K,f=t.aM,p=t.a6,v=t.a7,h=t.l,m=t.al,d=t.j,y=t.b,g=t.e},function(t){b=t.r,w=t.c,x=t.q,k=t.M,_=t.A,j=t.e,T=t.x,O=t.p,L=t.aD,E=t.G,S=t.v,P=t.y,C=t.P,J=t.B,V=t.F,D=t.a_,N=t.H,F=t.D,q=t.ax,G=t.ai,K=t.aj,I=t.aA},function(t){U=t._},function(t){B=t._},function(t){M=t._},function(t){A=t.b,H=t.u,z=t.o},function(t){R=t.getTomcat,Y=t.getFileBody,X=t.saveFileBody,Q=t.settingsTomcat,W=t.uninstallTomcat,Z=t.setTomcatStatus,$=t.getJavaInfo,tt=t.getSystemUserList,et=t.installTomcatNew,nt=t.getTomcatRandomInstall,rt=t.addLocalJdk,at=t.setJdkEnvironment,ot=t.installNewTomcat,ut=t.installNewJdk,ct=t.delLocalJdk},function(t){it=t.m,lt=t.f}],execute:function(){var st=b("jdkSettings"),ft=b(!1),pt=t("t",b([])),vt=t("j",b([])),ht=t("e",b([])),mt=t("u",b([])),dt=t("r",b({})),yt=function(){o({title:"Java环境管理 - Tomcat安装",area:60,component:function(){return c((function(){return e.import("./install-tomcat-legacy.js?v=VERSION_NUMBER")}),void 0,e.meta.url)},showFooter:!0})},gt=(t("i",function(){var t=u(a().mark((function t(e){var n,r,o;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,"global"===e.install_type&&(e.ps="",e.name=e.base_version),r=i.load("正在安装Tomcat,请稍后..."),t.next=5,et(e);case 5:return o=t.sent,i.request(o),r.close(),ft.value=!0,null!==(n=o.msg)&&void 0!==n&&n.includes("已添加到安装任务")&&it(),t.abrupt("return",o.status);case 13:t.prev=13,t.t0=t.catch(0);case 16:case"end":return t.stop()}}),t,null,[[0,13]])})));return function(e){return t.apply(this,arguments)}}()),function(){var t=u(a().mark((function t(){var e,o,u;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,R();case 3:if(e=t.sent,o=e.data,u=Object.keys(o).map((function(t){return n(n({},o[t]),{},{t_name:t})})),o.status||!r("msg",o)){t.next=8;break}return t.abrupt("return",{data:[],total:0,other:{}});case 8:return t.abrupt("return",{data:u,total:0,other:{}});case 11:t.prev=11,t.t0=t.catch(0);case 14:case"end":return t.stop()}}),t,null,[[0,11]])})));return function(){return t.apply(this,arguments)}}()),bt=function(t){dt.value=t,o({title:"Java环境管理 - Tomcat【".concat(t.t_name,"】配置"),area:60,component:function(){return c((function(){return e.import("./config-file-legacy.js?v=VERSION_NUMBER")}),void 0,e.meta.url)},showFooter:!0})},wt=t("d",b("")),xt=(t("c",u(a().mark((function t(){var e;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Y({path:dt.value.config_path});case 3:e=t.sent,wt.value=e.data.data,t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))),t("s",u(a().mark((function t(){var e;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,X({encoding:"utf-8",data:wt.value,path:dt.value.config_path});case 3:e=t.sent,i.request(e),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))),function(t){dt.value=t,o({title:"Java环境管理 - Tomcat【".concat(t.t_name,"】设置"),area:60,component:function(){return c((function(){return e.import("./set-tomcat-legacy.js?v=VERSION_NUMBER")}),void 0,e.meta.url)},showFooter:!0})}),kt=(t("h",function(){var t=u(a().mark((function t(e){var n,r,o;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=i.load("正在设置Tomcat,请稍后..."),t.prev=1,r={tomcat_name:dt.value.t_name,user:e.user,auto_restart:e.auto_restart,port:e.port,jdk_path:e.jdk_path,ps:e.ps},t.next=5,Q(r);case 5:return o=t.sent,i.request(o),ft.value=!0,t.abrupt("return",o.status);case 11:t.prev=11,t.t0=t.catch(1);case 14:return t.prev=14,n.close(),t.finish(14);case 17:case"end":return t.stop()}}),t,null,[[1,11,14,17]])})));return function(e){return t.apply(this,arguments)}}()),function(){var t=u(a().mark((function t(e){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l({title:"卸载Tomcat",isHtml:!0,content:"是否卸载【 ".concat(e.t_name,'】,<span class="text-danger">此操作将会删除该Tomcat目录下的所有文件,请确保该Tomcat未被使用</span>,是否继续操作?')});case 2:return t.next=4,s({loading:"正在卸载Tomcat,请稍后...",request:W({tomcat_name:e.t_name}),success:function(){return ft.value=!0},message:!0});case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),_t=function(){var t=u(a().mark((function t(e,n){var r,o,u,c;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.running,o=r,t.next=4,l({title:"Tomcat状态",content:"是否".concat(n?"重启":o?"停止":"启动","【").concat(e.t_name,"】,是否继续操作?")});case 4:return u=i.load("正在".concat(n?"重启":o?"停止":"启动","Tomcat【").concat(e.t_name,"】,请稍后...")),t.prev=5,t.next=8,Z({type:n?"restart":o?"stop":"start",tomcat_name:e.t_name});case 8:c=t.sent,i.request(c),ft.value=!0,t.next=16;break;case 13:t.prev=13,t.t0=t.catch(5);case 16:return t.prev=16,u.close(),t.finish(16);case 19:case"end":return t.stop()}}),t,null,[[5,13,16,19]])})));return function(e,n){return t.apply(this,arguments)}}(),jt=(t("g",u(a().mark((function t(){var e;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,$();case 3:e=t.sent,pt.value=[],e.data.tomcat_status.forEach((function(t){t.is_install||pt.value.push(n({label:"Tomcat".concat(t.version),value:"tomcat".concat(t.version)},t))})),vt.value=e.data.jdk_info.filter((function(t){return 1===t.operation||2===t.operation})),vt.value=vt.value.map((function(t){return{label:t.name,value:t.path}})),ht.value=vt.value.map((function(t){return n(n({},t),{},{value:t.value.replace("/bin/java","")})})),t.next=13;break;case 11:t.prev=11,t.t0=t.catch(0);case 13:case"end":return t.stop()}}),t,null,[[0,11]])})))),t("a",u(a().mark((function t(){var e;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,tt({springboot:0});case 3:return e=t.sent,mt.value=e.data.map((function(t){return{label:t,value:t}})),t.abrupt("return",{data:e.data,status:e.status});case 8:return t.prev=8,t.t0=t.catch(0),t.abrupt("return",{msg:"获取用户列表失败",status:!1});case 12:case"end":return t.stop()}}),t,null,[[0,8]])})))),t("f",(function(){st.value="jdkSettings"})),t("b",function(){var t=u(a().mark((function t(e){var n;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,nt();case 3:n=t.sent,e.value.port=n.msg;case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),w({__name:"index",setup:function(t){var e=f({options:[{type:"button",label:"安装Tomcat",active:!0,onClick:yt}]}).BtOperation,n=p({request:gt,columns:[{label:"名称",prop:"t_name",isCustom:!0},{label:"Tomcat版本",prop:"version",isCustom:!0},{label:"JAVA支持",prop:"jdk_support",isCustom:!0},{label:"类型",width:60,render:function(t){return"global"===t.type?"全局":"自定义"}},{label:"路径",prop:"path",isCustom:!0,showOverflowTooltip:!0},A({prop:"running",event:function(t){return _t(t,!1)}}),{label:"端口",prop:"port"},{label:"JDK",prop:"jdk_version"},{label:"备注",prop:"ps"},H([{title:"修改",onClick:xt},{title:"重载",onClick:function(t){return _t(t,!0)}},{title:"配置",onClick:bt},{title:"卸载",onClick:kt}])],extension:[v(ft)]}),r=n.BtTable,a=n.BtRefresh,o=n.BtColumn;return function(t,n){var u=U;return x(),k(u,null,{"header-left":_((function(){return[j(T(e))]})),"header-right":_((function(){return[j(T(a),{class:"mr-[10px]"}),j(T(o))]})),content:_((function(){return[j(T(r),{"max-height":"440"})]})),"footer-left":_((function(){return n[0]||(n[0]=[])})),"footer-right":_((function(){return n[1]||(n[1]=[])})),_:1})}}})),Tt={class:"flex items-center"},Ot={class:"flex items-center"},Lt={class:"flex items-center mx-[12px]"},Et={class:"p-[20px] flex flex-col"},St={class:"flex items-center ml-[40px]"},Pt={class:"bg-[#333] p-[12px] h-full text-white overflow-auto logMsg"},Ct=["innerHTML"],Jt=w({__name:"index",props:{compData:{default:{}}},emits:["close"],setup:function(t,e){var r=e.emit,o=t,c=y(),i=r,f=b(""),p=b(""),v=b(!1),g=b([]),w=b([]),A=b([]),H=b(!1),R=b(""),Y=b([]),X=b(!1),Q=b(!1),W=b("正在请求安装..."),Z=function(){lt({type:"file",path:f.value,change:function(t){f.value=t,setTimeout((function(){v.value=!0}),0)}})},tt=function(){var t=u(a().mark((function t(){var e;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,rt({data:JSON.stringify({jdk:f.value})});case 3:e=t.sent,c.request(e),e.status&&(v.value=!1),dt(),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(0);case 12:case"end":return t.stop()}}),t,null,[[0,9]])})));return function(){return t.apply(this,arguments)}}(),et=function(){var t=u(a().mark((function t(e){var n;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,Y.value.find((function(t){t.name===e.name&&(t.operation=3)})),t.next=4,ut({version:e.name});case 4:n=t.sent,c.request(n),n.status&&it(),dt(),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(0);case 13:case"end":return t.stop()}}),t,null,[[0,10]])})));return function(e){return t.apply(this,arguments)}}(),nt=function(){var t=u(a().mark((function t(){var e;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,at({name:p.value});case 3:null!=(e=t.sent)&&e.status?c.request(e):c.error("string"==typeof e?e:e.msg),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})));return function(){return t.apply(this,arguments)}}(),ft=function(){var t=u(a().mark((function t(e){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l({title:"删除jdk",isHtml:!0,content:"是否删除【 ".concat(e.name,'】,<span class="text-danger">此操作将会删除该JDK目录下的所有文件,请确保该JDK未被使用</span>,是否继续操作?')});case 2:s({loading:"正在删除,请稍后...",request:ct({data:JSON.stringify({jdk:e.path})}),success:dt});case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),pt=function(t){t.hasOwnProperty("props")?st.value=t.props.name:st.value=t.name,dt()},vt=b({}),ht=function(){var t=u(a().mark((function t(e){var n;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,ot({java_path:R.value,version:vt.value.name.replace("Tomcat","")});case 3:(n=t.sent).status?it():c.error(n.msg),H.value=!1,t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0);case 11:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(e){return t.apply(this,arguments)}}(),mt=b([{label:"JDK版本",prop:"name",width:100},{label:"JDK地址",render:function(t){return 2===t.operation?j("span",{class:"truncate"},[t.path]):j("span",{class:"truncate bt-link ",onClick:function(){z(t),i("close")}},[t.path])}},{label:"操作",align:"right",width:136,render:function(t){switch(t.operation){case 0:return j("span",{class:" bt-link",onClick:function(){et(t)}},[J("安装")]);case 1:return j("span",{class:"bt-danger",onClick:function(){ft(t)}},[J("删除")]);case 2:return j("span",null,[J("不可操作")]);case 3:return j("span",{class:"bt-link",onClick:function(){dt()}},[J("正在安装,点击刷新")])}}}]),dt=function(){var t=u(a().mark((function t(){var e,r;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,X.value=!0,t.next=4,$();case 4:for(e=t.sent,Y.value=e.data.jdk_info.sort((function(t,e){return e.operation-t.operation})),g.value.length=0,w.value=[],r=0;r<e.data.jdk_info.length;r++)e.data.jdk_info[r].is_current&&(p.value=e.data.jdk_info[r].name),1===e.data.jdk_info[r].operation&&g.value.push({label:e.data.jdk_info[r].name,value:e.data.jdk_info[r].name}),0!==e.data.jdk_info[r].operation&&w.value.push({label:e.data.jdk_info[r].name,value:e.data.jdk_info[r].path});A.value=[],e.data.tomcat_status.forEach((function(t){A.value.push(n(n({name:"Tomcat".concat(t.version)},t),{},{popover:!1,portInput:t.port}))})),t.next=15;break;case 13:t.prev=13,t.t0=t.catch(0);case 15:return t.prev=15,X.value=!1,t.finish(15);case 18:case"end":return t.stop()}}),t,null,[[0,13,15,18]])})));return function(){return t.apply(this,arguments)}}();return O(u(a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!o.compData.name){t.next=5;break}st.value=o.compData.name,pt({name:o.compData.name}),t.next=8;break;case 5:return st.value="newTomCat",t.next=8,dt();case 8:case"end":return t.stop()}}),t)})))),L((function(){st.value="jdkSettings"})),function(t,e){var n=M,r=F,a=q,o=G,u=K,c=B,i=h,l=U,s=I,y=m,b=d,O=E("bt-loading");return x(),S("div",null,[j(y,{type:"left-bg-card",class:"h-full",modelValue:T(st),"onUpdate:modelValue":e[3]||(e[3]=function(t){return C(st)?st.value=t:null}),onTabClick:pt},{default:_((function(){return[j(s,{label:"JDK管理",name:"jdkSettings",lazy:!0,class:"overflow-y-auto"},{default:_((function(){return[j(l,null,{"header-left":_((function(){return[P("div",Tt,[j(a,{placement:"bottom",width:"380",trigger:"click",visible:T(v),"onUpdate:visible":e[1]||(e[1]=function(t){return C(v)?v.value=t:null}),"popper-class":"white-tips-popover"},{default:_((function(){return[P("div",Ot,[e[10]||(e[10]=J(" jdk路径: ")),j(n,{modelValue:T(f),"onUpdate:modelValue":e[0]||(e[0]=function(t){return C(f)?f.value=t:null}),placeholder:"请输入JDK路径",icon:"el-folder-opened",onIconClick:Z,class:"!w-[20rem] mx-[12px]",width:"20rem"},null,8,["modelValue"]),j(r,{type:"primary",onClick:tt},{default:_((function(){return e[9]||(e[9]=[J("添加")])})),_:1})])]})),reference:_((function(){return[j(r,{type:"primary"},{default:_((function(){return e[11]||(e[11]=[J("添加自定义JDK")])})),_:1})]})),_:1},8,["visible"]),P("div",Lt,[e[12]||(e[12]=P("span",{class:"mr-[4px]"},"命令行版本",-1)),j(u,{class:"!w-[14rem]",modelValue:T(p),"onUpdate:modelValue":e[2]||(e[2]=function(t){return C(p)?p.value=t:null}),onChange:nt},{default:_((function(){return[(x(!0),S(V,null,D(T(g),(function(t){return x(),k(o,{key:t.value,label:t.label,value:t.value},null,8,["label","value"])})),128))]})),_:1},8,["modelValue"])])])]})),"header-right":_((function(){return[j(c,{onRefresh:dt})]})),content:_((function(){return[N(j(i,{height:"440",column:T(mt),data:T(Y)},null,8,["column","data"]),[[O,T(X)]])]})),_:1})]})),_:1}),j(s,{label:"Tomcat管理",name:"newTomCat",lazy:!0},{default:_((function(){return[j(jt)]})),_:1})]})),_:1},8,["modelValue"]),j(b,{title:"安装tomcat",modelValue:T(H),"onUpdate:modelValue":e[5]||(e[5]=function(t){return C(H)?H.value=t:null}),area:36,showFooter:"",onConfirm:e[6]||(e[6]=function(t){return ht()})},{default:_((function(){return[P("div",Et,[e[14]||(e[14]=P("div",{class:"flex items-center text-[1.4rem]"},[P("i",{class:"svgtofont-el-warning-filled text-warning !text-[4rem] mr-[12px]"}),J(" 是否安装Tomcat? ")],-1)),P("div",St,[e[13]||(e[13]=J(" jdk版本: ")),j(u,{class:"!w-[16rem] ml-[12px]",modelValue:T(R),"onUpdate:modelValue":e[4]||(e[4]=function(t){return C(R)?R.value=t:null}),"empty-values":[null,void 0]},{default:_((function(){return[j(o,{label:"默认版本",value:""}),(x(!0),S(V,null,D(T(w),(function(t){return x(),k(o,{key:t.value,label:t.label,value:t.value},null,8,["label","value"])})),128))]})),_:1},8,["modelValue"])])])]})),_:1},8,["modelValue"]),j(b,{title:"安装信息",modelValue:T(Q),"onUpdate:modelValue":e[7]||(e[7]=function(t){return C(Q)?Q.value=t:null}),area:[50,36],onCancel:e[8]||(e[8]=function(){return W.value="正在请求安装..."})},{default:_((function(){return[P("div",Pt,[P("pre",{innerHTML:T(W),class:"whitespace-pre-wrap"},null,8,Ct)])]})),_:1},8,["modelValue"])])}}}),Vt=g(Jt,[["__scopeId","data-v-f8992e23"]]),Dt=Object.freeze(Object.defineProperty({__proto__:null,default:Vt},Symbol.toStringTag,{value:"Module"}));t("k",Dt)}}}))}();
Save File
Cancel