import{G as me,$ as p,a0 as c,a3 as be,a as ye,d as ve,ag as O,as as _e,at as Ce,e as v,o as _,c as D,g as n,a5 as ge,S as A,w as i,h as e,f as R,m as d,R as we,z as I,D as B,K as he,A as Y,L as N,i as E,a6 as ke,t as Oe}from"./index-9b4667b6.js";import{c as C,e as xe,f as Pe,h as De}from"./public_officials-50e27c83.js";import{u as Re}from"./useAvueTable-780cbd26.js";import"./trading_partner-798a55a7.js";const Ee={class:"pl16px pr16px"},Te={class:"flex-items-center"},Fe={key:0,class:"ml12px"},Le=me({name:"publicOfficials"}),Ie=Object.assign(Le,{props:{options:{type:Object,default:()=>({})}},setup(U){const j=U,M=p(()=>c(()=>import("./index-6643d5a2.js"),["static/js/index-6643d5a2.js","static/js/index-9b4667b6.js","static/css/index-03655e05.css","static/js/bank_statement-2db2088f.js","static/js/useAvueTable-780cbd26.js","static/js/trading_partner-798a55a7.js","static/css/index-36cb5856.css"])),z=p(()=>c(()=>import("./index-dbf76ade.js"),["static/js/index-dbf76ade.js","static/js/index-9b4667b6.js","static/css/index-03655e05.css","static/js/useAvueTable-780cbd26.js","static/js/trading_partner-798a55a7.js","static/css/index-aa6040b0.css"])),H=p(()=>c(()=>import("./index-28c0ae8e.js"),["static/js/index-28c0ae8e.js","static/js/index-9b4667b6.js","static/css/index-03655e05.css","static/js/analysis_results-1bd8be45.js"])),q=p(()=>c(()=>import("./index-c5f229ee.js"),["static/js/index-c5f229ee.js","static/js/index-9b4667b6.js","static/css/index-03655e05.css","static/js/useAvueTable-780cbd26.js","static/js/trading_partner-798a55a7.js"])),K=p(()=>c(()=>import("./index-0dd60ca2.js"),["static/js/index-0dd60ca2.js","static/js/index-9b4667b6.js","static/css/index-03655e05.css"])),Q=p(()=>c(()=>import("./index-d01c7006.js"),["static/js/index-d01c7006.js","static/js/index-9b4667b6.js","static/css/index-03655e05.css","static/css/index-97466c05.css"])),u=be(),f=ye(),{sideTheme:x,crud:g,loading:W,option:m,dataList:P,selectionList:b,currentParams:y,pages:w,dialogFileVisible:h,dialogVisible:k,resetPage:T,getFilterParams:F,loadData:G,sortChange:J,getRowStyle:X,getCellStyle:Z,handleRevoke:ee,handleDelete:te,handleCellDbClick:le,closeCellEdit:ae,saveCellEdit:oe,filterTags:L,delFilterTags:ne,resetFilter:ie,changePage:se}=Re(),{proxy:re}=Oe(),o=async(a={})=>{if(f.path==="/searchCenter/data-query-center"){if(Object.keys(u.dataQueryCenterForm).length===0)return P.value=[];a=u.dataQueryCenterForm}f.path==="/analysisCenter/analysis_result_details"&&(a=u.analysisResultParams);const l=F(a);G(l,Pe)};y.value={row:{},title:"\u7F16\u8F91\u804C\u5DE5\u4EBA\u5458\u4FE1\u606F",fn:C};const ue=a=>{y.value={...y.value,row:a},delete y.value.row.ids,k.value=!0},S=()=>{ee({batch:De,unBatch:C,cb:o})},V=()=>{var a,l;re.download("/dc/publicOfficial/export",{caseId:(a=u.currentCase)==null?void 0:a.id,ids:b.value.length?b.value.map(s=>s.id):[],...u.analysisResultParams,...F()},`${(l=u.currentCase)==null?void 0:l.name}\u6848\u4EF6\u804C\u5DE5\u4EBA\u5458\u6C47\u603B\u8868_${ke()}.xlsx`)};return ve(()=>{["/searchCenter/data-query-center","/analysisCenter/analysis_result_details"].includes(f.path)&&(O.on("loadTableData",a=>{const{currentComponent:l,count:s}=a;if(l==="publicOfficial"){if(s===0)return P.value=[];o()}}),O.on("revoke",a=>{a==="publicOfficial"&&S()}),O.on("handleExport",a=>{a==="publicOfficial"&&V()}),O.on("clearSelection",a=>{a==="publicOfficial"&&g.value.clearSelection()}))}),m.value={...m.value,menuWidth:100,selection:!0,...j.options,databaseTable:"dc_public_official",column:[{label:"\u516C\u53F8",prop:"company",width:160,fieldsCount:!0},{label:"\u90E8\u95E8\u53CA\u804C\u52A1",prop:"deptPost",width:120},{label:"\u59D3\u540D",prop:"name",width:80,fieldsCount:!0},{label:"\u8EAB\u4EFD\u8BC1\u53F7",prop:"idCard",sortable:"custom",width:_e()===125?160:200,fieldsCount:!0},{label:"\u6027\u522B",prop:"gender",type:"select",filterOptions:[{label:"\u7537",value:"\u7537"},{label:"\u5973",value:"\u5973"}],width:70},{label:"\u6C11\u65CF",prop:"nation",type:"select-v2",filterOptions:Ce(),width:100},{label:"\u7C4D\u8D2F",prop:"nativePlace",width:150,fieldsCount:!0},{label:"\u51FA\u751F\u5E74\u6708",prop:"birthday",type:"month_range",width:100},{label:"\u6587\u5316\u7A0B\u5EA6",prop:"educationLevel",width:100},{label:"\u6BD5\u4E1A\u9662\u6821\u53CA\u4E13\u4E1A",prop:"school",width:140},{label:"\u5DE5\u4F5C\u65F6\u95F4",prop:"wordDate",type:"date_range",width:100,formOptions:{type:"date",valueFormat:"YYYY-MM-DD"}},{label:"\u8FDB\u5165\u516C\u53F8\u5DE5\u4F5C/\u7B7E\u8BA2\u52B3\u52A8\u5408\u540C\u65F6\u95F4",prop:"contractDate",type:"date_range",width:140,formOptions:{type:"date",valueFormat:"YYYY-MM-DD"}},{label:"\u804C\u79F0/\u6280\u672F\u7B49\u7EA7",prop:"title",width:140},{label:"\u7535\u8BDD\u53F7\u7801",prop:"phone",width:120,fieldsCount:!0},{label:"\u5907\u6CE8",prop:"remark",formOptions:{type:"textarea"},cell:!0,fieldsCount:!0}]},(a,l)=>{var $;const s=v("el-button"),de=v("el-tag"),pe=v("filterHeader"),ce=v("el-link"),fe=v("avue-crud");return _(),D("div",Ee,[n(fe,{class:N({"crud-dark":e(x)}),ref_key:"crud",ref:g,"table-loading":e(W),onOnLoad:l[5]||(l[5]=()=>o()),data:e(P),option:e(m),page:e(w),"onUpdate:page":l[6]||(l[6]=t=>E(w)?w.value=t:null),onSortChange:l[7]||(l[7]=t=>e(J)(t,o)),onSelectionChange:l[8]||(l[8]=t=>b.value=t),"row-style":({row:t})=>e(X)(t),"cell-style":({row:t,column:r})=>e(Z)(t,r),rowKey:t=>t.id,onCellDblclick:l[9]||(l[9]=(t,r)=>e(le)(t,r))},ge({"menu-left":i(({})=>[R("div",Te,[n(s,{type:"primary",onClick:l[0]||(l[0]=t=>h.value=!0)},{default:i(()=>[d("\u5BFC\u5165")]),_:1}),n(s,{type:"primary",onClick:V},{default:i(()=>[d("\u5BFC\u51FA")]),_:1}),n(e(z),{tableRef:e(g),list:e(b),options:{fn:e(C)},onResetSign:o,onHandleSign:o},null,8,["tableRef","list","options"]),n(s,{type:"primary",onClick:S},{default:i(()=>[d("\u64A4\u9500")]),_:1}),n(s,{type:"primary",onClick:l[1]||(l[1]=t=>e(te)({fn:e(xe),cb:o,delAllParams:{index:"dc_public_official"}}))},{default:i(()=>[d("\u5220\u9664")]),_:1}),e(L).length!==0?(_(),D("div",Fe,[n(s,{class:"cus-btn mr6px",onClick:l[2]||(l[2]=t=>e(ie)({cb:o}))},{default:i(()=>[d("\u91CD\u7F6E\u7B5B\u9009")]),_:1}),(_(!0),D(we,null,A(e(L),t=>(_(),I(de,{key:t.key,class:"mx-6px",closable:"",size:"large",effect:e(x)?"dark":"light",onClose:r=>e(ne)({tag:t,cb:o})},{default:i(()=>[d(B(t.label)+"\uFF1A",1),R("span",{style:he({color:e(x)?"#ffeb3b":"#ff5722"})},B(t.value),5)]),_:2},1032,["effect","onClose"]))),128))])):Y("",!0)])]),"remark-form":i(({row:t,disabled:r})=>[n(e(K),{row:t,options:{disabled:r,fn:e(C),cb:o,saveFn:e(oe),closeFn:e(ae)}},null,8,["row","options"])]),menu:i(({row:t})=>[n(ce,{type:"primary",onClick:r=>ue(t)},{default:i(()=>[d("\u7F16\u8F91")]),_:2},1032,["onClick"])]),footer:i(()=>[R("div",{class:N(["flex-items-center justify-between mt4px",{"justify-end!":e(f).path==="/analysisCenter/analysis_result_details"}])},[e(f).path!=="/analysisCenter/analysis_result_details"?(_(),I(e(H),{key:0,tableRef:e(g),list:e(b),options:{fn:e(C)}},null,8,["tableRef","list","options"])):Y("",!0),n(e(Q),{total:e(w).total,onChangePage:l[4]||(l[4]=t=>e(se)(t,o))},null,8,["total"])],2)]),_:2},[A(e(m).column,t=>({name:t.slotName,fn:i(()=>[n(pe,{column:t,onCallback:l[3]||(l[3]=r=>e(T)({cb:o}))},null,8,["column"])])}))]),1032,["class","table-loading","data","option","page","row-style","cell-style","rowKey"]),n(e(M),{visible:e(h),"onUpdate:visible":l[10]||(l[10]=t=>E(h)?h.value=t:null),ref:"uploadRef",action:"/dc/publicOfficial/import",accept:".xlsx,.xls,.csv",data:{caseId:($=e(u).currentCase)==null?void 0:$.id},downLoadTemplateParams:{path:"/dc/publicOfficial/export",downloadTemplate:1,name:"\u804C\u5DE5\u4EBA\u5458\u5BFC\u5165\u6A21\u677F"},onHandleFileSuccess:l[11]||(l[11]=t=>e(T)({cb:o}))},null,8,["visible","data"]),n(e(q),{visible:e(k),"onUpdate:visible":l[12]||(l[12]=t=>E(k)?k.value=t:null),dialogWidth:"51%",currentParams:e(y),column:e(m).column,onCallback:o},null,8,["visible","currentParams","column"])])}}});export{Ie as default};