← Back
Editing: index-legacy307.js
!function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function n(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?t(Object(o),!0).forEach((function(t){r(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function r(t,n,r){return(n=function(t){var n=function(t,n){if("object"!=e(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,n||"default");if("object"!=e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==e(n)?n:n+""}(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,l,i=[],u=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(i.push(r.value),i.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function l(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */l=function(){return n};var t,n={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(t){d=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var o=t&&t.prototype instanceof b?t:b,l=Object.create(o.prototype),i=new I(r||[]);return a(l,"_invoke",{value:F(e,n,i)}),l}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=f;var m="suspendedStart",h="suspendedYield",v="executing",_="completed",y={};function b(){}function w(){}function g(){}var x={};d(x,u,(function(){return this}));var V=Object.getPrototypeOf,j=V&&V(V(k([])));j&&j!==r&&o.call(j,u)&&(x=j);var P=g.prototype=b.prototype=Object.create(x);function O(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function E(t,n){function r(a,l,i,u){var c=p(t[a],t,l);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==e(d)&&o.call(d,"__await")?n.resolve(d.__await).then((function(e){r("next",e,i,u)}),(function(e){r("throw",e,i,u)})):n.resolve(d).then((function(e){s.value=e,i(s)}),(function(e){return r("throw",e,i,u)}))}u(c.arg)}var l;a(this,"_invoke",{value:function(e,t){function o(){return new n((function(n,o){r(e,t,n,o)}))}return l=l?l.then(o,o):o()}})}function F(e,n,r){var o=m;return function(a,l){if(o===v)throw Error("Generator is already running");if(o===_){if("throw"===a)throw l;return{value:t,done:!0}}for(r.method=a,r.arg=l;;){var i=r.delegate;if(i){var u=S(i,r);if(u){if(u===y)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===m)throw o=_,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=v;var c=p(e,n,r);if("normal"===c.type){if(o=r.done?_:h,c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=_,r.method="throw",r.arg=c.arg)}}}function S(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,S(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var a=p(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,y;var l=a.arg;return l?l.done?(n[e.resultName]=l.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):l:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function k(n){if(n||""===n){var r=n[u];if(r)return r.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var a=-1,l=function e(){for(;++a<n.length;)if(o.call(n,a))return e.value=n[a],e.done=!1,e;return e.value=t,e.done=!0,e};return l.next=l}}throw new TypeError(e(n)+" is not iterable")}return w.prototype=g,a(P,"constructor",{value:g,configurable:!0}),a(g,"constructor",{value:w,configurable:!0}),w.displayName=d(g,s,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,d(e,s,"GeneratorFunction")),e.prototype=Object.create(P),e},n.awrap=function(e){return{__await:e}},O(E.prototype),d(E.prototype,c,(function(){return this})),n.AsyncIterator=E,n.async=function(e,t,r,o,a){void 0===a&&(a=Promise);var l=new E(f(e,t,r,o),a);return n.isGeneratorFunction(t)?l:l.next().then((function(e){return e.done?e.value:l.next()}))},O(P),d(P,s,"Generator"),d(P,u,(function(){return this})),d(P,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=k,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(N),!e)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,o){return i.type="throw",i.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var l=this.tryEntries[a],i=l.completion;if("root"===l.tryLoc)return r("end");if(l.tryLoc<=this.prev){var u=o.call(l,"catchLoc"),c=o.call(l,"finallyLoc");if(u&&c){if(this.prev<l.catchLoc)return r(l.catchLoc,!0);if(this.prev<l.finallyLoc)return r(l.finallyLoc)}else if(u){if(this.prev<l.catchLoc)return r(l.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return r(l.finallyLoc)}}}},abrupt:function(e,t){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"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var l=a?a.completion:{};return l.type=e,l.arg=t,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(l)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),N(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;N(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:k(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},n}function i(e,t,n,r,o,a,l){try{var i=e[a](l),u=i.value}catch(e){return void n(e)}i.done?t(u):Promise.resolve(u).then(r,o)}function u(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function l(e){i(a,r,o,l,u,"next",e)}function u(e){i(a,r,o,l,u,"throw",e)}l(void 0)}))}}System.register(["./base-lib-legacy.js?v=VERSION_NUMBER","./utils-lib-legacy.js?v=VERSION_NUMBER","./useStore-legacy8.js?v=VERSION_NUMBER","./__commonjsHelpers__-legacy.js?v=VERSION_NUMBER","./validator-legacy.js?v=VERSION_NUMBER","./index-legacy104.js?v=VERSION_NUMBER","./column-legacy.js?v=VERSION_NUMBER"],(function(e,t){"use strict";var r,a,i,c,s,d,f,p,m,h,v,_,y,b,w,g,x,V,j,P,O,E,F,S,L,N,I,k,U,D,T,A,B,z,G,C,M,q,K,H,$,J;return{setters:[function(e){r=e.s,a=e.j,i=e.r,c=e.k,s=e.g,d=e.b4,f=e.c,p=e.p,m=e.a4,h=e.q,v=e.v,_=e.e,y=e.A,b=e.x,w=e.F,g=e.a_,x=e.M,V=e.y,j=e.z,P=e.J,O=e.H,E=e.I,F=e.P,S=e.ai,L=e.aj,N=e.S,I=e.a9,k=e.b8,U=e.b9,D=e.a7,T=e.b$,A=e.a$,B=e.R},function(e){z=e.K,G=e.N,C=e.fi,M=e.M,q=e.k,K=e.e},function(e){H=e.u,$=e.J,J=e.K},null,null,null,null],execute:function(){var t=a("FTP-ACCESS-STORE",(function(){var e=i(!1),t=i(0),n=i(0),r=i(),o=i(!1),a=i({username:"",download_bandwidth:"",upload_bandwidth:"",max_files:"",max_size:"",ratio:"",allowed_local_ips:"",denied_local_ips:"",allowed_client_ips:"",denied_client_ips:"",time_restrictions:[],max_sim_sessions:""}),l=c({download_bandwidth:"KB",upload_bandwidth:"KB",max_size:"KB"}),u=i(["KB","MB","GB"]),d=i({});return{accessFormFef:r,accessForm:a,uNum:t,dNum:n,icon:s((function(){return e.value?"svgtofont-el-arrow-up":"svgtofont-el-arrow-down"})),unitForm:l,advancedConfiguration:e,unitData:u,skipNull:o,AccessData:d}})),R=function(){return r(t())},Y=H().rowData,Q=R(),W=Q.accessFormFef,X=Q.accessForm,Z=Q.uNum,ee=Q.dNum,te=Q.unitForm,ne=Q.advancedConfiguration,re=Q.skipNull,oe=Q.AccessData,ae=function(e,t,n){""===t?n():""===t||void 0===t||null==t&&!re?n(new Error("请输入正确的IP地址")):C(t)?n():n(new Error("请输入正确的IP地址"))},le=d({allowed_local_ips:[{required:!1,validator:ae,message:"请输入正确的IP地址",trigger:"blur"}],denied_local_ips:[{required:!1,validator:ae,message:"请输入正确的IP地址",trigger:"blur"}],allowed_client_ips:[{required:!1,validator:ae,message:"请输入正确的IP地址",trigger:"blur"}],denied_client_ips:[{required:!1,validator:ae,message:"请输入正确的IP地址",trigger:"blur"}]}),ie=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:X.value,t=0,n=["allowed_local_ips","denied_local_ips","allowed_client_ips","denied_client_ips"];t<n.length;t++){var r=n[t];""!==e[r]&&(e[r]=e[r].replace(/\s+/g,""),re.value=!0,ae(0,e[r],(function(e){if(e)throw M.error(e.message+"或将其置空"),new Error(e.message)})))}},ue=function(){var e=u(l().mark((function e(){var t,n,r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=me(),ie(),e.next=4,W.value.validate();case 4:return e.next=6,z({loading:"正在获取FTP权限数据,请稍后...",request:$(t),data:{status:Boolean},message:!0});case 6:return n=e.sent,r=n.status,e.abrupt("return",r);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ce=function(){ne.value=!ne.value},se=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oe.value,t={},n={},r=0,o=0;for(var a in e){var l=e[a];if(["download_bandwidth","upload_bandwidth","max_size"].includes(a)){var i=l.slice(-2);n[a]=i||"MB",t[a]=l.slice(0,-2)}else if("time_restrictions"===a){if(""==l){t[a]=[new Date(2021,1,1,0,0),new Date(2021,1,1,23,59)];continue}var u=l.split("-"),c=u[0],s=u[1],d=c.slice(0,2),f=c.slice(2,4),p=s.slice(0,2),m=s.slice(2,4);t[a]=[new Date(2021,1,1,Number(d),Number(f)),new Date(2021,1,1,Number(p),Number(m))]}else if("ratio"===a){""==l&&(l="0:0");var h=l.split(":");r=Number(h[0]),o=Number(h[1])}else t[a]=l}return{perForm:t,unitForms:n,uNums:r,dNums:o}},de=function(){var e=u(l().mark((function e(){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Y.value.name,e.next=3,z({loading:"正在获取FTP权限数据,请稍后...",request:J({username:t}),success:function(e){var t=e.data,n=se(t),r=n.perForm,o=n.unitForms,a=n.uNums,l=n.dNums;Z.value=a,ee.value=l,Object.assign(X.value,r),Object.assign(te.value,o)}});case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),fe=function(){Y.value={},X.value={}},pe=function(e){return[e.getHours().toString().padStart(2,"0"),e.getMinutes().toString().padStart(2,"0")]},me=function(){var e=te.value,t=X.value,r=Z.value,a=ee.value,l=Y.value.name,i={download_bandwidth:"",upload_bandwidth:"",max_size:""};for(var u in e){var c=e[u],s=t[u];["download_bandwidth","upload_bandwidth","max_size"].includes(u)&&(""===s?i[u]="0":(""===c&&(c="KB"),i[u]=s+c))}var d="0000-0000";if(G(t.time_restrictions)&&t.time_restrictions.length>0){var f=new Date(t.time_restrictions[0]),p=new Date(t.time_restrictions[1]),m=o(pe(f),2),h=m[0],v=m[1],_=o(pe(p),2),y=_[0],b=_[1];d="".concat(h).concat(v,"-").concat(y).concat(b)}return t.ratio="".concat(r||"0",":").concat(a||"0"),"0:0"===t.ratio&&(t.ratio=""),n(n({},t),{},{time_restrictions:d,username:l},i)},he={class:"p-[20px]"},ve={class:"flex"},_e=f({__name:"index",setup:function(e,t){var n=t.expose,r=R(),o=r.accessFormFef,a=r.accessForm,l=r.uNum,i=r.dNum,u=r.icon,c=r.unitForm,s=r.advancedConfiguration,d=r.unitData;return p(de),m(fe),n({onConfirm:ue}),function(e,t){var n=S,r=L,f=N,p=I,m=k,z=U,G=D,C=q,M=T,K=A,H=B;return h(),v("div",he,[_(G,{model:b(a),ref_key:"accessFormFef",ref:o,class:"demo-form-inline",rules:b(le),"label-width":"11rem"},{default:y((function(){return[_(z,null,{default:y((function(){return[_(m,{span:12},{default:y((function(){return[_(p,{label:"下载带宽限制"},{default:y((function(){return[_(f,{type:"number",min:0,placeholder:"请输入下载带宽限制",modelValue:b(a).download_bandwidth,"onUpdate:modelValue":t[1]||(t[1]=function(e){return b(a).download_bandwidth=e}),class:"input-with-select"},{append:y((function(){return[_(r,{modelValue:b(c).download_bandwidth,"onUpdate:modelValue":t[0]||(t[0]=function(e){return b(c).download_bandwidth=e}),placeholder:"请选择"},{default:y((function(){return[(h(!0),v(w,null,g(b(d),(function(e,t){return h(),x(n,{key:t,label:e,value:e},null,8,["label","value"])})),128))]})),_:1},8,["modelValue"])]})),_:1},8,["modelValue"])]})),_:1})]})),_:1}),_(m,{span:12},{default:y((function(){return[_(p,{label:"上传带宽限制"},{default:y((function(){return[_(f,{type:"number",min:0,placeholder:"请输入上传带宽限制",modelValue:b(a).upload_bandwidth,"onUpdate:modelValue":t[3]||(t[3]=function(e){return b(a).upload_bandwidth=e}),class:"input-with-select"},{append:y((function(){return[_(r,{modelValue:b(c).upload_bandwidth,"onUpdate:modelValue":t[2]||(t[2]=function(e){return b(c).upload_bandwidth=e}),placeholder:"请选择"},{default:y((function(){return[(h(!0),v(w,null,g(b(d),(function(e,t){return h(),x(n,{key:t,label:e,value:e},null,8,["label","value"])})),128))]})),_:1},8,["modelValue"])]})),_:1},8,["modelValue"])]})),_:1})]})),_:1})]})),_:1})]})),_:1},8,["model","rules"]),_(G,{inline:!0,model:b(a),class:"demo-form-inline","label-width":"11rem"},{default:y((function(){return[_(z,null,{default:y((function(){return[_(m,{span:12},{default:y((function(){return[_(p,{label:"最大文件数量限制"},{default:y((function(){return[_(C,{type:"number",width:"18rem",min:0,modelValue:b(a).max_files,"onUpdate:modelValue":t[4]||(t[4]=function(e){return b(a).max_files=e}),placeholder:"请输入最大文件数量限制"},null,8,["modelValue"])]})),_:1})]})),_:1}),_(m,{span:12},{default:y((function(){return[_(p,{label:"最大文件大小限制"},{default:y((function(){return[_(f,{style:{"min-width":"180px"},placeholder:"请输入内容",type:"number",min:0,modelValue:b(a).max_size,"onUpdate:modelValue":t[6]||(t[6]=function(e){return b(a).max_size=e}),class:"input-with-select"},{append:y((function(){return[_(r,{modelValue:b(c).max_size,"onUpdate:modelValue":t[5]||(t[5]=function(e){return b(c).max_size=e}),placeholder:"请选择"},{default:y((function(){return[_(n,{label:"MB",value:"MB"})]})),_:1},8,["modelValue"])]})),_:1},8,["modelValue"])]})),_:1})]})),_:1})]})),_:1})]})),_:1},8,["model"]),_(G,{inline:!0,model:b(a),class:"demo-form-inline","label-width":"11rem"},{default:y((function(){return[_(z,null,{default:y((function(){return[_(m,{span:12},{default:y((function(){return[_(p,{label:"时间限制"},{default:y((function(){return[_(M,{format:"HH:mm",style:{width:"18rem"},"is-range":"",modelValue:b(a).time_restrictions,"onUpdate:modelValue":t[7]||(t[7]=function(e){return b(a).time_restrictions=e}),"range-separator":"-","start-placeholder":"开始","end-placeholder":"结束",placeholder:"选择时间范围"},null,8,["modelValue"])]})),_:1})]})),_:1}),_(m,{span:12},{default:y((function(){return[_(p,{label:"最大并发会话数"},{default:y((function(){return[_(C,{width:"18rem",type:"number",min:0,modelValue:b(a).max_sim_sessions,"onUpdate:modelValue":t[8]||(t[8]=function(e){return b(a).max_sim_sessions=e}),placeholder:"请输入最大并发会话数"},null,8,["modelValue"])]})),_:1})]})),_:1})]})),_:1})]})),_:1},8,["model"]),_(K,null,{default:y((function(){return[V("span",{class:"bt-link",onClick:t[9]||(t[9]=function(){return b(ce)&&b(ce).apply(void 0,arguments)})},j("svgtofont-el-arrow-down"===b(u)?"展开":"收起")+"更多配置 ",1),V("i",{class:P(b(u))},null,2)]})),_:1}),O(V("div",null,[_(G,{inline:!0,model:b(a),class:"demo-form-inline","label-width":"11rem"},{default:y((function(){return[_(z,null,{default:y((function(){return[_(m,{span:12},{default:y((function(){return[_(p,{prop:"allowed_local_ips",label:"允许的本地IP地址"},{default:y((function(){return[_(C,{width:"18rem",modelValue:b(a).allowed_local_ips,"onUpdate:modelValue":t[10]||(t[10]=function(e){return b(a).allowed_local_ips=e}),placeholder:"请输入允许的本地IP地址"},null,8,["modelValue"])]})),_:1})]})),_:1}),_(m,{span:12},{default:y((function(){return[_(p,{label:"拒绝的本地IP地址",prop:"denied_local_ips"},{default:y((function(){return[_(C,{width:"18rem",modelValue:b(a).denied_local_ips,"onUpdate:modelValue":t[11]||(t[11]=function(e){return b(a).denied_local_ips=e}),placeholder:"请输入拒绝的本地IP地址"},null,8,["modelValue"])]})),_:1})]})),_:1})]})),_:1})]})),_:1},8,["model"]),_(G,{inline:!0,model:b(a),class:"demo-form-inline","label-width":"11rem"},{default:y((function(){return[_(z,null,{default:y((function(){return[_(m,{span:12},{default:y((function(){return[_(p,{label:"允许的客户端IP地址",prop:"allowed_client_ips"},{default:y((function(){return[_(C,{width:"18rem",modelValue:b(a).allowed_client_ips,"onUpdate:modelValue":t[12]||(t[12]=function(e){return b(a).allowed_client_ips=e}),placeholder:"请输入允许的客户端IP地址"},null,8,["modelValue"])]})),_:1})]})),_:1}),_(m,{span:12},{default:y((function(){return[_(p,{label:"拒绝的客户端IP地址",prop:"denied_client_ips"},{default:y((function(){return[_(C,{width:"18rem",modelValue:b(a).denied_client_ips,"onUpdate:modelValue":t[13]||(t[13]=function(e){return b(a).denied_client_ips=e}),placeholder:"请输入拒绝的客户端IP地址"},null,8,["modelValue"])]})),_:1})]})),_:1})]})),_:1})]})),_:1},8,["model"]),_(G,{inline:!0,model:b(a),class:"demo-form-inline","label-width":"11rem"},{default:y((function(){return[_(z,null,{default:y((function(){return[_(m,{span:24},{default:y((function(){return[_(p,{label:"上传和下载比率"},{default:y((function(){return[V("div",ve,[_(H,{modelValue:b(l),"onUpdate:modelValue":t[14]||(t[14]=function(e){return F(l)?l.value=e:null}),"controls-position":"right",min:0},null,8,["modelValue"]),t[16]||(t[16]=V("span",{class:"mx-12px"},":",-1)),_(H,{modelValue:b(i),"onUpdate:modelValue":t[15]||(t[15]=function(e){return F(i)?i.value=e:null}),"controls-position":"right",min:0},null,8,["modelValue"])])]})),_:1})]})),_:1})]})),_:1})]})),_:1},8,["model"])],512),[[E,b(s)]]),t[17]||(t[17]=V("ul",{class:"mt-8px leading-8 text-[1.2rem] list-disc ml-20px"},[V("li",{class:"text-danger"},"注意:填写为0或为空时都表示不做限制,将按照上一次设定值延续。"),V("li",null,"允许的 IP 地址和被拒绝的 IP 地址若配置相同,将会拒绝该ip,因为“被拒绝”的设置优先级高于“被允许”的设置。"),V("li",null,"上传和下载比率限制:以上传文件数量和下载文件数量的形式表示。例如,设置为 “1:5”,那么用户每上传1个文件,就可以下载5个文件。设定其中某一个值为0将设置失败。"),V("li",null,"时间限制:指定用户可以访问FTP的时间范围。如:09:00到18:00,表示用户只能在这个时间范围内访问FTP。"),V("li",null,"最大并发会话数:即允许与FTP服务器同时建立的最大连接数。")],-1))])}}});e("default",K(_e,[["__scopeId","data-v-83d9d32b"]]))}}}))}();
Save File
Cancel