沙钢智慧能源系统前端代码
houzhongjian
2024-10-09 314507f8ddadd9c66e98d260c3b2a5dad1a04015
1
import{d as N,u as S,r as s,A as z,b as B,o as y,c as F,k as e,B as t,a,a2 as P,O as f,P as q,g as H,F as M,a7 as j,S as A,T as W,U as G,V as K,W as O,X as R,Y as X,Z}from"./index-BP6bNRoi.js";import{_ as E}from"./index.vue_vue_type_script_setup_true_lang-sJUY8qtC.js";import{_ as J}from"./ContentWrap.vue_vue_type_script_setup_true_lang-CR_2gECF.js";import{d as k}from"./formatTime-DwR9f7DP.js";import{j as L}from"./index-CMi8END7.js";import"./index-BZESAUPP.js";import"./el-card-bU92WWV4.js";const Q=N({name:"BpmTodoTask",__name:"index",setup($){const{push:x}=S(),i=s(!0),g=s(0),w=s([]),l=z({pageNo:1,pageSize:10,name:"",createTime:[]}),h=s(),p=async()=>{i.value=!0;try{const d=await L(l);w.value=d.list,g.value=d.total}finally{i.value=!1}},m=()=>{l.pageNo=1,p()},T=()=>{h.value.resetFields(),m()};return B(()=>{p()}),(d,o)=>{const U=j,c=A,V=W,_=G,u=K,D=O,b=J,n=R,Y=X,C=E,I=Z;return y(),F(M,null,[e(b,null,{default:t(()=>[e(D,{ref_key:"queryFormRef",ref:h,inline:!0,model:a(l),class:"-mb-15px","label-width":"68px"},{default:t(()=>[e(c,{label:"\u4EFB\u52A1\u540D\u79F0",prop:"name"},{default:t(()=>[e(U,{modelValue:a(l).name,"onUpdate:modelValue":o[0]||(o[0]=r=>a(l).name=r),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u540D\u79F0",onKeyup:P(m,["enter"])},null,8,["modelValue"])]),_:1}),e(c,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:t(()=>[e(V,{modelValue:a(l).createTime,"onUpdate:modelValue":o[1]||(o[1]=r=>a(l).createTime=r),"default-time":[new Date("1 00:00:00"),new Date("1 23:59:59")],class:"!w-240px","end-placeholder":"\u7ED3\u675F\u65E5\u671F","start-placeholder":"\u5F00\u59CB\u65E5\u671F",type:"daterange","value-format":"YYYY-MM-DD HH:mm:ss"},null,8,["modelValue","default-time"])]),_:1}),e(c,null,{default:t(()=>[e(u,{onClick:m},{default:t(()=>[e(_,{class:"mr-5px",icon:"ep:search"}),f(" \u641C\u7D22 ")]),_:1}),e(u,{onClick:T},{default:t(()=>[e(_,{class:"mr-5px",icon:"ep:refresh"}),f(" \u91CD\u7F6E ")]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(b,null,{default:t(()=>[q((y(),H(Y,{data:a(w)},{default:t(()=>[e(n,{align:"center",label:"\u6D41\u7A0B",prop:"processInstance.name",width:"180"}),e(n,{align:"center",label:"\u53D1\u8D77\u4EBA",prop:"processInstance.startUser.nickname",width:"100"}),e(n,{formatter:a(k),align:"center",label:"\u53D1\u8D77\u65F6\u95F4",prop:"createTime",width:"180"},null,8,["formatter"]),e(n,{align:"center",label:"\u5F53\u524D\u4EFB\u52A1",prop:"name",width:"180"}),e(n,{formatter:a(k),align:"center",label:"\u4EFB\u52A1\u65F6\u95F4",prop:"createTime",width:"180"},null,8,["formatter"]),e(n,{align:"center",label:"\u6D41\u7A0B\u7F16\u53F7",prop:"id","show-overflow-tooltip":!0}),e(n,{align:"center",label:"\u4EFB\u52A1\u7F16\u53F7",prop:"id","show-overflow-tooltip":!0}),e(n,{align:"center",label:"\u64CD\u4F5C",fixed:"right",width:"80"},{default:t(r=>[e(u,{link:"",type:"primary",onClick:ee=>{return v=r.row,void x({name:"BpmProcessInstanceDetail",query:{id:v.processInstance.id}});var v}},{default:t(()=>[f("\u529E\u7406")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[I,a(i)]]),e(C,{limit:a(l).pageSize,"onUpdate:limit":o[2]||(o[2]=r=>a(l).pageSize=r),page:a(l).pageNo,"onUpdate:page":o[3]||(o[3]=r=>a(l).pageNo=r),total:a(g),onPagination:p},null,8,["limit","page","total"])]),_:1})],64)}}});export{Q as default};