table相关说明this.detailTable = createConnectedComponent({
type: 'tableGroup', // 这里可以切换图表的渲染类型 tableGroup timeline
path: tablekey,
name: '成交量价',
model: {
columnWidth: 64,
column: [{ name: 'addlayerroomcount', isShow:currentFilter==='newSupply'?true:false }], //控制column的显示
isShowDeatil: false, //显示详情
isShowFilter: false,//显示查询
auth: { post: false, update: false, delete: false, }, // download: { frontend: true } //编辑修改权限
...rest,
requestOptions: {
column: [...resetColumn] //请求的column
},
filterQuery: filter, //相当于请求的filter
apiName: apiN, //请求api
relations: [
{ apiName: apiN,
name: '下钻',
keyMap,
requestOptions: {
...relationsRest
},
//requestOptions: {
//column: ['totalacreage', 'layerroomcount', 'totalusd', 'layerroomcount'].map(name => ({ name }))
//},
}
]
},
router: {
//这里可以传参数进去
}
});