import{h as e,_ as t,r as a,t as n,o as i,f as r,a as l,c as s,b as o,d,e as c,g as m,i as f,j as g,w as p,k as u,l as b}from"./index-DuyQv-rd.js";const v={class:"Largescreen"},y={style:{display:"flex","flex-direction":"column","align-items":"center","margin-top":"6%","padding-bottom":"10%",height:"70%","box-sizing":"border-box","border-radius":"2rem","background-color":"rgba(39, 136, 214, 0.5)","box-shadow":"0px 0px 1rem 0rem rgba(18, 150, 219, 0.5)"}},h={style:{display:"flex",width:"100%","justify-content":"center","flex-direction":"column","align-items":"center","text-align":"right","margin-top":"3rem"}},x={style:{color:"#fff","font-size":"5rem",display:"flex",width:"90%","justify-content":"space-between","align-items":"center","margin-top":"5rem"}},w={style:{color:"#fff"}},z={style:{"font-size":"4rem"}},j={style:{width:"90%","margin-top":"2rem"}},k={key:0},S={key:1},_={key:2},I={style:{position:"absolute",bottom:"4%",color:"#fff","font-weight":"bold","font-size":"3rem","margin-top":"2rem"}},B=t({__name:"Index",setup(t){const B=a([]),A=a(0),T=a(0),D=a({page:1,rows:20,order:"desc",sort:"",wheres:""}),E=n({selectType:"",inputcontent:""}),C=()=>{var t;(t={pageIndex:D.value.page,pageSize:D.value.rows,searchKeyword:E.value.inputcontent,status:E.value.selectType,account:"admin"},e.post("/api/Maintenance/PersonnelMonitoring",t)).then((e=>{B.value=e.data.items,A.value=e.data.totalCount,T.value=e.data.items.filter((e=>1==e.maintenanceStatus)).length}))},L=a(""),M=a(null);return i((async()=>{clearInterval(M.value),C();const e=new Date;M.value=setInterval((()=>{L.value=r(e),e.setSeconds(e.getSeconds()+1)}),1e3)})),l((()=>{clearInterval(M.value)})),(e,t)=>{const a=u("el-table-column"),n=u("el-table");return o(),s("div",v,[t[4]||(t[4]=d("div",{style:{display:"flex","justify-content":"center",color:"#fff","font-size":"15rem","letter-spacing":"5rem","font-weight":"bold"}}," 检13道 ",-1)),t[5]||(t[5]=d("div",{style:{display:"flex","flex-direction":"column","justify-content":"center","align-items":"center",color:"#fff","font-size":"3rem","margin-top":"3rem"}},[d("div",{style:{display:"flex","justify-content":"center","align-items":"center",width:"50%",height:"3rem","background-color":"#95f204","margin-top":"1rem","border-radius":"1.5rem"}})],-1)),t[6]||(t[6]=d("div",{style:{display:"flex","flex-direction":"column","justify-content":"center","align-items":"center",height:"20rem",color:"#fff","font-weight":"bold","margin-top":"5rem","font-size":"10rem"}},[d("span",null," CR400AF"),d("span",null,"G7237")],-1)),d("div",y,[d("div",h,[t[3]||(t[3]=c('<div style="display:flex;flex-direction:column;width:100%;" data-v-6b29273b><div style="height:5rem;font-size:6rem;font-weight:bold;display:flex;align-items:center;padding-left:2rem;box-sizing:border-box;" data-v-6b29273b><img style="width:6rem;height:6rem;" src="/assets/%E4%B8%8B%E4%B8%80%E4%B8%AA-BzcQa67L.png" alt="" data-v-6b29273b><div style="width:30%;text-align:justify;text-justify:distribute-all-lines;text-align-last:justify;margin-left:2rem;color:#fff;" data-v-6b29273b> 登顶人数 </div></div><div style="margin-left:2rem;display:flex;justify-content:space-around;align-items:center;margin-top:5rem;" data-v-6b29273b><div style="width:40%;font-size:6rem;color:#fff;background-color:#058f66;border-radius:1.5rem;padding:0.5rem 1rem;text-align:center;" data-v-6b29273b> 已登记 <span data-v-6b29273b>2人</span></div><div style="width:40%;font-size:6rem;color:#fff;background-color:#d9001b;border-radius:1.5rem;padding:0.5rem 1rem;text-align:center;" data-v-6b29273b> 已登顶 <span data-v-6b29273b>2人</span></div></div></div>',1)),d("div",x,[t[2]||(t[2]=d("div",{style:{color:"#fff"}},"检修人员列表",-1)),d("div",w,[t[0]||(t[0]=m(" 正在检修人员数量: ")),d("span",z,f(T.value),1),t[1]||(t[1]=m("位 "))])]),d("div",j,[g(n,{"empty-text":"暂无数据",data:B.value,style:{width:"100%"},height:"600","header-cell-style":{height:"1.61rem",color:"#fff",background:"#1860A8",fontSize:"2rem"},"cell-style":{color:"#fff",background:"rgba(23, 87, 149, 0.9)"}},{default:p((()=>[g(a,{prop:"userTrueName",label:"序号",align:"center","min-width":"1%"}),g(a,{prop:"userTrueName",label:"姓名",align:"center","min-width":"1%"}),g(a,{prop:"userteam",label:"单位",align:"center","min-width":"1%"}),g(a,{prop:"userteam",label:"班组","min-width":"1%"}),g(a,{prop:"maintenanceStatus",label:"检修状态",align:"center","min-width":"1%"},{default:p((e=>[0===e.row.maintenanceStatus?(o(),s("span",k,"未开始")):1===e.row.maintenanceStatus?(o(),s("span",S,"进行中")):2===e.row.maintenanceStatus?(o(),s("span",_,"已结束")):b("",!0)])),_:1}),g(a,{prop:"maintenanceDate",label:"日期",align:"center","min-width":"2%"}),g(a,{prop:"maintenanceDate",label:"上线时间",align:"center","min-width":"2%"})])),_:1},8,["data"])]),d("div",I,f(L.value),1)])])])}}},[["__scopeId","data-v-6b29273b"]]);export{B as default};
