cloud-web-corejs 1.0.54-dev.124 → 1.0.54-dev.126
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/advancedSearchDialog/mixins.js +28 -1
- package/src/components/table/tableForm.vue +1 -2
- package/src/components/table/tableFormMixin.js +13 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +1051 -1051
- package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +7 -7
- package/src/components/xform/form-render/container-item/data-table-mixin.js +15 -5
- package/src/components/xform/lang/zh-CN.js +1 -1
- package/src/layout/components/extractedCode/createDialog.vue +2 -2
- package/src/views/bd/setting/form_import_log/edit.vue +11 -5
- package/src/views/bd/setting/form_import_log/list.vue +12 -3
- package/src/views/bd/setting/form_template/mixins/list.js +608 -543
- package/src/views/bd/setting/table_model/mixins/list.js +18 -1
- package/src/views/user/company_info/dialog.vue +164 -164
- package/src/views/user/role/dialog.vue +1 -1
- package/src/views/user/sale_org/dialog.vue +1 -1
- package/src/views/user/user/dialog.vue +1 -1
@@ -1,543 +1,608 @@
|
|
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 formScriptList from "@base/views/bd/setting/form_script/form_list.vue";
|
13
|
-
import projectTagDialog from "@base/views/user/project_tag/dialog.vue";
|
14
|
-
import {treeScollx} from "@base/utils/global";
|
15
|
-
import indexUtil from "@base/utils";
|
16
|
-
import {getBdFlag} from "@base/api/user";
|
17
|
-
import designer from "@base/views/user/form/vform/designer.vue";
|
18
|
-
import {
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
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
|
-
this
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
this
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
this.
|
190
|
-
this.
|
191
|
-
this.
|
192
|
-
|
193
|
-
|
194
|
-
this.
|
195
|
-
},
|
196
|
-
|
197
|
-
this.
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
this.
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
this.
|
215
|
-
},
|
216
|
-
|
217
|
-
this
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
tagCodes
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
},
|
258
|
-
{
|
259
|
-
title: this.$t1(
|
260
|
-
field:
|
261
|
-
width: 150
|
262
|
-
},
|
263
|
-
{
|
264
|
-
title: this.$t1(
|
265
|
-
field:
|
266
|
-
width: 150,
|
267
|
-
},
|
268
|
-
{
|
269
|
-
title: this.$t1(
|
270
|
-
field:
|
271
|
-
width: 150,
|
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
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
this.
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
this.
|
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
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
this
|
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
|
-
|
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 formScriptList from "@base/views/bd/setting/form_script/form_list.vue";
|
13
|
+
import projectTagDialog from "@base/views/user/project_tag/dialog.vue";
|
14
|
+
import { treeScollx } from "@base/utils/global";
|
15
|
+
import indexUtil from "@base/utils";
|
16
|
+
import { getBdFlag } from "@base/api/user";
|
17
|
+
import designer from "@base/views/user/form/vform/designer.vue";
|
18
|
+
import {
|
19
|
+
getJsxBtnList,
|
20
|
+
getJsxStatus,
|
21
|
+
} from "@base/views/bd/setting/utils/index";
|
22
|
+
|
23
|
+
let modules = {};
|
24
|
+
modules = {
|
25
|
+
name: "bd_form_template:list",
|
26
|
+
components: {
|
27
|
+
projectTagView,
|
28
|
+
projectTagAddButton,
|
29
|
+
projectTagDeleteButton,
|
30
|
+
tableForm,
|
31
|
+
editView,
|
32
|
+
userDialog,
|
33
|
+
positionDialog,
|
34
|
+
scriptDescriptionDialog,
|
35
|
+
ftHistoryDialog,
|
36
|
+
itemList,
|
37
|
+
formTypeEditDialog,
|
38
|
+
formScriptList,
|
39
|
+
projectTagDialog,
|
40
|
+
designer,
|
41
|
+
},
|
42
|
+
data() {
|
43
|
+
return {
|
44
|
+
isFullscreen: false,
|
45
|
+
formDesTabs: "first",
|
46
|
+
activeName: "second",
|
47
|
+
dataId: 0,
|
48
|
+
showEdit: false,
|
49
|
+
vxeOption: {},
|
50
|
+
formData: {},
|
51
|
+
showDesingerDialog: false,
|
52
|
+
formCode: null,
|
53
|
+
formName: null,
|
54
|
+
templateId: null,
|
55
|
+
currentFormTemplate: null,
|
56
|
+
|
57
|
+
showItemEdit: false,
|
58
|
+
showParamEdit: false,
|
59
|
+
vxeOption1: {},
|
60
|
+
editId: "",
|
61
|
+
itemEditId: "",
|
62
|
+
pRow: null,
|
63
|
+
currentRow: {},
|
64
|
+
serviceId: null,
|
65
|
+
itemServiceId: null,
|
66
|
+
|
67
|
+
showWfDialog: false,
|
68
|
+
wfUrl: "",
|
69
|
+
ph: "",
|
70
|
+
dialogActiveName: "first",
|
71
|
+
showFunctionScriptList: false,
|
72
|
+
showUserDialog: false,
|
73
|
+
wfAssignData: [],
|
74
|
+
wfAssignCallback: null,
|
75
|
+
wfAssignMulti: true,
|
76
|
+
|
77
|
+
showPositionDialog: false,
|
78
|
+
wfAssignPositionData: [],
|
79
|
+
wfAssignPositionCallback: null,
|
80
|
+
|
81
|
+
showFormTemplateDialog: false,
|
82
|
+
wfAssignFormTemplateCallback: null,
|
83
|
+
|
84
|
+
showScriptDescriptionDialog: false,
|
85
|
+
showWfDiyAttributeEdit: false,
|
86
|
+
|
87
|
+
showFtHistoryDialog: false,
|
88
|
+
operateFtHistory: null,
|
89
|
+
|
90
|
+
defaultProps: {
|
91
|
+
label: "name", //这里是树结构中需显示的数据(即接口返回的需展示在页面上的参数)
|
92
|
+
children: [],
|
93
|
+
isLeaf: "leaf",
|
94
|
+
},
|
95
|
+
showItemView: false,
|
96
|
+
|
97
|
+
currentFormType: {},
|
98
|
+
editFormTypeId: null,
|
99
|
+
showFormTypeDialog: false,
|
100
|
+
showFormScriptList: false,
|
101
|
+
addProjectTagOption: {
|
102
|
+
url: USER_PREFIX + `/formTemplate/saveTag`,
|
103
|
+
tableDatas: () => {
|
104
|
+
return this.$refs["table-m1"].getCheckboxRecords(true);
|
105
|
+
},
|
106
|
+
reqData: (tagDatas, tableDatas) => {
|
107
|
+
let sids = tableDatas.map((item) => item.sid);
|
108
|
+
let tagCodes = tagDatas.map((item) => item.tagCode);
|
109
|
+
let reqData = {
|
110
|
+
tagCodes,
|
111
|
+
sids,
|
112
|
+
};
|
113
|
+
return reqData;
|
114
|
+
},
|
115
|
+
callback: () => {
|
116
|
+
this.searchEvent();
|
117
|
+
},
|
118
|
+
},
|
119
|
+
deleteProjectTagOption: {
|
120
|
+
url: USER_PREFIX + `/formTemplate/deleteTag`,
|
121
|
+
tableDatas: () => {
|
122
|
+
return this.$refs["table-m1"].getCheckboxRecords(true);
|
123
|
+
},
|
124
|
+
reqData: (tagDatas, tableDatas) => {
|
125
|
+
let sids = tableDatas.map((item) => item.sid);
|
126
|
+
let tagCodes = tagDatas.map((item) => item.tagCode);
|
127
|
+
let reqData = {
|
128
|
+
tagCodes,
|
129
|
+
sids,
|
130
|
+
};
|
131
|
+
return reqData;
|
132
|
+
},
|
133
|
+
callback: () => {
|
134
|
+
this.searchEvent();
|
135
|
+
},
|
136
|
+
},
|
137
|
+
showProjectTagDialog3: false,
|
138
|
+
checkTags: [],
|
139
|
+
isDev: true,
|
140
|
+
menuKindAuth: {},
|
141
|
+
showTree: false,
|
142
|
+
};
|
143
|
+
},
|
144
|
+
computed: {
|
145
|
+
currentMenuKindId() {
|
146
|
+
return this.currentFormType?.id || null;
|
147
|
+
},
|
148
|
+
currentMenuKindName() {
|
149
|
+
return this.currentFormType?.name || null;
|
150
|
+
},
|
151
|
+
},
|
152
|
+
watch: {
|
153
|
+
formDesTabs(val) {
|
154
|
+
if (this.showFormScriptList == false && val == "second") {
|
155
|
+
this.showFormScriptList = true;
|
156
|
+
}
|
157
|
+
},
|
158
|
+
},
|
159
|
+
mounted() {
|
160
|
+
treeScollx({ target: this, type: "default" });
|
161
|
+
this.getBdEnv();
|
162
|
+
this.initTableList();
|
163
|
+
this.initWfWinParam();
|
164
|
+
},
|
165
|
+
methods: {
|
166
|
+
searchEvent() {
|
167
|
+
this.$refs["table-m1"].commitProxy("reload");
|
168
|
+
},
|
169
|
+
resetEvent() {
|
170
|
+
this.formData = {};
|
171
|
+
this.checkTags = [];
|
172
|
+
this.$refs["table-m1"].commitProxy("reload");
|
173
|
+
},
|
174
|
+
openEditDialog(row) {
|
175
|
+
let formCode = row?.formCode || null;
|
176
|
+
/*this.dataId = !id || typeof id == 'object' ? 0 : id;
|
177
|
+
this.activeName = 'first';
|
178
|
+
this.showItemEdit = false;
|
179
|
+
this.$openEditView('showEdit');*/
|
180
|
+
if (!formCode) {
|
181
|
+
this.dataId = formCode;
|
182
|
+
this.activeName = "first";
|
183
|
+
this.$openEditView("showEdit");
|
184
|
+
} else {
|
185
|
+
this.$refs.xTabs.openEditTab(row);
|
186
|
+
}
|
187
|
+
},
|
188
|
+
openDesingerDialog(row, callback) {
|
189
|
+
this.formCode = row.formCode;
|
190
|
+
this.formName = row.formName;
|
191
|
+
this.currentFormTemplate = row;
|
192
|
+
this.isFullscreen = false;
|
193
|
+
this.showDesingerDialog = true;
|
194
|
+
this.designerSaveCallback = callback ?? null;
|
195
|
+
},
|
196
|
+
openDesingerDialogByChild({ row, callback }) {
|
197
|
+
this.openDesingerDialog(row, callback);
|
198
|
+
},
|
199
|
+
reflushTemplateList() {
|
200
|
+
this.searchEvent();
|
201
|
+
this.designerSaveCallback && this.designerSaveCallback();
|
202
|
+
},
|
203
|
+
handleFullscreen() {
|
204
|
+
let isFullscreen = this.isFullscreen;
|
205
|
+
if (!isFullscreen) {
|
206
|
+
indexUtil.addClass(document.body, "hideMenu");
|
207
|
+
} else {
|
208
|
+
indexUtil.removeClass(document.body, "hideMenu");
|
209
|
+
}
|
210
|
+
this.isFullscreen = !isFullscreen;
|
211
|
+
},
|
212
|
+
openFtHistoryDialog(row) {
|
213
|
+
this.operateFtHistory = row;
|
214
|
+
this.showFtHistoryDialog = true;
|
215
|
+
},
|
216
|
+
confirmFtHistoryDialog(row) {
|
217
|
+
this.searchEvent();
|
218
|
+
},
|
219
|
+
closeFormDesignwinEvent(done) {
|
220
|
+
this.$baseConfirm(
|
221
|
+
this.$t1('请确认"已保存"报表模板,是否继续关闭?')
|
222
|
+
).then(() => {
|
223
|
+
indexUtil.removeClass(document.body, "hideMenu");
|
224
|
+
done && done();
|
225
|
+
});
|
226
|
+
},
|
227
|
+
getSearchParam() {
|
228
|
+
let tagCodes = null;
|
229
|
+
if (this.checkTags.length) {
|
230
|
+
tagCodes = this.checkTags.map((item) => item.tagCode);
|
231
|
+
}
|
232
|
+
let currentFormType = this.currentFormType || {};
|
233
|
+
return {
|
234
|
+
...this.formData,
|
235
|
+
tagCodes,
|
236
|
+
menuKindCode: currentFormType.menuKindCode || null,
|
237
|
+
history: false,
|
238
|
+
};
|
239
|
+
},
|
240
|
+
initTableList() {
|
241
|
+
let that = this;
|
242
|
+
let tableOption = {
|
243
|
+
vue: this,
|
244
|
+
tableRef: "table-m1",
|
245
|
+
tableName: "bd_form_template_list-m1",
|
246
|
+
path: USER_PREFIX + "/formTemplate/listPage",
|
247
|
+
param: () => {
|
248
|
+
return this.getSearchParam();
|
249
|
+
},
|
250
|
+
columns: [
|
251
|
+
{ type: "checkbox", width: 48, resizable: false, fixed: "left" },
|
252
|
+
{
|
253
|
+
title: this.$t1("模板名称"),
|
254
|
+
field: "formName",
|
255
|
+
width: 150,
|
256
|
+
fixed: "left",
|
257
|
+
},
|
258
|
+
{
|
259
|
+
title: this.$t1("模板编码"),
|
260
|
+
field: "formCode",
|
261
|
+
width: 150,
|
262
|
+
},
|
263
|
+
{
|
264
|
+
title: this.$t1("模板版本"),
|
265
|
+
field: "formVersion",
|
266
|
+
width: 150,
|
267
|
+
},
|
268
|
+
{
|
269
|
+
title: this.$t1("表单分类"),
|
270
|
+
field: "menuKindName",
|
271
|
+
width: 150,
|
272
|
+
},
|
273
|
+
{
|
274
|
+
title: this.$t1("是否启用"),
|
275
|
+
field: "enabled",
|
276
|
+
width: 150,
|
277
|
+
slots: {
|
278
|
+
default: ({ row }) => {
|
279
|
+
if (row.enabled) {
|
280
|
+
return getJsxStatus(null, this.$t1("启用"));
|
281
|
+
} else {
|
282
|
+
return getJsxStatus("s-3", this.$t1("禁用"));
|
283
|
+
}
|
284
|
+
},
|
285
|
+
},
|
286
|
+
},
|
287
|
+
{
|
288
|
+
title: this.$t1("启用流程"),
|
289
|
+
field: "hasWf",
|
290
|
+
width: 150,
|
291
|
+
slots: {
|
292
|
+
default: ({ row }) => {
|
293
|
+
if (row.hasWf) {
|
294
|
+
return getJsxStatus(null, this.$t1("是"));
|
295
|
+
} else {
|
296
|
+
return getJsxStatus("s-3", this.$t1("否"));
|
297
|
+
}
|
298
|
+
},
|
299
|
+
},
|
300
|
+
},
|
301
|
+
{
|
302
|
+
title: this.$t1("默认流程单据类型名称"),
|
303
|
+
field: "objTypeName",
|
304
|
+
width: 200,
|
305
|
+
},
|
306
|
+
{
|
307
|
+
title: this.$t1("引用流程的表单编码"),
|
308
|
+
field: "fromWfFormCode",
|
309
|
+
width: 200,
|
310
|
+
},
|
311
|
+
{
|
312
|
+
title: this.$t1("备注"),
|
313
|
+
field: "remark",
|
314
|
+
width: 150,
|
315
|
+
},
|
316
|
+
{
|
317
|
+
title: this.$t1("项目标签"),
|
318
|
+
field: "tag",
|
319
|
+
width: 250,
|
320
|
+
slots: { default: "tag" },
|
321
|
+
params: {
|
322
|
+
exportVal: ({ row }) => {
|
323
|
+
if (row.formTemplateTagDTOs) {
|
324
|
+
return row.formTemplateTagDTOs
|
325
|
+
.map((item) => item.tagName)
|
326
|
+
.join(",");
|
327
|
+
}
|
328
|
+
},
|
329
|
+
},
|
330
|
+
},
|
331
|
+
{ field: "serviceName", title: this.$t1("服务名"), width: 150 },
|
332
|
+
{ title: this.$t1("唯一标识"), field: "sid", width: 280 },
|
333
|
+
{
|
334
|
+
title: this.$t1("更新时间"),
|
335
|
+
field: "modifyDate",
|
336
|
+
width: 150,
|
337
|
+
},
|
338
|
+
{
|
339
|
+
title: this.$t1("创建时间"),
|
340
|
+
field: "createDate",
|
341
|
+
width: 150,
|
342
|
+
},
|
343
|
+
{
|
344
|
+
width: 100,
|
345
|
+
fixed: "right",
|
346
|
+
title: "",
|
347
|
+
sortable: false,
|
348
|
+
slots: {
|
349
|
+
default: ({ row }) => {
|
350
|
+
return getJsxBtnList([
|
351
|
+
{
|
352
|
+
iconName: "el-icon-edit",
|
353
|
+
content: this.$t1("查看"),
|
354
|
+
onclick: () => {
|
355
|
+
this.openEditDialog(row);
|
356
|
+
},
|
357
|
+
},
|
358
|
+
{
|
359
|
+
iconName: "iconfont icon-liuchengguanli-shejiqi_liucheng",
|
360
|
+
content: this.$t1("表单设计"),
|
361
|
+
onclick: () => {
|
362
|
+
this.openDesingerDialog(row);
|
363
|
+
},
|
364
|
+
},
|
365
|
+
]);
|
366
|
+
},
|
367
|
+
},
|
368
|
+
},
|
369
|
+
],
|
370
|
+
searchColumns: [
|
371
|
+
{
|
372
|
+
title: this.$t1("表单分类"),
|
373
|
+
field: "menuKindName",
|
374
|
+
type: "input",
|
375
|
+
common: true,
|
376
|
+
disabled: true,
|
377
|
+
defaultValueEnabled: false,
|
378
|
+
slot: "menuKindName",
|
379
|
+
},
|
380
|
+
{
|
381
|
+
title: this.$t1("模板名称"),
|
382
|
+
field: "formName",
|
383
|
+
type: "input",
|
384
|
+
common: true,
|
385
|
+
},
|
386
|
+
{
|
387
|
+
title: this.$t1("模板编码"),
|
388
|
+
field: "formCode",
|
389
|
+
type: "input",
|
390
|
+
common: true,
|
391
|
+
},
|
392
|
+
{
|
393
|
+
title: this.$t1("是否启用"),
|
394
|
+
field: "enabled",
|
395
|
+
type: "select",
|
396
|
+
common: true,
|
397
|
+
itemOption: [
|
398
|
+
{ label: this.$t1("启用"), value: true },
|
399
|
+
{ label: this.$t1("禁用"), value: false },
|
400
|
+
],
|
401
|
+
},
|
402
|
+
{
|
403
|
+
title: this.$t1("项目标签"),
|
404
|
+
field: "tag",
|
405
|
+
type: "input",
|
406
|
+
common: true,
|
407
|
+
slot: "tag",
|
408
|
+
},
|
409
|
+
],
|
410
|
+
config: {
|
411
|
+
proxyConfig: {
|
412
|
+
autoLoad: false,
|
413
|
+
},
|
414
|
+
},
|
415
|
+
};
|
416
|
+
this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
|
417
|
+
this.vxeOption = opts;
|
418
|
+
this.showTree = true;
|
419
|
+
});
|
420
|
+
},
|
421
|
+
chooseCellM1(row) {
|
422
|
+
this.currentRow = row;
|
423
|
+
this.showItemView = true;
|
424
|
+
},
|
425
|
+
openWfDesignDialog(actModelId) {
|
426
|
+
//wfType 0:单据流程,1:场景流程
|
427
|
+
let serviceId = this.currentRow.serviceName;
|
428
|
+
this.wfUrl =
|
429
|
+
WEB_PREFIX +
|
430
|
+
"/activiti-explorer/modeler.html?wfType=0&serviceId=" +
|
431
|
+
serviceId +
|
432
|
+
"&modelId=" +
|
433
|
+
actModelId;
|
434
|
+
this.dialogActiveName = "first";
|
435
|
+
this.showWfDialog = true;
|
436
|
+
},
|
437
|
+
closeDesignwinEvent(done) {
|
438
|
+
this.$baseConfirm(
|
439
|
+
this.$t1('请确认"已保存"流程模板,是否继续关闭?')
|
440
|
+
).then(() => {
|
441
|
+
this.showWfDialog = false;
|
442
|
+
// this.showDesingerDialog = false;
|
443
|
+
});
|
444
|
+
},
|
445
|
+
initWfWinParam() {
|
446
|
+
this.initCloseWfDesignWin();
|
447
|
+
this.initWinUserDialog();
|
448
|
+
this.initWinPositionDialog();
|
449
|
+
this.initSysParamForWf();
|
450
|
+
this.initWinFormTemplateDialog();
|
451
|
+
this.initWinScriptDescriptionDialog();
|
452
|
+
},
|
453
|
+
initCloseWfDesignWin() {
|
454
|
+
window.closeWfDesignWin = () => {
|
455
|
+
this.showWfDialog = false;
|
456
|
+
};
|
457
|
+
},
|
458
|
+
initWinUserDialog() {
|
459
|
+
window.openAssignUserDialog = (opts) => {
|
460
|
+
this.wfAssignMulti = opts.multi;
|
461
|
+
this.wfAssignData = opts.data || [];
|
462
|
+
this.wfAssignCallback = opts.callback;
|
463
|
+
this.showUserDialog = true;
|
464
|
+
};
|
465
|
+
},
|
466
|
+
confirmUser(rows) {
|
467
|
+
this.wfAssignCallback(rows);
|
468
|
+
},
|
469
|
+
initWinPositionDialog() {
|
470
|
+
window.openAssignPositionDialog = (opts) => {
|
471
|
+
this.wfAssignPositionData = opts.data || [];
|
472
|
+
this.wfAssignPositionCallback = opts.callback;
|
473
|
+
this.showPositionDialog = true;
|
474
|
+
};
|
475
|
+
},
|
476
|
+
initSysParamForWf() {
|
477
|
+
let webPrefix = WEB_PREFIX;
|
478
|
+
let baseApi = process.env.VUE_APP_BASE_API;
|
479
|
+
window.sysParamForWf = {
|
480
|
+
webPrefix,
|
481
|
+
baseApi,
|
482
|
+
};
|
483
|
+
},
|
484
|
+
confirmPosition(rows) {
|
485
|
+
this.wfAssignPositionCallback(rows);
|
486
|
+
},
|
487
|
+
initWinFormTemplateDialog() {
|
488
|
+
window.openAssignFormTemplateDialog = (opts) => {
|
489
|
+
this.wfAssignFormTemplateCallback = opts.callback;
|
490
|
+
this.showFormTemplateDialog = true;
|
491
|
+
};
|
492
|
+
},
|
493
|
+
confirmFormTemplate(rows) {
|
494
|
+
this.wfAssignFormTemplateCallback(rows);
|
495
|
+
},
|
496
|
+
initWinScriptDescriptionDialog() {
|
497
|
+
window.openScriptDescriptionDialog = (opts) => {
|
498
|
+
this.showScriptDescriptionDialog = true;
|
499
|
+
};
|
500
|
+
},
|
501
|
+
handleNodeClick(data, node, v) {
|
502
|
+
this.handleNodeData(node);
|
503
|
+
this.$forceUpdate();
|
504
|
+
this.searchEvent();
|
505
|
+
},
|
506
|
+
// 异步树叶子节点懒加载逻辑
|
507
|
+
loadNode(node, resolve) {
|
508
|
+
let id = node && node.data && node.data.id ? node.data.id || "" : 0;
|
509
|
+
let param = { enabled: true };
|
510
|
+
let url = !id
|
511
|
+
? USER_PREFIX + "/menuKind/getAllList"
|
512
|
+
: USER_PREFIX + "/menuKind/getChildren";
|
513
|
+
this.$http({
|
514
|
+
aes: true,
|
515
|
+
url: url,
|
516
|
+
method: "post",
|
517
|
+
data: {
|
518
|
+
parent: id,
|
519
|
+
enabled: true,
|
520
|
+
},
|
521
|
+
success: (res) => {
|
522
|
+
let rows = res.objx || [];
|
523
|
+
rows.forEach((value) => {
|
524
|
+
value.leaf = !value.hasChild;
|
525
|
+
});
|
526
|
+
if (node.level === 0) {
|
527
|
+
if (rows.length > 0) {
|
528
|
+
this.$nextTick(() => {
|
529
|
+
let firstNode = node.childNodes[0];
|
530
|
+
if (rows[0].hasChild) {
|
531
|
+
firstNode.expand();
|
532
|
+
}
|
533
|
+
this.$refs.tree.setCurrentKey(firstNode.data);
|
534
|
+
this.handleNodeClick(firstNode.data, firstNode, this);
|
535
|
+
});
|
536
|
+
}
|
537
|
+
}
|
538
|
+
resolve(rows);
|
539
|
+
},
|
540
|
+
});
|
541
|
+
},
|
542
|
+
handleNodeData(node) {
|
543
|
+
this.currentFormType = node ? node.data : null;
|
544
|
+
this.currentNode = node;
|
545
|
+
},
|
546
|
+
handleFormDesignClose() {
|
547
|
+
this.formDesTabs = "first";
|
548
|
+
this.showFormScriptList = false;
|
549
|
+
},
|
550
|
+
openProjectTagDialog3() {
|
551
|
+
this.showProjectTagDialog3 = true;
|
552
|
+
},
|
553
|
+
confirmProjectTagDialog3(rows) {
|
554
|
+
this.checkTags = rows;
|
555
|
+
},
|
556
|
+
getTabNames() {
|
557
|
+
return this.checkTags.map((item) => item.tagName).join(",");
|
558
|
+
},
|
559
|
+
jsonImport() {
|
560
|
+
this.$jsonImport({
|
561
|
+
saveUrl: USER_PREFIX + "/form_develop/importFormTemplate",
|
562
|
+
showResult: true,
|
563
|
+
resultColumns: [
|
564
|
+
{ title: this.$t1("模板名称"), field: "formName", width: 200 },
|
565
|
+
{ title: this.$t1("模板编码"), field: "formCode", width: 200 },
|
566
|
+
{
|
567
|
+
title: this.$t1("结果信息"),
|
568
|
+
field: "impReturnMsg",
|
569
|
+
width: 300,
|
570
|
+
showOverflow: false,
|
571
|
+
slots: {
|
572
|
+
default: ({ row }, h) => {
|
573
|
+
let impReturnMsg = row.impReturnMsg;
|
574
|
+
let items = impReturnMsg
|
575
|
+
.split(";")
|
576
|
+
.filter((item) => !!item && !!item.trim())
|
577
|
+
.map((item) => {
|
578
|
+
return h("p", {}, `${item.trim()};`);
|
579
|
+
});
|
580
|
+
return h("div", {}, items);
|
581
|
+
},
|
582
|
+
}
|
583
|
+
},
|
584
|
+
],
|
585
|
+
callback: () => {
|
586
|
+
this.searchEvent();
|
587
|
+
},
|
588
|
+
});
|
589
|
+
},
|
590
|
+
jsonExport() {
|
591
|
+
this.$jsonExport({
|
592
|
+
targetRef: "table-m1",
|
593
|
+
url: USER_PREFIX + "/form_develop/exportFormTemplate",
|
594
|
+
abcEnabled: true,
|
595
|
+
editAuth: this.currentFormType.editAuth,
|
596
|
+
selectTypeAuth: this.currentFormType.selectTypeAuth,
|
597
|
+
});
|
598
|
+
},
|
599
|
+
getBdEnv() {
|
600
|
+
getBdFlag({
|
601
|
+
success: (res) => {
|
602
|
+
this.isDev = res.objx == 1;
|
603
|
+
},
|
604
|
+
});
|
605
|
+
},
|
606
|
+
},
|
607
|
+
};
|
608
|
+
export default modules;
|