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-COB6GuWS.js";import{u as B}from"./index-KOQNKxnC.js";import"./index-XZKTTfG1.js";import{h as j,by as F,K,a9 as N,u as $}from"./index-CLZzJyTP.js";import{getColumns as q}from"./data-CqBQLKBI.js";import{h as G}from"./antd-vue-vendor-CahNzUUa.js";import{Q as H}from"./componentMap-DpsJvoqz.js";import Q from"./BasicTable-DUJWN3yz.js";import"./index-l25ixgFa.js";import"./index-DS3utcig.js";import"./index-BZbg0EjM.js";import"./index-DvqyyN77.js";import"./index-CrdW4fN1.js";import"./useTimeout-KpZCXEcl.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./BasicModal-B8XmAOm7.js";import"./ModalHeader-DIFQSP_0.js";import"./useWindowSizeFn-D9PllI8g.js";import"./useFormItem-IOFWTdED.js";import"./download-DopMSmFN.js";import"./base64Conver-24EVOS6V.js";import"./index-CDa2_aYE.js";import"./index-D0jTtUNS.js";import"./useCountdown-BpP55PQ2.js";import"./useFormItemSingle-BEyrYQqf.js";import"./JSelectUser-CfAGgHjD.js";import"./props-BtZrRNiI.js";import"./JSelectBiz-CLnJTMe2.js";import"./JAddInput-B36c3B5x.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./index-C7yPiS0L.js";import"./index-44tRnyoF.js";import"./bem-DT3DdmOs.js";import"./props-CG-jAkbI.js";import"./useContextMenu-BGU2vdqV.js";import"./depart.api-DHG2p2Yd.js";import"./JImageUpload-BFwNYdm5.js";import"./JDictSelectTag-CfF54ALX.js";import"./JSelectDept-CaEHrQp6.js";import"./JPopup-BvqhHpPl.js";import"./JEllipsis-C_gT_vEQ.js";import"./JUpload-DgDEmizw.js";import"./index-Bn2zmO2L.js";import"./index-CEznvAVZ.js";import"./index-CfAukas3.js";import"./index-ByX9XNkE.js";import"./useForm-Dx3lJ3DG.js";import"./JAreaLinkage-M9TGy8nY.js";import"./JCodeEditor-CR57XeIe.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./EasyCronInput-CWOTSpxK.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};
