import{C as h}from"./api.7608f319.js";import{d as g,a as v,c as n,Z as x,f as d,g as S,l,m as p,w as F,M as z,x as B}from"./index.2c7321ca.js";import{_ as y}from"./_plugin-vue_export-helper.cdc0426e.js";const E={class:"dialog-container"},A=g({name:"configDialog"}),T=g({...A,emits:["refresh"],setup(k,{expose:r,emit:I}){const a=v({tableData:{data:[],total:0,loading:!1,param:{pageIndex:1,pageSize:10}},configForm:{tenantEmployeeId:"",createdDate:""},dialog:{isShowDialog:!1,type:"",title:"",submitTxt:""}}),u=(t,e)=>{if(t==="edit"){let o=JSON.parse(JSON.stringify(e));console.log("rowobj",o),a.configForm=o,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=t=>{a.tableData.param.pageSize=t,s()},m=t=>{a.tableData.param.pageIndex=t,s()},s=()=>{a.tableData.loading=!0;let t=a.configForm;h().dispatchlogsyDetailApi(t).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,B(()=>{})},b=()=>{_()};return r({openDialog:u}),(t,e)=>{const o=n("el-table-column"),D=n("el-table"),f=n("el-pagination"),w=n("el-dialog"),C=x("loading");return d(),S("div",E,[l(w,{title:a.dialog.title,modelValue:a.dialog.isShowDialog,"onUpdate:modelValue":e[2]||(e[2]=i=>a.dialog.isShowDialog=i),width:"769px","close-on-click-modal":!1,draggable:"","destroy-on-close":"",onClose:b},{default:p(()=>[F((d(),z(D,{data:a.tableData.data,style:{width:"100%"}},{default:p(()=>[l(o,{prop:"calledUserName",label:"\u88AB\u8C03\u5EA6\u6210\u5458","show-overflow-tooltip":""}),l(o,{prop:"calledDeviceNo",label:"\u8D26\u53F7","show-overflow-tooltip":""}),l(o,{prop:"beginTime",label:"\u88AB\u8C03\u5EA6\u5F00\u59CB\u65F6\u95F4","show-overflow-tooltip":""}),l(o,{prop:"endTime",label:"\u88AB\u8C03\u5EA6\u7ED3\u675F\u65F6\u95F4","show-overflow-tooltip":""}),l(o,{prop:"points",label:"\u6D88\u8017\u8054\u52A8\u503C","show-overflow-tooltip":""})]),_:1},8,["data"])),[[C,a.tableData.loading]]),l(f,{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-b4cd8a27"]]);export{V as default};
