← Back
Editing: index-legacy397.js
!function(){function r(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,n,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.toStringTag||"@@toStringTag";function u(r,o,a,i){var u=o&&o.prototype instanceof l?o:l,s=Object.create(u.prototype);return e(s,"_invoke",function(r,e,o){var a,i,u,l=0,s=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(r,e){return a=r,i=0,u=t,p.n=e,c}};function d(r,e){for(i=r,u=e,n=0;!f&&l&&!o&&n<s.length;n++){var o,a=s[n],d=p.p,v=a[2];r>3?(o=v===e)&&(u=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=t):a[0]<=d&&((o=r<2&&d<a[1])?(i=0,p.v=e,p.n=a[1]):d<v&&(o=r<3||a[0]>e||e>v)&&(a[4]=r,a[5]=e,p.n=v,i=0))}if(o||r>1)return c;throw f=!0,e}return function(o,s,v){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,v),i=s,u=v;(n=i<2?t:u)||!f;){a||(i?i<3?(i>1&&(p.n=-1),d(i,u)):p.n=u:p.v=u);try{if(l=2,a){if(i||(o="next"),n=a[o]){if(!(n=n.call(a,u)))throw TypeError("iterator result is not an object");if(!n.done)return n;u=n.value,i<2&&(i=0)}else 1===i&&(n=a.return)&&n.call(a),i<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=t}else if((n=(f=p.n<0)?u:r.call(e,p))!==c)break}catch(n){a=t,i=1,u=n}finally{l=1}}return{value:n,done:f}}}(r,a,i),!0),s}var c={};function l(){}function s(){}function f(){}n=Object.getPrototypeOf;var p=[][a]?n(n([][a]())):(e(n={},a,function(){return this}),n),d=f.prototype=l.prototype=Object.create(p);function v(r){return Object.setPrototypeOf?Object.setPrototypeOf(r,f):(r.__proto__=f,e(r,i,"GeneratorFunction")),r.prototype=Object.create(d),r}return s.prototype=f,e(d,"constructor",f),e(f,"constructor",s),s.displayName="GeneratorFunction",e(f,i,"GeneratorFunction"),e(d),e(d,i,"Generator"),e(d,a,function(){return this}),e(d,"toString",function(){return"[object Generator]"}),(r=function(){return{w:u,m:v}})()}function e(r,t,n,o){var a=Object.defineProperty;try{a({},"",{})}catch(r){a=0}e=function(r,t,n,o){function i(t,n){e(r,t,function(r){return this._invoke(t,n,r)})}t?a?a(r,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):r[t]=n:(i("next",0),i("throw",1),i("return",2))},e(r,t,n,o)}function t(r,e,t,n,o,a,i){try{var u=r[a](i),c=u.value}catch(r){return void t(r)}u.done?e(c):Promise.resolve(c).then(n,o)}function n(r){return function(){var e=this,n=arguments;return new Promise(function(o,a){var i=r.apply(e,n);function u(r){t(i,o,a,u,c,"next",r)}function c(r){t(i,o,a,u,c,"throw",r)}u(void 0)})}}System.register(["./base-lib-legacy.js?v=1765440387","./utils-lib-legacy.js?v=1765440387","./useController-legacy3.js?v=1765440387","./__commonjsHelpers__-legacy.js?v=1765440387","./validator-legacy.js?v=1765440387","./index-legacy94.js?v=1765440387","./column-legacy.js?v=1765440387"],function(e,t){"use strict";var o,a,i,u,c,l,s,f,p,d,v,g,_,y,h,m,b;return{setters:[function(r){o=r.c,a=r.r,i=r.k,u=r.p,c=r.q,l=r.v,s=r.e,f=r.A,p=r.x,d=r.M,v=r.C,g=r.Q,_=r.bW,y=r.aa,h=r.a8},function(r){m=r.j},function(r){b=r.t},null,null,null,null],execute:function(){var t={class:"p-2rem"};e("default",o({__name:"index",props:{compData:{default:function(){return{}}}},setup:function(e,o){var j=o.expose,w=e,x=a(),O=a(!1),k=a(),C=i({run_script_id:"",script:"",args:""}),S=i({is_args:"",args_holder:"",args_title:""}),T={label:"name",value:"script_id",children:"script_list"},G=i({run_script_id:[{required:!0,message:"请选择脚本",trigger:"change"}],args:[{required:!0,message:"请输入值",trigger:"blur"}]}),P=a(""),V=a([]),E=function(r){var e=k.value.getCheckedNodes()[0].data;C.script=e.script,1===e.is_args?(S.is_args=!0,S.args_holder=e.args_ps,S.args_title=e.args_title):S.is_args=!1},q=function(){var e=n(r().m(function e(t){return r().w(function(r){for(;;)switch(r.n){case 0:return r.n=1,x.value.validate();case 1:P.value=""!==P.value?P.value+"\n"+C.script:C.script,-1!==C.script.indexOf("php_version")&&(P.value=P.value.replace("${1/./}",C.args)),w.compData.onConfirm({scriptText:P.value,args:C.args}),t();case 2:return r.a(2)}},e)}));return function(r){return e.apply(this,arguments)}}(),A=function(){var e=n(r().m(function e(){var t;return r().w(function(r){for(;;)switch(r.p=r.n){case 0:return r.p=0,r.n=1,b();case 1:t=r.v,V.value=Array.isArray(t)?t.filter(function(r){return"服务管理"==r.name}):[],r.n=3;break;case 2:r.p=2,r.v;case 3:return r.a(2)}},e,null,[[0,2]])}));return function(){return e.apply(this,arguments)}}();return u(A),j({onConfirm:q}),function(r,e){var n=_,o=y,a=m,i=h;return c(),l("div",t,[s(i,{ref_key:"taskEvent",ref:x,disabled:p(O),"label-width":"80px",model:p(C),rules:p(G),onSubmit:e[2]||(e[2]=g(function(){},["prevent"]))},{default:f(function(){return[s(o,{label:"选择脚本",prop:"run_script_id"},{default:f(function(){return[s(n,{"show-all-levels":!1,onChange:E,modelValue:p(C).run_script_id,"onUpdate:modelValue":e[0]||(e[0]=function(r){return p(C).run_script_id=r}),ref_key:"scriptCascader",ref:k,props:T,options:p(V),placeholder:"请选择脚本,支持搜索",filterable:""},null,8,["modelValue","options"])]}),_:1}),p(S).is_args?(c(),d(o,{key:0,label:p(S).args_title,prop:"args"},{default:f(function(){return[s(a,{placeholder:p(S).args_holder,modelValue:p(C).args,"onUpdate:modelValue":e[1]||(e[1]=function(r){return p(C).args=r}),width:"17rem"},null,8,["placeholder","modelValue"])]}),_:1},8,["label"])):v("",!0)]}),_:1},8,["disabled","model","rules"])])}}}))}}})}();
Save File
Cancel