cloud-module-bpm 6.4.5 → 6.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloud-module-bpm",
3
- "version": "6.4.5",
3
+ "version": "6.4.6",
4
4
  "description": " bpm base lib",
5
5
  "main": "dist/cloud-module-bpm.umd.min.js",
6
6
  "author": "wujx",
@@ -217,13 +217,9 @@ export default {
217
217
  //关闭按钮事件,如果有父窗口,则调用父窗口的监听事件
218
218
  if (window.opener && window.opener.refreshBpmGrid) {
219
219
  window.opener.refreshBpmGrid();
220
- window.opener = window;
221
- var win = window.open(' ', '_self');
222
- win.close();
220
+ window.close();
223
221
  } else {
224
- window.opener = window;
225
- var win = window.open(' ', '_self');
226
- win.close();
222
+ window.close();
227
223
  }
228
224
  }
229
225
  }
@@ -335,6 +335,7 @@ MeritBPM.finishTask = function(that, _ruleEngine) {
335
335
  };
336
336
  // 流程终止
337
337
  MeritBPM.bpmJumpBtnEnd = function(that, ruleEngine) {
338
+ ruleEngine.runtime = {};
338
339
  that
339
340
  .$confirm('此操作将终止该流程, 是否继续?', '提示', {
340
341
  confirmButtonText: '确定',
@@ -365,6 +366,7 @@ MeritBPM.bpmJumpBtnEnd = function(that, ruleEngine) {
365
366
  // 退回上一环节处理人
366
367
  (MeritBPM.bpmRetprenodeBtn = function(that, ruleEngine) {
367
368
  let businessId = that.ruleEngine.businessId;
369
+ ruleEngine.runtime = {};
368
370
  that
369
371
  .$confirm('此操作将退回到上一环节处理人, 是否继续?', '提示', {
370
372
  confirmButtonText: '确定',
@@ -392,6 +394,7 @@ MeritBPM.bpmJumpBtnEnd = function(that, ruleEngine) {
392
394
  //发送到退回人
393
395
  (MeritBPM.bpmDoBackBtn = function(that, ruleEngine) {
394
396
  let businessId = that.ruleEngine.businessId;
397
+ ruleEngine.runtime = {};
395
398
  that
396
399
  .$confirm('是否将流程直接发送给退回人', '发送提示', {
397
400
  confirmButtonText: '确定',
@@ -472,6 +475,7 @@ MeritBPM.bpmJumpBtnEnd = function(that, ruleEngine) {
472
475
  // 退回拟稿人
473
476
  (MeritBPM.bpmRetfirnodeBtn = function(that, ruleEngine) {
474
477
  let businessId = that.ruleEngine.businessId;
478
+ ruleEngine.runtime = {};
475
479
  that
476
480
  .$confirm('此操作将退回到拟稿人, 是否继续?', '提示', {
477
481
  confirmButtonText: '确定',
@@ -501,6 +505,7 @@ MeritBPM.bpmJumpBtnEnd = function(that, ruleEngine) {
501
505
  let businessId = that.ruleEngine.businessId;
502
506
  let receiver = ruleEngine.resultCodes;
503
507
  let toTaskDefKey = ruleEngine.resultToTaskDefKey;
508
+ ruleEngine.runtime = {};
504
509
  axios['bpm-engine']
505
510
  .post(
506
511
  '/api/engine/bpm/process/RetRandomNodeStatus/' +
@@ -526,6 +531,7 @@ MeritBPM.bpmJumpBtnEnd = function(that, ruleEngine) {
526
531
  // 流程收回
527
532
  (MeritBPM.bpmTakeBackBtn = function(that, ruleEngine) {
528
533
  let businessId = that.ruleEngine.businessId;
534
+ ruleEngine.runtime = {};
529
535
  that
530
536
  .$confirm('此操作将收回该流程, 是否继续?', '提示', {
531
537
  confirmButtonText: '确定',
@@ -554,6 +560,7 @@ MeritBPM.bpmJumpBtnEnd = function(that, ruleEngine) {
554
560
  (MeritBPM.JumpSave = function(that, ruleEngine) {
555
561
  let toTaskDefKey = ruleEngine.toTaskDefKey;
556
562
  let businessId = that.ruleEngine.businessId;
563
+ // ruleEngine.runtime = {};
557
564
  axios['bpm-engine']
558
565
  .post(
559
566
  '/api/engine/bpm/jump/process/' + businessId + '/' + toTaskDefKey,
@@ -575,6 +582,7 @@ MeritBPM.bpmJumpBtnEnd = function(that, ruleEngine) {
575
582
  (MeritBPM.JumpManagementSave = function(that, ruleEngine) {
576
583
  let toTaskDefKey = ruleEngine.toTaskDefKey;
577
584
  let businessId = that.ruleEngine.businessId;
585
+ // ruleEngine.runtime = {};
578
586
  axios['bpm-engine']
579
587
  .post(
580
588
  '/api/engine/bpm/jump/latest/process/' +
@@ -644,7 +652,6 @@ MeritBPM.openProcTrackWindow = function(that, params) {
644
652
  axios['bpm-engine'].post('/api/engine/track/port', {}).then(function(res) {
645
653
  var port = res.data;
646
654
  var url = '';
647
-
648
655
  axios['bpm-engine'].post('/api/engine/track/http', {}).then(function(res) {
649
656
  var http = res.data;
650
657
  if (port == '80') {
@@ -674,7 +681,7 @@ MeritBPM.openProcTrackWindow = function(that, params) {
674
681
  }
675
682
  MeritBPM.openWindow(url, params);
676
683
  });
677
- });
684
+ });
678
685
  };
679
686
 
680
687
  // 发送人员对话框关闭
@@ -815,7 +822,7 @@ MeritBPM.validatePermit = function(that, procDefKey, callback) {
815
822
  * 拼接参数/bpm-demo/example/index.html#/formEdit?id=businessId&undoId=undoId
816
823
  */
817
824
  MeritBPM.getUrlParameter = function(name) {
818
- var query = window.location.hash.substring(
825
+ var query = window.location.hash.substring(
819
826
  window.location.hash.indexOf('?') + 1
820
827
  );
821
828
  var vars = query.split('&');