diff --git a/src/components/users/users.vue b/src/components/users/users.vue index 610339b..a3b9313 100644 --- a/src/components/users/users.vue +++ b/src/components/users/users.vue @@ -56,9 +56,28 @@ - + - 这是一段信息 + + + + + + + + + + + + + + + + 立即创建 + 重置 + + + 取 消 @@ -75,6 +94,30 @@ export default { data () { return { dialogVisible: false, + addForm: { + username: '', + password: '', + email: '', + mobile: '' + }, + rules: { + username: [ + { required: true, message: '请输入用户名', trigger: 'blur' }, + { min: 3, max: 10, message: '长度在3到10之间', trigger: 'blur' } + ], + password: [ + { required: true, message: '请输入密码', trigger: 'blur' }, + { min: 3, max: 10, message: '长度在3到10之间', trigger: 'blur' } + ], + email: [ + { required: true, message: '请输入邮箱', trigger: 'blur' }, + { min: 3, max: 10, message: '长度在3到10之间', trigger: 'blur' } + ], + mobile: [ + { required: true, message: '请输入手机号', trigger: 'blur' }, + { min: 3, max: 10, message: '长度在3到10之间', trigger: 'blur' } + ] + }, queryInfo: { query: '', pagenum: 1, @@ -85,6 +128,12 @@ export default { } }, methods: { + submitForm (form) { + + }, + resetForm () { + this.$refs.addFormRef.resetFields() + }, handleSizeChange (val) { this.queryInfo.pagesize = val this.getUserList()