text: import e from"./DetailModal.640d4e81.js";import{_ as r,u as o}from"./useTable.d4faf47d.js";import{_ as t}from"./useForm.6c7201a5.js";import{u as i}from"./useModal.4bd2816f.js";import{e as s,v as a,j as n,aw as l,V as c,ab as d,cs as m,r as p,o as u,m as f,J as j,ay as b,E as g,F as x,n as y,G as v,H as E,p as w}from"./index.c68bc564.js";import{getColumns as h}from"./data.75393776.js";import"./useDescription.e74ce805.js";import"./responsiveObserve.c545f1cc.js";import"./get.402f11ff.js";import"./index.dd7322b1.js";import"./scrollTo.c1e0f75f.js";import"./onMountedOrActivated.1b5c6f87.js";import"./useExpose.6be3b34e.js";import"./index.53dfa4c0.js";import"./UpOutlined.b9c4ece0.js";import"./index.2dba30f1.js";import"./useWindowSizeFn.10e7e01b.js";import"./index.d0c7b499.js";import"./useSortable.653585e7.js";import"./RedoOutlined.d9910eb1.js";import"./_baseIteratee.d3c102c9.js";import"./FullscreenOutlined.16be4464.js";import"./index.a859909a.js";import"./index.b8a50e18.js";import"./vendor.afa0338c.js";import"./index.65ee3376.js";import"./index.39f227bd.js";import"./Tree.885e3dd6.js";import"./CountdownInput.2f2513e7.js";import"./download.1bc3c751.js";import"./index.548c3b67.js";var T=s({name:"ErrorHandler",components:{DetailModal:e,BasicTable:r,TableAction:t},setup(){const e=a(),r=a([]),{t:t}=n(),[s,{setTableData:p}]=o({title:t("sys.errorLog.tableTitle"),columns:h(),actionColumn:{width:80,title:"Action",dataIndex:"action",slots:{customRender:"action"}}}),[u,{openModal:f}]=i();return l((()=>m.getErrorInfoState),(e=>{c((()=>{p(d(e))}))}),{immediate:!0}),{register:s,registerModal:u,handleDetail:function(r){e.value=r,f(!0)},fireVueError:function(){throw new Error("fire vue error!")},fireResourceError:function(){r.value.push(`${(new Date).getTime()}.png`)},fireAjaxError:function(){return e=this,r=null,o=function*(){},new Promise(((t,i)=>{var s=e=>{try{n(o.next(e))}catch(r){i(r)}},a=e=>{try{n(o.throw(e))}catch(r){i(r)}},n=e=>e.done?t(e.value):Promise.resolve(e.value).then(s,a);n((o=o.apply(e,r)).next())}));var e,r,o},imgList:r,rowInfo:e,t:t}}});const C={class:"p-4"};T.render=function(e,r,o,t,i,s){const a=p("DetailModal"),n=p("a-button"),l=p("TableAction"),c=p("BasicTable");return u(),f("div",C,[(u(!0),f(j,null,b(e.imgList,(e=>g((u(),f("img",{key:e,src:e},null,8,["src"])),[[x,!1]]))),128)),y(a,{info:e.rowInfo,onRegister:e.registerModal},null,8,["info","onRegister"]),y(c,{onRegister:e.register,class:"error-handle-table"},{toolbar:v((()=>[y(n,{onClick:e.fireVueError,type:"primary"},{default:v((()=>[E(w(e.t("sys.errorLog.fireVueError")),1)])),_:1},8,["onClick"]),y(n,{onClick:e.fireResourceError,type:"primary"},{default:v((()=>[E(w(e.t("sys.errorLog.fireResourceError")),1)])),_:1},8,["onClick"]),y(n,{onClick:e.fireAjaxError,type:"primary"},{default:v((()=>[E(w(e.t("sys.errorLog.fireAjaxError")),1)])),_:1},8,["onClick"])])),action:v((({record:r})=>[y(l,{actions:[{label:e.t("sys.errorLog.tableActionDesc"),onClick:e.handleDetail.bind(null,r)}]},null,8,["actions"])])),_:1},8,["onRegister"])])};export default T;
  