import{Q as e,_ as a,G as l,r as o,a as t,I as s,U as u,H as r,a2 as n,d as p,T as d,o as i,c as m,K as c,f as g,k as f,w as b,e as v,M as _,l as y,n as w,A as h,m as j,J as q,v as N}from"./index.e5c8b0d6.js";import{g as P}from"./job.fcbfb179.js";const S={class:"app-container"},z={key:0},k={key:1},x={class:"dialog-footer"},I=l({name:"JobLog"}),T=a(Object.assign(I,{setup(a){const{proxy:l}=N();l.useDict("sys_common_status","sys_job_group");const I=o([]),T=o(!1),G=o(!0);o(!0);const L=o([]),U=o(!0),V=o(0);o([]);const C=t(),J=s({form:{},queryParams:{pageNum:1,pageSize:17,dictName:void 0,dictType:void 0,status:void 0}});let M=o([]);const{queryParams:A,form:D,rules:H}=u(J);function K(){var a;G.value=!0,e({url:"equipment/findLog",method:"get",params:a}).then((e=>{G.value=!1,M.value=e.data,I.value=M.value.slice((J.queryParams.pageNum-1)*J.queryParams.pageSize,J.queryParams.pageNum*J.queryParams.pageSize),V.value=M.value.length}))}function O(e){L.value=e.map((e=>e.jobLogId)),U.value=!e.length}return r((()=>{document.querySelector(".mode").style.display="none",window.document.querySelector("#screenfull").style.display="none"})),n((()=>J.queryParams.pageNum),((e,a)=>{I.value=M.value.slice((J.queryParams.pageNum-1)*J.queryParams.pageSize,J.queryParams.pageNum*J.queryParams.pageSize)})),(()=>{const e=C.params&&C.params.jobId;void 0!==e&&0!=e?P(e).then((e=>{A.value.jobName=e.data.jobName,A.value.jobGroup=e.data.jobGroup,K()})):K()})(),K(),(e,a)=>{const l=p("el-table-column"),o=p("el-table"),t=p("pagination"),s=p("el-form-item"),u=p("el-col"),r=p("el-row"),n=p("el-form"),N=p("el-button"),P=p("el-dialog"),L=d("loading");return i(),m("div",S,[c((i(),f(o,{data:g(I),"header-row-class-name":"tabth",onSelectionChange:O},{default:b((()=>[v(l,{label:"数据名称",width:"180",align:"center",prop:"name"}),v(l,{label:"操作",align:"center",prop:"operate","show-overflow-tooltip":!0}),v(l,{label:"操作状态",align:"center",prop:"runningStatus","show-overflow-tooltip":!0}),v(l,{label:"开始时间",align:"center",prop:"startTime","show-overflow-tooltip":!0}),v(l,{label:"结束时间",align:"center",prop:"endTime","show-overflow-tooltip":!0}),v(l,{label:"存储路径",align:"center",prop:"cclj","show-overflow-tooltip":!0})])),_:1},8,["data"])),[[L,g(G)]]),c(v(t,{total:g(V),page:g(A).pageNum,"onUpdate:page":a[0]||(a[0]=e=>g(A).pageNum=e),limit:g(A).pageSize,"onUpdate:limit":a[1]||(a[1]=e=>g(A).pageSize=e)},null,8,["total","page","limit"]),[[_,g(V)>0]]),v(P,{title:"调度日志详细",modelValue:g(T),"onUpdate:modelValue":a[3]||(a[3]=e=>q(T)?T.value=e:null),width:"700px","append-to-body":""},{footer:b((()=>[y("div",x,[v(N,{onClick:a[2]||(a[2]=e=>T.value=!1)},{default:b((()=>[w("关 闭")])),_:1})])])),default:b((()=>[v(n,{model:g(D),"label-width":"100px"},{default:b((()=>[v(r,null,{default:b((()=>[v(u,{span:12},{default:b((()=>[v(s,{label:"日志序号:"},{default:b((()=>[w(h(g(D).jobLogId),1)])),_:1}),v(s,{label:"任务名称:"},{default:b((()=>[w(h(g(D).jobName),1)])),_:1})])),_:1}),v(u,{span:12},{default:b((()=>[v(s,{label:"任务分组:"},{default:b((()=>[w(h(g(D).jobGroup),1)])),_:1}),v(s,{label:"执行时间:"},{default:b((()=>[w(h(g(D).createTime),1)])),_:1})])),_:1}),v(u,{span:24},{default:b((()=>[v(s,{label:"调用方法:"},{default:b((()=>[w(h(g(D).invokeTarget),1)])),_:1})])),_:1}),v(u,{span:24},{default:b((()=>[v(s,{label:"日志信息:"},{default:b((()=>[w(h(g(D).jobMessage),1)])),_:1})])),_:1}),v(u,{span:24},{default:b((()=>[v(s,{label:"执行状态:"},{default:b((()=>[0==g(D).status?(i(),m("div",z,"正常")):1==g(D).status?(i(),m("div",k,"失败")):j("",!0)])),_:1})])),_:1}),v(u,{span:24},{default:b((()=>[1==g(D).status?(i(),f(s,{key:0,label:"异常信息:"},{default:b((()=>[w(h(g(D).exceptionInfo),1)])),_:1})):j("",!0)])),_:1})])),_:1})])),_:1},8,["model"])])),_:1},8,["modelValue"])])}}}),[["__scopeId","data-v-3cb27953"]]);export{T as default};