选煤厂安全管理系统前端代码
houzhongjian
2024-11-25 37b2044f04a09e89f82f8484279b5f06b7194481
1
import{d as I,u as O,a0 as Y,r as p,A as Z,b as E,aA as G,o as n,c as J,k as l,B as o,P as L,a,g as m,C as v,D as w,O as y,h as U,I as h,m as W,F as H,X as K,V as M,aD as Q,Y as R,Z as $}from"./index-CHTXMeh8.js";import{_ as ee}from"./Dialog.vue_vue_type_style_index_0_lang-DH0TiLYN.js";import{_ as ae}from"./ContentWrap.vue_vue_type_script_setup_true_lang-BjvrLlUT.js";import{_ as le}from"./index.vue_vue_type_script_setup_true_lang-Cenk7Bi3.js";import{d as oe}from"./formatTime-DG99nHw2.js";import{j as te}from"./bpmn-embedded-BQWcRx7_.js";import{g as re,a as ie}from"./index-BnVkKGRw.js";import{b as pe}from"./formCreate-Cdf7i8Tu.js";import"./el-card-Bdk9qx7q.js";import"./index-DVe591HI.js";import"./XTextButton-DNeufsj_.js";import"./XButton-C1WkVWZR.js";import"./index-CQckL2qL.js";import"./el-tree-select-DhIHMmfG.js";import"./tree-BBZY150N.js";import"./index-VglbY8ty.js";import"./index-BFn6KXm4.js";import"./index-63VBDaUm.js";import"./index-DYclHsjD.js";import"./index-eJzt9aew.js";import"./constants-CuOBQ73z.js";import"./index-BbWSenFL.js";import"./el-drawer-DCGXHIlf.js";import"./DictTag.vue_vue_type_script_lang-DPOZRs0A.js";import"./color-DXkOL5Tu.js";import"./index-CO7BRHFB.js";const ne=I({name:"BpmProcessDefinition",__name:"index",setup(me){const{push:D}=O(),{query:T}=Y(),g=p(!0),b=p(0),C=p([]),s=Z({pageNo:1,pageSize:10,key:T.key}),V=async()=>{g.value=!0;try{const r=await re(s);C.value=r.list,b.value=r.total}finally{g.value=!1}},d=p(!1),_=p({rule:[],option:{}}),x=async r=>{r.formType==10?(pe(_,r.formConf,r.formFields),d.value=!0):await D({path:r.formCustomCreatePath})},f=p(!1),u=p(null),P=p({prefix:"flowable"});return E(()=>{V()}),(r,t)=>{const i=K,k=M,c=Q,B=R,X=le,A=ae,F=G("form-create"),z=ee,j=$;return n(),J(H,null,[l(A,null,{default:o(()=>[L((n(),m(B,{data:a(C)},{default:o(()=>[l(i,{label:"\u5B9A\u4E49\u7F16\u53F7",align:"center",prop:"id",width:"400"}),l(i,{label:"\u6D41\u7A0B\u540D\u79F0",align:"center",prop:"name",width:"200"},{default:o(e=>[l(k,{type:"primary",link:"",onClick:N=>(async q=>{var S;u.value=(S=await ie(q.id))==null?void 0:S.bpmnXml,f.value=!0})(e.row)},{default:o(()=>[v("span",null,w(e.row.name),1)]),_:2},1032,["onClick"])]),_:1}),l(i,{label:"\u5B9A\u4E49\u5206\u7C7B",align:"center",prop:"categoryName",width:"100"}),l(i,{label:"\u8868\u5355\u4FE1\u606F",align:"center",prop:"formType",width:"200"},{default:o(e=>[e.row.formType===10?(n(),m(k,{key:0,type:"primary",link:"",onClick:N=>x(e.row)},{default:o(()=>[v("span",null,w(e.row.formName),1)]),_:2},1032,["onClick"])):(n(),m(k,{key:1,type:"primary",link:"",onClick:N=>x(e.row)},{default:o(()=>[v("span",null,w(e.row.formCustomCreatePath),1)]),_:2},1032,["onClick"]))]),_:1}),l(i,{label:"\u6D41\u7A0B\u7248\u672C",align:"center",prop:"processDefinition.version",width:"80"},{default:o(e=>[e.row?(n(),m(c,{key:0},{default:o(()=>[y("v"+w(e.row.version),1)]),_:2},1024)):(n(),m(c,{key:1,type:"warning"},{default:o(()=>[y("\u672A\u90E8\u7F72")]),_:1}))]),_:1}),l(i,{label:"\u72B6\u6001",align:"center",prop:"version",width:"80"},{default:o(e=>[e.row.suspensionState===1?(n(),m(c,{key:0,type:"success"},{default:o(()=>[y("\u6FC0\u6D3B")]),_:1})):U("",!0),e.row.suspensionState===2?(n(),m(c,{key:1,type:"warning"},{default:o(()=>[y("\u6302\u8D77")]),_:1})):U("",!0)]),_:1}),l(i,{label:"\u90E8\u7F72\u65F6\u95F4",align:"center",prop:"deploymentTime",width:"180",formatter:a(oe)},null,8,["formatter"]),l(i,{label:"\u5B9A\u4E49\u63CF\u8FF0",align:"center",prop:"description",width:"300","show-overflow-tooltip":""})]),_:1},8,["data"])),[[j,a(g)]]),l(X,{total:a(b),page:a(s).pageNo,"onUpdate:page":t[0]||(t[0]=e=>a(s).pageNo=e),limit:a(s).pageSize,"onUpdate:limit":t[1]||(t[1]=e=>a(s).pageSize=e),onPagination:V},null,8,["total","page","limit"])]),_:1}),l(z,{title:"\u8868\u5355\u8BE6\u60C5",modelValue:a(d),"onUpdate:modelValue":t[2]||(t[2]=e=>h(d)?d.value=e:null),width:"800"},{default:o(()=>[l(F,{rule:a(_).rule,option:a(_).option},null,8,["rule","option"])]),_:1},8,["modelValue"]),l(z,{title:"\u6D41\u7A0B\u56FE",modelValue:a(f),"onUpdate:modelValue":t[4]||(t[4]=e=>h(f)?f.value=e:null),width:"800"},{default:o(()=>[l(a(te),W({key:"designer",modelValue:a(u),"onUpdate:modelValue":t[3]||(t[3]=e=>h(u)?u.value=e:null),value:a(u)},a(P),{prefix:a(P).prefix}),null,16,["modelValue","value","prefix"])]),_:1},8,["modelValue"])],64)}}});export{ne as default};