← Back
Editing: index-legacy169.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 o=null!=arguments[n]?arguments[n]:{};n%2?e(Object(o),!0).forEach((function(e){r(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,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 o=r.call(e,n||"default");if("object"!=t(o))return o;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 o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */o=function(){return n};var e,n={},r=Object.prototype,a=r.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",s=u.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 o=e&&e.prototype instanceof b?e:b,a=Object.create(o.prototype),u=new S(r||[]);return i(a,"_invoke",{value:E(t,n,u)}),a}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var v="suspendedStart",h="suspendedYield",m="executing",y="completed",g={};function b(){}function w(){}function x(){}var _={};f(_,c,(function(){return this}));var j=Object.getPrototypeOf,P=j&&j(j(D([])));P&&P!==r&&a.call(P,c)&&(_=P);var k=x.prototype=b.prototype=Object.create(_);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(o,i,u,c){var l=d(e[o],e,i);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==t(f)&&a.call(f,"__await")?n.resolve(f.__await).then((function(t){r("next",t,u,c)}),(function(t){r("throw",t,u,c)})):n.resolve(f).then((function(t){s.value=t,u(s)}),(function(t){return r("throw",t,u,c)}))}c(l.arg)}var o;i(this,"_invoke",{value:function(t,e){function a(){return new n((function(n,o){r(t,e,n,o)}))}return o=o?o.then(a,a):a()}})}function E(t,n,r){var o=v;return function(a,i){if(o===m)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:e,done:!0}}for(r.method=a,r.arg=i;;){var u=r.delegate;if(u){var c=T(u,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===v)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var l=d(t,n,r);if("normal"===l.type){if(o=r.done?y:h,l.arg===g)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=y,r.method="throw",r.arg=l.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=d(o,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var i=a.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function F(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 S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(F,this),this.reset(!0)}function D(n){if(n||""===n){var r=n[c];if(r)return r.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var o=-1,i=function t(){for(;++o<n.length;)if(a.call(n,o))return t.value=n[o],t.done=!1,t;return t.value=e,t.done=!0,t};return i.next=i}}throw new TypeError(t(n)+" is not iterable")}return w.prototype=x,i(k,"constructor",{value:x,configurable:!0}),i(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(k),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,o,a){void 0===a&&(a=Promise);var i=new L(p(t,e,r,o),a);return n.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},O(k),f(k,s,"Generator"),f(k,c,(function(){return this})),f(k,"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=D,S.prototype={constructor:S,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)&&a.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,o){return u.type="throw",u.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],u=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=a.call(i,"catchLoc"),l=a.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.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&&a.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 i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},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 o=r.arg;C(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:D(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},n}function a(t,e,n,r,o,a,i){try{var u=t[a](i),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}function i(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function u(t){a(i,r,o,u,c,"next",t)}function c(t){a(i,r,o,u,c,"throw",t)}u(void 0)}))}}System.register(["./utils-lib-legacy.js?v=VERSION_NUMBER","./base-lib-legacy.js?v=VERSION_NUMBER","./index-legacy140.js?v=VERSION_NUMBER","./index-legacy103.js?v=VERSION_NUMBER","./index-legacy104.js?v=VERSION_NUMBER","./index.vue_vue_type_script_setup_true_lang-legacy7.js?v=VERSION_NUMBER","./index.vue_vue_type_script_setup_true_lang-legacy8.js?v=VERSION_NUMBER","./useStore-legacy8.js?v=VERSION_NUMBER","./column-legacy.js?v=VERSION_NUMBER","./index-legacy141.js?v=VERSION_NUMBER","./validator-legacy.js?v=VERSION_NUMBER","./index.vue_vue_type_style_index_0_scoped_b3c4124c_lang-legacy.js?v=VERSION_NUMBER","./__commonjsHelpers__-legacy.js?v=VERSION_NUMBER","./ace-legacy.js?v=VERSION_NUMBER","./index-legacy124.js?v=VERSION_NUMBER"],(function(t,e){"use strict";var r,a,u,c,l,s,f,p,d,v,h,m,y,g,b,w,x,_,j,P,k,O,L,E,T,F,C,S,D,B,V,G,N,I,z,q,A,M,R,U,H,W,Y,Z,K,J,Q,X,$,tt,et,nt,rt,ot,at,it,ut,ct,lt,st,ft,pt,dt,vt,ht,mt,yt,gt,bt,wt,xt,_t,jt;return{setters:[function(t){r=t.u,a=t.aa,u=t.K,c=t.gw,l=t.bT,s=t.p,f=t.n,p=t.L,d=t.at,v=t.gx,h=t.aM,m=t.a6,y=t.R,g=t.a7,b=t.A,w=t.a8,x=t.k,_=t.W,j=t.al},function(t){P=t.r,k=t.k,O=t.c,L=t.s,E=t.e,T=t.w,F=t.p,C=t.G,S=t.q,D=t.M,B=t.A,V=t.y,G=t.x,N=t.z,I=t.B,z=t.H,q=t.v,A=t.P,M=t.aA,R=t.a9,U=t.D,H=t.a7,W=t.al},function(t){Y=t.B},function(t){Z=t._},function(t){K=t._},function(t){J=t.S,Q=t._},function(t){X=t.S,$=t._},function(t){tt=t.u,et=t.a,nt=t.c,rt=t.d,ot=t.e,at=t.f,it=t.g,ut=t.h,ct=t.b,lt=t.i,st=t.j,ft=t.k,pt=t.s},function(t){dt=t.a,vt=t.i,ht=t.b,mt=t.j,yt=t.d,gt=t.k,bt=t.g,wt=t.u},function(t){xt=t.u},function(t){_t=t.D,jt=t.p},null,null,null,null],execute:function(){var Pt=r(),kt=Pt.payment,Ot=Pt.getGlobalInfo,Lt=tt(),Et=Lt.ftpPort,Tt=Lt.rowData,Ft=et().isEdit,Ct=J(),St=X(),Dt=P("service"),Bt=P({}),Vt=P(!1),Gt=function(){var t=i(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Ot();case 3:t.next=8;break;case 5:t.prev=5,t.t0=t.catch(0),d(t.t0);case 8:case"end":return t.stop()}}),t,null,[[0,5]])})));return function(){return t.apply(this,arguments)}}(),Nt=P(),It=k({port:Et.value}),zt=k({port:[a()]}),qt=function(){var t=i(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Nt.value.validate();case 2:return t.next=4,u({loading:"正在修改FTP端口,请稍后...",request:c({port:It.port}),data:{status:Boolean},message:!0});case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),At=P(!1),Mt=P(""),Rt=[{content:"此处为pure-ftpd主配置文件,若您不了解配置规则,请勿随意修改"}],Ut=function(){var t=i(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,u({loading:"正在保存配置,请稍后...",request:l({path:"/www/server/pure-ftpd/etc/pure-ftpd.conf",data:Mt.value,encoding:"utf-8"}),message:!0});case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),Ht=function(){var t=i(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,u({loading:At,request:v({path:"/www/server/pure-ftpd/etc/pure-ftpd.conf"}),data:{data:[String,Mt]}});case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),Wt=P(""),Yt=P([]),Zt=P(!1),Kt=function(){var t=i(o().mark((function t(e){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s({title:"".concat(e?"开启":"关闭","pure-ftpd日志管理"),content:"".concat(e?"开启":"关闭","pure-ftpd日志管理后,将").concat(e?"":"无法","记录所有FTP用户的登录、操作记录,是否继续操作?")});case 2:return t.next=4,u({loading:"正在".concat(e?"开启":"关闭",",请稍后..."),request:_t({exec_name:e?"start":"stop"}),message:!0,success:Jt});case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Jt=function(){var t=i(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,u({loading:"正在获取日志状态,请稍后...",request:_t({exec_name:"getlog"}),success:function(t){Zt.value="start"===t.msg}});case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),Qt=function(){var t=i(o().mark((function t(e){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:Dt.value=e,t.t0=e,t.next="manger"===t.t0?4:"service"===t.t0||"portConfig"===t.t0?6:"config"===t.t0?8:"logs"===t.t0?10:12;break;case 4:return Vt.value=!0,t.abrupt("break",12);case 6:return Xt(),t.abrupt("break",12);case 8:return Ht(),t.abrupt("break",12);case 10:return Jt(),t.abrupt("break",12);case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Xt=function(t){t.id&&(Bt.value=t);var e=n(n({},Bt.value),{},{name:"pure-ftpd"});Ct.init(e),St.init(e),Wt.value=Bt.value.version,Yt.value=Bt.value.versions,Gt()},$t=function(t){return Tt.value=t,Ft.value=!!t,f({title:"".concat(t?"修改FTP用户【".concat(t.name,"】"):"添加FTP用户"),area:50,btn:"保存",compData:t||{},component:function(){return p((function(){return e.import("./index-legacy302.js?v=VERSION_NUMBER")}),void 0,e.meta.url)}})},te=function(t){Tt.value=t,f({title:"快速连接",area:48,compData:t,component:function(){return p((function(){return e.import("./index-legacy308.js?v=VERSION_NUMBER")}),void 0,e.meta.url)}})},ee=function(t){"ltd"===kt.value.authType?ne(t):jt({sourceId:52})},ne=function(t){Tt.value=t,f({title:"【".concat(t.name,"】FTP配额容量"),area:50,btn:!0,compData:t,component:function(){return p((function(){return e.import("./index-legacy304.js?v=VERSION_NUMBER")}),void 0,e.meta.url)}})},re=function(t){Tt.value=t,f({title:"修改FTP权限配置-[".concat(t.name,"]"),area:72,btn:"保存",compData:t,component:function(){return p((function(){return e.import("./index-legacy307.js?v=VERSION_NUMBER")}),void 0,e.meta.url)}})},oe=function(){var t=i(o().mark((function t(n){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:Tt.value=n,f({title:"查看FTP日志【"+n.name+"】",area:[70,58],compData:n,component:function(){return p((function(){return e.import("./index-legacy310.js?v=VERSION_NUMBER")}),void 0,e.meta.url)}});case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),ae={class:"my-[10px]"},ie={class:"flex items-center mb-[20px]"};t("default",O({__name:"index",props:{compData:{default:{}}},setup:function(t){var n,a,u,c=t,l=r().serverIp,s=tt(),d=s.rowData,v=s.ftpPort,k=s.isRefreshFtpList,O=s.pluginInfo,X=L(J()).compData,et=P([]),_t=xt({key:"type_id",name:"FTP分类",options:function(){return[{label:"全部分类",value:"all"}]},event:{get:(n=i(o().mark((function t(){var e;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,nt();case 2:return e=t.sent,et.value=e,t.abrupt("return",e);case 5:case"end":return t.stop()}}),t)}))),function(){return n.apply(this,arguments)}),add:rt,update:ot,delete:at}}),jt=h({options:[{type:"button",label:"添加FTP",active:!0,onClick:function(){return $t()}}]}).BtOperation,Pt=w([{label:"启用FTP",value:"start",event:ft},{label:"停用FTP",value:"stop",event:ft},{label:"改密FTP",value:"exitPaw",event:(u=i(o().mark((function t(n,r,a,i,u){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return d.value={selectedList:a,clearSelection:u},t.next=3,f({title:"批量修改FTP密码",area:"auto",btn:!0,compData:{selectedList:a,clearSelection:u},component:function(){return p((function(){return e.import("./index-legacy309.js?v=VERSION_NUMBER")}),void 0,e.meta.url)}});case 3:case"end":return t.stop()}}),t)}))),function(t,e,n,r,o){return u.apply(this,arguments)})},{label:"设置分类",value:"setClass",event:(a=i(o().mark((function t(e,n,r,a,i,u){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:pt(r,i,et,u);case 1:case"end":return t.stop()}}),t)}))),function(t,e,n,r,o,i){return a.apply(this,arguments)})},{label:"删除FTP",value:"delete",event:ft}]),kt=m({request:function(t){return"manger"!==Dt.value?Promise.resolve({data:[],total:0}):("all"===t.type_id&&(t.type_id=""),it(t))},columns:[dt(),{label:"用户名",prop:"name",minWidth:100},vt(),ht({event:ut,data:["已停用","已启用"],width:80}),mt({label:"快速连接",width:80,isCustom:!1,title:"复制快速连接信息",text:"点击查看",event:te}),yt(),{label:"密码有效期",minWidth:100,isCustom:!1,title:"设置密码有效期",prop:"end_time",render:function(t){var n=ct(t),r=n.isOrange,o=n.isEnd;return E("span",{onClick:function(){d.value=t,function(t){f({title:"设置密码有效期",area:46,btn:!0,compData:t,component:function(){return p((function(){return e.import("./index-legacy303.js?v=VERSION_NUMBER")}),void 0,e.meta.url)}})}(t)},title:"设置密码有效期",style:"color:#".concat(o?"ef0808":r?"f0ad4e":"20a53a",";cursor:pointer")},["0"!==t.end_time?y(Number(t.end_time),"yyyy-MM-dd"):"永久"])}},gt({isCustom:!1,event:ee}),bt({table:"ftps",width:100}),wt([{onClick:re,title:"配置"},{onClick:$t,title:"修改"},{onClick:oe,title:"日志"},{onClick:lt,title:"删除"}])],extension:[_t,Pt,g(k)]}),Ot=kt.BtTable,Lt=kt.BtPage,Et=kt.BtSearch,Tt=kt.BtRefresh,Ft=kt.BtColumn,Ct=kt.BtBatch,St=kt.BtTableCategory,Bt=kt.refresh;return T((function(){return Vt.value}),(function(t){t&&Bt()})),T((function(){return k.value}),(function(t){Bt()}),{immediate:!0,deep:!0}),F((function(){c.compData&&(O.value=c.compData),Xt(O.value),Dt.value="service",X.value.refreshEvent=st})),function(t,e){var n=K,r=M,o=Z,a=x,i=R,u=U,c=H,s=Y,f=_,p=W,d=j,h=C("bt-loading");return S(),D(d,{modelValue:G(Dt),"onUpdate:modelValue":e[4]||(e[4]=function(t){return A(Dt)?Dt.value=t:null}),type:"left-bg-card",position:"left",class:"h-full",onChange:G(Qt)},{default:B((function(){return[E(r,{label:"服务",name:"service",lazy:!0},{default:B((function(){return[V("div",null,[E(Q),E(n,{direction:"horizontal"}),e[5]||(e[5]=V("span",null," 当前FTP地址为: ",-1)),V("span",{class:"cursor-pointer",title:"点击复制FTP路径",onClick:e[0]||(e[0]=function(t){return G(b)({value:"ftp://".concat(G(l)||"IP地址",":").concat(G(v)||"端口")})})}," ftp://"+N(G(l)||"IP地址")+":"+N(G(v)||"端口"),1),E(n),e[6]||(e[6]=V("span",{class:"bt-link"},[V("a",{target:"_self",href:"https://download.bt.cn/win/filezilla/FileZilla-setup.exe"}," 下载FTP连接工具(FileZilla, 免费开源) ")],-1)),E($)])]})),_:1}),E(r,{label:"用户管理",name:"manger",lazy:!0},{default:B((function(){return[E(o,null,{"header-left":B((function(){return[E(G(jt))]})),"header-right":B((function(){return[E(G(St),{class:"!w-[140px] mr-[10px]"}),E(G(Et),{class:"!w-[20rem] mr-[10px]",placeholder:"请输入用户名"}),E(G(Tt),{class:"mr-[10px]"}),E(G(Ft))]})),content:B((function(){return[E(G(Ot),{"max-height":420})]})),"footer-left":B((function(){return[E(G(Ct))]})),"footer-right":B((function(){return[E(G(Lt))]})),_:1})]})),_:1}),E(r,{label:"端口配置",name:"portConfig",lazy:!0},{default:B((function(){return[E(c,{ref_key:"portFormRef",ref:Nt,model:G(It),rules:G(zt),"label-width":"80px",class:"-ml-2rem"},{default:B((function(){return[E(i,{label:"默认端口"},{default:B((function(){return[E(a,{type:"number",modelValue:G(It).port,"onUpdate:modelValue":e[1]||(e[1]=function(t){return G(It).port=t}),placeholder:"请输入端口",width:"14rem"},null,8,["modelValue"])]})),_:1}),E(i,{label:" "},{default:B((function(){return[E(u,{type:"primary",onClick:G(qt)},{default:B((function(){return e[7]||(e[7]=[I("保存")])})),_:1},8,["onClick"])]})),_:1})]})),_:1},8,["model","rules"])]})),_:1}),E(r,{label:"配置文件",name:"config",lazy:!0},{default:B((function(){return[z((S(),q("div",null,[e[9]||(e[9]=V("span",{class:"my-[4px] text-[#666]"}," 提示:Ctrl+F 搜索关键字,Ctrl+S 保存,Ctrl+H 查找替换 ",-1)),V("div",ae,[E(s,{class:"!h-[40rem] !w-full",modelValue:G(Mt),"onUpdate:modelValue":e[2]||(e[2]=function(t){return A(Mt)?Mt.value=t:null}),id:"configContent",onSave:G(Ut)},null,8,["modelValue","onSave"])]),E(u,{type:"primary",onClick:G(Ut)},{default:B((function(){return e[8]||(e[8]=[I("保存")])})),_:1},8,["onClick"]),E(f,{options:G(Rt),class:"mt-1rem"},null,8,["options"])])),[[h,G(At)]])]})),_:1}),E(r,{label:"日志管理",name:"logs",lazy:!0},{default:B((function(){return[V("div",null,[V("div",ie,[e[10]||(e[10]=V("span",{class:"mr-[8px]"},"日志管理开关",-1)),E(p,{modelValue:G(Zt),"onUpdate:modelValue":e[3]||(e[3]=function(t){return A(Zt)?Zt.value=t:null}),onChange:G(Kt)},null,8,["modelValue","onChange"])]),e[11]||(e[11]=V("ul",{class:"leading-8 text-[1.2rem] list-disc ml-[20px]"},[V("li",null,"开启后,将记录所有FTP用户的登录、操作记录")],-1))])]})),_:1})]})),_:1},8,["modelValue","onChange"])}}}))}}}))}();
Save File
Cancel