eoss-mobiles 0.2.8 → 0.2.10

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.
Files changed (39) hide show
  1. package/lib/checkbox.js +2 -2
  2. package/lib/eoss-mobile.common.js +359 -92
  3. package/lib/flow.js +128 -84
  4. package/lib/index.js +1 -1
  5. package/lib/picker.js +2 -2
  6. package/lib/pull-refresh.js +305 -0
  7. package/lib/radio.js +2 -2
  8. package/lib/selector.js +12 -9
  9. package/lib/swipe.js +327 -0
  10. package/lib/table.js +11 -11
  11. package/lib/theme-chalk/index.css +1 -1
  12. package/lib/theme-chalk/pull-refresh.css +0 -0
  13. package/lib/theme-chalk/selector.css +1 -1
  14. package/lib/theme-chalk/swipe.css +0 -0
  15. package/lib/utils/axios.js +2 -2
  16. package/package.json +1 -1
  17. package/packages/flow/src/components/Handle.vue +12 -4
  18. package/packages/flow/src/components/Message.vue +5 -1
  19. package/packages/flow/src/components/Opinion.vue +6 -2
  20. package/packages/flow/src/components/Reject.vue +7 -1
  21. package/packages/flow/src/components/StartFlow.vue +9 -3
  22. package/packages/flow/src/components/TaskRead.vue +12 -4
  23. package/packages/flow/src/components/taskUnionExamine.vue +17 -16
  24. package/packages/pull-refresh/index.js +5 -0
  25. package/packages/pull-refresh/src/main.vue +31 -0
  26. package/packages/selector/src/selector-tree.vue +2 -0
  27. package/packages/swipe/index.js +5 -0
  28. package/packages/swipe/src/main.vue +42 -0
  29. package/packages/theme-chalk/lib/index.css +1 -1
  30. package/packages/theme-chalk/lib/pull-refresh.css +0 -0
  31. package/packages/theme-chalk/lib/selector.css +1 -1
  32. package/packages/theme-chalk/lib/swipe.css +0 -0
  33. package/packages/theme-chalk/src/flow.scss +1 -0
  34. package/packages/theme-chalk/src/index.scss +2 -0
  35. package/packages/theme-chalk/src/pull-refresh.scss +0 -0
  36. package/packages/theme-chalk/src/selector.scss +6 -0
  37. package/packages/theme-chalk/src/swipe.scss +0 -0
  38. package/src/index.js +10 -4
  39. package/src/utils/axios.js +2 -2
@@ -460,6 +460,10 @@ export default {
460
460
  esign: {
461
461
  type: Boolean,
462
462
  default: false
463
+ },
464
+ userId: {
465
+ type: String,
466
+ default: ''
463
467
  }
464
468
  },
465
469
  data() {
@@ -692,7 +696,8 @@ export default {
692
696
  processDefinitionId,
693
697
  pendingId,
694
698
  opinion: this.form.opinion,
695
- taskAction: 'complete'
699
+ taskAction: 'complete',
700
+ userId: this.userId
696
701
  };
697
702
  let formData = new FormData();
698
703
  if (this.form.isImageOpinion == 1) {
@@ -859,6 +864,7 @@ export default {
859
864
  _that.form.processDefinitionId = taskExamineInfo.processDefinitionId;
860
865
  _that.form.isSubFlow = taskExamineInfo.isSubFlow;
861
866
  _that.form.nodeId = taskExamineInfo.nodeId;
867
+ _that.form.userId = _that.userId;
862
868
  _that.form.nextNodeId =
863
869
  _that.form.nextOperate == 0 || _that.form.nextOperate == 1
864
870
  ? _that.form.nextNodeId || nodeInfoMapInfo.nodeExtAttr.defaultNextNode
@@ -1126,7 +1132,8 @@ export default {
1126
1132
  ? that.baseUrl + getHandleInfoHtml
1127
1133
  : getHandleInfoHtml,
1128
1134
  params: {
1129
- pendingId: that.pendingId
1135
+ pendingId: that.pendingId,
1136
+ userId: that.userId
1130
1137
  }
1131
1138
  }).then(res => {
1132
1139
  if (res.status == 'success') {
@@ -1317,7 +1324,7 @@ export default {
1317
1324
  url: this.baseUrl
1318
1325
  ? this.baseUrl + toStartTaskReadHtml
1319
1326
  : toStartTaskReadHtml,
1320
- params: { pendingId: this.pendingId }
1327
+ params: { pendingId: this.pendingId, userId: this.userId }
1321
1328
  })
1322
1329
  .then(res => {
1323
1330
  const {
@@ -1353,7 +1360,8 @@ export default {
1353
1360
  nextNodeId: res,
1354
1361
  taskId: this.processObj.taskExamine.taskId,
1355
1362
  pendingId: this.pendingId,
1356
- businessId: this.taskExamineInfo.businessId
1363
+ businessId: this.taskExamineInfo.businessId,
1364
+ userId: this.userId
1357
1365
  }
1358
1366
  }).then(res => {
1359
1367
  this.$toast.clear();
@@ -63,7 +63,11 @@ export default {
63
63
  type: Boolean,
64
64
  default: true,
65
65
  },
66
- baseUrl:String
66
+ baseUrl:String,
67
+ userId:{
68
+ type:String,
69
+ default:''
70
+ }
67
71
  },
68
72
  data() {
69
73
  return {
@@ -135,6 +135,10 @@ export default {
135
135
  esign: {
136
136
  type: Boolean,
137
137
  default: false
138
+ },
139
+ userId: {
140
+ type: String,
141
+ default: ''
138
142
  }
139
143
  },
140
144
  // components: {
@@ -171,7 +175,7 @@ export default {
171
175
  this.$emit('onInputOpintion', {
172
176
  opinion: this.opinion,
173
177
  isImageOpinion,
174
- file:info.file
178
+ file: info.file
175
179
  });
176
180
  },
177
181
  handleChange() {
@@ -190,7 +194,7 @@ export default {
190
194
  const _that = this;
191
195
  request({
192
196
  url: _that.baseUrl ? _that.baseUrl + commonOpion : commonOpion,
193
- params: {}
197
+ params: { userId: this.userId }
194
198
  }).then(res => {
195
199
  if (res.status == 'success') {
196
200
  this.opinionList = res.data.list;
@@ -57,6 +57,10 @@ export default {
57
57
  esign: {
58
58
  type: Boolean,
59
59
  default: false
60
+ },
61
+ userId:{
62
+ type:String,
63
+ default:''
60
64
  }
61
65
  },
62
66
  data() {
@@ -131,6 +135,7 @@ export default {
131
135
  formData.append('file', this.file);
132
136
  }
133
137
  formData.append('pendingId', this.pendingId);
138
+ this.form.userId = this.userId
134
139
  for (let key in this.form) {
135
140
  if (this.form[key] !== '' && this.form[key] !== undefined) {
136
141
  formData.append(key, this.form[key]);
@@ -179,7 +184,8 @@ export default {
179
184
  params: {
180
185
  pendingId: this.pendingId,
181
186
  isSinglePage: false,
182
- opinion: this.form.opinion
187
+ opinion: this.form.opinion,
188
+ userId: this.userId
183
189
  }
184
190
  }).then(res => {
185
191
  if (res.status == 'success') {
@@ -138,6 +138,10 @@ export default {
138
138
  esign: {
139
139
  type: Boolean,
140
140
  default: false
141
+ },
142
+ userId:{
143
+ type:String,
144
+ default:''
141
145
  }
142
146
  },
143
147
  data() {
@@ -278,7 +282,8 @@ export default {
278
282
  userId: sessionStorage.getItem('userId'),
279
283
  notificationMsg: this.form.notificationMsg,
280
284
  loginType: 2, //登录方式
281
- isImageOpinion:this.form.isImageOpinion
285
+ isImageOpinion:this.form.isImageOpinion,
286
+ userId: this.userId
282
287
  };
283
288
  if (this.beforeSubmit) {
284
289
  this.beforeSubmit(info);
@@ -405,7 +410,7 @@ export default {
405
410
  return new Promise(function(resolve, reiect) {
406
411
  request({
407
412
  url: that.apiBaseUrl ? that.apiBaseUrl + toStartFlow : toStartFlow,
408
- params: res
413
+ params: {...res,userId:this.userId}
409
414
  }).then(res => {
410
415
  if (res.rCode == 0) {
411
416
  res.results.nodeExtr.submitTipsMsg &&
@@ -467,7 +472,8 @@ export default {
467
472
  params: {
468
473
  processDefinitionId: this.flowObj.processDefinitionId,
469
474
  nodeId: res,
470
- taskId: this.processObj.taskId
475
+ taskId: this.processObj.taskId,
476
+ userId: this.userId
471
477
  }
472
478
  }).then(res => {
473
479
  this.$toast.clear();
@@ -131,6 +131,10 @@ export default {
131
131
  paddingTop: {
132
132
  type: [String, Number],
133
133
  default: 0
134
+ },
135
+ userId:{
136
+ type:String,
137
+ default:''
134
138
  }
135
139
  },
136
140
  computed: {
@@ -203,7 +207,8 @@ export default {
203
207
  opinion,
204
208
  pendingId,
205
209
  isSubFlow: taskExamine.isSubFlow,
206
- isSinglePage: taskExamine.isSinglePage
210
+ isSinglePage: taskExamine.isSinglePage,
211
+ userId: this.userId
207
212
  }
208
213
  };
209
214
  request(params)
@@ -267,7 +272,8 @@ export default {
267
272
  const _that = this;
268
273
  let params = {
269
274
  pendingId: this.pendingId,
270
- taskAction: _that.newType
275
+ taskAction: _that.newType,
276
+ userId: _that.userId
271
277
  };
272
278
  if (_that.newType != 'taskReadAndEnd') delete params.taskAction;
273
279
 
@@ -321,7 +327,8 @@ export default {
321
327
  notificationMsg: this.form.notificationMsg,
322
328
  isImageOpinion: 0,
323
329
  loginType: 2,
324
- taskAction: this.type
330
+ taskAction: this.type,
331
+ userId: this.userId
325
332
  }
326
333
  };
327
334
  if (this.beforeSubmit) {
@@ -354,7 +361,7 @@ export default {
354
361
  url: this.baseUrl
355
362
  ? this.baseUrl + getHandleInfoHtml
356
363
  : getHandleInfoHtml,
357
- params: { pendingId: this.pendingId }
364
+ params: { pendingId: this.pendingId,userId: this.userId }
358
365
  }).then(res => {
359
366
  let {
360
367
  status,
@@ -417,6 +424,7 @@ export default {
417
424
  currentOrgProcessKey: processDefinitionId,
418
425
  noticeType: this.form.notificationMsgType,
419
426
  taskAction: 'create',
427
+ userId: this.userId,
420
428
  // notificationMsg: this.form.notificationMsg,
421
429
  nextReadUserId: ids
422
430
  }
@@ -22,7 +22,6 @@
22
22
  ? 'enterprise,employee'
23
23
  : 'enterprise'
24
24
  "
25
- required
26
25
  :param="params"
27
26
  :baseUrl="apiBaseUrl"
28
27
  :paddingTop="paddingTop"
@@ -60,7 +59,6 @@
60
59
  ? 'enterprise,department'
61
60
  : 'enterprise'
62
61
  "
63
- required
64
62
  :baseUrl="apiBaseUrl"
65
63
  :paddingTop="paddingTop"
66
64
  :param="otherParams"
@@ -111,6 +109,7 @@ export default {
111
109
  inevitableNode: { type: String, default: '' },
112
110
  appId: { type: String, default: '' },
113
111
  defaultOpinion: { type: String, default: '' },
112
+ userId:{type:String,default:''},
114
113
  // disabled: { type: Boolean, default: false },
115
114
  // multiple: { type: Boolean, default: true },
116
115
  baseUrl: { type: String, default: '' },
@@ -202,7 +201,8 @@ export default {
202
201
  url: isCanStartSubFlow,
203
202
  params: {
204
203
  appId: this.appId,
205
- inevitableNode: this.inevitableNode
204
+ inevitableNode: this.inevitableNode,
205
+ userId: this.userId
206
206
  },
207
207
  type: 'post',
208
208
  headers: { Accept: 'application/json,text/plain' }
@@ -221,7 +221,8 @@ export default {
221
221
  //获取通知信息
222
222
  getMessage() {
223
223
  let params = {
224
- pendingId: this.pendingId
224
+ pendingId: this.pendingId,
225
+ userId: this.userId
225
226
  };
226
227
  request({ url: getNotificationMsg, params, methods: 'post' })
227
228
  .then(res => {
@@ -319,7 +320,7 @@ export default {
319
320
  : this.type == 'twoOfficesDispatch'
320
321
  ? toTwoOfficesDispatch
321
322
  : toTaskUnionExamine,
322
- params: { pendingId: this.pendingId },
323
+ params: { pendingId: this.pendingId,userId: this.userId },
323
324
  headers: { Accept: 'application/json,text/plain' }
324
325
  };
325
326
  this.$toast.loading({
@@ -431,18 +432,17 @@ export default {
431
432
  }
432
433
  if (
433
434
  (type == 'takeAdvice' &&
434
- (nextCurrentOrgObj == '' ||
435
- (nextCurrentOrgObj == null && isHideCurrentOrg == 0))) ||
436
- ((isHideOtherOrg == 0 && nextOtherOrgObj == '') ||
437
- nextOtherOrgObj == null)
435
+ (!nextCurrentOrgObj && isHideCurrentOrg == 0)) &&
436
+ (isHideOtherOrg == 0 && !nextOtherOrgObj)
438
437
  ) {
439
438
  return this.$toast('请选择处理对象!');
440
- } else if (
441
- isHideCurrentOrg == 0 &&
442
- (nextOtherOrgObj == '' || nextOtherOrgObj == null)
443
- ) {
444
- return this.$toast('请选择处理对象!');
445
- }
439
+ }
440
+ // else if (
441
+ // isHideCurrentOrg == 0 &&
442
+ // (nextOtherOrgObj == '' || nextOtherOrgObj == null)
443
+ // ) {
444
+ // return this.$toast('请选择处理对象!');
445
+ // }
446
446
  let info = {
447
447
  opinion,
448
448
  pendingId,
@@ -456,7 +456,8 @@ export default {
456
456
  notificationType: noticeType.join(','),
457
457
  choiceDeptId,
458
458
  isSubFlow,
459
- choiceOrgId
459
+ choiceOrgId,
460
+ userId: this.userId
460
461
  }
461
462
  let formData = new FormData();
462
463
  if (isImageOpinion == 1) {
@@ -0,0 +1,5 @@
1
+ import EmPullRefresh from './src/main';
2
+
3
+ EmPullRefresh.install = Vue => Vue.component(EmPullRefresh.name, EmPullRefresh);
4
+
5
+ export default EmPullRefresh;
@@ -0,0 +1,31 @@
1
+ <template>
2
+ <van-pull-refresh v-model="isLoading" v-bind="$attrs" v-on="$listeners">
3
+ <template v-for="(index, name) in $slots" :slot="name">
4
+ <slot :name="name" />
5
+ </template>
6
+ </van-pull-refresh>
7
+ </template>
8
+
9
+ <script>
10
+ export default {
11
+ name: 'EmPullRefresh',
12
+ props: {
13
+ value: {
14
+ type: Boolean,
15
+ default: false
16
+ }
17
+ },
18
+ computed: {
19
+ isLoading: {
20
+ set() {
21
+ return this.value;
22
+ },
23
+ get(val) {
24
+ return val;
25
+ }
26
+ }
27
+ }
28
+ };
29
+ </script>
30
+
31
+ <style></style>
@@ -22,6 +22,7 @@
22
22
  <em-tabs
23
23
  v-show="newTabs.length > 1 && !showTree"
24
24
  @click="handleClick"
25
+ class="em-flow-tabs"
25
26
  type="card"
26
27
  style="margin:10px 0px"
27
28
  >
@@ -679,6 +680,7 @@ export default {
679
680
  this.$emit('update:selectList', this.list);
680
681
  }
681
682
  this.personnel = res.results;
683
+ console.log(this.personnel,'this.personnel')
682
684
  let _this = this;
683
685
  this.list.filter(r => {
684
686
  _this.personnel.find(i => {
@@ -0,0 +1,5 @@
1
+ import EmSwipe from './src/main';
2
+
3
+ EmSwipe.install = Vue => Vue.component(EmSwipe.name, EmSwipe);
4
+
5
+ export default EmSwipe;
@@ -0,0 +1,42 @@
1
+ <template>
2
+ <van-swipe ref="swipe" v-bind="$attrs" v-on="$listeners">
3
+ <van-swipe-item v-for="(item, index) in contents" :key="index">
4
+ <div @click="handleClick(item,index)" v-if="item.render" v-html="item.render(item)"></div>
5
+ <img v-else @click="handleClick(item,index)" :src="item.url" style="width: 100%; height: 100%;" />
6
+ </van-swipe-item>
7
+ <template v-for="(index, name) in $slots" :slot="name">
8
+ <slot :name="name" />
9
+ </template>
10
+ </van-swipe>
11
+ </template>
12
+
13
+ <script>
14
+ export default {
15
+ name: 'EmSwipe',
16
+ props: {
17
+ contents: {
18
+ type: Array,
19
+ default: () => []
20
+ }
21
+ },
22
+ methods:{
23
+ resize() {
24
+ this.$refs.swipe.resize()
25
+ },
26
+ prev() {
27
+ this.$refs.swipe.prev()
28
+ },
29
+ next() {
30
+ this.$refs.swipe.next()
31
+ },
32
+ swipeTo(index,options) {
33
+ this.$refs.swipe.swipeTo(index,options)
34
+ },
35
+ handleClick(info,index){
36
+ this.$emit('click',info,index)
37
+ },
38
+ }
39
+ };
40
+ </script>
41
+
42
+ <style></style>