cloud-web-corejs 1.0.249 → 1.0.251

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 (60) hide show
  1. package/package.json +1 -1
  2. package/src/components/xform/form-designer/designer.js +1 -0
  3. package/src/components/xform/form-designer/setting-panel/form-setting.vue +3 -0
  4. package/src/components/xform/utils/util.js +1 -0
  5. package/src/views/bd/setting/formVersion/button.vue +55 -0
  6. package/src/views/bd/setting/formVersion/compareBasicSection.vue +125 -0
  7. package/src/views/bd/setting/formVersion/compareCodeSection.vue +539 -0
  8. package/src/views/bd/setting/formVersion/compareContMixin.scss +65 -0
  9. package/src/views/bd/setting/formVersion/compareContent.vue +63 -0
  10. package/src/views/bd/setting/formVersion/compareDialog.vue +88 -0
  11. package/src/views/bd/setting/formVersion/compareMixin.js +93 -0
  12. package/src/views/bd/setting/formVersion/fieldCompare.vue +54 -0
  13. package/src/views/bd/setting/formVersion/formScriptCompareView.vue +94 -0
  14. package/src/views/bd/setting/formVersion/formTemplateCompareView.vue +74 -0
  15. package/src/views/bd/setting/formVersion/ftHistoryDialog.vue +491 -0
  16. package/src/views/bd/setting/formVersion/link.vue +58 -0
  17. package/src/views/bd/setting/formVersion/preformDialog.vue +87 -0
  18. package/src/views/bd/setting/formVersion/reverButton.vue +82 -0
  19. package/src/views/bd/setting/formVersion/tableDetailDiff.js +99 -0
  20. package/src/views/bd/setting/formVersion/tableModelCompareView.vue +514 -0
  21. package/src/views/bd/setting/formVersion/textDiff.js +102 -0
  22. package/src/views/bd/setting/form_import_log/edit.vue +6 -3
  23. package/src/views/bd/setting/form_import_log/list.vue +5 -0
  24. package/src/views/bd/setting/form_script/edit.vue +196 -83
  25. package/src/views/bd/setting/form_script/edit1.vue +410 -220
  26. package/src/views/bd/setting/form_script/form_list.vue +19 -0
  27. package/src/views/bd/setting/form_script/list.vue +95 -21
  28. package/src/views/bd/setting/form_script/list1.vue +24 -0
  29. package/src/views/bd/setting/form_script/mixins/dialog.js +2 -2
  30. package/src/views/bd/setting/form_script/mixins/edit.js +265 -207
  31. package/src/views/bd/setting/form_script/mixins/edit1.js +259 -201
  32. package/src/views/bd/setting/form_script/mixins/form_list.js +322 -296
  33. package/src/views/bd/setting/form_script/mixins/list.js +163 -95
  34. package/src/views/bd/setting/form_script/mixins/list1.js +244 -155
  35. package/src/views/bd/setting/form_script/mixins/otherAuthDialog.js +1 -1
  36. package/src/views/bd/setting/form_template/batchWfObjConfigDialog.vue +1 -1
  37. package/src/views/bd/setting/form_template/edit.vue +355 -205
  38. package/src/views/bd/setting/form_template/formDesignerDialog.vue +171 -0
  39. package/src/views/bd/setting/form_template/list.vue +49 -74
  40. package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +3 -3
  41. package/src/views/bd/setting/form_template/mixins/edit.js +51 -8
  42. package/src/views/bd/setting/form_template/mixins/itemList.js +1 -1
  43. package/src/views/bd/setting/form_template/mixins/list.js +114 -82
  44. package/src/views/bd/setting/form_template/mixins/list2.js +3 -3
  45. package/src/views/bd/setting/form_template/mixins/otherAuthDialog.js +1 -1
  46. package/src/views/bd/setting/form_template/mixins/wf_list.js +3 -7
  47. package/src/views/bd/setting/form_template/wf_list.vue +161 -127
  48. package/src/views/bd/setting/request_setting/list.vue +15 -25
  49. package/src/views/bd/setting/table_model/edit.vue +702 -498
  50. package/src/views/bd/setting/table_model/list.vue +28 -0
  51. package/src/views/bd/setting/table_model/mixins/dialog.js +1 -1
  52. package/src/views/bd/setting/table_model/mixins/edit.js +228 -121
  53. package/src/views/bd/setting/table_model/mixins/list.js +55 -20
  54. package/src/views/bd/setting/table_model/mixins/otherAuthDialog.js +1 -1
  55. package/src/views/bd/setting/table_model/mixins/zdDialog.js +50 -46
  56. package/src/views/bd/setting/utils/index.js +15 -0
  57. package/src/views/user/form/vform/designer.vue +303 -287
  58. package/src/views/user/form/vform/formFieldMapping.js +2 -3
  59. package/src/views/user/form/vform/render.vue +8 -0
  60. package/src/views/user/form/view/list.vue +5 -1
@@ -9,16 +9,17 @@ import scriptDescriptionDialog from "@base/components/scriptDescription/dialog.v
9
9
  import ftHistoryDialog from "@base/views/bd/setting/form_template/ftHistoryDialog.vue";
10
10
  import itemList from "@base/views/bd/setting/form_template/itemList.vue";
11
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
12
  import projectTagDialog from "@base/views/user/project_tag/dialog.vue";
14
- import {treeScollx} from "@base/utils/global";
13
+ import { treeScollx } from "@base/utils/global";
15
14
  import indexUtil from "@base/utils";
16
- import {getBdFlag} from "@base/api/user";
17
- import designer from "@base/views/user/form/vform/designer.vue";
15
+ import { getBdFlag } from "@base/api/user";
18
16
  import {
19
17
  getJsxBtnList,
18
+ getJsxEditLink,
20
19
  getJsxStatus,
21
20
  } from "@base/views/bd/setting/utils/index";
21
+ import formVersionButton from "@base/views/bd/setting/formVersion/link.vue";
22
+ import settingConfig from "@/settings";
22
23
 
23
24
  let modules = {};
24
25
  modules = {
@@ -35,9 +36,10 @@ modules = {
35
36
  ftHistoryDialog,
36
37
  itemList,
37
38
  formTypeEditDialog,
38
- formScriptList,
39
39
  projectTagDialog,
40
- designer,
40
+ formDesignerDialog: () =>
41
+ import("@base/views/bd/setting/form_template/formDesignerDialog.vue"),
42
+ formVersionButton,
41
43
  },
42
44
  data() {
43
45
  return {
@@ -139,7 +141,7 @@ modules = {
139
141
  isDev: true,
140
142
  menuKindAuth: {},
141
143
  showTree: false,
142
- designerReadonly: false
144
+ designerReadonly: false,
143
145
  };
144
146
  },
145
147
  computed: {
@@ -150,18 +152,25 @@ modules = {
150
152
  return this.currentFormType?.name || null;
151
153
  },
152
154
  otherFlag() {
153
- return this.currentFormType?.menuKindCode == "other"
154
- }
155
+ return this.currentFormType?.menuKindCode === "other";
156
+ },
157
+ exportArchiveEnabled() {
158
+ return settingConfig.exportArchiveEnabled === true;
159
+ },
160
+ operationColumnWidth() {
161
+ const btnWidth = 47;
162
+ return this.exportArchiveEnabled ? btnWidth * 3 : btnWidth * 2;
163
+ },
155
164
  },
156
165
  watch: {
157
166
  formDesTabs(val) {
158
- if (this.showFormScriptList == false && val == "second") {
167
+ if (this.showFormScriptList === false && val === "second") {
159
168
  this.showFormScriptList = true;
160
169
  }
161
170
  },
162
171
  },
163
172
  mounted() {
164
- treeScollx({target: this, type: "default"});
173
+ treeScollx({ target: this, type: "default" });
165
174
  this.getBdEnv();
166
175
  this.initTableList();
167
176
  this.initWfWinParam();
@@ -177,7 +186,7 @@ modules = {
177
186
  },
178
187
  openEditDialog(row) {
179
188
  let formCode = row?.formCode || null;
180
- /*this.dataId = !id || typeof id == 'object' ? 0 : id;
189
+ /*this.dataId = !id || typeof id === 'object' ? 0 : id;
181
190
  this.activeName = 'first';
182
191
  this.showItemEdit = false;
183
192
  this.$openEditView('showEdit');*/
@@ -195,7 +204,7 @@ modules = {
195
204
  } else {
196
205
  this.getOtherMenuKindAuth(row, (editAuth) => {
197
206
  this.openDesingerDialog(row, null, !editAuth);
198
- })
207
+ });
199
208
  }
200
209
  },
201
210
  getOtherMenuKindAuth(row, callback) {
@@ -204,11 +213,11 @@ modules = {
204
213
  aes: true,
205
214
  url: USER_PREFIX + "/form_template_auth/getAuth",
206
215
  method: `post`,
207
- data: {stringOne: row.sid},
216
+ data: { stringOne: row.sid },
208
217
  isLoading: true,
209
218
  success: (res) => {
210
219
  let menuKindAuth = res.objx || {};
211
- callback(!!menuKindAuth.editAuth)
220
+ callback(!!menuKindAuth.editAuth);
212
221
  },
213
222
  });
214
223
  }
@@ -219,11 +228,11 @@ modules = {
219
228
  this.currentFormTemplate = row;
220
229
  this.isFullscreen = false;
221
230
 
222
- this.designerReadonly = readonly
231
+ this.designerReadonly = readonly;
223
232
  this.showDesingerDialog = true;
224
233
  this.designerSaveCallback = callback ?? null;
225
234
  },
226
- openDesingerDialogByChild({row, readonly, callback}) {
235
+ openDesingerDialogByChild({ row, readonly, callback }) {
227
236
  this.openDesingerDialog(row, callback, readonly);
228
237
  },
229
238
  reflushTemplateList() {
@@ -259,8 +268,11 @@ modules = {
259
268
  if (this.checkTags.length) {
260
269
  tagCodes = this.checkTags.map((item) => item.tagCode);
261
270
  }
262
- let currentFormType = this.currentFormType || {}
263
- let menuKindCode = currentFormType.menuKindCode && !this.otherFlag ? currentFormType.menuKindCode : null;
271
+ let currentFormType = this.currentFormType || {};
272
+ let menuKindCode =
273
+ currentFormType.menuKindCode && !this.otherFlag
274
+ ? currentFormType.menuKindCode
275
+ : null;
264
276
  return {
265
277
  ...this.formData,
266
278
  tagCodes,
@@ -275,9 +287,9 @@ modules = {
275
287
  tableRef: "table-m1",
276
288
  tableName: "bd_form_template_list-m1",
277
289
  path: () => {
278
- let url = USER_PREFIX + '/formTemplate/listPage';
290
+ let url = USER_PREFIX + "/formTemplate/listPage";
279
291
  if (this.otherFlag) {
280
- url = USER_PREFIX + '/formTemplate/listOtherPage';
292
+ url = USER_PREFIX + "/formTemplate/listOtherPage";
281
293
  }
282
294
  return url;
283
295
  },
@@ -285,20 +297,30 @@ modules = {
285
297
  return this.getSearchParam();
286
298
  },
287
299
  columns: [
288
- {type: "checkbox", width: 48, resizable: false, fixed: "left"},
300
+ { type: "checkbox", width: 48, resizable: false, fixed: "left" },
289
301
  {
290
302
  title: this.$t1("模板名称"),
291
303
  field: "formName",
292
304
  width: 150,
293
305
  fixed: "left",
306
+ slots: {
307
+ default: ({ row }) => {
308
+ return getJsxEditLink({
309
+ content: row.formName,
310
+ onclick: () => {
311
+ this.openEditDialog(row);
312
+ },
313
+ });
314
+ },
315
+ },
294
316
  },
295
317
  {
296
318
  title: this.$t1("项目标签"),
297
319
  field: "tag",
298
320
  width: 250,
299
- slots: {default: "tag"},
321
+ slots: { default: "tag" },
300
322
  params: {
301
- exportVal: ({row}) => {
323
+ exportVal: ({ row }) => {
302
324
  if (row.formTemplateTagDTOs) {
303
325
  return row.formTemplateTagDTOs
304
326
  .map((item) => item.tagName)
@@ -312,11 +334,6 @@ modules = {
312
334
  field: "formCode",
313
335
  width: 150,
314
336
  },
315
- {
316
- title: this.$t1("模板版本"),
317
- field: "formVersion",
318
- width: 150,
319
- },
320
337
  {
321
338
  title: this.$t1("表单分类"),
322
339
  field: "menuKindName",
@@ -327,7 +344,7 @@ modules = {
327
344
  field: "enabled",
328
345
  width: 150,
329
346
  slots: {
330
- default: ({row}) => {
347
+ default: ({ row }) => {
331
348
  if (row.enabled) {
332
349
  return getJsxStatus(null, this.$t1("启用"));
333
350
  } else {
@@ -341,7 +358,7 @@ modules = {
341
358
  field: "hasWf",
342
359
  width: 150,
343
360
  slots: {
344
- default: ({row}) => {
361
+ default: ({ row }) => {
345
362
  if (row.hasWf) {
346
363
  return getJsxStatus(null, this.$t1("是"));
347
364
  } else {
@@ -365,52 +382,40 @@ modules = {
365
382
  field: "remark",
366
383
  width: 150,
367
384
  },
368
- {field: "serviceName", title: this.$t1("服务名"), width: 150},
369
- {title: this.$t1("唯一标识"), field: "sid", width: 280},
385
+ { field: "serviceName", title: this.$t1("服务名"), width: 150 },
370
386
  {
371
- field: 'createBy',
372
- title: this.$t1('创建人'),
373
- width: 150
387
+ title: this.$t1("版本号"),
388
+ field: "version",
389
+ width: 150,
374
390
  },
391
+ { title: this.$t1("唯一标识"), field: "sid", width: 280 },
375
392
  {
376
- field: 'createDate',
377
- title: this.$t1('创建时间'),
378
- width: 150
393
+ field: "createBy",
394
+ title: this.$t1("创建人"),
395
+ width: 150,
396
+ },
397
+ {
398
+ field: "createDate",
399
+ title: this.$t1("创建时间"),
400
+ width: 150,
379
401
  },
380
402
  {
381
- field: 'modifyBy',
382
- title: this.$t1('更新人'),
383
- width: 150
403
+ field: "modifyBy",
404
+ title: this.$t1("更新人"),
405
+ width: 150,
384
406
  },
385
407
  {
386
- field: 'modifyDate',
387
- title: this.$t1('更新时间'),
388
- width: 150
408
+ field: "modifyDate",
409
+ title: this.$t1("更新时间"),
410
+ width: 150,
389
411
  },
390
412
  {
391
- width: 100,
413
+ width: this.operationColumnWidth,
392
414
  fixed: "right",
393
415
  title: "",
394
416
  sortable: false,
395
417
  slots: {
396
- default: ({row}) => {
397
- return getJsxBtnList([
398
- {
399
- iconName: "el-icon-edit",
400
- content: this.$t1("查看"),
401
- onclick: () => {
402
- this.openEditDialog(row);
403
- },
404
- },
405
- {
406
- iconName: "iconfont icon-liuchengguanli-shejiqi_liucheng",
407
- content: this.$t1("表单设计"),
408
- onclick: () => {
409
- this.openDesingerDialogByAuth(row);
410
- },
411
- },
412
- ]);
413
- },
418
+ default: "operation",
414
419
  },
415
420
  },
416
421
  ],
@@ -442,8 +447,8 @@ modules = {
442
447
  type: "select",
443
448
  common: true,
444
449
  itemOption: [
445
- {label: this.$t1("启用"), value: true},
446
- {label: this.$t1("禁用"), value: false},
450
+ { label: this.$t1("启用"), value: true },
451
+ { label: this.$t1("禁用"), value: false },
447
452
  ],
448
453
  },
449
454
  {
@@ -459,26 +464,42 @@ modules = {
459
464
  type: "input",
460
465
  common: false,
461
466
  },
462
- {title: this.$t1('创建人'), field: "createBy", type: "input", common: false},
463
- {title: this.$t1('更新人'), field: "modifyBy", type: "input", common: false},
464
467
  {
465
- title: this.$t1('创建时间'),
468
+ title: this.$t1("创建人"),
469
+ field: "createBy",
470
+ type: "input",
471
+ common: false,
472
+ },
473
+ {
474
+ title: this.$t1("更新人"),
475
+ field: "modifyBy",
476
+ type: "input",
477
+ common: false,
478
+ },
479
+ {
480
+ title: this.$t1("操作日志"),
481
+ field: "logContent",
482
+ type: "input",
483
+ common: false,
484
+ },
485
+ {
486
+ title: this.$t1("创建时间"),
466
487
  field: "startCreateDate",
467
488
  field2: "endCreateDate",
468
489
  type: "dateRange",
469
490
  common: false,
470
491
  widgetType: "datetime",
471
- valueFormat: "yyyy-MM-dd HH:mm:ss"
492
+ valueFormat: "yyyy-MM-dd HH:mm:ss",
472
493
  },
473
494
  {
474
- title: this.$t1('更新时间'),
495
+ title: this.$t1("更新时间"),
475
496
  field: "startModifyDate",
476
497
  field2: "endModifyDate",
477
498
  type: "dateRange",
478
499
  common: false,
479
500
  widgetType: "datetime",
480
- valueFormat: "yyyy-MM-dd HH:mm:ss"
481
- }
501
+ valueFormat: "yyyy-MM-dd HH:mm:ss",
502
+ },
482
503
  ],
483
504
  config: {
484
505
  proxyConfig: {
@@ -579,7 +600,7 @@ modules = {
579
600
  // 异步树叶子节点懒加载逻辑
580
601
  loadNode(node, resolve) {
581
602
  let id = node && node.data && node.data.id ? node.data.id || "" : 0;
582
- let param = {enabled: true};
603
+ let param = { enabled: true };
583
604
  let url = !id
584
605
  ? USER_PREFIX + "/menuKind/getAllList"
585
606
  : USER_PREFIX + "/menuKind/getChildren";
@@ -590,7 +611,7 @@ modules = {
590
611
  data: {
591
612
  parent: id,
592
613
  enabled: true,
593
- dataType: 2
614
+ dataType: 2,
594
615
  },
595
616
  success: (res) => {
596
617
  let rows = res.objx || [];
@@ -602,8 +623,8 @@ modules = {
602
623
  id: "other",
603
624
  menuKindCode: "other",
604
625
  name: "其他分类",
605
- leaf: true
606
- })
626
+ leaf: true,
627
+ });
607
628
  if (rows.length > 0) {
608
629
  this.$nextTick(() => {
609
630
  let firstNode = node.childNodes[0];
@@ -641,15 +662,15 @@ modules = {
641
662
  saveUrl: USER_PREFIX + "/form_develop/importFormTemplate",
642
663
  showResult: true,
643
664
  resultColumns: [
644
- {title: this.$t1("模板名称"), field: "formName", width: 200},
645
- {title: this.$t1("模板编码"), field: "formCode", width: 200},
665
+ { title: this.$t1("模板名称"), field: "formName", width: 200 },
666
+ { title: this.$t1("模板编码"), field: "formCode", width: 200 },
646
667
  {
647
668
  title: this.$t1("结果信息"),
648
669
  field: "impReturnMsg",
649
670
  width: 300,
650
671
  showOverflow: false,
651
672
  slots: {
652
- default: ({row}, h) => {
673
+ default: ({ row }, h) => {
653
674
  let impReturnMsg = row.impReturnMsg;
654
675
  let items = impReturnMsg
655
676
  .split(";")
@@ -659,7 +680,7 @@ modules = {
659
680
  });
660
681
  return h("div", {}, items);
661
682
  },
662
- }
683
+ },
663
684
  },
664
685
  ],
665
686
  callback: () => {
@@ -677,10 +698,21 @@ modules = {
677
698
  selectTypeAuth: this.currentFormType.selectTypeAuth,
678
699
  });
679
700
  },
701
+ jsonExportArchive(row) {
702
+ this.$jsonExport({
703
+ title: "表单模板",
704
+ data: [row.id],
705
+ url: USER_PREFIX + "/form_develop/exportFormTemplate",
706
+ plaintext: 1,
707
+ abcEnabled: true,
708
+ editAuth: this.currentFormType.editAuth,
709
+ selectTypeAuth: this.currentFormType.selectTypeAuth,
710
+ });
711
+ },
680
712
  getBdEnv() {
681
713
  getBdFlag({
682
714
  success: (res) => {
683
- this.isDev = res.objx == 1;
715
+ this.isDev = res.objx === 1;
684
716
  },
685
717
  });
686
718
  },
@@ -133,7 +133,7 @@ modules = {
133
133
  },
134
134
  watch: {
135
135
  formDesTabs(val) {
136
- if (this.showFormScriptList == false && val == 'second') {
136
+ if (this.showFormScriptList === false && val === 'second') {
137
137
  this.showFormScriptList = true;
138
138
  }
139
139
  }
@@ -154,7 +154,7 @@ modules = {
154
154
  },
155
155
  openEditDialog(row) {
156
156
  let formCode = row?.formCode || null;
157
- /*this.dataId = !id || typeof id == 'object' ? 0 : id;
157
+ /*this.dataId = !id || typeof id === 'object' ? 0 : id;
158
158
  this.activeName = 'first';
159
159
  this.showItemEdit = false;
160
160
  this.$openEditView('showEdit');*/
@@ -395,7 +395,7 @@ modules = {
395
395
  getBdEnv() {
396
396
  getBdFlag({
397
397
  success: res => {
398
- this.isDev = res.objx == 1
398
+ this.isDev = res.objx === 1
399
399
  }
400
400
  });
401
401
  },
@@ -56,7 +56,7 @@ modules = {
56
56
  initBdEnv() {
57
57
  return getBdEnv({
58
58
  success: res => {
59
- this.isDev = res.objx == "dev"
59
+ this.isDev = res.objx === "dev"
60
60
  }
61
61
  });
62
62
  },
@@ -1,10 +1,8 @@
1
1
  import tableForm from "@base/components/table/tableForm.vue";
2
2
  import editView from "@base/views/bd/setting/form_template/edit.vue";
3
3
  import itemList from "@base/views/bd/setting/form_template/itemList.vue";
4
- import formScriptList from "@base/views/bd/setting/form_script/form_list.vue";
5
4
  import indexUtil from "@base/utils";
6
5
  import {getBdFlag} from "@base/api/user";
7
- import designer from "@base/views/user/form/vform/designer.vue";
8
6
  import {getJsxBtnList, getJsxStatus} from "@base/views/bd/setting/utils/index";
9
7
 
10
8
  let modules = {};
@@ -14,8 +12,6 @@ modules = {
14
12
  tableForm,
15
13
  editView,
16
14
  itemList,
17
- formScriptList,
18
- designer
19
15
  },
20
16
  data() {
21
17
  return {
@@ -140,7 +136,7 @@ modules = {
140
136
  },
141
137
  watch: {
142
138
  formDesTabs(val) {
143
- if (this.showFormScriptList == false && val == 'second') {
139
+ if (this.showFormScriptList === false && val === 'second') {
144
140
  this.showFormScriptList = true;
145
141
  }
146
142
  }
@@ -161,7 +157,7 @@ modules = {
161
157
  },
162
158
  openEditDialog(row) {
163
159
  let formCode = row?.formCode || null;
164
- /*this.dataId = !id || typeof id == 'object' ? 0 : id;
160
+ /*this.dataId = !id || typeof id === 'object' ? 0 : id;
165
161
  this.activeName = 'first';
166
162
  this.showItemEdit = false;
167
163
  this.$openEditView('showEdit');*/
@@ -398,7 +394,7 @@ modules = {
398
394
  getBdEnv() {
399
395
  getBdFlag({
400
396
  success: res => {
401
- this.isDev = res.objx == 1
397
+ this.isDev = res.objx === 1
402
398
  }
403
399
  });
404
400
  },