2 lines
4.5 KiB
JavaScript
Raw Normal View History

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