@lambo-design/workflow-approve 1.0.0-beta.14 → 1.0.0-beta.141

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.
@@ -1,231 +1,397 @@
1
- .containers {
2
- /*position: absolute;*/
3
- background-color: #ffffff;
4
- width: 100%;
5
-
6
- .done-line .djs-visual > :nth-child(1) {
7
- stroke: rgb(218, 246, 209) !important;
8
- }
9
-
10
- .done-point .djs-visual > :nth-child(1) {
11
- fill: rgb(218, 246, 209) !important;
12
- }
13
-
14
- .done-task .djs-visual > :nth-child(1) {
15
- fill: rgb(218, 246, 209) !important;
16
- }
17
-
18
- .todo-point .djs-visual > :nth-child(1) {
19
- fill: rgb(258, 227, 180) !important;
20
- }
21
-
22
- .bjs-powered-by {
23
- display: none;
24
- }
25
- }
26
-
27
- .canvas {
28
- width: 100%;
29
- height: 100%;
30
- margin-top: 0%;
31
- }
32
-
33
- .tooltip-text {
34
- overflow: hidden;
35
- text-overflow: ellipsis;
36
- white-space: nowrap;
37
- display: inline-block;
38
- max-width: 130px; /* 限制文本宽度 */
39
- }
40
-
41
- .portrait-lambo-indicator-card{
42
- height: 100%;
43
- position: relative;
44
- overflow-y: auto;
45
- margin-bottom: -10px;
46
- }
47
- .portrait-lambo-indicator-card::-webkit-scrollbar {
48
- width: 5px;
49
- height: 5px;
50
- }
51
-
52
- .portrait-lambo-indicator-card::-webkit-scrollbar-thumb {
53
- background: linear-gradient(to bottom right, #bbbbbb 0%, #bbbbbb 100%);
54
- border-radius: 5px;
55
- }
56
- .header-text {
57
- display: flex;
58
- font-size: 18px;
59
- font-weight: bold;
60
- color: black;
61
- }
62
-
63
- .process-history {
64
- width: 100%;
65
- overflow-y: auto;
66
- }
67
-
68
- .process-history::-webkit-scrollbar {
69
- width: 5px;
70
- height: 5px;
71
- }
72
-
73
- .process-history::-webkit-scrollbar-thumb {
74
- background: linear-gradient(to bottom right, #bbbbbb 0%, #bbbbbb 100%);
75
- border-radius: 5px;
76
- }
77
-
78
- .box {
79
- overflow: hidden;
80
- transition: height 0.3s ease;
81
- height: auto;
82
- width: auto;
83
- margin-left: -15px;
84
- }
85
-
86
- .draw-enter-active, .draw-leave-active {
87
-
88
- }
89
-
90
- .draw-enter, .draw-leave-to {
91
- height: 0;
92
- }
93
- .attach-name-style {
94
- margin-bottom: -5px;
95
- white-space: nowrap;
96
- display: inline-block;
97
- width: auto;
98
- font-size: 14px;
99
- color: #17233d;
100
- overflow: hidden;
101
- text-overflow: ellipsis;
102
- }
103
-
104
- .arrow-button-container {
105
- position: absolute;
106
- z-index: 50;
107
- width: 12px;
108
- height: 50px;
109
- border-radius: 4px;
110
- border: none;
111
- background-color: #cccccc;
112
- color: white;
113
- display: inline-block;
114
- transition: 0.5s;
115
- top: 50%;
116
- transform: translateX(0)
117
- }
118
- .icon-class{
119
- margin-top: 18px;
120
- }
121
- .attach-card{
122
- border:solid;
123
- border-width: thin;
124
- border-color: #f1f1f1;
125
- width: auto;
126
- border-radius: 10px;
127
- margin: 10px 0 10px 10px
128
- }
129
- .attach-avatar{
130
- margin-right: 5px;
131
- zoom: 150%
132
- }
133
- .arrow {
134
- display: flex;
135
- justify-content: center;
136
- align-items: center;
137
- }
138
-
139
- .history-title {
140
- font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
141
- font-weight: bold;
142
- color: #515a6e;
143
- font-size: 14px;
144
- margin: 0 1vh 0 -2vh;
145
- }
146
-
147
- .cicle{
148
- margin-left: 12px;
149
- width: 15px;
150
- height: 15px;
151
- border-radius: 50%;
152
- }
153
-
154
- .audit-name-style {
155
- margin-bottom: -5px;
156
- white-space: nowrap;
157
- display: inline-block;
158
- max-width: 100px;
159
- font-size: 14px;
160
- color: #17233d;
161
- overflow: hidden;
162
- text-overflow: ellipsis;
163
- }
164
-
165
- .audit-audit-comment-style {
166
- margin-bottom: -5px;
167
- white-space: nowrap;
168
- display: inline-block;
169
- max-width: 260px;
170
- font-size: 14px;
171
- color: #17233d;
172
- overflow: hidden;
173
- text-overflow: ellipsis;
174
- }
175
-
176
- .audit-date-style {
177
- white-space: nowrap;
178
- display: inline-block;
179
- max-width: 100px;
180
- font-size: 14px;
181
- color: #808695;
182
- margin-left: 10px;
183
- }
184
-
185
- .portrait-timeline-item {
186
- margin-bottom: -10px !important;
187
- }
188
-
189
- .portrait-timeline {
190
- margin: 0 0 0 0
191
- }
192
-
193
- .portrait-card {
194
- background-color: #f1f1f1 !important;
195
- border-radius: 10px !important;
196
- width: auto;
197
- margin-left: -15px;
198
- margin-right: -25px;
199
- margin-bottom: 5px;
200
- }
201
-
202
- .portrait-avatar-large {
203
- background-color: #005aff !important;
204
- margin: -15px 10px 0 10px;
205
- zoom: 150%
206
- }
207
-
208
- .portrait-avatar-small {
209
- background-color: #005aff !important;
210
- margin: -30px 10px 0 5px;
211
- zoom: 150%
212
- }
213
-
214
- .urging{
215
- margin-top: -3px;
216
- font-size: small;
217
- }
218
-
219
- .attach{
220
- margin-top: -3px;
221
- font-size: small;
222
- margin-left: 130px
223
- }
224
-
225
- .portrait-audit-date-style{
226
- white-space: nowrap;
227
- max-width: 100px;
228
- margin-top: 5px;
229
- font-size: 12px;
230
- color: #808695;
231
- }
1
+ .containers {
2
+ /*position: absolute;*/
3
+ background-color: #ffffff;
4
+ width: 100%;
5
+
6
+ .done-line .djs-visual > :nth-child(1) {
7
+ stroke: rgb(218, 246, 209) !important;
8
+ }
9
+
10
+ .done-point .djs-visual > :nth-child(1) {
11
+ fill: rgb(218, 246, 209) !important;
12
+ }
13
+
14
+ .done-task .djs-visual > :nth-child(1) {
15
+ fill: rgb(218, 246, 209) !important;
16
+ }
17
+
18
+ .todo-point .djs-visual > :nth-child(1) {
19
+ fill: rgb(258, 227, 180) !important;
20
+ }
21
+
22
+ .bjs-powered-by {
23
+ display: none;
24
+ }
25
+ }
26
+
27
+ .canvas {
28
+ width: 100%;
29
+ height: 95%;
30
+ margin-top: 0%;
31
+ }
32
+
33
+ .tooltip-text {
34
+ overflow: hidden;
35
+ text-overflow: ellipsis;
36
+ white-space: nowrap;
37
+ display: inline-block;
38
+ max-width: 130px; /* 限制文本宽度 */
39
+ }
40
+
41
+ .workflow-inHorizontal-content {
42
+ position: absolute;
43
+ top: 55px;
44
+ height: calc(100% - 50px);
45
+ display: flex;
46
+ flex-direction: column;
47
+ right: 0;
48
+ left: 0
49
+ }
50
+
51
+ .portrait-lambo-indicator-card {
52
+ height: 100%;
53
+ position: relative;
54
+ overflow-y: auto;
55
+ margin-bottom: -10px;
56
+ }
57
+
58
+ .portrait-lambo-indicator-card::-webkit-scrollbar {
59
+ width: 5px;
60
+ height: 5px;
61
+ }
62
+
63
+ .portrait-lambo-indicator-card::-webkit-scrollbar-thumb {
64
+ background: linear-gradient(to bottom right, #bbbbbb 0%, #bbbbbb 100%);
65
+ border-radius: 5px;
66
+ }
67
+
68
+
69
+ .resizable-content {
70
+ padding: 8px 24px;
71
+ }
72
+ .resizable-container {
73
+ position: relative;
74
+ width: 100%;
75
+ overflow-y: hidden;
76
+ transition: height 0.1s ease;
77
+ box-sizing: border-box;
78
+ border: 1px solid #e0e0e0;
79
+ border-radius: 8px;
80
+ background-color: white;
81
+ }
82
+
83
+ .resizer {
84
+ position: sticky;
85
+ top: 0;
86
+ left: 0;
87
+ width: 100%;
88
+ height: 8px;
89
+ cursor: ns-resize;
90
+ display: flex;
91
+ justify-content: center;
92
+ align-items: center;
93
+ background-color: transparent;
94
+ transition: background-color 0.2s;
95
+ z-index: 10;
96
+ margin: 0;
97
+ padding: 0;
98
+ }
99
+
100
+ .resizer:hover {
101
+ background-color: rgba(0, 0, 0, 0.05);
102
+ }
103
+
104
+ .resizer.resizing {
105
+ background-color: rgba(0, 0, 0, 0.1);
106
+ }
107
+
108
+ .resizer-handle {
109
+ width: 30px;
110
+ height: 2px;
111
+ background-color: #ccc;
112
+ border-radius: 1px;
113
+ transition: background-color 0.2s;
114
+ }
115
+
116
+ .resizer:hover .resizer-handle,
117
+ .resizer.resizing .resizer-handle {
118
+ background-color: #666;
119
+ }
120
+ .process-info-header{
121
+ display: flex;
122
+ justify-content: space-between;
123
+ width: 100%;
124
+ font-weight: 600;
125
+ }
126
+ .process-info-hidden-header{
127
+ display: flex;
128
+ justify-content: space-between;
129
+ width: 100%;
130
+ font-weight: 600;
131
+ background-color: #f0f0f0;
132
+ border: 1px solid #e0e0e0;
133
+ border-radius: 16px;
134
+ padding: 16px;
135
+ margin-bottom: 100px;
136
+ &:hover{
137
+ box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
138
+ }
139
+ }
140
+ .process-info-header-icon{
141
+ margin-right: 8px;
142
+ width: 20px;
143
+ &:hover{
144
+ background-color: #ccc;
145
+ border-radius: 4px;
146
+ }
147
+ }
148
+ .resizer-handle {
149
+ width: 30px;
150
+ height: 2px;
151
+ background-color: #ccc;
152
+ border-radius: 1px;
153
+ transition: background-color 0.2s;
154
+ }
155
+
156
+ .header-text {
157
+ display: flex;
158
+ font-size: 18px;
159
+ font-weight: bold;
160
+ color: black;
161
+ }
162
+
163
+ .process-history {
164
+ width: 100%;
165
+ overflow-y: auto;
166
+ }
167
+
168
+ .process-history::-webkit-scrollbar {
169
+ width: 5px;
170
+ height: 5px;
171
+ }
172
+
173
+ .process-history::-webkit-scrollbar-thumb {
174
+ background: linear-gradient(to bottom right, #bbbbbb 0%, #bbbbbb 100%);
175
+ border-radius: 5px;
176
+ }
177
+
178
+ .box {
179
+ overflow: hidden;
180
+ transition: height 0.3s ease;
181
+ height: auto;
182
+ width: auto;
183
+ margin-left: -15px;
184
+ }
185
+
186
+ .draw-enter-active, .draw-leave-active {
187
+
188
+ }
189
+
190
+ .draw-enter, .draw-leave-to {
191
+ height: 0;
192
+ }
193
+
194
+ .attach-name-style {
195
+ margin-bottom: -5px;
196
+ white-space: nowrap;
197
+ display: inline-block;
198
+ width: auto;
199
+ font-size: 14px;
200
+ color: #17233d;
201
+ overflow: hidden;
202
+ text-overflow: ellipsis;
203
+ }
204
+
205
+ .arrow-button-container {
206
+ position: absolute;
207
+ z-index: 50;
208
+ width: 12px;
209
+ height: 50px;
210
+ border-radius: 4px;
211
+ border: none;
212
+ background-color: #cccccc;
213
+ color: white;
214
+ display: inline-block;
215
+ transition: 0.5s;
216
+ top: 50%;
217
+ transform: translateX(0)
218
+ }
219
+
220
+ .icon-class {
221
+ margin-top: 18px;
222
+ }
223
+
224
+ .attach-card {
225
+ border: solid;
226
+ border-width: thin;
227
+ border-color: #f1f1f1;
228
+ width: auto;
229
+ border-radius: 10px;
230
+ margin: 10px 0 10px 10px
231
+ }
232
+
233
+ .attach-avatar {
234
+ margin-right: 5px;
235
+ zoom: 150%
236
+ }
237
+
238
+ .arrow {
239
+ display: flex;
240
+ justify-content: center;
241
+ align-items: center;
242
+ }
243
+
244
+ .history-title {
245
+ font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
246
+ font-weight: bold;
247
+ color: #515a6e;
248
+ font-size: 14px;
249
+ margin: 0 1vh 0 -2vh;
250
+ }
251
+
252
+ .cicle {
253
+ margin-left: 12px;
254
+ width: 15px;
255
+ height: 15px;
256
+ border-radius: 50%;
257
+ }
258
+
259
+ .audit-name-style {
260
+ margin-bottom: -5px;
261
+ white-space: nowrap;
262
+ display: inline-block;
263
+ max-width: 100px;
264
+ font-size: 14px;
265
+ color: #17233d;
266
+ overflow: hidden;
267
+ text-overflow: ellipsis;
268
+ }
269
+
270
+ .audit-comment-style {
271
+ margin-bottom: -5px;
272
+ white-space: nowrap;
273
+ display: inline-block;
274
+ max-width: 260px;
275
+ font-size: 14px;
276
+ color: #17233d;
277
+ overflow: hidden;
278
+ text-overflow: ellipsis;
279
+ }
280
+
281
+ .audit-date-style {
282
+ white-space: nowrap;
283
+ display: inline-block;
284
+ max-width: 100px;
285
+ font-size: 14px;
286
+ color: #808695;
287
+ margin-left: 10px;
288
+ }
289
+
290
+ .portrait-timeline-item {
291
+ margin-bottom: -10px !important;
292
+ }
293
+
294
+ .portrait-timeline {
295
+ margin: 0 0 0 0
296
+ }
297
+
298
+ .portrait-card {
299
+ background-color: #f1f1f1 !important;
300
+ border-radius: 10px !important;
301
+ width: auto;
302
+ margin-left: -15px;
303
+ margin-right: -25px;
304
+ margin-bottom: 5px;
305
+ }
306
+
307
+ .portrait-avatar-large {
308
+ background-color: #005aff !important;
309
+ margin: -15px 10px 0 10px;
310
+ zoom: 150%
311
+ }
312
+
313
+ .portrait-avatar-small {
314
+ background-color: #005aff !important;
315
+ margin: -30px 10px 0 5px;
316
+ zoom: 150%
317
+ }
318
+
319
+ .urging {
320
+ margin-top: -3px;
321
+ font-size: small;
322
+ }
323
+
324
+ .attach {
325
+ margin-top: -3px;
326
+ font-size: small;
327
+ margin-left: 130px
328
+ }
329
+
330
+ .portrait-audit-date-style {
331
+ white-space: nowrap;
332
+ max-width: 100px;
333
+ margin-top: 5px;
334
+ font-size: 12px;
335
+ color: #808695;
336
+ }
337
+
338
+ .operating-instructions {
339
+ float: left;
340
+ font-size: 12px;
341
+ text-align: left;
342
+ color: #808695
343
+ }
344
+
345
+ .notes-div {
346
+ text-align: right;
347
+ float: right;
348
+ }
349
+
350
+ .notes-done-task {
351
+ display: inline-block;
352
+ width: 70px;
353
+ height: 25px;
354
+ font-size: 12px;
355
+ text-align: center;
356
+ padding-top: 3px;
357
+ border: 1px solid black;
358
+ border-radius: 5px;
359
+ margin-left: 10px;
360
+ margin-right: 10px;
361
+ background-color: rgb(218, 246, 209);
362
+ }
363
+
364
+ .notes-todo-task {
365
+ display: inline-block;
366
+ width: 70px;
367
+ height: 25px;
368
+ font-size: 12px;
369
+ text-align: center;
370
+ padding-top: 3px;
371
+ border: 1px solid black;
372
+ border-radius: 5px;
373
+ margin-left: 10px;
374
+ margin-right: 10px;
375
+ background-color: rgb(258, 227, 180);
376
+ }
377
+
378
+ .notes-none-task {
379
+ display: inline-block;
380
+ width: 70px;
381
+ height: 25px;
382
+ font-size: 12px;
383
+ text-align: center;
384
+ padding-top: 3px;
385
+ border: 1px solid black;
386
+ border-radius: 5px;
387
+ margin-left: 10px;
388
+ margin-right: 10px;
389
+ }
390
+
391
+ .reject-user-button {
392
+ margin-left: 20px;
393
+ }
394
+
395
+ .reject-attribute-card {
396
+ margin-top: 10px;
397
+ }
@@ -0,0 +1,36 @@
1
+ export const NodeType = {
2
+ UserTask: 'userTask',
3
+ MultiNode: 'multiNode',
4
+ SequentialMultiNode: 'sequentialMultiNode'
5
+ }
6
+
7
+ // 流程信息按钮
8
+ export const WorkflowInfoButtons = {
9
+ ProcessTrace: 'processTrace',// 流程跟踪图
10
+ AuditHistory: 'auditHistory',// 审批历史
11
+ AuditOpinion: 'auditOpinion',// 审批意见
12
+ AttachmentFile: 'attachmentFile',// 附件
13
+ }
14
+
15
+ // 流程操作按钮
16
+ export const WorkflowOperationButtons = {
17
+ AuditTo30: 'auditTo30',// 通过
18
+ AuditTo70: 'auditTo70',// 驳回原点
19
+ AuditTo40: 'auditTo40',// 驳回上一节点
20
+ AuditTo90: 'auditTo90',// 驳回指定节点
21
+ AuditTo80: 'auditTo80',// 跳转指定节点
22
+ AuditTo82: 'auditTo82',// 转办
23
+ AuditTo50: 'auditTo50',// 人工终止
24
+ DelegateTask: 'delegateTask',// 委派
25
+ RevokeDelegateTask: 'revokeDelegateTask',// 撤回委派
26
+ AppointTask: 'appointTask',// 交回委派
27
+ AddMultitaskInstance: 'addMultitaskInstance',// 会签加签
28
+ ReductionMultitaskInstance: 'reductionMultitaskInstance',// 会签减签
29
+ }
30
+
31
+ // 流程流转控制按钮
32
+ export const WorkflowControlButtons = {
33
+ RejectProcessControl: 'rejectProcessControl',// 允许驳回时控制流转
34
+ AppointHandler: 'appointHandler',// 指定下一环节的办理人
35
+ AppointTimeoutTime: 'appointTimeoutTime',// 指定下一环节办理时限(含预警时间)
36
+ }