2 lines
4.4 KiB
JavaScript
Raw Normal View History

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