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-1ab_ehIG.js";import{u as B}from"./index-BN5Ac_IG.js";import"./index-CF_FJn6P.js";import{h as j,by as F,K,a9 as N,u as $}from"./index-CYriLmQo.js";import{getColumns as q}from"./data-Nj28KNaR.js";import{h as G}from"./antd-vue-vendor-CDWW6V_M.js";import{Q as H}from"./componentMap-7D1QIeNI.js";import Q from"./BasicTable-DAfCfXmD.js";import"./index-CeuZFN4z.js";import"./index-BRTtls-l.js";import"./index-DOuVMe-q.js";import"./index-CxQILSKV.js";import"./index-ByLO0zSl.js";import"./useTimeout-DC8132dd.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./BasicModal-BBgVjypv.js";import"./ModalHeader-jGKMr-DQ.js";import"./useWindowSizeFn-BxrEMPtP.js";import"./useFormItem-CWa0w7fA.js";import"./download-CkbK5et1.js";import"./base64Conver-24EVOS6V.js";import"./index-QMJkXEyl.js";import"./index-Bb_NRLur.js";import"./useCountdown-C3-PRPLY.js";import"./useFormItemSingle-DM34aWgK.js";import"./JSelectUser-nVFm3ao2.js";import"./props-DoGpHXAD.js";import"./JSelectBiz-BW6f3e--.js";import"./JAddInput-CXT54-j9.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./index-BTSd5ebC.js";import"./index-BTAl55Kt.js";import"./bem-2ra1afoV.js";import"./props-BLY2qIO5.js";import"./useContextMenu-DYyhcDf7.js";import"./depart.api-C9T5xfw6.js";import"./JDictSelectTag-Jqy9TBcS.js";import"./JSelectDept-DorRVguN.js";import"./JPopup-KP1kIsae.js";import"./JEllipsis-287cEHxd.js";import"./JUpload-pyrTRFCz.js";import"./index-Bx9Mnn3N.js";import"./index-B1-pj6uh.js";import"./index-isxCPgHp.js";import"./index-BkgeZpOO.js";import"./useForm-8o5KRzWo.js";import"./JAreaLinkage-DFTeDmm8.js";import"./JCodeEditor-_KZ8XnNK.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./EasyCronInput-XK54XB3r.js";import"./injectionKey-DPVn4AgL.js";const U=()=>j.get({url:"/error"}),z={class:"p-4"},J=["src"],Yr=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{Yr as default};
