diff --git a/source/vue/xzs-admin/src/views/user/student/edit.vue b/source/vue/xzs-admin/src/views/user/student/edit.vue index a9c0486..5871c3b 100644 --- a/source/vue/xzs-admin/src/views/user/student/edit.vue +++ b/source/vue/xzs-admin/src/views/user/student/edit.vue @@ -114,6 +114,19 @@ export default { }, resetForm () { this.$refs['form'].resetFields() + this.form = { + id: null, + userName: '', + password: '', + realName: '', + role: 1, + status: 1, + age: '', + sex: '', + birthDay: null, + phone: null, + userLevel: null + } }, ...mapActions('tagsView', { delCurrentView: 'delCurrentView' }) }, diff --git a/source/vue/xzs-admin/src/views/user/teacher/edit.vue b/source/vue/xzs-admin/src/views/user/teacher/edit.vue index 324bea2..6cdd9be 100644 --- a/source/vue/xzs-admin/src/views/user/teacher/edit.vue +++ b/source/vue/xzs-admin/src/views/user/teacher/edit.vue @@ -105,6 +105,18 @@ export default { }, resetForm () { this.$refs['form'].resetFields() + this.form = { + id: null, + userName: '', + password: '', + realName: '', + role: 2, + status: 1, + age: '', + sex: '', + birthDay: null, + phone: null + } }, ...mapActions('tagsView', { delCurrentView: 'delCurrentView' }) }, diff --git a/source/xzs/src/main/resources/static/admin/index.html b/source/xzs/src/main/resources/static/admin/index.html index cde9d38..0f53623 100644 --- a/source/xzs/src/main/resources/static/admin/index.html +++ b/source/xzs/src/main/resources/static/admin/index.html @@ -13,4 +13,4 @@ hm.src = 'https://hm.baidu.com/hm.js?cd8218cd51f800ed2b73e5751cb3f4f9' var s = document.getElementsByTagName('script')[0] s.parentNode.insertBefore(hm, s) - })()