Browse Source

优化

master
ltlzx 4 years ago
parent
commit
40fabff76f
  1. 6
      src/components/page/layout/index.vue

6
src/components/page/layout/index.vue

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

Loading…
Cancel
Save