eoss-mobiles 0.2.22 → 0.2.23

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": "eoss-mobiles",
3
- "version": "0.2.22",
3
+ "version": "0.2.23",
4
4
  "description": "eoss内部移动端业务组件",
5
5
  "main": "lib/eoss-mobile.common.js",
6
6
  "files": [
@@ -437,6 +437,7 @@ import Opinion from './Opinion.vue';
437
437
  import Reject from './Reject.vue';
438
438
  import Message from './Message.vue';
439
439
  import FlowMix from '../flowMix';
440
+ import $ from '../../../../src/utils/util'
440
441
  export default {
441
442
  name: 'Handle',
442
443
  inheritAttrs: false,
@@ -701,7 +702,7 @@ export default {
701
702
  pendingId,
702
703
  opinion: this.form.opinion,
703
704
  taskAction: 'complete',
704
- userId: this.userId
705
+ userId: this.userId || $.getStorage('userId')
705
706
  };
706
707
  let formData = new FormData();
707
708
  if (this.form.isImageOpinion == 1) {
@@ -869,7 +870,7 @@ export default {
869
870
  _that.form.processDefinitionId = taskExamineInfo.processDefinitionId;
870
871
  _that.form.isSubFlow = taskExamineInfo.isSubFlow;
871
872
  _that.form.nodeId = taskExamineInfo.nodeId;
872
- _that.form.userId = _that.userId;
873
+ _that.form.userId = _that.userId || $.getStorage('userId');
873
874
  _that.form.nextNodeId =
874
875
  _that.form.nextOperate == 0 || _that.form.nextOperate == 1
875
876
  ? _that.form.nextNodeId || nodeInfoMapInfo.nodeExtAttr.defaultNextNode
@@ -45,6 +45,7 @@ import { taskRejectHtml, toTaskRejectHtml } from '../../../../src/config/api';
45
45
  import request from '../../../../src/utils/http.js';
46
46
  import Opinion from './Opinion.vue';
47
47
  import Message from './Message.vue';
48
+ import $ from '../../../../src/utils/util'
48
49
  export default {
49
50
  name: 'Reject',
50
51
  props: {
@@ -141,7 +142,7 @@ export default {
141
142
  formData.append('file', this.file);
142
143
  }
143
144
  formData.append('pendingId', this.pendingId);
144
- this.form.userId = this.userId;
145
+ this.form.userId = this.userId || $.getStorage('userId');
145
146
  for (let key in this.form) {
146
147
  if (this.form[key] !== '' && this.form[key] !== undefined) {
147
148
  formData.append(key, this.form[key]);
@@ -116,6 +116,7 @@ import request from '../../../../src/utils/http.js';
116
116
  import Opinion from './Opinion.vue';
117
117
  import Message from './Message.vue';
118
118
  import { Dialog } from 'eoss-mobile-vant';
119
+ import $ from '../../../../src/utils/util'
119
120
  export default {
120
121
  name: 'StartFlow',
121
122
  inheritAttrs: false,
@@ -282,7 +283,7 @@ export default {
282
283
  notificationMsg: this.form.notificationMsg,
283
284
  loginType: 2, //登录方式
284
285
  isImageOpinion:this.form.isImageOpinion,
285
- userId: this.userId
286
+ userId: this.userId || $.getStorage('userId')
286
287
  };
287
288
  if (this.beforeSubmit) {
288
289
  this.beforeSubmit(info);
@@ -292,7 +293,6 @@ export default {
292
293
  if (this.form.isImageOpinion == 1) {
293
294
  formData.append('file', this.file);
294
295
  }
295
- formData.append('pendingId', this.pendingId);
296
296
  for (let key in info) {
297
297
  if (info[key] !== '' && info[key] !== undefined) {
298
298
  formData.append(key, info[key]);
@@ -99,6 +99,7 @@ import {
99
99
  import request from '../../../../src/utils/http.js';
100
100
  import Opinion from './Opinion.vue';
101
101
  import Message from './Message.vue';
102
+ import $ from '../../../../src/utils/util'
102
103
  export default {
103
104
  name: 'TaskUnionExamine',
104
105
  props: {
@@ -457,7 +458,7 @@ export default {
457
458
  choiceDeptId,
458
459
  isSubFlow,
459
460
  choiceOrgId,
460
- userId: this.userId
461
+ userId: this.userId || $.getStorage('userId')
461
462
  }
462
463
  let formData = new FormData();
463
464
  if (isImageOpinion == 1) {
package/src/index.js CHANGED
@@ -101,7 +101,7 @@ if (typeof window !== 'undefined' && window.Vue) {
101
101
  }
102
102
 
103
103
  export default {
104
- version: '0.2.22',
104
+ version: '0.2.23',
105
105
  install,
106
106
  Button,
107
107
  ButtonGroup,