eoss-ui 0.6.61 → 0.6.62

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 (57) hide show
  1. package/lib/button-group.js +118 -114
  2. package/lib/button.js +118 -114
  3. package/lib/checkbox-group.js +120 -116
  4. package/lib/config/api.js +3 -1
  5. package/lib/data-table-form.js +120 -116
  6. package/lib/data-table.js +123 -119
  7. package/lib/date-picker.js +118 -114
  8. package/lib/dialog.js +118 -114
  9. package/lib/eoss-ui.common.js +1558 -839
  10. package/lib/flow-group.js +118 -114
  11. package/lib/flow-list.js +165 -127
  12. package/lib/flow.js +1372 -687
  13. package/lib/form.js +120 -116
  14. package/lib/handle-user.js +119 -115
  15. package/lib/handler.js +119 -115
  16. package/lib/icon.js +119 -115
  17. package/lib/index.js +1 -1
  18. package/lib/input-number.js +118 -114
  19. package/lib/input.js +118 -114
  20. package/lib/login.js +131 -127
  21. package/lib/main.js +153 -149
  22. package/lib/nav.js +118 -114
  23. package/lib/notify.js +121 -117
  24. package/lib/page.js +118 -114
  25. package/lib/pagination.js +118 -114
  26. package/lib/player.js +118 -114
  27. package/lib/qr-code.js +118 -114
  28. package/lib/radio-group.js +120 -116
  29. package/lib/retrial-auth.js +121 -117
  30. package/lib/select-ganged.js +120 -116
  31. package/lib/select.js +120 -116
  32. package/lib/selector-panel.js +136 -132
  33. package/lib/selector.js +119 -115
  34. package/lib/sizer.js +120 -116
  35. package/lib/steps.js +118 -114
  36. package/lib/switch.js +118 -114
  37. package/lib/table-form.js +118 -114
  38. package/lib/tabs.js +118 -114
  39. package/lib/tips.js +119 -115
  40. package/lib/tree-group.js +118 -114
  41. package/lib/tree.js +119 -115
  42. package/lib/upload.js +130 -126
  43. package/lib/wujie.js +118 -114
  44. package/lib/wxlogin.js +118 -114
  45. package/package.json +1 -1
  46. package/packages/flow/src/component/Circulate.vue +322 -0
  47. package/packages/flow/src/component/CommonOpinions.vue +3 -2
  48. package/packages/flow/src/component/SendMsg.vue +39 -27
  49. package/packages/flow/src/component/taskUnionExamine.vue +7 -5
  50. package/packages/flow/src/main.vue +109 -20
  51. package/packages/flow/src/processForm.vue +5 -1
  52. package/packages/flow/src/processReject.vue +3 -2
  53. package/packages/flow/src/startTaskRead.vue +3 -2
  54. package/packages/flow/src/supervise.vue +77 -72
  55. package/packages/flow-list/src/main.vue +58 -31
  56. package/src/config/api.js +4 -0
  57. package/src/index.js +1 -1
@@ -8,48 +8,51 @@
8
8
  label-position="left"
9
9
  >
10
10
  <el-form-item prop="pendTitle" label="标题">
11
- <el-input v-model="nextNode.pendTitle" disabled type="textarea" autosize />
11
+ <el-input
12
+ v-model="nextNode.pendTitle"
13
+ disabled
14
+ type="textarea"
15
+ autosize
16
+ />
12
17
  </el-form-item>
13
18
  <el-form-item prop="currentHandleNode" label="当前办理节点">
14
19
  <el-input v-model="nextNode.currentHandleNode" disabled />
15
20
  </el-form-item>
16
21
  <el-form-item prop="pendingUserNames" label="当前办理人">
17
- <el-input type="textarea" autosize v-model="nextNode.pendingUserNames" disabled />
22
+ <el-input
23
+ type="textarea"
24
+ autosize
25
+ v-model="nextNode.pendingUserNames"
26
+ disabled
27
+ />
18
28
  </el-form-item>
19
29
  <el-form-item prop="noticeType" label="通知方式">
20
- <el-checkbox-group v-model="nextNode.noticeType">
21
- <el-checkbox
22
- v-for="(item,index) of nextNode.notificationType"
23
- :key="index"
24
- :label="item.cciValue"
25
- >
26
- {{ item.shortName }}
27
- </el-checkbox>
28
- </el-checkbox-group>
29
- </el-form-item>
30
- <!-- v-show="nextNode.noticeType.length != 0" -->
31
- <el-form-item
32
- prop="notifyMessage"
33
- label="通知消息"
34
- >
35
- <es-input
36
- style="
37
- border-color: #ccc;
38
- padding: 5px;
39
- border-radius: 5px;
40
- font-size: 13px;
41
- "
42
- type="textarea"
43
- v-model="nextNode.notifyMessage"
44
- />
45
- </el-form-item>
46
- <el-form-item style="margin-bottom: 0px">
47
- <div style="text-align: right">
48
- <el-button
49
- type="primary"
50
- size="small"
51
- @click="subProcess()"
30
+ <el-checkbox-group v-model="nextNode.noticeType">
31
+ <el-checkbox
32
+ v-for="(item, index) of nextNode.notificationType"
33
+ :key="index"
34
+ :label="item.cciValue"
52
35
  >
36
+ {{ item.shortName }}
37
+ </el-checkbox>
38
+ </el-checkbox-group>
39
+ </el-form-item>
40
+ <!-- v-show="nextNode.noticeType.length != 0" -->
41
+ <el-form-item prop="notifyMessage" label="通知消息">
42
+ <es-input
43
+ style="
44
+ border-color: #ccc;
45
+ padding: 5px;
46
+ border-radius: 5px;
47
+ font-size: 13px;
48
+ "
49
+ type="textarea"
50
+ v-model="nextNode.notifyMessage"
51
+ />
52
+ </el-form-item>
53
+ <el-form-item style="margin-bottom: 0px">
54
+ <div style="text-align: right">
55
+ <el-button type="primary" size="small" @click="subProcess()">
53
56
  确认
54
57
  </el-button>
55
58
  </div>
@@ -62,18 +65,19 @@
62
65
  import { toTaskSupervise, toTaskSuperviseSub } from 'eoss-ui/src/config/api';
63
66
  import util from 'eoss-ui/src/utils/util';
64
67
  export default {
68
+ name:'supervise',
65
69
  props: {
66
70
  businessId: {
67
71
  type: String,
68
72
  default: ''
69
- }
73
+ },
70
74
  },
71
75
  data() {
72
76
  return {
73
77
  nextNode: {
74
- noticeType:[],
75
- notificationType:[],
76
- loading:undefined
78
+ noticeType: [],
79
+ notificationType: [],
80
+ loading: undefined
77
81
  }
78
82
  };
79
83
  },
@@ -81,39 +85,40 @@ export default {
81
85
  this.getFlowInfo();
82
86
  },
83
87
  methods: {
84
- subProcess(){
85
- if(this.nextNode.noticeType.length == 0){
86
- this.$message.warning('请选择通知方式');
87
- return
88
- }
89
- if(!this.nextNode.notifyMessage){
90
- this.$message.warning('请填写通知消息内容');
91
- return
92
- }
93
- let {noticeType,notifyMessage,pendingUserIds} = this.nextNode
94
- let params = {
95
- url:toTaskSuperviseSub,
96
- params:{
97
- userId:util.getStorage('userId'),
98
- urgeUserIds:pendingUserIds,
99
- notificationType:noticeType.join(','),notificationMessage:notifyMessage,
100
- businessId:this.businessId
101
- }
88
+ subProcess() {
89
+ if (this.nextNode.noticeType.length == 0) {
90
+ this.$message.warning('请选择通知方式');
91
+ return;
92
+ }
93
+ if (!this.nextNode.notifyMessage) {
94
+ this.$message.warning('请填写通知消息内容');
95
+ return;
96
+ }
97
+ let { noticeType, notifyMessage, pendingUserIds } = this.nextNode;
98
+ let params = {
99
+ url: toTaskSuperviseSub,
100
+ params: {
101
+ userId: util.getStorage('userId'),
102
+ urgeUserIds: pendingUserIds,
103
+ notificationType: noticeType.join(','),
104
+ notificationMessage: notifyMessage,
105
+ businessId: this.businessId
102
106
  }
103
- this.loading = util.loading(this.$loading, '提交中...');
104
- util.ajax(params).then(res => {
107
+ };
108
+ this.loading = util.loading(this.$loading, '提交中...');
109
+ util.ajax(params).then((res) => {
105
110
  this.loading.close();
106
- if(res.rCode == 0 || res.status=='success'){
107
- this.$message.success('操作成功');
108
- this.$parent.$emit('success')
109
- }else{
110
- this.$message.error(res.message || '系统错误,请联系管理员!');
111
+ if (res.rCode == 0 || res.status == 'success') {
112
+ this.$message.success('操作成功');
113
+ this.$parent.$emit('success');
114
+ } else {
115
+ this.$message.error(res.message || '系统错误,请联系管理员!');
111
116
  }
112
- })
117
+ });
113
118
  },
114
-
119
+
115
120
  getFlowInfo() {
116
- this.loading = util.loading(this.$loading, '加载中...');
121
+ this.loading = util.loading(this.$loading, '加载中...');
117
122
  util
118
123
  .ajax({
119
124
  url: toTaskSupervise,
@@ -123,12 +128,12 @@ export default {
123
128
  }
124
129
  })
125
130
  .then((res) => {
126
- this.loading.close();
127
- console.log(res);
128
- if(res.rCode == 0){
129
- this.nextNode = {...this.nextNode,...res.results};
130
- this.nextNode.noticeType = res.results.defaultNotificationType.split(',');
131
- }else{
131
+ this.loading.close();
132
+ if (res.rCode == 0) {
133
+ this.nextNode = { ...this.nextNode, ...res.results };
134
+ this.nextNode.noticeType =
135
+ res.results.defaultNotificationType.split(',');
136
+ } else {
132
137
  this.$message({
133
138
  message: res.rMsg,
134
139
  type: 'error'
@@ -15,7 +15,11 @@
15
15
  (item.type != 'splitReading' && item.type != 'preset')
16
16
  "
17
17
  >
18
- <div class="es-flow-list-box">
18
+ <div
19
+ class="es-flow-list-box"
20
+ :ref="item.type"
21
+ :style="`position:${height == 'auto' ? 'unset' : 'absolute'}`"
22
+ >
19
23
  <es-data-table
20
24
  v-if="show"
21
25
  :class="{ 'es-flow-group-data-table': item.type !== 'sign' }"
@@ -24,6 +28,7 @@
24
28
  @cell-click="handleCellClick"
25
29
  full
26
30
  v-bind="item"
31
+ :height="getHeight(item.type)"
27
32
  :data="returnData(item.type)"
28
33
  @btn-click="handleBtnClick"
29
34
  @selection-change="handleSelectionChange"
@@ -141,6 +146,11 @@ export default {
141
146
  return ['flow', 'splitReading', 'preset'];
142
147
  }
143
148
  },
149
+ height: {
150
+ type: String,
151
+ default: ''
152
+ },
153
+
144
154
  theadWidth: {
145
155
  type: Object,
146
156
  default: () => {
@@ -159,7 +169,14 @@ export default {
159
169
  pressLoading: false,
160
170
  pressTableList: [],
161
171
  circularData: [],
162
- selectList:[],
172
+ selectList: [],
173
+ flowHeight: '',
174
+ presetHeight: '',
175
+ signHeight: '',
176
+ splitReadingHeight: '',
177
+ circularHeight: '',
178
+ untreatedReadHeight: '',
179
+ processedReadHeight: '',
163
180
  untreatedReadData: [],
164
181
  processedReadData: [],
165
182
  hasCircularReadWithdrawAuthority: false,
@@ -358,9 +375,9 @@ export default {
358
375
  contents: [
359
376
  {
360
377
  text: '撤销分阅',
361
- fun:'recallRead'
378
+ fun: 'recallRead'
362
379
  }
363
- ],
380
+ ]
364
381
  }
365
382
  ],
366
383
  processedRead: [
@@ -1051,7 +1068,7 @@ export default {
1051
1068
  }
1052
1069
  return {
1053
1070
  type: item,
1054
- checkbox:newContents.indexOf('untreatedRead') !=-1,
1071
+ checkbox: newContents.indexOf('untreatedRead') != -1,
1055
1072
  toolbar: this.toolbars[item],
1056
1073
  thead: data.length > 0 ? data : this.theads[item],
1057
1074
  showFormBtn: false
@@ -1186,7 +1203,7 @@ export default {
1186
1203
  return table;
1187
1204
  }
1188
1205
  },
1189
- async mounted() {
1206
+ async mounted() {
1190
1207
  this.loading = util.loading(this.$loading, '加载中...');
1191
1208
  if (this.contents.indexOf('readingSituation') != -1) {
1192
1209
  await this.getFyListJson(1);
@@ -1202,42 +1219,45 @@ export default {
1202
1219
  },
1203
1220
 
1204
1221
  methods: {
1205
- recallReadFun(){
1206
- const _that = this
1207
- let pendingIds = _that.selectList.map(x => x.id).join(',');
1222
+ getHeight(type) {
1223
+ return this[`${type}Height`];
1224
+ },
1225
+ recallReadFun() {
1226
+ const _that = this;
1227
+ let pendingIds = _that.selectList.map((x) => x.id).join(',');
1208
1228
  let params = {
1209
- url:taskReadWithDraw,
1210
- params:{
1229
+ url: taskReadWithDraw,
1230
+ params: {
1211
1231
  pendingIds
1212
1232
  }
1213
- }
1214
- _that.loading = util.loading(_that.$loading, '撤销中...');
1215
- util.ajax(params).then(async res=>{
1233
+ };
1234
+ _that.loading = util.loading(_that.$loading, '撤销中...');
1235
+ util.ajax(params).then(async (res) => {
1216
1236
  _that.loading.close();
1217
- if(res.rCode == 0 || res.status=='success'){
1237
+ if (res.rCode == 0 || res.status == 'success') {
1218
1238
  _that.$message.success('撤销成功!');
1219
1239
  await _that.getFyListJson(1);
1220
- _that.getListCount(_that.flowListCount);
1221
- }else{
1240
+ _that.getListCount(_that.flowListCount);
1241
+ } else {
1222
1242
  _that.$message.error(res.message);
1223
1243
  }
1224
-
1225
- })
1244
+ });
1226
1245
  },
1227
- recallRead(){
1228
- if(this.selectList.length == 0) return this.$message.warning('请选择需要撤销的分阅')
1246
+ recallRead() {
1247
+ if (this.selectList.length == 0)
1248
+ return this.$message.warning('请选择需要撤销的分阅');
1229
1249
  this.$confirm('是否确认撤销选中的分阅?', '提示', {
1230
1250
  confirmButtonText: '确定',
1231
1251
  cancelButtonText: '取消',
1232
1252
  type: 'warning'
1233
1253
  }).then(() => {
1234
- this.recallReadFun()
1235
- })
1254
+ this.recallReadFun();
1255
+ });
1236
1256
  },
1237
- handleSelectionChange(val){
1238
- this.selectList = val
1257
+ handleSelectionChange(val) {
1258
+ this.selectList = val;
1239
1259
  },
1240
- handledraw(pendedHistoryId) {
1260
+ handledraw(pendedHistoryId) {
1241
1261
  let params = {
1242
1262
  url: circularReadWithdraw,
1243
1263
  params: { pendedHistoryId }
@@ -1318,12 +1338,12 @@ export default {
1318
1338
  }
1319
1339
  },
1320
1340
  handleBtnClick(data) {
1321
- // recallRead
1341
+ // recallRead
1322
1342
  const { handle, row } = data;
1323
1343
  if (handle.text == '删除') {
1324
1344
  this.del(row.id);
1325
- }else if(handle.fun == 'recallRead'){
1326
- this[handle.fun]()
1345
+ } else if (handle.fun == 'recallRead') {
1346
+ this[handle.fun]();
1327
1347
  }
1328
1348
  },
1329
1349
  /**
@@ -1472,7 +1492,7 @@ export default {
1472
1492
  this.loading = util.loading(this.$loading, '加载中...');
1473
1493
  this.getFlowList();
1474
1494
  },
1475
- async getFyListJson(type) {
1495
+ async getFyListJson(type) {
1476
1496
  let params = {
1477
1497
  url: fyListJson,
1478
1498
  params: {
@@ -1480,7 +1500,7 @@ export default {
1480
1500
  status: type
1481
1501
  }
1482
1502
  };
1483
- await util.ajax(params).then((res) => {
1503
+ await util.ajax(params).then((res) => {
1484
1504
  if (type == 1) {
1485
1505
  this.untreatedReadData = res.data;
1486
1506
  } else {
@@ -1538,6 +1558,13 @@ export default {
1538
1558
  this.splitReadingData = fyHistoryList;
1539
1559
  this.modify = modify;
1540
1560
  this.show = true;
1561
+ if (this.height == 'auto') {
1562
+ this.$nextTick(() => {
1563
+ this.content.map((x) => {
1564
+ this[`${x.type}Height`] = this.$refs[x.type][0].offsetHeight;
1565
+ });
1566
+ });
1567
+ }
1541
1568
  if (this.contents.indexOf('circular') != -1) {
1542
1569
  this.getCircularReadList();
1543
1570
  } else {
package/src/config/api.js CHANGED
@@ -284,3 +284,7 @@ export const sendBatch = '/notify2/sendRecord/reSendNotifyMessageBatch';
284
284
 
285
285
  export const formContents =
286
286
  '/lowcode/admin/online/onlineForm/getOnlineFormFromCache';
287
+ export const directStartTaskCircularRead =
288
+ '/bpm/bpmBackend/directStartTaskCircularRead';
289
+ export const getNodeInfoForStart =
290
+ '/bpm/task/taskHandle/getNodeInfoForStart.dhtml';
package/src/index.js CHANGED
@@ -123,7 +123,7 @@ if (typeof window !== 'undefined' && window.Vue) {
123
123
  }
124
124
 
125
125
  export default {
126
- version: '0.6.61',
126
+ version: '0.6.62',
127
127
  install,
128
128
  Button,
129
129
  ButtonGroup,