import{d as a,J as e,r,a4 as t,o as l,a as n,b as o,c as s,w as p,e as i,f as u,M as c,N as d,j as m}from"./index-d052b22f-1780912037814v=1.0.0.js";import{I as v}from"./IndexPagePro-44077094-1780912037814v=1.0.0.js";import{u as g,_ as h}from"./useTable-781919e2-1780912037814v=1.0.0.js";import{_}from"./index.vue_vue_type_script_setup_true_name_SearchForm_lang-9271318d-1780912037814v=1.0.0.js";import{T as y}from"./index-36f2bfb8-1780912037814v=1.0.0.js";import{a as b}from"./operat-2ad66163-1780912037814v=1.0.0.js";import{g as f}from"./common-0c693521-1780912037814v=1.0.0.js";import"./sortable.esm-6a31d29a-1780912037814v=1.0.0.js";const C=a({__name:"index",setup(a){const C=e(),x=r(!0),k=r([{prop:"keyword",search:{el:"input",placeholder:"请输入业务对象名称"}},{label:"时间筛选",prop:"time",search:{el:"date-picker",props:{type:"daterange",format:"YYYY/MM/DD",valueFormat:"x"},placeholder:"请选择时间"}}]),j=t([{type:"index",label:"序号",width:70},{prop:"c_time_str",label:"操作时间"},{prop:"organ_unit_name",label:"操作单位"},{prop:"operator",label:"操作人"},{prop:"handle",label:"操作"},{prop:"type_str",label:"业务类型"},{prop:"object_name",label:"业务对象"},{prop:"operation",label:"操作",fixed:"right",width:150}]),{tableData:w,pageable:z,searchParam:S,baseParam:P,handleSizeChange:D,handleCurrentChange:F,getTableList:M,search:T,reset:Y}=g(b),I=r(null),K=a=>{if(S.value.company_area_id!=a){switch(`${a}`.length){case 2:S.value.province=a,S.value.city="",S.value.county="";break;case 4:S.value.city=a,S.value.province="",S.value.county="";break;case 6:S.value.county=a,S.value.city="",S.value.province=""}S.value.company_area_id=a,T()}},L=r([]),U=r([]),V=r("");return l((async()=>{switch(await(async()=>{var a;let e=await f({});L.value=e.data;let r=null==(a=null==e?void 0:e.data[0])?void 0:a.company_area_id;U.value=[r],V.value=String(r)})(),P.value.company_area_id=V.value,`${V.value}`.length){case 2:P.value.province=V.value;break;case 4:P.value.city=V.value;break;case 6:S.value.county=V.value}await M()})),(a,e)=>{const r=n("el-button"),t=n("el-pagination");return o(),s(v,{filterWidth:280},{treeCard:p((()=>[i(y,{ref_key:"TreeFilterRef",ref:I,title:"区域",data:u(L),defaultValue:u(V),expandKeys:u(U),onChange:K},null,8,["data","defaultValue","expandKeys"])])),searchForm:p((()=>[c(i(_,{"search-param":u(S),columns:u(k),search:u(T),reset:u(Y)},null,8,["search-param","columns","search","reset"]),[[d,u(x)]])])),pagination:p((()=>[i(t,{"current-page":u(z).page,"onUpdate:currentPage":e[0]||(e[0]=a=>u(z).page=a),"page-size":u(z).size,"onUpdate:pageSize":e[1]||(e[1]=a=>u(z).size=a),"page-sizes":[10,20,50,100],background:"",layout:"total, sizes, prev, pager, next",total:u(z).count,onSizeChange:u(D),onCurrentChange:u(F)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])])),default:p((()=>[i(h,{columns:u(j),data:u(w)},{operation:p((a=>[i(r,{type:"primary",link:"",onClick:e=>(async a=>{C.push({name:"systemManageOperatLogDetail",query:{id:a.id}})})(a.row)},{default:p((()=>e[2]||(e[2]=[m("查看")]))),_:2},1032,["onClick"])])),_:1},8,["columns","data"])])),_:1})}}});export{C as default};
