← Back
Editing: index-legacy83.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(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return r};var n,r={},o=Object.prototype,a=o.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",l=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(n){f=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var o=e&&e.prototype instanceof w?e:w,a=Object.create(o.prototype),u=new D(r||[]);return i(a,"_invoke",{value:C(t,n,u)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}r.wrap=p;var d="suspendedStart",v="suspendedYield",y="executing",m="completed",g={};function w(){}function b(){}function x(){}var _={};f(_,c,(function(){return this}));var k=Object.getPrototypeOf,L=k&&k(k(P([])));L&&L!==o&&a.call(L,c)&&(_=L);var j=x.prototype=w.prototype=Object.create(_);function E(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function S(e,n){function r(o,i,u,c){var s=h(e[o],e,i);if("throw"!==s.type){var l=s.arg,f=l.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){l.value=t,u(l)}),(function(t){return r("throw",t,u,c)}))}c(s.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 C(t,e,r){var o=d;return function(a,i){if(o===y)throw Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:n,done:!0}}for(r.method=a,r.arg=i;;){var u=r.delegate;if(u){var c=N(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===d)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=y;var s=h(t,e,r);if("normal"===s.type){if(o=r.done?m:v,s.arg===g)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=m,r.method="throw",r.arg=s.arg)}}}function N(t,e){var r=e.method,o=t.iterator[r];if(o===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=n,N(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=h(o,t.iterator,e.arg);if("throw"===a.type)return e.method="throw",e.arg=a.arg,e.delegate=null,g;var i=a.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,g):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function O(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 B(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function t(){for(;++o<e.length;)if(a.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=n,t.done=!0,t};return i.next=i}}throw new TypeError(t(e)+" is not iterable")}return b.prototype=x,i(j,"constructor",{value:x,configurable:!0}),i(x,"constructor",{value:b,configurable:!0}),b.displayName=f(x,l,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,f(t,l,"GeneratorFunction")),t.prototype=Object.create(j),t},r.awrap=function(t){return{__await:t}},E(S.prototype),f(S.prototype,s,(function(){return this})),r.AsyncIterator=S,r.async=function(t,e,n,o,a){void 0===a&&(a=Promise);var i=new S(p(t,e,n,o),a);return r.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(j),f(j,l,"Generator"),f(j,c,(function(){return this})),f(j,"toString",(function(){return"[object Generator]"})),r.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}},r.values=P,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(B),!t)for(var e in this)"t"===e.charAt(0)&&a.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},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 e=this;function r(r,o){return u.type="throw",u.arg=t,e.next=r,o&&(e.method="next",e.arg=n),!!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"),s=a.call(i,"finallyLoc");if(c&&s){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(!s)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),B(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;B(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),g}},r}function n(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 r(t){return function(){var e=this,r=arguments;return new Promise((function(o,a){var i=t.apply(e,r);function u(t){n(i,o,a,u,c,"next",t)}function c(t){n(i,o,a,u,c,"throw",t)}u(void 0)}))}}System.register(["./index-legacy103.js?v=VERSION_NUMBER","./utils-lib-legacy.js?v=VERSION_NUMBER","./index-legacy145.js?v=VERSION_NUMBER","./useStore-legacy10.js?v=VERSION_NUMBER","./validator-legacy.js?v=VERSION_NUMBER","./base-lib-legacy.js?v=VERSION_NUMBER","./useMethod-legacy12.js?v=VERSION_NUMBER","./useMethod-legacy10.js?v=VERSION_NUMBER","./ssl-legacy.js?v=VERSION_NUMBER","./column-legacy.js?v=VERSION_NUMBER","./index-legacy141.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","./index-legacy104.js?v=VERSION_NUMBER","./index-legacy124.js?v=VERSION_NUMBER"],(function(t,n){"use strict";var o,a,i,u,c,s,l,f,p,h,d,v,y,m,g,w,b,x,_,k,L,j,E,S,C,N,O,B,D,P,T,G,q,A,F,M,R,H,I,Y,U,Z,z,J,K,Q,V;return{setters:[function(t){o=t._},function(t){a=t.u,i=t.a6,u=t.a7,c=t.cu,s=t.q,l=t.aj,f=t.bv,p=t.a8,h=t.p,d=t.c,v=t.b},function(t){y=t._},function(t){m=t.g},function(t){g=t.e},function(t){w=t.c,b=t.U,x=t.r,_=t.e,k=t.B,L=t.p,j=t.b,E=t.Z,S=t.q,C=t.M,N=t.A,O=t.y,B=t.x,D=t.n},function(t){P=t.s,T=t.u,G=t.d,q=t.a,A=t.b},function(t){F=t.d,M=t.s},function(t){R=t.l,H=t.m,I=t.n,Y=t.o,U=t.p,Z=t.q,z=t.s},function(t){J=t.a,K=t.u,Q=t.c},function(t){V=t.u},null,null,null,null],execute:function(){var n={class:"flex items-center"};t("default",w({__name:"index",setup:function(t){var w=v(),W=a().mainHeight,X=m().refs,$=X.tabActive,tt=X.isRefreshDomainList,et=X.typeList;b([]),x([]);var nt=b([]);x(null);var rt,ot=[{content:"从网站同步",active:!0,event:function(){bt()}},{content:"DNS接口设置",dropdownClass:"bg-white",splitButton:!0,event:function(){G()}}],at=function(){var t=r(e().mark((function t(n){var r,o,a;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,"-1"===(r={p:n.p,type_id:s(n.type)||"all"===n.type?"-1":n.type,search:n.search,limit:n.limit}).type_id&&delete r.type_id,t.next=5,R(r);case 5:return o=t.sent,a=o.data,t.abrupt("return",{data:a.data,total:l(a.page),other:{search_history:a.search_history}});case 10:return t.prev=10,t.t0=t.catch(0),t.abrupt("return",{data:[],total:0});case 13:case"end":return t.stop()}}),t,null,[[0,10]])})));return function(e){return t.apply(this,arguments)}}(),it=function(){var t=r(e().mark((function t(n,o,a,i){var u,c,s,l;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return u=i.label,c=i.value,s=new Map([["delete","即将批量删除选中的域名"]]),l=function(){var t=r(e().mark((function t(n,r){var o;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:o=n.domain,t.t0=c,t.next="delete"===t.t0?4:7;break;case 4:return t.next=6,U({domains:o});case 6:return t.abrupt("return",t.sent);case 7:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),t.next=5,n({title:"批量".concat(u),content:"".concat(s.get(c),",是否继续操作!"),column:[{label:"域名",prop:"domain"},Q()],onConfirm:function(){var t=r(e().mark((function t(){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o(l);case 2:return tt.value=!0,t.abrupt("return",!1);case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()});case 5:case"end":return t.stop()}}),t)})));return function(e,n,r,o){return t.apply(this,arguments)}}(),ut=[{label:"设置分类",value:"type",event:function(t,e,n,r){return M(n.value,"domain")}},{label:"配置DNS接口",value:"dnsSet",event:function(t,e,n,r){return F(n.value[0],n.value)}},{label:"设置到期时间",value:"dateSet",event:function(t,e,n,r){return P({},n.value)}},{label:"删除",value:"delete",event:it}],ct=V({key:"type",name:"域名分类",options:function(){return[{label:"全部分类",value:"-1"}]},event:{get:(rt=r(e().mark((function t(){var n,r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,H();case 2:return n=t.sent,r=n.data,et.value=r,et.value=f(r,"array",[]).map((function(t){return{label:t.name,value:t.type_id}})),et.value.unshift({label:"全部分类",value:"all"}),t.abrupt("return",et.value);case 8:case"end":return t.stop()}}),t)}))),function(){return rt.apply(this,arguments)}),add:function(t){return I(t)},delete:function(t){return Y({type_id:t.id})}},ignore:["0"],field:"name",showEdit:!1}),st=p(ut),lt=i({request:at,columns:[J(),{label:"域名",prop:"domain",width:250},{label:"分组",width:180,isCustom:!0,render:function(t){var e=et.value.find((function(e){return e.value==t.type_id}));return e?e.label:"未分组"}},{label:"解析数量",prop:"sbd_count",isCustom:!0},{label:"DNS接口",width:200,isCustom:!0,render:function(t){var e;return _("div",{class:"flex items-center"},[null!==(e=t.dns)&&void 0!==e&&e.dns_name?_("span",null,[t.dns.dns_name]):_("span",{class:"bt-link cursor-pointer",onClick:function(){return F(t)}},[k("未配置")]),_("div",{class:"el-divider el-divider--vertical"},null),_("span",{class:"bt-link cursor-pointer",onClick:function(){return F(t)}},[k("点击配置")])])}},{label:"到期时间",isCustom:!0,render:function(t){var e=(new Date).setHours(0,0,0,0),n=t.endtime?new Date(t.endtime.replace(/-/g,"/")).getTime():0,r=0!==t.endtime&&n<e,o=0!==t.endtime&&n-Date.now()<6048e5;return _("span",{class:"cursor-pointer "+(r?"bt-danger":o?"bt-warn":"bt-link"),onClick:function(){P(t)}},[r?"已过期":0===t.endtime?"未设置":t.endtime])}},K([{onClick:function(t){t.dns_id?q(t):(w.error("请先配置DNS"),F(t))},title:"快速解析"},{onClick:function(t){var e;null!==(e=t.dns)&&void 0!==e&&e.dns_name?A(t):(w.error("请先配置DNS"),F(t))},title:"解析记录管理",width:120},{onClick:function(t){gt(t)},title:"删除"}])],extension:[ct,st,u(tt),c("search",{name:"ssl",key:"get_domain_list",list:[],showRecommend:!1})]}),ft=lt.BtTable,pt=lt.BtPage,ht=(lt.BtRefresh,lt.BtTableCategory),dt=lt.BtRecommendSearch,vt=lt.BtColumn,yt=lt.BtBatch;lt.BtErrorMask,lt.refresh;T({closeAlarm:function(t){return wt(t)},delDomain:function(t){return gt(t)}});var mt=function(){g({title:"SSL证书需求反馈收集",type:28,isNoRate:!0,softName:"1",isCard:!1,id:993})},gt=function(){var t=r(e().mark((function t(n){var r,o,a,i=arguments;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=i.length>1&&void 0!==i[1]&&i[1],t.prev=1,r){t.next=5;break}return t.next=5,h({title:"删除【".concat(n.domain,"】域名"),content:"删除该域名,是否继续操作?",icon:"warning",width:45});case 5:return r||(o=w.load("正在删除域名,请稍候...")),t.next=8,U({domains:n.domain});case 8:return a=t.sent,r||w.request(a),a.status&&!r&&(tt.value=!0),t.abrupt("return",a);case 14:t.prev=14,t.t0=t.catch(1);case 17:return t.prev=17,o&&o.close(),t.finish(17);case 20:case"end":return t.stop()}}),t,null,[[1,14,17,20]])})));return function(e){return t.apply(this,arguments)}}(),wt=function(){var t=r(e().mark((function t(n){var r,o,a;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.report_id,t.prev=1,n.report_id="",t.next=5,h({title:"删除【".concat(n.domain,"】到期告警"),content:"删除该域名到期告警,是否继续操作?",icon:"warning",width:45});case 5:return o=w.load("正在删除域名到期告警,请稍候..."),t.next=8,Z({task_id:r});case 8:a=t.sent,w.request(a),a.status&&(tt.value=!0),o&&o.close(),t.next=17;break;case 14:t.prev=14,t.t0=t.catch(1),t.t0&&D((function(){n.report_id=r}));case 17:case"end":return t.stop()}}),t,null,[[1,14]])})));return function(e){return t.apply(this,arguments)}}(),bt=function(){var t=r(e().mark((function t(){var n,r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n=w.load("正在同步域名列表,请稍后..."),t.next=4,z();case 4:r=t.sent,w.request(r),r.status&&(tt.value=!0),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(0);case 12:return t.prev=12,n&&n.close(),t.finish(12);case 15:case"end":return t.stop()}}),t,null,[[0,9,12,15]])})));return function(){return t.apply(this,arguments)}}();return L((function(){$.value=j().name})),E("sslHistoryList",nt),function(t,e){var r=y,a=d,i=o;return S(),C(i,null,{"header-left":N((function(){return[O("div",n,[_(r,{options:ot}),e[1]||(e[1]=O("span",{class:"ml-[8px] text-[1.1rem]"},"当前域名列表仅显示顶级域名,配置DNS,可以快速解析域名和申请证书。",-1)),_(a,{class:"ml-[12px] flex items-center",onClick:mt},{default:N((function(){return e[0]||(e[0]=[O("div",{class:"flex items-center"},[O("span",{class:"svgtofont-desired text-[1.6rem]"}),O("span",null,"需求反馈")],-1)])})),_:1})])]})),"header-right":N((function(){return[_(B(ht),{class:"!w-[140px] mr-[10px]"}),_(B(dt),{type:"ssl-domain",placeholder:"请输入域名",class:"!w-[270px] mr-[10px]"}),_(B(vt))]})),content:N((function(){return[_(B(ft),{"min-height":B(W)},null,8,["min-height"])]})),"footer-left":N((function(){return[_(B(yt))]})),"footer-right":N((function(){return[_(B(pt))]})),_:1})}}}))}}}))}();
Save File
Cancel