1、問題
3、解決
1、可以在獲取數據的方法中添加 this.$refs.multipleTable.doLayout()
注意: 是在獲取到數據之后
/**獲取列表數據**/
GET_ContractList() {
API_Purchase[fn](this.params).then(response => {
this.loading = false
if (response.code && response.code === 200) {
const list = response.data.records
list.forEach(item => {
if (item.rate) {
item.rate = Number(item.rate) * 100
}
})
this.tableData = {
...response.data,
records: list
}
//
this.$refs.multipleTable.doLayout()
} else {
this.$message.error(response.msg || '系統錯誤,請聯系客服')
}
})