import{d as S,u as V,p as r,r as P,o as E,i as c,a as K,z as R,m as t,k as l,e,K as B,L as D,v as m,ay as I}from"./index-deffec86.js";import{I as L}from"./IndexPagePro-904e4e7b.js";import{_ as N}from"./index.vue_vue_type_script_setup_true_name_ProTable_lang-de39478e.js";import{_ as $}from"./index.vue_vue_type_script_setup_true_name_SearchForm_lang-692eb4fd.js";import{T as q}from"./index-0e777de8.js";import{u as U}from"./useTable-823c55eb.js";import{g as A}from"./operatManage-420d1c91.js";import"./sortable.esm-441d9e5f.js";const re=S({__name:"historyRecord",setup(H){const h=V(),b=r(!0),g=r([{prop:"username",search:{el:"input",placeholder:"\u8BF7\u8F93\u5165\u8D5B\u4E8B\u6D3B\u52A8\u540D\u79F0/\u7F16\u53F7\u8FDB\u884C\u641C\u7D22"}},{prop:"gender",enum:[{label:"\u7537",value:1}],search:{el:"select",placeholder:"\u8BF7\u9009\u62E9\u5BA1\u6838\u72B6\u6001"}},{prop:"gender",enum:[{label:"\u7537",value:1}],search:{el:"select",placeholder:"\u8BF7\u9009\u62E9\u8D5B\u4E8B\u6D3B\u52A8\u72B6\u6001"}},{prop:"gender",enum:[{label:"\u7537",value:1}],search:{el:"select",placeholder:"\u8BF7\u9009\u62E9\u4E3E\u529E\u65F6\u95F4"}},{prop:"gender",enum:[{label:"\u7537",value:1}],search:{el:"select",placeholder:"\u8BF7\u9009\u62E9\u8D5B\u4E8B\u4E3B\u9898\u6D3B\u52A8"}},{prop:"gender",enum:[{label:"\u7537",value:1}],search:{el:"select",placeholder:"\u8BF7\u9009\u62E9\u6D3B\u52A8\u9879\u76EE"}},{prop:"gender",enum:[{label:"\u7537",value:1}],search:{el:"select",placeholder:"\u8BF7\u9009\u62E9\u6D3B\u52A8\u7B49\u7EA7"}},{prop:"gender",enum:[{label:"\u7537",value:1}],search:{el:"select",placeholder:"\u662F\u5426\u793E\u533A\u8FD0\u52A8\u4F1A"}},{prop:"gender",enum:[{label:"\u7537",value:1}],search:{el:"select",placeholder:"\u8BF7\u9009\u62E9\u4EBA\u7FA4\u7C7B\u578B"}},{prop:"createTime",search:{el:"date-picker",span:1,props:{type:"year"},defaultValue:"",placeholder:"\u8BF7\u9009\u62E9\u4E3E\u529E\u5E74\u4EFD"}}]),f=P([{type:"selection",fixed:"left",width:70},{type:"index",label:"\u5E8F\u53F7",width:70,fixed:"left"},{prop:"username",label:"\u6E05\u5355\u5BF9\u8C61\u540D\u79F0",width:130,fixed:"left"},{prop:"gender",label:"\u8D5B\u4E8B\u5E74\u4EFD",sortable:!0,width:130},{prop:"user.detail.age",label:"\u9879\u76EE\u5206\u7C7B",sortable:!0,width:130},{prop:"idCard",label:"\u8D5B\u4E8B\u7B49\u7EA7",sortable:!0,width:130},{prop:"idCard",label:"\u4E3E\u529E\u5730\u5740",sortable:!0,width:130},{prop:"idCard",label:"\u9884\u8BA1\u4E3E\u529E\u65F6\u95F4",sortable:!0,width:130},{prop:"email",label:"\u9884\u8BA1\u4E3E\u529E\u573A\u6B21",sortable:!0,width:130},{prop:"email",label:"\u9884\u8BA1\u53C2\u4E0E\u4EBA",sortable:!0,width:150},{prop:"address",label:"\u521B\u5EFA\u5355\u4F4D",sortable:!0,width:150},{prop:"address",label:"\u521B\u5EFA\u65F6\u95F4",sortable:!0,width:150},{prop:"address",label:"\u4FEE\u6539\u4EBA",width:120},{prop:"status",label:"\u586B\u62A5\u5BA1\u6838\u72B6\u6001",tag:!0,isFilterEnum:!0,width:150,enum:[{label:"\u81EA\u52A8\u5BA1\u6838\u901A\u8FC7",value:"1",tagType:"success"},{label:"\u4EBA\u5DE5\u5BA1\u6838\u901A\u8FC7",value:"2"}]},{prop:"status",label:"\u8D5B\u4E8B\u72B6\u6001",tag:!0,isFilterEnum:!0,width:150,enum:[{label:"\u8BA1\u5212\u4E2D",value:"1",tagType:"success"},{label:"\u5DF2\u7ED3\u675F",value:"2"}]},{prop:"operation",label:"\u64CD\u4F5C",fixed:"right",width:330}]),{tableData:p,pageable:o,baseParam:M,searchParam:i,handleSizeChange:y,handleCurrentChange:v,getTableList:O,search:u,reset:w,renderEmpty:W,loading:j}=U(A),C=r(null),_=n=>{i.value.company_area_id=n,u()},x=r([]),z=r([]),T=r(""),k=async(n,a)=>{h.push({name:"matchActivityInquireEdit",query:{type:2}})};return E(async()=>{p.value.push({email:"3123123",username:"31231",gender:1,status:1})}),(n,a)=>{const d=c("el-button"),F=c("el-pagination");return K(),R(L,{filterWidth:280},{treeCard:t(()=>[l(q,{ref_key:"TreeFilterRef",ref:C,title:"\u533A\u57DF",data:e(x),defaultValue:e(T),expandKeys:e(z),onChange:_},null,8,["data","defaultValue","expandKeys"])]),searchForm:t(()=>[B(l($,{"search-param":e(i),columns:e(g),search:e(u),reset:e(w)},null,8,["search-param","columns","search","reset"]),[[D,e(b)]])]),pagination:t(()=>[l(F,{"current-page":e(o).page,"onUpdate:currentPage":a[0]||(a[0]=s=>e(o).page=s),"page-size":e(o).size,"onUpdate:pageSize":a[1]||(a[1]=s=>e(o).size=s),"page-sizes":[10,20,50,100],background:"",layout:"total, sizes, prev, pager, next",total:e(o).count,onSizeChange:e(y),onCurrentChange:e(v)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])]),default:t(()=>[l(N,{columns:e(f),data:e(p)},{tableHeader:t(()=>a[2]||(a[2]=[])),toolButton:t(()=>[l(d,{type:"primary"},{default:t(()=>a[3]||(a[3]=[m("\u5BFC\u51FA")])),_:1})]),operation:t(s=>[l(d,{type:"primary",link:"",icon:e(I),onClick:G=>k(s.row,1)},{default:t(()=>a[4]||(a[4]=[m("\u67E5\u770B")])),_:2},1032,["icon","onClick"])]),_:1},8,["columns","data"])]),_:1})}}});export{re as default};
