import{_ as t}from"./index105.js?v=1761009159";import{_ as e}from"./index114.js?v=1761009159";import{bF as s,V as r,P as o,W as a,l as i}from"./utils-lib.js?v=1761009159";import{N as n}from"./firewall.js?v=1761009159";import{c as l,r as p,e as m,o as d,w as c,q as _,v as u,N as j,B as w,y as f}from"./base-lib.js?v=1761009159";import{k as h}from"./useController12.js?v=1761009159";import{u as b}from"./column.js?v=1761009159";import{aT as g}from"./store.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./validator.js?v=1761009159";import"./index106.js?v=1761009159";import"./useStore4.js?v=1761009159";import"./site.js?v=1761009159";import"./useController6.js?v=1761009159";import"./files.js?v=1761009159";import"./store2.js?v=1761009159";import"./index103.js?v=1761009159";const k=l({__name:"risk-detail",props:{compData:{default:()=>{}}},setup(l){const k=l,x=p([]),y=p(0),C=(t,e)=>{g({path:t})},v=p([{label:"巡检时间",width:"150px",render:t=>{const e=s(t.time,"number",0);return m("span",null,[r(e)])}},{label:"URL",render:t=>m("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=>h[t.risk_type]},b([{onClick:t=>{let e="/www/server/panel/class/projectModel/content/source/",s=e+t.source_file;t.risk_type.indexOf("_update")>-1?((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;let s=e+t.new_content_file;C(s)})(t,e):C(s,t.content)},title:"详情"}])]),D=d({p:1,limit:10,testing_id:k.compData.testing_id}),U=async(t=1)=>{await o({loading:"正在获取IP规则列表，请稍后...",request:n(D),data:{data:[Array,x],page:a(y)}})};return c(()=>k.compData,t=>{D.testing_id=t.testing_id}),_(()=>U()),(s,r)=>{const o=i,a=e,n=t;return u(),j(n,{class:"p-[2rem]"},{content:w(()=>[m(o,{column:f(v),data:f(x)},null,8,["column","data"])]),"footer-right":w(()=>[m(a,{total:f(y),page:f(D).p,"onUpdate:page":r[0]||(r[0]=t=>f(D).p=t),row:f(D).limit,"onUpdate:row":r[1]||(r[1]=t=>f(D).limit=t),onChange:U},null,8,["total","page","row"])]),_:1})}}});export{k as default};
