cloud-web-corejs 1.1.0-dev.6 → 1.1.0-dev.8
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.
- package/package.json +1 -1
- package/src/components/VabUpload/view.vue +27 -26
- package/src/components/excelImport/index.vue +156 -156
- package/src/components/mobile/wf/addTaskUserdialog.vue +23 -3
- package/src/components/mobile/wf/content.vue +110 -67
- package/src/components/mobile/wf/deleteTaskUserDialog.vue +22 -3
- package/src/components/mobile/wf/selectUserDialog.vue +122 -0
- package/src/components/mobile/wf/setCandidateDialog.vue +25 -4
- package/src/components/mobile/wf/urgingDialog.vue +26 -3
- package/src/components/mobile/wf/wfModifyDialog.vue +4 -0
- package/src/components/xform/form-designer/designer.js +36 -52
- package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +185 -185
- package/src/components/xform/form-designer/form-widget/field-widget/singleUpload-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +2 -2
- package/src/components/xform/form-designer/indexMixin.js +25 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +833 -860
- package/src/components/xform/form-designer/toolbar-panel/index.vue +874 -874
- package/src/components/xform/form-designer/widget-panel/index.vue +11 -7
- package/src/components/xform/form-designer/widget-panel/indexMixin.js +15 -2
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +53 -1
- package/src/components/xform/form-render/container-item/list-h5-item.vue +154 -27
- package/src/components/xform/form-render/indexMixin.js +23 -3
- package/src/components/xform/styles/h5.scss +775 -588
- package/src/directive/append-to-body/index.js +48 -0
- package/src/index.js +4 -0
- package/src/layout/components/Sidebar/default.vue +1655 -1655
- package/src/router/index.js +48 -48
- package/src/utils/vab.js +1283 -1283
- package/src/views/bd/setting/form_template/edit.vue +378 -356
- package/src/views/bd/setting/form_template/formDesignerDialog.vue +6 -0
- package/src/views/bd/setting/form_template/formTemplateType.js +43 -0
- package/src/views/bd/setting/form_template/list.vue +304 -303
- package/src/views/bd/setting/form_template/mixins/edit.js +344 -280
- package/src/views/bd/setting/form_template/mixins/list.js +748 -721
- package/src/views/user/file_view_ins/list.vue +970 -970
- package/src/views/user/form/vform/designer.vue +823 -821
- package/src/views/user/home/default.vue +1117 -1117
- package/src/views/user/home/index.vue +103 -103
- package/src/views/user/notify_message/dialog.vue +139 -139
- package/src/views/user/outLink/form_view.vue +202 -202
- package/src/views/user/outLink/index.vue +110 -110
- package/src/views/user/wf/iframe/index.vue +51 -51
- package/src/views/user/wf/iframe/index2.vue +64 -64
- package/src/views/user/wf/wf_manage/list2.vue +871 -871
- package/src/views/user/wf/wf_manage/wfContentDialog.vue +134 -134
|
@@ -1,721 +1,748 @@
|
|
|
1
|
-
import projectTagView from "@base/components/projectTag/view.vue";
|
|
2
|
-
import projectTagAddButton from "@base/components/projectTag/addButton.vue";
|
|
3
|
-
import projectTagDeleteButton from "@base/components/projectTag/deleteButton.vue";
|
|
4
|
-
import tableForm from "@base/components/table/tableForm.vue";
|
|
5
|
-
import editView from "@base/views/bd/setting/form_template/edit.vue";
|
|
6
|
-
import userDialog from "@base/views/user/user/dialog.vue";
|
|
7
|
-
import positionDialog from "@base/views/user/position/dialog.vue";
|
|
8
|
-
import scriptDescriptionDialog from "@base/components/scriptDescription/dialog.vue";
|
|
9
|
-
import ftHistoryDialog from "@base/views/bd/setting/form_template/ftHistoryDialog.vue";
|
|
10
|
-
import itemList from "@base/views/bd/setting/form_template/itemList.vue";
|
|
11
|
-
import formTypeEditDialog from "@base/views/user/form/form_type/editDialog.vue";
|
|
12
|
-
import projectTagDialog from "@base/views/user/project_tag/dialog.vue";
|
|
13
|
-
import { treeScollx } from "@base/utils/global";
|
|
14
|
-
import indexUtil from "@base/utils";
|
|
15
|
-
import { getBdFlag } from "@base/api/user";
|
|
16
|
-
import {
|
|
17
|
-
getJsxBtnList,
|
|
18
|
-
getJsxEditLink,
|
|
19
|
-
getJsxStatus,
|
|
20
|
-
} from "@base/views/bd/setting/utils/index";
|
|
21
|
-
import formVersionButton from "@base/views/bd/setting/formVersion/link.vue";
|
|
22
|
-
import settingConfig from "@/settings";
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
this.$refs["table-m1"].commitProxy("reload");
|
|
186
|
-
},
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
this.
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
this.
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
},
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
this.
|
|
233
|
-
this.
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
this.
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
this.
|
|
240
|
-
this.designerSaveCallback
|
|
241
|
-
},
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
this.
|
|
257
|
-
},
|
|
258
|
-
|
|
259
|
-
this
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
},
|
|
397
|
-
{
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
width:
|
|
401
|
-
},
|
|
402
|
-
{
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
width:
|
|
406
|
-
},
|
|
407
|
-
{
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
width: 150,
|
|
411
|
-
},
|
|
412
|
-
{
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
field: "
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
},
|
|
494
|
-
{
|
|
495
|
-
title: this.$t1("
|
|
496
|
-
field: "
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
this.
|
|
544
|
-
this.
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
this.
|
|
584
|
-
this.
|
|
585
|
-
};
|
|
586
|
-
},
|
|
587
|
-
|
|
588
|
-
this.
|
|
589
|
-
},
|
|
590
|
-
|
|
591
|
-
window.
|
|
592
|
-
this.
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
1
|
+
import projectTagView from "@base/components/projectTag/view.vue";
|
|
2
|
+
import projectTagAddButton from "@base/components/projectTag/addButton.vue";
|
|
3
|
+
import projectTagDeleteButton from "@base/components/projectTag/deleteButton.vue";
|
|
4
|
+
import tableForm from "@base/components/table/tableForm.vue";
|
|
5
|
+
import editView from "@base/views/bd/setting/form_template/edit.vue";
|
|
6
|
+
import userDialog from "@base/views/user/user/dialog.vue";
|
|
7
|
+
import positionDialog from "@base/views/user/position/dialog.vue";
|
|
8
|
+
import scriptDescriptionDialog from "@base/components/scriptDescription/dialog.vue";
|
|
9
|
+
import ftHistoryDialog from "@base/views/bd/setting/form_template/ftHistoryDialog.vue";
|
|
10
|
+
import itemList from "@base/views/bd/setting/form_template/itemList.vue";
|
|
11
|
+
import formTypeEditDialog from "@base/views/user/form/form_type/editDialog.vue";
|
|
12
|
+
import projectTagDialog from "@base/views/user/project_tag/dialog.vue";
|
|
13
|
+
import { treeScollx } from "@base/utils/global";
|
|
14
|
+
import indexUtil from "@base/utils";
|
|
15
|
+
import { getBdFlag } from "@base/api/user";
|
|
16
|
+
import {
|
|
17
|
+
getJsxBtnList,
|
|
18
|
+
getJsxEditLink,
|
|
19
|
+
getJsxStatus,
|
|
20
|
+
} from "@base/views/bd/setting/utils/index";
|
|
21
|
+
import formVersionButton from "@base/views/bd/setting/formVersion/link.vue";
|
|
22
|
+
import settingConfig from "@/settings";
|
|
23
|
+
import {
|
|
24
|
+
getDesignerLayoutType,
|
|
25
|
+
isH5FormTemplate,
|
|
26
|
+
} from "@base/views/bd/setting/form_template/formTemplateType.js";
|
|
27
|
+
|
|
28
|
+
let modules = {};
|
|
29
|
+
modules = {
|
|
30
|
+
name: "bd_form_template:list",
|
|
31
|
+
components: {
|
|
32
|
+
projectTagView,
|
|
33
|
+
projectTagAddButton,
|
|
34
|
+
projectTagDeleteButton,
|
|
35
|
+
tableForm,
|
|
36
|
+
editView,
|
|
37
|
+
userDialog,
|
|
38
|
+
positionDialog,
|
|
39
|
+
scriptDescriptionDialog,
|
|
40
|
+
ftHistoryDialog,
|
|
41
|
+
itemList,
|
|
42
|
+
formTypeEditDialog,
|
|
43
|
+
projectTagDialog,
|
|
44
|
+
formDesignerDialog: () =>
|
|
45
|
+
import("@base/views/bd/setting/form_template/formDesignerDialog.vue"),
|
|
46
|
+
formVersionButton,
|
|
47
|
+
},
|
|
48
|
+
data() {
|
|
49
|
+
return {
|
|
50
|
+
isFullscreen: false,
|
|
51
|
+
formDesTabs: "first",
|
|
52
|
+
activeName: "second",
|
|
53
|
+
dataId: 0,
|
|
54
|
+
showEdit: false,
|
|
55
|
+
vxeOption: {},
|
|
56
|
+
formData: {},
|
|
57
|
+
showDesingerDialog: false,
|
|
58
|
+
formCode: null,
|
|
59
|
+
formName: null,
|
|
60
|
+
templateId: null,
|
|
61
|
+
currentFormTemplate: null,
|
|
62
|
+
|
|
63
|
+
showItemEdit: false,
|
|
64
|
+
showParamEdit: false,
|
|
65
|
+
vxeOption1: {},
|
|
66
|
+
editId: "",
|
|
67
|
+
itemEditId: "",
|
|
68
|
+
pRow: null,
|
|
69
|
+
currentRow: {},
|
|
70
|
+
serviceId: null,
|
|
71
|
+
itemServiceId: null,
|
|
72
|
+
|
|
73
|
+
showWfDialog: false,
|
|
74
|
+
wfUrl: "",
|
|
75
|
+
ph: "",
|
|
76
|
+
dialogActiveName: "first",
|
|
77
|
+
showFunctionScriptList: false,
|
|
78
|
+
showUserDialog: false,
|
|
79
|
+
wfAssignData: [],
|
|
80
|
+
wfAssignCallback: null,
|
|
81
|
+
wfAssignMulti: true,
|
|
82
|
+
|
|
83
|
+
showPositionDialog: false,
|
|
84
|
+
wfAssignPositionData: [],
|
|
85
|
+
wfAssignPositionCallback: null,
|
|
86
|
+
|
|
87
|
+
showFormTemplateDialog: false,
|
|
88
|
+
wfAssignFormTemplateCallback: null,
|
|
89
|
+
|
|
90
|
+
showScriptDescriptionDialog: false,
|
|
91
|
+
showWfDiyAttributeEdit: false,
|
|
92
|
+
|
|
93
|
+
showFtHistoryDialog: false,
|
|
94
|
+
operateFtHistory: null,
|
|
95
|
+
|
|
96
|
+
defaultProps: {
|
|
97
|
+
label: "name", //这里是树结构中需显示的数据(即接口返回的需展示在页面上的参数)
|
|
98
|
+
children: [],
|
|
99
|
+
isLeaf: "leaf",
|
|
100
|
+
},
|
|
101
|
+
showItemView: false,
|
|
102
|
+
|
|
103
|
+
currentFormType: {},
|
|
104
|
+
editFormTypeId: null,
|
|
105
|
+
showFormTypeDialog: false,
|
|
106
|
+
showFormScriptList: false,
|
|
107
|
+
addProjectTagOption: {
|
|
108
|
+
url: USER_PREFIX + `/formTemplate/saveTag`,
|
|
109
|
+
tableDatas: () => {
|
|
110
|
+
return this.$refs["table-m1"].getCheckboxRecords(true);
|
|
111
|
+
},
|
|
112
|
+
reqData: (tagDatas, tableDatas) => {
|
|
113
|
+
let sids = tableDatas.map((item) => item.sid);
|
|
114
|
+
let tagCodes = tagDatas.map((item) => item.tagCode);
|
|
115
|
+
let reqData = {
|
|
116
|
+
tagCodes,
|
|
117
|
+
sids,
|
|
118
|
+
};
|
|
119
|
+
return reqData;
|
|
120
|
+
},
|
|
121
|
+
callback: () => {
|
|
122
|
+
this.searchEvent();
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
deleteProjectTagOption: {
|
|
126
|
+
url: USER_PREFIX + `/formTemplate/deleteTag`,
|
|
127
|
+
tableDatas: () => {
|
|
128
|
+
return this.$refs["table-m1"].getCheckboxRecords(true);
|
|
129
|
+
},
|
|
130
|
+
reqData: (tagDatas, tableDatas) => {
|
|
131
|
+
let sids = tableDatas.map((item) => item.sid);
|
|
132
|
+
let tagCodes = tagDatas.map((item) => item.tagCode);
|
|
133
|
+
let reqData = {
|
|
134
|
+
tagCodes,
|
|
135
|
+
sids,
|
|
136
|
+
};
|
|
137
|
+
return reqData;
|
|
138
|
+
},
|
|
139
|
+
callback: () => {
|
|
140
|
+
this.searchEvent();
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
showProjectTagDialog3: false,
|
|
144
|
+
checkTags: [],
|
|
145
|
+
isDev: true,
|
|
146
|
+
menuKindAuth: {},
|
|
147
|
+
showTree: false,
|
|
148
|
+
designerReadonly: false,
|
|
149
|
+
designerLayoutType: "PC",
|
|
150
|
+
};
|
|
151
|
+
},
|
|
152
|
+
computed: {
|
|
153
|
+
currentMenuKindId() {
|
|
154
|
+
return this.currentFormType?.id || null;
|
|
155
|
+
},
|
|
156
|
+
currentMenuKindName() {
|
|
157
|
+
return this.currentFormType?.name || null;
|
|
158
|
+
},
|
|
159
|
+
otherFlag() {
|
|
160
|
+
return this.currentFormType?.menuKindCode === "other";
|
|
161
|
+
},
|
|
162
|
+
exportArchiveEnabled() {
|
|
163
|
+
return settingConfig.exportArchiveEnabled === true;
|
|
164
|
+
},
|
|
165
|
+
operationColumnWidth() {
|
|
166
|
+
const btnWidth = 47;
|
|
167
|
+
return this.exportArchiveEnabled ? btnWidth * 3 : btnWidth * 2;
|
|
168
|
+
},
|
|
169
|
+
},
|
|
170
|
+
watch: {
|
|
171
|
+
formDesTabs(val) {
|
|
172
|
+
if (this.showFormScriptList === false && val === "second") {
|
|
173
|
+
this.showFormScriptList = true;
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
},
|
|
177
|
+
mounted() {
|
|
178
|
+
treeScollx({ target: this, type: "default" });
|
|
179
|
+
this.getBdEnv();
|
|
180
|
+
this.initTableList();
|
|
181
|
+
this.initWfWinParam();
|
|
182
|
+
},
|
|
183
|
+
methods: {
|
|
184
|
+
searchEvent() {
|
|
185
|
+
this.$refs["table-m1"].commitProxy("reload");
|
|
186
|
+
},
|
|
187
|
+
resetEvent() {
|
|
188
|
+
this.formData = {};
|
|
189
|
+
this.checkTags = [];
|
|
190
|
+
this.$refs["table-m1"].commitProxy("reload");
|
|
191
|
+
},
|
|
192
|
+
openEditDialog(row) {
|
|
193
|
+
let dataId = row?.id || 0;
|
|
194
|
+
/*this.dataId = !id || typeof id === 'object' ? 0 : id;
|
|
195
|
+
this.activeName = 'first';
|
|
196
|
+
this.showItemEdit = false;
|
|
197
|
+
this.$openEditView('showEdit');*/
|
|
198
|
+
if (!dataId) {
|
|
199
|
+
this.dataId = dataId;
|
|
200
|
+
this.activeName = "first";
|
|
201
|
+
this.$openEditView("showEdit");
|
|
202
|
+
} else {
|
|
203
|
+
this.$refs.xTabs.openEditTab(row);
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
openDesingerDialogByAuth(row) {
|
|
207
|
+
if (!this.otherFlag) {
|
|
208
|
+
this.openDesingerDialog(row);
|
|
209
|
+
} else {
|
|
210
|
+
this.getOtherMenuKindAuth(row, (editAuth) => {
|
|
211
|
+
this.openDesingerDialog(row, null, !editAuth);
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
getOtherMenuKindAuth(row, callback) {
|
|
216
|
+
if (row.sid) {
|
|
217
|
+
this.$http({
|
|
218
|
+
aes: true,
|
|
219
|
+
url: USER_PREFIX + "/form_template_auth/getAuth",
|
|
220
|
+
method: `post`,
|
|
221
|
+
data: { stringOne: row.sid },
|
|
222
|
+
isLoading: true,
|
|
223
|
+
success: (res) => {
|
|
224
|
+
let menuKindAuth = res.objx || {};
|
|
225
|
+
callback(!!menuKindAuth.editAuth);
|
|
226
|
+
},
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
openDesingerDialog(row, callback, readonly = false) {
|
|
231
|
+
/* 移动端模板进设计器默认 H5 模式(临时模式,工具栏仍可手动切回 PC) */
|
|
232
|
+
this.designerLayoutType = getDesignerLayoutType(row.formCode);
|
|
233
|
+
this.formCode = row.formCode;
|
|
234
|
+
this.formName = row.formName;
|
|
235
|
+
this.currentFormTemplate = row;
|
|
236
|
+
this.isFullscreen = false;
|
|
237
|
+
|
|
238
|
+
this.designerReadonly = readonly;
|
|
239
|
+
this.showDesingerDialog = true;
|
|
240
|
+
this.designerSaveCallback = callback ?? null;
|
|
241
|
+
},
|
|
242
|
+
openDesingerDialogByChild({ row, readonly, callback }) {
|
|
243
|
+
this.openDesingerDialog(row, callback, readonly);
|
|
244
|
+
},
|
|
245
|
+
reflushTemplateList() {
|
|
246
|
+
this.searchEvent();
|
|
247
|
+
this.designerSaveCallback && this.designerSaveCallback();
|
|
248
|
+
},
|
|
249
|
+
handleFullscreen() {
|
|
250
|
+
let isFullscreen = this.isFullscreen;
|
|
251
|
+
if (!isFullscreen) {
|
|
252
|
+
indexUtil.addClass(document.body, "hideMenu");
|
|
253
|
+
} else {
|
|
254
|
+
indexUtil.removeClass(document.body, "hideMenu");
|
|
255
|
+
}
|
|
256
|
+
this.isFullscreen = !isFullscreen;
|
|
257
|
+
},
|
|
258
|
+
openFtHistoryDialog(row) {
|
|
259
|
+
this.operateFtHistory = row;
|
|
260
|
+
this.showFtHistoryDialog = true;
|
|
261
|
+
},
|
|
262
|
+
confirmFtHistoryDialog(row) {
|
|
263
|
+
this.searchEvent();
|
|
264
|
+
},
|
|
265
|
+
closeFormDesignwinEvent(done) {
|
|
266
|
+
this.$baseConfirm(
|
|
267
|
+
this.$t1('请确认"已保存"报表模板,是否继续关闭?')
|
|
268
|
+
).then(() => {
|
|
269
|
+
indexUtil.removeClass(document.body, "hideMenu");
|
|
270
|
+
done && done();
|
|
271
|
+
});
|
|
272
|
+
},
|
|
273
|
+
getSearchParam() {
|
|
274
|
+
let tagCodes = null;
|
|
275
|
+
if (this.checkTags.length) {
|
|
276
|
+
tagCodes = this.checkTags.map((item) => item.tagCode);
|
|
277
|
+
}
|
|
278
|
+
let currentFormType = this.currentFormType || {};
|
|
279
|
+
let menuKindCode =
|
|
280
|
+
currentFormType.menuKindCode && !this.otherFlag
|
|
281
|
+
? currentFormType.menuKindCode
|
|
282
|
+
: null;
|
|
283
|
+
return {
|
|
284
|
+
...this.formData,
|
|
285
|
+
tagCodes,
|
|
286
|
+
menuKindCode,
|
|
287
|
+
history: false,
|
|
288
|
+
};
|
|
289
|
+
},
|
|
290
|
+
initTableList() {
|
|
291
|
+
let that = this;
|
|
292
|
+
let tableOption = {
|
|
293
|
+
vue: this,
|
|
294
|
+
tableRef: "table-m1",
|
|
295
|
+
tableName: "bd_form_template_list-m1",
|
|
296
|
+
path: () => {
|
|
297
|
+
let url = USER_PREFIX + "/formTemplate/listPage";
|
|
298
|
+
if (this.otherFlag) {
|
|
299
|
+
url = USER_PREFIX + "/formTemplate/listOtherPage";
|
|
300
|
+
}
|
|
301
|
+
return url;
|
|
302
|
+
},
|
|
303
|
+
param: () => {
|
|
304
|
+
return this.getSearchParam();
|
|
305
|
+
},
|
|
306
|
+
columns: [
|
|
307
|
+
{ type: "checkbox", width: 48, resizable: false, fixed: "left" },
|
|
308
|
+
{
|
|
309
|
+
title: this.$t1("模板名称"),
|
|
310
|
+
field: "formName",
|
|
311
|
+
width: 150,
|
|
312
|
+
fixed: "left",
|
|
313
|
+
slots: {
|
|
314
|
+
default: ({ row }) => {
|
|
315
|
+
return getJsxEditLink({
|
|
316
|
+
content: row.formName,
|
|
317
|
+
onclick: () => {
|
|
318
|
+
this.openEditDialog(row);
|
|
319
|
+
},
|
|
320
|
+
});
|
|
321
|
+
},
|
|
322
|
+
},
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
title: this.$t1("项目标签"),
|
|
326
|
+
field: "tag",
|
|
327
|
+
width: 250,
|
|
328
|
+
slots: { default: "tag" },
|
|
329
|
+
params: {
|
|
330
|
+
exportVal: ({ row }) => {
|
|
331
|
+
if (row.formTemplateTagDTOs) {
|
|
332
|
+
return row.formTemplateTagDTOs
|
|
333
|
+
.map((item) => item.tagName)
|
|
334
|
+
.join(",");
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
},
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
title: this.$t1("模板编码"),
|
|
341
|
+
field: "formCode",
|
|
342
|
+
width: 150,
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
/* 模板类型非数据库字段,由模板编码前缀派生,不参与后端查询 */
|
|
346
|
+
title: this.$t1("模板类型"),
|
|
347
|
+
field: "templateType",
|
|
348
|
+
width: 120,
|
|
349
|
+
slots: {
|
|
350
|
+
default: ({ row }) => {
|
|
351
|
+
return isH5FormTemplate(row.formCode)
|
|
352
|
+
? this.$t1("移动端")
|
|
353
|
+
: this.$t1("PC端");
|
|
354
|
+
},
|
|
355
|
+
},
|
|
356
|
+
params: {
|
|
357
|
+
exportVal: ({ row }) => {
|
|
358
|
+
return isH5FormTemplate(row.formCode)
|
|
359
|
+
? this.$t1("移动端")
|
|
360
|
+
: this.$t1("PC端");
|
|
361
|
+
},
|
|
362
|
+
},
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
title: this.$t1("表单分类"),
|
|
366
|
+
field: "menuKindName",
|
|
367
|
+
width: 150,
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
title: this.$t1("是否启用"),
|
|
371
|
+
field: "enabled",
|
|
372
|
+
width: 150,
|
|
373
|
+
slots: {
|
|
374
|
+
default: ({ row }) => {
|
|
375
|
+
if (row.enabled) {
|
|
376
|
+
return getJsxStatus(null, this.$t1("启用"));
|
|
377
|
+
} else {
|
|
378
|
+
return getJsxStatus("s-3", this.$t1("禁用"));
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
},
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
title: this.$t1("启用流程"),
|
|
385
|
+
field: "hasWf",
|
|
386
|
+
width: 150,
|
|
387
|
+
slots: {
|
|
388
|
+
default: ({ row }) => {
|
|
389
|
+
if (row.hasWf) {
|
|
390
|
+
return getJsxStatus(null, this.$t1("是"));
|
|
391
|
+
} else {
|
|
392
|
+
return getJsxStatus("s-3", this.$t1("否"));
|
|
393
|
+
}
|
|
394
|
+
},
|
|
395
|
+
},
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
title: this.$t1("默认流程单据类型名称"),
|
|
399
|
+
field: "objTypeName",
|
|
400
|
+
width: 200,
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
title: this.$t1("引用流程的表单编码"),
|
|
404
|
+
field: "fromWfFormCode",
|
|
405
|
+
width: 200,
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
title: this.$t1("备注"),
|
|
409
|
+
field: "remark",
|
|
410
|
+
width: 150,
|
|
411
|
+
},
|
|
412
|
+
{ field: "serviceName", title: this.$t1("服务名"), width: 150 },
|
|
413
|
+
{
|
|
414
|
+
title: this.$t1("版本号"),
|
|
415
|
+
field: "version",
|
|
416
|
+
width: 150,
|
|
417
|
+
},
|
|
418
|
+
{ title: this.$t1("唯一标识"), field: "sid", width: 280 },
|
|
419
|
+
{
|
|
420
|
+
field: "createBy",
|
|
421
|
+
title: this.$t1("创建人"),
|
|
422
|
+
width: 150,
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
field: "createDate",
|
|
426
|
+
title: this.$t1("创建时间"),
|
|
427
|
+
width: 150,
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
field: "modifyBy",
|
|
431
|
+
title: this.$t1("更新人"),
|
|
432
|
+
width: 150,
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
field: "modifyDate",
|
|
436
|
+
title: this.$t1("更新时间"),
|
|
437
|
+
width: 150,
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
width: this.operationColumnWidth,
|
|
441
|
+
fixed: "right",
|
|
442
|
+
title: "",
|
|
443
|
+
sortable: false,
|
|
444
|
+
slots: {
|
|
445
|
+
default: "operation",
|
|
446
|
+
},
|
|
447
|
+
},
|
|
448
|
+
],
|
|
449
|
+
searchColumns: [
|
|
450
|
+
{
|
|
451
|
+
title: this.$t1("表单分类"),
|
|
452
|
+
field: "menuKindName",
|
|
453
|
+
type: "input",
|
|
454
|
+
common: true,
|
|
455
|
+
disabled: true,
|
|
456
|
+
defaultValueEnabled: false,
|
|
457
|
+
slot: "menuKindName",
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
title: this.$t1("模板名称"),
|
|
461
|
+
field: "formName",
|
|
462
|
+
type: "input",
|
|
463
|
+
common: true,
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
title: this.$t1("模板编码"),
|
|
467
|
+
field: "formCode",
|
|
468
|
+
type: "input",
|
|
469
|
+
common: true,
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
title: this.$t1("是否启用"),
|
|
473
|
+
field: "enabled",
|
|
474
|
+
type: "select",
|
|
475
|
+
common: true,
|
|
476
|
+
itemOption: [
|
|
477
|
+
{ label: this.$t1("启用"), value: true },
|
|
478
|
+
{ label: this.$t1("禁用"), value: false },
|
|
479
|
+
],
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
title: this.$t1("项目标签"),
|
|
483
|
+
field: "tag",
|
|
484
|
+
type: "input",
|
|
485
|
+
common: true,
|
|
486
|
+
slot: "tag",
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
title: this.$t1("模板JSON"),
|
|
490
|
+
field: "formViewContent",
|
|
491
|
+
type: "input",
|
|
492
|
+
common: false,
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
title: this.$t1("创建人"),
|
|
496
|
+
field: "createBy",
|
|
497
|
+
type: "input",
|
|
498
|
+
common: false,
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
title: this.$t1("更新人"),
|
|
502
|
+
field: "modifyBy",
|
|
503
|
+
type: "input",
|
|
504
|
+
common: false,
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
title: this.$t1("操作日志"),
|
|
508
|
+
field: "logContent",
|
|
509
|
+
type: "input",
|
|
510
|
+
common: false,
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
title: this.$t1("创建时间"),
|
|
514
|
+
field: "startCreateDate",
|
|
515
|
+
field2: "endCreateDate",
|
|
516
|
+
type: "dateRange",
|
|
517
|
+
common: false,
|
|
518
|
+
widgetType: "datetime",
|
|
519
|
+
valueFormat: "yyyy-MM-dd HH:mm:ss",
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
title: this.$t1("更新时间"),
|
|
523
|
+
field: "startModifyDate",
|
|
524
|
+
field2: "endModifyDate",
|
|
525
|
+
type: "dateRange",
|
|
526
|
+
common: false,
|
|
527
|
+
widgetType: "datetime",
|
|
528
|
+
valueFormat: "yyyy-MM-dd HH:mm:ss",
|
|
529
|
+
},
|
|
530
|
+
],
|
|
531
|
+
config: {
|
|
532
|
+
proxyConfig: {
|
|
533
|
+
autoLoad: false,
|
|
534
|
+
},
|
|
535
|
+
},
|
|
536
|
+
};
|
|
537
|
+
this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
|
|
538
|
+
this.vxeOption = opts;
|
|
539
|
+
this.showTree = true;
|
|
540
|
+
});
|
|
541
|
+
},
|
|
542
|
+
chooseCellM1(row) {
|
|
543
|
+
this.currentRow = row;
|
|
544
|
+
this.showItemView = true;
|
|
545
|
+
},
|
|
546
|
+
openWfDesignDialog(actModelId) {
|
|
547
|
+
//wfType 0:单据流程,1:场景流程
|
|
548
|
+
let serviceId = this.currentRow.serviceName;
|
|
549
|
+
this.wfUrl =
|
|
550
|
+
WEB_PREFIX +
|
|
551
|
+
"/activiti-explorer/modeler.html?wfType=0&serviceId=" +
|
|
552
|
+
serviceId +
|
|
553
|
+
"&modelId=" +
|
|
554
|
+
actModelId;
|
|
555
|
+
this.dialogActiveName = "first";
|
|
556
|
+
this.showWfDialog = true;
|
|
557
|
+
},
|
|
558
|
+
closeDesignwinEvent(done) {
|
|
559
|
+
this.$baseConfirm(
|
|
560
|
+
this.$t1('请确认"已保存"流程模板,是否继续关闭?')
|
|
561
|
+
).then(() => {
|
|
562
|
+
this.showWfDialog = false;
|
|
563
|
+
// this.showDesingerDialog = false;
|
|
564
|
+
});
|
|
565
|
+
},
|
|
566
|
+
initWfWinParam() {
|
|
567
|
+
this.initCloseWfDesignWin();
|
|
568
|
+
this.initWinUserDialog();
|
|
569
|
+
this.initWinPositionDialog();
|
|
570
|
+
this.initSysParamForWf();
|
|
571
|
+
this.initWinFormTemplateDialog();
|
|
572
|
+
this.initWinScriptDescriptionDialog();
|
|
573
|
+
},
|
|
574
|
+
initCloseWfDesignWin() {
|
|
575
|
+
window.closeWfDesignWin = () => {
|
|
576
|
+
this.showWfDialog = false;
|
|
577
|
+
};
|
|
578
|
+
},
|
|
579
|
+
initWinUserDialog() {
|
|
580
|
+
window.openAssignUserDialog = (opts) => {
|
|
581
|
+
this.wfAssignMulti = opts.multi;
|
|
582
|
+
this.wfAssignData = opts.data || [];
|
|
583
|
+
this.wfAssignCallback = opts.callback;
|
|
584
|
+
this.showUserDialog = true;
|
|
585
|
+
};
|
|
586
|
+
},
|
|
587
|
+
confirmUser(rows) {
|
|
588
|
+
this.wfAssignCallback(rows);
|
|
589
|
+
},
|
|
590
|
+
initWinPositionDialog() {
|
|
591
|
+
window.openAssignPositionDialog = (opts) => {
|
|
592
|
+
this.wfAssignPositionData = opts.data || [];
|
|
593
|
+
this.wfAssignPositionCallback = opts.callback;
|
|
594
|
+
this.showPositionDialog = true;
|
|
595
|
+
};
|
|
596
|
+
},
|
|
597
|
+
initSysParamForWf() {
|
|
598
|
+
let webPrefix = WEB_PREFIX;
|
|
599
|
+
let baseApi = process.env.VUE_APP_BASE_API;
|
|
600
|
+
window.sysParamForWf = {
|
|
601
|
+
webPrefix,
|
|
602
|
+
baseApi,
|
|
603
|
+
};
|
|
604
|
+
},
|
|
605
|
+
confirmPosition(rows) {
|
|
606
|
+
this.wfAssignPositionCallback(rows);
|
|
607
|
+
},
|
|
608
|
+
initWinFormTemplateDialog() {
|
|
609
|
+
window.openAssignFormTemplateDialog = (opts) => {
|
|
610
|
+
this.wfAssignFormTemplateCallback = opts.callback;
|
|
611
|
+
this.showFormTemplateDialog = true;
|
|
612
|
+
};
|
|
613
|
+
},
|
|
614
|
+
confirmFormTemplate(rows) {
|
|
615
|
+
this.wfAssignFormTemplateCallback(rows);
|
|
616
|
+
},
|
|
617
|
+
initWinScriptDescriptionDialog() {
|
|
618
|
+
window.openScriptDescriptionDialog = (opts) => {
|
|
619
|
+
this.showScriptDescriptionDialog = true;
|
|
620
|
+
};
|
|
621
|
+
},
|
|
622
|
+
handleNodeClick(data, node, v) {
|
|
623
|
+
this.handleNodeData(node);
|
|
624
|
+
this.$forceUpdate();
|
|
625
|
+
this.searchEvent();
|
|
626
|
+
},
|
|
627
|
+
// 异步树叶子节点懒加载逻辑
|
|
628
|
+
loadNode(node, resolve) {
|
|
629
|
+
let id = node && node.data && node.data.id ? node.data.id || "" : 0;
|
|
630
|
+
let param = { enabled: true };
|
|
631
|
+
let url = !id
|
|
632
|
+
? USER_PREFIX + "/menuKind/getAllList"
|
|
633
|
+
: USER_PREFIX + "/menuKind/getChildren";
|
|
634
|
+
this.$http({
|
|
635
|
+
aes: true,
|
|
636
|
+
url: url,
|
|
637
|
+
method: "post",
|
|
638
|
+
data: {
|
|
639
|
+
parent: id,
|
|
640
|
+
enabled: true,
|
|
641
|
+
dataType: 2,
|
|
642
|
+
},
|
|
643
|
+
success: (res) => {
|
|
644
|
+
let rows = res.objx || [];
|
|
645
|
+
rows.forEach((value) => {
|
|
646
|
+
value.leaf = !value.hasChild;
|
|
647
|
+
});
|
|
648
|
+
if (node.level === 0) {
|
|
649
|
+
rows.push({
|
|
650
|
+
id: "other",
|
|
651
|
+
menuKindCode: "other",
|
|
652
|
+
name: "其他分类",
|
|
653
|
+
leaf: true,
|
|
654
|
+
});
|
|
655
|
+
if (rows.length > 0) {
|
|
656
|
+
this.$nextTick(() => {
|
|
657
|
+
let firstNode = node.childNodes[0];
|
|
658
|
+
if (rows[0].hasChild) {
|
|
659
|
+
firstNode.expand();
|
|
660
|
+
}
|
|
661
|
+
this.$refs.tree.setCurrentKey(firstNode.data);
|
|
662
|
+
this.handleNodeClick(firstNode.data, firstNode, this);
|
|
663
|
+
});
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
resolve(rows);
|
|
667
|
+
},
|
|
668
|
+
});
|
|
669
|
+
},
|
|
670
|
+
handleNodeData(node) {
|
|
671
|
+
this.currentFormType = node ? node.data : null;
|
|
672
|
+
this.currentNode = node;
|
|
673
|
+
},
|
|
674
|
+
handleFormDesignClose() {
|
|
675
|
+
this.formDesTabs = "first";
|
|
676
|
+
this.showFormScriptList = false;
|
|
677
|
+
},
|
|
678
|
+
openProjectTagDialog3() {
|
|
679
|
+
this.showProjectTagDialog3 = true;
|
|
680
|
+
},
|
|
681
|
+
confirmProjectTagDialog3(rows) {
|
|
682
|
+
this.checkTags = rows;
|
|
683
|
+
},
|
|
684
|
+
getTabNames() {
|
|
685
|
+
return this.checkTags.map((item) => item.tagName).join(",");
|
|
686
|
+
},
|
|
687
|
+
jsonImport() {
|
|
688
|
+
this.$jsonImport({
|
|
689
|
+
saveUrl: USER_PREFIX + "/form_develop/importFormTemplate",
|
|
690
|
+
showResult: true,
|
|
691
|
+
resultColumns: [
|
|
692
|
+
{ title: this.$t1("模板名称"), field: "formName", width: 200 },
|
|
693
|
+
{ title: this.$t1("模板编码"), field: "formCode", width: 200 },
|
|
694
|
+
{
|
|
695
|
+
title: this.$t1("结果信息"),
|
|
696
|
+
field: "impReturnMsg",
|
|
697
|
+
width: 300,
|
|
698
|
+
showOverflow: false,
|
|
699
|
+
slots: {
|
|
700
|
+
default: ({ row }, h) => {
|
|
701
|
+
let impReturnMsg = row.impReturnMsg;
|
|
702
|
+
let items = impReturnMsg
|
|
703
|
+
.split(";")
|
|
704
|
+
.filter((item) => !!item && !!item.trim())
|
|
705
|
+
.map((item) => {
|
|
706
|
+
return h("p", {}, `${item.trim()};`);
|
|
707
|
+
});
|
|
708
|
+
return h("div", {}, items);
|
|
709
|
+
},
|
|
710
|
+
},
|
|
711
|
+
},
|
|
712
|
+
],
|
|
713
|
+
callback: () => {
|
|
714
|
+
this.searchEvent();
|
|
715
|
+
},
|
|
716
|
+
});
|
|
717
|
+
},
|
|
718
|
+
jsonExport() {
|
|
719
|
+
this.$jsonExport({
|
|
720
|
+
title: "表单模板",
|
|
721
|
+
targetRef: "table-m1",
|
|
722
|
+
url: USER_PREFIX + "/form_develop/exportFormTemplate",
|
|
723
|
+
abcEnabled: true,
|
|
724
|
+
editAuth: this.currentFormType.editAuth,
|
|
725
|
+
selectTypeAuth: this.currentFormType.selectTypeAuth,
|
|
726
|
+
});
|
|
727
|
+
},
|
|
728
|
+
jsonExportArchive(row) {
|
|
729
|
+
this.$jsonExport({
|
|
730
|
+
title: "表单模板",
|
|
731
|
+
data: [row.id],
|
|
732
|
+
url: USER_PREFIX + "/form_develop/exportFormTemplate",
|
|
733
|
+
plaintext: 1,
|
|
734
|
+
abcEnabled: true,
|
|
735
|
+
editAuth: this.currentFormType.editAuth,
|
|
736
|
+
selectTypeAuth: this.currentFormType.selectTypeAuth,
|
|
737
|
+
});
|
|
738
|
+
},
|
|
739
|
+
getBdEnv() {
|
|
740
|
+
getBdFlag({
|
|
741
|
+
success: (res) => {
|
|
742
|
+
this.isDev = res.objx === 1;
|
|
743
|
+
},
|
|
744
|
+
});
|
|
745
|
+
},
|
|
746
|
+
},
|
|
747
|
+
};
|
|
748
|
+
export default modules;
|