import{d as p,c as x,h as F,l as n,U as B,o as d,a as y,x as l,y as r,w as S,b as u,u as E,K as z,B as A,_ as k}from"./index.4042ed24.js";import{C as T}from"./api.3ac03a55.js";const I={class:"dialog-container"},j=p({name:"configDialog"}),N=p({...j,emits:["refresh"],setup(V,{expose:g,emit:U}){const c=x(()=>!0),e=F({tableData:{data:[],total:0,loading:!1,param:{pageIndex:1,pageSize:10}},configForm:{tenantEmployeeId:"",createdDate:""},dialog:{isShowDialog:!1,type:"",title:"",submitTxt:""}}),m=(o,a)=>{if(o==="edit"){let t=JSON.parse(JSON.stringify(a));console.log("rowobj",t),e.configForm=t,e.dialog.title="\u8BE6\u60C5",s()}else e.configForm=Object.assign({}),e.dialog.title="\u65B0\u589E",e.dialog.submitTxt="\u4FDD \u5B58",e.dialog.type="add";e.dialog.isShowDialog=!0},b=o=>{e.tableData.param.pageSize=o,s()},_=o=>{e.tableData.param.pageIndex=o,s()},s=()=>{e.tableData.loading=!0;let o=e.configForm;T().dispatchlogsyDetailApi(o).then(a=>{console.log("response\u67E5\u8BE211",a),console.log("response.data",a.data),a.status==200&&(e.tableData.data=a.data.data,e.tableData.total=a.data.totalCount)}),setTimeout(()=>{e.tableData.loading=!1},500)},f=()=>{e.dialog.isShowDialog=!1,A(()=>{})},w=()=>{f()};return g({openDialog:m}),(o,a)=>{const t=n("el-table-column"),D=n("el-table"),h=n("el-pagination"),C=n("el-dialog"),v=B("loading");return d(),y("div",I,[l(C,{title:e.dialog.title,modelValue:e.dialog.isShowDialog,"onUpdate:modelValue":a[2]||(a[2]=i=>e.dialog.isShowDialog=i),width:"1000px","close-on-click-modal":!1,draggable:"","destroy-on-close":"",onClose:w},{default:r(()=>[S((d(),u(D,{data:e.tableData.data,style:{width:"100%"}},{default:r(()=>[l(t,{prop:"calledUserName",label:"\u88AB\u8C03\u5EA6\u6210\u5458",align:"center","show-overflow-tooltip":""}),l(t,{prop:"calledDeviceNo",label:"\u8D26\u53F7",align:"center","show-overflow-tooltip":""}),l(t,{prop:"beginTime",label:"\u88AB\u8C03\u5EA6\u5F00\u59CB\u65F6\u95F4","min-width":"110",align:"center","show-overflow-tooltip":""}),l(t,{prop:"endTime",label:"\u88AB\u8C03\u5EA6\u7ED3\u675F\u65F6\u95F4","min-width":"110",align:"center","show-overflow-tooltip":""}),l(t,{prop:"calledCompany",label:"\u6240\u5C5E\u516C\u53F8",align:"center","show-overflow-tooltip":""}),l(t,{prop:"dispatchTimeInMinutes",label:"\u88AB\u8C03\u5EA6\u65F6\u957F(\u5206\u949F)",align:"center","min-width":"100","show-overflow-tooltip":""}),E(c)?z("v-if",!0):(d(),u(t,{key:0,prop:"points",label:"\u6D88\u8017\u8054\u52A8\u503C",align:"center","show-overflow-tooltip":""}))]),_:1},8,["data"])),[[v,e.tableData.loading]]),l(h,{onSizeChange:b,onCurrentChange:_,class:"mt15","pager-count":5,"page-sizes":[10,20,30,100,200,300,1e3],"current-page":e.tableData.param.pageIndex,"onUpdate:current-page":a[0]||(a[0]=i=>e.tableData.param.pageIndex=i),background:"","page-size":e.tableData.param.pageSize,"onUpdate:page-size":a[1]||(a[1]=i=>e.tableData.param.pageSize=i),layout:"total, sizes, prev, pager, next, jumper",total:e.tableData.total},null,8,["current-page","page-size","total"])]),_:1},8,["title","modelValue"])])}}});const H=k(N,[["__scopeId","data-v-27344dd3"],["__file","/data/jenkins/workspace/badp-bcxin-web-5.x-dispatchBusiness/src/views/dispatchView/dispatchRecords/dialog.vue"]]);export{H as default};
