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.
- package/package.json +1 -1
- package/src/components/xform/form-designer/designer.js +1 -0
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +3 -0
- package/src/components/xform/utils/util.js +1 -0
- package/src/views/bd/setting/formVersion/button.vue +55 -0
- package/src/views/bd/setting/formVersion/compareBasicSection.vue +125 -0
- package/src/views/bd/setting/formVersion/compareCodeSection.vue +539 -0
- package/src/views/bd/setting/formVersion/compareContMixin.scss +65 -0
- package/src/views/bd/setting/formVersion/compareContent.vue +63 -0
- package/src/views/bd/setting/formVersion/compareDialog.vue +88 -0
- package/src/views/bd/setting/formVersion/compareMixin.js +93 -0
- package/src/views/bd/setting/formVersion/fieldCompare.vue +54 -0
- package/src/views/bd/setting/formVersion/formScriptCompareView.vue +94 -0
- package/src/views/bd/setting/formVersion/formTemplateCompareView.vue +74 -0
- package/src/views/bd/setting/formVersion/ftHistoryDialog.vue +491 -0
- package/src/views/bd/setting/formVersion/link.vue +58 -0
- package/src/views/bd/setting/formVersion/preformDialog.vue +87 -0
- package/src/views/bd/setting/formVersion/reverButton.vue +82 -0
- package/src/views/bd/setting/formVersion/tableDetailDiff.js +99 -0
- package/src/views/bd/setting/formVersion/tableModelCompareView.vue +514 -0
- package/src/views/bd/setting/formVersion/textDiff.js +102 -0
- package/src/views/bd/setting/form_import_log/edit.vue +6 -3
- package/src/views/bd/setting/form_import_log/list.vue +5 -0
- package/src/views/bd/setting/form_script/edit.vue +196 -83
- package/src/views/bd/setting/form_script/edit1.vue +410 -220
- package/src/views/bd/setting/form_script/form_list.vue +19 -0
- package/src/views/bd/setting/form_script/list.vue +95 -21
- package/src/views/bd/setting/form_script/list1.vue +24 -0
- package/src/views/bd/setting/form_script/mixins/dialog.js +2 -2
- package/src/views/bd/setting/form_script/mixins/edit.js +265 -207
- package/src/views/bd/setting/form_script/mixins/edit1.js +259 -201
- package/src/views/bd/setting/form_script/mixins/form_list.js +322 -296
- package/src/views/bd/setting/form_script/mixins/list.js +163 -95
- package/src/views/bd/setting/form_script/mixins/list1.js +244 -155
- package/src/views/bd/setting/form_script/mixins/otherAuthDialog.js +1 -1
- package/src/views/bd/setting/form_template/batchWfObjConfigDialog.vue +1 -1
- package/src/views/bd/setting/form_template/edit.vue +355 -205
- package/src/views/bd/setting/form_template/formDesignerDialog.vue +171 -0
- package/src/views/bd/setting/form_template/list.vue +49 -74
- package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +3 -3
- package/src/views/bd/setting/form_template/mixins/edit.js +51 -8
- package/src/views/bd/setting/form_template/mixins/itemList.js +1 -1
- package/src/views/bd/setting/form_template/mixins/list.js +114 -82
- package/src/views/bd/setting/form_template/mixins/list2.js +3 -3
- package/src/views/bd/setting/form_template/mixins/otherAuthDialog.js +1 -1
- package/src/views/bd/setting/form_template/mixins/wf_list.js +3 -7
- package/src/views/bd/setting/form_template/wf_list.vue +161 -127
- package/src/views/bd/setting/request_setting/list.vue +15 -25
- package/src/views/bd/setting/table_model/edit.vue +702 -498
- package/src/views/bd/setting/table_model/list.vue +28 -0
- package/src/views/bd/setting/table_model/mixins/dialog.js +1 -1
- package/src/views/bd/setting/table_model/mixins/edit.js +228 -121
- package/src/views/bd/setting/table_model/mixins/list.js +55 -20
- package/src/views/bd/setting/table_model/mixins/otherAuthDialog.js +1 -1
- package/src/views/bd/setting/table_model/mixins/zdDialog.js +50 -46
- package/src/views/bd/setting/utils/index.js +15 -0
- package/src/views/user/form/vform/designer.vue +303 -287
- package/src/views/user/form/vform/formFieldMapping.js +2 -3
- package/src/views/user/form/vform/render.vue +8 -0
- package/src/views/user/form/view/list.vue +5 -1
|
@@ -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
|
-
|
|
13
|
-
modules = {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
this.
|
|
91
|
-
this
|
|
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
|
-
tagCodes
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
title: this.$t1(
|
|
132
|
-
field:
|
|
133
|
-
width: 180
|
|
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
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
width:
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
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
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
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
|
-
|
|
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;
|