选煤厂安全管理系统前端代码
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 L,k as l,B as o,P as W,a,g as m,C as v,D as w,O as y,h as S,I as h,m as $,F as H,X as J,V as K,aD as M,Y as Q,Z as R}from"./index-BP6bNRoi.js";import{_ as ee}from"./Dialog.vue_vue_type_style_index_0_lang-DFckl8Er.js";import{_ as ae}from"./ContentWrap.vue_vue_type_script_setup_true_lang-CR_2gECF.js";import{_ as le}from"./index.vue_vue_type_script_setup_true_lang-sJUY8qtC.js";import{d as oe}from"./formatTime-DwR9f7DP.js";import{j as te}from"./bpmn-embedded-DgbZ9dtA.js";import{g as re,a as ie}from"./index-C5h6z2YM.js";import{b as pe}from"./formCreate-4fM2e5HN.js";import"./el-card-bU92WWV4.js";import"./index-BZESAUPP.js";import"./XTextButton-B6L8upsJ.js";import"./XButton-BfzTlH8o.js";import"./index-CeFKtjBg.js";import"./el-tree-select-pYALMRc9.js";import"./tree-BBZY150N.js";import"./index-NsInNyZ_.js";import"./index-BdNokKwC.js";import"./index-DkNlrmPs.js";import"./index-vFgEqmZu.js";import"./index-Y1ylnZaQ.js";import"./constants-CuOBQ73z.js";import"./index-ox_WxZBR.js";import"./el-drawer-CuGR_O5R.js";import"./DictTag.vue_vue_type_script_lang-DwXPHgid.js";import"./color-DXkOL5Tu.js";import"./index-BRcqC2Y4.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),U=p({prefix:"flowable"});return E(()=>{V()}),(r,t)=>{const i=J,k=K,c=M,B=Q,X=le,A=ae,F=G("form-create"),z=ee,j=R;return n(),L(H,null,[l(A,null,{default:o(()=>[W((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 P;u.value=(P=await ie(q.id))==null?void 0:P.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})):S("",!0),e.row.suspensionState===2?(n(),m(c,{key:1,type:"warning"},{default:o(()=>[y("\u6302\u8D77")]),_:1})):S("",!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),$({key:"designer",modelValue:a(u),"onUpdate:modelValue":t[3]||(t[3]=e=>h(u)?u.value=e:null),value:a(u)},a(U),{prefix:a(U).prefix}),null,16,["modelValue","value","prefix"])]),_:1},8,["modelValue"])],64)}}});export{ne as default};