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 v,s as C,c as T,J as D,am as R,E as A,aC as B,o as u,h as _,F as V,aF as I,w as S,x as j,p as s,k as o,y as n,z as y,t as b,j as F,l as M}from"./index.b56218e3.js";import N from"./DetailModal.f1867518.js";import{u as $,B as z}from"./useTable.04f0cb03.js";import{T as J}from"./useForm.f303dc30.js";import{b as q}from"./index.9755e7ea.js";import{u as G}from"./errorLog.ad8af7c9.js";import{getColumns as H}from"./data.02f95183.js";import"./index.0c9ae6b3.js";import"./get.38aee530.js";import"./index.f7854fa1.js";import"./Checkbox.43bd7deb.js";import"./index.0fbd073a.js";import"./index.184a4e5f.js";import"./index.a16f936c.js";import"./index.66e48ba2.js";import"./useSize.28a0d6e1.js";import"./eagerComputed.635e64cb.js";import"./onMountedOrActivated.0c0da89f.js";import"./useWindowSizeFn.f9d5ec9c.js";import"./useContentViewHeight.889f30a5.js";import"./ArrowLeftOutlined.beca8456.js";import"./transButton.405e50c4.js";import"./index.99b8df6b.js";import"./index.04f94c35.js";import"./index.8de1bb37.js";import"./index.12b269e9.js";import"./dateUtil.9fb6b0e3.js";import"./_baseMerge.0bfa0606.js";import"./_isIterateeCall.1e6ed12b.js";import"./_baseEach.7dd737b2.js";import"./index.1d137040.js";import"./sortable.esm.2632adaa.js";import"./RedoOutlined.771d23fd.js";import"./FullscreenOutlined.df04a8af.js";import"./index.ee596b95.js";import"./fromPairs.84aabb58.js";import"./CaretUpOutlined.95a93c7c.js";import"./scrollTo.94a35d9d.js";import"./index.f3cd09dd.js";import"./index.120725a3.js";import"./index.8f641cc1.js";import"./_baseIteratee.5bc6cd3b.js";import"./index.3bc5adfa.js";import"./useRefs.f74cd62f.js";import"./download.3f7475a2.js";import"./index.4d910db3.js";import"./uniqBy.27125bbb.js";import"./exceptionEnum.1496ab9e.js";const K={class:"p-4"},O=["src"],Gr=v({__name:"index",setup(h){const m=C(),t=C([]),{t:e}=T(),p=G(),[f,{setTableData:d}]=$({title:e("sys.errorLog.tableTitle"),columns:H(),actionColumn:{width:80,title:"Action",dataIndex:"action"}}),[i,{openModal:r}]=q();D(()=>p.getErrorLogInfoList,l=>{R(()=>{d(A(l))})},{immediate:!0});function a(l){m.value=l,r(!0)}function E(){throw new Error("fire vue error!")}function L(){t.value.push(`${new Date().getTime()}.png`)}function w(){return k(this,null,function*(){})}return(l,P)=>{const g=B("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(N,{info:m.value,onRegister:o(i)},null,8,["info","onRegister"]),s(o(z),{onRegister:o(f),class:"error-handle-table"},{toolbar:n(()=>[s(g,{onClick:E,type:"primary"},{default:n(()=>[y(b(o(e)("sys.errorLog.fireVueError")),1)]),_:1}),s(g,{onClick:L,type:"primary"},{default:n(()=>[y(b(o(e)("sys.errorLog.fireResourceError")),1)]),_:1}),s(g,{onClick:w,type:"primary"},{default:n(()=>[y(b(o(e)("sys.errorLog.fireAjaxError")),1)]),_:1})]),bodyCell:n(({column:c,record:x})=>[c.key==="action"?(u(),F(o(J),{key:0,actions:[{label:o(e)("sys.errorLog.tableActionDesc"),onClick:a.bind(null,x)}]},null,8,["actions"])):M("",!0)]),_:1},8,["onRegister"])])}}});export{Gr as default};
|