← Back
Editing: risk-list-legacy.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(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,r,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",u=o.toStringTag||"@@toStringTag";function c(e,o,i,u){var c=o&&o.prototype instanceof l?o:l,f=Object.create(c.prototype);return n(f,"_invoke",function(e,n,o){var i,u,c,l=0,f=o||[],s=!1,p={p:0,n:0,v:t,a:y,f:y.bind(t,4),d:function(e,n){return i=e,u=0,c=t,p.n=n,a}};function y(e,n){for(u=e,c=n,r=0;!s&&l&&!o&&r<f.length;r++){var o,i=f[r],y=p.p,b=i[2];e>3?(o=b===n)&&(c=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=t):i[0]<=y&&((o=e<2&&y<i[1])?(u=0,p.v=n,p.n=i[1]):y<b&&(o=e<3||i[0]>n||n>b)&&(i[4]=e,i[5]=n,p.n=b,u=0))}if(o||e>1)return a;throw s=!0,n}return function(o,f,b){if(l>1)throw TypeError("Generator is already running");for(s&&1===f&&y(f,b),u=f,c=b;(r=u<2?t:c)||!s;){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=t}else if((r=(s=p.n<0)?c:e.call(n,p))!==a)break}catch(r){i=t,u=1,c=r}finally{l=1}}return{value:r,done:s}}}(e,i,u),!0),f}var a={};function l(){}function f(){}function s(){}r=Object.getPrototypeOf;var p=[][i]?r(r([][i]())):(n(r={},i,function(){return this}),r),y=s.prototype=l.prototype=Object.create(p);function b(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,n(t,u,"GeneratorFunction")),t.prototype=Object.create(y),t}return f.prototype=s,n(y,"constructor",s),n(s,"constructor",f),f.displayName="GeneratorFunction",n(s,u,"GeneratorFunction"),n(y),n(y,u,"Generator"),n(y,i,function(){return this}),n(y,"toString",function(){return"[object Generator]"}),(e=function(){return{w:c,m:b}})()}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 r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function i(e,n,r){return(n=function(e){var n=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==t(n)?n:n+""}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function u(t,e,n,r,o,i,u){try{var c=t[i](u),a=c.value}catch(t){return void n(t)}c.done?e(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","./site-legacy.js?v=1765440387","./base-lib-legacy.js?v=1765440387","./column-legacy.js?v=1765440387","./useController-legacy12.js?v=1765440387","./store-legacy.js?v=1765440387","./__commonjsHelpers__-legacy.js?v=1765440387","./index-legacy94.js?v=1765440387","./validator-legacy.js?v=1765440387","./useStore-legacy3.js?v=1765440387","./useController-legacy6.js?v=1765440387","./files-legacy.js?v=1765440387","./store-legacy2.js?v=1765440387","./index-legacy91.js?v=1765440387"],function(t,n){"use strict";var r,i,c,a,l,f,s,p,y,b,d,g,v,m,j,h,w,_,O,P,S,k,x,T,G;return{setters:[function(t){r=t._},function(t){i=t._},function(t){c=t.u,a=t.bu,l=t.R,f=t.K,s=t.S,p=t.k},function(t){y=t.g$},function(t){b=t.c,d=t.U,g=t.r,v=t.b5,m=t.p,j=t.G,h=t.q,w=t.M,_=t.A,O=t.H,P=t.x,S=t.e,k=t.J},function(t){x=t.u},function(t){T=t.k},function(t){G=t.aT},null,null,null,null,null,null,null,null],execute:function(){t("default",b({__name:"risk-list",props:{compData:{default:function(){return{isPopup:!1}}}},setup:function(t){var n=t,b=c().mainHeight,D=d(!1),E=g([]),C=g(0),U=g(n.compData.isPopup),F=function(t,e){G({path:t})},H=function(t){var e,n="/www/server/panel/class/projectModel/content/source/",r=n+t.source_file;(null===(e=t.risk_type)||void 0===e?void 0:e.indexOf("_update"))>-1?function(t,e){"title_hash_update"!==t.risk_type&&"tail_hash_update"!==t.risk_type||(e="/www/server/panel/class/projectModel/content/hash/"+t.site_name+"/"),t.source_content_file;var n=e+t.new_content_file;F(n)}(t,n):F(r,t.content)},M=v({p:1,limit:20}),q=function(){var t,n=(t=e().m(function t(){return e().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,f({loading:D,request:y(o({},M)),data:{data:[Array,E],page:s(C)}});case 1:return t.a(2)}},t)}),function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function c(t){u(i,r,o,c,a,"next",t)}function a(t){u(i,r,o,c,a,"throw",t)}c(void 0)})});return function(){return n.apply(this,arguments)}}(),A=[{label:"巡检时间",width:"150px",render:function(t){var e=a(t.time,"number",0);return S("span",null,[l(e)])}},{label:"URL",render:function(t){return S("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 T[t.risk_type]}},x([{onClick:H,title:"详情"}])];return m(function(){return q()}),function(t,e){var n=p,o=i,u=r,c=j("bt-loading");return h(),w(u,{class:k({"p-[2rem]":P(U)})},{content:_(function(){return[O(S(n,{ref:"table",column:P(A),data:P(E),description:"风险列表为空","max-height":P(U)?500:P(b)-300},null,8,["column","data","max-height"]),[[c,P(D)],[c,"正在加载风险列表,请稍后...","title"]])]}),"footer-right":_(function(){return[S(o,{total:P(C),page:P(M).p,"onUpdate:page":e[0]||(e[0]=function(t){return P(M).p=t}),row:P(M).limit,"onUpdate:row":e[1]||(e[1]=function(t){return P(M).limit=t}),onChange:q},null,8,["total","page","row"])]}),_:1},8,["class"])}}}))}}})}();
Save File
Cancel