cloud-module-bpm 6.4.1 → 6.4.2

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,12 +1,11 @@
1
1
  {
2
2
  "name": "cloud-module-bpm",
3
- "version": "6.4.1",
3
+ "version": "6.4.2",
4
4
  "description": " bpm base lib",
5
5
  "main": "dist/cloud-module-bpm.umd.min.js",
6
6
  "author": "wujx",
7
7
  "private": false,
8
8
  "license": "MIT",
9
-
10
9
  "scripts": {
11
10
  "serve": "vue-cli-service serve --port 8089 ",
12
11
  "build": "vue-cli-service build",
@@ -165,7 +165,7 @@ export default {
165
165
  );
166
166
  } else {
167
167
  //业务应用保存数据的方法,保存后回调方法
168
- _this.$emit('save', _this.bpmSaveAfter);
168
+ _this.$emit('save', _this.bpmSaveAfter, bpmBtn);
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);
176
+ _this.$emit('save', _this.bpmSaveAfter, bpmBtn);
177
177
  }
178
178
  },
179
179
 
@@ -211,11 +211,12 @@ export default {
211
211
  //关闭人员选择对话框
212
212
  handleClose() {
213
213
  this.procOpinion.content = undefined;
214
+ this.$refs.procOpinion.resetFields();
214
215
  this.$emit('dialog-close', this.dialogVisible);
215
216
  },
216
217
  handleSave() {
217
218
  let _this = this;
218
- if (_this.procOpinion.content.length > 255) {
219
+ if (_this.procOpinion.content.length > 200) {
219
220
  return this.$message.error(
220
221
  _this.$t('bpm.opinion.opinion_content_beyond')
221
222
  );
@@ -247,7 +248,7 @@ export default {
247
248
  },
248
249
  handlePublish() {
249
250
  let _this = this;
250
- if (_this.procOpinion.content.length > 255) {
251
+ if (_this.procOpinion.content.length > 200) {
251
252
  return this.$message.error(
252
253
  _this.$t('bpm.opinion.opinion_content_beyond')
253
254
  );
@@ -644,30 +644,36 @@ 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
- 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);
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
+ });
671
677
  });
672
678
  };
673
679