cloud-module-bpm 6.4.3 → 6.6.0

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.3",
3
+ "version": "6.6.0",
4
4
  "description": " bpm base lib",
5
5
  "main": "dist/cloud-module-bpm.umd.min.js",
6
6
  "author": "wujx",
@@ -16,10 +16,10 @@
16
16
  "axios": "0.19.0",
17
17
  "babel-loader": "^8.0.6",
18
18
  "babel-polyfill": "^6.26.0",
19
- "cloud-module-base": "^6.4.0",
19
+ "cloud-module-base": "^6.6.0",
20
20
  "core-js": "^3.4.4",
21
21
  "css-loader": "^3.4.1",
22
- "element-ui": "^2.13.2",
22
+ "element-ui": "^2.15.7",
23
23
  "less": "3.10.3",
24
24
  "less-loader": "^5.0.0",
25
25
  "moment": "^2.24.0",
@@ -165,7 +165,7 @@ export default {
165
165
  );
166
166
  } else {
167
167
  //业务应用保存数据的方法,保存后回调方法
168
- _this.$emit('save', _this.bpmSaveAfter, bpmBtn);
168
+ _this.$emit('save', _this.bpmSaveAfter);
169
169
  }
170
170
  })
171
171
  .catch(function(err) {
@@ -173,7 +173,7 @@ export default {
173
173
  });
174
174
  } else {
175
175
  //业务应用保存数据的方法,保存后回调方法
176
- _this.$emit('save', _this.bpmSaveAfter, bpmBtn);
176
+ _this.$emit('save', _this.bpmSaveAfter);
177
177
  }
178
178
  },
179
179
 
@@ -203,7 +203,7 @@ export default {
203
203
  this.procOpinion.content = opinion;
204
204
  return;
205
205
  }
206
- if (this.procOpinion.content.length < 255) {
206
+ if (this.procOpinion.content.length + opinion.length < 200) {
207
207
  this.procOpinion.content += ';' + opinion;
208
208
  return;
209
209
  }
@@ -248,7 +248,7 @@ export default {
248
248
  },
249
249
  handlePublish() {
250
250
  let _this = this;
251
- if (_this.procOpinion.content.length > 200) {
251
+ if (_this.procOpinion.content.length > 255) {
252
252
  return this.$message.error(
253
253
  _this.$t('bpm.opinion.opinion_content_beyond')
254
254
  );
@@ -206,7 +206,7 @@ export default {
206
206
  this.procOpinion.content = opinion;
207
207
  return;
208
208
  }
209
- if (this.procOpinion.content.length + opinion.length < 200) {
209
+ if (this.procOpinion.content.length < 255) {
210
210
  this.procOpinion.content += ';' + opinion;
211
211
  return;
212
212
  }
@@ -644,36 +644,30 @@ MeritBPM.openProcTrackWindow = function(that, params) {
644
644
  axios['bpm-engine'].post('/api/engine/track/port', {}).then(function(res) {
645
645
  var port = res.data;
646
646
  var url = '';
647
-
648
- axios['bpm-engine'].post('/api/engine/track/http', {}).then(function(res) {
649
- var http = res.data;
650
- if (port == '80') {
651
- url =
652
- http +
653
- '://' +
654
- window.location.hostname +
655
- '/bpm/proctrack/index.html?procInstId=' +
656
- params.procInstId +
657
- '&procDefId=' +
658
- params.procDefId +
659
- '&IsShielding=' +
660
- shielding;
661
- } else {
662
- url =
663
- http +
664
- '://' +
665
- window.location.hostname +
666
- ':' +
667
- port +
668
- '/bpm/proctrack/index.html?procInstId=' +
669
- params.procInstId +
670
- '&procDefId=' +
671
- params.procDefId +
672
- '&IsShielding=' +
673
- shielding;
674
- }
675
- MeritBPM.openWindow(url, params);
676
- });
647
+ if (port == '80') {
648
+ url =
649
+ 'http://' +
650
+ window.location.hostname +
651
+ '/bpm/proctrack/index.html?procInstId=' +
652
+ params.procInstId +
653
+ '&procDefId=' +
654
+ params.procDefId +
655
+ '&IsShielding=' +
656
+ shielding;
657
+ } else {
658
+ url =
659
+ 'http://' +
660
+ window.location.hostname +
661
+ ':' +
662
+ port +
663
+ '/bpm/proctrack/index.html?procInstId=' +
664
+ params.procInstId +
665
+ '&procDefId=' +
666
+ params.procDefId +
667
+ '&IsShielding=' +
668
+ shielding;
669
+ }
670
+ MeritBPM.openWindow(url, params);
677
671
  });
678
672
  };
679
673
 
@@ -816,7 +810,7 @@ MeritBPM.validatePermit = function(that, procDefKey, callback) {
816
810
  */
817
811
  MeritBPM.getUrlParameter = function(name) {
818
812
  var query = window.location.href.substring(
819
- window.location.hash.indexOf('?') + 1
813
+ window.location.href.indexOf('?') + 1
820
814
  );
821
815
  var vars = query.split('&');
822
816
  for (var i = 0; i < vars.length; i++) {