← Back
Editing: risk-detail-legacy.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 e,r,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",u=o.toStringTag||"@@toStringTag";function c(t,o,i,u){var c=o&&o.prototype instanceof l?o:l,s=Object.create(c.prototype);return n(s,"_invoke",function(t,n,o){var i,u,c,l=0,s=o||[],f=!1,p={p:0,n:0,v:e,a:y,f:y.bind(e,4),d:function(t,n){return i=t,u=0,c=e,p.n=n,a}};function y(t,n){for(u=t,c=n,r=0;!f&&l&&!o&&r<s.length;r++){var o,i=s[r],y=p.p,d=i[2];t>3?(o=d===n)&&(c=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=t<2&&y<i[1])?(u=0,p.v=n,p.n=i[1]):y<d&&(o=t<3||i[0]>n||n>d)&&(i[4]=t,i[5]=n,p.n=d,u=0))}if(o||t>1)return a;throw f=!0,n}return function(o,s,d){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&y(s,d),u=s,c=d;(r=u<2?e:c)||!f;){i||(u?u<3?(u>1&&(p.n=-1),y(u,c)):p.n=c:p.v=c);try{if(l=2,i){if(u||(o="next"),r=i[o]){if(!(r=r.call(i,c)))throw TypeError("iterator result is not an object");if(!r.done)return r;c=r.value,u<2&&(u=0)}else 1===u&&(r=i.return)&&r.call(i),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((r=(f=p.n<0)?c:t.call(n,p))!==a)break}catch(r){i=e,u=1,c=r}finally{l=1}}return{value:r,done:f}}}(t,i,u),!0),s}var a={};function l(){}function s(){}function f(){}r=Object.getPrototypeOf;var p=[][i]?r(r([][i]())):(n(r={},i,function(){return this}),r),y=f.prototype=l.prototype=Object.create(p);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,n(t,u,"GeneratorFunction")),t.prototype=Object.create(y),t}return s.prototype=f,n(y,"constructor",f),n(f,"constructor",s),s.displayName="GeneratorFunction",n(f,u,"GeneratorFunction"),n(y),n(y,u,"Generator"),n(y,i,function(){return this}),n(y,"toString",function(){return"[object Generator]"}),(t=function(){return{w:c,m:d}})()}function n(t,e,r,o){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}n=function(t,e,r,o){function u(e,r){n(t,e,function(t){return this._invoke(e,r,t)})}e?i?i(t,e,{value:r,enumerable:!o,configurable:!o,writable:!o}):t[e]=r:(u("next",0),u("throw",1),u("return",2))},n(t,e,r,o)}function e(t,n,e,r,o,i,u){try{var c=t[i](u),a=c.value}catch(t){return void e(t)}c.done?n(a):Promise.resolve(a).then(r,o)}System.register(["./index-legacy93.js?v=1765440387","./index-legacy102.js?v=1765440387","./utils-lib-legacy.js?v=1765440387","./firewall-legacy.js?v=1765440387","./base-lib-legacy.js?v=1765440387","./useController-legacy12.js?v=1765440387","./column-legacy.js?v=1765440387","./store-legacy.js?v=1765440387","./__commonjsHelpers__-legacy.js?v=1765440387","./validator-legacy.js?v=1765440387","./index-legacy94.js?v=1765440387","./useStore-legacy3.js?v=1765440387","./site-legacy.js?v=1765440387","./useController-legacy6.js?v=1765440387","./files-legacy.js?v=1765440387","./store-legacy2.js?v=1765440387","./index-legacy91.js?v=1765440387"],function(n,r){"use strict";var o,i,u,c,a,l,s,f,p,y,d,g,_,v,h,j,b,w,m,k,x;return{setters:[function(t){o=t._},function(t){i=t._},function(t){u=t.bu,c=t.R,a=t.K,l=t.S,s=t.k},function(t){f=t.N},function(t){p=t.c,y=t.r,d=t.e,g=t.k,_=t.w,v=t.p,h=t.q,j=t.M,b=t.A,w=t.x},function(t){m=t.k},function(t){k=t.u},function(t){x=t.aT},null,null,null,null,null,null,null,null,null],execute:function(){n("default",p({__name:"risk-detail",props:{compData:{default:function(){}}},setup:function(n){var r=n,p=y([]),O=y(0),S=function(t,n){x({path:t})},P=y([{label:"巡检时间",width:"150px",render:function(t){var n=u(t.time,"number",0);return d("span",null,[c(n)])}},{label:"URL",render:function(t){return d("span",{class:"bt-link",title:t.url,onClick:function(){return window.open(t.url,"_blank","noopener,noreferrer")}},[t.url])}},{label:"关键词",prop:"content",width:"200px"},{label:"类型",prop:"risk_content",width:"200px"},{label:"风险位置",width:"150px",render:function(t){return m[t.risk_type]}},k([{onClick:function(t){var n="/www/server/panel/class/projectModel/content/source/",e=n+t.source_file;t.risk_type.indexOf("_update")>-1?function(t,n){"title_hash_update"!==t.risk_type&&"tail_hash_update"!==t.risk_type||(n="/www/server/panel/class/projectModel/content/hash/"+t.site_name+"/"),t.source_content_file;var e=n+t.new_content_file;S(e)}(t,n):S(e,t.content)},title:"详情"}])]),T=g({p:1,limit:10,testing_id:r.compData.testing_id}),G=function(){var n,r=(n=t().m(function n(){return t().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,a({loading:"正在获取IP规则列表,请稍后...",request:f(T),data:{data:[Array,p],page:l(O)}});case 1:return t.a(2)}},n)}),function(){var t=this,r=arguments;return new Promise(function(o,i){var u=n.apply(t,r);function c(t){e(u,o,i,c,a,"next",t)}function a(t){e(u,o,i,c,a,"throw",t)}c(void 0)})});return function(){return r.apply(this,arguments)}}();return _(function(){return r.compData},function(t){T.testing_id=t.testing_id}),v(function(){return G()}),function(t,n){var e=s,r=i,u=o;return h(),j(u,{class:"p-[2rem]"},{content:b(function(){return[d(e,{column:w(P),data:w(p)},null,8,["column","data"])]}),"footer-right":b(function(){return[d(r,{total:w(O),page:w(T).p,"onUpdate:page":n[0]||(n[0]=function(t){return w(T).p=t}),row:w(T).limit,"onUpdate:row":n[1]||(n[1]=function(t){return w(T).limit=t}),onChange:G},null,8,["total","page","row"])]}),_:1})}}}))}}})}();
Save File
Cancel