cloud-web-corejs 1.0.54-dev.745 → 1.0.54-dev.747

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 (52) hide show
  1. package/package.json +194 -192
  2. package/src/App.vue +73 -71
  3. package/src/components/baseArea/index.vue +1628 -1628
  4. package/src/components/fileLibrary/categoryMoveDialog.vue +109 -109
  5. package/src/components/fileLibrary/fileObjAuthDialog.vue +297 -297
  6. package/src/components/fileLibrary/index.vue +1109 -1109
  7. package/src/components/fileLibrary/propertiesDialog.vue +190 -190
  8. package/src/components/fileLibrary/recycleBinDialog.vue +237 -237
  9. package/src/components/wf/mixins/setCandidateDialog.js +217 -217
  10. package/src/components/wf/mixins/setCandidateDialog2.js +252 -252
  11. package/src/components/xform/docs//345/257/271/346/257/224/345/212/237/350/203/275/350/220/275/345/234/260/346/226/271/346/241/210.md +986 -986
  12. package/src/components/xform/form-designer/form-widget/field-widget/area-select-widget.vue +272 -272
  13. package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +216 -216
  14. package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +928 -928
  15. package/src/components/xform/form-designer/index.vue +195 -195
  16. package/src/components/xform/form-designer/indexMixin.js +848 -848
  17. package/src/components/xform/form-designer/setting-panel/index.vue +313 -313
  18. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/columnRenderDialog.vue +124 -124
  19. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +369 -369
  20. package/src/components/xform/form-designer/widget-panel/index.vue +389 -389
  21. package/src/components/xform/form-designer/widget-panel/indexMixin.js +343 -343
  22. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +4531 -4531
  23. package/src/components/xform/form-render/container-item/data-table-mixin.js +4748 -4576
  24. package/src/components/xform/form-render/container-item/tab-item.vue +125 -125
  25. package/src/components/xform/form-render/indexMixin.js +5061 -5078
  26. package/src/components/xform/lang/en-US.js +457 -457
  27. package/src/components/xform/lang/zh-CN.js +628 -628
  28. package/src/components/xform/utils/util.js +1585 -1554
  29. package/src/index.js +347 -230
  30. package/src/layout/components/AppMain.vue +122 -125
  31. package/src/layout/components/extractedCode/viewDialog.vue +207 -207
  32. package/src/layout/components/langTool.vue +128 -123
  33. package/src/layout/defaultLayout.vue +164 -158
  34. package/src/microRouter/index.js +389 -0
  35. package/src/permission.js +185 -135
  36. package/src/public-path.js +8 -0
  37. package/src/store/config/index.js +667 -669
  38. package/src/store/modules/micro.js +46 -0
  39. package/src/store/modules/permission.js +468 -373
  40. package/src/store/modules/user.js +419 -415
  41. package/src/utils/auth.js +27 -1
  42. package/src/utils/index.js +579 -6
  43. package/src/utils/keepAlive.js +4 -0
  44. package/src/utils/menuAdapter.js +183 -0
  45. package/src/utils/request.js +417 -28
  46. package/src/views/bd/setting/formVersion/ftHistoryDialog.vue +483 -483
  47. package/src/views/bd/setting/form_script/form_list.vue +174 -174
  48. package/src/views/bd/setting/form_script/mixins/form_list.js +330 -330
  49. package/src/views/bd/setting/form_template/formDesignerDialog.vue +171 -171
  50. package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +253 -253
  51. package/src/views/user/menuFallback/index.vue +123 -0
  52. package/src/views/user/wf/wfReport/index.vue +625 -625
@@ -1,330 +1,330 @@
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
- jsonExport() {
95
- this.$jsonExport({
96
- title: "表单脚本",
97
- targetRef: "table-m1",
98
- url: USER_PREFIX + "/form_develop/exportFormScript",
99
- abcEnabled: true,
100
- });
101
- },
102
- openEditDialog(row) {
103
- /*this.dataId = !id || typeof id === 'object' ? 0 : id;
104
- this.activeName = 'first';
105
- this.$openEditView('showEdit');*/
106
-
107
- let dataId = row?.id || 0;
108
- if (!dataId) {
109
- this.dataId = dataId;
110
- this.activeName = "first";
111
- this.$openEditView("showEdit");
112
- } else {
113
- this.$refs.xTabs.openEditTab(row);
114
- }
115
- },
116
- initTableList() {
117
- let that = this;
118
- let tableOption = {
119
- vue: this,
120
- tableRef: "table-m1",
121
- tableName: "bd_form_script_form_list-m1",
122
- path: USER_PREFIX + "/formScript/listPage",
123
- param: () => {
124
- let tagCodes = null;
125
- if (this.checkTags.length) {
126
- tagCodes = this.checkTags.map((item) => item.tagCode);
127
- }
128
- return {
129
- formCode: this.formTemplate.formCode,
130
- menuKindCode: this.formTemplate.menuKindCode,
131
- ...this.formData,
132
- tagCodes,
133
- scriptType: 1,
134
- };
135
- },
136
- columns: [
137
- { type: "checkbox", width: 48, resizable: false, fixed: "left" },
138
- {
139
- title: this.$t1("脚本名称"),
140
- field: "scriptName",
141
- width: 180,
142
- fixed: "left",
143
- },
144
- {
145
- title: this.$t1("脚本编码"),
146
- field: "scriptCode",
147
- width: 180,
148
- },
149
- {
150
- title: this.$t1("脚本说明"),
151
- field: "scriptRemark",
152
- width: 250,
153
- },
154
- {
155
- title: this.$t1("表单模板编码"),
156
- field: "formCode",
157
- width: 250,
158
- },
159
- {
160
- title: this.$t1("项目标签"),
161
- field: "tag",
162
- width: 250,
163
- slots: { default: "tag" },
164
- params: {
165
- exportVal: ({ row }) => {
166
- if (row.formScriptTagDTOs) {
167
- return row.formScriptTagDTOs
168
- .map((item) => item.tagName)
169
- .join(",");
170
- }
171
- },
172
- },
173
- },
174
- {
175
- field: "transactions",
176
- title: this.$t1("开启事务"),
177
- width: 150,
178
- slots: {
179
- default: ({ row }) => {
180
- if (row.transactions === 1) {
181
- return getJsxStatus(null, this.$t1("是"));
182
- } else {
183
- return getJsxStatus("s-3", this.$t1("否"));
184
- }
185
- },
186
- },
187
- },
188
- { field: "serviceName", title: this.$t1("服务名"), width: 150 },
189
- { field: "version", title: this.$t1("版本号"), width: 150 },
190
- {
191
- field: "sid",
192
- title: this.$t1("唯一标识"),
193
- width: 280,
194
- },
195
- {
196
- field: "createBy",
197
- title: this.$t1("创建人"),
198
- width: 150,
199
- },
200
- {
201
- field: "createDate",
202
- title: this.$t1("创建时间"),
203
- width: 150,
204
- },
205
- {
206
- field: "modifyBy",
207
- title: this.$t1("更新人"),
208
- width: 150,
209
- },
210
- {
211
- field: "modifyDate",
212
- title: this.$t1("更新时间"),
213
- width: 150,
214
- },
215
- {
216
- width: 100,
217
- fixed: "right",
218
- title: "",
219
- sortable: false,
220
- slots: {
221
- default: "operation",
222
- },
223
- },
224
- ],
225
- searchColumns: [
226
- {
227
- title: this.$t1("脚本名称"),
228
- field: "scriptName",
229
- type: "input",
230
- common: true,
231
- },
232
- {
233
- title: this.$t1("脚本编码"),
234
- field: "scriptCode",
235
- type: "input",
236
- common: true,
237
- },
238
- {
239
- title: this.$t1("脚本说明"),
240
- field: "scriptRemark",
241
- type: "input",
242
- common: true,
243
- },
244
- {
245
- title: this.$t1("脚本"),
246
- field: "script",
247
- type: "input",
248
- common: true,
249
- },
250
- {
251
- title: this.$t1("项目标签"),
252
- field: "tag",
253
- type: "input",
254
- common: true,
255
- slot: "tag",
256
- },
257
- ],
258
- };
259
- this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
260
- this.vxeOption = opts;
261
- });
262
- },
263
- confirmScriptDialog(rows) {
264
- if (rows.length) {
265
- let formCode = this.formTemplate.formCode;
266
- let menuKindCode = this.formTemplate.menuKindCode;
267
- let data = rows.map((row) => {
268
- return {
269
- scriptCode: row.scriptCode,
270
- scriptName: row.scriptName,
271
- scriptRemark: row.scriptRemark,
272
- script: row.script,
273
- scriptType: 1,
274
- formCode: formCode,
275
- menuKindCode: menuKindCode,
276
- };
277
- });
278
- this.$http({
279
- aes: true,
280
- url: USER_PREFIX + "/formScript/saves",
281
- method: `post`,
282
- data: data,
283
- isLoading: true,
284
- success: (res) => {
285
- this.$message({
286
- message: res.content,
287
- type: "success",
288
- duration: 500,
289
- onClose: (t) => {
290
- this.searchEvent();
291
- },
292
- });
293
- },
294
- });
295
- }
296
- },
297
- openProjectTagDialog3() {
298
- this.showProjectTagDialog3 = true;
299
- },
300
- confirmProjectTagDialog3(rows) {
301
- this.checkTags = rows;
302
- },
303
- getTabNames() {
304
- return this.checkTags.map((item) => item.tagName).join(",");
305
- },
306
- getBdEnv() {
307
- getBdFlag({
308
- success: (res) => {
309
- this.isDev = res.objx === 1;
310
- },
311
- });
312
- },
313
- getMenuKindAuth() {
314
- let menuKindCode = this.formTemplate.menuKindCode;
315
- if (menuKindCode) {
316
- this.$http({
317
- aes: true,
318
- url: USER_PREFIX + "/menu_kind_auth/getAuth",
319
- method: `post`,
320
- data: { stringOne: menuKindCode },
321
- isLoading: true,
322
- success: (res) => {
323
- this.menuKindAuth = res.objx || {};
324
- },
325
- });
326
- }
327
- },
328
- },
329
- };
330
- 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
+ jsonExport() {
95
+ this.$jsonExport({
96
+ title: "表单脚本",
97
+ targetRef: "table-m1",
98
+ url: USER_PREFIX + "/form_develop/exportFormScript",
99
+ abcEnabled: true,
100
+ });
101
+ },
102
+ openEditDialog(row) {
103
+ /*this.dataId = !id || typeof id === 'object' ? 0 : id;
104
+ this.activeName = 'first';
105
+ this.$openEditView('showEdit');*/
106
+
107
+ let dataId = row?.id || 0;
108
+ if (!dataId) {
109
+ this.dataId = dataId;
110
+ this.activeName = "first";
111
+ this.$openEditView("showEdit");
112
+ } else {
113
+ this.$refs.xTabs.openEditTab(row);
114
+ }
115
+ },
116
+ initTableList() {
117
+ let that = this;
118
+ let tableOption = {
119
+ vue: this,
120
+ tableRef: "table-m1",
121
+ tableName: "bd_form_script_form_list-m1",
122
+ path: USER_PREFIX + "/formScript/listPage",
123
+ param: () => {
124
+ let tagCodes = null;
125
+ if (this.checkTags.length) {
126
+ tagCodes = this.checkTags.map((item) => item.tagCode);
127
+ }
128
+ return {
129
+ formCode: this.formTemplate.formCode,
130
+ menuKindCode: this.formTemplate.menuKindCode,
131
+ ...this.formData,
132
+ tagCodes,
133
+ scriptType: 1,
134
+ };
135
+ },
136
+ columns: [
137
+ { type: "checkbox", width: 48, resizable: false, fixed: "left" },
138
+ {
139
+ title: this.$t1("脚本名称"),
140
+ field: "scriptName",
141
+ width: 180,
142
+ fixed: "left",
143
+ },
144
+ {
145
+ title: this.$t1("脚本编码"),
146
+ field: "scriptCode",
147
+ width: 180,
148
+ },
149
+ {
150
+ title: this.$t1("脚本说明"),
151
+ field: "scriptRemark",
152
+ width: 250,
153
+ },
154
+ {
155
+ title: this.$t1("表单模板编码"),
156
+ field: "formCode",
157
+ width: 250,
158
+ },
159
+ {
160
+ title: this.$t1("项目标签"),
161
+ field: "tag",
162
+ width: 250,
163
+ slots: { default: "tag" },
164
+ params: {
165
+ exportVal: ({ row }) => {
166
+ if (row.formScriptTagDTOs) {
167
+ return row.formScriptTagDTOs
168
+ .map((item) => item.tagName)
169
+ .join(",");
170
+ }
171
+ },
172
+ },
173
+ },
174
+ {
175
+ field: "transactions",
176
+ title: this.$t1("开启事务"),
177
+ width: 150,
178
+ slots: {
179
+ default: ({ row }) => {
180
+ if (row.transactions === 1) {
181
+ return getJsxStatus(null, this.$t1("是"));
182
+ } else {
183
+ return getJsxStatus("s-3", this.$t1("否"));
184
+ }
185
+ },
186
+ },
187
+ },
188
+ { field: "serviceName", title: this.$t1("服务名"), width: 150 },
189
+ { field: "version", title: this.$t1("版本号"), width: 150 },
190
+ {
191
+ field: "sid",
192
+ title: this.$t1("唯一标识"),
193
+ width: 280,
194
+ },
195
+ {
196
+ field: "createBy",
197
+ title: this.$t1("创建人"),
198
+ width: 150,
199
+ },
200
+ {
201
+ field: "createDate",
202
+ title: this.$t1("创建时间"),
203
+ width: 150,
204
+ },
205
+ {
206
+ field: "modifyBy",
207
+ title: this.$t1("更新人"),
208
+ width: 150,
209
+ },
210
+ {
211
+ field: "modifyDate",
212
+ title: this.$t1("更新时间"),
213
+ width: 150,
214
+ },
215
+ {
216
+ width: 100,
217
+ fixed: "right",
218
+ title: "",
219
+ sortable: false,
220
+ slots: {
221
+ default: "operation",
222
+ },
223
+ },
224
+ ],
225
+ searchColumns: [
226
+ {
227
+ title: this.$t1("脚本名称"),
228
+ field: "scriptName",
229
+ type: "input",
230
+ common: true,
231
+ },
232
+ {
233
+ title: this.$t1("脚本编码"),
234
+ field: "scriptCode",
235
+ type: "input",
236
+ common: true,
237
+ },
238
+ {
239
+ title: this.$t1("脚本说明"),
240
+ field: "scriptRemark",
241
+ type: "input",
242
+ common: true,
243
+ },
244
+ {
245
+ title: this.$t1("脚本"),
246
+ field: "script",
247
+ type: "input",
248
+ common: true,
249
+ },
250
+ {
251
+ title: this.$t1("项目标签"),
252
+ field: "tag",
253
+ type: "input",
254
+ common: true,
255
+ slot: "tag",
256
+ },
257
+ ],
258
+ };
259
+ this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
260
+ this.vxeOption = opts;
261
+ });
262
+ },
263
+ confirmScriptDialog(rows) {
264
+ if (rows.length) {
265
+ let formCode = this.formTemplate.formCode;
266
+ let menuKindCode = this.formTemplate.menuKindCode;
267
+ let data = rows.map((row) => {
268
+ return {
269
+ scriptCode: row.scriptCode,
270
+ scriptName: row.scriptName,
271
+ scriptRemark: row.scriptRemark,
272
+ script: row.script,
273
+ scriptType: 1,
274
+ formCode: formCode,
275
+ menuKindCode: menuKindCode,
276
+ };
277
+ });
278
+ this.$http({
279
+ aes: true,
280
+ url: USER_PREFIX + "/formScript/saves",
281
+ method: `post`,
282
+ data: data,
283
+ isLoading: true,
284
+ success: (res) => {
285
+ this.$message({
286
+ message: res.content,
287
+ type: "success",
288
+ duration: 500,
289
+ onClose: (t) => {
290
+ this.searchEvent();
291
+ },
292
+ });
293
+ },
294
+ });
295
+ }
296
+ },
297
+ openProjectTagDialog3() {
298
+ this.showProjectTagDialog3 = true;
299
+ },
300
+ confirmProjectTagDialog3(rows) {
301
+ this.checkTags = rows;
302
+ },
303
+ getTabNames() {
304
+ return this.checkTags.map((item) => item.tagName).join(",");
305
+ },
306
+ getBdEnv() {
307
+ getBdFlag({
308
+ success: (res) => {
309
+ this.isDev = res.objx === 1;
310
+ },
311
+ });
312
+ },
313
+ getMenuKindAuth() {
314
+ let menuKindCode = this.formTemplate.menuKindCode;
315
+ if (menuKindCode) {
316
+ this.$http({
317
+ aes: true,
318
+ url: USER_PREFIX + "/menu_kind_auth/getAuth",
319
+ method: `post`,
320
+ data: { stringOne: menuKindCode },
321
+ isLoading: true,
322
+ success: (res) => {
323
+ this.menuKindAuth = res.objx || {};
324
+ },
325
+ });
326
+ }
327
+ },
328
+ },
329
+ };
330
+ export default modules;