import{w as q}from"./index.269dc841.js";import{s as w}from"./index.ff1c8ac7.js";import{s as N}from"./searchContainer.cbb3a158.js";import{A as S}from"./achievementItem.c8efd556.js";import{_ as b,q as T,a as d,r as C,b as m,M as k,o as i,c as l,d as s,e as v,j as z,f as o,t as D,N as A,F as B,h as V,g as j,H as y}from"./index.699f1124.js";import"./index.c2385adf.js";import"./index.efab2b32.js";import"./wordcloud.d27a4ec3.js";const F={class:"index"},H={style:{flex:"1"}},I={style:{position:"relative"}},K={class:"total"},L=y(" \u5171\u627E\u5230 "),P=y(" \u4E2A\u6210\u679C "),Q={style:{border:"1px solid #dcdcdc","margin-bottom":"10px"}},R={class:"r"},U=T({name:"SearchAchievement"}),E=Object.assign(U,{setup(M){const n=d(!0),p=d([]),c=d(0),u=z(),e=C({pageNum:1,pageSize:5,searchType:2,queryType:u.query.queryType,query:u.query.keyword});function g(t){e.query=t.currentKeyword,e.queryType=t.queryType,_()}const _=async()=>{n.value=!0;try{const t=await w(e);p.value=t.list,c.value=t.total,n.value=!1}catch{n.value=!1}};return(t,r)=>{const f=m("pagination"),h=m("el-row"),x=k("loading");return i(),l("div",F,[s(N,{bannerKey:"\u9996\u9875>\u6210\u679C\u5E93>\u6210\u679C\u5217\u8868",title:"\u6210\u679C\u5E93",onHandleQuery:g},{default:v(()=>[s(h,{type:"flex",style:{padding:"20px 0"}},{default:v(()=>[o("div",H,[o("div",I,[o("div",K,[L,o("span",null,D(c.value),1),P]),A((i(),l("div",null,[(i(!0),l(B,null,V(p.value,a=>(i(),l("section",{key:a.id},[o("div",Q,[s(j(S),{data:a},null,8,["data"])])]))),128))])),[[x,n.value]]),s(f,{class:"pagination",total:c.value,pageSizes:[10,10<<1,10<<2,10<<3],page:e.pageNum,"onUpdate:page":r[0]||(r[0]=a=>e.pageNum=a),limit:e.pageSize,"onUpdate:limit":r[1]||(r[1]=a=>e.pageSize=a),autoScroll:!1,onPagination:_},null,8,["total","page","limit"])])]),o("div",R,[s(q)])]),_:1})]),_:1})])}}});var ee=b(E,[["__scopeId","data-v-e8ad6920"]]);export{ee as default};
