← Back
Editing: index-legacy324.js
!function(){function t(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var n,r,u="function"==typeof Symbol?Symbol:{},a=u.iterator||"@@iterator",o=u.toStringTag||"@@toStringTag";function c(t,u,a,o){var c=u&&u.prototype instanceof i?u:i,s=Object.create(c.prototype);return e(s,"_invoke",function(t,e,u){var a,o,c,i=0,s=u||[],f=!1,p={p:0,n:0,v:n,a:v,f:v.bind(n,4),d:function(t,e){return a=t,o=0,c=n,p.n=e,l}};function v(t,e){for(o=t,c=e,r=0;!f&&i&&!u&&r<s.length;r++){var u,a=s[r],v=p.p,d=a[2];t>3?(u=d===e)&&(c=a[(o=a[4])?5:(o=3,3)],a[4]=a[5]=n):a[0]<=v&&((u=t<2&&v<a[1])?(o=0,p.v=e,p.n=a[1]):v<d&&(u=t<3||a[0]>e||e>d)&&(a[4]=t,a[5]=e,p.n=d,o=0))}if(u||t>1)return l;throw f=!0,e}return function(u,s,d){if(i>1)throw TypeError("Generator is already running");for(f&&1===s&&v(s,d),o=s,c=d;(r=o<2?n:c)||!f;){a||(o?o<3?(o>1&&(p.n=-1),v(o,c)):p.n=c:p.v=c);try{if(i=2,a){if(o||(u="next"),r=a[u]){if(!(r=r.call(a,c)))throw TypeError("iterator result is not an object");if(!r.done)return r;c=r.value,o<2&&(o=0)}else 1===o&&(r=a.return)&&r.call(a),o<2&&(c=TypeError("The iterator does not provide a '"+u+"' method"),o=1);a=n}else if((r=(f=p.n<0)?c:t.call(e,p))!==l)break}catch(r){a=n,o=1,c=r}finally{i=1}}return{value:r,done:f}}}(t,a,o),!0),s}var l={};function i(){}function s(){}function f(){}r=Object.getPrototypeOf;var p=[][a]?r(r([][a]())):(e(r={},a,function(){return this}),r),v=f.prototype=i.prototype=Object.create(p);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,e(t,o,"GeneratorFunction")),t.prototype=Object.create(v),t}return s.prototype=f,e(v,"constructor",f),e(f,"constructor",s),s.displayName="GeneratorFunction",e(f,o,"GeneratorFunction"),e(v),e(v,o,"Generator"),e(v,a,function(){return this}),e(v,"toString",function(){return"[object Generator]"}),(t=function(){return{w:c,m:d}})()}function e(t,n,r,u){var a=Object.defineProperty;try{a({},"",{})}catch(t){a=0}e=function(t,n,r,u){function o(n,r){e(t,n,function(t){return this._invoke(n,r,t)})}n?a?a(t,n,{value:r,enumerable:!u,configurable:!u,writable:!u}):t[n]=r:(o("next",0),o("throw",1),o("return",2))},e(t,n,r,u)}function n(t,e,n,r,u,a,o){try{var c=t[a](o),l=c.value}catch(t){return void n(t)}c.done?e(l):Promise.resolve(l).then(r,u)}function r(t){return function(){var e=this,r=arguments;return new Promise(function(u,a){var o=t.apply(e,r);function c(t){n(o,u,a,c,l,"next",t)}function l(t){n(o,u,a,c,l,"throw",t)}c(void 0)})}}System.register(["./base-lib-legacy.js?v=1765440387","./utils-lib-legacy.js?v=1765440387","./index-legacy56.js?v=1765440387","./form-item-legacy.js?v=1765440387","./__commonjsHelpers__-legacy.js?v=1765440387","./index-legacy93.js?v=1765440387","./index-legacy102.js?v=1765440387","./useMethod-legacy6.js?v=1765440387","./validator-legacy.js?v=1765440387","./index-legacy94.js?v=1765440387","./column-legacy.js?v=1765440387","./useMethod-legacy8.js?v=1765440387","./header-nav-tools.vue_vue_type_script_setup_true_lang-legacy.js?v=1765440387"],function(e,n){"use strict";var u,a,o,c,l,i,s,f,p,v,d,y,g,m,b,h,j,w,x,_,P,O,I,S,G,k,T,q;return{setters:[function(t){u=t.r,a=t.c,o=t.t,c=t.g,l=t.e,i=t.S,s=t.aj,f=t.B,p=t.bb,v=t.ak,d=t.p,y=t.a5,g=t.H,m=t.x,b=t.q,h=t.v,j=t.A,w=t.aX,x=t.br},function(t){_=t.K,P=t.ic,O=t.G,I=t.W},function(t){S=t.c,G=t.i,k=t.g},function(t){T=t.h,q=t.o},null,null,null,null,null,null,null,null,null],execute:function(){var n=u({bind:"",status:!0,tags:[],cycle:10}),F=u(!1),H=function(){var e=r(t().m(function e(n){var r;return t().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,_({request:P({bind:n.bind,tags:n.tags.join(","),cycle:n.cycle,status:n.status?1:0}),loading:"设置中...",message:!0});case 1:return(r=t.v).status&&S(),t.a(2,r.status)}},e)}));return function(t){return e.apply(this,arguments)}}(),V=function(t){t.domain&&(n.value.bind=t.domain),t.ip_tag&&(n.value.tags=t.ip_tag.map(function(t){return t.tag})),t.ip_rotate&&(n.value.cycle=t.ip_rotate.cycle,n.value.status=t.ip_rotate.status)},E={class:"pt-[1.6rem] px-[3rem]"};e("default",a({__name:"index",props:{compData:{type:Object,default:function(){return{}}}},setup:function(e,u){var a,_=u.expose,P=o(e.compData).row,S=[{isHtml:!0,content:'<span class="text-[#e6a23c]">开启IP轮换后会定时在选择的多个IP中依次轮换,需要多IP的机器</span>'},{isHtml:!0,content:'<span class="text-[#e6a23c]">此功能为附加功能,不影响使用,普通用户可以忽略</span>'}],B=O({data:function(){return n.value},options:function(t){return c(function(){return[T("轮换周期",function(){return l(i,{modelValue:t.value.cycle,"onUpdate:modelValue":function(e){return t.value.cycle=e},placeholder:"请输入轮换周期"},{append:function(){return"分钟"}})},"cycle",{rules:[{required:!0,message:"请输入轮换周期",trigger:"blur"}]}),T("IP池",function(){return l(v,{class:"bt-multiple-select",modelValue:t.value.tags,"onUpdate:modelValue":function(e){return t.value.tags=e},placeholder:"请选择IP",multiple:!0},{default:function(){return[G.value.map(function(t){return l(s,{key:t.value,label:t.label,value:t.value},{default:function(){return[l("span",{style:"float: left; max-width: 10ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"},[t.label]),l("span",{class:"ml-[.8rem]",style:"float: right; color: #8492a6; font-size: 12px"},[f("IP: "),t.ip])]}})})]},tag:function(){var e;return null!==(e=t.value.tags)&&void 0!==e&&e.length?l("div",{class:"flex flex-wrap gap-[5px]"},[t.value.tags.map(function(t){return l(p,{key:t,type:"info",closable:!0,class:"!w-auto inline-flex items-center",onClose:function(){return U(t)}},{default:function(){return[t,f(" "),l("span",{class:"text-[#8492a6] ml-1"},[f("IP: "),z(t)])]}})})]):null}})},"tags",{rules:[{required:!0,message:"请选择IP",trigger:"blur"}]}),q("状态","status")]})},submit:(a=r(t().m(function e(n,r){return t().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,r();case 1:return t.n=2,H(n.value);case 2:return t.a(2,t.v)}},e)})),function(t,e){return a.apply(this,arguments)})}),C=B.BtForm,D=B.submit,M=function(){var e=r(t().m(function e(){return t().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,D();case 1:return t.a(2,t.v);case 2:return t.p=2,t.v,t.a(2,!1)}},e,null,[[0,2]])}));return function(){return e.apply(this,arguments)}}(),U=function(t){var e=n.value.tags.indexOf(t);e>-1&&n.value.tags.splice(e,1)},z=function(t){var e=G.value.find(function(e){return e.value===t});return(null==e?void 0:e.ip)||""};return d(r(t().m(function e(){return t().w(function(t){for(;;)switch(t.n){case 0:return V(P.value),F.value=!0,t.n=1,k();case 1:F.value=!1;case 2:return t.a(2)}},e)}))),y(function(){n.value.tags=[],n.value.cycle=10,n.value.status=!0,n.value.bind=""}),_({onConfirm:M}),function(t,e){var n=I,r=w,u=x;return g((b(),h("div",E,[l(r,{class:"!mb-[1.6rem]",type:"warning",closable:!1},{default:j(function(){return[l(n,{options:S,listStyle:"disc",class:"!text-[#e6a23c]"})]}),_:1}),l(m(C))])),[[u,m(F)]])}}}))}}})}();
Save File
Cancel