2024-07-26 14:12:27 +08:00
|
|
|
import{Q as R,_ as A,G as M,r,a as E,I as H,U as K,H as O,a2 as Q,d as u,T as $,o as g,c as j,K as x,f as a,k as P,w as t,e,M as F,l as W,n as d,A as p,m as k,J as X,v as Y}from"./index.064676a5.js";import{g as Z}from"./job.c9a07321.js";function ee(q){return R({url:"equipment/findLog",method:"get",params:q})}const ae={class:"app-container"},te={key:0},oe={key:1},le={class:"dialog-footer"},ne=M({name:"JobLog"}),se=Object.assign(ne,{setup(q){const{proxy:C}=Y();C.useDict("sys_common_status","sys_job_group");const y=r([]),b=r(!1),w=r(!0);r(!0);const I=r([]),L=r(!0),h=r(0);r([]);const S=E(),n=H({form:{},queryParams:{pageNum:1,pageSize:17,dictName:void 0,dictType:void 0,status:void 0}});let v=r([]);const{queryParams:c,form:l,rules:re}=K(n);O(()=>{document.querySelector(".mode").style.display="none",window.document.querySelector("#screenfull").style.display="none"}),Q(()=>n.queryParams.pageNum,(s,o)=>{y.value=v.value.slice((n.queryParams.pageNum-1)*n.queryParams.pageSize,n.queryParams.pageNum*n.queryParams.pageSize)});function N(){w.value=!0,ee().then(s=>{w.value=!1,v.value=s.data,y.value=v.value.slice((n.queryParams.pageNum-1)*n.queryParams.pageSize,n.queryParams.pageNum*n.queryParams.pageSize),h.value=v.value.length})}function V(s){I.value=s.map(o=>o.jobLogId),L.value=!s.length}return(()=>{const s=S.params&&S.params.jobId;s!==void 0&&s!=0?Z(s).then(o=>{c.value.jobName=o.data.jobName,c.value.jobGroup=o.data.jobGroup,N()}):N()})(),N(),(s,o)=>{const m=u("el-table-column"),z=u("el-table"),T=u("pagination"),i=u("el-form-item"),_=u("el-col"),U=u("el-row"),B=u("el-form"),D=u("el-button"),G=u("el-dialog"),J=$("loading");return g(),j("div",ae,[x((g(),P(z,{data:a(y),"header-row-class-name":"tabth",onSelectionChange:V},{default:t(()=>[e(m,{label:"\u6570\u636E\u540D\u79F0",width:"180",align:"center",prop:"name"}),e(m,{label:"\u64CD\u4F5C",align:"center",prop:"operate","show-overflow-tooltip":!0}),e(m,{label:"\u64CD\u4F5C\u72B6\u6001",align:"center",prop:"runningStatus","show-overflow-tooltip":!0}),e(m,{label:"\u5F00\u59CB\u65F6\u95F4",align:"center",prop:"startTime","show-overflow-tooltip":!0}),e(m,{label:"\u7ED3\u675F\u65F6\u95F4",align:"center",prop:"endTime","show-overflow-tooltip":!0}),e(m,{label:"\u5B58\u50A8\u8DEF\u5F84",align:"center",prop:"cclj","show-overflow-tooltip":!0})]),_:1},8,["data"])),[[J,a(w)]]),x(e(T,{total:a(h),page:a(c).pageNum,"onUpdate:page":o[0]||(o[0]=f=>a(c).pageNum=f),limit:a(c).pageSize,"onUpdate:limit":o[1]||(o[1]=f=>a(c).pageSize=f)},null,8,["total","page","limit"]),[[F,a(h)>0]]),e(G,{title:"\u8C03\u5EA6\u65E5\u5FD7\u8BE6\u7EC6",modelValue:a(b),"onUpdate:modelValue":o[3]||(o[3]=f=>X(b)?b.value=f:null),width:"700px","append-to-body":""},{footer:t(()=>[W("div",le,[e(D,{onClick:o[2]||(o[2]=f=>b.value=!1)},{default:t(()=>[d("\u5173 \u95ED")]),_:1})])]),default:t(()=>[e(B,{model:a(l),"label-width":"100px"},{default:t(()=>[e(U,null,{default:t(()=>[e(_,{span:12},{default:t(()=>[e(i,{label:"\u65E5\u5FD7\u5E8F\u53F7\uFF1A"},{default:t(()=>[d(p(a(l).jobLogId),1)]),_:1}),e(i,{label:"\u4EFB\u52A1\u540D\u79F0\uFF1A"},{default:t(()=>[d(p(a(l).jobName),1)]),_:1})]),_:1}),e(_,{span:12},{default:t(()=>[e(i,{label:"\u4EFB\u52A1\u5206\u7EC4\uFF1A"},{default:t(()=>[d(p(a(l).jobGroup),1)]),_:1}),e(i,{label:"\u6267\u884C\u65F6\u95F4\uFF1A"},{default:t(()=>[d(p(a(l).createTime),1)]),_:1})]),_:1}),e(_,{span:24},{default:t(()=>[e(i,{label:"\u8C03\u7528\u65B9\u6CD5\uFF1A"},{default:t(()=>[d(p(a(l).invokeTarget),1)]),_:1})]),_:1}),e(_,{span:24},{default:t(()=>[e(i,{label:"\u65E5\u5FD7\u4FE1\u606F\uFF1A"},{default:t(()=>[d(p(a(l).jobMessage),1)]),_:1})]),_:1}),e(_,{span:24},{default:t(()=>[e(i,{label:"\u6267\u884C\u72B6\u6001\uFF1A"},{default:t(()=>[a(l).status==0?(g(),j("div",te,"\u6B63\u5E38")):a(l).status==1?(g(),j("div",oe,"\u5931\u8D25")):k("",!0)]),_:1})]),_:1}),e(_,{span:24},{default:t(()=>[a(l).status==1?(g(),P(i,{key:0,label:"\u5F02\u5E38\u4FE1\u606F\uFF1A"},{default:t(()=>[d(p(a(l).exceptionInfo),1)]),_:1})):k("",!0)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])])}}}),de=A(se,[["__scopeId","data-v-3cb27953"]])
|