eoss-ui 0.7.10 → 0.7.12

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 (60) hide show
  1. package/lib/button-group.js +108 -102
  2. package/lib/button.js +108 -102
  3. package/lib/calogin.js +108 -102
  4. package/lib/checkbox-group.js +109 -103
  5. package/lib/config/api.js +6 -2
  6. package/lib/data-table-form.js +109 -103
  7. package/lib/data-table.js +110 -104
  8. package/lib/date-picker.js +108 -102
  9. package/lib/dialog.js +108 -102
  10. package/lib/eoss-ui.common.js +1180 -802
  11. package/lib/flow-group.js +108 -102
  12. package/lib/flow-list.js +117 -110
  13. package/lib/flow.js +998 -619
  14. package/lib/form.js +116 -106
  15. package/lib/handle-user.js +109 -103
  16. package/lib/handler.js +109 -103
  17. package/lib/icon.js +109 -103
  18. package/lib/index.js +1 -1
  19. package/lib/input-number.js +108 -102
  20. package/lib/input.js +108 -102
  21. package/lib/login.js +163 -164
  22. package/lib/main.js +150 -142
  23. package/lib/nav.js +108 -102
  24. package/lib/notify.js +111 -105
  25. package/lib/page.js +108 -102
  26. package/lib/pagination.js +108 -102
  27. package/lib/player.js +108 -102
  28. package/lib/qr-code.js +108 -102
  29. package/lib/radio-group.js +109 -103
  30. package/lib/retrial-auth.js +111 -105
  31. package/lib/select-ganged.js +109 -103
  32. package/lib/select.js +109 -103
  33. package/lib/selector-panel.js +126 -120
  34. package/lib/selector.js +110 -104
  35. package/lib/sizer.js +110 -104
  36. package/lib/steps.js +108 -102
  37. package/lib/switch.js +108 -102
  38. package/lib/table-form.js +108 -102
  39. package/lib/tabs.js +108 -102
  40. package/lib/tips.js +109 -103
  41. package/lib/tree-group.js +108 -102
  42. package/lib/tree.js +109 -103
  43. package/lib/upload.js +118 -112
  44. package/lib/wujie.js +108 -102
  45. package/lib/wxlogin.js +108 -102
  46. package/package.json +1 -1
  47. package/packages/flow/src/component/Circulate.vue +2 -0
  48. package/packages/flow/src/component/FileList.vue +1 -0
  49. package/packages/flow/src/component/FreeCirculation.vue +231 -0
  50. package/packages/flow/src/component/taskUnionExamine.vue +2 -0
  51. package/packages/flow/src/freeStartFlow.vue +1 -0
  52. package/packages/flow/src/main.vue +29 -4
  53. package/packages/flow/src/selectUser.vue +5 -1
  54. package/packages/flow/src/startTaskRead.vue +1 -0
  55. package/packages/flow/src/supervise.vue +4 -4
  56. package/packages/form/src/main.vue +6 -2
  57. package/packages/login/src/resetPassword.vue +3 -8
  58. package/packages/main/src/simplicity/userinfo.vue +1 -0
  59. package/src/config/api.js +9 -2
  60. package/src/index.js +1 -1
@@ -122,6 +122,14 @@
122
122
  :news-info="nextNode.notificationMsg"
123
123
  @cancel="closeProcess($event)"
124
124
  />
125
+
126
+ <FreeCirculation
127
+ v-else-if="typeCode == 'freeCirculation'"
128
+ :appId="resetAppId"
129
+ :params="param"
130
+ :formLabelPosition="formLabelPosition"
131
+ :simpleTips="simpleTips"
132
+ />
125
133
  <Supervise
126
134
  :businessId="businessId"
127
135
  :appId="resetAppId"
@@ -213,6 +221,7 @@
213
221
  multiple
214
222
  mix
215
223
  :disableds="otherOrgDisabledObjId"
224
+ :where="{ filid: 'other' }"
216
225
  @change="disposeAppUnit($event, 'nextOtherOrgObjSelect')"
217
226
  :types="foreignOrgSelectorTabs"
218
227
  :params="foreignOrgSelectorParams"
@@ -528,6 +537,7 @@
528
537
  :nextUser="nextOtherOrgObjSelect"
529
538
  multiple
530
539
  mix
540
+ :where="{ filid: 'other' }"
531
541
  :disableds="otherOrgDisabledObjId"
532
542
  @change="disposeAppUnit($event, 'nextOtherOrgObjSelect')"
533
543
  :types="foreignOrgSelectorTabs"
@@ -1130,6 +1140,7 @@ import FreeStartFlow from './freeStartFlow.vue';
1130
1140
  import SelectUser from './selectUser.vue';
1131
1141
  import Supervise from './supervise.vue';
1132
1142
  import circulate from './component/Circulate.vue';
1143
+ import FreeCirculation from './component/FreeCirculation.vue';
1133
1144
  import {
1134
1145
  findSysCodes,
1135
1146
  getHandleInfoHtml,
@@ -1171,7 +1182,8 @@ export default {
1171
1182
  circulate,
1172
1183
  Preset,
1173
1184
  Reset,
1174
- Supervise
1185
+ Supervise,
1186
+ FreeCirculation
1175
1187
  },
1176
1188
  props: {
1177
1189
  showShrink: { type: Boolean, default: true },
@@ -1584,7 +1596,12 @@ export default {
1584
1596
  this.$emit('endMessageChange', this.endMessage);
1585
1597
  },
1586
1598
  getInfo() {
1587
- if (this.typeCode == 'supervise' || this.typeCode == 'read') return;
1599
+ if (
1600
+ this.typeCode == 'supervise' ||
1601
+ this.typeCode == 'read' ||
1602
+ this.typeCode == 'freeCirculation'
1603
+ )
1604
+ return;
1588
1605
  if (
1589
1606
  this.showCirculate != undefined &&
1590
1607
  !this.showCirculate &&
@@ -1608,7 +1625,15 @@ export default {
1608
1625
  }
1609
1626
  },
1610
1627
  handleClickCirculate() {
1611
- this.$refs.circulate.subMit();
1628
+ if (this.beforeSubmit == undefined) {
1629
+ this.$refs.circulate.subMit();
1630
+ } else {
1631
+ this.beforeSubmit(1)
1632
+ .then((next) => {
1633
+ this.$refs.circulate.subMit();
1634
+ })
1635
+ .catch((e) => {});
1636
+ }
1612
1637
  },
1613
1638
  getNodeInfoForStartFlow(processDefinitionId) {
1614
1639
  let params = {
@@ -2943,7 +2968,7 @@ export default {
2943
2968
  foreignOrgparams[i] == 'my'
2944
2969
  ? choiceOrgId
2945
2970
  : foreignOrgparams[i],
2946
- nofilid:foreignOrgparams[i] == 'other'?1 : 0,
2971
+ nofilid: foreignOrgparams[i] == 'other' ? 1 : 0
2947
2972
  };
2948
2973
  });
2949
2974
  }
@@ -67,7 +67,7 @@
67
67
  :tabs="tabs"
68
68
  :title="title"
69
69
  :classify="classify"
70
- :collapse-tags="2"
70
+ :collapse-tags="selectorTags"
71
71
  :mix="mix"
72
72
  :min="isUnionSeal ? 1 : 0"
73
73
  :disabled="!isCustomUser || isCurrentNodeForbiddenChangeCandidate == 1"
@@ -127,6 +127,10 @@ export default {
127
127
  type: Boolean,
128
128
  default: false
129
129
  },
130
+ selectorTags:{
131
+ type:[Number,undefined],
132
+ default:2
133
+ },
130
134
  isCustomUser: { type: Number, default: 1 },
131
135
  isCurrentNodeForbiddenChangeCandidate: { type: Number, default: 0 },
132
136
  options: {
@@ -5,6 +5,7 @@
5
5
  element-loading-text="加载中..."
6
6
  element-loading-spinner="el-icon-loading"
7
7
  element-loading-background="rgba(255, 255,255, 0.8)"
8
+ :style="`height: ${typeCode == 'read'? '100%' : 'unset'};`"
8
9
  >
9
10
  <el-form
10
11
  ref="nextNode"
@@ -87,10 +87,10 @@ export default {
87
87
  },
88
88
  methods: {
89
89
  subProcess() {
90
- // if (this.nextNode.noticeType.length == 0) {
91
- // this.$message.warning('请选择通知方式');
92
- // return;
93
- // }
90
+ if (this.nextNode.noticeType.length == 0) {
91
+ this.$message.warning('请选择通知方式');
92
+ return;
93
+ }
94
94
  if (this.nextNode.noticeType.length != 0 && !this.nextNode.notifyMessage) {
95
95
  this.$message.warning('请填写通知消息内容');
96
96
  return;
@@ -2617,7 +2617,11 @@ export default {
2617
2617
  }
2618
2618
  },
2619
2619
  active: Array,
2620
- resetActive: Boolean
2620
+ resetActive: Boolean,
2621
+ resetValue: {
2622
+ type: Boolean,
2623
+ default: true
2624
+ }
2621
2625
  },
2622
2626
  data() {
2623
2627
  return {
@@ -3263,7 +3267,7 @@ export default {
3263
3267
  res.event === 'cancel' ||
3264
3268
  res.type === 'reset'
3265
3269
  ) {
3266
- this.resetFields();
3270
+ this.resetValue && this.resetFields();
3267
3271
  if (this.closeDialog && this.esDialog) {
3268
3272
  this.esDialog.handleClose(res.reload || false);
3269
3273
  }
@@ -352,7 +352,7 @@ export default {
352
352
  },
353
353
  data() {
354
354
  return {
355
- activeIndex: '6',
355
+ activeIndex: '0',
356
356
  checkPassword: null,
357
357
  checkPasswordMsg: null,
358
358
  btnText: '获取验证码',
@@ -368,15 +368,10 @@ export default {
368
368
  if (this.type) {
369
369
  let types = this.type.split(',');
370
370
  if (types.length) {
371
- types.forEach((item) => {
372
- if (item != '0' && (item == '11' || item == '6')) {
373
- this.activeIndex = item;
374
- return;
375
- }
376
- });
371
+ this.activeIndex = types[0];
377
372
  }
378
373
  } else {
379
- this.activeIndex = this.operationCheckCode ? '0' : '';
374
+ this.activeIndex = '0';
380
375
  }
381
376
  },
382
377
  destroyed() {
@@ -8,6 +8,7 @@
8
8
  :autocomplete="false"
9
9
  :rules="formRules"
10
10
  :events="events"
11
+ :resetValue="false"
11
12
  @submit="handleFormSubmit"
12
13
  >
13
14
  <template slot="other">
package/src/config/api.js CHANGED
@@ -1,7 +1,7 @@
1
1
  const flowPendingPrefix =
2
2
  window.flowPendingPrefix ||
3
3
  localStorage.getItem('flowPendingPrefix') ||
4
- '/oa';
4
+ '/bpm';
5
5
  // 登录
6
6
  export const doCaLogin = '/sso2/signIn/auth/doCaLogin'; // ca登录认证
7
7
  export const doUserLogin = '/sso2/signIn/auth/doUserLogin'; // 一般的账号密码认证含验证码验证
@@ -305,4 +305,11 @@ export const endFlowAndStartTaskCircularRead =
305
305
  export const getNodeInfoForStart =
306
306
  flowPendingPrefix + '/task/taskHandle/getNodeInfoForStart.dhtml';
307
307
  export const freeStartFlow = '/bpm/bpmBackend/freeStartFlow';
308
- export const getUrgencyLevelChangedNotificationType = '/bpm/bpmBackend/getUrgencyLevelChangedNotificationType';
308
+ export const getUrgencyLevelChangedNotificationType =
309
+ '/bpm/bpmBackend/getUrgencyLevelChangedNotificationType';
310
+ // 自由发起传阅查询
311
+ export const toFreeTaskCircularRead = '/bpm/bpmBackend/toFreeTaskCircularRead';
312
+ // 自由发起传阅提交
313
+ export const freeTaskCircularRead =
314
+ '/bpm/bpmBackend/freeTaskCircularRead';
315
+
package/src/index.js CHANGED
@@ -125,7 +125,7 @@ if (typeof window !== 'undefined' && window.Vue) {
125
125
  }
126
126
 
127
127
  export default {
128
- version: '0.7.10',
128
+ version: '0.7.12',
129
129
  install,
130
130
  Button,
131
131
  ButtonGroup,