import{I as D,r as c,A as N,B as E,c as u,C as I,d as w,e as L,D as y,E as h,i as e,f as t,h as r,G as Q,l as v,m as K,v as j}from"./index-CTqCU8EY.js";function A(b){return D({url:"/djl-account/personnel/query/list",method:"get",params:b})}const F={class:"app-container"},J={__name:"index",setup(b){const{proxy:q}=j(),x=c([]),m=c(!0),C=c(!0),d=c(0),k=N({queryParams:{page:1,limit:10,query:"exact",vague:"",accurate:""},exactParams:{}}),{queryParams:l,exactParams:o}=E(k);function _(){m.value=!0,A(l.value).then(f=>{x.value=f.data,d.value=f.count,m.value=!1})}function i(){l.value.page=1,l.value.limit=10,l.value.accurate=JSON.stringify(o.value),_()}function P(){q.resetForm("queryRef"),o.value={},i()}return _(),(f,a)=>{const g=u("el-input"),p=u("el-form-item"),V=u("el-button"),U=u("el-form"),s=u("el-table-column"),B=u("el-table"),R=u("pagination"),S=I("loading");return w(),L("div",F,[y(t(U,{model:e(l),ref:"queryRef",inline:!0},{default:r(()=>[t(p,{label:"姓名",prop:"name"},{default:r(()=>[t(g,{modelValue:e(o).name,"onUpdate:modelValue":a[0]||(a[0]=n=>e(o).name=n),clearable:"",style:{width:"300px"},onKeyup:v(i,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),t(p,{label:"证件号码",prop:"id_no"},{default:r(()=>[t(g,{modelValue:e(o).id_no,"onUpdate:modelValue":a[1]||(a[1]=n=>e(o).id_no=n),clearable:"",style:{width:"300px"},onKeyup:v(i,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),t(p,{label:"账号",prop:"account"},{default:r(()=>[t(g,{modelValue:e(o).account,"onUpdate:modelValue":a[2]||(a[2]=n=>e(o).account=n),clearable:"",style:{width:"300px"},onKeyup:v(i,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),t(p,null,{default:r(()=>[t(V,{type:"primary",icon:"Search",onClick:i},{default:r(()=>[K("搜索")]),_:1}),t(V,{icon:"Refresh",onClick:P},{default:r(()=>[K("重置")]),_:1})]),_:1})]),_:1},8,["model"]),[[h,e(C)]]),y((w(),Q(B,{data:e(x)},{default:r(()=>[t(s,{label:"姓名",align:"center",prop:"name"}),t(s,{label:"证件号码",align:"left",prop:"id_no"}),t(s,{label:"账号",align:"left",prop:"account"}),t(s,{label:"创建时间",align:"left",prop:"create_time"}),t(s,{label:"更新时间",align:"left",prop:"update_time"})]),_:1},8,["data"])),[[S,e(m)]]),y(t(R,{total:e(d),page:e(l).page,"onUpdate:page":a[3]||(a[3]=n=>e(l).page=n),limit:e(l).limit,"onUpdate:limit":a[4]||(a[4]=n=>e(l).limit=n),onPagination:_},null,8,["total","page","limit"]),[[h,e(d)>0]])])}}};export{J as default};
