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
@@ -7,7 +7,10 @@ import MenuKindDialog from "@base/views/bd/setting/menu_kind/dialog.vue";
7
7
  import projectTagDialog from "@base/views/user/project_tag/dialog.vue";
8
8
  import {treeScollx} from "@base/utils/global";
9
9
  import {getBdFlag} from "@base/api/user";
10
- import {getJsxBtn, getJsxStatus} from "@base/views/bd/setting/utils";
10
+ import {getJsxEditLink, getJsxStatus} from "@base/views/bd/setting/utils";
11
+ import { mapGetters } from "vuex";
12
+ import formVersionButton from "@base/views/bd/setting/formVersion/link.vue";
13
+ import settingConfig from "@/settings";
11
14
 
12
15
  let modules = {};
13
16
  modules = {
@@ -18,7 +21,8 @@ modules = {
18
21
  tableForm,
19
22
  editView,
20
23
  MenuKindDialog,
21
- projectTagDialog
24
+ projectTagDialog,
25
+ formVersionButton
22
26
  },
23
27
  created() {
24
28
  },
@@ -95,8 +99,18 @@ modules = {
95
99
  return this.currentFormType?.name || null
96
100
  },
97
101
  otherFlag() {
98
- return this.currentFormType?.menuKindCode == "other"
99
- }
102
+ return this.currentFormType?.menuKindCode === "other"
103
+ },
104
+ ...mapGetters([
105
+ "userFlag",
106
+ ]),
107
+ exportArchiveEnabled() {
108
+ return settingConfig.exportArchiveEnabled === true;
109
+ },
110
+ operationColumnWidth() {
111
+ const btnWidth = 47;
112
+ return this.exportArchiveEnabled ? btnWidth * 2 : btnWidth;
113
+ },
100
114
  },
101
115
  methods: {
102
116
  searchEvent() {
@@ -108,7 +122,7 @@ modules = {
108
122
  this.$refs['table-m1'].commitProxy('reload');
109
123
  },
110
124
  openEditDialog(row) {
111
- /*this.dataId = !id || typeof id == 'object' ? 0 : id;
125
+ /*this.dataId = !id || typeof id === 'object' ? 0 : id;
112
126
  this.activeName = 'first';
113
127
  this.$openEditView('showEdit');*/
114
128
 
@@ -151,7 +165,22 @@ modules = {
151
165
  },
152
166
  columns: [
153
167
  {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
154
- {title: this.$t1('实体名称'), field: 'taEn', width: 150, fixed: 'left'},
168
+ {
169
+ title: this.$t1('实体名称'),
170
+ field: 'taEn',
171
+ width: 150,
172
+ fixed: 'left',
173
+ slots: {
174
+ default: ({row}) => {
175
+ return getJsxEditLink({
176
+ content: row.taEn,
177
+ onclick: () => {
178
+ this.openEditDialog(row);
179
+ },
180
+ });
181
+ },
182
+ },
183
+ },
155
184
  {
156
185
  title: this.$t1('项目标签'), field: 'tag', width: 250, slots: {default: "tag"}, params: {
157
186
  exportVal: ({row}) => {
@@ -167,7 +196,7 @@ modules = {
167
196
  title: this.$t1('表类型'), field: 'taType', width: 150,
168
197
  slots: {
169
198
  default: ({row}) => {
170
- return row.taType == 0 ? this.$t1('主表') : this.$t1('明细表')
199
+ return row.taType === 0 ? this.$t1('主表') : this.$t1('明细表')
171
200
  }
172
201
  }
173
202
  },
@@ -175,7 +204,7 @@ modules = {
175
204
  title: this.$t1('是否树结构'), field: 'taRule', width: 150,
176
205
  slots: {
177
206
  default: ({row}) => {
178
- return row.taRule == 1 ? this.$t1('是') : this.$t1('否')
207
+ return row.taRule === 1 ? this.$t1('是') : this.$t1('否')
179
208
  }
180
209
  }
181
210
  },
@@ -183,7 +212,7 @@ modules = {
183
212
  title: this.$t1('数据范围'), field: 'dataRange', width: 150,
184
213
  slots: {
185
214
  default: ({row}) => {
186
- return row.dataRange == 1 ? this.$t1('集团') : this.$t1('当前组织')
215
+ return row.dataRange === 1 ? this.$t1('集团') : this.$t1('当前组织')
187
216
  }
188
217
  }
189
218
  },
@@ -204,7 +233,9 @@ modules = {
204
233
  },
205
234
  {title: this.$t1('表编码'), field: 'taCode', width: 150},
206
235
  {field: 'serviceName', title: this.$t1('服务名'), width: 150},
236
+ {field: 'version', title: this.$t1('版本号'), width: 150},
207
237
  {title: this.$t1('唯一标识'), field: 'sid', width: 280},
238
+ // {field: 'sszstEn', title: this.$t1('所属主实体'), width: 150},
208
239
  {
209
240
  field: 'createBy',
210
241
  title: this.$t1('创建人'),
@@ -226,20 +257,12 @@ modules = {
226
257
  width: 150
227
258
  },
228
259
  {
229
- width: 47,
260
+ width: this.operationColumnWidth,
230
261
  fixed: 'right',
231
262
  title: '',
232
263
  sortable: false,
233
264
  slots: {
234
- default: ({row}) => {
235
- return getJsxBtn({
236
- iconName: "el-icon-edit",
237
- content: this.$t1('查看'),
238
- onclick: () => {
239
- this.openEditDialog(row);
240
- }
241
- });
242
- }
265
+ default: "operation"
243
266
  }
244
267
  }
245
268
  ],
@@ -269,6 +292,7 @@ modules = {
269
292
  {title: this.$t1('项目标签'), field: "tag", type: "input", common: true, slot: "tag"},
270
293
  {title: this.$t1('创建人'), field: "createBy", type: "input", common: false},
271
294
  {title: this.$t1('更新人'), field: "modifyBy", type: "input", common: false},
295
+ {title: this.$t1('操作日志'), field: "logContent", type: "input", common: false},
272
296
  {
273
297
  title: this.$t1('创建时间'),
274
298
  field: "startCreateDate",
@@ -428,10 +452,21 @@ modules = {
428
452
  selectTypeAuth: this.currentFormType.selectTypeAuth
429
453
  })
430
454
  },
455
+ jsonExportArchive(row) {
456
+ this.$jsonExport({
457
+ title: "数据表",
458
+ data: [row.id],
459
+ url: USER_PREFIX + "/form_develop/exportSzTaMb",
460
+ plaintext: 1,
461
+ abcEnabled: true,
462
+ editAuth: this.currentFormType.editAuth,
463
+ selectTypeAuth: this.currentFormType.selectTypeAuth,
464
+ });
465
+ },
431
466
  getBdEnv() {
432
467
  getBdFlag({
433
468
  success: res => {
434
- this.isDev = res.objx == 1
469
+ this.isDev = res.objx === 1
435
470
  }
436
471
  });
437
472
  }
@@ -59,7 +59,7 @@ modules = {
59
59
  initBdEnv() {
60
60
  return getBdEnv({
61
61
  success: res => {
62
- this.isDev = res.objx == "dev"
62
+ this.isDev = res.objx === "dev"
63
63
  }
64
64
  });
65
65
  },
@@ -1,9 +1,9 @@
1
- import {selectDialogMixins} from "@base/mixins/selectDialog";
1
+ import { selectDialogMixins } from "@base/mixins/selectDialog";
2
2
 
3
3
  let modules = {};
4
4
  modules = {
5
- name: 'zdDialog',
6
- props: ['visiable', 'multi', 'rows', 'param', 'taBm'],
5
+ name: "zdDialog",
6
+ props: ["visiable", "multi", "rows", "param", "taBm"],
7
7
  mixins: [selectDialogMixins],
8
8
  components: {},
9
9
  created() {
@@ -20,7 +20,7 @@ modules = {
20
20
  formData: {},
21
21
  vxeOption: {},
22
22
  showSaleOrgDialog: false,
23
- fieldKey: "taZdMc"
23
+ fieldKey: "taZdMc",
24
24
  };
25
25
  },
26
26
  methods: {
@@ -28,85 +28,89 @@ modules = {
28
28
  let that = this;
29
29
 
30
30
  let zdTypeMap = {
31
- Boolean: this.$t1('布尔'),
32
- Integer: this.$t1('整数'),
33
- Long: this.$t1('长整数'),
34
- Decimal: this.$t1('精度小数'),
35
- Money: this.$t1('金额'),
36
- Text: this.$t1('文本'),
37
- TextArea: this.$t1('长文本'),
38
- DateTime: this.$t1('日期时间'),
39
- Reference: this.$t1('关联表')
40
- }
31
+ Boolean: this.$t1("布尔"),
32
+ Integer: this.$t1("整数"),
33
+ Long: this.$t1("长整数"),
34
+ Decimal: this.$t1("精度小数"),
35
+ Money: this.$t1("金额"),
36
+ Text: this.$t1("文本"),
37
+ TextArea: this.$t1("长文本"),
38
+ DateTime: this.$t1("日期时间"),
39
+ Reference: this.$t1("关联表(文本)"),
40
+ ReferenceLong: this.$t1("关联表(长整型)"),
41
+ };
41
42
 
42
43
  let tableOption = {
43
44
  vue: that,
44
- tableRef: 'table-m1',
45
- tableName: 'bd_table_model_field_dialog-m1',
46
- path: USER_PREFIX + '/szTaMb/getSzTaZdMbsByTaBm',
45
+ tableRef: "table-m1",
46
+ tableName: "bd_table_model_field_dialog-m1",
47
+ path: USER_PREFIX + "/szTaMb/getSzTaZdMbsByTaBm",
47
48
  param: () => {
48
49
  return {
49
50
  taBm: this.taBm,
50
51
  enabled: true,
51
52
  searchDb: true,
52
53
  ...this.formData,
53
- ...this.param
54
+ ...this.param,
54
55
  };
55
56
  },
56
57
  columns: [
57
- {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
58
+ { type: "checkbox", width: 48, resizable: false, fixed: "left" },
58
59
  {
59
- title: this.$t1('实体字段名称'),
60
- field: 'zdEn',
61
- width: 150
60
+ title: this.$t1("实体字段名称"),
61
+ field: "zdEn",
62
+ width: 150,
62
63
  },
63
64
  {
64
- title: this.$t1('数据库表字段名'),
65
- field: 'taZdMc',
66
- width: 150
65
+ title: this.$t1("数据库表字段名"),
66
+ field: "taZdMc",
67
+ width: 150,
67
68
  },
68
69
  {
69
- title: this.$t1('字段描述'),
70
- field: 'zdCh',
71
- width: 150
70
+ title: this.$t1("字段描述"),
71
+ field: "zdCh",
72
+ width: 150,
72
73
  },
73
74
  {
74
- title: this.$t1('字段类型'), field: 'zdType', width: 150, slots: {
75
- default: ({row, rowIndex, $table}) => {
75
+ title: this.$t1("字段类型"),
76
+ field: "zdType",
77
+ width: 150,
78
+ slots: {
79
+ default: ({ row, rowIndex, $table }) => {
76
80
  return zdTypeMap[row.zdType];
77
- }
78
- }
81
+ },
82
+ },
79
83
  },
80
84
  {
81
- title: this.$t1('关联字段'),
82
- field: 'referenceZd',
83
- width: 150
85
+ title: this.$t1("关联字段"),
86
+ field: "referenceZd",
87
+ width: 150,
84
88
  },
85
89
  {
86
90
  width: 47,
87
- fixed: 'right',
88
- title: '',
89
- sortable: false
90
- }
91
+ fixed: "right",
92
+ title: "",
93
+ sortable: false,
94
+ },
91
95
  ],
92
96
  config: {
93
97
  checkboxConfig: {
94
98
  checkStrictly: true,
95
99
  showHeader: this.selectMulti,
96
- trigger: 'row'
100
+ trigger: "row",
97
101
  },
98
102
  proxyConfig: {
99
103
  props: {
100
104
  result: "objx", // 配置响应结果列表字段
101
105
  total: "objx.length", // 配置响应结果总页数字段
102
- }
103
- }
104
- }
106
+ },
107
+ },
108
+ },
105
109
  };
106
- this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
110
+ this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
107
111
  that.vxeOption = opts;
108
112
  });
109
113
  },
110
- }
114
+ },
111
115
  };
112
- export default modules
116
+ export default modules;
@@ -48,6 +48,21 @@ export function getJsxLink({content, onclick}) {
48
48
  }, content)]
49
49
  }
50
50
 
51
+ export function getJsxEditLink({content, onclick}) {
52
+ let h = window.$vueRoot.$createElement;
53
+ return [h("a", {
54
+ staticClass: "a-link",
55
+ on: {
56
+ click: (event) => {
57
+ onclick && onclick(event);
58
+ }
59
+ }
60
+ }, [
61
+ h("i", {staticClass: "el-icon-edit"}),
62
+ h("span", {}, content)
63
+ ])]
64
+ }
65
+
51
66
  export function getJsxBtnList(list) {
52
67
  let arr = [];
53
68
  list.forEach(item => {