生成多条数据修改

This commit is contained in:
caoyang
2022-05-06 10:53:35 +08:00
parent 86fbea56ca
commit 3fd7a79bbd
2 changed files with 8 additions and 1 deletions
@@ -189,6 +189,11 @@
this.loading = true
postAction(this.url.tableList, params).then((res) => {
if (res.success) {
if (res.result.current > 1 && res.result.records.length == 0) {
this.pageNo = res.result.current - 1
this.getTableList()
return
}
this.dataSource = res.result.records
this.total = res.result.total
this.loading = false
@@ -641,7 +641,7 @@
if(res.success){
// todo
console.log(res,'res...')
// console.log(res,'res...')
this.formInline=[...res.result]
}
})
@@ -776,6 +776,8 @@
.catch( (error) =>{
console.log(error);
}).finally(()=>{
this.visible=false
this.$emit('closeVisible',false)
this.loading=false
this.submitFlag=false
})