doway-coms 2.11.30 → 2.11.31
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
|
@@ -147,6 +147,7 @@ export default {
|
|
|
147
147
|
}
|
|
148
148
|
const column = {
|
|
149
149
|
currentKey: item.currentKey,
|
|
150
|
+
type:item.type,
|
|
150
151
|
field: item.field,
|
|
151
152
|
title: item.title,
|
|
152
153
|
visible: item.visible,
|
|
@@ -154,6 +155,7 @@ export default {
|
|
|
154
155
|
width: item.width,
|
|
155
156
|
filters: item.filters,
|
|
156
157
|
order: item.order,
|
|
158
|
+
fixed:item.fixed
|
|
157
159
|
}
|
|
158
160
|
this.columns.push(column);
|
|
159
161
|
})
|
|
@@ -219,6 +221,9 @@ export default {
|
|
|
219
221
|
width: tempObject.width,
|
|
220
222
|
extraInfo:{}
|
|
221
223
|
}
|
|
224
|
+
if(tempObject.fixed){//设置固定列20250407 davis添加
|
|
225
|
+
tempData.extraInfo.fixed = tempObject.fixed
|
|
226
|
+
}
|
|
222
227
|
if (tempObject.filters && tempObject.filters[0].data && tempObject.filters[0].data.bindingValues.length) {
|
|
223
228
|
tempObject.filters[0].checked = true;
|
|
224
229
|
tempData.extraInfo.filterExpression = tempObject.filters
|
|
@@ -2659,11 +2659,21 @@ export default {
|
|
|
2659
2659
|
let tableCollectColumn = XEUtils.toTreeArray(
|
|
2660
2660
|
this.$refs.baseGrid.getTableColumn().collectColumn
|
|
2661
2661
|
)
|
|
2662
|
+
let tempColumns = []
|
|
2663
|
+
//先查询固定列左边的
|
|
2664
|
+
let leftColumns =XEUtils.orderBy(XEUtils.filter(tableCollectColumn,p=>p.fixed==='left'),p=>p.sortNumber)
|
|
2665
|
+
//然后查询不是固定列的
|
|
2666
|
+
let commonColumns =XEUtils.orderBy(XEUtils.filter(tableCollectColumn,p=>p.fixed!=='left' && p.fixed!=='right'),p=>p.sortNumber)
|
|
2667
|
+
//最后再试固定列右边
|
|
2668
|
+
let rightColumns =XEUtils.orderBy(XEUtils.filter(tableCollectColumn,p=>p.fixed==='right'),p=>p.sortNumber)
|
|
2669
|
+
|
|
2670
|
+
tempColumns = [...leftColumns,...commonColumns,...rightColumns]
|
|
2671
|
+
// console.debug('tableCollectColumn',tempColumns)
|
|
2662
2672
|
if (this.isSeqPopover) {
|
|
2663
|
-
this.userDefineColumns =
|
|
2673
|
+
this.userDefineColumns = tempColumns
|
|
2664
2674
|
} else {
|
|
2665
2675
|
this.userDefineColumns = XEUtils.filter(
|
|
2666
|
-
|
|
2676
|
+
tempColumns,
|
|
2667
2677
|
(p) =>
|
|
2668
2678
|
!p.children &&
|
|
2669
2679
|
p.params.disableUserVisible !== true &&
|