From 9b32e810bc8655a8b191b2668d169bdc1987ab39 Mon Sep 17 00:00:00 2001 From: tony <846249920@qq.com> Date: Fri, 10 Sep 2021 12:10:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E5=AE=9E=E4=BE=8B?= =?UTF-8?q?=E6=8C=82=E8=BD=BD=E8=A1=A8=E5=8D=95=E9=80=89=E6=8B=A9=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/flowable/definition/index.vue | 71 +++++++++++++++---- .../src/views/flowable/task/process/index.vue | 2 +- 2 files changed, 58 insertions(+), 15 deletions(-) diff --git a/ruoyi-ui/src/views/flowable/definition/index.vue b/ruoyi-ui/src/views/flowable/definition/index.vue index cdf93c5..4e4b1ef 100644 --- a/ruoyi-ui/src/views/flowable/definition/index.vue +++ b/ruoyi-ui/src/views/flowable/definition/index.vue @@ -194,11 +194,41 @@ - - - - - 确 定 + + + + + + + + + + + + + + +
+ +
+
+
@@ -240,7 +270,8 @@ export default { formTitle: "", formDeployOpen: false, formDeployTitle: "", - formList: null, + formList: [], + formTotal:0, formConf: {}, // 默认表单数据 readImage:{ open: false, @@ -275,11 +306,16 @@ export default { parentDeploymentId: null, engineVersion: null }, + formQueryParams:{ + pageNum: 1, + pageSize: 10, + }, + // 挂载表单到流程实例 formDeployParam:{ - formId: 0, + formId: null, deployId: null - }, + currentRow: null, // xml xmlData:"", // 表单参数 @@ -376,12 +412,13 @@ export default { /** 挂载表单弹框 */ handleAddForm(row){ this.formDeployParam.deployId = row.deploymentId - const queryParams = { - pageNum: 1, - pageSize: 10 - } - listForm(queryParams).then(res =>{ + this.ListFormDeploy() + }, + /** 挂载表单列表 */ + ListFormDeploy(){ + listForm(this.formQueryParams).then(res =>{ this.formList = res.rows; + this.formTotal = res.total; this.formDeployOpen = true; this.formDeployTitle = "挂载表单"; }) @@ -400,13 +437,19 @@ export default { // }) // }, /** 挂载表单 */ - submitFormDeploy(){ + submitFormDeploy(row){ + this.formDeployParam.formId = row.formId; addDeployForm(this.formDeployParam).then(res =>{ this.msgSuccess(res.msg); this.formDeployOpen = false; this.getList(); }) }, + handleCurrentChange(data) { + if (data) { + this.currentRow = JSON.parse(data.formContent); + } + }, /** 挂起/激活流程 */ handleUpdateSuspensionState(row){ let state = 1; diff --git a/ruoyi-ui/src/views/flowable/task/process/index.vue b/ruoyi-ui/src/views/flowable/task/process/index.vue index 59d6ec8..fe50609 100644 --- a/ruoyi-ui/src/views/flowable/task/process/index.vue +++ b/ruoyi-ui/src/views/flowable/task/process/index.vue @@ -228,7 +228,7 @@ export default { this.loading = true; myProcessList(this.queryParams).then(response => { this.myProcessList = response.data.records; - this.processTotal = response.data.total; + this.total = response.data.total; this.loading = false; }); },