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
|
@@ -5,28 +5,39 @@ import tableForm from "@base/components/table/tableForm.vue";
|
|
|
5
5
|
import projectTagDialog from "@base/views/user/project_tag/dialog.vue";
|
|
6
6
|
import MenuKindDialog from "@base/views/bd/setting/menu_kind/dialog.vue";
|
|
7
7
|
import editView from "@base/views/bd/setting/form_script/edit1.vue";
|
|
8
|
-
import {treeScollx} from "@base/utils/global";
|
|
9
|
-
import {getBdFlag} from "@base/api/user";
|
|
10
|
-
import {
|
|
8
|
+
import { treeScollx } from "@base/utils/global";
|
|
9
|
+
import { getBdFlag } from "@base/api/user";
|
|
10
|
+
import {
|
|
11
|
+
getJsxEditLink,
|
|
12
|
+
getJsxStatus,
|
|
13
|
+
} from "@base/views/bd/setting/utils/index";
|
|
14
|
+
import formVersionButton from "@base/views/bd/setting/formVersion/link.vue";
|
|
15
|
+
import settingConfig from "@/settings";
|
|
11
16
|
|
|
12
17
|
let modules = {};
|
|
13
18
|
modules = {
|
|
14
|
-
name:
|
|
19
|
+
name: "form_script:list1",
|
|
15
20
|
components: {
|
|
16
21
|
projectTagView,
|
|
17
|
-
projectTagAddButton,
|
|
22
|
+
projectTagAddButton,
|
|
23
|
+
projectTagDeleteButton,
|
|
24
|
+
tableForm,
|
|
25
|
+
projectTagDialog,
|
|
26
|
+
MenuKindDialog,
|
|
27
|
+
editView,
|
|
28
|
+
formVersionButton,
|
|
18
29
|
},
|
|
19
30
|
data() {
|
|
20
31
|
return {
|
|
21
|
-
activeName:
|
|
32
|
+
activeName: "second",
|
|
22
33
|
dataId: 0,
|
|
23
34
|
showEdit: false,
|
|
24
35
|
vxeOption: {},
|
|
25
36
|
formData: {},
|
|
26
37
|
defaultProps: {
|
|
27
|
-
label:
|
|
38
|
+
label: "name", //这里是树结构中需显示的数据(即接口返回的需展示在页面上的参数)
|
|
28
39
|
children: [],
|
|
29
|
-
isLeaf:
|
|
40
|
+
isLeaf: "leaf",
|
|
30
41
|
},
|
|
31
42
|
currentFormType: {},
|
|
32
43
|
addProjectTagOption: {
|
|
@@ -35,17 +46,17 @@ modules = {
|
|
|
35
46
|
return this.$refs["table-m1"].getCheckboxRecords(true);
|
|
36
47
|
},
|
|
37
48
|
reqData: (tagDatas, tableDatas) => {
|
|
38
|
-
let sids = tableDatas.map(item => item.sid);
|
|
39
|
-
let tagCodes = tagDatas.map(item => item.tagCode);
|
|
49
|
+
let sids = tableDatas.map((item) => item.sid);
|
|
50
|
+
let tagCodes = tagDatas.map((item) => item.tagCode);
|
|
40
51
|
let reqData = {
|
|
41
52
|
tagCodes,
|
|
42
|
-
sids
|
|
53
|
+
sids,
|
|
43
54
|
};
|
|
44
55
|
return reqData;
|
|
45
56
|
},
|
|
46
57
|
callback: () => {
|
|
47
|
-
this.searchEvent()
|
|
48
|
-
}
|
|
58
|
+
this.searchEvent();
|
|
59
|
+
},
|
|
49
60
|
},
|
|
50
61
|
deleteProjectTagOption: {
|
|
51
62
|
url: USER_PREFIX + `/formScript/deleteTag`,
|
|
@@ -53,61 +64,67 @@ modules = {
|
|
|
53
64
|
return this.$refs["table-m1"].getCheckboxRecords(true);
|
|
54
65
|
},
|
|
55
66
|
reqData: (tagDatas, tableDatas) => {
|
|
56
|
-
let sids = tableDatas.map(item => item.sid);
|
|
57
|
-
let tagCodes = tagDatas.map(item => item.tagCode);
|
|
67
|
+
let sids = tableDatas.map((item) => item.sid);
|
|
68
|
+
let tagCodes = tagDatas.map((item) => item.tagCode);
|
|
58
69
|
let reqData = {
|
|
59
70
|
tagCodes,
|
|
60
|
-
sids
|
|
71
|
+
sids,
|
|
61
72
|
};
|
|
62
73
|
return reqData;
|
|
63
74
|
},
|
|
64
75
|
callback: () => {
|
|
65
|
-
this.searchEvent()
|
|
66
|
-
}
|
|
76
|
+
this.searchEvent();
|
|
77
|
+
},
|
|
67
78
|
},
|
|
68
79
|
showProjectTagDialog3: false,
|
|
69
80
|
checkTags: [],
|
|
70
81
|
isDev: true,
|
|
71
82
|
menuKindAuth: {},
|
|
72
|
-
showTree: false
|
|
83
|
+
showTree: false,
|
|
73
84
|
};
|
|
74
85
|
},
|
|
75
86
|
computed: {
|
|
76
87
|
currentMenuKindId() {
|
|
77
|
-
return this.currentFormType?.id || null
|
|
88
|
+
return this.currentFormType?.id || null;
|
|
78
89
|
},
|
|
79
90
|
currentMenuKindName() {
|
|
80
|
-
return this.currentFormType?.name || null
|
|
91
|
+
return this.currentFormType?.name || null;
|
|
81
92
|
},
|
|
82
93
|
otherFlag() {
|
|
83
|
-
return this.currentFormType?.menuKindCode
|
|
84
|
-
}
|
|
85
|
-
|
|
94
|
+
return this.currentFormType?.menuKindCode === "other";
|
|
95
|
+
},
|
|
96
|
+
exportArchiveEnabled() {
|
|
97
|
+
return settingConfig.exportArchiveEnabled === true;
|
|
98
|
+
},
|
|
99
|
+
operationColumnWidth() {
|
|
100
|
+
const btnWidth = 47;
|
|
101
|
+
return this.exportArchiveEnabled ? btnWidth * 2 : btnWidth;
|
|
102
|
+
},
|
|
86
103
|
},
|
|
87
104
|
mounted() {
|
|
88
|
-
treeScollx({target: this, type:
|
|
105
|
+
treeScollx({ target: this, type: "default" });
|
|
89
106
|
this.getBdEnv();
|
|
90
107
|
this.initTableList();
|
|
91
108
|
},
|
|
92
109
|
methods: {
|
|
93
110
|
searchEvent() {
|
|
94
|
-
this.$refs[
|
|
111
|
+
this.$refs["table-m1"].commitProxy("reload");
|
|
95
112
|
},
|
|
96
113
|
resetEvent() {
|
|
97
114
|
this.formData = {};
|
|
98
115
|
this.checkTags = [];
|
|
99
|
-
this.$refs[
|
|
116
|
+
this.$refs["table-m1"].commitProxy("reload");
|
|
100
117
|
},
|
|
101
118
|
openEditDialog(row) {
|
|
102
|
-
/*this.dataId = !id || typeof id
|
|
119
|
+
/*this.dataId = !id || typeof id === 'object' ? 0 : id;
|
|
103
120
|
this.activeName = 'first';
|
|
104
121
|
this.$openEditView('showEdit');*/
|
|
105
122
|
|
|
106
123
|
let dataId = row?.id || 0;
|
|
107
124
|
if (!dataId) {
|
|
108
125
|
this.dataId = dataId;
|
|
109
|
-
this.activeName =
|
|
110
|
-
this.$openEditView(
|
|
126
|
+
this.activeName = "first";
|
|
127
|
+
this.$openEditView("showEdit");
|
|
111
128
|
} else {
|
|
112
129
|
this.$refs.xTabs.openEditTab(row);
|
|
113
130
|
}
|
|
@@ -115,27 +132,30 @@ modules = {
|
|
|
115
132
|
getSearchParam() {
|
|
116
133
|
let tagCodes = null;
|
|
117
134
|
if (this.checkTags.length) {
|
|
118
|
-
tagCodes = this.checkTags.map(item => item.tagCode);
|
|
135
|
+
tagCodes = this.checkTags.map((item) => item.tagCode);
|
|
119
136
|
}
|
|
120
|
-
let currentFormType = this.currentFormType || {}
|
|
121
|
-
let menuKindCode =
|
|
137
|
+
let currentFormType = this.currentFormType || {};
|
|
138
|
+
let menuKindCode =
|
|
139
|
+
currentFormType.menuKindCode && !this.otherFlag
|
|
140
|
+
? currentFormType.menuKindCode
|
|
141
|
+
: null;
|
|
122
142
|
return {
|
|
123
143
|
...this.formData,
|
|
124
144
|
tagCodes,
|
|
125
145
|
menuKindCode,
|
|
126
|
-
scriptType: 1
|
|
146
|
+
scriptType: 1,
|
|
127
147
|
};
|
|
128
148
|
},
|
|
129
149
|
initTableList() {
|
|
130
150
|
let that = this;
|
|
131
151
|
let tableOption = {
|
|
132
152
|
vue: this,
|
|
133
|
-
tableRef:
|
|
134
|
-
tableName:
|
|
153
|
+
tableRef: "table-m1",
|
|
154
|
+
tableName: "bd_form_script_list1-m1",
|
|
135
155
|
path: () => {
|
|
136
|
-
let url = USER_PREFIX +
|
|
156
|
+
let url = USER_PREFIX + "/formScript/listPage";
|
|
137
157
|
if (this.otherFlag) {
|
|
138
|
-
url = USER_PREFIX +
|
|
158
|
+
url = USER_PREFIX + "/formScript/listOtherPage";
|
|
139
159
|
}
|
|
140
160
|
return url;
|
|
141
161
|
},
|
|
@@ -143,59 +163,75 @@ modules = {
|
|
|
143
163
|
return this.getSearchParam();
|
|
144
164
|
},
|
|
145
165
|
columns: [
|
|
146
|
-
{type:
|
|
166
|
+
{ type: "checkbox", width: 48, resizable: false, fixed: "left" },
|
|
147
167
|
{
|
|
148
|
-
title: this.$t1(
|
|
149
|
-
field:
|
|
168
|
+
title: this.$t1("脚本名称"),
|
|
169
|
+
field: "scriptName",
|
|
150
170
|
width: 180,
|
|
151
|
-
fixed:
|
|
171
|
+
fixed: "left",
|
|
172
|
+
slots: {
|
|
173
|
+
default: ({ row }) => {
|
|
174
|
+
return getJsxEditLink({
|
|
175
|
+
content: row.scriptName,
|
|
176
|
+
onclick: () => {
|
|
177
|
+
this.openEditDialog(row);
|
|
178
|
+
},
|
|
179
|
+
});
|
|
180
|
+
},
|
|
181
|
+
},
|
|
152
182
|
},
|
|
153
183
|
{
|
|
154
|
-
title: this.$t1(
|
|
155
|
-
|
|
184
|
+
title: this.$t1("项目标签"),
|
|
185
|
+
field: "tag",
|
|
186
|
+
width: 250,
|
|
187
|
+
slots: { default: "tag" },
|
|
188
|
+
params: {
|
|
189
|
+
exportVal: ({ row }) => {
|
|
156
190
|
if (row.formScriptTagDTOs) {
|
|
157
|
-
return row.formScriptTagDTOs
|
|
191
|
+
return row.formScriptTagDTOs
|
|
192
|
+
.map((item) => item.tagName)
|
|
193
|
+
.join(",");
|
|
158
194
|
}
|
|
159
|
-
}
|
|
160
|
-
}
|
|
195
|
+
},
|
|
196
|
+
},
|
|
161
197
|
},
|
|
162
198
|
{
|
|
163
|
-
title: this.$t1(
|
|
164
|
-
field:
|
|
165
|
-
width: 180
|
|
199
|
+
title: this.$t1("脚本编码"),
|
|
200
|
+
field: "scriptCode",
|
|
201
|
+
width: 180,
|
|
166
202
|
},
|
|
167
|
-
{title: this.$t1(
|
|
203
|
+
{ title: this.$t1("表单分类"), field: "menuKindName", width: 150 },
|
|
168
204
|
{
|
|
169
|
-
title: this.$t1(
|
|
170
|
-
field:
|
|
171
|
-
width: 150
|
|
205
|
+
title: this.$t1("表单模板编码"),
|
|
206
|
+
field: "formCode",
|
|
207
|
+
width: 150,
|
|
172
208
|
},
|
|
173
209
|
{
|
|
174
|
-
title: this.$t1(
|
|
175
|
-
field:
|
|
210
|
+
title: this.$t1("Url路径"),
|
|
211
|
+
field: "url",
|
|
176
212
|
width: 200,
|
|
177
213
|
slots: {
|
|
178
|
-
default: ({row}) => {
|
|
214
|
+
default: ({ row }) => {
|
|
179
215
|
return `/${row.formCode}/${row.scriptCode}`;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
216
|
+
},
|
|
217
|
+
},
|
|
182
218
|
},
|
|
183
219
|
{
|
|
184
|
-
title: this.$t1(
|
|
185
|
-
field:
|
|
186
|
-
width: 250
|
|
220
|
+
title: this.$t1("脚本说明"),
|
|
221
|
+
field: "scriptRemark",
|
|
222
|
+
width: 250,
|
|
187
223
|
},
|
|
188
224
|
{
|
|
189
|
-
title: this.$t1(
|
|
190
|
-
field:
|
|
191
|
-
width: 250
|
|
225
|
+
title: this.$t1("自定义URL"),
|
|
226
|
+
field: "uri",
|
|
227
|
+
width: 250,
|
|
192
228
|
},
|
|
193
229
|
{
|
|
194
230
|
title: this.$t1("是否启用"),
|
|
195
231
|
field: "enabled",
|
|
196
232
|
width: 150,
|
|
197
233
|
slots: {
|
|
198
|
-
default: ({row}) => {
|
|
234
|
+
default: ({ row }) => {
|
|
199
235
|
if (row.enabled) {
|
|
200
236
|
return getJsxStatus(null, this.$t1("启用"));
|
|
201
237
|
} else {
|
|
@@ -205,143 +241,185 @@ modules = {
|
|
|
205
241
|
},
|
|
206
242
|
},
|
|
207
243
|
{
|
|
208
|
-
field:
|
|
209
|
-
title: this.$t1(
|
|
244
|
+
field: "transactions",
|
|
245
|
+
title: this.$t1("开启事务"),
|
|
210
246
|
width: 150,
|
|
211
247
|
slots: {
|
|
212
|
-
default: ({row}) => {
|
|
213
|
-
if (row.transactions
|
|
214
|
-
return getJsxStatus(null, this.$t1(
|
|
248
|
+
default: ({ row }) => {
|
|
249
|
+
if (row.transactions === 1) {
|
|
250
|
+
return getJsxStatus(null, this.$t1("是"));
|
|
215
251
|
} else {
|
|
216
|
-
return getJsxStatus(
|
|
252
|
+
return getJsxStatus("s-3", this.$t1("否"));
|
|
217
253
|
}
|
|
218
|
-
}
|
|
219
|
-
}
|
|
254
|
+
},
|
|
255
|
+
},
|
|
220
256
|
},
|
|
221
|
-
{field:
|
|
257
|
+
{ field: "serviceName", title: this.$t1("服务名"), width: 150 },
|
|
258
|
+
{ field: "version", title: this.$t1("版本号"), width: 150 },
|
|
222
259
|
{
|
|
223
|
-
field:
|
|
224
|
-
title: this.$t1(
|
|
225
|
-
width: 280
|
|
260
|
+
field: "sid",
|
|
261
|
+
title: this.$t1("唯一标识"),
|
|
262
|
+
width: 280,
|
|
226
263
|
},
|
|
227
264
|
{
|
|
228
|
-
field:
|
|
229
|
-
title: this.$t1(
|
|
230
|
-
width: 150
|
|
265
|
+
field: "createBy",
|
|
266
|
+
title: this.$t1("创建人"),
|
|
267
|
+
width: 150,
|
|
231
268
|
},
|
|
232
269
|
{
|
|
233
|
-
field:
|
|
234
|
-
title: this.$t1(
|
|
235
|
-
width: 150
|
|
270
|
+
field: "createDate",
|
|
271
|
+
title: this.$t1("创建时间"),
|
|
272
|
+
width: 150,
|
|
236
273
|
},
|
|
237
274
|
{
|
|
238
|
-
field:
|
|
239
|
-
title: this.$t1(
|
|
240
|
-
width: 150
|
|
275
|
+
field: "modifyBy",
|
|
276
|
+
title: this.$t1("更新人"),
|
|
277
|
+
width: 150,
|
|
241
278
|
},
|
|
242
279
|
{
|
|
243
|
-
field:
|
|
244
|
-
title: this.$t1(
|
|
245
|
-
width: 150
|
|
280
|
+
field: "modifyDate",
|
|
281
|
+
title: this.$t1("更新时间"),
|
|
282
|
+
width: 150,
|
|
246
283
|
},
|
|
247
284
|
{
|
|
248
|
-
width:
|
|
249
|
-
fixed:
|
|
250
|
-
title:
|
|
285
|
+
width: this.operationColumnWidth,
|
|
286
|
+
fixed: "right",
|
|
287
|
+
title: "",
|
|
251
288
|
sortable: false,
|
|
252
289
|
slots: {
|
|
253
|
-
default:
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
content: this.$t1('查看'),
|
|
257
|
-
onclick: () => {
|
|
258
|
-
this.openEditDialog(row);
|
|
259
|
-
}
|
|
260
|
-
});
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
}
|
|
290
|
+
default: "operation",
|
|
291
|
+
},
|
|
292
|
+
},
|
|
264
293
|
],
|
|
265
294
|
searchColumns: [
|
|
266
295
|
{
|
|
267
|
-
title: this.$t1(
|
|
296
|
+
title: this.$t1("表单分类"),
|
|
268
297
|
field: "menuKindName",
|
|
269
298
|
type: "input",
|
|
270
299
|
common: true,
|
|
271
300
|
disabled: true,
|
|
272
301
|
defaultValueEnabled: false,
|
|
273
|
-
slot: "menuKindName"
|
|
302
|
+
slot: "menuKindName",
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
title: this.$t1("脚本名称"),
|
|
306
|
+
field: "scriptName",
|
|
307
|
+
type: "input",
|
|
308
|
+
common: true,
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
title: this.$t1("脚本编码"),
|
|
312
|
+
field: "scriptCode",
|
|
313
|
+
type: "input",
|
|
314
|
+
common: true,
|
|
274
315
|
},
|
|
275
|
-
{title: this.$t1('脚本名称'), field: "scriptName", type: "input", common: true},
|
|
276
|
-
{title: this.$t1('脚本编码'), field: "scriptCode", type: "input", common: true},
|
|
277
316
|
{
|
|
278
317
|
title: this.$t1("是否启用"),
|
|
279
318
|
field: "enabled",
|
|
280
319
|
type: "select",
|
|
281
320
|
common: true,
|
|
282
321
|
itemOption: [
|
|
283
|
-
{label: this.$t1("启用"), value: true},
|
|
284
|
-
{label: this.$t1("禁用"), value: false},
|
|
322
|
+
{ label: this.$t1("启用"), value: true },
|
|
323
|
+
{ label: this.$t1("禁用"), value: false },
|
|
285
324
|
],
|
|
286
325
|
},
|
|
287
|
-
{title: this.$t1('脚本说明'), field: "scriptRemark", type: "input", common: true},
|
|
288
|
-
{title: this.$t1('脚本'), field: "script", type: "input", common: true},
|
|
289
|
-
{title: this.$t1('表单模板编码'), field: "formCode", type: "input", common: true},
|
|
290
|
-
{title: this.$t1('项目标签'), field: "tag", type: "input", common: true, slot: "tag"},
|
|
291
|
-
{title: this.$t1('创建人'), field: "createBy", type: "input", common: false},
|
|
292
|
-
{title: this.$t1('更新人'), field: "modifyBy", type: "input", common: false},
|
|
293
326
|
{
|
|
294
|
-
title: this.$t1(
|
|
327
|
+
title: this.$t1("脚本说明"),
|
|
328
|
+
field: "scriptRemark",
|
|
329
|
+
type: "input",
|
|
330
|
+
common: true,
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
title: this.$t1("脚本"),
|
|
334
|
+
field: "script",
|
|
335
|
+
type: "input",
|
|
336
|
+
common: true,
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
title: this.$t1("表单模板编码"),
|
|
340
|
+
field: "formCode",
|
|
341
|
+
type: "input",
|
|
342
|
+
common: true,
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
title: this.$t1("项目标签"),
|
|
346
|
+
field: "tag",
|
|
347
|
+
type: "input",
|
|
348
|
+
common: true,
|
|
349
|
+
slot: "tag",
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
title: this.$t1("创建人"),
|
|
353
|
+
field: "createBy",
|
|
354
|
+
type: "input",
|
|
355
|
+
common: false,
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
title: this.$t1("更新人"),
|
|
359
|
+
field: "modifyBy",
|
|
360
|
+
type: "input",
|
|
361
|
+
common: false,
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
title: this.$t1("操作日志"),
|
|
365
|
+
field: "logContent",
|
|
366
|
+
type: "input",
|
|
367
|
+
common: false,
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
title: this.$t1("创建时间"),
|
|
295
371
|
field: "startCreateDate",
|
|
296
372
|
field2: "endCreateDate",
|
|
297
373
|
type: "dateRange",
|
|
298
374
|
common: false,
|
|
299
375
|
widgetType: "datetime",
|
|
300
|
-
valueFormat: "yyyy-MM-dd HH:mm:ss"
|
|
376
|
+
valueFormat: "yyyy-MM-dd HH:mm:ss",
|
|
301
377
|
},
|
|
302
378
|
{
|
|
303
|
-
title: this.$t1(
|
|
379
|
+
title: this.$t1("更新时间"),
|
|
304
380
|
field: "startModifyDate",
|
|
305
381
|
field2: "endModifyDate",
|
|
306
382
|
type: "dateRange",
|
|
307
383
|
common: false,
|
|
308
384
|
widgetType: "datetime",
|
|
309
|
-
valueFormat: "yyyy-MM-dd HH:mm:ss"
|
|
310
|
-
}
|
|
385
|
+
valueFormat: "yyyy-MM-dd HH:mm:ss",
|
|
386
|
+
},
|
|
311
387
|
],
|
|
312
388
|
config: {
|
|
313
389
|
proxyConfig: {
|
|
314
|
-
autoLoad: false
|
|
315
|
-
}
|
|
390
|
+
autoLoad: false,
|
|
391
|
+
},
|
|
316
392
|
},
|
|
317
393
|
};
|
|
318
|
-
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
|
394
|
+
this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
|
|
319
395
|
this.vxeOption = opts;
|
|
320
396
|
this.showTree = true;
|
|
321
397
|
});
|
|
322
398
|
},
|
|
323
399
|
handleNodeClick(data, node, v) {
|
|
324
|
-
this.handleNodeData(node)
|
|
400
|
+
this.handleNodeData(node);
|
|
325
401
|
this.$forceUpdate();
|
|
326
402
|
this.searchEvent();
|
|
327
403
|
},
|
|
328
404
|
// 异步树叶子节点懒加载逻辑
|
|
329
405
|
loadNode(node, resolve) {
|
|
330
|
-
let id = node && node.data && node.data.id ? node.data.id ||
|
|
331
|
-
let param = {enabled: true};
|
|
332
|
-
let url = !id
|
|
406
|
+
let id = node && node.data && node.data.id ? node.data.id || "" : 0;
|
|
407
|
+
let param = { enabled: true };
|
|
408
|
+
let url = !id
|
|
409
|
+
? USER_PREFIX + "/menuKind/getAllList"
|
|
410
|
+
: USER_PREFIX + "/menuKind/getChildren";
|
|
333
411
|
this.$http({
|
|
334
412
|
aes: true,
|
|
335
413
|
url: url,
|
|
336
|
-
method:
|
|
414
|
+
method: "post",
|
|
337
415
|
data: {
|
|
338
416
|
parent: id,
|
|
339
417
|
enabled: true,
|
|
340
|
-
dataType: 3
|
|
418
|
+
dataType: 3,
|
|
341
419
|
},
|
|
342
|
-
success: res => {
|
|
420
|
+
success: (res) => {
|
|
343
421
|
let rows = res.objx || [];
|
|
344
|
-
rows.forEach(value => {
|
|
422
|
+
rows.forEach((value) => {
|
|
345
423
|
value.leaf = !value.hasChild;
|
|
346
424
|
});
|
|
347
425
|
if (node.level === 0) {
|
|
@@ -349,8 +427,8 @@ modules = {
|
|
|
349
427
|
id: "other",
|
|
350
428
|
menuKindCode: "other",
|
|
351
429
|
name: "其他分类",
|
|
352
|
-
leaf: true
|
|
353
|
-
})
|
|
430
|
+
leaf: true,
|
|
431
|
+
});
|
|
354
432
|
if (rows.length > 0) {
|
|
355
433
|
this.$nextTick(() => {
|
|
356
434
|
let firstNode = node.childNodes[0];
|
|
@@ -358,12 +436,12 @@ modules = {
|
|
|
358
436
|
firstNode.expand();
|
|
359
437
|
}
|
|
360
438
|
this.$refs.tree.setCurrentKey(firstNode.data);
|
|
361
|
-
this.handleNodeClick(firstNode.data, firstNode, this)
|
|
439
|
+
this.handleNodeClick(firstNode.data, firstNode, this);
|
|
362
440
|
});
|
|
363
441
|
}
|
|
364
442
|
}
|
|
365
443
|
resolve(rows);
|
|
366
|
-
}
|
|
444
|
+
},
|
|
367
445
|
});
|
|
368
446
|
},
|
|
369
447
|
handleNodeData(node) {
|
|
@@ -377,47 +455,58 @@ modules = {
|
|
|
377
455
|
this.checkTags = rows;
|
|
378
456
|
},
|
|
379
457
|
getTabNames() {
|
|
380
|
-
return this.checkTags.map(item => item.tagName).join(",");
|
|
458
|
+
return this.checkTags.map((item) => item.tagName).join(",");
|
|
381
459
|
},
|
|
382
460
|
jsonImport() {
|
|
383
461
|
this.$jsonImport({
|
|
384
|
-
saveUrl: USER_PREFIX +
|
|
462
|
+
saveUrl: USER_PREFIX + "/form_develop/importFormScript",
|
|
385
463
|
showResult: true,
|
|
386
464
|
resultColumns: [
|
|
387
465
|
{
|
|
388
|
-
title: this.$t1(
|
|
389
|
-
field:
|
|
466
|
+
title: this.$t1("脚本名称"),
|
|
467
|
+
field: "scriptName",
|
|
390
468
|
width: 180,
|
|
391
|
-
fixed:
|
|
469
|
+
fixed: "left",
|
|
392
470
|
},
|
|
393
471
|
{
|
|
394
|
-
title: this.$t1(
|
|
395
|
-
field:
|
|
396
|
-
width: 180
|
|
397
|
-
}
|
|
472
|
+
title: this.$t1("脚本编码"),
|
|
473
|
+
field: "scriptCode",
|
|
474
|
+
width: 180,
|
|
475
|
+
},
|
|
398
476
|
],
|
|
399
477
|
callback: () => {
|
|
400
478
|
this.searchEvent();
|
|
401
|
-
}
|
|
479
|
+
},
|
|
402
480
|
});
|
|
403
481
|
},
|
|
404
482
|
jsonExport() {
|
|
405
483
|
this.$jsonExport({
|
|
406
|
-
title:"逻辑脚本",
|
|
484
|
+
title: "逻辑脚本",
|
|
407
485
|
targetRef: "table-m1",
|
|
408
486
|
url: USER_PREFIX + "/form_develop/exportFormScript",
|
|
409
487
|
abcEnabled: true,
|
|
410
488
|
editAuth: this.currentFormType.editAuth,
|
|
411
|
-
selectTypeAuth: this.currentFormType.selectTypeAuth
|
|
412
|
-
})
|
|
489
|
+
selectTypeAuth: this.currentFormType.selectTypeAuth,
|
|
490
|
+
});
|
|
491
|
+
},
|
|
492
|
+
jsonExportArchive(row) {
|
|
493
|
+
this.$jsonExport({
|
|
494
|
+
title: "逻辑脚本",
|
|
495
|
+
data: [row.id],
|
|
496
|
+
url: USER_PREFIX + "/form_develop/exportFormScript",
|
|
497
|
+
plaintext: 1,
|
|
498
|
+
abcEnabled: true,
|
|
499
|
+
editAuth: this.currentFormType.editAuth,
|
|
500
|
+
selectTypeAuth: this.currentFormType.selectTypeAuth,
|
|
501
|
+
});
|
|
413
502
|
},
|
|
414
503
|
getBdEnv() {
|
|
415
504
|
getBdFlag({
|
|
416
|
-
success: res => {
|
|
417
|
-
this.isDev = res.objx
|
|
418
|
-
}
|
|
505
|
+
success: (res) => {
|
|
506
|
+
this.isDev = res.objx === 1;
|
|
507
|
+
},
|
|
419
508
|
});
|
|
420
|
-
}
|
|
421
|
-
}
|
|
509
|
+
},
|
|
510
|
+
},
|
|
422
511
|
};
|
|
423
|
-
export default modules
|
|
512
|
+
export default modules;
|