copy from src/views/systemSetting/baseSetting/user/createUser/index.vue
copy to src/views/systemSetting/baseSetting/user/components/createUser/index.vue
File was copied from src/views/systemSetting/baseSetting/user/createUser/index.vue |
| | |
| | | methods: { |
| | | handleUser() { |
| | | const { user } = this; |
| | | console.log(user); |
| | | this.$axios.post('sccg/admin/register', { |
| | | departmentId: user.departmentId, |
| | | email: user.email, |
| | |
| | | username: user.username, |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | this.refresh(); |
| | | console.log(1); |
| | | this.$emit('sendDialog',{flag:false}); |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | | }, |
| | | props: ['refresh'] |
| | | props: ['sendDialog'] |
| | | } |
| | | </script> |
| | | <style lang="scss" scoped> |