HEX
Server: nginx/1.28.3
System: Linux ip-172-31-12-242 6.17.0-1007-aws #7~24.04.1-Ubuntu SMP Thu Jan 22 21:04:49 UTC 2026 x86_64
User: root (0)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/server/panel/BTPanel/static/js/risk-list.js
import{_ as D}from"./index118.js?v=1777008528";import{_ as P}from"./index217.js?v=1777008528";import{c as R,a2 as L,R as M,k as V,c4 as j,d3 as B}from"./utils-lib.js?v=1777008528";import{getRiskList as E}from"./site.js?v=1777008528";import{c as F,V as H,r,bc as O,o as T,I as U,j as q,C as z,v as h,J as A,e as l,p as o,L as G}from"./base-lib.js?v=1777008528";import{g as I,a7 as J}from"./index3.js?v=1777008528";import{t as N}from"./useController29.js?v=1777008528";import"./__commonjsHelpers__.js?v=1777008528";import"./index119.js?v=1777008528";import"./index116.js?v=1777008528";import"./useStore2.js?v=1777008528";import"./useController13.js?v=1777008528";const nt=F({__name:"risk-list",props:{compData:{default:()=>({isPopup:!1})}},setup(b){const g=b,{mainHeight:w}=R(),p=H(!1),c=r([]),m=r(0),_=r(g.compData.isPopup),k=()=>[{label:"巡检时间",width:"150px",render:t=>{const e=L(t.time,"number",0);return l("span",null,[M(e)])}},{label:"URL",render:t=>l("span",{class:"bt-link",title:t.url,onClick:()=>window.open(t.url,"_blank","noopener,noreferrer")},[t.url])},{label:"关键词",prop:"content",width:"200px"},{label:"类型",prop:"risk_content",width:"200px"},{label:"风险位置",width:"150px",render:t=>N[t.risk_type]},I([{onClick:x,title:"详情"}])],v=(t,e)=>{(t.risk_type==="title_hash_update"||t.risk_type==="tail_hash_update")&&(e="/www/server/panel/class/projectModel/content/hash/"+t.site_name+"/"),e+t.source_content_file;let n=e+t.new_content_file;u(n)},u=(t,e)=>{J({path:t})},x=t=>{var s;let e="/www/server/panel/class/projectModel/content/source/",n=e+t.source_file;((s=t.risk_type)==null?void 0:s.indexOf("_update"))>-1?v(t,e):u(n,t.content)},a=O({p:1,limit:20}),d=async()=>{await V({loading:p,request:E({...a}),data:{data:[Array,c],page:j(m)}})},C=k();return T(()=>d()),(t,e)=>{const n=B,s=P,y=D,f=U("bt-loading");return q(),z(y,{class:G({"p-[2rem]":o(_)})},{content:h(()=>[A(l(n,{ref:"table",column:o(C),data:o(c),description:"风险列表为空","max-height":o(_)?500:o(w)-300},null,8,["column","data","max-height"]),[[f,o(p)],[f,"正在加载风险列表,请稍后...","title"]])]),"footer-right":h(()=>[l(s,{total:o(m),page:o(a).p,"onUpdate:page":e[0]||(e[0]=i=>o(a).p=i),row:o(a).limit,"onUpdate:row":e[1]||(e[1]=i=>o(a).limit=i),onChange:d},null,8,["total","page","row"])]),_:1},8,["class"])}}});export{nt as default};