import{C as h}from"./api.a76c2034.js";import{d as g,a as v,c as n,R as F,f as p,g as x,l as o,m as r,w as S,M as B,x as E}from"./index.3a30a18d.js";import{_ as y}from"./_plugin-vue_export-helper.cdc0426e.js";const z={class:"dialog-container"},A=g({name:"configDialog"}),T=g({...A,emits:["refresh"],setup(I,{expose:d,emit:k}){const a=v({tableData:{data:[],total:0,loading:!1,param:{pageIndex:1,pageSize:10}},configForm:{tenantEmployeeId:"",createdDate:""},dialog:{isShowDialog:!1,type:"",title:"",submitTxt:""}}),u=(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;h().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)},_=()=>{a.dialog.isShowDialog=!1,E(()=>{})},b=()=>{_()};return d({openDialog:u}),(l,e)=>{const t=n("el-table-column"),f=n("el-table"),D=n("el-pagination"),w=n("el-dialog"),C=F("loading");return p(),x("div",z,[o(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:b},{default:r(()=>[S((p(),B(f,{data:a.tableData.data,style:{width:"100%"}},{default:r(()=>[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"])),[[C,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 V=y(T,[["__scopeId","data-v-2e29555f"]]);export{V as default};
