import{d as F,u as A,p as s,o as P,i as g,a as K,z as D,m as n,k as l,e,K as I,L,l as N,v as R}from"./index-deffec86.js";import{I as $}from"./IndexPagePro-904e4e7b.js";import{_ as M}from"./index.vue_vue_type_script_setup_true_name_ProTable_lang-de39478e.js";import{_ as U}from"./index.vue_vue_type_script_setup_true_name_SearchForm_lang-692eb4fd.js";import{T as E}from"./index-0e777de8.js";import{u as O}from"./useTable-823c55eb.js";import{d as W}from"./activity-c9a7a2d3.js";import{g as j}from"./common-8a6acaa7.js";import{u as q}from"./useMatchActivity-eaf6c5c6.js";import"./sortable.esm-441d9e5f.js";import"./tagManage-2aab0a1e.js";const le=F({__name:"index",setup(G){A();const f=s(!0),p=s([]),c=s([]),y=s(null),u=s(""),{columns:_,tableColumns:h,dataCallBack:C}=q([{prop:"sync_check_status",label:"\u5BA1\u6838\u72B6\u6001",tag:!0,isFilterEnum:!0,width:150,enum:[{label:"\u8349\u7A3F",value:"1",tagType:"info"},{label:"\u5BA1\u6838\u4E2D",value:"2",tagType:"warning"},{label:"\u4EBA\u5DE5\u5BA1\u6838\u901A\u8FC7",value:"3",tagType:"success"},{label:"\u9A73\u56DE",value:"4",tagType:"danger"},{label:"\u81EA\u52A8\u5BA1\u6838\u901A\u8FC7",value:"5",tagType:"success"}]}],!1,150),{tableData:v,pageable:o,baseParam:b,searchParam:m,handleSizeChange:T,handleCurrentChange:w,getTableList:z,search:d,reset:k,BaseCompanyAreaId:H}=O(W,{},C),x=t=>{m.value.company_area_id=t,d()},S=async()=>{var i;let t=await j({});p.value=t.data;let a=(i=t==null?void 0:t.data[0])==null?void 0:i.company_area_id;c.value=[a],u.value=String(a)},V=async t=>{};return P(async()=>{await S(),b.value.company_area_id=u.value,await z()}),(t,a)=>{const i=g("el-button"),B=g("el-pagination");return K(),D($,{filterWidth:280},{treeCard:n(()=>[l(E,{ref_key:"TreeFilterRef",ref:y,title:"\u533A\u57DF",data:e(p),defaultValue:e(u),expandKeys:e(c),onChange:x},null,8,["data","defaultValue","expandKeys"])]),searchForm:n(()=>[I(l(U,{"search-param":e(m),columns:e(_),search:e(d),reset:e(k)},null,8,["search-param","columns","search","reset"]),[[L,e(f)]])]),pagination:n(()=>[l(B,{"current-page":e(o).page,"onUpdate:currentPage":a[0]||(a[0]=r=>e(o).page=r),"page-size":e(o).size,"onUpdate:pageSize":a[1]||(a[1]=r=>e(o).size=r),"page-sizes":[10,20,50,100],background:"",layout:"total, sizes, prev, pager, next",total:e(o).count,onSizeChange:e(T),onCurrentChange:e(w)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])]),default:n(()=>[l(M,{columns:e(h),data:e(v)},{toolButton:n(()=>[N(' <el-button type="primary">\u5BFC\u51FA</el-button> ')]),operation:n(r=>[l(i,{type:"primary",link:"",onClick:J=>V(r.row)},{default:n(()=>a[2]||(a[2]=[R("\u67E5\u770B")])),_:2},1032,["onClick"])]),_:1},8,["columns","data"])]),_:1})}}});export{le as default};
