import{d as g,h as C,l as s,U as h,o as p,a as y,x as l,y as d,w as x,b as v,p as z,q as B,B as F,_ as I}from"./index.4042ed24.js";import{C as E}from"./api.3ac03a55.js";const N={class:"dialog-container"},k=g({name:"configDialog"}),T=g({...k,emits:["refresh"],setup(j,{expose:u,emit:V}){const a=C({tableData:{data:[],total:0,loading:!1,param:{pageIndex:1,pageSize:10,employeeId:""}},propsParam:{},configForm:{employeeId:"",organizationId:""},dialog:{isShowDialog:!1,type:"",title:"",submitTxt:""}}),c=(o,e,t)=>{if(a.propsParam=t,o==="edit"){let n=JSON.parse(JSON.stringify(e));console.log("rowobj",n),a.configForm=n,a.dialog.title="\u7B7E\u5230/\u7B7E\u9000\u8BB0\u5F55\u660E\u7EC6",r()}else a.configForm=Object.assign({}),a.dialog.title="\u65B0\u589E",a.dialog.submitTxt="\u4FDD \u5B58",a.dialog.type="add";a.dialog.isShowDialog=!0},m=o=>{a.tableData.param.pageSize=o,r()},b=o=>{a.tableData.param.pageIndex=o,r()},r=()=>{a.tableData.loading=!0;let o=a.tableData.param;o.employeeId=a.configForm.employeeId,a.propsParam.pageIndex=a.tableData.param.pageIndex,a.propsParam.pageSize=a.tableData.param.pageSize;let e=JSON.parse(JSON.stringify(a.propsParam));delete e.options,delete e.superviseDepartIdArr,delete e.createdStarEndDate,e.hasSecurityCertificateNo=e.hasSecurityCertificateNo===null||e.hasSecurityCertificateNo===""?null:e.hasSecurityCertificateNo,e.recordStatuses=e.recordStatuses?[e.recordStatuses]:[],e.organizationId=a.configForm.organizationId,e.deskTypes=["TemporarySecurity"],E().attendanceDetailApi(o,e).then(t=>{console.log("response\u67E5\u8BE211",t),console.log("response.data",t.data),t.status==200&&(a.tableData.data=t.data.data,a.tableData.total=t.data.totalCount)}),setTimeout(()=>{a.tableData.loading=!1},500)},D=()=>{a.dialog.isShowDialog=!1,F(()=>{})},_=()=>{D()};return u({openDialog:c}),(o,e)=>{const t=s("el-table-column"),n=s("el-table"),f=s("el-pagination"),w=s("el-dialog"),S=h("loading");return p(),y("div",N,[l(w,{title:a.dialog.title,modelValue:a.dialog.isShowDialog,"onUpdate:modelValue":e[2]||(e[2]=i=>a.dialog.isShowDialog=i),width:"1000px","close-on-click-modal":!1,draggable:"","destroy-on-close":"",onClose:_},{default:d(()=>[x((p(),v(n,{data:a.tableData.data,style:{width:"100%"}},{default:d(()=>[l(t,{label:"\u5E8F\u53F7",width:"60"},{default:d(i=>[z(B(i.$index+1+(a.tableData.param.pageIndex-1)*a.tableData.param.pageSize),1)]),_:1}),l(t,{prop:"status",label:"\u64CD\u4F5C\u7C7B\u578B",align:"center","show-overflow-tooltip":""}),l(t,{prop:"createdTime",label:"\u64CD\u4F5C\u65F6\u95F4",align:"center","show-overflow-tooltip":""}),l(t,{prop:"address",label:"\u64CD\u4F5C\u5730\u5740","min-width":"110",align:"center","show-overflow-tooltip":""}),l(t,{prop:"securityStationName",label:"\u6240\u5C5E\u4E34\u4FDD\u5C97\u70B9","min-width":"110",align:"center","show-overflow-tooltip":""}),l(t,{prop:"securityStationAddress",label:"\u4E34\u4FDD\u5C97\u70B9\u5730\u5740",align:"center","min-width":"100","show-overflow-tooltip":""})]),_:1},8,["data"])),[[S,a.tableData.loading]]),l(f,{onSizeChange:m,onCurrentChange:b,class:"mt15","pager-count":5,"page-sizes":[10,20,30,100,200,300,1e3],"current-page":a.tableData.param.pageIndex,"onUpdate:current-page":e[0]||(e[0]=i=>a.tableData.param.pageIndex=i),background:"","page-size":a.tableData.param.pageSize,"onUpdate:page-size":e[1]||(e[1]=i=>a.tableData.param.pageSize=i),layout:"total, sizes, prev, pager, next, jumper",total:a.tableData.total},null,8,["current-page","page-size","total"])]),_:1},8,["title","modelValue"])])}}});const A=I(T,[["__scopeId","data-v-db27b83a"],["__file","/data/jenkins/workspace/badp-bcxin-web-5.x-dispatchBusiness/src/views/dispatchView/signedManage/dialog.vue"]]);export{A as default};
