From d0fbf4d118248513db719e5988275cd3f0e79ee6 Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期三, 07 一月 2026 15:09:41 +0800
Subject: [PATCH] 增加页面提示

---
 src/views/WebViewSend.vue |   44 +++++++++++++++++++++++++++++---------------
 1 files changed, 29 insertions(+), 15 deletions(-)

diff --git a/src/views/WebViewSend.vue b/src/views/WebViewSend.vue
index 4e5c5e0..baf9ef1 100644
--- a/src/views/WebViewSend.vue
+++ b/src/views/WebViewSend.vue
@@ -1,6 +1,11 @@
 <template>
   <div class="app-container">
-    <el-card class="box-card" >
+    <el-result v-if="isSuccess" icon="success" title="鎿嶄綔鎴愬姛" subTitle="鎮ㄧ殑浠诲姟宸插鐞嗗畬鎴�">
+      <template slot="extra">
+      </template>
+    </el-result>
+
+    <el-card v-else class="box-card" >
       <div slot="header" class="clearfix header-container">
         <div class="header-title el-icon-document">{{`浠诲姟鍔炵悊锛歚 + processName}}</div>
         <div class="header-subtitle">{{projectName + '鈥斺��' + flowName}}</div>
@@ -155,6 +160,7 @@
   data() {
     return {
       isWait: false,
+      isSuccess: false,
       rejectLoading: false,
       submitLoading: false,
       delegationButLoading: false,
@@ -291,16 +297,14 @@
             Object.assign(param, formData);
             const api = this.isWait ? waitCompleteSubmitFormTask : completeSubmitFormTask;
             api(this.taskId, param).then(res => {
-              this.$message.success(res.msg);
+              this.isSuccess = true;
               this.submitLoading = false;
-              this.goBack();
             }).catch(() => { this.submitLoading = false; });
           });
         } else {
           const api = this.isWait ? waitCompleteSubmitFormTask : completeSubmitFormTask;
           api(this.taskId, {}).then(res => {
-            this.$message.success(res.msg);
-            this.goBack();
+            this.isSuccess = true;
           });
         }
       });
@@ -319,8 +323,7 @@
         this.rejectLoading = true;
         rejectTask(this.rejectForm).then(res => {
           this.rejectShow = false;
-          this.$message.success("椹冲洖鎴愬姛");
-          this.goBack();
+          this.isSuccess = true;
         }).finally(() => { this.rejectLoading = false; });
       });
     },
@@ -336,9 +339,8 @@
           this.delegationForm.processInsId = this.procInsId;
           this.delegationButLoading = true;
           taskDelegation(this.delegationForm).then(res => {
-            this.$message.success("宸插彂璧疯浆鍔炵敵璇�");
+            this.isSuccess = true;
             this.delegationShow = false;
-            this.goBack();
           }).finally(() => { this.delegationButLoading = false; });
         }
       });
@@ -367,10 +369,23 @@
     closeRole() { this.roleShow = false; },
     closeMultUser() { this.multUserShow = false; },
     // 鎸傝捣/瀹圭己/璺宠繃
-    hangup() { this.$prompt('澶囨敞璇存槑', '纭畾瑕佹寕璧锋浠诲姟鍚�').then(({ value }) => { taskHangup({ taskId: this.taskId, projectId: this.projectId, processInsId: this.procInsId, reason: value }).then(() => { this.$message.success("鎿嶄綔鎴愬姛"); this.goBack(); }); }); },
-    cancelHangup() { this.$confirm('纭畾瑕佸彇娑堟寕璧峰悧?').then(() => { cancelTaskHangup({ taskId: this.taskId, projectId: this.projectId, processInsId: this.procInsId }).then(() => { this.$message.success("鎿嶄綔鎴愬姛"); this.goBack(); }); }); },
-    waitTask() { this.$prompt('澶囨敞璇存槑', '纭畾瑕佸缂烘浠诲姟鍚�').then(({ value }) => { taskWait({ taskId: this.taskId, projectId: this.projectId, processInsId: this.procInsId, desc: value }).then(() => { this.$message.success("鎿嶄綔鎴愬姛"); this.goBack(); }); }); },
-    jumpTask() { this.$prompt('澶囨敞璇存槑', '纭畾瑕佽烦杩囨浠诲姟鍚�').then(({ value }) => { taskJump({ taskId: this.taskId, projectId: this.projectId, processInsId: this.procInsId, desc: value }).then(() => { this.$message.success("鎿嶄綔鎴愬姛"); this.goBack(); }); }); },
+    hangup() { 
+      this.$prompt('澶囨敞璇存槑', '纭畾瑕佹寕璧锋浠诲姟鍚�').then(({ value }) => { 
+        taskHangup({ taskId: this.taskId, projectId: this.projectId, processInsId: this.procInsId, reason: value }).then(() => { this.isSuccess = true; }); }); 
+      },
+    cancelHangup() { 
+      this.$confirm('纭畾瑕佸彇娑堟寕璧峰悧?').then(() => { 
+        cancelTaskHangup({ taskId: this.taskId, projectId: this.projectId, processInsId: this.procInsId }).then(() => { this.isSuccess = true; }); }); 
+      },
+    waitTask() { 
+      this.$prompt('澶囨敞璇存槑', '纭畾瑕佸缂烘浠诲姟鍚�').then(({ value }) => { 
+        taskWait({ taskId: this.taskId, projectId: this.projectId, processInsId: this.procInsId, desc: value }).then(() => { this.isSuccess = true; }); }); 
+      },
+    jumpTask() { 
+      this.$prompt('澶囨敞璇存槑', '纭畾瑕佽烦杩囨浠诲姟鍚�').then(({ value }) => { 
+      taskJump({ taskId: this.taskId, projectId: this.projectId, processInsId: this.procInsId, desc: value }).then(() => { this.isSuccess = true; }); }); 
+    },
+
     goBack() {
       // WebView 妯″紡涓嬮�氬父涓嶉渶瑕佸鏉傜殑 goBack 閫昏緫锛屾垨鑰呭彲浠ラ�氱煡鐖跺鍣�
       console.log('Task completed');
@@ -404,8 +419,7 @@
       Object.assign(param, this.formData);
       this.$set(param, this.multiInstanceVars || "approval", this.checkValues);
       completeSubmitFormTask(this.taskId, param).then(res => {
-        this.$message.success(res.msg);
-        this.goBack();
+        this.isSuccess = true;
       });
     }
   }

--
Gitblit v1.8.0