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