← Back
Editing: index-legacy468.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){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):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 r(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function n(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */n=function(){return r};var e,r={},a=Object.prototype,i=a.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},l="function"==typeof Symbol?Symbol:{},s=l.iterator||"@@iterator",c=l.asyncIterator||"@@asyncIterator",u=l.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 d(t,e,r,n){var a=e&&e.prototype instanceof x?e:x,i=Object.create(a.prototype),l=new V(n||[]);return o(i,"_invoke",{value:A(t,r,l)}),i}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}r.wrap=d;var m="suspendedStart",h="suspendedYield",v="executing",y="completed",g={};function x(){}function b(){}function _(){}var w={};f(w,s,(function(){return this}));var k=Object.getPrototypeOf,L=k&&k(k(C([])));L&&L!==a&&i.call(L,s)&&(w=L);var S=_.prototype=x.prototype=Object.create(w);function j(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function E(e,r){function n(a,o,l,s){var c=p(e[a],e,o);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==t(f)&&i.call(f,"__await")?r.resolve(f.__await).then((function(t){n("next",t,l,s)}),(function(t){n("throw",t,l,s)})):r.resolve(f).then((function(t){u.value=t,l(u)}),(function(t){return n("throw",t,l,s)}))}s(c.arg)}var a;o(this,"_invoke",{value:function(t,e){function i(){return new r((function(r,a){n(t,e,r,a)}))}return a=a?a.then(i,i):i()}})}function A(t,r,n){var a=m;return function(i,o){if(a===v)throw Error("Generator is already running");if(a===y){if("throw"===i)throw o;return{value:e,done:!0}}for(n.method=i,n.arg=o;;){var l=n.delegate;if(l){var s=O(l,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===m)throw a=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=v;var c=p(t,r,n);if("normal"===c.type){if(a=n.done?y:h,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=y,n.method="throw",n.arg=c.arg)}}}function O(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(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=p(a,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var o=i.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function D(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 T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function V(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(D,this),this.reset(!0)}function C(r){if(r||""===r){var n=r[s];if(n)return n.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var a=-1,o=function t(){for(;++a<r.length;)if(i.call(r,a))return t.value=r[a],t.done=!1,t;return t.value=e,t.done=!0,t};return o.next=o}}throw new TypeError(t(r)+" is not iterable")}return b.prototype=_,o(S,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:b,configurable:!0}),b.displayName=f(_,u,"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,_):(t.__proto__=_,f(t,u,"GeneratorFunction")),t.prototype=Object.create(S),t},r.awrap=function(t){return{__await:t}},j(E.prototype),f(E.prototype,c,(function(){return this})),r.AsyncIterator=E,r.async=function(t,e,n,a,i){void 0===i&&(i=Promise);var o=new E(d(t,e,n,a),i);return r.isGeneratorFunction(e)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},j(S),f(S,u,"Generator"),f(S,s,(function(){return this})),f(S,"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=C,V.prototype={constructor:V,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(T),!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,a){return l.type="throw",l.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],l=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=i.call(o,"catchLoc"),c=i.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.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 a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(o)},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),T(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 a=n.arg;T(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:C(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},r}function a(t,e,r,n,a,i,o){try{var l=t[i](o),s=l.value}catch(t){return void r(t)}l.done?e(s):Promise.resolve(s).then(n,a)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function l(t){a(o,n,i,l,s,"next",t)}function s(t){a(o,n,i,l,s,"throw",t)}l(void 0)}))}}System.register(["./base-lib-legacy.js?v=VERSION_NUMBER","./store-legacy8.js?v=VERSION_NUMBER","./utils-lib-legacy.js?v=VERSION_NUMBER","./store-legacy5.js?v=VERSION_NUMBER","./site-legacy.js?v=VERSION_NUMBER","./index-legacy317.js?v=VERSION_NUMBER","./validator-legacy.js?v=VERSION_NUMBER","./column-legacy.js?v=VERSION_NUMBER","./__commonjsHelpers__-legacy.js?v=VERSION_NUMBER","./index-legacy104.js?v=VERSION_NUMBER"],(function(t,r){"use strict";var a,o,l,s,c,u,f,d,p,m,h,v,y,g,x,b,_,w,k,L,S,j,E,A,O,D,T,V,C,I,N,P,F,G,M,z,H,U,q,B,Q,W,R,Y,$,J,K,X,Z,tt,et,rt,nt;return{setters:[function(t){a=t.c,o=t.g,l=t.q,s=t.v,c=t.y,u=t.B,f=t.z,d=t.x,p=t.C,m=t.J,h=t.s,v=t.F,y=t.a_,g=t.e,x=t.a$,b=t.k,_=t.b4,w=t.A,k=t.aQ,L=t.r,S=t.G,j=t.H,E=t.P,A=t.aA,O=t.aC,D=t.bN,T=t.bM,V=t.w,C=t.n,I=t.b8,N=t.b9},function(t){P=t.H},function(t){F=t.e,G=t.u,M=t.p,z=t.K,H=t.n,U=t.L,q=t.M,B=t.bm,Q=t.af,W=t.R,R=t.l,Y=t.j},function(t){$=t.l,J=t.r,K=t.t,X=t.u,Z=t.v},function(t){tt=t.getPluginInfo},function(t){et=t.H},function(t){rt=t.l},function(t){nt=t.u},null,null],execute:function(){var at={class:"risk-chart"},it={class:"circle-box"},ot={class:"circle-box-inner"},lt={class:"circle-box-value"},st={class:"circle-box-desc"},ct={class:"flex-1 ml-[2rem] mr-[4rem] mt-[2rem]"},ut={key:0,class:"mb-[1rem]"},ft=F(a({__name:"totalScore",setup:function(t){var e=P().scoreData,r=[{color:"#ef0808",percentage:60,type:"danger"},{color:"#f0ad4e",percentage:80,type:"warn"},{color:"#e8d544",percentage:90,type:"alert"},{color:"#20a53a",percentage:100,type:"safe"}],n=o((function(){return r.find((function(t){return e.score<t.percentage}))}));return function(t,r){var a;return l(),s("div",{class:m(["flex mt-[2rem] ml-[1rem] items-center","circle-".concat(null===(a=d(n))||void 0===a?void 0:a.type)])},[c("div",at,[c("div",it,[r[1]||(r[1]=c("div",{class:"circle-box-bg"},null,-1)),c("div",ot,[c("div",lt,[u(f(d(e).score)+" ",1),r[0]||(r[0]=c("div",{class:"unit"},"分",-1))]),c("div",st,f(d(e).scoreLevel),1)])])]),c("div",ct,[d(e).riskNum>0?(l(),s("div",ut,[r[2]||(r[2]=u("发现")),c("span",null,f(d(e).riskNum),1),r[3]||(r[3]=u("条风险"))])):p("",!0),r[4]||(r[4]=c("template",null,[c("div",{class:"mb-[1rem]"},"无风险")],-1)),c("p",null,f(d(e).subtitle),1)])],2)}}}),[["__scopeId","data-v-c844ba38"]]),dt={class:"flex items-center justify-between text-[11px]"},pt={class:"text-[30px] mx-[0.4rem] text-primary"},mt={class:"leading-[2rem]"},ht={class:"flex items-center"},vt={class:"flex ml-[0.6rem]"},yt={class:"mr-[0.1rem]"},gt=["title","src"],xt={class:"flex ml-[1rem] text-[14px] text-bold"},bt={class:"flex items-center mr-[2rem]"},_t={class:"flex items-center mr-[2rem]"},wt={class:"flex items-center"},kt=a({__name:"defenseInfo",setup:function(t){G();var e=P(),a=e.capabilitySwitch,o=h(e),p=o.safeDay,m=o.scanTime,b=o.virusUpdateTime,_=o.isMalwareConfirm,w=function(){var t=i(n().mark((function t(e){var r,i;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e?"开启":"关闭",i=e?"将全天候检测系统是否存在恶意文件":"将不再检测系统是否存在恶意文件",t.prev=2,t.next=5,M({title:"".concat(r,"动态查杀"),content:"".concat(r,"后,").concat(i,",是否继续?")});case 5:return a.file_detection.status=e,t.next=8,z({loading:"正在保存配置,请稍后...",request:$({dynamic_detection:e}),message:!0});case 8:t.next=13;break;case 10:t.prev=10,t.t0=t.catch(2),a.file_detection.status=!e;case 13:case"end":return t.stop()}}),t,null,[[2,10]])})));return function(e){return t.apply(this,arguments)}}(),k=function(){H({title:"设置自动扫描",area:54,component:function(){return U((function(){return r.import("./index-legacy495.js?v=VERSION_NUMBER")}),void 0,r.meta.url)},showFooter:!0,close:function(){_.value?_.value=!1:a.vul_scan.status=!a.vul_scan.status}})},L=function(){var t=i(n().mark((function t(e){var r,o,l;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(l=function(){return(l=i(n().mark((function t(){var e;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,J();case 2:e=t.sent,q.request(e);case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)},o=function(){return l.apply(this,arguments)},!e){t.next=16;break}return t.next=5,tt({sName:"bt_hids"});case 5:if(r=t.sent,!r.data.setup){t.next=12;break}return t.next=10,o();case 10:t.next=14;break;case 12:q.error("请先安装入侵检测插件"),a.hids.status=!1;case 14:t.next=18;break;case 16:return t.next=18,o();case 18:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();return function(t,e){var r=x,n=B;return l(),s("div",null,[c("div",dt,[c("div",null,[e[3]||(e[3]=u(" 已累计保护您的资产")),c("strong",pt,f(d(p)),1),e[4]||(e[4]=u("天 "))]),c("div",mt,[c("div",ht,[e[5]||(e[5]=c("span",null,"已开启安全能力",-1)),c("ul",vt,[(l(!0),s(v,null,y(d(a),(function(t,e){return l(),s("li",yt,[c("img",{alt:"",title:t.name,src:"/static/images/home/".concat(t.icon).concat(t.status?"-active":"",".svg"),width:"14"},null,8,gt)])})),256))])]),c("div",null,"首页风险扫描时间:"+f(d(m)),1),c("div",null,"病毒库版本更新时间:"+f(d(b)),1)])]),g(r,{direction:"horizontal",class:"!mb-[1.8rem] !mt-0"}),c("div",xt,[c("div",bt,[e[6]||(e[6]=c("span",{class:"mr-2"},"恶意文件检测",-1)),g(n,{size:"small",modelValue:d(a).file_detection.status,"onUpdate:modelValue":e[0]||(e[0]=function(t){return d(a).file_detection.status=t}),onChange:w},null,8,["modelValue"])]),c("div",_t,[e[7]||(e[7]=c("span",{class:"mr-2"},"漏洞扫描",-1)),g(n,{size:"small",modelValue:d(a).vul_scan.status,"onUpdate:modelValue":e[1]||(e[1]=function(t){return d(a).vul_scan.status=t}),onChange:k},null,8,["modelValue"])]),c("div",wt,[e[8]||(e[8]=c("span",{class:"mr-2"},"入侵检测",-1)),g(n,{size:"small",modelValue:d(a).hids.status,"onUpdate:modelValue":e[2]||(e[2]=function(t){return d(a).hids.status=t}),onChange:L},null,8,["modelValue"])])])])}}}),Lt={class:"my-10"},St={class:"flex h-[3.2rem]"},jt={class:"text-[30px] mr-[2rem]"},Et={class:"flex items-end alertNum"},At={class:"bg-[#ef0808]"},Ot={class:"bg-[#f0ad4e]"},Dt={class:"bg-[#a1a1a1]"},Tt=a({__name:"pendingAlarm",setup:function(t,e){var r=e.expose,a=b({total:0,high_risk:0,medium_risk:0,low_risk:0}),o=_({tooltip:{trigger:"axis",axisPointer:{type:"line",lineStyle:{width:1,type:"solid"}}},grid:{top:"16%",left:"-8%",right:"0%",bottom:"0%",containLabel:!1},xAxis:{data:[],show:!1},yAxis:{show:!1},series:[]}),u=Q({options:{}}),p=u.BtECharts,m=(u.getEChart,u.setOption),h=(u.setQuickOption,function(){return[{name:"风险数量",type:"line",data:arguments.length>0&&void 0!==arguments[0]?arguments[0]:[0,0,0,0,0,0],itemStyle:{color:"#ec958d"},smooth:!0,showSymbol:!1,sampling:"average",areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,global:!1,colorStops:[{offset:0,color:"#fcdcd5"},{offset:1,color:"#fcdcd5"}]}}}]}),v=function(){var t=i(n().mark((function t(){var e,r,i,l;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,K();case 3:e=t.sent,r=e.data,i=r.trend_list.map((function(t){return W(t.timestamp)})),l=r.trend_list.map((function(t){return t.count})),o.xAxis={data:i,show:!1},o.series=h(l),a.total=r.total,a.high_risk=r.high_risk,a.medium_risk=r.medium_risk,a.low_risk=r.low_risk,m(o),t.next=19;break;case 16:t.prev=16,t.t0=t.catch(0);case 19:case"end":return t.stop()}}),t,null,[[0,16]])})));return function(){return t.apply(this,arguments)}}();return r({setData:v}),function(t,e){return l(),s("div",Lt,[e[0]||(e[0]=c("div",null,"待处理风险",-1)),c("div",St,[c("span",jt,f(d(a).total),1),c("div",Et,[c("span",At,f(d(a).high_risk),1),c("span",Ot,f(d(a).medium_risk),1),c("span",Dt,f(d(a).low_risk),1)])]),g(d(p),{style:{height:"60px"}})])}}}),Vt=F(Tt,[["__scopeId","data-v-b8f2692d"]]),Ct={class:"flex flex-wrap mt-4"},It={class:"flex flex-col items-center w-[11rem] mb-[1rem]"},Nt=["onClick"],Pt=F(a({__name:"pendingRisk",setup:function(t){var e=P(),r=h(e).risk_details,n=e.riskInstallDetails,a=h(et()).repairTypeActive;return function(t,e){var i=k;return l(),s("div",Ct,[(l(!0),s(v,null,y(d(r),(function(t,r){return l(),s("div",It,[c("div",null,[c("span",null,f(t.title),1),g(i,{content:t.tips,placement:"top"},{default:w((function(){return e[0]||(e[0]=[c("span",{class:"ml-4px bt-ico-ask"},"?",-1)])})),_:2},1032,["content"])]),c("div",{class:m(["text-[22px] cursor-pointer",t.value>0?"text-[#333]":"text-[#777]"]),onClick:function(e){return function(t){switch(t.type){case"vul_scan":a.value="web";break;case"file_detection":a.value="malware";break;case"homepage_risk":a.value="risk";break;case"safe_detect":a.value="safeDetect";break;case"hids":if(!n.hids)return q.error("请先安装入侵检测插件");rt({name:"bt_hids"});break;case"tamper":if(!n.tamper)return q.error("请先安装堡塔企业级防篡改插件");rt({name:"tamper_core"})}}(t)}},f(t.value),11,Nt)])})),256))])}}}),[["__scopeId","data-v-d64df5d8"]]),Ft={class:""},Gt=a({__name:"securityTrend",setup:function(t,r){var a=r.expose,o=_({tooltip:{trigger:"axis",axisPointer:{type:"shadow",label:{show:!0}}},legend:{bottom:0,itemWidth:12,itemHeight:10,itemGap:10,textStyle:{fontSize:10,color:"#666666"},data:[]},grid:{top:"4%",right:"10%",bottom:"24%"},xAxis:[{type:"category",axisTick:{alignWithLabel:!0},axisLabel:{textStyle:{color:"#666666"}},data:[]}],yAxis:[{type:"value",min:0,axisLabel:{textStyle:{color:"#666666"}}}],series:[]}),u=Q({options:{}}),f=u.BtECharts,p=(u.getEChart,u.setOption),m=(u.setQuickOption,function(t){return[{name:t,type:"line",lineStyle:{normal:{}},smooth:!0,showSymbol:!1,sampling:"average",data:arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]}]}),h=function(t){return[{name:t,type:"bar",barWidth:"8px",itemStyle:{normal:{color:arguments.length>2?arguments[2]:void 0}},data:arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]}]},v=function(){var t=i(n().mark((function t(){var r,a,i,l,s,c,u;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,X();case 3:r=t.sent,a=r.data,i=[],l=[],s=[],c=[],u=[],a.trend_list.forEach((function(t){i.push(t.unhandled_risks),l.push(t.handled_risks),s.push(t.risk_scan),c.push(t.vul_scan),u.push(t.server_risks)})),o.xAxis[0].data=a.trend_list.map((function(t){return W(t.timestamp,"MM/dd")})),o.series=[].concat(e(m("未处理风险",i,"rgb(255,221,214,1)")),e(m("已处理风险",l,"#20a53a")),e(h("首页",s,"rgb(29, 159, 234, 1)")),e(h("漏洞",c,"rgb(30,67,180,1)")),e(h("基线",u,"rgb(70,44,104,1)"))),o.legend.data=["未处理风险","已处理风险","首页","漏洞","基线"],p(o),t.next=20;break;case 17:t.prev=17,t.t0=t.catch(0);case 20:case"end":return t.stop()}}),t,null,[[0,17]])})));return function(){return t.apply(this,arguments)}}();return a({setData:v}),function(t,e){return l(),s("div",Ft,[e[0]||(e[0]=c("div",{class:"h-[4rem] leading-[4rem]"},"安全趋势",-1)),g(d(f),{class:"!h-[20rem]"})])}}}),Mt={class:"p-[2rem]"},zt=a({__name:"securityDynamic",setup:function(t,e){var r=e.expose,a=L("safeDynamic"),o=L(!1),p=L({type:"",behavior:"",level:0,time:"",scan_type:"",description:"",solution:""}),m=L({total:0,loading:!1,data:[]}),h=[{label:"风险行为",prop:"description",render:function(t){return g("span",{class:"truncate !w-[12rem]",title:t.description},[t.description])}},{label:"风险等级",prop:"level",width:64,render:function(t){var e=v(t.level),r=e.text,n=e.style;return g("span",{style:n},[u("["),r,u("]")])}},{label:"发现时间",prop:"time",width:64,render:function(t){return W(t.time,"MM-dd")}},nt([{onClick:function(t){o.value=!0,p.value=t},title:"详情"}])],v=function(t){switch(t){case 2:return{text:"中危",style:"color: #FF9900"};case 3:return{text:"高危",style:"color: #FF0000"};case 4:return{text:"紧急",style:"color: #ba281e"};default:return{text:"--",style:"color: #000000"}}},y=function(){var t=i(n().mark((function t(){var e,r;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return m.value.loading=!0,t.prev=1,t.next=4,Z();case 4:e=t.sent,r=e.data,m.value.data=r.events;case 7:return t.prev=7,m.value.loading=!1,t.finish(7);case 10:case"end":return t.stop()}}),t,null,[[1,,7,10]])})));return function(){return t.apply(this,arguments)}}();return r({getListData:y}),function(t,e){var r=R,n=A,i=O,y=D,x=T,b=Y,_=S("bt-loading");return l(),s("div",null,[g(i,{modelValue:d(a),"onUpdate:modelValue":e[0]||(e[0]=function(t){return E(a)?a.value=t:null}),class:"dynamic-tabs"},{default:w((function(){return[g(n,{label:"安全动态",name:"safeDynamic"},{default:w((function(){return[j(g(r,{ref:"malwareTable",column:h,data:d(m).data,"max-height":"185"},null,8,["data"]),[[_,d(m).loading],[_,"正在获取安全动态列表,请稍后...","title"]])]})),_:1})]})),_:1},8,["modelValue"]),g(b,{title:"【".concat(d(p).scan_type,"】详情"),modelValue:d(o),"onUpdate:modelValue":e[1]||(e[1]=function(t){return E(o)?o.value=t:null}),area:53},{default:w((function(){return[c("div",Mt,[g(x,{column:2,size:"small",border:"",class:"table-descriptions"},{default:w((function(){return[g(y,{label:"风险行为:"},{default:w((function(){return[u(f(d(p).behavior),1)]})),_:1}),g(y,{label:"风险等级:"},{default:w((function(){return[u(f(v(d(p).level).text),1)]})),_:1}),g(y,{label:"发现时间:"},{default:w((function(){return[u(f(d(W)(d(p).time,"yyyy-MM-dd HH:mm:ss")),1)]})),_:1}),g(y,{label:"扫描类型:"},{default:w((function(){return[u(f(d(p).scan_type),1)]})),_:1}),g(y,{label:"描述:",span:2},{default:w((function(){return[u(f(d(p).description),1)]})),_:1}),g(y,{label:"解决方案:",span:2},{default:w((function(){return[u(f(d(p).solution),1)]})),_:1})]})),_:1})])]})),_:1},8,["title","modelValue"])])}}}),Ht=F(zt,[["__scopeId","data-v-1c77097b"]]);t("default",a({__name:"index",setup:function(t){var e=et(),r=P(),n=h(e).repairTypeActive,a=L(),i=L(),o=L();return V(n,(function(t){"overview"===t&&C((function(){r.getSafeOverviewData(),a.value.setData(),i.value.setData(),o.value.getListData()}))}),{immediate:!0}),function(t,e){var r=I,n=N,u=x;return l(),s("section",null,[e[0]||(e[0]=c("div",{class:"text-[1.8rem] mb-6"},"安全总览",-1)),g(n,null,{default:w((function(){return[g(r,{span:13},{default:w((function(){return[g(ft)]})),_:1}),g(r,{span:11},{default:w((function(){return[g(kt)]})),_:1})]})),_:1}),g(n,null,{default:w((function(){return[g(r,{span:13},{default:w((function(){return[g(Vt,{ref_key:"pendingAlarm",ref:a},null,512)]})),_:1}),g(r,{span:11},{default:w((function(){return[g(Pt)]})),_:1})]})),_:1}),g(u,{direction:"horizontal",class:"!my-0"}),g(n,null,{default:w((function(){return[g(r,{span:14},{default:w((function(){return[g(Gt,{ref_key:"securityTrend",ref:i},null,512)]})),_:1}),g(r,{span:10},{default:w((function(){return[g(Ht,{ref_key:"securityDynamic",ref:o},null,512)]})),_:1})]})),_:1})])}}}))}}}))}();
Save File
Cancel