eoss-ui 0.6.92 → 0.6.94

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 (63) hide show
  1. package/lib/button-group.js +79 -77
  2. package/lib/button.js +79 -77
  3. package/lib/calogin.js +79 -77
  4. package/lib/checkbox-group.js +79 -77
  5. package/lib/config/api.js +2 -1
  6. package/lib/data-table-form.js +79 -77
  7. package/lib/data-table.js +108 -94
  8. package/lib/date-picker.js +79 -77
  9. package/lib/dialog.js +79 -77
  10. package/lib/eoss-ui.common.js +1086 -941
  11. package/lib/flow-group.js +79 -77
  12. package/lib/flow-list.js +84 -82
  13. package/lib/flow.js +952 -826
  14. package/lib/form.js +79 -77
  15. package/lib/handle-user.js +80 -78
  16. package/lib/handler.js +80 -78
  17. package/lib/icon.js +80 -78
  18. package/lib/index.js +1 -1
  19. package/lib/input-number.js +79 -77
  20. package/lib/input.js +79 -77
  21. package/lib/login.js +82 -80
  22. package/lib/main.js +122 -114
  23. package/lib/nav.js +79 -77
  24. package/lib/notify.js +82 -80
  25. package/lib/page.js +79 -77
  26. package/lib/pagination.js +79 -77
  27. package/lib/player.js +79 -77
  28. package/lib/qr-code.js +79 -77
  29. package/lib/radio-group.js +79 -77
  30. package/lib/retrial-auth.js +81 -79
  31. package/lib/select-ganged.js +79 -77
  32. package/lib/select.js +86 -80
  33. package/lib/selector-panel.js +79 -77
  34. package/lib/selector.js +79 -77
  35. package/lib/sizer.js +79 -77
  36. package/lib/steps.js +79 -77
  37. package/lib/switch.js +79 -77
  38. package/lib/table-form.js +79 -77
  39. package/lib/tabs.js +79 -77
  40. package/lib/tips.js +80 -78
  41. package/lib/tree-group.js +79 -77
  42. package/lib/tree.js +84 -80
  43. package/lib/upload.js +92 -95
  44. package/lib/wujie.js +79 -77
  45. package/lib/wxlogin.js +79 -77
  46. package/package.json +2 -2
  47. package/packages/data-table/src/column.vue +0 -2
  48. package/packages/data-table/src/main.vue +12 -3
  49. package/packages/flow/src/component/Circulate.vue +7 -4
  50. package/packages/flow/src/component/SendMsg.vue +5 -4
  51. package/packages/flow/src/component/taskUnionExamine.vue +4 -3
  52. package/packages/flow/src/main.vue +125 -61
  53. package/packages/flow/src/processForm.vue +38 -5
  54. package/packages/flow/src/processReject.vue +12 -9
  55. package/packages/flow/src/reset.vue +4 -4
  56. package/packages/flow/src/startTaskRead.vue +1 -4
  57. package/packages/flow/src/supervise.vue +16 -9
  58. package/packages/main/src/public/search.vue +7 -1
  59. package/packages/select/src/main.vue +7 -3
  60. package/packages/tree/src/main.vue +2 -1
  61. package/packages/upload/src/main.vue +1 -6
  62. package/src/config/api.js +1 -0
  63. package/src/index.js +1 -1
@@ -26,7 +26,7 @@
26
26
  disabled
27
27
  />
28
28
  </el-form-item>
29
- <el-form-item prop="noticeType" label="通知方式">
29
+ <el-form-item v-show="nextNode.notificationType.length > 0" prop="noticeType" label="通知方式">
30
30
  <el-checkbox-group v-model="nextNode.noticeType">
31
31
  <el-checkbox
32
32
  v-for="(item, index) of nextNode.notificationType"
@@ -38,7 +38,7 @@
38
38
  </el-checkbox-group>
39
39
  </el-form-item>
40
40
  <!-- v-show="nextNode.noticeType.length != 0" -->
41
- <el-form-item prop="notifyMessage" label="通知消息">
41
+ <el-form-item v-show="nextNode.noticeType.length != 0" prop="notifyMessage" label="通知消息">
42
42
  <es-input
43
43
  style="
44
44
  border-color: #ccc;
@@ -87,11 +87,11 @@ export default {
87
87
  },
88
88
  methods: {
89
89
  subProcess() {
90
- if (this.nextNode.noticeType.length == 0) {
91
- this.$message.warning('请选择通知方式');
92
- return;
93
- }
94
- if (!this.nextNode.notifyMessage) {
90
+ // if (this.nextNode.noticeType.length == 0) {
91
+ // this.$message.warning('请选择通知方式');
92
+ // return;
93
+ // }
94
+ if (this.nextNode.noticeType.length != 0 && !this.nextNode.notifyMessage) {
95
95
  this.$message.warning('请填写通知消息内容');
96
96
  return;
97
97
  }
@@ -132,13 +132,20 @@ export default {
132
132
  })
133
133
  .then((res) => {
134
134
  this.loading.close();
135
- if (res.rCode == 0) {
135
+ if (res.rCode == 0 || res.status == "success") {
136
136
  this.nextNode = { ...this.nextNode, ...res.results };
137
+ let arr = []
137
138
  this.nextNode.noticeType =
138
139
  res.results.defaultNotificationType.split(',');
140
+ this.nextNode.notificationType.map(x => {
141
+ if (this.nextNode.noticeType.indexOf(x.cciValue) != -1) {
142
+ arr.push(x.cciValue);
143
+ }
144
+ })
145
+ this.nextNode.noticeType = arr
139
146
  } else {
140
147
  this.$message({
141
- message: res.rMsg,
148
+ message: res.msg || res.message,
142
149
  type: 'error'
143
150
  });
144
151
  this.$emit('cancel');
@@ -232,7 +232,7 @@ export default {
232
232
  }
233
233
  },
234
234
  beforeCreate() {
235
- this.handleSearchAll = debounce(500, (res) => {
235
+ this.handleSearchAll = debounce(1000, (res) => {
236
236
  this.searchAll(res);
237
237
  });
238
238
  this.handleSearchd = debounce(500, (obj, index) => {
@@ -321,6 +321,12 @@ export default {
321
321
  for (let i = 0; i < this.types.length; i++) {
322
322
  let item = this.types[i];
323
323
  if (keyWords && !this.hides.includes(item.name) && !item.hide) {
324
+ this.types[i].records = [];
325
+ this.types[i].totalCount = 0;
326
+ this.types[i].pageCount = 1;
327
+ this.types[i].pageNum = 0;
328
+ this.$set(this.loadings, item.id || String(i), true);
329
+ this.$set(this.noMore, item.id || String(i), false);
324
330
  if (item.name == '菜单' && this.menus.length) {
325
331
  this.isLoading = false;
326
332
  this.types[i].records = this.searchData(this.menus, keyWords);
@@ -658,6 +658,7 @@ export default {
658
658
  } else {
659
659
  dom = [this.getLabel(this.models, this.results)];
660
660
  }
661
+ console.log('dom', dom);
661
662
  return h(
662
663
  'div',
663
664
  {
@@ -667,9 +668,12 @@ export default {
667
668
  'es-textarea__inner el-textarea__inner': this.multiple,
668
669
  'el-input__inner es-input__inner': !this.multiple
669
670
  }
670
- ]
671
+ ],
672
+ domProps: {
673
+ innerHTML: dom.join(this.symbol)
674
+ }
671
675
  },
672
- [dom.join(this.symbol)]
676
+ []
673
677
  );
674
678
  }
675
679
  let doms = [];
@@ -751,7 +755,7 @@ export default {
751
755
  tree:
752
756
  typeof this.tree === 'boolean'
753
757
  ? this.tree
754
- : { ...this.tree, lazy: this.label },
758
+ : { ...this.tree, lazy: this.lazy },
755
759
  data: this.results,
756
760
  // 父级是否可选
757
761
  parentCheck: this.parentCheck,
@@ -58,6 +58,7 @@
58
58
  :empty-text="!loading ? '暂无数据' : ''"
59
59
  :node-key="nodeKey"
60
60
  :indent="12"
61
+ :lazy="lazy"
61
62
  :data="treeData"
62
63
  :props="defaultProps"
63
64
  :filter-node-method="filterNode"
@@ -218,7 +219,7 @@ export default {
218
219
  //懒加载
219
220
  lazy: {
220
221
  type: Boolean,
221
- default: true
222
+ default: false
222
223
  },
223
224
  onChange: Function,
224
225
  onSearch: Function,
@@ -239,12 +239,7 @@ export default {
239
239
  type: Boolean,
240
240
  default: true
241
241
  },
242
- headers: {
243
- type: Object,
244
- default() {
245
- return util.getStorage();
246
- }
247
- },
242
+ headers: Object,
248
243
  listType: {
249
244
  type: String,
250
245
  default: 'table' // text,table,picture,picture-card
package/src/config/api.js CHANGED
@@ -305,3 +305,4 @@ 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';
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.6.92',
128
+ version: '0.6.94',
129
129
  install,
130
130
  Button,
131
131
  ButtonGroup,