cloud-web-corejs 1.0.54-dev.340 → 1.0.54-dev.341
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/VabUpload/mixins.js +1490 -1
- package/src/components/excelExport/mixins.js +936 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +364 -255
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +1 -1
- package/src/components/xform/form-render/container-item/data-table-mixin.js +3 -0
- package/src/views/bd/setting/request_async_setting/list.vue +171 -116
- package/src/views/bd/setting/request_setting/list.vue +148 -105
@@ -2,38 +2,76 @@
|
|
2
2
|
<div id="containt">
|
3
3
|
<el-tabs v-model="activeName" class="tab-box">
|
4
4
|
<el-tab-pane :label="$t1('常规')" name="first">
|
5
|
-
<editView
|
6
|
-
|
5
|
+
<editView
|
6
|
+
v-if="showEdit"
|
7
|
+
visible-key="showEdit"
|
8
|
+
:_dataId.sync="dataId"
|
9
|
+
:copyId.sync="copyId"
|
10
|
+
:parent-target="_self"
|
11
|
+
@reload="$reloadHandle"
|
12
|
+
></editView>
|
7
13
|
</el-tab-pane>
|
8
14
|
<el-tab-pane :label="$t1('列表')" name="second">
|
9
15
|
<div class="grid-height">
|
10
|
-
<vxe-grid
|
11
|
-
|
16
|
+
<vxe-grid
|
17
|
+
ref="table-m1"
|
18
|
+
v-bind="vxeOption"
|
19
|
+
@resizable-change="$vxeTableUtil.onColumnWitchChange"
|
20
|
+
@custom="$vxeTableUtil.customHandle"
|
21
|
+
>
|
12
22
|
<template #form>
|
13
23
|
<div class="clearfix screen-btns">
|
14
24
|
<div class="fl">
|
15
|
-
<vxe-button
|
25
|
+
<vxe-button
|
26
|
+
status="primary"
|
27
|
+
class="button-sty"
|
28
|
+
icon="el-icon-plus"
|
29
|
+
@click="openEditDialog"
|
30
|
+
>{{ $t1("新增") }}
|
16
31
|
</vxe-button>
|
17
32
|
</div>
|
18
33
|
<div class="fr">
|
19
|
-
<vxe-button
|
20
|
-
|
34
|
+
<vxe-button
|
35
|
+
icon="el-icon-brush"
|
36
|
+
class="button-sty"
|
37
|
+
@click="resetEvent"
|
38
|
+
type="text"
|
39
|
+
status="primary"
|
40
|
+
plain
|
41
|
+
>{{ $t1("重置") }}
|
21
42
|
</vxe-button>
|
22
|
-
<vxe-button
|
23
|
-
|
43
|
+
<vxe-button
|
44
|
+
status="warning"
|
45
|
+
icon="el-icon-search"
|
46
|
+
class="button-sty"
|
47
|
+
@click="searchEvent"
|
48
|
+
>
|
49
|
+
{{ $t1("搜索") }}
|
24
50
|
</vxe-button>
|
25
51
|
</div>
|
26
52
|
</div>
|
27
|
-
<vxe-form
|
28
|
-
|
53
|
+
<vxe-form
|
54
|
+
ref="form"
|
55
|
+
class="screen-box"
|
56
|
+
title-width="92px"
|
57
|
+
title-align="right"
|
58
|
+
:data="formData"
|
59
|
+
@submit="searchEvent"
|
60
|
+
@reset="searchEvent"
|
61
|
+
>
|
29
62
|
<vxe-form-item title="请求编码:" field="reqCode">
|
30
63
|
<template v-slot>
|
31
|
-
<el-input v-model="formData.reqCode" size="small" clearable/>
|
64
|
+
<el-input v-model="formData.reqCode" size="small" clearable />
|
32
65
|
</template>
|
33
66
|
</vxe-form-item>
|
34
67
|
<vxe-form-item title="请求名称:" field="reqName">
|
35
68
|
<template v-slot>
|
36
|
-
<el-input v-model="formData.reqName" size="small" clearable/>
|
69
|
+
<el-input v-model="formData.reqName" size="small" clearable />
|
70
|
+
</template>
|
71
|
+
</vxe-form-item>
|
72
|
+
<vxe-form-item title="执行组织编码:" field="exeCompanyCode">
|
73
|
+
<template v-slot>
|
74
|
+
<el-input v-model="formData.exeCompanyCode" size="small" clearable />
|
37
75
|
</template>
|
38
76
|
</vxe-form-item>
|
39
77
|
<vxe-form-item title="是否启用:" field="enabled">
|
@@ -54,14 +92,14 @@
|
|
54
92
|
</template>
|
55
93
|
|
56
94
|
<script>
|
57
|
-
import editView from
|
95
|
+
import editView from "./edit.vue";
|
58
96
|
|
59
97
|
export default {
|
60
|
-
name:
|
61
|
-
components: {editView},
|
98
|
+
name: "request_setting:list",
|
99
|
+
components: { editView },
|
62
100
|
data() {
|
63
101
|
return {
|
64
|
-
activeName:
|
102
|
+
activeName: "second",
|
65
103
|
dataId: 0,
|
66
104
|
copyId: 0,
|
67
105
|
showEdit: false,
|
@@ -76,168 +114,168 @@ export default {
|
|
76
114
|
},
|
77
115
|
methods: {
|
78
116
|
searchEvent() {
|
79
|
-
this.$refs[
|
117
|
+
this.$refs["table-m1"].commitProxy("reload");
|
80
118
|
},
|
81
119
|
resetEvent() {
|
82
120
|
this.formData = {};
|
83
121
|
this.advancedFormData = {};
|
84
|
-
this.$refs[
|
122
|
+
this.$refs["table-m1"].commitProxy("reload");
|
85
123
|
},
|
86
124
|
openEditDialog(id) {
|
87
125
|
this.copyId = 0;
|
88
|
-
this.dataId = !id || typeof id ==
|
89
|
-
this.activeName =
|
90
|
-
this.$openEditView(
|
126
|
+
this.dataId = !id || typeof id == "object" ? 0 : id;
|
127
|
+
this.activeName = "first";
|
128
|
+
this.$openEditView("showEdit");
|
91
129
|
},
|
92
130
|
initTableList() {
|
93
131
|
let that = this;
|
94
|
-
let pushTypeMap = {0:
|
132
|
+
let pushTypeMap = { 0: "异步推送", 1: "同步调用" };
|
95
133
|
let tableOption = {
|
96
134
|
vue: this,
|
97
|
-
tableRef:
|
98
|
-
tableName:
|
99
|
-
path: USER_PREFIX +
|
135
|
+
tableRef: "table-m1",
|
136
|
+
tableName: "user_requestSetting_list-m1",
|
137
|
+
path: USER_PREFIX + "/request_setting/listPage",
|
100
138
|
param: () => {
|
101
139
|
return {
|
102
140
|
...this.formData,
|
103
|
-
...this.advancedFormData
|
104
|
-
}
|
141
|
+
...this.advancedFormData,
|
142
|
+
};
|
105
143
|
},
|
106
144
|
columns: [
|
107
|
-
{type:
|
145
|
+
{ type: "checkbox", width: 48, resizable: false, fixed: "left" },
|
108
146
|
{
|
109
|
-
title:
|
110
|
-
field:
|
147
|
+
title: "请求名称",
|
148
|
+
field: "reqName",
|
111
149
|
width: 150,
|
112
|
-
fixed:
|
150
|
+
fixed: "left",
|
113
151
|
},
|
114
152
|
{
|
115
|
-
title:
|
116
|
-
field:
|
153
|
+
title: "请求编码",
|
154
|
+
field: "reqCode",
|
117
155
|
width: 150,
|
118
|
-
fixed:
|
156
|
+
fixed: "left",
|
119
157
|
},
|
120
158
|
{
|
121
|
-
title:
|
122
|
-
field:
|
123
|
-
width: 150
|
159
|
+
title: "请求Url",
|
160
|
+
field: "url",
|
161
|
+
width: 150,
|
124
162
|
},
|
125
163
|
{
|
126
|
-
title:
|
127
|
-
field:
|
128
|
-
width: 150
|
164
|
+
title: "请求头",
|
165
|
+
field: "header",
|
166
|
+
width: 150,
|
129
167
|
},
|
130
168
|
{
|
131
|
-
title:
|
132
|
-
field:
|
133
|
-
width: 150
|
169
|
+
title: "连接超时",
|
170
|
+
field: "connectTimeout",
|
171
|
+
width: 150,
|
134
172
|
},
|
135
173
|
{
|
136
|
-
title:
|
137
|
-
field:
|
138
|
-
width: 150
|
174
|
+
title: "读取超时",
|
175
|
+
field: "readTimeout",
|
176
|
+
width: 150,
|
139
177
|
},
|
140
178
|
{
|
141
|
-
field:
|
142
|
-
title: this.$t1(
|
179
|
+
field: "enabled",
|
180
|
+
title: this.$t1("是否启用"),
|
143
181
|
width: 150,
|
144
182
|
slots: {
|
145
|
-
default: ({row}) => {
|
183
|
+
default: ({ row }) => {
|
146
184
|
if (row.enabled) {
|
147
185
|
return [
|
148
186
|
<div class="txt-status">
|
149
187
|
<span>启用</span>
|
150
|
-
</div
|
188
|
+
</div>,
|
151
189
|
];
|
152
190
|
} else {
|
153
191
|
return [
|
154
192
|
<div class="txt-status disable">
|
155
193
|
<span>禁用</span>
|
156
|
-
</div
|
194
|
+
</div>,
|
157
195
|
];
|
158
196
|
}
|
159
|
-
}
|
160
|
-
}
|
197
|
+
},
|
198
|
+
},
|
161
199
|
},
|
162
200
|
{
|
163
|
-
title:
|
164
|
-
field:
|
165
|
-
width: 150
|
201
|
+
title: "备注",
|
202
|
+
field: "remark",
|
203
|
+
width: 150,
|
166
204
|
},
|
167
205
|
{
|
168
|
-
title:
|
169
|
-
field:
|
170
|
-
width: 150
|
206
|
+
title: "执行组织编码",
|
207
|
+
field: "exeCompanyCode",
|
208
|
+
width: 150,
|
171
209
|
},
|
172
210
|
{
|
173
|
-
field:
|
174
|
-
title: this.$t1(
|
211
|
+
field: "enabled",
|
212
|
+
title: this.$t1("是否启用"),
|
175
213
|
width: 150,
|
176
214
|
slots: {
|
177
|
-
default: ({row}) => {
|
215
|
+
default: ({ row }) => {
|
178
216
|
if (row.enabled) {
|
179
217
|
return [
|
180
218
|
<div class="txt-status">
|
181
219
|
<span>启用</span>
|
182
|
-
</div
|
220
|
+
</div>,
|
183
221
|
];
|
184
222
|
} else {
|
185
223
|
return [
|
186
224
|
<div class="txt-status disable">
|
187
225
|
<span>禁用</span>
|
188
|
-
</div
|
226
|
+
</div>,
|
189
227
|
];
|
190
228
|
}
|
191
|
-
}
|
192
|
-
}
|
229
|
+
},
|
230
|
+
},
|
193
231
|
},
|
194
232
|
{
|
195
|
-
title:
|
196
|
-
field:
|
197
|
-
width: 150
|
233
|
+
title: "参数1",
|
234
|
+
field: "param1",
|
235
|
+
width: 150,
|
198
236
|
},
|
199
237
|
{
|
200
|
-
title:
|
201
|
-
field:
|
202
|
-
width: 150
|
238
|
+
title: "参数2",
|
239
|
+
field: "param2",
|
240
|
+
width: 150,
|
203
241
|
},
|
204
242
|
{
|
205
|
-
title:
|
206
|
-
field:
|
207
|
-
width: 150
|
243
|
+
title: "参数3",
|
244
|
+
field: "param3",
|
245
|
+
width: 150,
|
208
246
|
},
|
209
247
|
{
|
210
|
-
title:
|
211
|
-
field:
|
212
|
-
width: 150
|
248
|
+
title: "参数4",
|
249
|
+
field: "param4",
|
250
|
+
width: 150,
|
213
251
|
},
|
214
252
|
{
|
215
|
-
field:
|
216
|
-
title: this.$t1(
|
217
|
-
width: 150
|
253
|
+
field: "createBy",
|
254
|
+
title: this.$t1("创建人"),
|
255
|
+
width: 150,
|
218
256
|
},
|
219
257
|
{
|
220
|
-
field:
|
221
|
-
title: this.$t1(
|
222
|
-
width: 150
|
258
|
+
field: "createDate",
|
259
|
+
title: this.$t1("创建时间"),
|
260
|
+
width: 150,
|
223
261
|
},
|
224
262
|
{
|
225
|
-
field:
|
226
|
-
title: this.$t1(
|
227
|
-
width: 150
|
263
|
+
field: "modifyBy",
|
264
|
+
title: this.$t1("更新人"),
|
265
|
+
width: 150,
|
228
266
|
},
|
229
267
|
{
|
230
|
-
field:
|
231
|
-
title: this.$t1(
|
232
|
-
width: 150
|
268
|
+
field: "modifyDate",
|
269
|
+
title: this.$t1("更新时间"),
|
270
|
+
width: 150,
|
233
271
|
},
|
234
272
|
{
|
235
273
|
width: 47,
|
236
|
-
fixed:
|
237
|
-
title:
|
274
|
+
fixed: "right",
|
275
|
+
title: "",
|
238
276
|
sortable: false,
|
239
277
|
slots: {
|
240
|
-
default: ({row}) => {
|
278
|
+
default: ({ row }) => {
|
241
279
|
return [
|
242
280
|
<div>
|
243
281
|
<a
|
@@ -247,22 +285,27 @@ export default {
|
|
247
285
|
this.openEditDialog(row.id);
|
248
286
|
}}
|
249
287
|
>
|
250
|
-
<el-tooltip
|
251
|
-
|
252
|
-
|
288
|
+
<el-tooltip
|
289
|
+
enterable={false}
|
290
|
+
effect="dark"
|
291
|
+
content={this.$t1("查看")}
|
292
|
+
placement="top"
|
293
|
+
popper-class="tooltip-skin"
|
294
|
+
>
|
295
|
+
<i class="el-icon-edit" />
|
253
296
|
</el-tooltip>
|
254
297
|
</a>
|
255
|
-
</div
|
298
|
+
</div>,
|
256
299
|
];
|
257
|
-
}
|
258
|
-
}
|
259
|
-
}
|
260
|
-
]
|
300
|
+
},
|
301
|
+
},
|
302
|
+
},
|
303
|
+
],
|
261
304
|
};
|
262
|
-
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
305
|
+
this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
|
263
306
|
this.vxeOption = opts;
|
264
307
|
});
|
265
|
-
}
|
266
|
-
}
|
308
|
+
},
|
309
|
+
},
|
267
310
|
};
|
268
311
|
</script>
|