import{d as r,h as C,l as n,U as v,o as d,a as x,x as o,y as p,w as F,b as B,B as S,_ as y}from"./index.d4dfe080.js";import{C as E}from"./api.ae51da8e.js";const z={class:"dialog-container"},A=r({name:"configDialog"}),k=r({...A,emits:["refresh"],setup(T,{expose:u,emit:I}){const a=C({tableData:{data:[],total:0,loading:!1,param:{pageIndex:1,pageSize:10}},configForm:{tenantEmployeeId:"",createdDate:""},dialog:{isShowDialog:!1,type:"",title:"",submitTxt:""}}),g=(l,e)=>{if(l==="edit"){let t=JSON.parse(JSON.stringify(e));console.log("rowobj",t),a.configForm=t,a.dialog.title="\u8BE6\u60C5",s()}else a.configForm=Object.assign({}),a.dialog.title="\u65B0\u589E",a.dialog.submitTxt="\u4FDD \u5B58",a.dialog.type="add";a.dialog.isShowDialog=!0},c=l=>{a.tableData.param.pageSize=l,s()},m=l=>{a.tableData.param.pageIndex=l,s()},s=()=>{a.tableData.loading=!0;let l=a.configForm;E().dispatchlogsyDetailApi(l).then(e=>{console.log("response\u67E5\u8BE211",e),console.log("response.data",e.data),e.status==200&&(a.tableData.data=e.data.data,a.tableData.total=e.data.totalCount)}),setTimeout(()=>{a.tableData.loading=!1},500)},b=()=>{a.dialog.isShowDialog=!1,S(()=>{})},_=()=>{b()};return u({openDialog:g}),(l,e)=>{const t=n("el-table-column"),w=n("el-table"),D=n("el-pagination"),f=n("el-dialog"),h=v("loading");return d(),x("div",z,[o(f,{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:p(()=>[F((d(),B(w,{data:a.tableData.data,style:{width:"100%"}},{default:p(()=>[o(t,{prop:"calledUserName",label:"\u88AB\u8C03\u5EA6\u6210\u5458",align:"center","show-overflow-tooltip":""}),o(t,{prop:"calledDeviceNo",label:"\u8D26\u53F7",align:"center","show-overflow-tooltip":""}),o(t,{prop:"beginTime",label:"\u88AB\u8C03\u5EA6\u5F00\u59CB\u65F6\u95F4","min-width":"110",align:"center","show-overflow-tooltip":""}),o(t,{prop:"endTime",label:"\u88AB\u8C03\u5EA6\u7ED3\u675F\u65F6\u95F4","min-width":"110",align:"center","show-overflow-tooltip":""}),o(t,{prop:"calledCompany",label:"\u6240\u5C5E\u516C\u53F8",align:"center","show-overflow-tooltip":""}),o(t,{prop:"dispatchTimeInMinutes",label:"\u88AB\u8C03\u5EA6\u65F6\u957F(\u5206\u949F)",align:"center","min-width":"100","show-overflow-tooltip":""}),o(t,{prop:"points",label:"\u6D88\u8017\u8054\u52A8\u503C",align:"center","show-overflow-tooltip":""})]),_:1},8,["data"])),[[h,a.tableData.loading]]),o(D,{onSizeChange:c,onCurrentChange:m,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 U=y(k,[["__scopeId","data-v-27344dd3"],["__file","/data/jenkins/workspace/badp-bcxin-web-5.x-dispatchBusiness/src/views/dispatchView/dispatchRecords/dialog.vue"]]);export{U as default};