var E=(b,n,t)=>new Promise((e,m)=>{var u=r=>{try{s(t.next(r))}catch(p){m(p)}},f=r=>{try{s(t.throw(r))}catch(p){m(p)}},s=r=>r.done?e(r.value):Promise.resolve(r.value).then(u,f);s((t=t.apply(b,n)).next())});import{d as C,f as L,w as D,n as M,U as R,a2 as d,a3 as _,F as T,ae as A,q as I,B as S,k as i,u as o,af as a,G as y,a5 as h}from"./vue-vendor-CxLCUzY4.js";import V from"./DetailModal-DDVo_bkW.js";import{u as B}from"./index-gyz1IdHU.js";import"./index-zKZnG1QC.js";import{h as j,by as F,K,a9 as N,u as $}from"./index-Cy4uayzW.js";import{getColumns as q}from"./data-C-4Dnq8G.js";import{h as G}from"./antd-vue-vendor-CahNzUUa.js";import{Q as H}from"./componentMap-0iK4HQBq.js";import Q from"./BasicTable-CgafrQwz.js";import"./index-U6E3DaJx.js";import"./index-CYoRlduV.js";import"./index-DYB8Ashr.js";import"./index-Bdn0r8CG.js";import"./index-CrdW4fN1.js";import"./useTimeout-gJpgadD6.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./BasicModal-sKcs_9Ir.js";import"./ModalHeader-ByCVDoqO.js";import"./useWindowSizeFn-DDyhhqyw.js";import"./useFormItem-IOFWTdED.js";import"./download-Bn4f3tzD.js";import"./base64Conver-24EVOS6V.js";import"./index-D6H6KsT6.js";import"./index-CLxBW_h0.js";import"./useCountdown-2P9HvnfJ.js";import"./useFormItemSingle-BEyrYQqf.js";import"./JSelectUser-B98pRPrS.js";import"./props-CtlWAg-s.js";import"./JSelectBiz-vYDBA0SK.js";import"./JAddInput-DP4caUmw.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./index-tDBMxW9-.js";import"./index-CNQBnF3P.js";import"./bem-IZKqD41e.js";import"./props-CG-jAkbI.js";import"./useContextMenu-Q6J5bB_u.js";import"./depart.api-B8q8MC-j.js";import"./JImageUpload-C5OCTlCG.js";import"./JDictSelectTag-CalJXNVe.js";import"./JSelectDept-D-TUaHvK.js";import"./JPopup-CVHkQZFq.js";import"./JEllipsis-TuDc52fh.js";import"./JUpload-DSWoDwh2.js";import"./index-B4vNk56t.js";import"./index-Dc7Jr5-j.js";import"./index-Dm1rPBfc.js";import"./index-BN26Feep.js";import"./useForm-DfoT2G6J.js";import"./JAreaLinkage-CTMEfTuh.js";import"./JCodeEditor-U9QIstNN.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./EasyCronInput-CZdChTcP.js";import"./injectionKey-DPVn4AgL.js";const U=()=>j.get({url:"/error"}),z={class:"p-4"},J=["src"],Zr=C({__name:"index",setup(b){const n=L(),t=L([]),{t:e}=K(),m=F(),[u,{setTableData:f}]=B({title:e("sys.errorLog.tableTitle"),columns:q(),actionColumn:{width:80,title:"Action",dataIndex:"action",slots:{customRender:"action"}}}),[s,{openModal:r}]=N();D(()=>m.getErrorLogInfoList,l=>{M(()=>{f(G(l))})},{immediate:!0});const{createMessage:p}=$();function w(l){n.value=l,r(!0)}function v(){throw new Error("fire vue error!")}function k(){t.value.push(`${new Date().getTime()}.png`)}function x(){return E(this,null,function*(){yield U()})}return(l,O)=>{const g=R("a-button");return d(),_("div",z,[(d(!0),_(T,null,A(t.value,c=>I((d(),_("img",{key:c,src:c},null,8,J)),[[S,!1]])),128)),i(V,{info:n.value,onRegister:o(s)},null,8,["info","onRegister"]),i(o(Q),{onRegister:o(u),class:"error-handle-table"},{toolbar:a(()=>[i(g,{onClick:v,type:"primary"},{default:a(()=>[y(h(o(e)("sys.errorLog.fireVueError")),1)]),_:1}),i(g,{onClick:k,type:"primary"},{default:a(()=>[y(h(o(e)("sys.errorLog.fireResourceError")),1)]),_:1}),i(g,{onClick:x,type:"primary"},{default:a(()=>[y(h(o(e)("sys.errorLog.fireAjaxError")),1)]),_:1})]),action:a(({record:c})=>[i(o(H),{actions:[{label:o(e)("sys.errorLog.tableActionDesc"),onClick:w.bind(null,c)}]},null,8,["actions"])]),_:1},8,["onRegister"])])}}});export{Zr as default};
