|
|
|
@ -326,8 +326,8 @@ export default { |
|
|
|
this.$message.success('添加成功!'); |
|
|
|
this.selectedRowKeys=[] |
|
|
|
this.resetQurey() |
|
|
|
this.visible2=false |
|
|
|
this.getList() |
|
|
|
this.visible2=false |
|
|
|
}else{ |
|
|
|
this.$message.error(res.msg); |
|
|
|
} |
|
|
|
@ -336,7 +336,7 @@ export default { |
|
|
|
// 重置query |
|
|
|
resetQurey(){ |
|
|
|
Object.assign(this.query1, this.$options.data().query1) |
|
|
|
this.showAdd() |
|
|
|
this.showAdd(2) |
|
|
|
}, |
|
|
|
onSelectChange(keys){ |
|
|
|
this.selectedRowKeys = keys; |
|
|
|
@ -357,7 +357,7 @@ export default { |
|
|
|
this.startTotal=res.data.start |
|
|
|
this.endTotal=res.data.end |
|
|
|
this.total=res.data.total |
|
|
|
if(!this.visible2)this.visible2=true |
|
|
|
if(!this.visible2 && type!=2)this.visible2=true |
|
|
|
}else{ |
|
|
|
this.$message.error(res.msg); |
|
|
|
} |
|
|
|
|