cloud-web-corejs 1.0.54-dev.595 → 1.0.54-dev.597
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/formOplog/mixins.js +1 -1
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +5 -1
- package/src/views/bd/setting/form_script/edit.vue +3 -1
- package/src/views/bd/setting/form_script/edit1.vue +3 -1
- package/src/views/bd/setting/form_script/mixins/form_list.js +297 -296
- package/src/views/bd/setting/form_script/mixins/list.js +1 -0
- package/src/views/bd/setting/form_script/mixins/list1.js +1 -0
- package/src/views/bd/setting/table_model/edit.vue +8 -1
- package/src/views/bd/setting/table_model/mixins/list.js +1 -0
package/package.json
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
<i class="el-icon-close el-icon"></i>
|
|
35
35
|
{{ $t2("取 消", "system.button.cancel2") }}
|
|
36
36
|
</el-button>
|
|
37
|
-
<el-button type="primary" @click="dialogSubmit" class="button-sty">
|
|
37
|
+
<el-button type="primary" @click="dialogSubmit" class="button-sty" v-if="confirmButtonVisible">
|
|
38
38
|
<i class="el-icon-check el-icon"></i>
|
|
39
39
|
{{ $t2("确 定", "system.button.confirm2") }}
|
|
40
40
|
</el-button>
|
|
@@ -77,6 +77,7 @@ export default {
|
|
|
77
77
|
currentLayoutType: null,
|
|
78
78
|
dataId: null,
|
|
79
79
|
formConfig: {},
|
|
80
|
+
confirmButtonVisible: true
|
|
80
81
|
};
|
|
81
82
|
},
|
|
82
83
|
computed: {
|
|
@@ -191,6 +192,9 @@ export default {
|
|
|
191
192
|
this.close();
|
|
192
193
|
}
|
|
193
194
|
},
|
|
195
|
+
setConfirmButtonHidden(val){
|
|
196
|
+
this.confirmButtonVisible = val || false;
|
|
197
|
+
}
|
|
194
198
|
},
|
|
195
199
|
};
|
|
196
200
|
</script>
|
|
@@ -136,8 +136,10 @@
|
|
|
136
136
|
</td>
|
|
137
137
|
</tr>
|
|
138
138
|
<tr>
|
|
139
|
+
<th>{{ $t1("版本号") }}</th>
|
|
140
|
+
<td>{{ formScript.version }}</td>
|
|
139
141
|
<th>{{ $t1("唯一标识") }}</th>
|
|
140
|
-
<td colspan="
|
|
142
|
+
<td colspan="5">{{ formScript.sid }}</td>
|
|
141
143
|
</tr>
|
|
142
144
|
<tr>
|
|
143
145
|
<th>{{ $t1("创建人") }}</th>
|
|
@@ -263,8 +263,10 @@
|
|
|
263
263
|
</td>
|
|
264
264
|
</tr>
|
|
265
265
|
<tr>
|
|
266
|
+
<th>{{ $t1("版本号") }}</th>
|
|
267
|
+
<td>{{ formScript.version }}</td>
|
|
266
268
|
<th>{{ $t1("唯一标识") }}</th>
|
|
267
|
-
<td colspan="
|
|
269
|
+
<td colspan="5">{{ formScript.sid }}</td>
|
|
268
270
|
</tr>
|
|
269
271
|
<tr>
|
|
270
272
|
<th>{{ $t1("创建人") }}</th>
|
|
@@ -1,296 +1,297 @@
|
|
|
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
|
-
|
|
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
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
{title: this.$t1('
|
|
215
|
-
{title: this.$t1('
|
|
216
|
-
{title: this.$t1('
|
|
217
|
-
{title: this.$t1('
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
let
|
|
228
|
-
let
|
|
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
|
+
|
|
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
|
+
{field: 'version', title: this.$t1('版本号'), width: 150},
|
|
170
|
+
{
|
|
171
|
+
field: 'sid',
|
|
172
|
+
title: this.$t1('唯一标识'),
|
|
173
|
+
width: 280
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
field: 'createBy',
|
|
177
|
+
title: this.$t1('创建人'),
|
|
178
|
+
width: 150
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
field: 'createDate',
|
|
182
|
+
title: this.$t1('创建时间'),
|
|
183
|
+
width: 150
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
field: 'modifyBy',
|
|
187
|
+
title: this.$t1('更新人'),
|
|
188
|
+
width: 150
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
field: 'modifyDate',
|
|
192
|
+
title: this.$t1('更新时间'),
|
|
193
|
+
width: 150
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
width: 47,
|
|
197
|
+
fixed: 'right',
|
|
198
|
+
title: '',
|
|
199
|
+
sortable: false,
|
|
200
|
+
slots: {
|
|
201
|
+
default: ({row}) => {
|
|
202
|
+
return getJsxBtn({
|
|
203
|
+
iconName: "el-icon-edit",
|
|
204
|
+
content: this.$t1('查看'),
|
|
205
|
+
onclick: () => {
|
|
206
|
+
this.openEditDialog(row);
|
|
207
|
+
}
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
],
|
|
213
|
+
searchColumns: [
|
|
214
|
+
{title: this.$t1('脚本名称'), field: "scriptName", type: "input", common: true},
|
|
215
|
+
{title: this.$t1('脚本编码'), field: "scriptCode", type: "input", common: true},
|
|
216
|
+
{title: this.$t1('脚本说明'), field: "scriptRemark", type: "input", common: true},
|
|
217
|
+
{title: this.$t1('脚本'), field: "script", type: "input", common: true},
|
|
218
|
+
{title: this.$t1('项目标签'), field: "tag", type: "input", common: true, slot: "tag"},
|
|
219
|
+
]
|
|
220
|
+
};
|
|
221
|
+
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
|
222
|
+
this.vxeOption = opts;
|
|
223
|
+
});
|
|
224
|
+
},
|
|
225
|
+
confirmScriptDialog(rows) {
|
|
226
|
+
if (rows.length) {
|
|
227
|
+
let formCode = this.formTemplate.formCode;
|
|
228
|
+
let menuKindCode = this.formTemplate.menuKindCode;
|
|
229
|
+
let data = rows.map(row => {
|
|
230
|
+
return {
|
|
231
|
+
scriptCode: row.scriptCode,
|
|
232
|
+
scriptName: row.scriptName,
|
|
233
|
+
scriptRemark: row.scriptRemark,
|
|
234
|
+
script: row.script,
|
|
235
|
+
scriptType: 1,
|
|
236
|
+
formCode: formCode,
|
|
237
|
+
menuKindCode: menuKindCode
|
|
238
|
+
}
|
|
239
|
+
})
|
|
240
|
+
this.$http({
|
|
241
|
+
aes: true,
|
|
242
|
+
url: USER_PREFIX + '/formScript/saves',
|
|
243
|
+
method: `post`,
|
|
244
|
+
data: data,
|
|
245
|
+
isLoading: true,
|
|
246
|
+
success: res => {
|
|
247
|
+
this.$message({
|
|
248
|
+
message: res.content,
|
|
249
|
+
type: 'success',
|
|
250
|
+
duration: 500,
|
|
251
|
+
onClose: t => {
|
|
252
|
+
this.searchEvent()
|
|
253
|
+
}
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
,
|
|
260
|
+
openProjectTagDialog3() {
|
|
261
|
+
this.showProjectTagDialog3 = true;
|
|
262
|
+
}
|
|
263
|
+
,
|
|
264
|
+
confirmProjectTagDialog3(rows) {
|
|
265
|
+
this.checkTags = rows;
|
|
266
|
+
}
|
|
267
|
+
,
|
|
268
|
+
getTabNames() {
|
|
269
|
+
return this.checkTags.map(item => item.tagName).join(",");
|
|
270
|
+
}
|
|
271
|
+
,
|
|
272
|
+
getBdEnv() {
|
|
273
|
+
getBdFlag({
|
|
274
|
+
success: res => {
|
|
275
|
+
this.isDev = res.objx == 1
|
|
276
|
+
}
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
,
|
|
280
|
+
getMenuKindAuth() {
|
|
281
|
+
let menuKindCode = this.formTemplate.menuKindCode;
|
|
282
|
+
if (menuKindCode) {
|
|
283
|
+
this.$http({
|
|
284
|
+
aes: true,
|
|
285
|
+
url: USER_PREFIX + '/menu_kind_auth/getAuth',
|
|
286
|
+
method: `post`,
|
|
287
|
+
data: {stringOne: menuKindCode},
|
|
288
|
+
isLoading: true,
|
|
289
|
+
success: res => {
|
|
290
|
+
this.menuKindAuth = res.objx || {}
|
|
291
|
+
}
|
|
292
|
+
});
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
};
|
|
297
|
+
export default modules
|
|
@@ -208,6 +208,7 @@ modules = {
|
|
|
208
208
|
},
|
|
209
209
|
{title: this.$t1('表编码'), field: 'taCode', width: 150},
|
|
210
210
|
{field: 'serviceName', title: this.$t1('服务名'), width: 150},
|
|
211
|
+
{field: 'version', title: this.$t1('版本号'), width: 150},
|
|
211
212
|
{title: this.$t1('唯一标识'), field: 'sid', width: 280},
|
|
212
213
|
// {field: 'sszstEn', title: this.$t1('所属主实体'), width: 150},
|
|
213
214
|
{
|