Files
aiot-platform-ui/apps/web-antd/dist/js/index-CSM5RIra.js

2 lines
6.0 KiB
JavaScript
Raw Normal View History

2026-03-24 09:48:00 +08:00
var R=Object.defineProperty,U=Object.defineProperties;var F=Object.getOwnPropertyDescriptors;var S=Object.getOwnPropertySymbols;var $=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable;var I=(o,n,s)=>n in o?R(o,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):o[n]=s,b=(o,n)=>{for(var s in n||(n={}))$.call(n,s)&&I(o,s,n[s]);if(S)for(var s of S(n))q.call(n,s)&&I(o,s,n[s]);return o},T=(o,n)=>U(o,F(n));var h=(o,n,s)=>new Promise((k,f)=>{var C=a=>{try{t(s.next(a))}catch(e){f(e)}},g=a=>{try{t(s.throw(a))}catch(e){f(e)}},t=a=>a.done?k(a.value):Promise.resolve(a.value).then(C,g);t((s=s.apply(o,n)).next())});import"./vxe-table-D8MHv-3U.js";import{c as G,a as M}from"./index-DiKW21_2.js";import{h as W,c as L}from"./index-Bjfi2PUu.js";import{_ as V}from"./dict-tag.vue_vue_type_script_setup_true_lang-Ck1J3m5B.js";import{at as j,$ as x,ay as B,c1 as y,a9 as v,bP as z}from"./bootstrap-BKs0Sk6Z.js";import{b as H}from"./index-ClWW4ojr.js";import{g as J}from"./rangePickerProps-gFa0a5Pw.js";import{D as O}from"./dict-enum-CaHgMaDZ.js";import{_ as K}from"./table-action.vue_vue_type_script_setup_true_lang-DFCWo4M-.js";import{_ as Y}from"./doc-alert.vue_vue_type_script_setup_true_lang-BnPmklhK.js";import{_ as Q}from"./page.vue_vue_type_script_setup_true_lang-C83zw41U.js";import{m as X,ab as A,b2 as r,bJ as c,j as d,u as i,ad as m,I as D,ai as _,bp as p,bb as Z,ae as w,L as ee}from"../jse/index-index-DTH1zC_5.js";import{u as te}from"./use-vxe-grid-Q5I02g7y.js";import{A as P}from"./icons-CieLeI1V.js";import{B as N,b as E}from"./biz-bpm-enum-DQJBn5Qr.js";import{b as ae}from"./AlertBuilder-BXEOjg1E.js";import"./index-B9lDOBgQ.js";import"./circle-check-big-BNgj2RWC.js";import"./x-bUPAKCwj.js";function se(){return[{fieldName:"name",label:"流程名称",component:"Input",componentProps:{placeholder:"请输入流程名称",allowClear:!0}},{fieldName:"processDefinitionId",label:"所属流程",component:"ApiSelect",componentProps:{placeholder:"请选择流程定义",allowClear:!0,api:G,labelField:"name",valueField:"id"}},{fieldName:"category",label:"流程分类",component:"ApiSelect",componentProps:{placeholder:"请输入流程分类",allowClear:!0,api:H,labelField:"name",valueField:"code"}},{fieldName:"status",label:"流程状态",component:"Select",componentProps:{options:j(O.BPM_PROCESS_INSTANCE_STATUS,"number"),placeholder:"请选择流程状态",allowClear:!0}},{fieldName:"createTime",label:"发起时间",component:"RangePicker",componentProps:T(b({},J()),{allowClear:!0})}]}function ne(){return[{field:"name",title:"流程名称",minWidth:200,fixed:"left"},{field:"summary",title:"摘要",minWidth:200,slots:{default:"slot-summary"}},{field:"categoryName",title:"流程分类",minWidth:120,fixed:"left"},{field:"status",title:"流程状态",minWidth:250,slots:{default:"slot-status"}},{field:"startTime",title:"发起时间",minWidth:180,formatter:"formatDateTime"},{field:"endTime",title:"结束时间",minWidth:180,formatter:"formatDateTime"},{title:"操作",width:180,fixed:"right",slots:{default:"actions"}}]}const ie={key:0,class:"flex flex-col py-2"},oe={class:"text-gray-500"},le={key:1},re={key:0},ce={key:1},Ae=X({name:"BpmProcessInstanceMy",__name:"index",setup(o){function n(){g.query()}function s(t){y.push({name:"BpmProcessInstanceDetail",query:{id:t.id}})}function k(t){return h(this,null,function*(){if(t!=null&&t.id){const a=yield M(t.processDefinitionId);if((a==null?void 0:a.formType)===E.CUSTOM){if(!a.formCustomCreatePath){v.error("未配置业务表单的提交路由,无法重新发起");return}yield y.push({path:a.formCustomCreatePath,query:{id:t.businessKey}});return}else if((a==null?void 0:a.formType)===E.NORMAL){yield y.push({name:"BpmProcessInstanceCreate",query:{processInstanceId:t.id}});return}}yield y.push({name:"BpmProcessInstanceCreate",query:t!=null&&t.id?{processInstanceId:t.id}:{}})})}function f(t){ae({component:()=>ee(z,{placeholder:"请输入取消原因",allowClear:!0,rows:2}),content:"请输入取消原因",title:"取消流程",modelPropName:"value"}).then(a=>h(null,null,function*(){a&&(yield L(t.id