import{u as e,r as a,e as t,Q as s,a9 as i,p as r,aa as o,f as l,g as n,h as p,w as u,B as _,b7 as c,K as m,ah as d,x as h,z as f,o as y,i as v,_ as g}from"./index-WeUkftbp.js";import{_ as j}from"./uni-search-bar.BHGf4P5g.js";import{_ as w,r as x}from"./formBox.CPQxWc6b.js";import{_ as b}from"./_plugin-vue_export-helper.BCo6x5W8.js";import"./uni-icons.B3nCnuXe.js";/* empty css                                                                  */import"./uni-dateformat.CAFQ6hZt.js";import"./uni-row.DLutFlIQ.js";import"./uni-list.D2b1m_I0.js";import"./uni-badge.CLrZv6EZ.js";import"./index.D8Jasx-l.js";/* empty css                                                              */import"./index.d2K7R4mP.js";import"./default-avatar.BAKNUlXW.js";/* empty css                                                              */import"./uni-datetime-picker.QyfaTtNF.js";import"./uni-datetime-picker.vue_vue_type_style_index_0_scoped_6f474695_lang.DnlGrpUa.js";const C=b({__name:"search",setup(b){e((e=>({"4a43e886":z.value})));const C=a("暂无搜索的内容～");t([{type:1,icon:"icon-sousuo",types:"icon"}]);const D=t({selectType:"mine",where:{finish:"",type:0,types:"",name:"",time:"",user_id:"",page:1,limit:10},listData:[]}),F=a(!1);s((()=>{B()})),i((e=>{e.type&&(D.selectType=e.type)}));const T=()=>{D.where.name="",D.listData=[]},V=()=>{g()},I=()=>{D.where.name?K(!0):T()},k=_(),z=a(0),B=()=>{let e=r().in(k);e.select(".cr-position-header").fields({size:!0}),e.exec((e=>{z.value=e[0].height+"px"}))},K=(e=!1)=>{D.where.type="mine"===D.selectType?0:1,c(D.where).then((a=>{e&&(D.listData=[]),D.listData.push(...a.data.list);const t=Math.ceil(a.data.count/D.where.limit);D.listData.length<=0||D.where.page>=t?F.value=!1:F.value=!0,m()})).catch((e=>{d(),h.error(e.message)}))},M=e=>{D.where.types=e.status,D.where.time=e.time,D.where.user_id=e.approveId,D.where.page=1,K(!0)};return o((()=>{F.value&&(D.where.page++,K())})),(e,a)=>{const t=f,s=l(n("uni-search-bar"),j);return y(),p(t,{class:"content"},{default:u((()=>[v(t,{class:"cr-position-header"},{default:u((()=>[v(t,{class:"status_bar"}),v(t,{class:"default-search"},{default:u((()=>[v(s,{onConfirm:I,onFocus:I,focus:!0,bgColor:"#F0F1F5",modelValue:D.where.name,"onUpdate:modelValue":a[0]||(a[0]=e=>D.where.name=e),onClear:T,onCancel:V},null,8,["modelValue"])])),_:1}),v(t,{class:"bar-search"},{default:u((()=>[v(w,{type:D.selectType,onChange:M},null,8,["type"])])),_:1})])),_:1}),v(t,{class:"report-content m10"},{default:u((()=>[v(x,{"list-data":D.listData,"empty-title":C.value},null,8,["list-data","empty-title"])])),_:1})])),_:1})}}},[["__scopeId","data-v-9e62f4f9"]]);export{C as default};
