import{d as F,u as V,p as r,r as M,o as B,i as _,a as I,z as K,m as o,k as l,e as a,K as L,L as P,v as R,_ as A}from"./index-deffec86.js";import{I as $}from"./IndexPagePro-904e4e7b.js";import{_ as q}from"./index.vue_vue_type_script_setup_true_name_ProTable_lang-de39478e.js";import{_ as N}from"./index.vue_vue_type_script_setup_true_name_SearchForm_lang-692eb4fd.js";import{T as O}from"./index-0e777de8.js";import{u as U}from"./useTable-823c55eb.js";import{a as j}from"./operat-aafeedcb.js";import{g as H}from"./common-8a6acaa7.js";import"./sortable.esm-441d9e5f.js";const W=F({__name:"index",setup(E){const g=V(),f=r(!0),h=r([{prop:"keyword",search:{el:"input",placeholder:"\u8BF7\u8F93\u5165\u4E1A\u52A1\u5BF9\u8C61\u540D\u79F0"}},{label:"\u65F6\u95F4\u7B5B\u9009",prop:"times",search:{el:"date-picker",props:{type:"daterange",format:"YYYY/MM/DD",valueFormat:"YYYY-MM-DD"},placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4"}}]),y=M([{type:"index",label:"\u5E8F\u53F7",width:70},{prop:"c_time_str",label:"\u64CD\u4F5C\u65F6\u95F4"},{prop:"organ_unit_name",label:"\u64CD\u4F5C\u5355\u4F4D"},{prop:"operator",label:"\u64CD\u4F5C\u4EBA"},{prop:"handle",label:"\u64CD\u4F5C"},{prop:"type_str",label:"\u4E1A\u52A1\u7C7B\u578B"},{prop:"object_name",label:"\u4E1A\u52A1\u5BF9\u8C61"},{prop:"operation",label:"\u64CD\u4F5C",fixed:"right",width:150}]),C=e=>(e.times&&e.times.length&&(e.end_date=e.times[1],e.start_date=e.times[0],delete e.times),e),{tableData:b,pageable:n,searchParam:p,handleSizeChange:v,handleCurrentChange:x,getTableList:k,search:c,reset:w}=U(j,{},e=>e,C),z=r(null),S=e=>{p.value.company_area_id=e,c()},u=r([]),m=r([]),d=r(""),T=async()=>{var i;let e=await H({});u.value=e.data;let t=(i=e==null?void 0:e.data[0])==null?void 0:i.company_area_id;m.value=[t],d.value=String(t)},Y=async e=>{g.push({name:"matchActivityInquireHistoryRecord",query:{id:e.id}})};return B(async()=>{await T(),await k()}),(e,t)=>{const i=_("el-button"),D=_("el-pagination");return I(),K($,{filterWidth:280},{treeCard:o(()=>[l(O,{ref_key:"TreeFilterRef",ref:z,title:"\u533A\u57DF",data:a(u),defaultValue:a(d),expandKeys:a(m),onChange:S},null,8,["data","defaultValue","expandKeys"])]),searchForm:o(()=>[L(l(N,{"search-param":a(p),columns:a(h),search:a(c),reset:a(w)},null,8,["search-param","columns","search","reset"]),[[P,a(f)]])]),pagination:o(()=>[l(D,{"current-page":a(n).page,"onUpdate:currentPage":t[0]||(t[0]=s=>a(n).page=s),"page-size":a(n).size,"onUpdate:pageSize":t[1]||(t[1]=s=>a(n).size=s),"page-sizes":[10,20,50,100],background:"",layout:"total, sizes, prev, pager, next",total:a(n).count,onSizeChange:a(v),onCurrentChange:a(x)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])]),default:o(()=>[l(q,{columns:a(y),data:a(b)},{operation:o(s=>[l(i,{type:"primary",link:"",onClick:G=>Y(s.row)},{default:o(()=>t[2]||(t[2]=[R("\u67E5\u770B")])),_:2},1032,["onClick"])]),_:1},8,["columns","data"])]),_:1})}}});const ne=A(W,[["__scopeId","data-v-917473ae"]]);export{ne as default};
