var S=(w,d,l)=>new Promise((v,m)=>{var p=o=>{try{s(l.next(o))}catch(c){m(c)}},b=o=>{try{s(l.throw(o))}catch(c){m(c)}},s=o=>o.done?v(o.value):Promise.resolve(o.value).then(p,b);s((l=l.apply(w,d)).next())});import{f as A,g as K}from"./index-2a45336b.js";import{u as W}from"./usePagination-7442a465.js";import j from"./PageHeader-3787e5ce.js";import{a as I,b as t,o as C,k as R,e,w as a,u as i,ae as T,c as U,i as $,a7 as q,aK as G,b1 as H,E as y,aw as J,F as M,K as Q}from"./ant-design-vue-710243d9.js";import"./tinymce-3184e0f1.js";import"./echarts-ca5d9323.js";import"./cropper-47c8e461.js";import"./lodash-es-7cb071db.js";import"./qrcode-bec2257a.js";import"./jschardet-bd496279.js";const X=Q("span",{class:"fs-14"},"万",-1),re=Object.assign({name:"listSearchApplications"},{__name:"index",setup(w){const{listData:d,paginationState:l,loading:v,showLoading:m,hideLoading:p,resetPagination:b,searchFormData:s}=W(),o=I([{key:"category",label:"所属类目",options:[{label:"全部",value:0},{label:"类目1",value:1},{label:"类目2",value:2},{label:"类目3",value:3},{label:"类目4",value:4},{label:"类目5",value:5},{label:"类目6",value:6},{label:"类目7",value:7},{label:"类目8",value:8}]},{key:"other",label:"作者"}]);l.onChange=(_,r)=>{l.current=_,l.pageSize=r,c()},c();function c(){return S(this,null,function*(){try{m();const{pageSize:_,current:r}=l,{code:f,data:u}=yield A.common.getPageList({pageSize:_,current:r}).catch(()=>{throw new Error});if(p(),K("http.code.success")===f){const{records:h,pagination:g}=u;d.value=h,l.total=g.total}}catch(_){p()}})}function E(){b(),c()}return(_,r)=>{const f=t("a-select"),u=t("a-col"),h=t("a-form-item"),g=t("a-row"),O=t("x-filter-item"),B=t("x-filter"),k=t("a-card"),D=t("a-avatar"),V=t("a-statistic"),L=t("a-card-meta"),x=t("a-menu-item"),N=t("a-menu"),P=t("a-dropdown"),z=t("a-list-item"),F=t("a-list");return C(),R(M,null,[e(j),e(k,{class:"mb-8-2"},{default:a(()=>[e(B,{modelValue:i(s),"onUpdate:modelValue":r[0]||(r[0]=n=>T(s)?s.value=n:null),"data-source":o.value,"label-width":100,onChange:E},{default:a(({record:n})=>[n.key==="other"?(C(),U(O,{key:0,label:n.label},{default:a(()=>[e(g,{gutter:40},{default:a(()=>[e(u,null,{default:a(()=>[e(f,{style:{minWidth:"100px"},placeholder:"不限"})]),_:1}),e(u,null,{default:a(()=>[e(h,{class:"mb-0",label:"好评度"},{default:a(()=>[e(f,{style:{minWidth:"100px"},placeholder:"不限"})]),_:1})]),_:1})]),_:1})]),_:2},1032,["label"])):$("",!0)]),_:1},8,["modelValue","data-source"])]),_:1}),e(F,{"data-source":i(d),grid:{gutter:16,md:2,lg:2,xl:3,xxl:4},loading:i(v),"item-layout":"vertical","row-key":"id"},{renderItem:a(({item:n})=>[e(z,{key:"item.title",class:"pa-0"},{default:a(()=>[e(k,{"body-style":{padding:"24px"},hoverable:""},{actions:a(()=>[e(i(q)),e(i(G)),e(i(H)),e(P,null,{overlay:a(()=>[e(N,null,{default:a(()=>[e(x,null,{default:a(()=>[y("1st menu item")]),_:1}),e(x,null,{default:a(()=>[y("2nd menu item")]),_:1}),e(x,null,{default:a(()=>[y("3d menu item")]),_:1})]),_:1})]),default:a(()=>[e(i(J))]),_:1})]),default:a(()=>[e(L,{title:n.title},{avatar:a(()=>[e(D,{size:24,src:n.avatar},null,8,["src"])]),description:a(()=>[e(g,{type:"flex"},{default:a(()=>[e(u,{flex:"1"},{default:a(()=>[e(V,{value:n.count1,title:"活跃用户"},{suffix:a(()=>[X]),_:2},1032,["value"])]),_:2},1024),e(u,{flex:"1"},{default:a(()=>[e(V,{value:n.count2,title:"新增用户"},null,8,["value"])]),_:2},1024)]),_:2},1024)]),_:2},1032,["title"])]),_:2},1024)]),_:2},1024)]),_:1},8,["data-source","loading"])],64)}}});export{re as default};
