Browse Source

特殊字段转义bug处理

master
安虹睿 1 year ago
parent
commit
30d2dec1b7
  1. 10
      Code/Fe/src/mixins/TableMixins.js

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

@ -171,7 +171,9 @@ export const tableMixins = {
} }
}) })
} }
if(list && list.length > 0){
_Columns_Table = _Columns_Table.concat(this.specialAddColumns(list,titleName)) _Columns_Table = _Columns_Table.concat(this.specialAddColumns(list,titleName))
}
return _Columns_Table return _Columns_Table
}, },
// 添加特殊字段(api中没有的字段特殊处理) // 添加特殊字段(api中没有的字段特殊处理)
@ -256,10 +258,10 @@ export const tableMixins = {
this.totalCount = res.totalCount this.totalCount = res.totalCount
} }
// 如果返回数据中有creationTime,则默认按时间段倒叙重新查一遍 // 如果返回数据中有creationTime,则默认按时间段倒叙重新查一遍
if('creationTime' in res.items[0] && !repeat){ // if('creationTime' in res.items[0] && !repeat){
this.PageListParams.Sorting = "CreationTime DESC" // this.PageListParams.Sorting = "CreationTime DESC"
this.paging(callback,true) // this.paging(callback,true)
} // }
this.pagingCallback(callback) this.pagingCallback(callback)
}) })
.catch(err=>{ .catch(err=>{

Loading…
Cancel
Save