Kaynağa Gözat

处理触发异常后列表/节点名称异常问题

lph 1 yıl önce
ebeveyn
işleme
3bb6d6f9ed

+ 8 - 6
zkqy-ui/src/views/bussiness/processMange.vue

@@ -525,6 +525,7 @@ export default {
     },
     // 触发异常回调
     exceptionTrigger(row, scriptData) {
+      let _this = this;
       this.$modal
         .confirm("是否确认触发<" + scriptData.scriptName + ">异常?")
         .then(function (val) {
@@ -536,18 +537,19 @@ export default {
             sysBpmNodeScriptVO: scriptData,
           };
           triggerExceptionNode(payLoad).then((res) => {
+            console.log(res);
             if (res.code == 200) {
-              this.$message.success("触发成功");
-              this.open = false;
-              this.getList();
+              _this.$message.success("触发成功");
+              _this.open = false;
+              _this.getList();
             } else {
-              this.$message.error("触发失败请稍后再试");
+              _this.$message.error("触发失败请稍后再试");
             }
           });
         })
         .catch(() => {
-          this.open = false;
-          this.$message.info("取消成功");
+          _this.open = false;
+          _this.$message.info("取消成功");
         });
     },
     // 获取字典对应label

+ 5 - 5
zkqy-ui/src/views/system/bpmnPro/components/bo-utils/getNodeMsg.js

@@ -119,11 +119,11 @@ function getNodeException(node, nodeObj) {
         if (item.nodeName == `${prefix}:unusualTask`) {
           let formName = '', formType = item.attributes.formType?.nodeValue || '';
 
-          if (formType == 'designForm') {
-            formName = item.getAttribute('compName') + '-' + item.getAttribute('scriptName');
-          } else {
-            formName = item.getAttribute('scriptName');
-          }
+          // if (formType == 'designForm') {
+          formName = item.getAttribute('compName') + '-' + item.getAttribute('scriptName');
+          // } else {
+          //   formName = item.getAttribute('scriptName');
+          // }
           res.push({
             scriptKey: item.attributes.scriptKey?.nodeValue,
             // scriptTriggerType: item.attributes?.scriptTriggerType?.nodeValue || 0,