var V=(x,u,l)=>new Promise((v,m)=>{var d=n=>{try{r(l.next(n))}catch(s){m(s)}},b=n=>{try{r(l.throw(n))}catch(s){m(s)}},r=n=>n.done?v(n.value):Promise.resolve(n.value).then(d,b);r((l=l.apply(x,u)).next())});import{f as H,g as I}from"./index-2a45336b.js";import{u as K}from"./usePagination-7442a465.js";import O from"./PageHeader-3787e5ce.js";import{a as R,b as t,o as g,k as S,e,w as a,u as y,ae as T,c as C,i as U,K as D,G as L,E as $,F as P,D 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 A=["src"],ne=Object.assign({name:"listSearchProjects"},{__name:"index",setup(x){const{listData:u,paginationState:l,loading:v,showLoading:m,hideLoading:d,resetPagination:b,searchFormData:r}=K(),n=R([{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=(_,c)=>{l.current=_,l.pageSize=c,s()},s();function s(){return V(this,null,function*(){try{m();const{pageSize:_,current:c}=l,{code:p,data:i}=yield H.common.getPageList({pageSize:_,current:c}).catch(()=>{throw new Error});if(d(),I("http.code.success")===p){const{records:h,pagination:f}=i;u.value=h,l.total=f.total}}catch(_){d()}})}function B(){b(),s()}return(_,c)=>{const p=t("a-select"),i=t("a-col"),h=t("a-form-item"),f=t("a-row"),N=t("x-filter-item"),j=t("x-filter"),k=t("a-card"),z=t("a-avatar"),E=t("a-avatar-group"),F=t("a-card-meta"),W=t("a-list-item"),G=t("a-list");return g(),S(P,null,[e(O),e(k,{class:"mb-8-2"},{default:a(()=>[e(j,{modelValue:y(r),"onUpdate:modelValue":c[0]||(c[0]=o=>T(r)?r.value=o:null),"data-source":n.value,"label-width":100,onChange:B},{default:a(({record:o})=>[o.key==="other"?(g(),C(N,{key:0,label:o.label},{default:a(()=>[e(f,{gutter:40},{default:a(()=>[e(i,null,{default:a(()=>[e(p,{style:{minWidth:"100px"},placeholder:"不限"})]),_:1}),e(i,null,{default:a(()=>[e(h,{class:"mb-0",label:"好评度"},{default:a(()=>[e(p,{style:{minWidth:"100px"},placeholder:"不限"})]),_:1})]),_:1})]),_:1})]),_:2},1032,["label"])):U("",!0)]),_:1},8,["modelValue","data-source"])]),_:1}),e(G,{"data-source":y(u),grid:{gutter:16,md:2,lg:2,xl:3,xxl:4},loading:y(v),"item-layout":"vertical","row-key":"id"},{renderItem:a(({item:o})=>[e(W,{key:"item.title",class:"pa-0"},{default:a(()=>[e(k,{hoverable:""},{cover:a(()=>[D("img",{src:o.cover,alt:""},null,8,A)]),default:a(()=>[e(F,{title:o.title},{description:a(()=>[D("div",null,L(o.sentence),1),e(f,{style:{lineHeight:1},align:"middle",class:"mt-4-3",justify:"space-between",type:"flex"},{default:a(()=>[e(i,{class:"fs-12"},{default:a(()=>[$(L(o.datetime),1)]),_:2},1024),e(i,null,{default:a(()=>[e(E,null,{default:a(()=>[(g(!0),S(P,null,q(o.users,w=>(g(),C(z,{key:w.id,size:22,src:w.avatar},null,8,["src"]))),128))]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1032,["title"])]),_:2},1024)]),_:2},1024)]),_:1},8,["data-source","loading"])],64)}}});export{ne as default};
