var E=(h,n,t)=>new Promise((e,p)=>{var u=r=>{try{a(t.next(r))}catch(s){p(s)}},f=r=>{try{a(t.throw(r))}catch(s){p(s)}},a=r=>r.done?e(r.value):Promise.resolve(r.value).then(u,f);a((t=t.apply(h,n)).next())});import{dE as x,a as C,r as w,c as T,fp as D,a1 as R,af as A,ab as j,aQ as B,o as g,h as _,F as I,aW as S,w as V,v as M,j as i,k as o,p as m,q as b,t as y}from"./index.0d073eaa.js";import F from"./DetailModal.3a3743ca.js";import{B as N}from"./TableImg.2aabef6a.js";import{j as $}from"./BasicForm.d11b68fd.js";import{u as q}from"./useTable.13a8b0ff.js";import{b as H}from"./index.c05f9254.js";import{getColumns as Q}from"./data.524013e4.js";import"./index.86cf6e90.js";import"./index.875b4490.js";import"./get.49a42f2e.js";import"./useDescription.c3993c39.js";import"./index.965098be.js";import"./Checkbox.476f6e92.js";import"./index.1491cab6.js";import"./index.e8b360cf.js";import"./eagerComputed.156e81ff.js";import"./useForm.868c8e81.js";import"./index.566277e5.js";import"./index.e9a84cba.js";import"./index.0972fd96.js";import"./useSize.bb4e5ce5.js";import"./useWindowSizeFn.ef20ece8.js";import"./useContentViewHeight.01b9d1c6.js";import"./ArrowLeftOutlined.90d2e05e.js";import"./index.8680e4c4.js";import"./transButton.8c1b1a4f.js";import"./index.7075e2b7.js";import"./index.04f7e044.js";import"./index.e317a008.js";import"./uuid.2b29000c.js";import"./index.2b5ea4f6.js";import"./_baseIteratee.3919e7cf.js";import"./DeleteOutlined.247d1f35.js";import"./index.a8c197b8.js";import"./useRefs.e81831e2.js";import"./Form.48352728.js";import"./Col.a2eadc78.js";import"./useFlexGapSupport.474c31b7.js";import"./index.0fb15725.js";import"./sortable.esm.2632adaa.js";import"./RedoOutlined.32117fb5.js";import"./FullscreenOutlined.401a7bcd.js";import"./index.dd1f987c.js";import"./fromPairs.84aabb58.js";import"./scrollTo.f8a2fd00.js";import"./index.2ed1a060.js";/* empty css              *//* empty css              */import"./index.e8daa066.js";import"./index.81899e8a.js";import"./index.ffb8ac7d.js";import"./download.bb4c9304.js";import"./base64Conver.08b9f4ec.js";import"./index.31930d74.js";import"./index.1d29734e.js";import"./uniqBy.ac0f9c38.js";const W=()=>x.get({url:"/error"}),z={class:"p-4"},G=["src"],Ur=C({__name:"index",setup(h){const n=w(),t=w([]),{t:e}=T(),p=D(),[u,{setTableData:f}]=q({title:e("sys.errorLog.tableTitle"),columns:Q(),actionColumn:{width:80,title:"Action",dataIndex:"action",slots:{customRender:"action"}}}),[a,{openModal:r}]=H();R(()=>p.getErrorLogInfoList,l=>{A(()=>{f(j(l))})},{immediate:!0});function s(l){n.value=l,r(!0)}function L(){throw new Error("fire vue error!")}function v(){t.value.push(`${new Date().getTime()}.png`)}function k(){return E(this,null,function*(){yield W()})}return(l,J)=>{const d=B("a-button");return g(),_("div",z,[(g(!0),_(I,null,S(t.value,c=>V((g(),_("img",{key:c,src:c},null,8,G)),[[M,!1]])),128)),i(F,{info:n.value,onRegister:o(a)},null,8,["info","onRegister"]),i(o(N),{onRegister:o(u),class:"error-handle-table"},{toolbar:m(()=>[i(d,{onClick:L,type:"primary"},{default:m(()=>[b(y(o(e)("sys.errorLog.fireVueError")),1)]),_:1}),i(d,{onClick:v,type:"primary"},{default:m(()=>[b(y(o(e)("sys.errorLog.fireResourceError")),1)]),_:1}),i(d,{onClick:k,type:"primary"},{default:m(()=>[b(y(o(e)("sys.errorLog.fireAjaxError")),1)]),_:1})]),action:m(({record:c})=>[i(o($),{actions:[{label:o(e)("sys.errorLog.tableActionDesc"),onClick:s.bind(null,c)}]},null,8,["actions"])]),_:1},8,["onRegister"])])}}});export{Ur as default};
