← Back
Editing: risk-legacy.js
!function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t=function(){return r};var n,r={},l=Object.prototype,o=l.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},s=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function f(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(n){f=function(e,t,n){return e[t]=n}}function m(e,t,n,r){var l=t&&t.prototype instanceof g?t:g,o=Object.create(l.prototype),i=new F(r||[]);return a(o,"_invoke",{value:V(e,n,i)}),o}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}r.wrap=m;var d="suspendedStart",h="suspendedYield",v="executing",x="completed",y={};function g(){}function w(){}function b(){}var k={};f(k,s,(function(){return this}));var _=Object.getPrototypeOf,C=_&&_(_(O([])));C&&C!==l&&o.call(C,s)&&(k=C);var L=b.prototype=g.prototype=Object.create(k);function j(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function T(t,n){function r(l,a,i,s){var c=p(t[l],t,a);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==e(f)&&o.call(f,"__await")?n.resolve(f.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):n.resolve(f).then((function(e){u.value=e,i(u)}),(function(e){return r("throw",e,i,s)}))}s(c.arg)}var l;a(this,"_invoke",{value:function(e,t){function o(){return new n((function(n,l){r(e,t,n,l)}))}return l=l?l.then(o,o):o()}})}function V(e,t,r){var l=d;return function(o,a){if(l===v)throw Error("Generator is already running");if(l===x){if("throw"===o)throw a;return{value:n,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var s=E(i,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(l===d)throw l=x,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);l=v;var c=p(e,t,r);if("normal"===c.type){if(l=r.done?x:h,c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(l=x,r.method="throw",r.arg=c.arg)}}}function E(e,t){var r=t.method,l=e.iterator[r];if(l===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=n,E(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var o=p(l,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,y;var a=o.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,y):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,y)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function O(t){if(t||""===t){var r=t[s];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var l=-1,a=function e(){for(;++l<t.length;)if(o.call(t,l))return e.value=t[l],e.done=!1,e;return e.value=n,e.done=!0,e};return a.next=a}}throw new TypeError(e(t)+" is not iterable")}return w.prototype=b,a(L,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:w,configurable:!0}),w.displayName=f(b,u,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,f(e,u,"GeneratorFunction")),e.prototype=Object.create(L),e},r.awrap=function(e){return{__await:e}},j(T.prototype),f(T.prototype,c,(function(){return this})),r.AsyncIterator=T,r.async=function(e,t,n,l,o){void 0===o&&(o=Promise);var a=new T(m(e,t,n,l),o);return r.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},j(L),f(L,u,"Generator"),f(L,s,(function(){return this})),f(L,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},r.values=O,F.prototype={constructor:F,reset:function(e){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(P),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,l){return i.type="throw",i.arg=e,t.next=r,l&&(t.method="next",t.arg=n),!!l}for(var l=this.tryEntries.length-1;l>=0;--l){var a=this.tryEntries[l],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var l=r;break}}l&&("break"===e||"continue"===e)&&l.tryLoc<=t&&t<=l.finallyLoc&&(l=null);var a=l?l.completion:{};return a.type=e,a.arg=t,l?(this.method="next",this.next=l.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var l=r.arg;P(n)}return l}}throw Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),y}},r}function n(e,t,n,r,l,o,a){try{var i=e[o](a),s=i.value}catch(e){return void n(e)}i.done?t(s):Promise.resolve(s).then(r,l)}System.register(["./base-lib-legacy.js?v=VERSION_NUMBER","./utils-lib-legacy.js?v=VERSION_NUMBER","./index-legacy399.js?v=VERSION_NUMBER","./index-legacy317.js?v=VERSION_NUMBER","./validator-legacy.js?v=VERSION_NUMBER","./store-legacy5.js?v=VERSION_NUMBER","./__commonjsHelpers__-legacy.js?v=VERSION_NUMBER","./index-legacy104.js?v=VERSION_NUMBER","./column-legacy.js?v=VERSION_NUMBER"],(function(e,r){"use strict";var l,o,a,i,s,c,u,f,m,p,d,h,v,x,y,g,w,b,k,_,C,L,j,T,V,E,S,P,F,O,I,A,D,H,M,G,N,U,B,R;return{setters:[function(e){l=e.c,o=e.s,a=e.g,i=e.r,s=e.w,c=e.G,u=e.q,f=e.v,m=e.y,p=e.x,d=e.C,h=e.J,v=e.B,x=e.z,y=e.M,g=e.A,w=e.e,b=e.P,k=e.H,_=e.I,C=e.F,L=e.a_,j=e.K,T=e.D,V=e.T,E=e.cf,S=e.bw,P=e.b3,F=e.av},function(e){O=e.u,I=e.M,A=e.c,D=e.l,H=e.W,M=e.j,G=e.e},function(e){N=e._},function(e){U=e.H},function(e){B=e.p},function(e){R=e.x},null,null,null],execute:function(){var r={class:"h-full p-2rem"},Y={class:"scan-header flex items-center"},q={class:"flex items-center w-full"},z={key:0,class:"w-[10rem] h-[10rem] relative flex-shrink-0"},J={key:1,class:"w-[10rem] h-[10rem] relative flex-shrink-0"},K={class:"w-full text-[#333] text-[2rem] flex flex-col ml-[3rem]"},W={class:"flex items-center w-full justify-between"},Q=["innerHTML"],X={key:0},Z={class:"mx-[4px] text-[2.4rem] mx-[4px] text-danger"},$={class:"flex items-center"},ee={key:0,class:"text-[1.4rem] text-[#666] mt-[1rem]"},te={key:2,class:"text-[1.4rem] text-[#666] mt-[1rem]"},ne={key:4,class:"text-[1.4rem] mt-[12px] text-[#666] flex items-center"},re={key:5,class:"text-[1.4rem] mt-[12px] text-[#F0AD4E] flex items-center"},le={key:0,class:"text-[1.4rem] w-full mt-[2rem] flex items-center justify-between"},oe={class:"items-center flex"},ae={class:"flex items-center"},ie=["v-bt-loading:title"],se={class:"module-head flex items-center h-[5.4rem] justify-between border-b-1 pr-[0.8rem] w-full"},ce={class:"w-full flex items-center"},ue=["title"],fe={key:0,class:"text-[#666] !text-[1.2rem] ml-[5rem] flex"},me={class:"flex items-center text-[1.2rem]"},pe=["onClick"],de=["onClick"],he={class:"px-[3rem] py-[3.2rem] bg-[#F8F8F8]"},ve={class:"flex items-center"},xe={class:"text-[#333]"},ye=["innerHTML"],ge={class:"flex mt-[16px] items-center"},we={key:0,class:"collapse-item flex-col !items-start"},be={key:1,class:"collapse-item"},ke={class:"flex mt-[16px] items-center"},_e={class:"collapse-item"},Ce={class:"flex flex-col p-[20px]"},Le={class:"text-[1.6rem] mb-[20px]"},je={class:"text-primary"},Te={class:"text-danger"},Ve={class:"text-medium"},Ee={class:"p-[12px] flex flex-col items-start"},Se={class:"mt-4px"},Pe={key:0,class:"scan-body p-[2rem]"},Fe={class:"module-list overflow-auto h-[38rem]"},Oe={class:"module-head flex items-center h-[5.4rem] justify-between border-b-1 pr-[0.8rem] w-full"},Ie={class:"w-full flex items-center"},Ae=["title"],De={class:"flex items-center"},He={class:"px-[3rem] py-[3.2rem] bg-[#F8F8F8]"},Me={class:"flex items-center"},Ge={class:"text-[#333]"},Ne=["innerHTML"],Ue={class:"flex mt-[16px] items-center"},Be={key:0,class:"collapse-item flex-col !items-start"},Re={key:1,class:"collapse-item"},Ye={class:"flex mt-[16px] items-center"},qe={class:"collapse-item"},ze={class:"w-full bg-white flex items-center justify-between"},Je=l({__name:"risk",setup:function(e){var l=U(),G=l.handleIgnore,Je=l.onToggle,Ke=l.vulnerabilityInvolvesSoftware,We=o(l),Qe=We.showAnimation,Xe=We.scanScore,Ze=We.scanTextClass,$e=We.scanOuterClass,et=We.animateFlag,tt=We.scanPreText,nt=We.riskNum,rt=We.scanButtonType,lt=We.repairAutoRiskButton,ot=We.cookieRepair,at=We.scanItemText,it=We.processData,st=We.lastScanTime,ct=We.scanSelectShow,ut=We.allSelect,ft=We.allSelectionDis,mt=We.isFirst,pt=We.emptyDetail,dt=We.loading,ht=We.loadingText,vt=We.isShow,xt=We.isIgnoreAll,yt=We.ignoreData,gt=We.activeMent,wt=We.activeMentIgnore,bt=We.is_autofix,kt=We.levelData,_t=We.allData,Ct=We.repairData,Lt=We.resultConfirm,jt=We.resultItemLength,Tt=We.resultTable,Vt=We.resultColumn,Et=O(),St=(Et.mainHeight,Et.payment),Pt=a((function(){return _t.value.filter((function(e){return 1==e.selection})).map((function(e){return e.m_name})).length})),Ft=i(!1),Ot=function(){var e,r=(e=t().mark((function e(){var n;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("ltd"===St.value.authType){e.next=3;break}return B({sourceId:68}),e.abrupt("return");case 3:return e.prev=3,e.next=6,R();case 6:if((n=e.sent).data.status){e.next=9;break}return e.abrupt("return",I.error(n.data.msg));case 9:window.open("/download?filename=".concat(n.data.path),"_blank","noopener,noreferrer"),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(3);case 15:case"end":return e.stop()}}),e,null,[[3,12]])})),function(){var t=this,r=arguments;return new Promise((function(l,o){var a=e.apply(t,r);function i(e){n(a,l,o,i,s,"next",e)}function s(e){n(a,l,o,i,s,"throw",e)}i(void 0)}))});return function(){return r.apply(this,arguments)}}();return s(nt,(function(e){e!==l.tootipTotal.risk&&l.getScanTotal()})),function(e,t){var n=T,o=A,a=N,i=V,s=E,O=S,I=D,U=H,B=M,R=P,We=F,Et=c("bt-loading");return u(),f("div",null,[t[46]||(t[46]=m("div",{class:"text-[1.8rem] mb-6"},"安全风险",-1)),m("div",r,[m("div",Y,[m("div",q,[p(Qe)?d("",!0):(u(),f("div",z,t[13]||(t[13]=[m("span",{class:"inline-block scan-icon-img icon-img-safe"},null,-1),m("span",{class:"scan-icon-img-bg"},null,-1),m("span",{class:"text-[3.2rem] h-[4.4rem] w-[0.7rem] text-[#20a53a] font-bold absolute-center"},"i",-1)]))),p(Qe)?(u(),f("div",J,[m("p",{class:h("box-text w-[5.8rem] "+p(Ze))},[v(x(p(Xe))+" ",1),t[14]||(t[14]=m("span",null,"分",-1))],2),m("span",{class:h("scan-icon-img icon-img-"+p($e))},null,2),t[17]||(t[17]=m("span",{class:"circle-inner"},null,-1)),m("span",{class:h("circle-outer "+p($e))},null,2),m("div",{class:h("animate-box"+p(et))},[m("div",{class:h("animate-box-left linear-"+p($e))},null,2),t[15]||(t[15]=m("div",{class:"animate-box-right"},null,-1)),t[16]||(t[16]=m("div",{class:"animate-box-bottom"},null,-1))],2)])):d("",!0),m("div",K,[m("div",W,[m("span",null,[m("span",{innerHTML:p(tt)},null,8,Q),p(nt)?(u(),f("span",X,[t[18]||(t[18]=v("已检测到")),m("span",Z,x(p(nt)),1),t[19]||(t[19]=v("个风险"))])):d("",!0)]),m("div",$,[p(lt)&&p(ot)?d("",!0):(u(),y(n,{key:0,class:h("w-[9rem] "+("info"==p(rt)?"bg-[#CBCBCB]":"")),type:p(rt),round:"",onClick:p(l).scanningProcess},{default:g((function(){return[v(x("info"==p(rt)?"停止扫描":"立即扫描"),1)]})),_:1},8,["class","type","onClick"])),p(lt)&&p(ot)?(u(),f("span",{key:1,round:"",onClick:t[0]||(t[0]=function(){var e;return p(l).scanningProcess&&(e=p(l)).scanningProcess.apply(e,arguments)}),class:"!p-[0] bt-link text-[1.2rem] mr-4px"}," 重新扫描 ")):d("",!0),p(lt)&&p(ot)?(u(),y(n,{key:2,class:"w-[9rem]",round:"",type:p(rt),onClick:p(l).handleRepairAutoRisk},{default:g((function(){return t[20]||(t[20]=[v(" 一键修复 ")])})),_:1},8,["type","onClick"])):d("",!0)])]),"info"===p(rt)||p(lt)?d("",!0):(u(),f("span",ee," 扫描后将自动修复所有可修复的风险项,并获取最新安全扫描报告 ")),"info"===p(rt)||p(lt)?d("",!0):(u(),y(o,{key:1,class:"!p-0 !mt-[12px] w-[150px]",onClick:t[1]||(t[1]=function(e){return Ft.value=!0})},{default:g((function(){return t[21]||(t[21]=[v(" >>查看当前安全扫描报告 ")])})),_:1})),"info"==p(rt)?(u(),f("span",te,x(p(at)),1)):d("",!0),"info"==p(rt)?(u(),y(a,{key:3,class:"mt-[1.6rem] h-[1rem]","process-color":p(it).processColor,percentage:p(it).processPercentage,"stroke-width":10,"show-text":!1},null,8,["process-color","percentage"])):d("",!0),p(lt)?(u(),f("span",ne," 上次扫描时间:"+x(p(st)),1)):d("",!0),p(lt)&&p(ot)?(u(),f("span",re," 若安装了【系统加固】,请先关闭再进行一键修复 ")):d("",!0)])])]),p(ct)?(u(),f("div",le,[m("div",oe,[w(i,{onChange:p(l).handelAllSelection,class:"text-[#666] font-500 text-[12px]",modelValue:p(ut),"onUpdate:modelValue":t[2]||(t[2]=function(e){return b(ut)?ut.value=e:null}),disabled:p(ft)},{default:g((function(){return t[22]||(t[22]=[v("全选")])})),_:1},8,["onChange","modelValue","disabled"]),k(w(o,{onClick:t[3]||(t[3]=function(e){return p(l).handleRepair(!1,null)}),link:"",class:h(p(Pt)?"ml-[20px] text-[1.4rem] mt-[1px]":"ml-[20px] text-[1.4rem] text-[#999] mt-[1px] cursor-not-allowed ")},{default:g((function(){return t[23]||(t[23]=[v("修复选中项 ")])})),_:1},8,["class"]),[[_,!p(mt)]])]),m("div",ae,[w(o,{onClick:t[4]||(t[4]=function(e){return xt.value=!0})},{default:g((function(){return t[24]||(t[24]=[v("忽略扫描项")])})),_:1}),t[26]||(t[26]=m("span",{class:"text-[#999] mx-[1.2rem]"},"|",-1)),w(n,{type:"primary",link:"",onClick:t[5]||(t[5]=function(e){return Ft.value=!0})},{default:g((function(){return t[25]||(t[25]=[m("i",{class:"svgtofont-icon-safe-report text-[1.4rem] text-[#20a53a]"},null,-1),v(" 查看安全扫描报告")])})),_:1})])])):d("",!0),p(pt)?d("",!0):k((u(),f("div",{key:1,"v-bt-loading:title":p(ht),class:h([p(vt)?"h-[24rem]":"h-[34rem]","scan-body my-[2rem]"])},[w(O,{modelValue:p(gt),"onUpdate:modelValue":t[7]||(t[7]=function(e){return b(gt)?gt.value=e:null}),accordion:""},{default:g((function(){return[m("div",{class:h(["module-list overflow-auto",p(vt)?"h-[24rem]":"h-[34rem]"])},[(u(!0),f(C,null,L(p(_t),(function(e,n){return u(),f("div",{class:"module-item text-[1.2rem]",key:"".concat(n)},[m("div",se,[m("div",ce,[w(i,{modelValue:e.selection,"onUpdate:modelValue":function(t){return e.selection=t},onChange:function(t){return p(l).changeSelectValue(e.selection)},disabled:p(mt)||!p(bt).includes(e.m_name)},null,8,["modelValue","onUpdate:modelValue","onChange","disabled"]),m("span",{class:"text-[1.2rem] h-[2.2rem] flex items-center px-[8px] rounded-[0.2rem] ml-[8px] mr-[1rem]",style:j({color:p(kt)[e.level].color,backgroundColor:p(kt)[e.level].bg})},x(p(kt)[e.level].text),5),m("div",{class:"w-[20rem] max-w-[20rem] truncate",style:j({color:p(kt)[e.level].color}),title:e.ps?e.ps:e.vuln_name},x(e.ps?e.ps:e.vuln_name),13,ue),p(bt).includes(e.m_name)?d("",!0):(u(),f("div",fe,[t[28]||(t[28]=v("无法自动修复,请手动处理或")),w(o,{onClick:t[6]||(t[6]=function(e){return p(l).onlineServiceDialog()})},{default:g((function(){return t[27]||(t[27]=[v("联系人工")])})),_:1})]))]),m("div",me,[k(m("span",{onClick:function(t){return p(l).handleRepair(!0,e)},class:"w-[4.2rem] bt-link"},t[29]||(t[29]=[v(" 修复"),m("span",{class:"text-[#999] mx-[4px]"},"|",-1)]),8,pe),[[_,!p(mt)&&!!p(bt).includes(e.m_name)]]),m("span",{underline:!1,onClick:function(t){return p(l).handleIgnore(e,!1)},class:"w-[4.2rem] cursor-pointer text-[#999]"},t[30]||(t[30]=[v(" 忽略 "),m("span",{class:"text-[#999] mx-4px"},"|",-1)]),8,de),w(o,{onClick:function(t){return p(l).onToggle(e,p(_t))},class:"w-[5.4rem] flex items-center"},{default:g((function(){return[v(x(e.show?"折叠":"详情"),1),m("i",{class:h("text-[1.4rem] text-[#999] ml-[4px] svgtofont-el-arrow-"+(e.show?"up":"down"))},null,2)]})),_:2},1032,["onClick"])])]),w(s,null,{default:g((function(){return[k(m("div",he,[m("div",ve,[m("div",xe,x(e.ps?"风险描述":"涉及软件\t"),1),k(m("div",{class:"collapse-item",innerHTML:e.msg},null,8,ye),[[_,e.msg]]),k(m("div",{class:"collapse-item"},x(e.soft_name?p(l).vulnerabilityInvolvesSoftware(e):""),513),[[_,e.soft_name]])]),m("div",ge,[t[31]||(t[31]=m("div",null,"解决方案",-1)),e.tips?(u(),f("div",we,[(u(!0),f(C,null,L(e.tips,(function(e,t){return u(),f("p",{key:t,class:h(0==t?"":"mt-[4px]")},x(t+1)+"、"+x(e),3)})),128))])):d("",!0),e.vuln_solution?(u(),f("div",be,x(e.vuln_solution),1)):d("",!0)]),k(m("div",ke,[t[32]||(t[32]=m("div",null,"温馨提示",-1)),m("div",_e,x(e.remind),1)],512),[[_,e.remind]])],512),[[_,e.show]])]})),_:2},1024)])})),128))],2)]})),_:1},8,["modelValue"])],10,ie)),[[Et,p(dt)]]),p(pt)?(u(),f("div",{key:2,class:h([p(vt)?"h-[32rem]":"h-[40rem]","scan-body flex justify-center flex-col my-[4rem] relative"])},[t[33]||(t[33]=m("span",{class:"bg-[#f2f2f2] h-[3rem] w-[33%] mb-[12px]"},null,-1)),(u(),f(C,null,L(4,(function(e,t){return m("span",{class:"bg-[#f2f2f2] h-[3rem] w-full mb-[12px]",key:t})})),64)),t[34]||(t[34]=m("span",{class:"bg-[#f2f2f2] h-[3rem] w-[60%] mb-[12px]"},null,-1)),(u(),f(C,null,L(3,(function(e,t){return m("span",{class:"bg-[#f2f2f2] h-[3rem] w-full mb-[12px]",key:t})})),64)),t[35]||(t[35]=m("span",{class:"bg-[#f2f2f2] h-[3rem] w-[40%] mb-[12px]"},null,-1))],2)):d("",!0),w(B,{title:"结果确认","show-footer":!1,area:54,modelValue:p(Lt),"onUpdate:modelValue":t[8]||(t[8]=function(e){return b(Lt)?Lt.value=e:null})},{default:g((function(){return[m("div",Ce,[m("span",Le,[t[36]||(t[36]=v("修复结果:修复成功")),m("span",je,x(p(jt).success),1),t[37]||(t[37]=v("项,修复失败")),m("span",Te,x(p(jt).failed),1),t[38]||(t[38]=v("项,忽略")),m("span",Ve,x(p(jt).cannot_automatically),1),t[39]||(t[39]=v("项"))]),w(I,{"max-height":400,data:p(Tt),column:p(Vt)},null,8,["data","column"]),w(U,{options:[{content:"如有修复失败项,请关闭当前窗口,根据解决方案手动进行修复"}],"list-style":"none",class:"ml-[8px] mt-[12px]"})])]})),_:1},8,["modelValue"]),w(B,{title:!1,"show-footer":!1,area:54,modelValue:p(Ct).repairProgress,"onUpdate:modelValue":t[9]||(t[9]=function(e){return p(Ct).repairProgress=e}),showClose:!1},{default:g((function(){return[m("div",Ee,[w(R,{class:"!w-full",color:"#20a53a","text-inside":!0,"stroke-width":20,percentage:p(Ct).progress},null,8,["percentage"]),m("span",Se,x(p(Ct).repairText),1)])]})),_:1},8,["modelValue"]),w(B,{title:"忽略风险项",area:66,modelValue:p(xt),"onUpdate:modelValue":t[11]||(t[11]=function(e){return b(xt)?xt.value=e:null}),"show-footer":!1},{default:g((function(){return[p(pt)?d("",!0):(u(),f("div",Pe,[w(O,{modelValue:p(wt),"onUpdate:modelValue":t[10]||(t[10]=function(e){return b(wt)?wt.value=e:null}),accordion:"",class:h("".concat(p(yt).length?"":"!border-none"))},{default:g((function(){return[m("div",Fe,[(u(!0),f(C,null,L(p(yt),(function(e,n){return u(),f("div",{class:"module-item text-[1.2rem]",key:"".concat(n)},[m("div",Oe,[m("div",Ie,[m("span",{class:"text-[1.2rem] h-[2.2rem] flex items-center px-[8px] rounded-[0.2rem] ml-[8px] mr-[1rem]",style:j({color:p(kt)[e.level].color,backgroundColor:p(kt)[e.level].bg})},x(p(kt)[e.level].text),5),m("div",{class:"w-[36rem] max-w-[36rem] truncate",style:j({color:p(kt)[e.level].color}),title:e.ps?e.ps:e.vuln_name},x(e.ps?e.ps:e.vuln_name),13,Ae)]),m("div",De,[w(o,{onClick:function(t){return p(G)(e,!0)},class:"w-[6.6rem]"},{default:g((function(){return t[40]||(t[40]=[v(" 移除忽略 "),m("span",{class:"text-[#999] mx-[4px]"},"|",-1)])})),_:2},1032,["onClick"]),w(o,{onClick:function(t){return p(Je)(e,p(yt))},class:"w-[5.4rem] flex items-center"},{default:g((function(){return[v(x(e.show?"折叠":"详情"),1),m("i",{class:h("text-[1.4rem] text-[#999] ml-[4px] svgtofont-el-arrow-"+(e.show?"up":"down"))},null,2)]})),_:2},1032,["onClick"])])]),w(s,null,{default:g((function(){return[k(m("div",He,[m("div",Me,[m("div",Ge,x(e.ps?"风险描述":"涉及软件"),1),k(m("div",{class:"collapse-item",innerHTML:e.msg},null,8,Ne),[[_,e.msg]]),k(m("div",{class:"collapse-item"},x(e.soft_name?p(Ke)(e):""),513),[[_,e.soft_name]])]),m("div",Ue,[t[41]||(t[41]=m("div",null,"解决方案",-1)),e.tips?(u(),f("div",Be,[(u(!0),f(C,null,L(e.tips,(function(e,t){return u(),f("p",{key:t,class:h(0==t?"":"mt-[4px]")},x(t+1)+"、"+x(e),3)})),128))])):d("",!0),e.vuln_solution?(u(),f("div",Re,x(e.vuln_solution),1)):d("",!0)]),k(m("div",Ye,[t[42]||(t[42]=m("div",null,"温馨提示",-1)),m("div",qe,x(e.remind),1)],512),[[_,e.remind]])],512),[[_,e.show]])]})),_:2},1024)])})),128)),p(yt).length?d("",!0):(u(),y(We,{key:0,description:"暂无忽略的风险项"}))])]})),_:1},8,["modelValue","class"])]))]})),_:1},8,["modelValue"]),w(B,{title:"安全扫描报告","show-footer":!1,area:[100,80],modelValue:p(Ft),"onUpdate:modelValue":t[12]||(t[12]=function(e){return b(Ft)?Ft.value=e:null})},{default:g((function(){return[t[45]||(t[45]=m("div",{class:"box"},[m("iframe",{src:"/project/security/report/html",frameborder:"0",width:"200%",height:"200%"})],-1)),m("div",ze,[t[44]||(t[44]=m("span",null,null,-1)),w(o,{onClick:Ot,class:"border border-solid border-[#20a53a] py-8px px-12px rounded-2px mr-20px my-8px"},{default:g((function(){return t[43]||(t[43]=[m("i",{class:"svgtofont-icon-ltd text-[#A88E5F] mt-2px"},null,-1),v(" 下载报告")])})),_:1})])]})),_:1},8,["modelValue"])])])}}});e("default",G(Je,[["__scopeId","data-v-c70770e8"]]))}}}))}();
Save File
Cancel