← Back
Editing: detect-history-legacy.js
!function(){function t(r){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(r)}function r(t){return function(t){if(Array.isArray(t))return n(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,r){if(t){if("string"==typeof t)return n(t,r);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?n(t,r):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=Array(r);n<r;n++)e[n]=t[n];return 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,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",u=n.toStringTag||"@@toStringTag";function a(n,e,i,u){var a=e&&e.prototype instanceof l?e:l,s=Object.create(a.prototype);return o(s,"_invoke",function(n,e,o){var i,u,a,l=0,s=o||[],f=!1,p={p:0,n:0,v:t,a:m,f:m.bind(t,4),d:function(r,n){return i=r,u=0,a=t,p.n=n,c}};function m(n,e){for(u=n,a=e,r=0;!f&&l&&!o&&r<s.length;r++){var o,i=s[r],m=p.p,y=i[2];n>3?(o=y===e)&&(a=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=t):i[0]<=m&&((o=n<2&&m<i[1])?(u=0,p.v=e,p.n=i[1]):m<y&&(o=n<3||i[0]>e||e>y)&&(i[4]=n,i[5]=e,p.n=y,u=0))}if(o||n>1)return c;throw f=!0,e}return function(o,s,y){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&m(s,y),u=s,a=y;(r=u<2?t:a)||!f;){i||(u?u<3?(u>1&&(p.n=-1),m(u,a)):p.n=a:p.v=a);try{if(l=2,i){if(u||(o="next"),r=i[o]){if(!(r=r.call(i,a)))throw TypeError("iterator result is not an object");if(!r.done)return r;a=r.value,u<2&&(u=0)}else 1===u&&(r=i.return)&&r.call(i),u<2&&(a=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=t}else if((r=(f=p.n<0)?a:n.call(e,p))!==c)break}catch(r){i=t,u=1,a=r}finally{l=1}}return{value:r,done:f}}}(n,i,u),!0),s}var c={};function l(){}function s(){}function f(){}r=Object.getPrototypeOf;var p=[][i]?r(r([][i]())):(o(r={},i,function(){return this}),r),m=f.prototype=l.prototype=Object.create(p);function y(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,o(t,u,"GeneratorFunction")),t.prototype=Object.create(m),t}return s.prototype=f,o(m,"constructor",f),o(f,"constructor",s),s.displayName="GeneratorFunction",o(f,u,"GeneratorFunction"),o(m),o(m,u,"Generator"),o(m,i,function(){return this}),o(m,"toString",function(){return"[object Generator]"}),(e=function(){return{w:a,m:y}})()}function o(t,r,n,e){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}o=function(t,r,n,e){function u(r,n){o(t,r,function(t){return this._invoke(r,n,t)})}r?i?i(t,r,{value:n,enumerable:!e,configurable:!e,writable:!e}):t[r]=n:(u("next",0),u("throw",1),u("return",2))},o(t,r,n,e)}function i(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);r&&(e=e.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,e)}return n}function u(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?i(Object(n),!0).forEach(function(r){a(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function a(r,n,e){return(n=function(r){var n=function(r,n){if("object"!=t(r)||!r)return r;var e=r[Symbol.toPrimitive];if(void 0!==e){var o=e.call(r,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(r)}(r,"string");return"symbol"==t(n)?n:n+""}(n))in r?Object.defineProperty(r,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[n]=e,r}function c(t,r,n,e,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void n(t)}a.done?r(c):Promise.resolve(c).then(e,o)}System.register(["./utils-lib-legacy.js?v=1765440387","./index-legacy93.js?v=1765440387","./site-legacy.js?v=1765440387","./base-lib-legacy.js?v=1765440387","./__commonjsHelpers__-legacy.js?v=1765440387"],function(t,n){"use strict";var o,i,a,l,s,f,p,m,y,b,d,v,g,h,_,j,O,w,P,S;return{setters:[function(t){o=t.u,i=t.cX,a=t.aj,l=t.fr,s=t.bu,f=t.R,p=t.l,m=t.L},function(t){y=t._},function(t){b=t.gZ,d=t.g_},function(t){v=t.c,g=t.r,h=t.q,_=t.M,j=t.A,O=t.e,w=t.x,P=t.J,S=t.B},null],execute:function(){t("default",v({__name:"detect-history",props:{compData:{default:function(){return{isPopup:!1,name:""}}}},setup:function(t){var v=t,k=o().mainHeight,x=g(v.compData.isPopup);v.compData;var D=function(){var t,r=(t=e().m(function t(r){var n,o,i;return e().w(function(t){for(;;)switch(t.n){case 0:return n=x.value?b(u({site_name:v.compData.name},r)):d(u({},r)),t.n=1,n;case 1:return o=t.v,i=o.data,t.a(2,{data:i.data||[],total:i.page?a(i.page):0})}},t)}),function(){var r=this,n=arguments;return new Promise(function(e,o){var i=t.apply(r,n);function u(t){c(i,e,o,u,a,"next",t)}function a(t){c(i,e,o,u,a,"throw",t)}u(void 0)})});return function(t){return r.apply(this,arguments)}}(),T=function(t){p({title:"风险详情",area:[70,55],component:function(){return m(function(){return n.import("./risk-detail-legacy.js?v=1765440387")},void 0,n.meta.url)},compData:t})},A=i({request:D,columns:[{label:"网站列表",prop:"site_name",width:120},{label:"扫描URL总数",prop:"scans",width:100},{label:"扫描耗时",prop:"time",render:function(t){return[t.end_time<=1||t.end_time-t.start_time<=0?O("span",null,[S("0秒")]):O("span",null,[l(t.end_time-t.start_time)])]}},{label:"风险次数",prop:"risks",render:function(t){return[0==t.risks?O("span",null,[S("无风险")]):O("span",{class:"bt-link !text-danger",onClick:function(){return T(t)}},[t.risks])]}},{label:"状态",prop:"status",render:function(t){return[0===t.is_status&&0===t.end_time||1===t.end_time?O("span",{class:"text-red"},[S("扫描未完成")]):1===t.is_status&&0===t.end_time?O("span",{class:"text-[#fc6d26]"},[S("扫描中")]):O("span",null,[S("扫描完成")])]}},{label:"扫描时间",prop:"start_time",width:200,render:function(t){var r=s(t.start_time,"number",0);return O("span",null,[f(r)])}},{label:"操作",align:"right",render:function(t){return[0===t.is_status&&0===t.end_time||1===t.end_time||1===t.is_status&&0===t.end_time?O("span",{class:"text-[#c8c9cc] cursor-not-allowed"},[S("扫描未完成")]):O("span",{class:"bt-link",onClick:function(){return function(t){window.open("/project/content/report/html?id="+t.testing_id,"_blank","noopener,noreferrer")}(t)}},[S("查看报告")])]}}]}),E=A.BtTable,G=(A.refresh,A.BtPage);return function(t,n){var e=y;return h(),_(e,{class:P({"p-[2rem]":w(x)})},{content:j(function(){return[O(w(E),{"max-height":w(x)?500:w(k)-240,description:"检测历史列表为空"},null,8,["max-height"])]}),"footer-right":j(function(){return[O(w(G))]}),popup:j(function(){return r(n[0]||(n[0]=[]))}),_:1},8,["class"])}}}))}}})}();
Save File
Cancel