From 5a98e5f9ce50bb5de56a54cae14e5ea49fbe2c07 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期一, 17 三月 2025 16:19:29 +0800
Subject: [PATCH] 更新流程实现
---
src/views/flowable/task/myProcess/send/index.vue | 20 ++++++++++++++++----
1 files changed, 16 insertions(+), 4 deletions(-)
diff --git a/src/views/flowable/task/myProcess/send/index.vue b/src/views/flowable/task/myProcess/send/index.vue
index 706f2c2..e50e92b 100644
--- a/src/views/flowable/task/myProcess/send/index.vue
+++ b/src/views/flowable/task/myProcess/send/index.vue
@@ -343,7 +343,14 @@
this.$prompt('澶囨敞璇存槑', '纭畾瑕佸缂烘浠诲姟鍚�', {
confirmButtonText: '纭畾',
cancelButtonText: '鍙栨秷',
- inputType: 'textarea'
+ inputType: 'textarea',
+ inputValidator: (value) => {
+ if (!value || value.trim() === '') {
+ return "璇峰~鍐欏娉ㄨ鏄�"
+ }
+ return true
+ },
+ inputErrorMessage: '璇峰~鍐欏娉ㄨ鏄�'
}).then(({ value }) => {
let waitForm = {
taskId: this.taskId,
@@ -367,9 +374,14 @@
this.$prompt('澶囨敞璇存槑', '纭畾瑕佽烦杩囨浠诲姟鍚�', {
confirmButtonText: '纭畾',
cancelButtonText: '鍙栨秷',
- inputType: 'textarea'
- // inputPattern: /[\w!#$%&'*+/=?^_`{|}~-]+(?:\.[\w!#$%&'*+/=?^_`{|}~-]+)*@(?:[\w](?:[\w-]*[\w])?\.)+[\w](?:[\w-]*[\w])?/,
- // inputErrorMessage: '閭鏍煎紡涓嶆纭�'
+ inputType: 'textarea',
+ inputValidator: (value) => {
+ if (!value || value.trim() === '') {
+ return "璇峰~鍐欏娉ㄨ鏄�"
+ }
+ return true
+ },
+ inputErrorMessage: '璇峰~鍐欏娉ㄨ鏄�'
}).then(({ value }) => {
let jumpForm = {
taskId: this.taskId,
--
Gitblit v1.8.0