修改上传文件组件

This commit is contained in:
qq787203167
2022-02-22 15:13:07 +08:00
parent ffe34f6313
commit 6c432ddfa5
4 changed files with 176 additions and 256 deletions
+9 -7
View File
@@ -66,8 +66,8 @@
columns: [],
selectedRowKeys: [],
dataSource: [],
pageNo: '1',
pageSize: '10',
pageNo: 1,
pageSize: 10,
total: 0,
searchParmes: {},
loading: false
@@ -102,7 +102,7 @@
})
})
let width
if (this.OperationList.length > 0){
if (this.OperationList.length > 0) {
width = this.OperationList.length * 55
}
if (this.showAction) {
@@ -118,10 +118,12 @@
})
},
getTableList() {
let pageNo = JSON.parse(JSON.stringify(this.pageNo))
let pageSize = JSON.parse(JSON.stringify(this.pageSize))
let params = {
...this.searchParmes,
pageNo: this.pageNo,
pageSize: this.pageSize
pageNo: pageNo + '',
pageSize: pageSize + ''
}
this.loading = true
postAction(this.url.tableList, params).then((res) => {
@@ -133,11 +135,11 @@
})
},
onChange(page, pageSize) {
this.pageNo = page+''
this.pageNo = page
this.getTableList()
},
SizeChange(page, pageSize) {
this.pageSize = pageSize+''
this.pageSize = pageSize
this.getTableList()
},
onSelectChange() {