增加文档部分功能

This commit is contained in:
龙运模
2024-07-24 20:53:58 +08:00
parent babaf8f430
commit ac1daa1a79
10 changed files with 324 additions and 37 deletions
+11 -1
View File
@@ -95,6 +95,7 @@
hideRefresh: { type: Boolean, default: false },
hideSetting: { type: Boolean, default: false },
paginationLayout: { type: String, default: config.paginationLayout },
rowChild:{type:Boolean, default:true}
},
watch: {
//监听从props里拿到值了
@@ -210,7 +211,16 @@
if(this.hidePagination){
this.tableData = response.data || [];
}else{
this.tableData = response.rows || [];
if(!this.rowChild){
response.rows.forEach(item=>{
item.data = item.children;
delete item.children
})
this.tableData = response.rows || [];
console.log('数据处理')
}else{
this.tableData = response.rows || [];
}
}
if(response.data.columnConfig){
this.userColumn = response.data.columnConfig; // 表头获取