From ff9f1492bc7925942fe24df50e91f24d7b950b56 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=A7=9C=E7=8E=89=E7=90=A6?=
<7507756+jiang_yuqi@user.noreply.gitee.com>
Date: Sun, 17 Sep 2023 18:09:42 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=B8=A6=E5=95=8A?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../views/flowable/task/myProcess/index.vue | 63 +++++++++++++++----
1 file changed, 52 insertions(+), 11 deletions(-)
diff --git a/ruoyi-ui/src/views/flowable/task/myProcess/index.vue b/ruoyi-ui/src/views/flowable/task/myProcess/index.vue
index 381981d5..0e7c9b10 100644
--- a/ruoyi-ui/src/views/flowable/task/myProcess/index.vue
+++ b/ruoyi-ui/src/views/flowable/task/myProcess/index.vue
@@ -129,7 +129,7 @@
-
+
处理
详情
@@ -213,6 +213,27 @@
@pagination="myDefinitionList"
/>
+
+
+
+
+
+
+
+
+
@@ -255,6 +276,7 @@ export default {
return {
// 遮罩层
loading: true,
+ stopLoading: false,
processLoading: true,
// 选中数组
ids: [],
@@ -273,6 +295,7 @@ export default {
title: "",
// 是否显示弹出层
open: false,
+ stopOpen:false,
src: "",
definitionList:[],
// 查询参数
@@ -303,6 +326,14 @@ export default {
form: {},
// 表单校验
rules: {
+ comment: [
+ { required: true, message: "请输入终止原因", trigger: "blur" },
+ {
+ max: 500,
+ message: "终止原因最多输入500字",
+ trigger: "blur",
+ },
+ ],
},
daterangeCheckTime:[],
tabs:{
@@ -357,6 +388,7 @@ export default {
// 取消按钮
cancel() {
this.open = false;
+ this.stopOpen = false;
this.reset();
},
// 表单重置
@@ -448,17 +480,26 @@ export default {
},
/** 取消流程申请 */
handleStop(row){
- const params = {
- instanceId: row.procInsId
- }
+ this.form.taskId = row.taskId;
+ this.form.userId = this.$store.getters.userId
+ this.form.instanceId = row.procInsId;
+ this.stopOpen = true;
+ },
+ /** 取消流程申请 */
+ handleStopClick(){
let that = this;
- this.$modal.confirm('是否终止当前流程申请?').then(function() {
- that.loading = true;
- return stopProcess(params);
- }).then(res => {
- that.$modal.msgSuccess(res.msg);
- that.loading=false;
- that.getList();
+ this.$refs["form"].validate(valid => {
+ if (valid) {
+ this.$modal.confirm('是否终止当前流程申请?').then(function() {
+ that.stopLoading = true;
+ return stopProcess(that.form);
+ }).then(res => {
+ that.$modal.msgSuccess(res.msg);
+ that.stopLoading=false;
+ that.stopOpen = false;
+ that.getList();
+ });
+ }
});
},
/** 流程流转记录 */