this.$refs.crud.searchReset() //重置搜索条件
searchLabelWidth :200 //设置搜索的label的宽度
//时间的渲染
{
label: '支付时间',
prop: 'payTime',
width: 90,
render: (h, params) => {
return h('div',
params.row.payTime == null ? '' : params.row.payTime
)
},
}
//公共属性中 设置树表格
tree: true, //树表格
expandLevel: 3, //表格的层级
rowKey:'categoryId', //一定要设置rowKey,默认为id
treeProps:{ children: 'categoryTypeAttrList' }, //树形表格中需要渲染的子表格的字段 children 默认值为children,
网友评论