doway-coms 2.7.2 → 2.7.4
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
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
{{ moment(currentValue).format("YYYY-MM-DD") }}
|
|
40
40
|
</template>
|
|
41
41
|
<span @contextmenu.prevent="(event) => onContextmenu(event, currentValue)">
|
|
42
|
-
{{ moment(currentValue).format("YYYY-MM-DD") }}
|
|
42
|
+
{{ currentValue?moment(currentValue).format("YYYY-MM-DD"):currentValue }}
|
|
43
43
|
</span>
|
|
44
44
|
</Tooltip>
|
|
45
45
|
</div>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div :style="{ height: height
|
|
2
|
+
<div :style="{ height: height + 'px' }">
|
|
3
3
|
<div class="head-tag" v-if="tagData.length" ref="tagView">
|
|
4
4
|
<a-tag
|
|
5
5
|
closable
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
:data="rows"
|
|
79
79
|
:columns="internalColumns"
|
|
80
80
|
class="base-grid-view"
|
|
81
|
-
:height="
|
|
81
|
+
:height="height - tagHeight"
|
|
82
82
|
:maxHeight="expandHeight"
|
|
83
83
|
:show-footer="showFooter"
|
|
84
84
|
@scroll="bodyScroll"
|
|
@@ -170,6 +170,7 @@
|
|
|
170
170
|
<template #text_edit="scope">
|
|
171
171
|
<div class="interceptor-class">
|
|
172
172
|
<a-input
|
|
173
|
+
v-if="scope.column.params.controlEdit === true"
|
|
173
174
|
class="inner-cell-control"
|
|
174
175
|
size="small"
|
|
175
176
|
v-model="scope.row[scope.column.property]"
|
|
@@ -177,6 +178,9 @@
|
|
|
177
178
|
type="text"
|
|
178
179
|
:disabled="editDisabled(scope)"
|
|
179
180
|
/>
|
|
181
|
+
<div v-else>
|
|
182
|
+
{{ gridDefaultValueDisplay(scope.row, scope.column) }}
|
|
183
|
+
</div>
|
|
180
184
|
</div>
|
|
181
185
|
</template>
|
|
182
186
|
<template #checkbox_edit="scope">
|
|
@@ -411,7 +415,7 @@
|
|
|
411
415
|
</template>
|
|
412
416
|
<!-- 筛选过滤 -->
|
|
413
417
|
<template #text_filter="scope">
|
|
414
|
-
<div class="interceptor-class">
|
|
418
|
+
<div class="interceptor-filter-class">
|
|
415
419
|
<div
|
|
416
420
|
:class="scope.column.field + '_filter_' + $index"
|
|
417
421
|
v-for="(loopFilterValue, $index) in scope.column.filters[0].data
|
|
@@ -434,7 +438,7 @@
|
|
|
434
438
|
</div>
|
|
435
439
|
</template>
|
|
436
440
|
<template #customCell_filter="scope">
|
|
437
|
-
<div class="interceptor-class">
|
|
441
|
+
<div class="interceptor-filter-class">
|
|
438
442
|
<div
|
|
439
443
|
:class="scope.column.field + '_filter_' + $index"
|
|
440
444
|
v-for="(loopFilterValue, $index) in scope.column.filters[0].data
|
|
@@ -457,7 +461,7 @@
|
|
|
457
461
|
</div>
|
|
458
462
|
</template>
|
|
459
463
|
<template #pulldown_filter="scope">
|
|
460
|
-
<div class="interceptor-class">
|
|
464
|
+
<div class="interceptor-filter-class">
|
|
461
465
|
<div
|
|
462
466
|
:class="scope.column.field + '_filter_' + $index"
|
|
463
467
|
v-for="(loopFilterValue, $index) in scope.column.filters[0].data
|
|
@@ -480,7 +484,7 @@
|
|
|
480
484
|
</div>
|
|
481
485
|
</template>
|
|
482
486
|
<template #number_filter="scope">
|
|
483
|
-
<div class="interceptor-class">
|
|
487
|
+
<div class="interceptor-filter-class">
|
|
484
488
|
<div
|
|
485
489
|
:class="scope.column.field + '_filter_' + $index"
|
|
486
490
|
v-for="(loopFilterValue, $index) in scope.column.filters[0].data
|
|
@@ -510,7 +514,7 @@
|
|
|
510
514
|
</div>
|
|
511
515
|
</template>
|
|
512
516
|
<template #select_filter="scope">
|
|
513
|
-
<div class="interceptor-class">
|
|
517
|
+
<div class="interceptor-filter-class">
|
|
514
518
|
<a-checkbox-group
|
|
515
519
|
v-model="scope.column.filters[0].data.displayValues"
|
|
516
520
|
@keyup.enter.native="filterConfirm(scope.column)"
|
|
@@ -552,7 +556,7 @@
|
|
|
552
556
|
</div>
|
|
553
557
|
</template>
|
|
554
558
|
<template #multiSelect_filter="scope">
|
|
555
|
-
<div class="interceptor-class">
|
|
559
|
+
<div class="interceptor-filter-class">
|
|
556
560
|
<a-checkbox-group
|
|
557
561
|
v-model="scope.column.filters[0].data.displayValues"
|
|
558
562
|
@keyup.enter.native="filterConfirm(scope.column)"
|
|
@@ -594,7 +598,7 @@
|
|
|
594
598
|
</div>
|
|
595
599
|
</template>
|
|
596
600
|
<template #checkbox_filter="scope">
|
|
597
|
-
<div class="interceptor-class">
|
|
601
|
+
<div class="interceptor-filter-class">
|
|
598
602
|
<a-checkbox-group
|
|
599
603
|
v-model="scope.column.filters[0].data.displayValues"
|
|
600
604
|
@keyup.enter.native="filterConfirm(scope.column)"
|
|
@@ -628,7 +632,7 @@
|
|
|
628
632
|
</div>
|
|
629
633
|
</template>
|
|
630
634
|
<template #datetime_filter="scope">
|
|
631
|
-
<div class="interceptor-class">
|
|
635
|
+
<div class="interceptor-filter-class">
|
|
632
636
|
<div
|
|
633
637
|
:class="scope.column.field + '_filter_' + $index"
|
|
634
638
|
v-for="(loopFilterValue, $index) in scope.column.filters[0].data
|
|
@@ -672,7 +676,7 @@
|
|
|
672
676
|
</div>
|
|
673
677
|
</template>
|
|
674
678
|
<template #date_filter="scope">
|
|
675
|
-
<div class="interceptor-class">
|
|
679
|
+
<div class="interceptor-filter-class">
|
|
676
680
|
<div
|
|
677
681
|
:class="scope.column.field + '_filter_' + $index"
|
|
678
682
|
v-for="(loopFilterValue, $index) in scope.column.filters[0].data
|
|
@@ -1311,7 +1315,10 @@ export default {
|
|
|
1311
1315
|
this.$refs.baseGrid.clearRowExpand()
|
|
1312
1316
|
},
|
|
1313
1317
|
tagChange() {
|
|
1314
|
-
if (!this.$refs.tagView)
|
|
1318
|
+
if (!this.$refs.tagView) {
|
|
1319
|
+
this.tagHeight = 0
|
|
1320
|
+
return
|
|
1321
|
+
}
|
|
1315
1322
|
this.tagHeight = this.$refs.tagView.offsetHeight
|
|
1316
1323
|
},
|
|
1317
1324
|
// 取消当前字段筛选
|
|
@@ -2841,27 +2848,29 @@ export default {
|
|
|
2841
2848
|
return footerData
|
|
2842
2849
|
}else{
|
|
2843
2850
|
if (this.footerSum.length > 0) {
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
if (this.footerSum.includes(column.property)) {
|
|
2850
|
-
let tempSumVal = XEUtils.sum(data, column.property)
|
|
2851
|
-
if (
|
|
2852
|
-
column.formatter &&
|
|
2853
|
-
column.formatter !== 'defaultFormat' &&
|
|
2854
|
-
VXETable.formats.store[column.formatter]
|
|
2855
|
-
) {
|
|
2856
|
-
tempSumVal = VXETable.formats.store[column.formatter]({
|
|
2857
|
-
cellValue: tempSumVal,
|
|
2858
|
-
})
|
|
2851
|
+
if (this.footerSum.length > 0) {
|
|
2852
|
+
let tempResult = [
|
|
2853
|
+
columns.map((column, columnIndex) => {
|
|
2854
|
+
if (columnIndex === 0) {
|
|
2855
|
+
return '合计'
|
|
2859
2856
|
}
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2857
|
+
if (this.footerSum.includes(column.property)) {
|
|
2858
|
+
let tempSumVal = XEUtils.sum(data, column.property)
|
|
2859
|
+
if (
|
|
2860
|
+
column.formatter &&
|
|
2861
|
+
column.formatter !== 'defaultFormat' &&
|
|
2862
|
+
VXETable.formats.store[column.formatter]
|
|
2863
|
+
) {
|
|
2864
|
+
tempSumVal = VXETable.formats.store[column.formatter]({
|
|
2865
|
+
cellValue: tempSumVal,
|
|
2866
|
+
})
|
|
2867
|
+
}
|
|
2868
|
+
return tempSumVal
|
|
2869
|
+
}
|
|
2870
|
+
return null
|
|
2871
|
+
}),
|
|
2872
|
+
]
|
|
2873
|
+
return tempResult
|
|
2865
2874
|
} else {
|
|
2866
2875
|
return []
|
|
2867
2876
|
}
|
|
@@ -3669,7 +3678,15 @@ export default {
|
|
|
3669
3678
|
}
|
|
3670
3679
|
|
|
3671
3680
|
.interceptor-class {
|
|
3672
|
-
|
|
3681
|
+
::v-deep .ant-btn {
|
|
3682
|
+
margin: 10px 10px 0;
|
|
3683
|
+
}
|
|
3684
|
+
::v-deep .ant-calendar-picker {
|
|
3685
|
+
margin: 0 5px;
|
|
3686
|
+
}
|
|
3687
|
+
}
|
|
3688
|
+
.interceptor-filter-class {
|
|
3689
|
+
padding: 10px;
|
|
3673
3690
|
::v-deep .ant-btn {
|
|
3674
3691
|
margin: 10px 10px 0;
|
|
3675
3692
|
}
|