← Back
Editing: index-legacy322.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 r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function r(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?e(Object(o),!0).forEach((function(e){n(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 n(e,r,n){return(r=function(e){var r=function(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==t(r)?r:r+""}(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,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 r};var e,r={},n=Object.prototype,i=n.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",s=u.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(e){f=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var o=e&&e.prototype instanceof b?e:b,i=Object.create(o.prototype),u=new T(n||[]);return a(i,"_invoke",{value:P(t,r,u)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}r.wrap=p;var y="suspendedStart",v="suspendedYield",d="executing",m="completed",g={};function b(){}function w(){}function x(){}var j={};f(j,c,(function(){return this}));var L=Object.getPrototypeOf,O=L&&L(L(G([])));O&&O!==n&&i.call(O,c)&&(j=O);var _=x.prototype=b.prototype=Object.create(j);function S(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function E(e,r){function n(o,a,u,c){var l=h(e[o],e,a);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==t(f)&&i.call(f,"__await")?r.resolve(f.__await).then((function(t){n("next",t,u,c)}),(function(t){n("throw",t,u,c)})):r.resolve(f).then((function(t){s.value=t,u(s)}),(function(t){return n("throw",t,u,c)}))}c(l.arg)}var o;a(this,"_invoke",{value:function(t,e){function i(){return new r((function(r,o){n(t,e,r,o)}))}return o=o?o.then(i,i):i()}})}function P(t,r,n){var o=y;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=k(u,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=h(t,r,n);if("normal"===l.type){if(o=n.done?m:v,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=m,n.method="throw",n.arg=l.arg)}}}function k(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=h(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.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 T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(F,this),this.reset(!0)}function G(r){if(r||""===r){var n=r[c];if(n)return n.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var o=-1,a=function t(){for(;++o<r.length;)if(i.call(r,o))return t.value=r[o],t.done=!1,t;return t.value=e,t.done=!0,t};return a.next=a}}throw new TypeError(t(r)+" is not iterable")}return w.prototype=x,a(_,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:w,configurable:!0}),w.displayName=f(x,s,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,f(t,s,"GeneratorFunction")),t.prototype=Object.create(_),t},r.awrap=function(t){return{__await:t}},S(E.prototype),f(E.prototype,l,(function(){return this})),r.AsyncIterator=E,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new E(p(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(_),f(_,s,"Generator"),f(_,c,(function(){return this})),f(_,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},r.values=G,T.prototype={constructor:T,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 r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=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 r=this;function n(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},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 r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:G(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},r}function i(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function u(t){i(a,n,o,u,c,"next",t)}function c(t){i(a,n,o,u,c,"throw",t)}u(void 0)}))}}System.register(["./utils-lib-legacy.js?v=VERSION_NUMBER","./index-legacy103.js?v=VERSION_NUMBER","./base-lib-legacy.js?v=VERSION_NUMBER","./form-item-legacy.js?v=VERSION_NUMBER","./column-legacy.js?v=VERSION_NUMBER","./index-legacy51.js?v=VERSION_NUMBER","./useController-legacy8.js?v=VERSION_NUMBER","./__commonjsHelpers__-legacy.js?v=VERSION_NUMBER","./index-legacy104.js?v=VERSION_NUMBER","./useStore-legacy6.js?v=VERSION_NUMBER","./index-legacy323.js?v=VERSION_NUMBER","./config-legacy.js?v=VERSION_NUMBER","./index-legacy123.js?v=VERSION_NUMBER","./index-legacy116.js?v=VERSION_NUMBER","./validator-legacy.js?v=VERSION_NUMBER","./useStore-legacy7.js?v=VERSION_NUMBER"],(function(t,e){"use strict";var n,i,u,c,l,s,f,p,h,y,v,d,m,g,b,w,x,j,L,O,_,S,E,P,k,F,C,T,G,N,D;return{setters:[function(t){n=t.G,i=t.fj,u=t.j,c=t.c,l=t.fi,s=t.T,f=t.e},function(t){p=t._},function(t){h=t.c,y=t.s,v=t.g,d=t.r,m=t.w,g=t.p,b=t.q,w=t.v,x=t.e,j=t.A,L=t.B,O=t.x,_=t.y,S=t.P,E=t.D},function(t){P=t.b,k=t.k},function(t){F=t.u},function(t){C=t.s,T=t.a,G=t.b,N=t.d},function(t){D=t.L},null,null,null,null,null,null,null,null,null],execute:function(){var e={class:"p-[20px]"},I={class:"p-[2rem]"},V={class:"p-[2rem]"},q={class:"list-disc mt-[20px] pl-[28px]"},B={class:"h-[2.4rem]"},A=h({__name:"index",setup:function(t){var f,h=D(),A=y(h),U=(A.sForm,A.sendSource),Y=A.logSystemDialog,H=A.logSystemForm,z=(A.sourceForm,A.logSystemData,A.logSystemLoad),J=(A.logSysForm,A.logSystemList),K=h.getLogSystemData,M=h.getLogSystemSite,Q=(h.sendSourceConfirm,n({data:H.value,options:function(t){return v((function(){return[P("IP","ip",{attrs:{placeholder:"日志服务系统的ip",clearable:!0,class:"!w-22rem"},rules:[{required:!0,validator:function(t,e,r){l(e)||r(new Error("请输入正确的IP")),r()},trigger:["blur","change"]}]}),P("端口","port",{attrs:{placeholder:"请输入端口号",clearable:!0,"controls-position":"right",class:"!w-22rem",type:"number"},rules:[{required:!0,validator:function(t,e,r){s(e)&&e||r(new Error("请输入正确的端口(范围为1-65535)")),r()},trigger:["blur","change"]}]})]}))},submit:(f=a(o().mark((function t(e,r,n){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r();case 2:return t.next=4,C(e.value);case 4:return t.abrupt("return",t.sent);case 5:case"end":return t.stop()}}),t)}))),function(t,e,r){return f.apply(this,arguments)})})),R=Q.BtForm,W=Q.submit,X=d({site:[],ip:H.value.port?H.value.ip+":"+H.value.port:"未配置"});m(H,(function(t){J.value[0].ip,X.value.ip=t.port?t.ip+":"+t.port:"未配置"}),{deep:!0});var Z,$=n({data:X.value,options:function(t){return v((function(){return[k("网站","site",T.value,{attrs:{multiple:!0,collapseTags:!0,class:"!w-22rem"},rules:[{required:!0,message:"请选择网站",trigger:"change"}]}),P("日志系统","ip",{attrs:{disabled:!0,class:"!w-22rem"}})]}))},submit:(Z=a(o().mark((function t(e,n,i){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n();case 2:return t.next=4,G(r(r({},e.value),{},{server_id:J.value.length?J.value[0].id:""}));case 4:return t.abrupt("return",t.sent);case 5:case"end":return t.stop()}}),t)}))),function(t,e,r){return Z.apply(this,arguments)})}),tt=$.BtForm,et=$.submit,rt=i({request:K,columns:[{label:"已设置站点",prop:"site_name"},F([{onClick:N,title:"删除"}])]}).BtTable;return g((function(){M()})),function(t,r){var n=E,o=p,i=u,a=c;return b(),w("div",e,[x(o,null,{"header-left":j((function(){return[x(n,{onClick:r[0]||(r[0]=function(t){return U.value=!0}),type:"primary"},{default:j((function(){return r[5]||(r[5]=[L(" 设置发送源 ")])})),_:1}),x(n,{onClick:r[1]||(r[1]=function(t){return Y.value=!0})},{default:j((function(){return r[6]||(r[6]=[L("日志服务系统配置")])})),_:1})]})),content:j((function(){return[x(O(rt),{"max-height":"360"}),r[7]||(r[7]=_("ul",{class:"list-disc w-[50rem] pl-[1rem] mt-[12px] text-[#777]"},[_("li",null,"注意:网站被访问后才会在日志服务系统中显示")],-1))]})),_:1}),x(i,{title:"设置发送源",modelValue:O(U),"onUpdate:modelValue":r[2]||(r[2]=function(t){return S(U)?U.value=t:null}),"show-footer":!0,area:[40],onConfirm:O(et)},{default:j((function(){return[_("div",I,[x(O(tt),{"label-width":"80px"})])]})),_:1},8,["modelValue","onConfirm"]),x(i,{title:"日志服务系统配置",modelValue:O(Y),"onUpdate:modelValue":r[3]||(r[3]=function(t){return S(Y)?Y.value=t:null}),"show-footer":!0,area:[40],onConfirm:O(W),onCancel:r[4]||(r[4]=function(t){return Y.value=!1,z.value=!1,void(J.value.length>0&&Object.assign(H.value,J.value[0]))})},{default:j((function(){return[_("div",V,[x(O(R),{"label-width":"80px"}),_("ul",q,[_("li",B,[x(a,{href:"https://www.bt.cn/bbs/thread-120054-1-1.html"},{default:j((function(){return r[8]||(r[8]=[L(" 如何配置日志服务系统 ")])})),_:1})]),r[9]||(r[9]=_("li",null,"端口:日志服务收集端口,请在安装“日志服务系统”的机器通过 btlogs 8 获取",-1))])])]})),_:1},8,["modelValue","onConfirm"])])}}});t("default",f(A,[["__scopeId","data-v-403d4797"]]))}}}))}();
Save File
Cancel