|
|
@ -57,10 +57,10 @@ export const tableMixins = { |
|
|
|
// 获取通过api的表头数据,不可以在初始化处理,因为接口返回问题
|
|
|
|
initApiColumns(table,des,detailsTable,detailsPage){ |
|
|
|
// 赋值表头数据
|
|
|
|
this.apiColumns_Table = this.initTableColumns(table[this.$route.name]) |
|
|
|
this.apiColumns_DesTions = des[this.$route.name] |
|
|
|
this.apiColumns_DetailsTable = this.initTableColumns(detailsTable[this.$route.name],'detail_api') |
|
|
|
this.apiColumns_DetailsPage = this.initTableColumns(detailsPage[this.$route.name],'detailPage_api') |
|
|
|
if(table && table[this.$route.name])this.apiColumns_Table = this.initTableColumns(table[this.$route.name]) |
|
|
|
if(des && des[this.$route.name])this.apiColumns_DesTions = des[this.$route.name] |
|
|
|
if(detailsTable && detailsTable[this.$route.name])this.apiColumns_DetailsTable = this.initTableColumns(detailsTable[this.$route.name],'detail_api') |
|
|
|
if(detailsPage && detailsPage[this.$route.name])this.apiColumns_DetailsPage = this.initTableColumns(detailsPage[this.$route.name],'detailPage_api') |
|
|
|
}, |
|
|
|
//渲染数据
|
|
|
|
paging(callback) { |
|
|
|