97bb3547 by 杨威

添加弹框的重置功能

1 parent 07bffbf9
......@@ -49,7 +49,7 @@
</div>
<div class="btnGroup">
<el-button type="primary" @click="saveInfo">保存</el-button>
<el-button type="primary">重置</el-button>
<el-button type="primary" @click="resetInfo">重置</el-button>
<el-button type="primary" @click="dialogVisible = false">取消</el-button>
</div>
</el-dialog>
......@@ -117,6 +117,27 @@ export default {
default:
break;
}
},
//弹框中的重置按钮
resetInfo(){
switch (this.menuType) {
case 'ljz':
this.$refs.ljz.reset()
break;
case 'zdy':
break;
case 'ch':
break;
default:
break;
}
},
//关闭弹框
closeDaialog(){
this.dialogVisible = false
}
},
computed: {},
......