Agriculture-front-end/dist/assets/index.05995096.js
2023-11-08 11:15:41 +08:00

2 lines
4.0 KiB
JavaScript

import{L as J,_ as O,B as A,r,a as E,D as F,P as H,C as M,Y,d as u,O as $,o as g,c as N,G as x,f as a,j as P,w as t,e,H as K,k as Q,m as d,x as p,l as k,F as W,s as X}from"./index.4144b0df.js";import{g as Z}from"./job.924320e1.js";function ee(q){return J({url:"equipment/findLog",method:"get",params:q})}const ae={class:"app-container"},te={key:0},oe={key:1},le={class:"dialog-footer"},ne=A({name:"JobLog"}),se=Object.assign(ne,{setup(q){const{proxy:C}=X();C.useDict("sys_common_status","sys_job_group");const y=r([]),b=r(!1),w=r(!0);r(!0);const L=r([]),V=r(!0),h=r(0);r([]);const S=E(),n=F({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}=H(n);M(()=>{document.querySelector(".mode").style.display="none",window.document.querySelector("#screenfull").style.display="none"}),Y(()=>n.queryParams.pageNum,(s,o)=>{y.value=v.value.slice((n.queryParams.pageNum-1)*n.queryParams.pageSize,n.queryParams.pageNum*n.queryParams.pageSize)});function j(){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 z(s){L.value=s.map(o=>o.jobLogId),V.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,j()}):j()})(),j(),(s,o)=>{const m=u("el-table-column"),I=u("el-table"),T=u("pagination"),i=u("el-form-item"),_=u("el-col"),B=u("el-row"),D=u("el-form"),G=u("el-button"),U=u("el-dialog"),R=$("loading");return g(),N("div",ae,[x((g(),P(I,{data:a(y),"header-row-class-name":"tabth",onSelectionChange:z},{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"])),[[R,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"]),[[K,a(h)>0]]),e(U,{title:"\u8C03\u5EA6\u65E5\u5FD7\u8BE6\u7EC6",modelValue:a(b),"onUpdate:modelValue":o[3]||(o[3]=f=>W(b)?b.value=f:null),width:"700px","append-to-body":""},{footer:t(()=>[Q("div",le,[e(G,{onClick:o[2]||(o[2]=f=>b.value=!1)},{default:t(()=>[d("\u5173 \u95ED")]),_:1})])]),default:t(()=>[e(D,{model:a(l),"label-width":"100px"},{default:t(()=>[e(B,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(),N("div",te,"\u6B63\u5E38")):a(l).status==1?(g(),N("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=O(se,[["__scopeId","data-v-6aadf8c1"]]);export{de as default};