diff --git a/components/admin/dialogs/AccountPlus.vue b/components/admin/dialogs/AccountPlus.vue index 1e10e6c..3b47128 100644 --- a/components/admin/dialogs/AccountPlus.vue +++ b/components/admin/dialogs/AccountPlus.vue @@ -305,6 +305,15 @@ export default { student.point, this.teachers.map((obj) => obj.id) ) + if (student.rank == null) { + student.rank = 0 + } + if (student.group == null) { + student.group = 0 + } + if (student.password == null) { + student.password = '' + } createUser(student).then((result) => { if (result.statusCode === 400) { alert('以下の学生の登録に失敗しました。\nemail: ' + result.email + '\nname:' + result.name) diff --git a/components/layouts/Header.vue b/components/layouts/Header.vue index e2cd99f..46cf19d 100644 --- a/components/layouts/Header.vue +++ b/components/layouts/Header.vue @@ -29,16 +29,24 @@ ようこそ、{{ userName }}さん {{ userEmail }} + + diff --git a/components/layouts/LogOutDialog.vue b/components/layouts/LogOutDialog.vue new file mode 100644 index 0000000..6f3d126 --- /dev/null +++ b/components/layouts/LogOutDialog.vue @@ -0,0 +1,49 @@ + + + + + diff --git a/components/layouts/NavDrawer.vue b/components/layouts/NavDrawer.vue index 7953018..4036bd3 100644 --- a/components/layouts/NavDrawer.vue +++ b/components/layouts/NavDrawer.vue @@ -46,16 +46,24 @@ + + diff --git a/components/layouts/index.js b/components/layouts/index.js index 24cb030..d306f63 100644 --- a/components/layouts/index.js +++ b/components/layouts/index.js @@ -1,4 +1,5 @@ import Header from './Header' import NavDrawer from './NavDrawer' +import LogOutDialog from './LogOutDialog' -export { Header, NavDrawer } +export { Header, NavDrawer, LogOutDialog }