cloud-web-corejs 1.0.250 → 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 (56) hide show
  1. package/package.json +1 -1
  2. package/src/views/bd/setting/formVersion/button.vue +55 -0
  3. package/src/views/bd/setting/formVersion/compareBasicSection.vue +125 -0
  4. package/src/views/bd/setting/formVersion/compareCodeSection.vue +539 -0
  5. package/src/views/bd/setting/formVersion/compareContMixin.scss +65 -0
  6. package/src/views/bd/setting/formVersion/compareContent.vue +63 -0
  7. package/src/views/bd/setting/formVersion/compareDialog.vue +88 -0
  8. package/src/views/bd/setting/formVersion/compareMixin.js +93 -0
  9. package/src/views/bd/setting/formVersion/fieldCompare.vue +54 -0
  10. package/src/views/bd/setting/formVersion/formScriptCompareView.vue +94 -0
  11. package/src/views/bd/setting/formVersion/formTemplateCompareView.vue +74 -0
  12. package/src/views/bd/setting/formVersion/ftHistoryDialog.vue +491 -0
  13. package/src/views/bd/setting/formVersion/link.vue +58 -0
  14. package/src/views/bd/setting/formVersion/preformDialog.vue +87 -0
  15. package/src/views/bd/setting/formVersion/reverButton.vue +82 -0
  16. package/src/views/bd/setting/formVersion/tableDetailDiff.js +99 -0
  17. package/src/views/bd/setting/formVersion/tableModelCompareView.vue +514 -0
  18. package/src/views/bd/setting/formVersion/textDiff.js +102 -0
  19. package/src/views/bd/setting/form_import_log/edit.vue +6 -3
  20. package/src/views/bd/setting/form_import_log/list.vue +5 -0
  21. package/src/views/bd/setting/form_script/edit.vue +196 -83
  22. package/src/views/bd/setting/form_script/edit1.vue +410 -220
  23. package/src/views/bd/setting/form_script/form_list.vue +19 -0
  24. package/src/views/bd/setting/form_script/list.vue +95 -21
  25. package/src/views/bd/setting/form_script/list1.vue +24 -0
  26. package/src/views/bd/setting/form_script/mixins/dialog.js +2 -2
  27. package/src/views/bd/setting/form_script/mixins/edit.js +265 -207
  28. package/src/views/bd/setting/form_script/mixins/edit1.js +259 -201
  29. package/src/views/bd/setting/form_script/mixins/form_list.js +322 -296
  30. package/src/views/bd/setting/form_script/mixins/list.js +163 -95
  31. package/src/views/bd/setting/form_script/mixins/list1.js +244 -155
  32. package/src/views/bd/setting/form_script/mixins/otherAuthDialog.js +1 -1
  33. package/src/views/bd/setting/form_template/batchWfObjConfigDialog.vue +1 -1
  34. package/src/views/bd/setting/form_template/edit.vue +355 -205
  35. package/src/views/bd/setting/form_template/formDesignerDialog.vue +171 -0
  36. package/src/views/bd/setting/form_template/list.vue +49 -74
  37. package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +3 -3
  38. package/src/views/bd/setting/form_template/mixins/edit.js +51 -8
  39. package/src/views/bd/setting/form_template/mixins/itemList.js +1 -1
  40. package/src/views/bd/setting/form_template/mixins/list.js +114 -82
  41. package/src/views/bd/setting/form_template/mixins/list2.js +3 -3
  42. package/src/views/bd/setting/form_template/mixins/otherAuthDialog.js +1 -1
  43. package/src/views/bd/setting/form_template/mixins/wf_list.js +3 -7
  44. package/src/views/bd/setting/form_template/wf_list.vue +161 -127
  45. package/src/views/bd/setting/request_setting/list.vue +15 -25
  46. package/src/views/bd/setting/table_model/edit.vue +702 -498
  47. package/src/views/bd/setting/table_model/list.vue +28 -0
  48. package/src/views/bd/setting/table_model/mixins/dialog.js +1 -1
  49. package/src/views/bd/setting/table_model/mixins/edit.js +228 -121
  50. package/src/views/bd/setting/table_model/mixins/list.js +55 -20
  51. package/src/views/bd/setting/table_model/mixins/otherAuthDialog.js +1 -1
  52. package/src/views/bd/setting/table_model/mixins/zdDialog.js +50 -46
  53. package/src/views/bd/setting/utils/index.js +15 -0
  54. package/src/views/user/form/vform/designer.vue +303 -287
  55. package/src/views/user/form/vform/formFieldMapping.js +2 -3
  56. package/src/views/user/form/vform/render.vue +8 -0
@@ -1,296 +1,322 @@
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 MenuKindDialog from "@base/views/bd/setting/menu_kind/dialog.vue";
6
- import editView from "@base/views/bd/setting/form_script/edit1.vue";
7
- import scriptDialog from "@base/views/bd/setting/form_script/dialog.vue";
8
- import projectTagDialog from "@base/views/user/project_tag/dialog.vue";
9
- import {getBdFlag} from "@base/api/user";
10
- import {getJsxStatus, getJsxBtn} from "@base/views/bd/setting/utils/index";
11
-
12
- let modules = {};
13
- modules = {
14
- name: 'form_script:form_list',
15
- components: {
16
- projectTagView,
17
- projectTagAddButton,
18
- projectTagDeleteButton,
19
- tableForm, MenuKindDialog, editView, scriptDialog, projectTagDialog
20
- },
21
- props: ["formTemplate"],
22
- data() {
23
- return {
24
- activeName: 'second',
25
- dataId: 0,
26
- showEdit: false,
27
- vxeOption: {},
28
- formData: {},
29
- showScriptDialog: false,
30
- addProjectTagOption: {
31
- url: USER_PREFIX + `/formScript/saveTag`,
32
- tableDatas: () => {
33
- return this.$refs["table-m1"].getCheckboxRecords(true);
34
- },
35
- reqData: (tagDatas, tableDatas) => {
36
- let sids = tableDatas.map(item => item.sid);
37
- let tagCodes = tagDatas.map(item => item.tagCode);
38
- let reqData = {
39
- tagCodes,
40
- sids
41
- };
42
- return reqData;
43
- },
44
- callback: () => {
45
- this.searchEvent()
46
- }
47
- },
48
- deleteProjectTagOption: {
49
- url: USER_PREFIX + `/formScript/deleteTag`,
50
- tableDatas: () => {
51
- return this.$refs["table-m1"].getCheckboxRecords(true);
52
- },
53
- reqData: (tagDatas, tableDatas) => {
54
- let sids = tableDatas.map(item => item.sid);
55
- let tagCodes = tagDatas.map(item => item.tagCode);
56
- let reqData = {
57
- tagCodes,
58
- sids
59
- };
60
- return reqData;
61
- },
62
- callback: () => {
63
- this.searchEvent()
64
- }
65
- },
66
- showProjectTagDialog3: false,
67
- checkTags: [],
68
- isDev: true,
69
- menuKindAuth: {
70
- editAuth: 0
71
- }
72
- };
73
- },
74
- mounted() {
75
- this.getBdEnv();
76
- this.getMenuKindAuth();
77
- this.initTableList();
78
- },
79
- methods: {
80
- searchEvent() {
81
- this.$refs['table-m1'].commitProxy('reload');
82
- },
83
- resetEvent() {
84
- this.formData = {};
85
- this.checkTags = [];
86
- this.$refs['table-m1'].commitProxy('reload');
87
- },
88
- openEditDialog(row) {
89
- /*this.dataId = !id || typeof id == 'object' ? 0 : id;
90
- this.activeName = 'first';
91
- this.$openEditView('showEdit');*/
92
-
93
- let dataId = row?.id || 0;
94
- if (!dataId) {
95
- this.dataId = dataId;
96
- this.activeName = 'first';
97
- this.$openEditView('showEdit');
98
- } else {
99
- this.$refs.xTabs.openEditTab(row);
100
- }
101
- },
102
- initTableList() {
103
- let that = this;
104
- let tableOption = {
105
- vue: this,
106
- tableRef: 'table-m1',
107
- tableName: 'bd_form_script_form_list-m1',
108
- path: USER_PREFIX + '/formScript/listPage',
109
- param: () => {
110
- let tagCodes = null;
111
- if (this.checkTags.length) {
112
- tagCodes = this.checkTags.map(item => item.tagCode);
113
- }
114
- return {
115
- formCode: this.formTemplate.formCode,
116
- menuKindCode: this.formTemplate.menuKindCode,
117
- ...this.formData,
118
- tagCodes,
119
- scriptType: 1,
120
- };
121
- },
122
- columns: [
123
- {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
124
- {
125
- title: this.$t1('脚本名称'),
126
- field: 'scriptName',
127
- width: 180,
128
- fixed: 'left'
129
- },
130
- {
131
- title: this.$t1('脚本编码'),
132
- field: 'scriptCode',
133
- width: 180
134
- },
135
- {
136
- title: this.$t1('脚本说明'),
137
- field: 'scriptRemark',
138
- width: 250
139
- },
140
- {
141
- title: this.$t1('表单模板编码'),
142
- field: 'formCode',
143
- width: 250
144
- },
145
- {
146
- title: this.$t1('项目标签'), field: 'tag', width: 250, slots: {default: "tag"}, params: {
147
- exportVal: ({row}) => {
148
- if (row.formScriptTagDTOs) {
149
- return row.formScriptTagDTOs.map(item => item.tagName).join(",")
150
- }
151
- }
152
- }
153
- },
154
- {
155
- field: 'transactions',
156
- title: this.$t1('开启事务'),
157
- width: 150,
158
- slots: {
159
- default: ({row}) => {
160
- if (row.transactions == 1) {
161
- return getJsxStatus(null, this.$t1('是'))
162
- } else {
163
- return getJsxStatus('s-3', this.$t1('否'))
164
- }
165
- }
166
- }
167
- },
168
- {field: 'serviceName', title: this.$t1('服务名'), width: 150},
169
- {
170
- field: 'sid',
171
- title: this.$t1('唯一标识'),
172
- width: 280
173
- },
174
- {
175
- field: 'createBy',
176
- title: this.$t1('创建人'),
177
- width: 150
178
- },
179
- {
180
- field: 'createDate',
181
- title: this.$t1('创建时间'),
182
- width: 150
183
- },
184
- {
185
- field: 'modifyBy',
186
- title: this.$t1('更新人'),
187
- width: 150
188
- },
189
- {
190
- field: 'modifyDate',
191
- title: this.$t1('更新时间'),
192
- width: 150
193
- },
194
- {
195
- width: 47,
196
- fixed: 'right',
197
- title: '',
198
- sortable: false,
199
- slots: {
200
- default: ({row}) => {
201
- return getJsxBtn({
202
- iconName: "el-icon-edit",
203
- content: this.$t1('查看'),
204
- onclick: () => {
205
- this.openEditDialog(row);
206
- }
207
- });
208
- }
209
- }
210
- }
211
- ],
212
- searchColumns: [
213
- {title: this.$t1('脚本名称'), field: "scriptName", type: "input", common: true},
214
- {title: this.$t1('脚本编码'), field: "scriptCode", type: "input", common: true},
215
- {title: this.$t1('脚本说明'), field: "scriptRemark", type: "input", common: true},
216
- {title: this.$t1('脚本'), field: "script", type: "input", common: true},
217
- {title: this.$t1('项目标签'), field: "tag", type: "input", common: true, slot: "tag"},
218
- ]
219
- };
220
- this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
221
- this.vxeOption = opts;
222
- });
223
- },
224
- confirmScriptDialog(rows) {
225
- if (rows.length) {
226
- let formCode = this.formTemplate.formCode;
227
- let menuKindCode = this.formTemplate.menuKindCode;
228
- let data = rows.map(row => {
229
- return {
230
- scriptCode: row.scriptCode,
231
- scriptName: row.scriptName,
232
- scriptRemark: row.scriptRemark,
233
- script: row.script,
234
- scriptType: 1,
235
- formCode: formCode,
236
- menuKindCode: menuKindCode
237
- }
238
- })
239
- this.$http({
240
- aes: true,
241
- url: USER_PREFIX + '/formScript/saves',
242
- method: `post`,
243
- data: data,
244
- isLoading: true,
245
- success: res => {
246
- this.$message({
247
- message: res.content,
248
- type: 'success',
249
- duration: 500,
250
- onClose: t => {
251
- this.searchEvent()
252
- }
253
- });
254
- }
255
- });
256
- }
257
- }
258
- ,
259
- openProjectTagDialog3() {
260
- this.showProjectTagDialog3 = true;
261
- }
262
- ,
263
- confirmProjectTagDialog3(rows) {
264
- this.checkTags = rows;
265
- }
266
- ,
267
- getTabNames() {
268
- return this.checkTags.map(item => item.tagName).join(",");
269
- }
270
- ,
271
- getBdEnv() {
272
- getBdFlag({
273
- success: res => {
274
- this.isDev = res.objx == 1
275
- }
276
- });
277
- }
278
- ,
279
- getMenuKindAuth() {
280
- let menuKindCode = this.formTemplate.menuKindCode;
281
- if (menuKindCode) {
282
- this.$http({
283
- aes: true,
284
- url: USER_PREFIX + '/menu_kind_auth/getAuth',
285
- method: `post`,
286
- data: {stringOne: menuKindCode},
287
- isLoading: true,
288
- success: res => {
289
- this.menuKindAuth = res.objx || {}
290
- }
291
- });
292
- }
293
- }
294
- }
295
- };
296
- export default modules
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 MenuKindDialog from "@base/views/bd/setting/menu_kind/dialog.vue";
6
+ import editView from "@base/views/bd/setting/form_script/edit1.vue";
7
+ import scriptDialog from "@base/views/bd/setting/form_script/dialog.vue";
8
+ import projectTagDialog from "@base/views/user/project_tag/dialog.vue";
9
+ import { getBdFlag } from "@base/api/user";
10
+ import { getJsxStatus, getJsxBtn } from "@base/views/bd/setting/utils/index";
11
+ import formVersionButton from "@base/views/bd/setting/formVersion/link.vue";
12
+
13
+ let modules = {};
14
+ modules = {
15
+ name: "form_script:form_list",
16
+ components: {
17
+ projectTagView,
18
+ projectTagAddButton,
19
+ projectTagDeleteButton,
20
+ tableForm,
21
+ MenuKindDialog,
22
+ editView,
23
+ scriptDialog,
24
+ projectTagDialog,
25
+ formVersionButton,
26
+ },
27
+ props: ["formTemplate"],
28
+ data() {
29
+ return {
30
+ activeName: "second",
31
+ dataId: 0,
32
+ showEdit: false,
33
+ vxeOption: {},
34
+ formData: {},
35
+ showScriptDialog: false,
36
+ addProjectTagOption: {
37
+ url: USER_PREFIX + `/formScript/saveTag`,
38
+ tableDatas: () => {
39
+ return this.$refs["table-m1"].getCheckboxRecords(true);
40
+ },
41
+ reqData: (tagDatas, tableDatas) => {
42
+ let sids = tableDatas.map((item) => item.sid);
43
+ let tagCodes = tagDatas.map((item) => item.tagCode);
44
+ let reqData = {
45
+ tagCodes,
46
+ sids,
47
+ };
48
+ return reqData;
49
+ },
50
+ callback: () => {
51
+ this.searchEvent();
52
+ },
53
+ },
54
+ deleteProjectTagOption: {
55
+ url: USER_PREFIX + `/formScript/deleteTag`,
56
+ tableDatas: () => {
57
+ return this.$refs["table-m1"].getCheckboxRecords(true);
58
+ },
59
+ reqData: (tagDatas, tableDatas) => {
60
+ let sids = tableDatas.map((item) => item.sid);
61
+ let tagCodes = tagDatas.map((item) => item.tagCode);
62
+ let reqData = {
63
+ tagCodes,
64
+ sids,
65
+ };
66
+ return reqData;
67
+ },
68
+ callback: () => {
69
+ this.searchEvent();
70
+ },
71
+ },
72
+ showProjectTagDialog3: false,
73
+ checkTags: [],
74
+ isDev: true,
75
+ menuKindAuth: {
76
+ editAuth: 0,
77
+ },
78
+ };
79
+ },
80
+ mounted() {
81
+ this.getBdEnv();
82
+ this.getMenuKindAuth();
83
+ this.initTableList();
84
+ },
85
+ methods: {
86
+ searchEvent() {
87
+ this.$refs["table-m1"].commitProxy("reload");
88
+ },
89
+ resetEvent() {
90
+ this.formData = {};
91
+ this.checkTags = [];
92
+ this.$refs["table-m1"].commitProxy("reload");
93
+ },
94
+ openEditDialog(row) {
95
+ /*this.dataId = !id || typeof id === 'object' ? 0 : id;
96
+ this.activeName = 'first';
97
+ this.$openEditView('showEdit');*/
98
+
99
+ let dataId = row?.id || 0;
100
+ if (!dataId) {
101
+ this.dataId = dataId;
102
+ this.activeName = "first";
103
+ this.$openEditView("showEdit");
104
+ } else {
105
+ this.$refs.xTabs.openEditTab(row);
106
+ }
107
+ },
108
+ initTableList() {
109
+ let that = this;
110
+ let tableOption = {
111
+ vue: this,
112
+ tableRef: "table-m1",
113
+ tableName: "bd_form_script_form_list-m1",
114
+ path: USER_PREFIX + "/formScript/listPage",
115
+ param: () => {
116
+ let tagCodes = null;
117
+ if (this.checkTags.length) {
118
+ tagCodes = this.checkTags.map((item) => item.tagCode);
119
+ }
120
+ return {
121
+ formCode: this.formTemplate.formCode,
122
+ menuKindCode: this.formTemplate.menuKindCode,
123
+ ...this.formData,
124
+ tagCodes,
125
+ scriptType: 1,
126
+ };
127
+ },
128
+ columns: [
129
+ { type: "checkbox", width: 48, resizable: false, fixed: "left" },
130
+ {
131
+ title: this.$t1("脚本名称"),
132
+ field: "scriptName",
133
+ width: 180,
134
+ fixed: "left",
135
+ },
136
+ {
137
+ title: this.$t1("脚本编码"),
138
+ field: "scriptCode",
139
+ width: 180,
140
+ },
141
+ {
142
+ title: this.$t1("脚本说明"),
143
+ field: "scriptRemark",
144
+ width: 250,
145
+ },
146
+ {
147
+ title: this.$t1("表单模板编码"),
148
+ field: "formCode",
149
+ width: 250,
150
+ },
151
+ {
152
+ title: this.$t1("项目标签"),
153
+ field: "tag",
154
+ width: 250,
155
+ slots: { default: "tag" },
156
+ params: {
157
+ exportVal: ({ row }) => {
158
+ if (row.formScriptTagDTOs) {
159
+ return row.formScriptTagDTOs
160
+ .map((item) => item.tagName)
161
+ .join(",");
162
+ }
163
+ },
164
+ },
165
+ },
166
+ {
167
+ field: "transactions",
168
+ title: this.$t1("开启事务"),
169
+ width: 150,
170
+ slots: {
171
+ default: ({ row }) => {
172
+ if (row.transactions === 1) {
173
+ return getJsxStatus(null, this.$t1("是"));
174
+ } else {
175
+ return getJsxStatus("s-3", this.$t1("否"));
176
+ }
177
+ },
178
+ },
179
+ },
180
+ { field: "serviceName", title: this.$t1("服务名"), width: 150 },
181
+ { field: "version", title: this.$t1("版本号"), width: 150 },
182
+ {
183
+ field: "sid",
184
+ title: this.$t1("唯一标识"),
185
+ width: 280,
186
+ },
187
+ {
188
+ field: "createBy",
189
+ title: this.$t1("创建人"),
190
+ width: 150,
191
+ },
192
+ {
193
+ field: "createDate",
194
+ title: this.$t1("创建时间"),
195
+ width: 150,
196
+ },
197
+ {
198
+ field: "modifyBy",
199
+ title: this.$t1("更新人"),
200
+ width: 150,
201
+ },
202
+ {
203
+ field: "modifyDate",
204
+ title: this.$t1("更新时间"),
205
+ width: 150,
206
+ },
207
+ {
208
+ width: 100,
209
+ fixed: "right",
210
+ title: "",
211
+ sortable: false,
212
+ slots: {
213
+ default: "operation",
214
+ },
215
+ },
216
+ ],
217
+ searchColumns: [
218
+ {
219
+ title: this.$t1("脚本名称"),
220
+ field: "scriptName",
221
+ type: "input",
222
+ common: true,
223
+ },
224
+ {
225
+ title: this.$t1("脚本编码"),
226
+ field: "scriptCode",
227
+ type: "input",
228
+ common: true,
229
+ },
230
+ {
231
+ title: this.$t1("脚本说明"),
232
+ field: "scriptRemark",
233
+ type: "input",
234
+ common: true,
235
+ },
236
+ {
237
+ title: this.$t1("脚本"),
238
+ field: "script",
239
+ type: "input",
240
+ common: true,
241
+ },
242
+ {
243
+ title: this.$t1("项目标签"),
244
+ field: "tag",
245
+ type: "input",
246
+ common: true,
247
+ slot: "tag",
248
+ },
249
+ ],
250
+ };
251
+ this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
252
+ this.vxeOption = opts;
253
+ });
254
+ },
255
+ confirmScriptDialog(rows) {
256
+ if (rows.length) {
257
+ let formCode = this.formTemplate.formCode;
258
+ let menuKindCode = this.formTemplate.menuKindCode;
259
+ let data = rows.map((row) => {
260
+ return {
261
+ scriptCode: row.scriptCode,
262
+ scriptName: row.scriptName,
263
+ scriptRemark: row.scriptRemark,
264
+ script: row.script,
265
+ scriptType: 1,
266
+ formCode: formCode,
267
+ menuKindCode: menuKindCode,
268
+ };
269
+ });
270
+ this.$http({
271
+ aes: true,
272
+ url: USER_PREFIX + "/formScript/saves",
273
+ method: `post`,
274
+ data: data,
275
+ isLoading: true,
276
+ success: (res) => {
277
+ this.$message({
278
+ message: res.content,
279
+ type: "success",
280
+ duration: 500,
281
+ onClose: (t) => {
282
+ this.searchEvent();
283
+ },
284
+ });
285
+ },
286
+ });
287
+ }
288
+ },
289
+ openProjectTagDialog3() {
290
+ this.showProjectTagDialog3 = true;
291
+ },
292
+ confirmProjectTagDialog3(rows) {
293
+ this.checkTags = rows;
294
+ },
295
+ getTabNames() {
296
+ return this.checkTags.map((item) => item.tagName).join(",");
297
+ },
298
+ getBdEnv() {
299
+ getBdFlag({
300
+ success: (res) => {
301
+ this.isDev = res.objx === 1;
302
+ },
303
+ });
304
+ },
305
+ getMenuKindAuth() {
306
+ let menuKindCode = this.formTemplate.menuKindCode;
307
+ if (menuKindCode) {
308
+ this.$http({
309
+ aes: true,
310
+ url: USER_PREFIX + "/menu_kind_auth/getAuth",
311
+ method: `post`,
312
+ data: { stringOne: menuKindCode },
313
+ isLoading: true,
314
+ success: (res) => {
315
+ this.menuKindAuth = res.objx || {};
316
+ },
317
+ });
318
+ }
319
+ },
320
+ },
321
+ };
322
+ export default modules;