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