2 lines
3.2 KiB
JavaScript
2 lines
3.2 KiB
JavaScript
var k=(h,m,t)=>new Promise((e,p)=>{var f=r=>{try{i(t.next(r))}catch(a){p(a)}},d=r=>{try{i(t.throw(r))}catch(a){p(a)}},i=r=>r.done?e(r.value):Promise.resolve(r.value).then(f,d);i((t=t.apply(h,m)).next())});import{a as x,v as L,c as T,L as D,ao as B,H as R,aE as A,o as u,h as _,F as V,aH as I,y as S,z as j,p as s,k as o,B as n,D as y,t as b,j as M,l as N}from"./index.ed5deffd.js";import F from"./DetailModal.87835769.js";import{u as H,B as $}from"./useTable.0fe7b343.js";import{T as z}from"./useForm.501f3f59.js";import{b as q}from"./index.5b432cd4.js";import{u as G}from"./errorLog.64fcb21a.js";import{getColumns as J}from"./data.7284d158.js";import"./index.4282967b.js";import"./get.b38b45ae.js";import"./index.57e79dcc.js";import"./Checkbox.0ade27c0.js";import"./index.dfe580e1.js";import"./index.271eb465.js";import"./index.0292c9d3.js";import"./index.78c12dec.js";import"./useSize.f4cf68f5.js";import"./eagerComputed.890ab31a.js";import"./onMountedOrActivated.9d9d02f7.js";import"./useWindowSizeFn.a262cec0.js";import"./useContentViewHeight.b8e37cbd.js";import"./ArrowLeftOutlined.9abfd432.js";import"./transButton.f4575a26.js";import"./index.d726974a.js";import"./index.8d83801a.js";import"./index.cf1b1f15.js";import"./index.afc21ce4.js";import"./dateUtil.91a9b59f.js";import"./_baseMerge.9fac86cf.js";import"./_isIterateeCall.779fe698.js";import"./_baseEach.aed94d5c.js";import"./index.cca952d1.js";import"./sortable.esm.2632adaa.js";import"./RedoOutlined.a1f78ebd.js";import"./FullscreenOutlined.a18420c1.js";import"./index.af1b13fa.js";import"./fromPairs.84aabb58.js";import"./CaretUpOutlined.51b9ef19.js";import"./scrollTo.707f46cf.js";import"./index.3b4e2932.js";import"./index.09a74575.js";import"./index.f6ae7164.js";import"./_baseIteratee.7c3a5712.js";import"./index.272fae53.js";import"./useRefs.045d664d.js";import"./download.b80ee91a.js";import"./index.c3b59272.js";import"./uniqBy.6fa12436.js";import"./exceptionEnum.1496ab9e.js";const K={class:"p-4"},O=["src"],Gr=x({__name:"index",setup(h){const m=L(),t=L([]),{t:e}=T(),p=G(),[f,{setTableData:d}]=H({title:e("sys.errorLog.tableTitle"),columns:J(),actionColumn:{width:80,title:"Action",dataIndex:"action"}}),[i,{openModal:r}]=q();D(()=>p.getErrorLogInfoList,l=>{B(()=>{d(R(l))})},{immediate:!0});function a(l){m.value=l,r(!0)}function C(){throw new Error("fire vue error!")}function E(){t.value.push(`${new Date().getTime()}.png`)}function v(){return k(this,null,function*(){})}return(l,P)=>{const g=A("a-button");return u(),_("div",K,[(u(!0),_(V,null,I(t.value,c=>S((u(),_("img",{key:c,src:c,alt:""},null,8,O)),[[j,!1]])),128)),s(F,{info:m.value,onRegister:o(i)},null,8,["info","onRegister"]),s(o($),{onRegister:o(f),class:"error-handle-table"},{toolbar:n(()=>[s(g,{onClick:C,type:"primary"},{default:n(()=>[y(b(o(e)("sys.errorLog.fireVueError")),1)]),_:1}),s(g,{onClick:E,type:"primary"},{default:n(()=>[y(b(o(e)("sys.errorLog.fireResourceError")),1)]),_:1}),s(g,{onClick:v,type:"primary"},{default:n(()=>[y(b(o(e)("sys.errorLog.fireAjaxError")),1)]),_:1})]),bodyCell:n(({column:c,record:w})=>[c.key==="action"?(u(),M(o(z),{key:0,actions:[{label:o(e)("sys.errorLog.tableActionDesc"),onClick:a.bind(null,w)}]},null,8,["actions"])):N("",!0)]),_:1},8,["onRegister"])])}}});export{Gr as default};
|