diff --git a/src/components/users/users.vue b/src/components/users/users.vue index c155cd8..ebf88b0 100644 --- a/src/components/users/users.vue +++ b/src/components/users/users.vue @@ -56,7 +56,7 @@ - + @@ -72,16 +72,13 @@ - - 立即创建 - 重置 - + 取 消 - 确 定 + 确 定 @@ -141,8 +138,16 @@ export default { } }, methods: { - submitForm (form) { - + formClose () { + this.resetForm() + }, + submitForm () { + this.$refs.addFormRef.validate(validate => { + if (!validate) { + return + } + this.dialogVisible = false + }) }, resetForm () { this.$refs.addFormRef.resetFields()