eoss 0.1.0-alpha.21 → 0.1.0-alpha.22

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 (195) hide show
  1. package/lib/account-login.js +129 -129
  2. package/lib/alert.js +2 -2
  3. package/lib/aside.js +2 -2
  4. package/lib/autocomplete.js +216 -216
  5. package/lib/avatar.js +2 -2
  6. package/lib/backtop.js +2 -2
  7. package/lib/badge.js +2 -2
  8. package/lib/breadcrumb.js +2 -2
  9. package/lib/ca-login.js +6 -6
  10. package/lib/calendar.js +2 -2
  11. package/lib/card.js +2 -2
  12. package/lib/carousel-item.js +21 -21
  13. package/lib/carousel.js +16 -16
  14. package/lib/cascader-panel.js +6 -6
  15. package/lib/cascader.js +230 -230
  16. package/lib/checkbox-group.js +138 -138
  17. package/lib/col.js +2 -2
  18. package/lib/collapse-item.js +423 -410
  19. package/lib/collapse.js +426 -412
  20. package/lib/color-picker.js +23 -23
  21. package/lib/container.js +2 -2
  22. package/lib/cron.js +2 -2
  23. package/lib/data-table.js +123 -123
  24. package/lib/date-picker.js +233 -233
  25. package/lib/dialog.js +8 -8
  26. package/lib/divider.js +2 -2
  27. package/lib/drawer.js +4 -4
  28. package/lib/dropdown-item.js +2 -2
  29. package/lib/dropdown-menu.js +6 -6
  30. package/lib/dropdown.js +13 -13
  31. package/lib/email-login.js +124 -124
  32. package/lib/empty.js +2 -2
  33. package/lib/eoss.common.js +21948 -21788
  34. package/lib/flip.js +2 -2
  35. package/lib/flow-group.js +251 -251
  36. package/lib/flow.js +15934 -18947
  37. package/lib/flows.js +9195 -0
  38. package/lib/footer.js +2 -2
  39. package/lib/form-item.js +28 -17
  40. package/lib/form.js +426 -412
  41. package/lib/header.js +2 -2
  42. package/lib/icon.js +128 -128
  43. package/lib/icons.js +2 -2
  44. package/lib/image-viewer.js +6 -6
  45. package/lib/image.js +2 -2
  46. package/lib/index.js +1 -1
  47. package/lib/infinite-scroll.js +2 -2
  48. package/lib/input.js +4 -4
  49. package/lib/link.js +2 -2
  50. package/lib/loading.js +4 -4
  51. package/lib/login.js +190 -156
  52. package/lib/lowcode.js +562 -272
  53. package/lib/main.js +348 -282
  54. package/lib/marquee.js +6 -6
  55. package/lib/menu.js +209 -209
  56. package/lib/message-box.js +8 -8
  57. package/lib/message.js +8 -8
  58. package/lib/notification.js +8 -8
  59. package/lib/option-group.js +2 -2
  60. package/lib/option.js +4 -4
  61. package/lib/page-header.js +2 -2
  62. package/lib/pagination.js +6 -6
  63. package/lib/phone-login.js +124 -124
  64. package/lib/popconfirm.js +2 -2
  65. package/lib/popover.js +209 -209
  66. package/lib/progress.js +2 -2
  67. package/lib/qr-code.js +2 -2
  68. package/lib/qrcode-login.js +123 -123
  69. package/lib/radio-group.js +121 -121
  70. package/lib/rate.js +4 -4
  71. package/lib/row.js +2 -2
  72. package/lib/scrollbar.js +6 -6
  73. package/lib/select.js +470 -457
  74. package/lib/selector-panel.js +141 -141
  75. package/lib/selector.js +130 -130
  76. package/lib/step.js +426 -412
  77. package/lib/steps.js +6 -6
  78. package/lib/submenu.js +4 -4
  79. package/lib/switch.js +4 -4
  80. package/lib/tab-pane.js +2 -2
  81. package/lib/table-column.js +6 -6
  82. package/lib/table.js +460 -460
  83. package/lib/tabs.js +6 -6
  84. package/lib/tag.js +2 -2
  85. package/lib/theme-chalk/autocomplete.css +1 -1
  86. package/lib/theme-chalk/base.css +1 -1
  87. package/lib/theme-chalk/cascader-panel.css +1 -1
  88. package/lib/theme-chalk/cascader.css +1 -1
  89. package/lib/theme-chalk/checkbox-group.css +1 -1
  90. package/lib/theme-chalk/date-picker.css +1 -1
  91. package/lib/theme-chalk/descriptions-item.css +1 -1
  92. package/lib/theme-chalk/descriptions.css +1 -1
  93. package/lib/theme-chalk/empty.css +1 -1
  94. package/lib/theme-chalk/flow.css +1 -1
  95. package/lib/theme-chalk/flows.css +1 -0
  96. package/lib/theme-chalk/form.css +1 -1
  97. package/lib/theme-chalk/index.css +1 -1
  98. package/lib/theme-chalk/input-number.css +1 -1
  99. package/lib/theme-chalk/input.css +1 -1
  100. package/lib/theme-chalk/lowcode.css +1 -1
  101. package/lib/theme-chalk/main.css +1 -1
  102. package/lib/theme-chalk/menu.css +1 -1
  103. package/lib/theme-chalk/message-box.css +1 -1
  104. package/lib/theme-chalk/message.css +1 -1
  105. package/lib/theme-chalk/notification.css +1 -1
  106. package/lib/theme-chalk/pagination.css +1 -1
  107. package/lib/theme-chalk/scrollbar.css +1 -1
  108. package/lib/theme-chalk/select.css +1 -1
  109. package/lib/theme-chalk/selector-panel.css +1 -1
  110. package/lib/theme-chalk/selector.css +1 -1
  111. package/lib/theme-chalk/slider.css +1 -1
  112. package/lib/theme-chalk/table.css +1 -1
  113. package/lib/theme-chalk/tabs.css +1 -1
  114. package/lib/theme-chalk/time-picker.css +1 -1
  115. package/lib/theme-chalk/time-select.css +1 -1
  116. package/lib/theme-chalk/timeline-item.css +1 -1
  117. package/lib/theme-chalk/transfer.css +1 -1
  118. package/lib/theme-chalk/tree.css +1 -1
  119. package/lib/theme-chalk/upload.css +1 -1
  120. package/lib/time-picker.js +8 -8
  121. package/lib/time-select.js +6 -6
  122. package/lib/timeline-item.js +2 -2
  123. package/lib/timeline.js +2 -2
  124. package/lib/tips.js +124 -124
  125. package/lib/toolbar.js +4 -4
  126. package/lib/tooltip.js +209 -209
  127. package/lib/transfer.js +4 -4
  128. package/lib/tree-group.js +122 -122
  129. package/lib/tree.js +121 -121
  130. package/lib/upload.js +131 -131
  131. package/package.json +1 -1
  132. package/packages/carousel/src/carousel.vue +2 -2
  133. package/packages/flow/index.js +4 -4
  134. package/packages/flow/src/component/FreeCirculation.vue +4 -3
  135. package/packages/flow/src/component/SendMsg.vue +2 -4
  136. package/packages/flow/src/component/opinions.vue +203 -226
  137. package/packages/flow/src/component/taskUnionExamine.vue +2 -4
  138. package/packages/flow/src/freeStartFlow.vue +2 -2
  139. package/packages/flow/src/selectUser.vue +36 -1
  140. package/packages/flow/src/supervise.vue +4 -2
  141. package/packages/flows/index.js +7 -0
  142. package/packages/flows/readme.md +600 -0
  143. package/packages/flows/src/components/basis.vue +108 -0
  144. package/packages/flows/src/components/distribute.vue +42 -0
  145. package/packages/flows/src/components/opinions-file.vue +123 -0
  146. package/packages/{flow-copy/src/component → flows/src/components}/opinions.vue +227 -204
  147. package/packages/flows/src/components/quick-actions.vue +64 -0
  148. package/packages/flows/src/components/reject.vue +83 -0
  149. package/packages/flows/src/components/start-flow.vue +210 -0
  150. package/packages/flows/src/flow.vue +510 -0
  151. package/packages/{flow/src/flow.vue → flows/src/flows.vue} +40 -1327
  152. package/packages/form/src/form-item.vue +9 -2
  153. package/packages/form/src/label-wrap.vue +4 -1
  154. package/packages/login/src/login.vue +61 -32
  155. package/packages/lowcode/src/lowcode.vue +141 -40
  156. package/packages/lowcode/src/pages.vue +27 -7
  157. package/packages/lowcode/src/toolbar.vue +3 -18
  158. package/packages/main/src/components/pages.vue +97 -65
  159. package/packages/main/src/components/router-page.vue +0 -2
  160. package/packages/main/src/gzw.vue +3 -2
  161. package/packages/main/src/minxs.js +71 -51
  162. package/packages/select/src/select.vue +5 -0
  163. package/packages/theme-chalk/src/base.scss +6 -0
  164. package/packages/theme-chalk/src/checkbox-group.scss +1 -0
  165. package/packages/theme-chalk/src/common/var.scss +1 -1
  166. package/packages/theme-chalk/src/flow.scss +7 -4
  167. package/packages/theme-chalk/src/flows.scss +141 -0
  168. package/packages/theme-chalk/src/form.scss +1 -1
  169. package/packages/theme-chalk/src/index.scss +1 -0
  170. package/packages/theme-chalk/src/input.scss +1 -0
  171. package/packages/theme-chalk/src/select.scss +3 -1
  172. package/packages/theme-chalk/src/selector.scss +1 -1
  173. package/src/index.js +4 -1
  174. package/packages/flow/src/component/quick-actions.vue +0 -1168
  175. package/packages/flow-copy/index.js +0 -7
  176. package/packages/flow-copy/src/component/Circulate.vue +0 -452
  177. package/packages/flow-copy/src/component/CustomPreset.vue +0 -333
  178. package/packages/flow-copy/src/component/FreeCirculation.vue +0 -275
  179. package/packages/flow-copy/src/component/Preset.vue +0 -273
  180. package/packages/flow-copy/src/component/SendMsg.vue +0 -290
  181. package/packages/flow-copy/src/component/TimeLimit.vue +0 -205
  182. package/packages/flow-copy/src/component/taskUnionExamine.vue +0 -818
  183. package/packages/flow-copy/src/freeStartFlow.vue +0 -2912
  184. package/packages/flow-copy/src/processForm.vue +0 -1411
  185. package/packages/flow-copy/src/processReject.vue +0 -319
  186. package/packages/flow-copy/src/reset.vue +0 -944
  187. package/packages/flow-copy/src/selectUser.vue +0 -513
  188. package/packages/flow-copy/src/startTaskRead.vue +0 -723
  189. package/packages/flow-copy/src/supervise.vue +0 -182
  190. package/packages/flow-copy/src/table.vue +0 -65
  191. /package/packages/{flow-copy → flow}/src/component/FileList.vue +0 -0
  192. /package/packages/{flow-copy → flow}/src/main.vue +0 -0
  193. /package/packages/{flow-copy/src → flows/src/components}/form.vue +0 -0
  194. /package/packages/{flow/src/component → flows/src/components}/message.vue +0 -0
  195. /package/packages/{flow/src/component → flows/src/components}/opinions-list.vue +0 -0
@@ -1,319 +0,0 @@
1
- <template>
2
- <div
3
- v-loading="loading === true"
4
- class="es-flow-form es-flow-reject"
5
- element-loading-text="加载中..."
6
- element-loading-spinner="es-icon-loading"
7
- element-loading-background="rgba(255, 255,255, 0.8)"
8
- >
9
- <es-form
10
- ref="nextNode"
11
- :model="nextNode"
12
- class="demo-dynamic"
13
- label-width="150px"
14
- label-align="left"
15
- >
16
- <div
17
- :style="`max-height:${showBtn ? '290px' : 'unset'} ; overflow-y: auto;`"
18
- >
19
- <es-form-item prop="nodeName" label="当前节点">
20
- <es-input v-model="nodeName" disabled />
21
- </es-form-item>
22
- <es-form-item
23
- prop="nextNodeId"
24
- label="驳回对象"
25
- :rules="[
26
- { required: true, message: `请选择驳回对象`, trigger: 'blur' }
27
- ]"
28
- >
29
- <es-radio-group
30
- v-model="nextNode.nextNodeId"
31
- v-if="rejectObj.length != 0"
32
- :data="rejectObj"
33
- labelKey="name"
34
- valueKey="id"
35
- >
36
- <es-radio v-for="item of rejectObj" :key="item.id" :label="item.id">
37
- {{ item.name }}
38
- </es-radio>
39
- </es-radio-group>
40
- <span style="line-height: 40px" v-else>暂无可驳回节点及对象</span>
41
- </es-form-item>
42
- <!-- :rules="[
43
- { required: false, message: `请选择通知方式`, trigger: 'blur' }
44
- ]" -->
45
- </div>
46
- <es-form-item v-show="showBtn">
47
- <!-- size="small" -->
48
- <div style="text-align: right">
49
- <es-button
50
- :type="rejectObj.length == 0 ? '' : 'primary'"
51
- @click="subProcess('nextNode', rejectObj.length == 0)"
52
- >
53
- {{ rejectObj.length == 0 ? '取消' : '提交' }}
54
- </es-button>
55
- </div>
56
- </es-form-item>
57
- </es-form>
58
- <div v-show="nextNode.noticeList.length != 0">
59
- <div class="news">
60
- <span class="news-item">消息通知</span>
61
- <!-- <span :class="showNews ? 'show' : 'sj'"></span> -->
62
- </div>
63
- <es-checkbox-group v-model="nextNode.noticeType">
64
- <es-checkbox
65
- v-for="item of nextNode.noticeList"
66
- :key="item.cciValue"
67
- :label="item.cciValue"
68
- :disabled="
69
- readOnlyNotificationType
70
- ? readOnlyNotificationType.indexOf(item.cciValue) != -1
71
- : false
72
- "
73
- >
74
- {{ item.shortName }}
75
- </es-checkbox>
76
- </es-checkbox-group>
77
- <es-input
78
- type="textarea"
79
- :rows="4"
80
- placeholder="请输入内容"
81
- v-model="newsInformation"
82
- :readonly="notificationMessageReadOnly"
83
- >
84
- </es-input>
85
- </div>
86
-
87
- <!-- <es-dialog title="下步处理对象" :visible.sync="show" width="60%">
88
- <div>123</div>
89
- </es-dialog> -->
90
- </div>
91
- </template>
92
-
93
- <script>
94
- import {
95
- findSysCodes,
96
- taskRejectHtml,
97
- findCodeValues,
98
- toTaskRejectHtml
99
- } from 'eoss/src/config/api';
100
- import { success, warning, error } from 'eoss/src/utils/util';
101
- import { ajax } from 'eoss/src/utils/ajax';
102
- import { getStorage } from 'eoss/src/utils/storage';
103
- export default {
104
- name: 'ProcessReject',
105
- props: {
106
- /**
107
- * 待办ID
108
- */
109
- pendingId: { type: String, default: '' },
110
- /**
111
- * 通知消息信息
112
- */
113
- newsInfo: { type: String, default: '' },
114
- /**
115
- * 是否展示驳回
116
- */
117
- showReject: { type: Boolean },
118
- /**
119
- * 审批意见
120
- */
121
- option: { type: String, default: '' },
122
- /**
123
- * 提交成功后是否弹窗确认
124
- */
125
- simpleTips: { type: Boolean, default: true },
126
- /**
127
- * 是否展示提交按钮
128
- */
129
- showBtn: { type: Boolean, default: false }
130
- },
131
- data() {
132
- return {
133
- loading: false,
134
- notificationMessageReadOnly: false,
135
- readOnlyNotificationType: '',
136
- nextNode: {
137
- noticeType: [],
138
- opinion: undefined, // 审批意见
139
- notificationMsg: undefined, // 系统消息
140
- nextNodeId: undefined,
141
- noticeList: []
142
- },
143
- showMsg: false, // 判断是否显示系统消息
144
- showOpinion: false, // 常用意见弹框
145
- nodeName: '',
146
- isOpinionRequired: 0, // 意见是否必填
147
- rejectObj: [], //
148
- isHiddenOftenOpinion: undefined, // 是否隐藏常用意见
149
- nodeDefaultRejectOpinion: undefined, // 默认提交意见
150
- checked: true, // 系统消息是否选中
151
- defaultNotificationType: undefined, // /默认选中通知类型
152
- newsInformation: '' //系统消息
153
- };
154
- },
155
- watch: {
156
- showReject(val) {
157
- if (val) {
158
- this.getProcessReject();
159
- }
160
- }
161
- },
162
- mounted() {
163
- this.newsInformation = this.newsInfo;
164
- this.getNodeType();
165
- this.getProcessReject();
166
- },
167
- methods: {
168
- getNodeType() {
169
- ajax({
170
- url: findCodeValues,
171
- params: {
172
- ccCode: 'notification_type',
173
- userId: getStorage('userId'),
174
- pendingId: this.pendingId
175
- }
176
- })
177
- .then((res) => {
178
- const { status, data } = res;
179
- if (status === 'success') {
180
- this.nextNode.noticeList = data;
181
- }
182
- this.getFind();
183
- })
184
- .catch((err) => {
185
- this.loading = false;
186
- });
187
- },
188
- // 提交表单
189
- subProcess(formName, isNoObj) {
190
- if (isNoObj) {
191
- this.quit(false);
192
- return;
193
- }
194
- this.saveProcess(formName);
195
- },
196
- saveProcess(formName) {
197
- this.$refs[formName].validate((valid) => {
198
- if (valid) {
199
- if (!this.option && this.isOpinionRequired === 1) {
200
- warning('请选择输入审批意见');
201
- return;
202
- }
203
- this.loading = true;
204
- let noticeType = this.nextNode.noticeType.join(',');
205
- let params = {
206
- pendingId: this.pendingId,
207
- opinion: this.option, // 审批意见
208
- notificationMsg: this.newsInformation, // 系统消息
209
- notificationType: noticeType,
210
- userId: getStorage('userId'),
211
- nextNodeId: this.nextNode.nextNodeId
212
- };
213
- ajax({ url: taskRejectHtml, method: 'post', data: params })
214
- .then((res) => {
215
- const { status, message } = res;
216
- this.loading = false;
217
- if (status === 'success') {
218
- this.quit(true);
219
- this.simpleTips &&
220
- this.$message({
221
- message: '操作成功',
222
- type: 'success'
223
- });
224
- } else {
225
- this.$message({
226
- message: message || '系统错误,请联系管理员!',
227
- type: 'error'
228
- });
229
- this.quit(false);
230
- }
231
- })
232
- .catch((err) => {
233
- this.loading = false;
234
- });
235
- } else {
236
- return false;
237
- }
238
- });
239
- },
240
- // 取消
241
- quit(val) {
242
- this.$emit('cancel', val);
243
- },
244
- getFind() {
245
- ajax({
246
- url: findSysCodes
247
- })
248
- .then((res) => {
249
- const { status, message } = res;
250
- if (status === 'success') {
251
- this.nextNode.noticeType = message.split(',');
252
- let arr = [];
253
- this.nextNode.noticeList.map((item) => {
254
- this.nextNode.noticeType.map((x) => {
255
- if (x == item.cciValue) {
256
- arr.push(x);
257
- }
258
- });
259
- });
260
- this.nextNode.noticeType = arr;
261
- }
262
- })
263
- .catch((err) => {
264
- this.loading = false;
265
- });
266
- },
267
- getProcessReject() {
268
- this.loading = true;
269
- let params = {
270
- pendingId: this.pendingId,
271
- isSinglePage: false,
272
- opinion: this.option
273
- };
274
- ajax({ url: toTaskRejectHtml, params })
275
- .then((res) => {
276
- this.loading = false;
277
- if (res.status === 'success') {
278
- const {
279
- data: {
280
- rejectTaskNodes,
281
- taskExamine,
282
- nodeInfoMap,
283
- notificationMessageReadOnly,
284
- readOnlyNotificationType
285
- }
286
- } = res;
287
- this.isOpinionRequired = nodeInfoMap.nodeExtAttr.isOpinionRequired;
288
- this.readOnlyNotificationType = readOnlyNotificationType;
289
- this.notificationMessageReadOnly =
290
- notificationMessageReadOnly == 'true';
291
- if (!this.isOpinionRequired) {
292
- this.isOpinionRequired = 0;
293
- }
294
- let list = [];
295
- if (rejectTaskNodes) {
296
- for (let i in rejectTaskNodes) {
297
- let obj = {
298
- id: i,
299
- name: rejectTaskNodes[i]
300
- };
301
- list.push(obj);
302
- }
303
- this.nodeName = taskExamine.nodeName;
304
- this.rejectObj = list;
305
- this.rejectObj.length != 0 &&
306
- (this.nextNode.nextNodeId = this.rejectObj[0].id);
307
- }
308
- } else {
309
- error(res.message || '系统错误,请联系管理员!');
310
- this.quit(false);
311
- }
312
- })
313
- .catch((err) => {
314
- this.loading = false;
315
- });
316
- }
317
- }
318
- };
319
- </script>