doway-coms 2.2.4 → 2.2.6
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
|
@@ -393,7 +393,6 @@
|
|
|
393
393
|
</a-col>
|
|
394
394
|
</a-row>
|
|
395
395
|
</template>
|
|
396
|
-
|
|
397
396
|
<!-- 筛选过滤 -->
|
|
398
397
|
<template #text_filter="scope">
|
|
399
398
|
<div class="interceptor-class">
|
|
@@ -1218,6 +1217,10 @@ export default {
|
|
|
1218
1217
|
})
|
|
1219
1218
|
},
|
|
1220
1219
|
methods: {
|
|
1220
|
+
// 关闭所有展开行
|
|
1221
|
+
closeAllExpand() {
|
|
1222
|
+
this.$refs.baseGrid.clearRowExpand()
|
|
1223
|
+
},
|
|
1221
1224
|
tagChange() {
|
|
1222
1225
|
if (!this.$refs.tagView) return
|
|
1223
1226
|
this.tagHeight = this.$refs.tagView.offsetHeight
|
|
@@ -2015,17 +2018,17 @@ export default {
|
|
|
2015
2018
|
XEUtils.arrayEach(sortList, (loopSort) => {
|
|
2016
2019
|
tempSortList.push([loopSort.field, loopSort.order])
|
|
2017
2020
|
})
|
|
2018
|
-
this.$emit('sortChange', tempSortList)
|
|
2021
|
+
this.$emit('sortChange', tempSortList, this.filterExpression)
|
|
2019
2022
|
}
|
|
2020
2023
|
},
|
|
2021
2024
|
currentChange(scope) {
|
|
2022
2025
|
this.$emit('currentChange', scope.row)
|
|
2023
2026
|
},
|
|
2024
2027
|
pageSizeChange(page, pageSize) {
|
|
2025
|
-
this.$emit('pageSizeChange', page, pageSize)
|
|
2028
|
+
this.$emit('pageSizeChange', page, pageSize, this.filterExpression)
|
|
2026
2029
|
},
|
|
2027
2030
|
pageChange(page, pageSize) {
|
|
2028
|
-
this.$emit('pageChange', page, pageSize)
|
|
2031
|
+
this.$emit('pageChange', page, pageSize, this.filterExpression)
|
|
2029
2032
|
},
|
|
2030
2033
|
getCheckboxRecords() {
|
|
2031
2034
|
return this.$refs.baseGrid.getCheckboxRecords(true)
|
|
@@ -2908,7 +2911,7 @@ export default {
|
|
|
2908
2911
|
//设置筛选过滤条件
|
|
2909
2912
|
this.setFilterExpression()
|
|
2910
2913
|
//通知外部筛选改变事件
|
|
2911
|
-
this.$emit('filterChange', { filterCol: colInfo })
|
|
2914
|
+
this.$emit('filterChange', { filterCol: colInfo }, this.filterExpression)
|
|
2912
2915
|
} else {
|
|
2913
2916
|
// 手动触发重新筛选filterMethod()方法
|
|
2914
2917
|
this.$refs.baseGrid.updateData()
|
|
@@ -3069,6 +3072,8 @@ export default {
|
|
|
3069
3072
|
this.toolBarConfig.enabled = this.filterExpression.length > 0
|
|
3070
3073
|
},
|
|
3071
3074
|
filterVisible({ column, visible }) {
|
|
3075
|
+
// 筛选前关闭所有展开行
|
|
3076
|
+
this.closeAllExpand()
|
|
3072
3077
|
if (visible) {
|
|
3073
3078
|
//重新赋值过滤的显示值
|
|
3074
3079
|
column.filters[0].data.displayValues = []
|
|
@@ -463,6 +463,9 @@ export function gridDefaultValueDisplay(rowInfo,colInfo){
|
|
|
463
463
|
if(colInfo.params.doRound){
|
|
464
464
|
displayValue=XEUtils.round(displayValue,colInfo.params.precision)
|
|
465
465
|
}
|
|
466
|
+
if(colInfo.params.percent){
|
|
467
|
+
displayValue=XEUtils.round(displayValue*100,colInfo.params.precision)+'%'
|
|
468
|
+
}
|
|
466
469
|
break
|
|
467
470
|
|
|
468
471
|
}
|