Browse Source

apiColumns_DetailsPage在filterForDetailPage内部封装

master
安虹睿 1 year ago
parent
commit
88d65bdc6e
  1. 2
      Code/Fe/src/mixins/TableHeaderMixins.js
  2. 4
      Code/Fe/src/mixins/TableMixins.js

2
Code/Fe/src/mixins/TableHeaderMixins.js

@ -283,7 +283,7 @@ export const TableHeaderMixins = {
rowDrop(data,type) {
if(!type || type == 'list_api'){ this.apiColumns_Table = data }
if(type && type == 'detail_api'){ this.apiColumns_DetailsTable = data }
if(type && type == 'detailPage_api'){ this.apiColumns_DetailsPage = data }
// if(type && type == 'detailPage_api'){ this.apiColumns_DetailsPage = data }
if(type && type == 'list'){ this.tableColumns = data }
if(type && type == 'detail'){ this.detailsTableColumns = data }
}

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

@ -42,7 +42,7 @@ export const tableMixins = {
apiColumns_Table:null,
apiColumns_DesTions:null,
apiColumns_DetailsTable:null,
apiColumns_DetailsPage:null,
// apiColumns_DetailsPage:null,
//主表-列表
URLOption_base:allUrlOption[this.$route.name].baseURL,
//主表-明细
@ -109,7 +109,7 @@ export const tableMixins = {
// // 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')
// if(detailsPage && detailsPage[this.$route.name])this.apiColumns_DetailsPage = this.initTableColumns(detailsPage[this.$route.name],'detailPage_api')
// },
// get-dto-column-type接口表头类型初始化
initApiColumnsForDto(list,titleName){

Loading…
Cancel
Save