agilebuilder-ui 1.0.90-tmp20 → 1.0.90-tmp21
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
|
@@ -1494,23 +1494,31 @@ const apis = {
|
|
|
1494
1494
|
// console.log('dynamicControlTableEdit----gridParams.options.customRules333-----', gridParams.options.customRules)
|
|
1495
1495
|
},
|
|
1496
1496
|
doLayout(hiddenColumns, listCode) {
|
|
1497
|
+
if(!listCode){
|
|
1498
|
+
listCode = this.code
|
|
1499
|
+
}
|
|
1500
|
+
const gridParams = store.get(listCode)
|
|
1501
|
+
const orgHiddenColumns = gridParams.hiddenColumns
|
|
1502
|
+
console.log('doLayout----orgHiddenColumns=', orgHiddenColumns)
|
|
1497
1503
|
if(hiddenColumns && hiddenColumns.length > 0){
|
|
1498
|
-
|
|
1499
|
-
|
|
1504
|
+
let hiddenColumnsResult = orgHiddenColumns
|
|
1505
|
+
if(!hiddenColumnsResult){
|
|
1506
|
+
hiddenColumnsResult = []
|
|
1500
1507
|
}
|
|
1501
|
-
if(
|
|
1502
|
-
|
|
1508
|
+
if(hiddenColumnsResult.length === 0){
|
|
1509
|
+
hiddenColumnsResult = hiddenColumns
|
|
1503
1510
|
} else {
|
|
1504
1511
|
hiddenColumns.forEach(prop=>{
|
|
1505
|
-
if(
|
|
1512
|
+
if(hiddenColumnsResult.indexOf(prop) < 0) {
|
|
1506
1513
|
// 去重处理
|
|
1507
|
-
|
|
1514
|
+
hiddenColumnsResult.push(prop)
|
|
1508
1515
|
}
|
|
1509
1516
|
})
|
|
1510
1517
|
}
|
|
1518
|
+
console.log('doLayout----hiddenColumnsResult=', hiddenColumnsResult)
|
|
1519
|
+
this.options.hiddenColumns = hiddenColumnsResult
|
|
1511
1520
|
} else {
|
|
1512
|
-
|
|
1513
|
-
this.options.hiddenColumns = gridParams.options.hiddenColumns
|
|
1521
|
+
this.options.hiddenColumns = orgHiddenColumns
|
|
1514
1522
|
}
|
|
1515
1523
|
if (this.$refs && this.$refs.superGrid) {
|
|
1516
1524
|
this.$refs.superGrid.doLayout()
|
|
@@ -176,6 +176,7 @@ const superGridService = {
|
|
|
176
176
|
gridParams.pagination = this.pagination
|
|
177
177
|
gridParams.pageContext = this.pageContext
|
|
178
178
|
gridParams.configureObj = this.configureObj
|
|
179
|
+
gridParams.hiddenColumns = this.options.hiddenColumns?JSON.parse(JSON.stringify(this.options.hiddenColumns)):[]
|
|
179
180
|
if (this.pagination) {
|
|
180
181
|
// 监控每行显示多少条变量使用
|
|
181
182
|
this.pageSize = this.pagination.pageSize
|