cloud-web-corejs 1.0.54-dev.402 → 1.0.54-dev.404
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
CHANGED
|
@@ -57,12 +57,18 @@ modules = {
|
|
|
57
57
|
$table,
|
|
58
58
|
column,
|
|
59
59
|
});
|
|
60
|
+
let sortValue = cellValue
|
|
61
|
+
let sortField = column.params?.sortField;
|
|
62
|
+
if(sortField){
|
|
63
|
+
sortValue = row[sortField]??null;
|
|
64
|
+
}
|
|
60
65
|
if (lsm[cellValue]) {
|
|
61
66
|
lsm[cellValue].count = lsm[cellValue].count + 1;
|
|
62
67
|
} else {
|
|
63
68
|
lsm[cellValue] = {
|
|
64
69
|
checked: !option.data.hasFilter || vals.includes(cellValue),
|
|
65
70
|
value: cellValue,
|
|
71
|
+
sortValue: sortValue,
|
|
66
72
|
count: 1,
|
|
67
73
|
};
|
|
68
74
|
}
|
|
@@ -70,7 +76,7 @@ modules = {
|
|
|
70
76
|
for (let key in lsm) {
|
|
71
77
|
colValList.push(lsm[key]);
|
|
72
78
|
}
|
|
73
|
-
colValList = this.sortByField(colValList, "
|
|
79
|
+
colValList = this.sortByField(colValList, "sortValue");
|
|
74
80
|
|
|
75
81
|
const columnsArr = [];
|
|
76
82
|
|
|
@@ -194,43 +200,17 @@ modules = {
|
|
|
194
200
|
this.resetFilterEvent();
|
|
195
201
|
return;
|
|
196
202
|
}
|
|
197
|
-
|
|
198
203
|
data.vals = vals;
|
|
199
204
|
option.data.hasFilter = true;
|
|
200
205
|
$panel.changeOption(evnt, true, option);
|
|
201
206
|
$panel.confirmFilter();
|
|
202
|
-
|
|
203
|
-
let checkStrictly =
|
|
204
|
-
$table.$options.propsData?.checkboxConfig?.checkStrictly;
|
|
205
|
-
// $table.setAllCheckboxRow(false);
|
|
206
|
-
this.clearTableCheckboxRow($table);
|
|
207
|
-
},
|
|
208
|
-
clearTableCheckboxRow($table) {
|
|
209
|
-
let originOption = $table.$xegrid?.originOption;
|
|
210
|
-
if (originOption) {
|
|
211
|
-
let target = originOption.vue;
|
|
212
|
-
if (
|
|
213
|
-
target.defaultTableRefName === originOption.tableRef &&
|
|
214
|
-
target._clearChecked
|
|
215
|
-
) {
|
|
216
|
-
target._clearChecked();
|
|
217
|
-
} else {
|
|
218
|
-
$table.clearCheckboxRow();
|
|
219
|
-
}
|
|
220
|
-
originOption.onFilter && originOption.onFilter();
|
|
221
|
-
} else {
|
|
222
|
-
$table.clearCheckboxRow();
|
|
223
|
-
}
|
|
207
|
+
$table.setAllCheckboxRow(false);
|
|
224
208
|
},
|
|
225
209
|
resetFilterEvent() {
|
|
226
210
|
const { $panel, $table } = this.params;
|
|
227
|
-
let checkStrictly =
|
|
228
|
-
$table.$options.propsData?.checkboxConfig?.checkStrictly;
|
|
229
211
|
this.option.data.hasFilter = false;
|
|
230
212
|
$panel.resetFilter();
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
this.clearTableCheckboxRow($table);
|
|
213
|
+
$table.setAllCheckboxRow(false);
|
|
234
214
|
},
|
|
235
215
|
},
|
|
236
216
|
},
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
v-model="formData.dateRange"
|
|
7
7
|
@change="handleSelectChange"
|
|
8
8
|
clearable
|
|
9
|
+
style="width: 128px !important"
|
|
9
10
|
>
|
|
10
11
|
<el-option :label="$t1('本日')" :value="1"></el-option>
|
|
11
12
|
<el-option :label="$t1('本周')" :value="2"></el-option>
|
|
@@ -19,6 +20,7 @@
|
|
|
19
20
|
clearable
|
|
20
21
|
@clear="formData.stat = null"
|
|
21
22
|
@change="handleSelectChange"
|
|
23
|
+
style="width: 128px !important"
|
|
22
24
|
>
|
|
23
25
|
<el-option
|
|
24
26
|
:label="$t2('审核中', 'components.wf.wfStatus1')"
|
|
@@ -33,7 +35,26 @@
|
|
|
33
35
|
:value="3"
|
|
34
36
|
></el-option>
|
|
35
37
|
</el-select>
|
|
36
|
-
<el-
|
|
38
|
+
<el-select
|
|
39
|
+
class="f-btn"
|
|
40
|
+
v-model="formData.objTypeCode"
|
|
41
|
+
:placeholder="$t1('流程类型')"
|
|
42
|
+
clearable
|
|
43
|
+
@change="handleSelectChange"
|
|
44
|
+
style="width: 128px !important"
|
|
45
|
+
>
|
|
46
|
+
<el-option
|
|
47
|
+
v-for="(item, index) in objTypeList"
|
|
48
|
+
:key="index"
|
|
49
|
+
:label="item.objTypeName"
|
|
50
|
+
:value="item.objTypeCode"
|
|
51
|
+
></el-option>
|
|
52
|
+
</el-select>
|
|
53
|
+
<el-input
|
|
54
|
+
v-model="formData.name"
|
|
55
|
+
placeholder="流程主题"
|
|
56
|
+
style="width: 128px !important"
|
|
57
|
+
></el-input>
|
|
37
58
|
<span class="button-sty">
|
|
38
59
|
<el-date-picker
|
|
39
60
|
v-model="formData.startStartTime"
|
|
@@ -43,6 +64,7 @@
|
|
|
43
64
|
clearable
|
|
44
65
|
value-format="yyyy-MM-dd"
|
|
45
66
|
:picker-options="$baseStartPickerOptions(formData.endStartTime)"
|
|
67
|
+
style="width: 128px !important"
|
|
46
68
|
></el-date-picker>
|
|
47
69
|
<span>-</span>
|
|
48
70
|
<el-date-picker
|
|
@@ -53,6 +75,7 @@
|
|
|
53
75
|
clearable
|
|
54
76
|
value-format="yyyy-MM-dd"
|
|
55
77
|
:picker-options="$baseEndPickerOptions(formData.startStartTime)"
|
|
78
|
+
style="width: 128px !important"
|
|
56
79
|
></el-date-picker>
|
|
57
80
|
</span>
|
|
58
81
|
<span class="button-sty">
|
|
@@ -64,6 +87,7 @@
|
|
|
64
87
|
clearable
|
|
65
88
|
value-format="yyyy-MM-dd"
|
|
66
89
|
:picker-options="$baseStartPickerOptions(formData.endEndTime)"
|
|
90
|
+
style="width: 128px !important"
|
|
67
91
|
></el-date-picker>
|
|
68
92
|
<span>-</span>
|
|
69
93
|
<el-date-picker
|
|
@@ -74,8 +98,18 @@
|
|
|
74
98
|
clearable
|
|
75
99
|
value-format="yyyy-MM-dd"
|
|
76
100
|
:picker-options="$baseEndPickerOptions(formData.startEndTime)"
|
|
101
|
+
style="width: 128px !important"
|
|
77
102
|
></el-date-picker>
|
|
78
103
|
</span>
|
|
104
|
+
<el-button
|
|
105
|
+
type="primary"
|
|
106
|
+
plain
|
|
107
|
+
class="button-sty"
|
|
108
|
+
@click="resetEvent"
|
|
109
|
+
icon="el-icon-brush"
|
|
110
|
+
>
|
|
111
|
+
{{ $t1("重置") }}
|
|
112
|
+
</el-button>
|
|
79
113
|
<el-button
|
|
80
114
|
type="warning"
|
|
81
115
|
size="small"
|
|
@@ -124,7 +158,29 @@
|
|
|
124
158
|
<span>流程详情列表</span>
|
|
125
159
|
</div>
|
|
126
160
|
<div style="height: 100%">
|
|
127
|
-
<vxe-grid ref="table-m1" v-bind="vxeOption" :data="tableData">
|
|
161
|
+
<vxe-grid ref="table-m1" v-bind="vxeOption" :data="tableData">
|
|
162
|
+
<template #form>
|
|
163
|
+
<div class="clearfix screen-btns">
|
|
164
|
+
<div class="fl">
|
|
165
|
+
<base-table-export
|
|
166
|
+
:option="{
|
|
167
|
+
title: $t1('流程处理耗用时间查询'),
|
|
168
|
+
targetRef: 'table-m1',
|
|
169
|
+
}"
|
|
170
|
+
:parent-target="_self"
|
|
171
|
+
/>
|
|
172
|
+
</div>
|
|
173
|
+
<div class="fr">
|
|
174
|
+
<!-- <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
|
|
175
|
+
plain>{{ $t1('重置') }}
|
|
176
|
+
</vxe-button>
|
|
177
|
+
<vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
|
|
178
|
+
{{ $t1('搜索') }}
|
|
179
|
+
</vxe-button> -->
|
|
180
|
+
</div>
|
|
181
|
+
</div>
|
|
182
|
+
</template>
|
|
183
|
+
</vxe-grid>
|
|
128
184
|
</div>
|
|
129
185
|
</el-card>
|
|
130
186
|
</el-col>
|
|
@@ -169,14 +225,23 @@
|
|
|
169
225
|
</el-card>
|
|
170
226
|
</el-col>
|
|
171
227
|
</el-row>
|
|
228
|
+
<wfContentDialog
|
|
229
|
+
v-if="showWfDialog"
|
|
230
|
+
:visible.sync="showWfDialog"
|
|
231
|
+
:option.sync="wfContentOption"
|
|
232
|
+
></wfContentDialog>
|
|
172
233
|
</div>
|
|
173
234
|
</template>
|
|
174
235
|
|
|
175
236
|
<script>
|
|
176
237
|
import scriptHttpMixin from "@base/components/xform/mixins/scriptHttp";
|
|
238
|
+
import wfContentDialog from "@base/views/user/wf/wf_manage/wfContentDialog";
|
|
177
239
|
export default {
|
|
178
240
|
name: "wf_report:index",
|
|
179
241
|
mixins: [scriptHttpMixin],
|
|
242
|
+
components: {
|
|
243
|
+
wfContentDialog,
|
|
244
|
+
},
|
|
180
245
|
data() {
|
|
181
246
|
return {
|
|
182
247
|
vxeOption: {},
|
|
@@ -224,16 +289,33 @@ export default {
|
|
|
224
289
|
dateRange: 3,
|
|
225
290
|
stat: null,
|
|
226
291
|
},
|
|
292
|
+
objTypeList: [],
|
|
293
|
+
|
|
294
|
+
showWfDialog: false,
|
|
295
|
+
wfContentOption: {},
|
|
227
296
|
};
|
|
228
297
|
},
|
|
229
298
|
mounted() {
|
|
299
|
+
this.initObjTypeList();
|
|
230
300
|
this.initTableList();
|
|
231
301
|
this.loadWfSummaryCount();
|
|
232
302
|
},
|
|
233
303
|
methods: {
|
|
304
|
+
openWfDialog(row) {
|
|
305
|
+
this.wfContentOption = {
|
|
306
|
+
objId: row.obj_id,
|
|
307
|
+
url: row.url,
|
|
308
|
+
objTypeCode: row.obj_type_code,
|
|
309
|
+
};
|
|
310
|
+
this.showWfDialog = true;
|
|
311
|
+
},
|
|
234
312
|
searchEvent() {
|
|
235
313
|
this.$refs["table-m1"].commitProxy("reload");
|
|
236
314
|
},
|
|
315
|
+
resetEvent() {
|
|
316
|
+
this.formData = {};
|
|
317
|
+
this.$refs["table-m1"].commitProxy("reload");
|
|
318
|
+
},
|
|
237
319
|
initTableList() {
|
|
238
320
|
let that = this;
|
|
239
321
|
let formCode = this.$route.query.formCode;
|
|
@@ -327,8 +409,10 @@ export default {
|
|
|
327
409
|
},
|
|
328
410
|
},
|
|
329
411
|
},
|
|
412
|
+
{ field: "approver_num", title: "审批总人数", width: 180 },
|
|
413
|
+
{ field: "node_num", title: "审批节点数量", width: 180 },
|
|
330
414
|
{
|
|
331
|
-
width:
|
|
415
|
+
width: 90,
|
|
332
416
|
fixed: "right",
|
|
333
417
|
title: "",
|
|
334
418
|
sortable: false,
|
|
@@ -352,6 +436,23 @@ export default {
|
|
|
352
436
|
<i class="iconfont icon-dianji" />
|
|
353
437
|
</el-tooltip>
|
|
354
438
|
</a>,
|
|
439
|
+
<a
|
|
440
|
+
href="javascript:void(0);"
|
|
441
|
+
class="a-link"
|
|
442
|
+
onclick={() => {
|
|
443
|
+
this.openWfDialog(row);
|
|
444
|
+
}}
|
|
445
|
+
>
|
|
446
|
+
<el-tooltip
|
|
447
|
+
enterable={false}
|
|
448
|
+
effect="dark"
|
|
449
|
+
content={this.$t1("查看")}
|
|
450
|
+
placement="top"
|
|
451
|
+
popper-class="tooltip-skin"
|
|
452
|
+
>
|
|
453
|
+
<i class="el-icon-edit" />
|
|
454
|
+
</el-tooltip>
|
|
455
|
+
</a>,
|
|
355
456
|
];
|
|
356
457
|
},
|
|
357
458
|
},
|
|
@@ -402,6 +503,18 @@ export default {
|
|
|
402
503
|
this.searchEvent();
|
|
403
504
|
this.clearWfSummaryNode();
|
|
404
505
|
},
|
|
506
|
+
initObjTypeList() {
|
|
507
|
+
this.$http({
|
|
508
|
+
url: `/${this.serviceName}/wf_info/listGroupPage`,
|
|
509
|
+
method: "post",
|
|
510
|
+
data: {
|
|
511
|
+
type: 0,
|
|
512
|
+
},
|
|
513
|
+
success: (res) => {
|
|
514
|
+
this.objTypeList = res?.objx?.records || [];
|
|
515
|
+
},
|
|
516
|
+
});
|
|
517
|
+
},
|
|
405
518
|
},
|
|
406
519
|
};
|
|
407
520
|
</script>
|
|
@@ -413,7 +526,7 @@ export default {
|
|
|
413
526
|
}
|
|
414
527
|
.filter-btns {
|
|
415
528
|
.f-btn {
|
|
416
|
-
margin-right:
|
|
529
|
+
margin-right: 25px;
|
|
417
530
|
}
|
|
418
531
|
}
|
|
419
532
|
.sum-statistics {
|