|
|
|
@ -116,6 +116,21 @@
|
|
|
|
|
|
|
|
|
|
<!-- 发起流程 -->
|
|
|
|
|
<el-dialog :title="title" :visible.sync="open" width="60%" append-to-body>
|
|
|
|
|
<el-form :model="queryProcessParams" ref="queryProcessForm" :inline="true" v-show="showSearch" label-width="68px">
|
|
|
|
|
<el-form-item label="名称" prop="name">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryProcessParams.name"
|
|
|
|
|
placeholder="请输入名称"
|
|
|
|
|
clearable
|
|
|
|
|
size="small"
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item>
|
|
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleProcessQuery">搜索</el-button>
|
|
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetProcessQuery">重置</el-button>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
<el-table v-loading="processLoading" fit :data="definitionList" border >
|
|
|
|
|
<el-table-column label="流程名称" align="center" prop="name" />
|
|
|
|
|
<el-table-column label="流程版本" align="center">
|
|
|
|
@ -138,8 +153,8 @@
|
|
|
|
|
<pagination
|
|
|
|
|
v-show="processTotal>0"
|
|
|
|
|
:total="processTotal"
|
|
|
|
|
:page.sync="queryParams.pageNum"
|
|
|
|
|
:limit.sync="queryParams.pageSize"
|
|
|
|
|
:page.sync="queryProcessParams.pageNum"
|
|
|
|
|
:limit.sync="queryProcessParams.pageSize"
|
|
|
|
|
@pagination="listDefinition"
|
|
|
|
|
/>
|
|
|
|
|
</el-dialog>
|
|
|
|
@ -200,6 +215,20 @@ export default {
|
|
|
|
|
parentDeploymentId: null,
|
|
|
|
|
engineVersion: null
|
|
|
|
|
},
|
|
|
|
|
// 查询参数
|
|
|
|
|
queryProcessParams: {
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
name: null,
|
|
|
|
|
category: null,
|
|
|
|
|
key: null,
|
|
|
|
|
tenantId: null,
|
|
|
|
|
deployTime: null,
|
|
|
|
|
derivedFrom: null,
|
|
|
|
|
derivedFromRoot: null,
|
|
|
|
|
parentDeploymentId: null,
|
|
|
|
|
engineVersion: null
|
|
|
|
|
},
|
|
|
|
|
// 表单参数
|
|
|
|
|
form: {},
|
|
|
|
|
// 表单校验
|
|
|
|
@ -251,6 +280,16 @@ export default {
|
|
|
|
|
this.resetForm("queryForm");
|
|
|
|
|
this.handleQuery();
|
|
|
|
|
},
|
|
|
|
|
/** 搜索按钮操作 */
|
|
|
|
|
handleProcessQuery() {
|
|
|
|
|
this.queryProcessParams.pageNum = 1;
|
|
|
|
|
this.listDefinition();
|
|
|
|
|
},
|
|
|
|
|
/** 重置按钮操作 */
|
|
|
|
|
resetProcessQuery() {
|
|
|
|
|
this.resetForm("queryProcessForm");
|
|
|
|
|
this.handleProcessQuery();
|
|
|
|
|
},
|
|
|
|
|
// 多选框选中数据
|
|
|
|
|
handleSelectionChange(selection) {
|
|
|
|
|
this.ids = selection.map(item => item.id)
|
|
|
|
@ -264,7 +303,7 @@ export default {
|
|
|
|
|
this.listDefinition();
|
|
|
|
|
},
|
|
|
|
|
listDefinition(){
|
|
|
|
|
listDefinition(this.queryParams).then(response => {
|
|
|
|
|
listDefinition(this.queryProcessParams).then(response => {
|
|
|
|
|
this.definitionList = response.data.records;
|
|
|
|
|
this.processTotal = response.data.total;
|
|
|
|
|
this.processLoading = false;
|
|
|
|
|