Browse Source

bug: Fix bug in form reset

main
QM303176530 5 years ago
parent
commit
66b228114f
  1. 7
      web/src/view/superAdmin/api/api.vue
  2. 4
      web/src/view/superAdmin/authority/authority.vue
  3. 12
      web/src/view/superAdmin/menu/menu.vue
  4. 8
      web/src/view/superAdmin/user/user.vue

7
web/src/view/superAdmin/api/api.vue

@ -167,12 +167,7 @@ export default {
this.getTableData()
},
initForm() {
this.form = {
path: '',
apiGroup: '',
description: '',
method: ''
}
this.$refs.apiForm.resetFields()
},
closeDialog() {
this.initForm()

4
web/src/view/superAdmin/authority/authority.vue

@ -136,9 +136,7 @@ export default {
},
//
initForm() {
for (const key in this.form) {
this.form[key] = ''
}
this.$refs.authorityForm.resetFields()
},
//
closeDialog() {

12
web/src/view/superAdmin/menu/menu.vue

@ -162,17 +162,7 @@ export default {
},
//
initForm() {
this.form = {
path: '',
name: '',
hidden: '',
parentId: '',
component: '',
meta: {
title: '',
icon: ''
}
}
this.$refs.menuForm.resetFields()
},
//
closeDialog() {

8
web/src/view/superAdmin/user/user.vue

@ -141,13 +141,7 @@ export default {
})
},
closeAddUserDialog() {
this.userInfo = {
username: '',
password: '',
nickName: '',
headerImg: '',
authorityId: ''
}
this.$refs.userForm.resetFields()
this.addUserDialog = false
},
handleAvatarSuccess(res) {

Loading…
Cancel
Save