/
home
/
liman
/
app
/
assets
/
File Upload :
llllll
Current File: /home/liman/app/assets/index.6833b61c.js
import{_ as g}from"./NavBar.e217a6ba.js";import{_ as y,E as v}from"./Empty.1c233cb3.js";import{_ as h}from"./Document.f901396d.js";import{_ as k}from"./FloatButton.a0848ed9.js";import{u as B}from"./index.4d051b7a.js";import{g as C}from"./service.57397fa3.js";import{d as $,j as s,k as w,o as a,c as l,a as i,f as p,e as D,F as E,l as F,b8 as b,i as x}from"./index.5541076c.js";import{D as L}from"./index.e162958f.js";import"./Icon.6f016ce6.js";import"./index.266b896d.js";import"./TextArea.02d1bef3.js";import"./Col.1d4e5ac7.js";import"./FormItemContext.65bc1fa9.js";import"./baseColor.d55f65ad.js";import"./Tag.ec1339a0.js";/* empty css */import"./useDataTime.cef612c9.js";import"./_commonjsHelpers.468b0bfa.js";import"./documentType.4fefb1c5.js";import"./index.10b045cb.js";import"./Card.3573ab31.js";import"./useRefs.cd7577a9.js";const S={class:"p-4"},et=$({__name:"index",setup(A){const r=s(),n=s([]),d=b(),o={page:1,limit:10,filters:[{value:L.document,field:"type"},{value:d.state.id,field:"creator"}],sort:"-created_at"},m=s(!0);async function u(){var e;try{m.value=!0;const{data:t}=await C(o);r.value=t,n.value.push(...(e=r.value)==null?void 0:e.rows[0])}catch(t){console.log(t)}finally{m.value=!1}}function f(){x.push({name:"dashboard"})}return B(document.getElementById("app_element"),async()=>{var e;try{const t=Math.ceil(((e=r.value)==null?void 0:e.count)/o.limit);o.page<t&&(o.page++,await u())}catch(t){console.log(t)}},{distance:50}),w(async()=>{await u()}),(e,t)=>(a(),l("div",S,[i(g,{title:"\u0627\u0633\u0646\u0627\u062F",onOnBack:f}),i(y,{placeholder:"\u062C\u0633\u062A\u062C\u0648\u06CC \u0633\u0646\u062F"}),n.value.length===0?(a(),p(v,{key:0})):D("",!0),(a(!0),l(E,null,F(n.value,(c,_)=>(a(),p(h,{type:"info",class:"mb-3",doc:c,key:_},null,8,["doc"]))),128)),i(k,{onClick:t[0]||(t[0]=c=>e.$router.push({name:"documentAdd"}))})]))}});export{et as default};
Copyright ©2k19 -
Hexid
|
Tex7ure