Browse Source

初始化字段bug处理

master
安虹睿 1 year ago
parent
commit
9ba90fe69d
  1. 8
      Code/Fe/src/mixins/TableMixins.js

8
Code/Fe/src/mixins/TableMixins.js

@ -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) {

Loading…
Cancel
Save