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-Cg3FU-dV.js";import{_ as j}from"./uni-search-bar.CR6HHo5B.js";import{_ as w,r as x}from"./formBox.DG2t3lA9.js";import{_ as b}from"./_plugin-vue_export-helper.BCo6x5W8.js";import"./uni-icons.D_sy4NxH.js";/* empty css                                                                  */import"./uni-dateformat.D7mTxFoD.js";import"./uni-row.DfI4R5V8.js";import"./uni-list.B5vvSfhy.js";import"./uni-badge.AEsViQRE.js";import"./index.Dozy1JgX.js";/* empty css                                                              */import"./index.BWMD6Xfl.js";import"./default-avatar.BAKNUlXW.js";/* empty css                                                              */import"./uni-datetime-picker.h8Ix41Za.js";import"./uni-datetime-picker.vue_vue_type_style_index_0_scoped_6f474695_lang.CEqmT57_.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};
