修改请求

This commit is contained in:
qq787203167
2022-02-22 10:25:56 +08:00
parent bf1300190b
commit c5fde84fe1
+6 -1
View File
@@ -101,11 +101,16 @@
ellipsis: true ellipsis: true
}) })
}) })
let width
if (this.OperationList.length > 0){
width = this.OperationList.length * 55
}
if (this.showAction) { if (this.showAction) {
this.columns.push({ this.columns.push({
title: '操作', title: '操作',
align: 'center', align: 'center',
fixed: 'right', fixed: 'right',
width: width,
scopedSlots: { customRender: 'operation' } scopedSlots: { customRender: 'operation' }
}) })
} }
@@ -119,7 +124,7 @@
pageSize: this.pageSize pageSize: this.pageSize
} }
this.loading = true this.loading = true
getAction(this.url.tableList, params).then((res) => { postAction(this.url.tableList, params).then((res) => {
if (res.success) { if (res.success) {
this.dataSource = res.result.records this.dataSource = res.result.records
this.total = res.result.total this.total = res.result.total