生成多条数据修改
This commit is contained in:
@@ -189,6 +189,11 @@
|
|||||||
this.loading = true
|
this.loading = true
|
||||||
postAction(this.url.tableList, params).then((res) => {
|
postAction(this.url.tableList, params).then((res) => {
|
||||||
if (res.success) {
|
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.dataSource = res.result.records
|
||||||
this.total = res.result.total
|
this.total = res.result.total
|
||||||
this.loading = false
|
this.loading = false
|
||||||
|
|||||||
@@ -641,7 +641,7 @@
|
|||||||
if(res.success){
|
if(res.success){
|
||||||
// todo
|
// todo
|
||||||
|
|
||||||
console.log(res,'res...')
|
// console.log(res,'res...')
|
||||||
this.formInline=[...res.result]
|
this.formInline=[...res.result]
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -776,6 +776,8 @@
|
|||||||
.catch( (error) =>{
|
.catch( (error) =>{
|
||||||
console.log(error);
|
console.log(error);
|
||||||
}).finally(()=>{
|
}).finally(()=>{
|
||||||
|
this.visible=false
|
||||||
|
this.$emit('closeVisible',false)
|
||||||
this.loading=false
|
this.loading=false
|
||||||
this.submitFlag=false
|
this.submitFlag=false
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user