2 lines
4.8 KiB
JavaScript
Raw Permalink Normal View History

2025-06-02 21:34:56 +08:00
import{d as e,r as l,a}from"./finished-BsiARIvQ.js";import{_ as t,j as n,H as i,c as o,o as s,F as r,e as d,R as u,w as m,l as h,m as p,h as c,f as y,B as g}from"./index-C-c3zR6K.js";const f={class:"app-container"};const w=t({name:"Deploy",components:{},data:()=>({loading:!0,ids:[],single:!0,multiple:!0,showSearch:!0,total:0,finishedList:[],title:"",open:!1,src:"",queryParams:{pageNum:1,pageSize:10,name:null,category:null,key:null,tenantId:null,deployTime:null,derivedFrom:null,derivedFromRoot:null,parentDeploymentId:null,engineVersion:null},form:{},rules:{}}),created(){this.getList()},methods:{getList(){this.loading=!0,a(this.queryParams).then((e=>{this.finishedList=e.rows,this.total=e.total,this.loading=!1}))},cancel(){this.open=!1,this.reset()},reset(){this.form={id:null,name:null,category:null,key:null,tenantId:null,deployTime:null,derivedFrom:null,derivedFromRoot:null,parentDeploymentId:null,engineVersion:null},this.resetForm("form")},handleQuery(){this.queryParams.pageNum=1,this.getList()},resetQuery(){this.resetForm("queryForm"),this.handleQuery()},handleSelectionChange(e){this.ids=e.map((e=>e.id)),this.single=1!==e.length,this.multiple=!e.length},handleFlowRecord(e){this.$router.push({path:"/flowable/task/finished/detail/index",query:{procInsId:e.procInsId,deployId:e.deployId,taskId:e.taskId}})},handleRevoke(e){const a={instanceId:e.procInsId};l(a).then((e=>{this.$modal.msgSuccess(e.msg),this.getList()}))},handleDelete(l){const a=l.id||this.ids;this.$confirm('是否确认删除流程定义编号为"'+a+'"的数据项?',"警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return e(a)})).then((()=>{this.getList(),this.$modal.msgSuccess("删除成功")}))}}},[["render",function(e,l,a,t,w,b){const k=n("el-input"),I=n("el-form-item"),_=n("el-date-picker"),C=n("el-button"),q=n("el-form"),P=n("el-col"),S=n("right-toolbar"),v=n("el-row"),F=n("el-table-column"),T=n("el-tag"),L=n("el-table"),x=n("pagination"),z=i("hasPermi"),Q=i("loading");return s(),o("div",f,[r(d(q,{model:w.queryParams,ref:"queryForm",inline:!0,"label-width":"68px"},{default:m((()=>[d(I,{label:"名称",prop:"name"},{default:m((()=>[d(k,{modelValue:w.queryParams.name,"onUpdate:modelValue":l[0]||(l[0]=e=>w.queryParams.name=e),placeholder:"请输入名称",clearable:"",size:"small",onKeyup:h(b.handleQuery,["enter","native"])},null,8,["modelValue","onKeyup"])])),_:1}),d(I,{label:"开始时间",prop:"deployTime"},{default:m((()=>[d(_,{clearable:"",size:"small",modelValue:w.queryParams.deployTime,"onUpdate:modelValue":l[1]||(l[1]=e=>w.queryParams.deployTime=e),type:"date","value-format":"yyyy-MM-dd",placeholder:"选择时间"},null,8,["modelValue"])])),_:1}),d(I,null,{default:m((()=>[d(C,{type:"primary",icon:"search",size:"small",onClick:b.handleQuery},{default:m((()=>l[2]||(l[2]=[p("搜索")]))),_:1},8,["onClick"]),d(C,{icon:"refresh",size:"small",onClick:b.resetQuery},{default:m((()=>l[3]||(l[3]=[p("重置")]))),_:1},8,["onClick"])])),_:1})])),_:1},8,["model"]),[[u,w.showSearch]]),d(v,{gutter:10,class:"mb8"},{default:m((()=>[d(P,{span:1.5},{default:m((()=>[r((s(),c(C,{type:"danger",plain:"",icon:"delete",size:"small",disabled:w.multiple,onClick:b.handleDelete},{default:m((()=>l[4]||(l[4]=[p("删除")]))),_:1},8,["disabled","onClick"])),[[z,["system:deployment:remove"]]])])),_:1}),d(S,{showSearch:w.showSearch,onQueryTable:b.getList},null,8,["showSearch","onQueryTable"])])),_:1}),r((s(),c(L,{data:w.finishedList,border:"",onSelectionChange:b.handleSelectionChange},{default:m((()=>[d(F,{type:"selection",width:"55",align:"center"}),d(F,{label:"任务编号",align:"center",prop:"taskId","show-overflow-tooltip":!0}),d(F,{label:"流程名称",align:"center",prop:"procDefName","show-overflow-tooltip":!0}),d(F,{label:"任务节点",align:"center",prop:"taskName"}),d(F,{label:"流程发起人",align:"center"},{default:m((e=>[y("label",null,[p(g(e.row.startUserName)+" ",1),d(T,{type:"info",size:"small"},{default:m((()=>[p(g(e.row.startDeptName),1)])),_:2},1024)])])),_:1}),d(F,{label:"接收时间",align:"center",prop:"createTi