From fc7f59bcd94cebfcc3b2a1278984a3bb7b39edaa Mon Sep 17 00:00:00 2001
From: wangting <675591594@qq.com>
Date: 星期二, 22 十月 2024 18:12:20 +0800
Subject: [PATCH] 功能模板树节点操作后局部刷新

---
 Source/plt-web/plt-web-ui/src/components/actions/base/StartWorkflowAction.js |   55 ++++++++++++++++++++++++++++++-------------------------
 1 files changed, 30 insertions(+), 25 deletions(-)

diff --git a/Source/plt-web/plt-web-ui/src/components/actions/base/StartWorkflowAction.js b/Source/plt-web/plt-web-ui/src/components/actions/base/StartWorkflowAction.js
index ab77ad8..f13002d 100644
--- a/Source/plt-web/plt-web-ui/src/components/actions/base/StartWorkflowAction.js
+++ b/Source/plt-web/plt-web-ui/src/components/actions/base/StartWorkflowAction.js
@@ -8,32 +8,37 @@
 
 
 export const doAction = (options,callback) => {
+  //multi 鏄惁寮�鍚閫�
+  //checknotprocess 鏄惁鍏佽鍙戣捣娴佺▼
+  //templateType 娴佺▼妯℃澘type 蹇呭~
+  //filterTemplate 娴佺▼杩囨护妯℃澘淇℃伅
+
   options.sourceData = options.sourceData || {};
   options.dataStore = options.dataStore || [];
-  // if (!options.dataStore || options.dataStore.length < 1) {
-  //   Vue.prototype.$message.error("璇烽�夋嫨闇�瑕佸彂璧锋祦绋嬬殑鏁版嵁");
-  //   return false;
-  // }
-  // if (!options.paramVOS.multi && options.dataStore.length > 1) {
-  //   Vue.prototype.$message.error("浠呰兘閫夋嫨涓�鏉℃暟鎹彂璧锋祦绋�");
-  //   return false;
-  // }
-  //
-  // //楠岃瘉涓嶅厑璁稿惎鍔ㄧ殑鏉′欢
-  // if(!validatenull(options.paramVOS.checknotprocess)) {
-  //   let notprocess = options.paramVOS.checknotprocess.split('&');
-  //   let checknotprocess=false;
-  //   notprocess.forEach((item,i)=>{
-  //     if (options.dataStore[0][item.split('=')[0]] == item.split('=')[1]) {
-  //       checknotprocess=true;
-  //       return false;
-  //     }
-  //   })
-  //   if (checknotprocess) {
-  //     Vue.prototype.$message.error(replaceFreeMarker(options.paramVOS.checknotprocessmsg,options.dataStore,{}) || "褰撳墠鏁版嵁涓嶅厑璁稿彂璧锋祦绋�");
-  //     return false;
-  //   }
-  // }
+  if (!options.dataStore || options.dataStore.length < 1) {
+    Vue.prototype.$message.error("璇烽�夋嫨闇�瑕佸彂璧锋祦绋嬬殑鏁版嵁");
+    return false;
+  }
+  if (!options.paramVOS.multi && options.dataStore.length > 1) {
+    Vue.prototype.$message.error("浠呰兘閫夋嫨涓�鏉℃暟鎹彂璧锋祦绋�");
+    return false;
+  }
+
+  //楠岃瘉涓嶅厑璁稿惎鍔ㄧ殑鏉′欢
+  if(!validatenull(options.paramVOS.checknotprocess)) {
+    let notprocess = options.paramVOS.checknotprocess.split('&');
+    let checknotprocess=false;
+    notprocess.forEach((item,i)=>{
+      if (options.dataStore[0][item.split('=')[0]] == item.split('=')[1]) {
+        checknotprocess=true;
+        return false;
+      }
+    })
+    if (checknotprocess) {
+      Vue.prototype.$message.error(replaceFreeMarker(options.paramVOS.checknotprocessmsg,options.dataStore,{}) || "褰撳墠鏁版嵁涓嶅厑璁稿彂璧锋祦绋�");
+      return false;
+    }
+  }
 
   callPreEvent(options, doBefore, function (options) {
     showStartWindow(options, function () {
@@ -58,7 +63,7 @@
   let instance = new dialogConstructor();
   instance.sourceData = options.sourceData;
   instance.dataStore = options.dataStore;
-  instance.paramVOS = paramVOS
+  instance.paramVOS = paramVOS;
 
   instance.dialogClose = function () {
     vm.visible = false;

--
Gitblit v1.9.3