diff --git a/PC/InterFace.Dash/src/mixins/TableMixins.js b/PC/InterFace.Dash/src/mixins/TableMixins.js index af113a0..fa85886 100644 --- a/PC/InterFace.Dash/src/mixins/TableMixins.js +++ b/PC/InterFace.Dash/src/mixins/TableMixins.js @@ -171,7 +171,7 @@ export const tableMixins = { } }) } - if(list && list.length > 0){ + if(list){ _Columns_Table = _Columns_Table.concat(this.specialAddColumns(list,titleName)) } return _Columns_Table @@ -249,7 +249,8 @@ export const tableMixins = { getPageList(this.PageListParams, this.URLOption_base) .then(res=>{ // 表头处理 - let _Columns = this.initApiColumnsForDto(res.items[0],this.$route.name) + let _list = res.items && res.items.length > 0 ? res.items[0] : null + let _Columns = this.initApiColumnsForDto(_list,this.$route.name) this.apiColumns_Table = this.initTableColumns(_Columns) this.apiColumns_DesTions = _Columns // 页面数据处理