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-C8M5cBeM.js";import{u as B}from"./index-LwlFn7Y4.js";import"./index-D2AmS0aU.js";import{h as j,by as F,K,a9 as N,u as $}from"./index-B_2CoVdl.js";import{getColumns as q}from"./data-DJlDVagM.js";import{h as G}from"./antd-vue-vendor-CDWW6V_M.js";import{Q as H}from"./componentMap-CzCGDP7x.js";import Q from"./BasicTable-Clbg3fHx.js";import"./index-CGfZ4X2A.js";import"./index-Dz2zbQB_.js";import"./index-exs4VcBw.js";import"./index-DAURrYyA.js";import"./index-ByLO0zSl.js";import"./useTimeout-CB9F1PLu.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./BasicModal-D3g2CFhF.js";import"./ModalHeader-C-C0dUi_.js";import"./useWindowSizeFn-C3WExEpc.js";import"./useFormItem-CWa0w7fA.js";import"./download-2tYEzlDW.js";import"./base64Conver-24EVOS6V.js";import"./index-Cgt544dC.js";import"./index-BZ9ST2iq.js";import"./useCountdown-ImUE7YaG.js";import"./useFormItemSingle-DM34aWgK.js";import"./JSelectUser-BQIJUcBR.js";import"./props-BCVPj-bG.js";import"./JSelectBiz-CJyWq5s2.js";import"./JAddInput-YFlAniYT.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./index-CkL00Q0a.js";import"./index-BKs2x_To.js";import"./bem-C6eT35UB.js";import"./props-BLY2qIO5.js";import"./useContextMenu-CSt5a1-F.js";import"./depart.api-0qTriT9h.js";import"./JDictSelectTag-CxpDdimB.js";import"./JSelectDept-wKz_Qtmc.js";import"./JPopup-BJBYqoWe.js";import"./JEllipsis-Cn7GCKHR.js";import"./JUpload-DzM-D4DX.js";import"./index-khU3p_On.js";import"./index-DPEnuI0R.js";import"./index-Cnb8BkwG.js";import"./index-ARbUvvsq.js";import"./useForm-CcjrODHR.js";import"./JAreaLinkage-CSgDAlrn.js";import"./JCodeEditor-esTLnfS3.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./EasyCronInput-DclSHT47.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};
