cloud-web-corejs 1.0.54-dev.644 → 1.0.54-dev.645
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.
|
@@ -1,17 +1,26 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<container-item-wrapper
|
|
2
|
+
<container-item-wrapper
|
|
3
|
+
:widget="widget"
|
|
4
|
+
:class="widget.options.isFullscreen ? 'full-height' : ''"
|
|
5
|
+
>
|
|
3
6
|
<div class="h5-header">{{ widget.options.label }}</div>
|
|
4
7
|
<div class="h5-search-box">
|
|
5
|
-
<el-input
|
|
6
|
-
v-model="keyword"
|
|
7
|
-
placeholder="请选择" class="txt">
|
|
8
|
+
<el-input v-model="keyword" placeholder="请选择" class="txt">
|
|
8
9
|
<i slot="suffix" class="el-input__icon el-icon-search"></i>
|
|
9
|
-
<el-button slot="append" class="btn" @click="searchEvent"
|
|
10
|
+
<el-button slot="append" class="btn" @click="searchEvent"
|
|
11
|
+
>搜索</el-button
|
|
12
|
+
>
|
|
10
13
|
</el-input>
|
|
11
|
-
<div class="icon-screen" @click="openAdvancedSearchDialog"
|
|
14
|
+
<div class="icon-screen" @click="openAdvancedSearchDialog">
|
|
15
|
+
<i class="iconfont icon-chaxuntiaojianshezhi"></i>筛选
|
|
12
16
|
</div>
|
|
13
17
|
</div>
|
|
14
|
-
<div
|
|
18
|
+
<div
|
|
19
|
+
v-if="widget.options.isQueryTable"
|
|
20
|
+
class="h5-fixed-top-btns"
|
|
21
|
+
title-width="92px"
|
|
22
|
+
title-align="right"
|
|
23
|
+
>
|
|
15
24
|
<el-form label-position="top">
|
|
16
25
|
<template v-if="!!widget.buttons && widget.buttons.length > 0">
|
|
17
26
|
<template v-for="(subWidget, swIdx) in widget.buttons">
|
|
@@ -25,8 +34,11 @@
|
|
|
25
34
|
:parent-widget="widget"
|
|
26
35
|
>
|
|
27
36
|
<!-- 递归传递插槽!!! -->
|
|
28
|
-
<template
|
|
29
|
-
|
|
37
|
+
<template
|
|
38
|
+
v-for="slot in Object.keys($scopedSlots)"
|
|
39
|
+
v-slot:[slot]="scope"
|
|
40
|
+
>
|
|
41
|
+
<slot :name="slot" v-bind="scope" />
|
|
30
42
|
</template>
|
|
31
43
|
</component>
|
|
32
44
|
</template>
|
|
@@ -41,8 +53,11 @@
|
|
|
41
53
|
:parent-widget="widget"
|
|
42
54
|
>
|
|
43
55
|
<!-- 递归传递插槽!!! -->
|
|
44
|
-
<template
|
|
45
|
-
|
|
56
|
+
<template
|
|
57
|
+
v-for="slot in Object.keys($scopedSlots)"
|
|
58
|
+
v-slot:[slot]="scope"
|
|
59
|
+
>
|
|
60
|
+
<slot :name="slot" v-bind="scope" />
|
|
46
61
|
</template>
|
|
47
62
|
</component>
|
|
48
63
|
</template>
|
|
@@ -51,56 +66,101 @@
|
|
|
51
66
|
</el-form>
|
|
52
67
|
</div>
|
|
53
68
|
<div class="h5-list-box">
|
|
54
|
-
<div
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
69
|
+
<div
|
|
70
|
+
v-for="(row, rowIndex) in fieldModel"
|
|
71
|
+
:key="rowIndex"
|
|
72
|
+
class="item"
|
|
73
|
+
@click="itemCheck(row)"
|
|
74
|
+
:class="{ checked: checkItemIds.includes(row.id) }"
|
|
75
|
+
>
|
|
76
|
+
<div
|
|
77
|
+
v-if="!widget.options.isQueryTable"
|
|
78
|
+
class="del-btn"
|
|
79
|
+
@click.stop="deleteRow(row, rowIndex)"
|
|
80
|
+
>
|
|
81
|
+
<i class="el-icon-delete"></i>
|
|
82
|
+
</div>
|
|
83
|
+
<template v-if="vxeOption.columns.length > 0">
|
|
59
84
|
<div class="t1" v-if="widget.options.isQueryTable">
|
|
60
|
-
<template
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
:
|
|
74
|
-
:
|
|
75
|
-
:
|
|
76
|
-
:
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
85
|
+
<template
|
|
86
|
+
v-for="(column, columnIndex) in vxeOption.columns.filter(
|
|
87
|
+
(item, index) => item.isMainFiled
|
|
88
|
+
)"
|
|
89
|
+
>
|
|
90
|
+
<b :key="'1-' + columnIndex">{{ column.title }}:</b>
|
|
91
|
+
<span :key="'2-' + columnIndex">
|
|
92
|
+
<template v-if="!column.params.formatS">
|
|
93
|
+
{{ row[column.field] }}
|
|
94
|
+
</template>
|
|
95
|
+
<template v-else-if="column.params.formatS == 'render'">
|
|
96
|
+
{{
|
|
97
|
+
column.slots.default({
|
|
98
|
+
column: column,
|
|
99
|
+
rowIndex: rowIndex,
|
|
100
|
+
row: row,
|
|
101
|
+
items: fieldModel,
|
|
102
|
+
})
|
|
103
|
+
}}
|
|
104
|
+
</template>
|
|
105
|
+
<template
|
|
106
|
+
v-else-if="column.slots && column.slots.default == 'widget'"
|
|
107
|
+
>
|
|
108
|
+
<component
|
|
109
|
+
:is="getColumnWidgetName(column.params.widget)"
|
|
110
|
+
:field="column.params.widget"
|
|
111
|
+
:form-model="globalModel.formModel"
|
|
112
|
+
:designer="null"
|
|
113
|
+
:key="rowIndex"
|
|
114
|
+
:parent-widget="widget"
|
|
115
|
+
:columnConfig="column.params.columnConfig"
|
|
116
|
+
:subFormRowIndex="rowIndex"
|
|
117
|
+
:formItemProp="
|
|
118
|
+
getColumnProp(widget, {
|
|
119
|
+
column: column,
|
|
120
|
+
rowIndex: rowIndex,
|
|
121
|
+
row: row,
|
|
122
|
+
items: fieldModel,
|
|
123
|
+
})
|
|
124
|
+
"
|
|
125
|
+
:tableParam="{
|
|
126
|
+
column: column,
|
|
127
|
+
rowIndex: rowIndex,
|
|
128
|
+
row: row,
|
|
129
|
+
items: fieldModel,
|
|
130
|
+
}"
|
|
131
|
+
></component>
|
|
82
132
|
</template>
|
|
83
|
-
<template v-else-if="column.params.formatS=='editDelete'">
|
|
133
|
+
<template v-else-if="column.params.formatS == 'editDelete'">
|
|
84
134
|
<a
|
|
85
135
|
href="javascript:void(0);"
|
|
86
136
|
class="a-link"
|
|
87
|
-
@click="deleteRow(row,rowIndex)"
|
|
137
|
+
@click="deleteRow(row, rowIndex)"
|
|
88
138
|
>
|
|
89
|
-
<el-tooltip
|
|
90
|
-
|
|
91
|
-
|
|
139
|
+
<el-tooltip
|
|
140
|
+
:enterable="false"
|
|
141
|
+
effect="dark"
|
|
142
|
+
content="删除"
|
|
143
|
+
placement="top"
|
|
144
|
+
popper-class="tooltip-skin"
|
|
145
|
+
>
|
|
146
|
+
<i class="el-icon-delete" />
|
|
92
147
|
</el-tooltip>
|
|
93
148
|
</a>
|
|
94
149
|
</template>
|
|
95
|
-
<template v-else-if="column.params.formatS=='editButton'">
|
|
150
|
+
<template v-else-if="column.params.formatS == 'editButton'">
|
|
96
151
|
<a
|
|
97
152
|
href="javascript:void(0);"
|
|
98
153
|
class="a-link"
|
|
99
154
|
@click.stop="openEditDialog(obj.row)"
|
|
100
155
|
>
|
|
101
|
-
<el-tooltip
|
|
102
|
-
|
|
103
|
-
|
|
156
|
+
<el-tooltip
|
|
157
|
+
:enterable="false"
|
|
158
|
+
effect="dark"
|
|
159
|
+
content="查看"
|
|
160
|
+
placement="top"
|
|
161
|
+
popper-class="tooltip-skin"
|
|
162
|
+
>
|
|
163
|
+
<i class="el-icon-edit" />
|
|
104
164
|
</el-tooltip>
|
|
105
165
|
</a>
|
|
106
166
|
</template>
|
|
@@ -111,18 +171,27 @@
|
|
|
111
171
|
column: column,
|
|
112
172
|
rowIndex: rowIndex,
|
|
113
173
|
row: row,
|
|
114
|
-
items: fieldModel
|
|
174
|
+
items: fieldModel,
|
|
115
175
|
})
|
|
116
176
|
}}
|
|
117
177
|
</template>
|
|
118
|
-
|
|
178
|
+
</span>
|
|
119
179
|
<!-- <div class="status">未审核</div>-->
|
|
120
180
|
</template>
|
|
121
181
|
</div>
|
|
122
182
|
<div class="t2">
|
|
123
|
-
<template
|
|
124
|
-
|
|
125
|
-
|
|
183
|
+
<template
|
|
184
|
+
v-if="
|
|
185
|
+
!widget.options.isQueryTable || vxeOption.columns.length > 1
|
|
186
|
+
"
|
|
187
|
+
>
|
|
188
|
+
<template v-for="(column, columnIndex) in vxeOption.columns">
|
|
189
|
+
<template
|
|
190
|
+
v-if="
|
|
191
|
+
(!widget.options.isQueryTable || !column.isMainFiled) &&
|
|
192
|
+
column.showForRow
|
|
193
|
+
"
|
|
194
|
+
>
|
|
126
195
|
<dl :key="columnIndex">
|
|
127
196
|
<div>
|
|
128
197
|
<dt>{{ column.title }}:</dt>
|
|
@@ -131,44 +200,81 @@
|
|
|
131
200
|
{{ row[column.field] }}
|
|
132
201
|
</template>
|
|
133
202
|
<template v-else-if="column.params.formatS == 'render'">
|
|
134
|
-
{{
|
|
203
|
+
{{
|
|
204
|
+
column.slots.default({
|
|
205
|
+
column: column,
|
|
206
|
+
rowIndex: rowIndex,
|
|
207
|
+
row: row,
|
|
208
|
+
items: fieldModel,
|
|
209
|
+
})
|
|
210
|
+
}}
|
|
135
211
|
</template>
|
|
136
212
|
|
|
137
|
-
<template
|
|
213
|
+
<template
|
|
214
|
+
v-else-if="
|
|
215
|
+
column.slots && column.slots.default == 'widget'
|
|
216
|
+
"
|
|
217
|
+
>
|
|
138
218
|
<component
|
|
139
219
|
:is="getColumnWidgetName(column.params.widget)"
|
|
140
220
|
:field="column.params.widget"
|
|
141
221
|
:form-model="globalModel.formModel"
|
|
142
222
|
:designer="null"
|
|
143
|
-
:key="rowIndex+'-'+columnIndex"
|
|
223
|
+
:key="rowIndex + '-' + columnIndex"
|
|
144
224
|
:parent-widget="widget"
|
|
145
225
|
:columnConfig="column.params.columnConfig"
|
|
146
226
|
:subFormRowIndex="rowIndex"
|
|
147
|
-
:formItemProp="
|
|
148
|
-
|
|
227
|
+
:formItemProp="
|
|
228
|
+
getColumnProp(widget, {
|
|
229
|
+
column: column,
|
|
230
|
+
rowIndex: rowIndex,
|
|
231
|
+
row: row,
|
|
232
|
+
items: fieldModel,
|
|
233
|
+
})
|
|
234
|
+
"
|
|
235
|
+
:tableParam="{
|
|
236
|
+
column: column,
|
|
237
|
+
rowIndex: rowIndex,
|
|
238
|
+
row: row,
|
|
239
|
+
items: fieldModel,
|
|
240
|
+
}"
|
|
149
241
|
></component>
|
|
150
242
|
</template>
|
|
151
|
-
<template
|
|
243
|
+
<template
|
|
244
|
+
v-else-if="column.params.formatS == 'editDelete'"
|
|
245
|
+
>
|
|
152
246
|
<a
|
|
153
247
|
href="javascript:void(0);"
|
|
154
248
|
class="a-link"
|
|
155
|
-
@click.stop="deleteRow(row,rowIndex)"
|
|
249
|
+
@click.stop="deleteRow(row, rowIndex)"
|
|
156
250
|
>
|
|
157
|
-
<el-tooltip
|
|
158
|
-
|
|
159
|
-
|
|
251
|
+
<el-tooltip
|
|
252
|
+
:enterable="false"
|
|
253
|
+
effect="dark"
|
|
254
|
+
content="删除"
|
|
255
|
+
placement="top"
|
|
256
|
+
popper-class="tooltip-skin"
|
|
257
|
+
>
|
|
258
|
+
<i class="el-icon-delete" />
|
|
160
259
|
</el-tooltip>
|
|
161
260
|
</a>
|
|
162
261
|
</template>
|
|
163
|
-
<template
|
|
262
|
+
<template
|
|
263
|
+
v-else-if="column.params.formatS == 'editButton'"
|
|
264
|
+
>
|
|
164
265
|
<a
|
|
165
266
|
href="javascript:void(0);"
|
|
166
267
|
class="a-link"
|
|
167
268
|
@click.stop="openEditDialog(row)"
|
|
168
269
|
>
|
|
169
|
-
<el-tooltip
|
|
170
|
-
|
|
171
|
-
|
|
270
|
+
<el-tooltip
|
|
271
|
+
:enterable="false"
|
|
272
|
+
effect="dark"
|
|
273
|
+
content="查看"
|
|
274
|
+
placement="top"
|
|
275
|
+
popper-class="tooltip-skin"
|
|
276
|
+
>
|
|
277
|
+
<i class="el-icon-edit" />
|
|
172
278
|
</el-tooltip>
|
|
173
279
|
</a>
|
|
174
280
|
</template>
|
|
@@ -179,7 +285,7 @@
|
|
|
179
285
|
column: column,
|
|
180
286
|
rowIndex: rowIndex,
|
|
181
287
|
row: row,
|
|
182
|
-
items: fieldModel
|
|
288
|
+
items: fieldModel,
|
|
183
289
|
})
|
|
184
290
|
}}
|
|
185
291
|
</template>
|
|
@@ -196,7 +302,9 @@
|
|
|
196
302
|
</div> -->
|
|
197
303
|
<!-- <a class="btn"><i class="el-icon-delete"/><span>删除</span></a>
|
|
198
304
|
<a class="btn"><i class="el-icon-edit"/><span>查看</span></a>-->
|
|
199
|
-
<template
|
|
305
|
+
<template
|
|
306
|
+
v-if="!!widget.lineButtons && widget.lineButtons.length > 0"
|
|
307
|
+
>
|
|
200
308
|
<template v-for="(subWidget, swIdx) in widget.lineButtons">
|
|
201
309
|
<template v-if="'container' === subWidget.category">
|
|
202
310
|
<component
|
|
@@ -207,11 +315,18 @@
|
|
|
207
315
|
:index-of-parent-list="swIdx"
|
|
208
316
|
:parent-widget="widget"
|
|
209
317
|
:subFormRowIndex="rowIndex"
|
|
210
|
-
:tableParam="{
|
|
318
|
+
:tableParam="{
|
|
319
|
+
rowIndex: rowIndex,
|
|
320
|
+
row: row,
|
|
321
|
+
items: fieldModel,
|
|
322
|
+
}"
|
|
211
323
|
>
|
|
212
324
|
<!-- 递归传递插槽!!! -->
|
|
213
|
-
<template
|
|
214
|
-
|
|
325
|
+
<template
|
|
326
|
+
v-for="slot in Object.keys($scopedSlots)"
|
|
327
|
+
v-slot:[slot]="scope"
|
|
328
|
+
>
|
|
329
|
+
<slot :name="slot" v-bind="scope" />
|
|
215
330
|
</template>
|
|
216
331
|
</component>
|
|
217
332
|
</template>
|
|
@@ -225,11 +340,18 @@
|
|
|
225
340
|
:index-of-parent-list="swIdx"
|
|
226
341
|
:parent-widget="widget"
|
|
227
342
|
:subFormRowIndex="rowIndex"
|
|
228
|
-
:tableParam="{
|
|
343
|
+
:tableParam="{
|
|
344
|
+
rowIndex: rowIndex,
|
|
345
|
+
row: row,
|
|
346
|
+
items: fieldModel,
|
|
347
|
+
}"
|
|
229
348
|
>
|
|
230
349
|
<!-- 递归传递插槽!!! -->
|
|
231
|
-
<template
|
|
232
|
-
|
|
350
|
+
<template
|
|
351
|
+
v-for="slot in Object.keys($scopedSlots)"
|
|
352
|
+
v-slot:[slot]="scope"
|
|
353
|
+
>
|
|
354
|
+
<slot :name="slot" v-bind="scope" />
|
|
233
355
|
</template>
|
|
234
356
|
</component>
|
|
235
357
|
</template>
|
|
@@ -260,23 +382,33 @@
|
|
|
260
382
|
@page-change="changePageNew"
|
|
261
383
|
>
|
|
262
384
|
<template #right>
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
385
|
+
<span>
|
|
386
|
+
<span>当前记录</span>
|
|
387
|
+
<span class="f-red"> {{ page.records.length }} </span>
|
|
388
|
+
<span>/</span>
|
|
389
|
+
<span class="f-red"> {{ page.total }}</span>
|
|
390
|
+
</span>
|
|
269
391
|
</template>
|
|
270
392
|
</vxe-pager>
|
|
271
393
|
</div>
|
|
272
394
|
</div>
|
|
273
395
|
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
396
|
+
<advancedSearchDialog
|
|
397
|
+
v-if="showAdvancedSearch"
|
|
398
|
+
:visiable.sync="showAdvancedSearch"
|
|
399
|
+
class="adSearchForm_all"
|
|
400
|
+
:formData="advancedFormData"
|
|
401
|
+
@confirm="confirmAdvancedSearchDialog"
|
|
402
|
+
@clear="advancedClear"
|
|
403
|
+
>
|
|
277
404
|
<template #form>
|
|
278
|
-
<vxe-form
|
|
279
|
-
|
|
405
|
+
<vxe-form
|
|
406
|
+
:model="formModel"
|
|
407
|
+
title-width="102px"
|
|
408
|
+
:inline="true"
|
|
409
|
+
class="adSearchForm"
|
|
410
|
+
>
|
|
411
|
+
<template v-for="(searchColumn, index) in vxeOption.searchColumns">
|
|
280
412
|
<vxe-form-item>
|
|
281
413
|
<component
|
|
282
414
|
:is="getColumnWidgetName(searchColumn.widget)"
|
|
@@ -304,78 +436,125 @@
|
|
|
304
436
|
v-el-dialog-center
|
|
305
437
|
:destroy-on-close="true"
|
|
306
438
|
>
|
|
307
|
-
<div class="cont" style="height: calc(100vh - 73px)
|
|
439
|
+
<div class="cont" style="height: calc(100vh - 73px)">
|
|
308
440
|
<div class="h5-list-box">
|
|
309
|
-
<div
|
|
441
|
+
<div
|
|
442
|
+
v-for="(row, rowIndex) in [editRow]"
|
|
443
|
+
:key="rowIndex"
|
|
444
|
+
class="item"
|
|
445
|
+
>
|
|
310
446
|
<!-- <div class="del-btn"><i class="el-icon-delete"></i></div>-->
|
|
311
|
-
<template v-if="vxeOption.columns.length>0">
|
|
447
|
+
<template v-if="vxeOption.columns.length > 0">
|
|
312
448
|
<div class="t1" v-if="widget.options.isQueryTable">
|
|
313
|
-
<template
|
|
449
|
+
<template
|
|
450
|
+
v-for="(column, columnIndex) in vxeOption.columns.filter(
|
|
451
|
+
(item, index) => item.isMainFiled
|
|
452
|
+
)"
|
|
453
|
+
>
|
|
314
454
|
<b>{{ column.title }}:</b>
|
|
315
455
|
<span>
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
456
|
+
<template v-if="!column.params.formatS">
|
|
457
|
+
{{ row[column.field] }}
|
|
458
|
+
</template>
|
|
459
|
+
<template v-else-if="column.params.formatS == 'render'">
|
|
460
|
+
{{
|
|
461
|
+
column.slots.default({
|
|
462
|
+
column: column,
|
|
463
|
+
rowIndex: rowIndex,
|
|
464
|
+
row: row,
|
|
465
|
+
items: fieldModel,
|
|
466
|
+
})
|
|
467
|
+
}}
|
|
468
|
+
</template>
|
|
469
|
+
<template
|
|
470
|
+
v-else-if="
|
|
471
|
+
column.slots && column.slots.default == 'widget'
|
|
472
|
+
"
|
|
473
|
+
>
|
|
474
|
+
<component
|
|
475
|
+
:is="getColumnWidgetName(column.params.widget)"
|
|
476
|
+
:field="column.params.widget"
|
|
477
|
+
:form-model="globalModel.formModel"
|
|
478
|
+
:designer="null"
|
|
479
|
+
:key="rowIndex"
|
|
480
|
+
:parent-widget="widget"
|
|
481
|
+
:columnConfig="column.params.columnConfig"
|
|
482
|
+
:subFormRowIndex="rowIndex"
|
|
483
|
+
:formItemProp="
|
|
484
|
+
getColumnProp(widget, {
|
|
485
|
+
column: column,
|
|
486
|
+
rowIndex: rowIndex,
|
|
487
|
+
row: row,
|
|
488
|
+
items: fieldModel,
|
|
489
|
+
})
|
|
490
|
+
"
|
|
491
|
+
:tableParam="{
|
|
492
|
+
column: column,
|
|
493
|
+
rowIndex: rowIndex,
|
|
494
|
+
row: row,
|
|
495
|
+
items: fieldModel,
|
|
496
|
+
}"
|
|
497
|
+
></component>
|
|
498
|
+
</template>
|
|
499
|
+
<template v-else-if="column.params.formatS == 'editDelete'">
|
|
500
|
+
<a
|
|
501
|
+
href="javascript:void(0);"
|
|
502
|
+
class="a-link"
|
|
503
|
+
@click.stop="deleteRow(row, rowIndex)"
|
|
504
|
+
>
|
|
505
|
+
<el-tooltip
|
|
506
|
+
:enterable="false"
|
|
507
|
+
effect="dark"
|
|
508
|
+
content="删除"
|
|
509
|
+
placement="top"
|
|
510
|
+
popper-class="tooltip-skin"
|
|
511
|
+
>
|
|
512
|
+
<i class="el-icon-delete" />
|
|
513
|
+
</el-tooltip>
|
|
514
|
+
</a>
|
|
515
|
+
</template>
|
|
516
|
+
<template v-else-if="column.params.formatS == 'editButton'">
|
|
517
|
+
<a
|
|
518
|
+
href="javascript:void(0);"
|
|
519
|
+
class="a-link"
|
|
520
|
+
@click.stop="openEditDialog(obj.row)"
|
|
521
|
+
>
|
|
522
|
+
<el-tooltip
|
|
523
|
+
:enterable="false"
|
|
524
|
+
effect="dark"
|
|
525
|
+
content="查看"
|
|
526
|
+
placement="top"
|
|
527
|
+
popper-class="tooltip-skin"
|
|
528
|
+
>
|
|
529
|
+
<i class="el-icon-edit" />
|
|
530
|
+
</el-tooltip>
|
|
531
|
+
</a>
|
|
532
|
+
</template>
|
|
533
|
+
<template v-else>
|
|
534
|
+
{{
|
|
535
|
+
column.formatter({
|
|
536
|
+
cellValue: row[column.field],
|
|
537
|
+
column: column,
|
|
538
|
+
rowIndex: rowIndex,
|
|
539
|
+
row: row,
|
|
540
|
+
items: fieldModel,
|
|
541
|
+
})
|
|
542
|
+
}}
|
|
543
|
+
</template>
|
|
544
|
+
</span>
|
|
372
545
|
<!-- <div class="status">未审核</div>-->
|
|
373
546
|
</template>
|
|
374
547
|
</div>
|
|
375
548
|
<div class="t2">
|
|
376
|
-
<template
|
|
377
|
-
|
|
378
|
-
|
|
549
|
+
<template
|
|
550
|
+
v-if="
|
|
551
|
+
!widget.options.isQueryTable || vxeOption.columns.length > 1
|
|
552
|
+
"
|
|
553
|
+
>
|
|
554
|
+
<template v-for="(column, columnIndex) in vxeOption.columns">
|
|
555
|
+
<template
|
|
556
|
+
v-if="!widget.options.isQueryTable || !column.isMainFiled"
|
|
557
|
+
>
|
|
379
558
|
<dl>
|
|
380
559
|
<div>
|
|
381
560
|
<dt>{{ column.title }}:</dt>
|
|
@@ -383,47 +562,84 @@
|
|
|
383
562
|
<template v-if="!column.params.formatS">
|
|
384
563
|
{{ row[column.field] }}
|
|
385
564
|
</template>
|
|
386
|
-
<template
|
|
565
|
+
<template
|
|
566
|
+
v-else-if="column.params.formatS == 'render'"
|
|
567
|
+
>
|
|
387
568
|
{{
|
|
388
|
-
column.slots.default({
|
|
569
|
+
column.slots.default({
|
|
570
|
+
column: column,
|
|
571
|
+
rowIndex: rowIndex,
|
|
572
|
+
row: row,
|
|
573
|
+
items: fieldModel,
|
|
574
|
+
})
|
|
389
575
|
}}
|
|
390
576
|
</template>
|
|
391
577
|
|
|
392
|
-
<template
|
|
578
|
+
<template
|
|
579
|
+
v-else-if="
|
|
580
|
+
column.slots && column.slots.default == 'widget'
|
|
581
|
+
"
|
|
582
|
+
>
|
|
393
583
|
<component
|
|
394
584
|
:is="getColumnWidgetName(column.params.widget)"
|
|
395
585
|
:field="column.params.widget"
|
|
396
586
|
:form-model="globalModel.formModel"
|
|
397
587
|
:designer="null"
|
|
398
|
-
:key="rowIndex+'-'+columnIndex"
|
|
588
|
+
:key="rowIndex + '-' + columnIndex"
|
|
399
589
|
:parent-widget="widget"
|
|
400
590
|
:columnConfig="column.params.columnConfig"
|
|
401
591
|
:subFormRowIndex="rowIndex"
|
|
402
|
-
:formItemProp="
|
|
403
|
-
|
|
592
|
+
:formItemProp="
|
|
593
|
+
getColumnProp(widget, {
|
|
594
|
+
column: column,
|
|
595
|
+
rowIndex: rowIndex,
|
|
596
|
+
row: row,
|
|
597
|
+
items: fieldModel,
|
|
598
|
+
})
|
|
599
|
+
"
|
|
600
|
+
:tableParam="{
|
|
601
|
+
column: column,
|
|
602
|
+
rowIndex: rowIndex,
|
|
603
|
+
row: row,
|
|
604
|
+
items: fieldModel,
|
|
605
|
+
}"
|
|
404
606
|
></component>
|
|
405
607
|
</template>
|
|
406
|
-
<template
|
|
608
|
+
<template
|
|
609
|
+
v-else-if="column.params.formatS == 'editDelete'"
|
|
610
|
+
>
|
|
407
611
|
<a
|
|
408
612
|
href="javascript:void(0);"
|
|
409
613
|
class="a-link"
|
|
410
|
-
@click="deleteRow(row,rowIndex)"
|
|
614
|
+
@click="deleteRow(row, rowIndex)"
|
|
411
615
|
>
|
|
412
|
-
<el-tooltip
|
|
413
|
-
|
|
414
|
-
|
|
616
|
+
<el-tooltip
|
|
617
|
+
:enterable="false"
|
|
618
|
+
effect="dark"
|
|
619
|
+
content="删除"
|
|
620
|
+
placement="top"
|
|
621
|
+
popper-class="tooltip-skin"
|
|
622
|
+
>
|
|
623
|
+
<i class="el-icon-delete" />
|
|
415
624
|
</el-tooltip>
|
|
416
625
|
</a>
|
|
417
626
|
</template>
|
|
418
|
-
<template
|
|
627
|
+
<template
|
|
628
|
+
v-else-if="column.params.formatS == 'editButton'"
|
|
629
|
+
>
|
|
419
630
|
<a
|
|
420
631
|
href="javascript:void(0);"
|
|
421
632
|
class="a-link"
|
|
422
633
|
@click="openEditDialog(obj.row)"
|
|
423
634
|
>
|
|
424
|
-
<el-tooltip
|
|
425
|
-
|
|
426
|
-
|
|
635
|
+
<el-tooltip
|
|
636
|
+
:enterable="false"
|
|
637
|
+
effect="dark"
|
|
638
|
+
content="查看"
|
|
639
|
+
placement="top"
|
|
640
|
+
popper-class="tooltip-skin"
|
|
641
|
+
>
|
|
642
|
+
<i class="el-icon-edit" />
|
|
427
643
|
</el-tooltip>
|
|
428
644
|
</a>
|
|
429
645
|
</template>
|
|
@@ -434,7 +650,7 @@
|
|
|
434
650
|
column: column,
|
|
435
651
|
rowIndex: rowIndex,
|
|
436
652
|
row: row,
|
|
437
|
-
items: fieldModel
|
|
653
|
+
items: fieldModel,
|
|
438
654
|
})
|
|
439
655
|
}}
|
|
440
656
|
</template>
|
|
@@ -446,7 +662,9 @@
|
|
|
446
662
|
</template>
|
|
447
663
|
</div>
|
|
448
664
|
<div class="btns">
|
|
449
|
-
<template
|
|
665
|
+
<template
|
|
666
|
+
v-if="!!widget.lineButtons && widget.lineButtons.length > 0"
|
|
667
|
+
>
|
|
450
668
|
<template v-for="(subWidget, swIdx) in widget.lineButtons">
|
|
451
669
|
<template v-if="'container' === subWidget.category">
|
|
452
670
|
<component
|
|
@@ -457,11 +675,18 @@
|
|
|
457
675
|
:index-of-parent-list="swIdx"
|
|
458
676
|
:parent-widget="widget"
|
|
459
677
|
:subFormRowIndex="rowIndex"
|
|
460
|
-
:tableParam="{
|
|
678
|
+
:tableParam="{
|
|
679
|
+
rowIndex: rowIndex,
|
|
680
|
+
row: row,
|
|
681
|
+
items: fieldModel,
|
|
682
|
+
}"
|
|
461
683
|
>
|
|
462
684
|
<!-- 递归传递插槽!!! -->
|
|
463
|
-
<template
|
|
464
|
-
|
|
685
|
+
<template
|
|
686
|
+
v-for="slot in Object.keys($scopedSlots)"
|
|
687
|
+
v-slot:[slot]="scope"
|
|
688
|
+
>
|
|
689
|
+
<slot :name="slot" v-bind="scope" />
|
|
465
690
|
</template>
|
|
466
691
|
</component>
|
|
467
692
|
</template>
|
|
@@ -475,11 +700,18 @@
|
|
|
475
700
|
:index-of-parent-list="swIdx"
|
|
476
701
|
:parent-widget="widget"
|
|
477
702
|
:subFormRowIndex="rowIndex"
|
|
478
|
-
:tableParam="{
|
|
703
|
+
:tableParam="{
|
|
704
|
+
rowIndex: rowIndex,
|
|
705
|
+
row: row,
|
|
706
|
+
items: fieldModel,
|
|
707
|
+
}"
|
|
479
708
|
>
|
|
480
709
|
<!-- 递归传递插槽!!! -->
|
|
481
|
-
<template
|
|
482
|
-
|
|
710
|
+
<template
|
|
711
|
+
v-for="slot in Object.keys($scopedSlots)"
|
|
712
|
+
v-slot:[slot]="scope"
|
|
713
|
+
>
|
|
714
|
+
<slot :name="slot" v-bind="scope" />
|
|
483
715
|
</template>
|
|
484
716
|
</component>
|
|
485
717
|
</template>
|
|
@@ -505,12 +737,16 @@
|
|
|
505
737
|
</template>
|
|
506
738
|
|
|
507
739
|
<script>
|
|
508
|
-
import emitter from
|
|
509
|
-
import i18n from
|
|
510
|
-
import refMixin from
|
|
511
|
-
import containerItemMixin from
|
|
512
|
-
import FieldComponents from
|
|
513
|
-
import {
|
|
740
|
+
import emitter from "../../../../components/xform/utils/emitter";
|
|
741
|
+
import i18n from "../../../../components/xform/utils/i18n";
|
|
742
|
+
import refMixin from "../../../../components/xform/form-render/refMixin";
|
|
743
|
+
import containerItemMixin from "./containerItemMixin";
|
|
744
|
+
import FieldComponents from "../../../../components/xform/form-designer/form-widget/field-widget/index";
|
|
745
|
+
import {
|
|
746
|
+
assembleAxiosConfig,
|
|
747
|
+
generateId,
|
|
748
|
+
getReportGlobalMap,
|
|
749
|
+
} from "../../../../components/xform/utils/util";
|
|
514
750
|
import * as formatUtil from "../../../../components/xform/utils/format";
|
|
515
751
|
import render from "../../../../views/user/bill_setting/render.vue";
|
|
516
752
|
|
|
@@ -521,16 +757,16 @@ const baseRefUtil = {
|
|
|
521
757
|
containerItemMixin,
|
|
522
758
|
formatUtil,
|
|
523
759
|
assembleAxiosConfig,
|
|
524
|
-
getReportGlobalMap
|
|
760
|
+
getReportGlobalMap,
|
|
525
761
|
};
|
|
526
762
|
|
|
527
763
|
export default {
|
|
528
|
-
name:
|
|
764
|
+
name: "list-h5-item",
|
|
529
765
|
components: {
|
|
530
|
-
...FieldComponents
|
|
766
|
+
...FieldComponents,
|
|
531
767
|
},
|
|
532
768
|
mixins: [emitter, i18n, refMixin, containerItemMixin],
|
|
533
|
-
componentName:
|
|
769
|
+
componentName: "ContainerItem",
|
|
534
770
|
props: {
|
|
535
771
|
widget: Object,
|
|
536
772
|
parentWidget: Object,
|
|
@@ -538,18 +774,24 @@ export default {
|
|
|
538
774
|
indexOfParentList: Number,
|
|
539
775
|
subFormRowIndex: {
|
|
540
776
|
type: Number,
|
|
541
|
-
default: -1
|
|
777
|
+
default: -1,
|
|
542
778
|
},
|
|
543
779
|
subFormColIndex: {
|
|
544
780
|
type: Number,
|
|
545
|
-
default: -1
|
|
781
|
+
default: -1,
|
|
546
782
|
},
|
|
547
783
|
subFormRowId: {
|
|
548
784
|
type: String,
|
|
549
|
-
default:
|
|
550
|
-
}
|
|
785
|
+
default: "",
|
|
786
|
+
},
|
|
551
787
|
},
|
|
552
|
-
inject: [
|
|
788
|
+
inject: [
|
|
789
|
+
"refList",
|
|
790
|
+
"sfRefList",
|
|
791
|
+
"globalModel",
|
|
792
|
+
"getFormConfig",
|
|
793
|
+
"getGlobalDsv",
|
|
794
|
+
],
|
|
553
795
|
data: function () {
|
|
554
796
|
let that = this;
|
|
555
797
|
let pageSize = 2;
|
|
@@ -564,20 +806,20 @@ export default {
|
|
|
564
806
|
currentPage: this.widget.options.pagination.currentPage,
|
|
565
807
|
total: this.widget.options.pagination.total,*/
|
|
566
808
|
formData: {
|
|
567
|
-
saleOrgName:
|
|
568
|
-
loginAccount:
|
|
569
|
-
mobile:
|
|
570
|
-
enabled: 1
|
|
809
|
+
saleOrgName: "",
|
|
810
|
+
loginAccount: "",
|
|
811
|
+
mobile: "",
|
|
812
|
+
enabled: 1,
|
|
571
813
|
},
|
|
572
|
-
vxeOption: {columns: []},
|
|
814
|
+
vxeOption: { columns: [] },
|
|
573
815
|
requestAccess: null,
|
|
574
816
|
columnFormatMap: {
|
|
575
|
-
editInput:
|
|
576
|
-
editNumber:
|
|
577
|
-
editDate:
|
|
578
|
-
editSelect:
|
|
579
|
-
editSearch:
|
|
580
|
-
button:
|
|
817
|
+
editInput: "input",
|
|
818
|
+
editNumber: "number",
|
|
819
|
+
editDate: "date",
|
|
820
|
+
editSelect: "select",
|
|
821
|
+
editSearch: "vabsearch",
|
|
822
|
+
button: "button",
|
|
581
823
|
},
|
|
582
824
|
dataTableConfig: {},
|
|
583
825
|
advancedFormData: {},
|
|
@@ -591,30 +833,34 @@ export default {
|
|
|
591
833
|
},
|
|
592
834
|
keyword: null,
|
|
593
835
|
|
|
594
|
-
checkItemIds: []
|
|
836
|
+
checkItemIds: [],
|
|
595
837
|
};
|
|
596
838
|
},
|
|
597
839
|
watch: {
|
|
598
840
|
fieldModel(val) {
|
|
599
841
|
this.formModel[this.fieldKeyName] = val || [];
|
|
600
|
-
}
|
|
842
|
+
},
|
|
601
843
|
},
|
|
602
844
|
computed: {
|
|
603
845
|
formConfig: function () {
|
|
604
846
|
return this.getFormConfig();
|
|
605
847
|
},
|
|
606
848
|
paginationLayout: function () {
|
|
607
|
-
return this.widget.options.smallPagination
|
|
849
|
+
return this.widget.options.smallPagination
|
|
850
|
+
? "prev, pager, next"
|
|
851
|
+
: "total, sizes, prev, pager, next, jumper";
|
|
608
852
|
},
|
|
609
853
|
customClass: function () {
|
|
610
|
-
return this.widget.options.customClass ||
|
|
854
|
+
return this.widget.options.customClass || "";
|
|
611
855
|
},
|
|
612
856
|
singleRowSelectFlag: function () {
|
|
613
857
|
return !this.widget.options.showCheckBox;
|
|
614
858
|
},
|
|
615
859
|
buttonsColumnFixed: function () {
|
|
616
|
-
return void 0 === this.widget.options.buttonsColumnFixed
|
|
617
|
-
|
|
860
|
+
return void 0 === this.widget.options.buttonsColumnFixed
|
|
861
|
+
? "right"
|
|
862
|
+
: !!this.widget.options.buttonsColumnFixed &&
|
|
863
|
+
this.widget.options.buttonsColumnFixed;
|
|
618
864
|
},
|
|
619
865
|
columns() {
|
|
620
866
|
let tableColumns = this.widget.options.tableColumns;
|
|
@@ -626,23 +872,25 @@ export default {
|
|
|
626
872
|
fixed: 'left'
|
|
627
873
|
});*/
|
|
628
874
|
|
|
629
|
-
let firstColumn = tableColumns.find(column => {
|
|
875
|
+
let firstColumn = tableColumns.find((column) => {
|
|
630
876
|
return !!column.prop && !!column.showForRow;
|
|
631
877
|
});
|
|
632
878
|
let mainFiled = firstColumn?.prop;
|
|
633
879
|
|
|
634
880
|
let formRef = this.getFormRef();
|
|
635
|
-
let dateConfig = this.$baseLodash.cloneDeep(
|
|
636
|
-
|
|
881
|
+
let dateConfig = this.$baseLodash.cloneDeep(
|
|
882
|
+
formRef.getFieldWidgetByType("date").options
|
|
883
|
+
);
|
|
884
|
+
tableColumns.forEach((t) => {
|
|
637
885
|
let columnOption;
|
|
638
886
|
let widget;
|
|
639
887
|
let columnWidgetConfig = this.getColumnWidgetConfig(t);
|
|
640
|
-
let {columnSelectedWidget, columnEditFields} = columnWidgetConfig;
|
|
888
|
+
let { columnSelectedWidget, columnEditFields } = columnWidgetConfig;
|
|
641
889
|
if (columnSelectedWidget) {
|
|
642
|
-
widget = columnSelectedWidget
|
|
890
|
+
widget = columnSelectedWidget;
|
|
643
891
|
columnOption = widget.options;
|
|
644
892
|
} else {
|
|
645
|
-
columnOption = {}
|
|
893
|
+
columnOption = {};
|
|
646
894
|
}
|
|
647
895
|
|
|
648
896
|
let col = {
|
|
@@ -651,7 +899,7 @@ export default {
|
|
|
651
899
|
title: t.label,
|
|
652
900
|
witdh: t.width,
|
|
653
901
|
sortable: t.sortable,
|
|
654
|
-
align: t.align ? t.align :
|
|
902
|
+
align: t.align ? t.align : "center",
|
|
655
903
|
formatter: this.formatterValue,
|
|
656
904
|
isMainFiled: mainFiled == t.prop,
|
|
657
905
|
showForRow: t.showForRow,
|
|
@@ -660,25 +908,25 @@ export default {
|
|
|
660
908
|
widget: widget,
|
|
661
909
|
formatS: t.formatS,
|
|
662
910
|
required: t.required || false,
|
|
663
|
-
columnConfig: t
|
|
911
|
+
columnConfig: t,
|
|
664
912
|
},
|
|
665
|
-
visible: t.show
|
|
913
|
+
visible: t.show,
|
|
666
914
|
};
|
|
667
915
|
|
|
668
|
-
if (t.formatS ==
|
|
669
|
-
let r = t.render ? new Function(
|
|
916
|
+
if (t.formatS == "render") {
|
|
917
|
+
let r = t.render ? new Function("params", "h", t.render) : null;
|
|
670
918
|
col.slots = {
|
|
671
919
|
default: (params, h) => {
|
|
672
|
-
return r ? r.call(this, params, h) :
|
|
673
|
-
}
|
|
920
|
+
return r ? r.call(this, params, h) : "";
|
|
921
|
+
},
|
|
674
922
|
};
|
|
675
923
|
} else if (columnSelectedWidget) {
|
|
676
924
|
col.slots = {
|
|
677
|
-
default:
|
|
925
|
+
default: "widget",
|
|
678
926
|
};
|
|
679
|
-
} else if ([
|
|
927
|
+
} else if (["editDelete", "editButton"].includes(t.formatS)) {
|
|
680
928
|
col.slots = {
|
|
681
|
-
default: t.formatS
|
|
929
|
+
default: t.formatS,
|
|
682
930
|
};
|
|
683
931
|
}
|
|
684
932
|
|
|
@@ -704,15 +952,16 @@ export default {
|
|
|
704
952
|
cache: !1,
|
|
705
953
|
get: function () {
|
|
706
954
|
return this.globalModel.formModel;
|
|
707
|
-
}
|
|
955
|
+
},
|
|
708
956
|
},
|
|
709
957
|
formDataId() {
|
|
710
958
|
let formRef = this.getFormRef();
|
|
711
959
|
return formRef.dataId;
|
|
712
|
-
}
|
|
960
|
+
},
|
|
713
961
|
},
|
|
714
962
|
created: function () {
|
|
715
|
-
if (!this.formModel[this.fieldKeyName])
|
|
963
|
+
if (!this.formModel[this.fieldKeyName])
|
|
964
|
+
this.formModel[this.fieldKeyName] = [];
|
|
716
965
|
this.initRefList();
|
|
717
966
|
this.handleOnCreated();
|
|
718
967
|
},
|
|
@@ -741,24 +990,24 @@ export default {
|
|
|
741
990
|
confirmAdvancedSearchDialog() {
|
|
742
991
|
let formModel = this.formModel;
|
|
743
992
|
let advancedFormData = this.advancedFormData;
|
|
744
|
-
this.vxeOption.searchColumns.forEach(form1Field => {
|
|
993
|
+
this.vxeOption.searchColumns.forEach((form1Field) => {
|
|
745
994
|
let value = formModel[form1Field.field];
|
|
746
995
|
if (value !== null && value !== undefined) {
|
|
747
|
-
advancedFormData[form1Field.field] = value
|
|
996
|
+
advancedFormData[form1Field.field] = value;
|
|
748
997
|
} else {
|
|
749
|
-
advancedFormData[form1Field.field] = null
|
|
998
|
+
advancedFormData[form1Field.field] = null;
|
|
750
999
|
}
|
|
751
1000
|
});
|
|
752
1001
|
this.searchEvent();
|
|
753
1002
|
},
|
|
754
1003
|
advancedClear() {
|
|
755
|
-
this.vxeOption.searchColumns.forEach(form1Field => {
|
|
756
|
-
let widgetRef = this.getWidgetRef(form1Field.widget.options.name)
|
|
1004
|
+
this.vxeOption.searchColumns.forEach((form1Field) => {
|
|
1005
|
+
let widgetRef = this.getWidgetRef(form1Field.widget.options.name);
|
|
757
1006
|
if (widgetRef && widgetRef.setValue) widgetRef.setValue(null);
|
|
758
1007
|
});
|
|
759
1008
|
},
|
|
760
1009
|
setValue(val) {
|
|
761
|
-
let rows = val || []
|
|
1010
|
+
let rows = val || [];
|
|
762
1011
|
this.formModel[this.fieldKeyName] = rows;
|
|
763
1012
|
this.fieldModel = rows;
|
|
764
1013
|
},
|
|
@@ -767,40 +1016,36 @@ export default {
|
|
|
767
1016
|
},
|
|
768
1017
|
getFieldKeyName(widget) {
|
|
769
1018
|
let o = widget.options.name;
|
|
770
|
-
return (
|
|
771
|
-
(widget.options.keyNameEnabled
|
|
772
|
-
&& widget.options.keyName)
|
|
773
|
-
|| o
|
|
774
|
-
);
|
|
1019
|
+
return (widget.options.keyNameEnabled && widget.options.keyName) || o;
|
|
775
1020
|
},
|
|
776
|
-
formatterValue: function ({cellValue, row, column}) {
|
|
1021
|
+
formatterValue: function ({ cellValue, row, column }) {
|
|
777
1022
|
if (cellValue === null || cellValue === undefined) return cellValue;
|
|
778
1023
|
|
|
779
1024
|
if (column.params && column.params.formatS)
|
|
780
1025
|
switch (column.params.formatS) {
|
|
781
|
-
case
|
|
1026
|
+
case "d1":
|
|
782
1027
|
return baseRefUtil.formatUtil.formatDate1(cellValue);
|
|
783
|
-
case
|
|
1028
|
+
case "d2":
|
|
784
1029
|
return baseRefUtil.formatUtil.formatDate2(cellValue);
|
|
785
|
-
case
|
|
1030
|
+
case "d3":
|
|
786
1031
|
return baseRefUtil.formatUtil.formatDate3(cellValue);
|
|
787
|
-
case
|
|
1032
|
+
case "d4":
|
|
788
1033
|
return baseRefUtil.formatUtil.formatDate4(cellValue);
|
|
789
|
-
case
|
|
1034
|
+
case "d5":
|
|
790
1035
|
return baseRefUtil.formatUtil.formatDate4(cellValue);
|
|
791
|
-
case
|
|
1036
|
+
case "n1":
|
|
792
1037
|
return baseRefUtil.formatUtil.formatNumber1(cellValue);
|
|
793
|
-
case
|
|
1038
|
+
case "n2":
|
|
794
1039
|
return baseRefUtil.formatUtil.formatNumber2(cellValue);
|
|
795
|
-
case
|
|
1040
|
+
case "n3":
|
|
796
1041
|
return baseRefUtil.formatUtil.formatNumber3(cellValue);
|
|
797
|
-
case
|
|
1042
|
+
case "n4":
|
|
798
1043
|
return baseRefUtil.formatUtil.formatNumber4(cellValue);
|
|
799
|
-
case
|
|
1044
|
+
case "n5":
|
|
800
1045
|
return baseRefUtil.formatUtil.formatNumber5(cellValue);
|
|
801
|
-
case
|
|
1046
|
+
case "n6":
|
|
802
1047
|
return baseRefUtil.formatUtil.formatNumber6(cellValue);
|
|
803
|
-
case
|
|
1048
|
+
case "n7":
|
|
804
1049
|
return baseRefUtil.formatUtil.formatNumber7(cellValue);
|
|
805
1050
|
}
|
|
806
1051
|
return cellValue;
|
|
@@ -812,20 +1057,23 @@ export default {
|
|
|
812
1057
|
async resetEvent() {
|
|
813
1058
|
let formData = this.formModel;
|
|
814
1059
|
this.keyword = null;
|
|
815
|
-
this.widget.widgetList &&
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
1060
|
+
this.widget.widgetList &&
|
|
1061
|
+
this.widget.widgetList.forEach((subWidget) => {
|
|
1062
|
+
let widgetRef = this.getWidgetRef(subWidget.options.name);
|
|
1063
|
+
let fieldKeyName = this.getFieldKeyName(subWidget);
|
|
1064
|
+
formData[fieldKeyName] = null;
|
|
1065
|
+
this.advancedFormData[fieldKeyName] = null;
|
|
1066
|
+
if (widgetRef && widgetRef.setValue) widgetRef.setValue(null);
|
|
1067
|
+
});
|
|
822
1068
|
// this.getGridTable().commitProxy('reload');
|
|
823
1069
|
this.loadAccessData();
|
|
824
1070
|
},
|
|
825
1071
|
openEditDialog(row) {
|
|
826
1072
|
let formRef = this.getFormRef();
|
|
827
1073
|
let parentTarget = formRef.$attrs["parent-target"];
|
|
828
|
-
parentTarget &&
|
|
1074
|
+
parentTarget &&
|
|
1075
|
+
parentTarget.$attrs.openEditDialog &&
|
|
1076
|
+
parentTarget.$attrs.openEditDialog(row);
|
|
829
1077
|
},
|
|
830
1078
|
initTableList() {
|
|
831
1079
|
let that = this;
|
|
@@ -845,7 +1093,7 @@ export default {
|
|
|
845
1093
|
path = this.getUrl();
|
|
846
1094
|
paramFun = () => {
|
|
847
1095
|
// let conditions = this.getSearchCondition();
|
|
848
|
-
let conditions = {keyword: this.keyword, ...this.advancedFormData};
|
|
1096
|
+
let conditions = { keyword: this.keyword, ...this.advancedFormData };
|
|
849
1097
|
if (this.widget.options.showPagination) {
|
|
850
1098
|
let searchCount = true;
|
|
851
1099
|
/*let isQueryAllPage = $grid.isQueryAllPage;
|
|
@@ -871,14 +1119,14 @@ export default {
|
|
|
871
1119
|
searchColumns = [];
|
|
872
1120
|
let widgetList = this.widget.widgetList;
|
|
873
1121
|
let typeMap = {
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
}
|
|
1122
|
+
input: "input",
|
|
1123
|
+
number: "number",
|
|
1124
|
+
inputBatch: "inputBatch",
|
|
1125
|
+
date: "date",
|
|
1126
|
+
};
|
|
879
1127
|
|
|
880
|
-
widgetList.forEach(widget => {
|
|
881
|
-
if (
|
|
1128
|
+
widgetList.forEach((widget) => {
|
|
1129
|
+
if ("container" !== widget.category) {
|
|
882
1130
|
let options = widget.options;
|
|
883
1131
|
let type = typeMap[widget.type] || null;
|
|
884
1132
|
searchColumns.push({
|
|
@@ -890,14 +1138,14 @@ export default {
|
|
|
890
1138
|
defaultValueEnabled: !!type,
|
|
891
1139
|
slot: options.name,
|
|
892
1140
|
widget: widget,
|
|
893
|
-
formItem: false
|
|
1141
|
+
formItem: false,
|
|
894
1142
|
});
|
|
895
1143
|
}
|
|
896
1144
|
});
|
|
897
1145
|
}
|
|
898
1146
|
|
|
899
1147
|
let formRef = this.getFormRef();
|
|
900
|
-
let dataTableConfig = formRef.$attrs.dataTableOption || {}
|
|
1148
|
+
let dataTableConfig = formRef.$attrs.dataTableOption || {};
|
|
901
1149
|
this.dataTableConfig = dataTableConfig;
|
|
902
1150
|
|
|
903
1151
|
let tableOption = {
|
|
@@ -913,27 +1161,30 @@ export default {
|
|
|
913
1161
|
/*pagerConfig: {
|
|
914
1162
|
autoHidden: !this.widget.options.showPagination
|
|
915
1163
|
},*/
|
|
916
|
-
...dataTableConfig.config
|
|
1164
|
+
...dataTableConfig.config,
|
|
917
1165
|
},
|
|
918
1166
|
exportAjax: (param) => {
|
|
919
1167
|
let $grid = this.getGridTable();
|
|
920
1168
|
let pageSize = param.size;
|
|
921
1169
|
let currentPage = param.current;
|
|
922
|
-
let page = {pageSize, currentPage};
|
|
923
|
-
return this.vxeOption.config.proxyConfig.ajax.query.call(this, {
|
|
924
|
-
|
|
1170
|
+
let page = { pageSize, currentPage };
|
|
1171
|
+
return this.vxeOption.config.proxyConfig.ajax.query.call(this, {
|
|
1172
|
+
page,
|
|
1173
|
+
param,
|
|
1174
|
+
});
|
|
1175
|
+
},
|
|
925
1176
|
};
|
|
926
1177
|
|
|
927
1178
|
if (isQueryTable) {
|
|
928
1179
|
tableOption.path = path;
|
|
929
1180
|
tableOption.config.proxyConfig = {
|
|
930
1181
|
props: {
|
|
931
|
-
result: isDataPage ?
|
|
932
|
-
total: isDataPage ?
|
|
1182
|
+
result: isDataPage ? "objx.records" : "objx", // 配置响应结果列表字段
|
|
1183
|
+
total: isDataPage ? "objx.total" : "objx.length", // 配置响应结果总页数字段
|
|
933
1184
|
},
|
|
934
1185
|
ajax: {
|
|
935
1186
|
// 接收 Promise 对象
|
|
936
|
-
query: ({page, sorts, filters, form, param}) => {
|
|
1187
|
+
query: ({ page, sorts, filters, form, param }) => {
|
|
937
1188
|
if (!path) {
|
|
938
1189
|
return;
|
|
939
1190
|
}
|
|
@@ -952,7 +1203,7 @@ export default {
|
|
|
952
1203
|
|
|
953
1204
|
// 处理筛选条件
|
|
954
1205
|
if (filters) {
|
|
955
|
-
filters.forEach(({property, values}) => {
|
|
1206
|
+
filters.forEach(({ property, values }) => {
|
|
956
1207
|
queryParams[property] = values.join(",");
|
|
957
1208
|
});
|
|
958
1209
|
}
|
|
@@ -968,23 +1219,31 @@ export default {
|
|
|
968
1219
|
if (isQueryAllPage === false) {
|
|
969
1220
|
queryParams.searchCount = false;
|
|
970
1221
|
}*/
|
|
971
|
-
Object.assign(queryParams, param)
|
|
1222
|
+
Object.assign(queryParams, param);
|
|
972
1223
|
|
|
973
1224
|
var reqPath = typeof path == "function" ? path() : path;
|
|
974
1225
|
|
|
975
1226
|
return new Promise((resolve, reject) => {
|
|
976
1227
|
let reqData = {
|
|
977
1228
|
formCode: formCode,
|
|
978
|
-
...queryParams
|
|
979
|
-
}
|
|
1229
|
+
...queryParams,
|
|
1230
|
+
};
|
|
980
1231
|
if (accessScript) {
|
|
981
1232
|
let index = 0;
|
|
982
1233
|
let toDo = () => {
|
|
983
|
-
let f = new Function(
|
|
1234
|
+
let f = new Function(
|
|
1235
|
+
"dataId",
|
|
1236
|
+
"formCode",
|
|
1237
|
+
"param",
|
|
1238
|
+
"done",
|
|
1239
|
+
accessScript
|
|
1240
|
+
);
|
|
984
1241
|
let done = (res) => {
|
|
985
1242
|
resolve(res);
|
|
986
1243
|
if (res.type == "success") {
|
|
987
|
-
let rows = res.objx
|
|
1244
|
+
let rows = res.objx
|
|
1245
|
+
? res.objx.records || res.objx || []
|
|
1246
|
+
: [];
|
|
988
1247
|
this.setValue(rows);
|
|
989
1248
|
if (res.objx && res.objx.records) {
|
|
990
1249
|
this.page = res.objx || {};
|
|
@@ -999,10 +1258,10 @@ export default {
|
|
|
999
1258
|
} else {
|
|
1000
1259
|
this.setValue([]);
|
|
1001
1260
|
}
|
|
1002
|
-
}
|
|
1261
|
+
};
|
|
1003
1262
|
let r = f.call(that, dataId, formCode, reqData, done);
|
|
1004
1263
|
if (r) {
|
|
1005
|
-
r.catch(error => {
|
|
1264
|
+
r.catch((error) => {
|
|
1006
1265
|
reject(error);
|
|
1007
1266
|
});
|
|
1008
1267
|
}
|
|
@@ -1019,7 +1278,7 @@ export default {
|
|
|
1019
1278
|
toDo();
|
|
1020
1279
|
}*/
|
|
1021
1280
|
toDo();
|
|
1022
|
-
}
|
|
1281
|
+
};
|
|
1023
1282
|
loopHandle();
|
|
1024
1283
|
} else {
|
|
1025
1284
|
resolve();
|
|
@@ -1090,13 +1349,13 @@ export default {
|
|
|
1090
1349
|
}
|
|
1091
1350
|
});*/
|
|
1092
1351
|
});
|
|
1093
|
-
}
|
|
1094
|
-
}
|
|
1352
|
+
},
|
|
1353
|
+
},
|
|
1095
1354
|
};
|
|
1096
1355
|
tableOption.callback = (rows) => {
|
|
1097
1356
|
// this.fieldModel = rows;
|
|
1098
|
-
this.formModel[this.fieldKeyName] = rows
|
|
1099
|
-
}
|
|
1357
|
+
this.formModel[this.fieldKeyName] = rows;
|
|
1358
|
+
};
|
|
1100
1359
|
}
|
|
1101
1360
|
this.vxeOption = tableOption;
|
|
1102
1361
|
this.loadAccessData();
|
|
@@ -1119,17 +1378,17 @@ export default {
|
|
|
1119
1378
|
let widgetList = this.widget.widgetList;
|
|
1120
1379
|
if (!!widgetList && widgetList.length > 0) {
|
|
1121
1380
|
let loop = (wItem) => {
|
|
1122
|
-
if (wItem.category ===
|
|
1381
|
+
if (wItem.category === "container") {
|
|
1123
1382
|
loop(wItem);
|
|
1124
1383
|
} else {
|
|
1125
1384
|
let formField = this.getFieldKeyName(wItem);
|
|
1126
1385
|
let vaule = formData[formField];
|
|
1127
|
-
if (vaule !== null && vaule !== undefined && vaule !==
|
|
1386
|
+
if (vaule !== null && vaule !== undefined && vaule !== "") {
|
|
1128
1387
|
map[formField] = vaule;
|
|
1129
1388
|
}
|
|
1130
1389
|
}
|
|
1131
1390
|
};
|
|
1132
|
-
widgetList.forEach(wItem => {
|
|
1391
|
+
widgetList.forEach((wItem) => {
|
|
1133
1392
|
loop(wItem);
|
|
1134
1393
|
});
|
|
1135
1394
|
}
|
|
@@ -1142,13 +1401,16 @@ export default {
|
|
|
1142
1401
|
param = param || {};
|
|
1143
1402
|
let pageSize = param.size || this.pageSize;
|
|
1144
1403
|
let currentPage = param.current || 1;
|
|
1145
|
-
let page = {pageSize, currentPage};
|
|
1146
|
-
return this.vxeOption.config.proxyConfig.ajax.query.call(this, {
|
|
1404
|
+
let page = { pageSize, currentPage };
|
|
1405
|
+
return this.vxeOption.config.proxyConfig.ajax.query.call(this, {
|
|
1406
|
+
page,
|
|
1407
|
+
param,
|
|
1408
|
+
});
|
|
1147
1409
|
},
|
|
1148
1410
|
loadAccessData() {
|
|
1149
1411
|
let isQueryTable = this.widget.options.isQueryTable || false;
|
|
1150
1412
|
if (isQueryTable) {
|
|
1151
|
-
this.loadTableData({})
|
|
1413
|
+
this.loadTableData({});
|
|
1152
1414
|
return;
|
|
1153
1415
|
}
|
|
1154
1416
|
if (!isQueryTable && !this.formDataId) return;
|
|
@@ -1156,15 +1418,21 @@ export default {
|
|
|
1156
1418
|
let accessScript = this.widget.options.accessScript;
|
|
1157
1419
|
let formCode = this.getFormRef().reportTemplate.formCode;
|
|
1158
1420
|
if (accessScript) {
|
|
1159
|
-
let f = new Function(
|
|
1421
|
+
let f = new Function(
|
|
1422
|
+
"dataId",
|
|
1423
|
+
"formCode",
|
|
1424
|
+
"param",
|
|
1425
|
+
"done",
|
|
1426
|
+
accessScript
|
|
1427
|
+
);
|
|
1160
1428
|
let toDo = (res) => {
|
|
1161
1429
|
let rows = res.objx ? res.objx.records || res.objx || [] : [];
|
|
1162
1430
|
// this.fieldModel = rows;
|
|
1163
|
-
this.formModel[this.fieldKeyName] = rows
|
|
1431
|
+
this.formModel[this.fieldKeyName] = rows;
|
|
1164
1432
|
this.fieldModel = rows;
|
|
1165
|
-
}
|
|
1433
|
+
};
|
|
1166
1434
|
|
|
1167
|
-
f.call(this, this.formDataId, formCode, null, toDo)
|
|
1435
|
+
f.call(this, this.formDataId, formCode, null, toDo);
|
|
1168
1436
|
}
|
|
1169
1437
|
|
|
1170
1438
|
/*this.scriptHttp({
|
|
@@ -1180,13 +1448,13 @@ export default {
|
|
|
1180
1448
|
let param = {};
|
|
1181
1449
|
if (item.accessParam) {
|
|
1182
1450
|
if (typeof item.accessParam === "string") {
|
|
1183
|
-
let n = new Function(
|
|
1451
|
+
let n = new Function("billData", item.accessParam);
|
|
1184
1452
|
param = n.call(this, billData);
|
|
1185
1453
|
} else {
|
|
1186
|
-
param = item.accessParam
|
|
1454
|
+
param = item.accessParam;
|
|
1187
1455
|
}
|
|
1188
1456
|
} else {
|
|
1189
|
-
param = {id: dataId}
|
|
1457
|
+
param = { id: dataId };
|
|
1190
1458
|
}
|
|
1191
1459
|
return param;
|
|
1192
1460
|
},
|
|
@@ -1194,10 +1462,12 @@ export default {
|
|
|
1194
1462
|
this.fieldModel.splice(rowIndex, 1);
|
|
1195
1463
|
},
|
|
1196
1464
|
createNewTableData() {
|
|
1197
|
-
let vailColumns = this.widget.options.tableColumns.filter(
|
|
1465
|
+
let vailColumns = this.widget.options.tableColumns.filter(
|
|
1466
|
+
(item) => item.prop && item.label
|
|
1467
|
+
);
|
|
1198
1468
|
let newData = {};
|
|
1199
|
-
vailColumns.forEach(item => {
|
|
1200
|
-
if (item.formatS ==
|
|
1469
|
+
vailColumns.forEach((item) => {
|
|
1470
|
+
if (item.formatS == "editSearch") {
|
|
1201
1471
|
newData[item.prop] = null;
|
|
1202
1472
|
let vabSearchName = item?.columnOption?.vabSearchName;
|
|
1203
1473
|
if (vabSearchName) newData[vabSearchName] = null;
|
|
@@ -1213,11 +1483,11 @@ export default {
|
|
|
1213
1483
|
let fullData = this.fieldModel;
|
|
1214
1484
|
let items;
|
|
1215
1485
|
if (field) {
|
|
1216
|
-
let keys = fullData.map(item => {
|
|
1486
|
+
let keys = fullData.map((item) => {
|
|
1217
1487
|
return item[field] + "";
|
|
1218
1488
|
});
|
|
1219
|
-
items = rows.filter(item => {
|
|
1220
|
-
let value = item[field] + ""
|
|
1489
|
+
items = rows.filter((item) => {
|
|
1490
|
+
let value = item[field] + "";
|
|
1221
1491
|
return !keys.includes(value);
|
|
1222
1492
|
});
|
|
1223
1493
|
} else {
|
|
@@ -1225,12 +1495,12 @@ export default {
|
|
|
1225
1495
|
}
|
|
1226
1496
|
if (items) {
|
|
1227
1497
|
if (items.length) {
|
|
1228
|
-
items.forEach(row => {
|
|
1498
|
+
items.forEach((row) => {
|
|
1229
1499
|
let newData = this.createNewTableData();
|
|
1230
1500
|
Object.assign(newData, row);
|
|
1231
1501
|
|
|
1232
1502
|
tableRows.push(newData);
|
|
1233
|
-
})
|
|
1503
|
+
});
|
|
1234
1504
|
}
|
|
1235
1505
|
} else {
|
|
1236
1506
|
let newData = this.createNewTableData();
|
|
@@ -1242,17 +1512,18 @@ export default {
|
|
|
1242
1512
|
},
|
|
1243
1513
|
getColumnWidgetConfig(row) {
|
|
1244
1514
|
let formRef = this.getFormRef();
|
|
1245
|
-
let formatS = row.formatS
|
|
1515
|
+
let formatS = row.formatS;
|
|
1246
1516
|
let columnSelectedWidget = null;
|
|
1247
1517
|
let columnEditFields = null;
|
|
1248
1518
|
|
|
1249
1519
|
let type = this.columnFormatMap[row.formatS];
|
|
1250
1520
|
|
|
1251
|
-
|
|
1252
1521
|
if (type) {
|
|
1253
|
-
columnSelectedWidget = this.$baseLodash.cloneDeep(
|
|
1522
|
+
columnSelectedWidget = this.$baseLodash.cloneDeep(
|
|
1523
|
+
formRef.getFieldWidgetByType(type)
|
|
1524
|
+
);
|
|
1254
1525
|
let tmpId = generateId();
|
|
1255
|
-
let idVal = row.prop ? row.prop :
|
|
1526
|
+
let idVal = row.prop ? row.prop : type + tmpId;
|
|
1256
1527
|
columnSelectedWidget.id = idVal;
|
|
1257
1528
|
columnSelectedWidget.options.name = idVal;
|
|
1258
1529
|
if (row.columnOption && Object.keys(row.columnOption).length) {
|
|
@@ -1266,24 +1537,42 @@ export default {
|
|
|
1266
1537
|
columnSelectedWidget.options.label = row.label;
|
|
1267
1538
|
columnSelectedWidget.options.labelHidden = true;
|
|
1268
1539
|
}
|
|
1269
|
-
return {columnSelectedWidget, columnEditFields};
|
|
1540
|
+
return { columnSelectedWidget, columnEditFields };
|
|
1270
1541
|
},
|
|
1271
1542
|
getColumnProp(widget, obj) {
|
|
1272
1543
|
let isQueryTable = this.widget.options.isQueryTable || false;
|
|
1273
1544
|
if (isQueryTable) {
|
|
1274
1545
|
return "false";
|
|
1275
1546
|
} else {
|
|
1276
|
-
let propName =
|
|
1547
|
+
let propName =
|
|
1548
|
+
this.getFieldKeyName(widget) +
|
|
1549
|
+
"." +
|
|
1550
|
+
obj.rowIndex +
|
|
1551
|
+
"." +
|
|
1552
|
+
obj.column.field;
|
|
1277
1553
|
if (this.isVabsearchFlagWidget(widget)) {
|
|
1278
1554
|
let vabSearchName = obj.column.params.widget.options.vabSearchName;
|
|
1279
|
-
propName =
|
|
1555
|
+
propName =
|
|
1556
|
+
this.getFieldKeyName(widget) +
|
|
1557
|
+
"." +
|
|
1558
|
+
obj.rowIndex +
|
|
1559
|
+
"." +
|
|
1560
|
+
vabSearchName;
|
|
1280
1561
|
}
|
|
1281
1562
|
return propName;
|
|
1282
1563
|
}
|
|
1283
1564
|
},
|
|
1565
|
+
isVabsearchFlagWidget(widget) {
|
|
1566
|
+
let type = widget?.type;
|
|
1567
|
+
return (
|
|
1568
|
+
type === "vabsearch" ||
|
|
1569
|
+
type === "singerSearch" ||
|
|
1570
|
+
type === "multiSearch"
|
|
1571
|
+
);
|
|
1572
|
+
},
|
|
1284
1573
|
getColumnWidgetName(e) {
|
|
1285
1574
|
if (e && e.type) {
|
|
1286
|
-
return e.type +
|
|
1575
|
+
return e.type + "-widget";
|
|
1287
1576
|
}
|
|
1288
1577
|
},
|
|
1289
1578
|
getGridTable() {
|
|
@@ -1295,8 +1584,8 @@ export default {
|
|
|
1295
1584
|
return tableRef;
|
|
1296
1585
|
},
|
|
1297
1586
|
getUrl() {
|
|
1298
|
-
let accessUrl = this.widget.options.accessUrl
|
|
1299
|
-
return accessUrl ||
|
|
1587
|
+
let accessUrl = this.widget.options.accessUrl;
|
|
1588
|
+
return accessUrl || USER_PREFIX + `/form_ins/getFormInsData`;
|
|
1300
1589
|
},
|
|
1301
1590
|
openRowDetailDialog(row) {
|
|
1302
1591
|
/*let isQueryTable = this.widget.options.isQueryTable || false;
|
|
@@ -1304,17 +1593,17 @@ export default {
|
|
|
1304
1593
|
this.editRow = row;
|
|
1305
1594
|
this.showRowDetailDialog = true;
|
|
1306
1595
|
},
|
|
1307
|
-
changePageNew({type, currentPage, pageSize, $event}) {
|
|
1596
|
+
changePageNew({ type, currentPage, pageSize, $event }) {
|
|
1308
1597
|
this.loadTableData({
|
|
1309
1598
|
size: pageSize + "",
|
|
1310
|
-
current: currentPage + ""
|
|
1311
|
-
})
|
|
1599
|
+
current: currentPage + "",
|
|
1600
|
+
});
|
|
1312
1601
|
},
|
|
1313
1602
|
exportData(option) {
|
|
1314
1603
|
let tableRef = this.getTableRef();
|
|
1315
1604
|
let serverName = this.getFormRef().reportTemplate.serverName;
|
|
1316
1605
|
option.prefix = option.prefix || serverName;
|
|
1317
|
-
this.$excelExport({targetRef: tableRef, ...option})
|
|
1606
|
+
this.$excelExport({ targetRef: tableRef, ...option });
|
|
1318
1607
|
},
|
|
1319
1608
|
itemCheck(row) {
|
|
1320
1609
|
let dataTableConfig = this.dataTableConfig;
|
|
@@ -1326,14 +1615,14 @@ export default {
|
|
|
1326
1615
|
checkItemIds.splice(checkItemIds.indexOf(row.id), 1);
|
|
1327
1616
|
} else {
|
|
1328
1617
|
checked = true;
|
|
1329
|
-
checkItemIds.push(row.id)
|
|
1618
|
+
checkItemIds.push(row.id);
|
|
1330
1619
|
}
|
|
1331
|
-
let param = {row, checked};
|
|
1332
|
-
dataTableConfig.onCheckboxChange &&
|
|
1620
|
+
let param = { row, checked };
|
|
1621
|
+
dataTableConfig.onCheckboxChange &&
|
|
1622
|
+
dataTableConfig.onCheckboxChange(param);
|
|
1333
1623
|
}
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
}
|
|
1624
|
+
},
|
|
1625
|
+
},
|
|
1337
1626
|
};
|
|
1338
1627
|
</script>
|
|
1339
1628
|
|