update style

parent 4c102475
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
color="primary" color="primary"
:label="userItem.groupName" :label="userItem.groupName"
no-caps no-caps
square
@click="$emit('click:groupName', userItem)" @click="$emit('click:groupName', userItem)"
/> />
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
// to match your app's branding. // to match your app's branding.
// Tip: Use the "Theme Builder" on Quasar's documentation website. // Tip: Use the "Theme Builder" on Quasar's documentation website.
$primary : #1976D2; $primary : rgb(93 49 158);
$secondary : #26A69A; $secondary : #26A69A;
$accent : #9C27B0; $accent : #9C27B0;
......
...@@ -11,7 +11,13 @@ ...@@ -11,7 +11,13 @@
@click="toggleLeftDrawer" @click="toggleLeftDrawer"
/> />
<q-toolbar-title> VAB CMS Logo </q-toolbar-title> <q-toolbar-title
><q-img
src="../assets/logo_van.png"
style="width: 7.5rem"
fit="contain"
:ratio="16 / 9"
/></q-toolbar-title>
</q-toolbar> </q-toolbar>
</q-header> </q-header>
......
...@@ -79,7 +79,7 @@ export default defineComponent({ ...@@ -79,7 +79,7 @@ export default defineComponent({
const keyword = ref(''); const keyword = ref('');
const showDialog = ref(false); const showDialog = ref(false);
const showDialogUpdate = ref(false); const showDialogUpdate = ref(false);
const id = ref(0);
const userName = ref(''); const userName = ref('');
const password = ref(''); const password = ref('');
const fullName = ref(''); const fullName = ref('');
...@@ -197,13 +197,13 @@ export default defineComponent({ ...@@ -197,13 +197,13 @@ export default defineComponent({
}); });
}; };
const deleteUser = async (userID: number) => { const deleteUser = async (userId: number) => {
try { try {
const deleteResult = (await api({ const deleteResult = (await api({
url: API_PATHS.deleteUser, url: API_PATHS.deleteUser,
method: 'GET', method: 'GET',
params: { params: {
userId: userID, userId: userId,
}, },
})) as AxiosResponse<BaseResponseBody<unknown>>; })) as AxiosResponse<BaseResponseBody<unknown>>;
...@@ -282,6 +282,7 @@ export default defineComponent({ ...@@ -282,6 +282,7 @@ export default defineComponent({
const userInfo = response.data.data.user; const userInfo = response.data.data.user;
const groupInfo = response.data.data.groups; const groupInfo = response.data.data.groups;
address.value = userInfo.address as string; address.value = userInfo.address as string;
id.value = userInfo.id;
birthday.value = userInfo.birthday as string; birthday.value = userInfo.birthday as string;
email.value = userInfo.email as string; email.value = userInfo.email as string;
fullName.value = userInfo.fullName as string; fullName.value = userInfo.fullName as string;
...@@ -310,6 +311,7 @@ export default defineComponent({ ...@@ -310,6 +311,7 @@ export default defineComponent({
method: 'POST', method: 'POST',
data: { data: {
user: { user: {
id: id.value,
userName: userName.value, userName: userName.value,
password: password.value, password: password.value,
fullName: fullName.value, fullName: fullName.value,
...@@ -327,7 +329,7 @@ export default defineComponent({ ...@@ -327,7 +329,7 @@ export default defineComponent({
}, },
})) as AxiosResponse<BaseResponseBody<unknown>>; })) as AxiosResponse<BaseResponseBody<unknown>>;
if (response.data.error.code === config.API_RES_CODE.OK.code) { if (response.data.error.code === config.API_RES_CODE.OK.code) {
showDialog.value = false; showDialogUpdate.value = false;
Notify.create({ Notify.create({
type: 'positive', type: 'positive',
message: i18n.global.t('userPage.actionMessages.updateUserAccess'), message: i18n.global.t('userPage.actionMessages.updateUserAccess'),
...@@ -366,6 +368,7 @@ export default defineComponent({ ...@@ -366,6 +368,7 @@ export default defineComponent({
sexOptions, sexOptions,
listGroup, listGroup,
listScheduleAccess, listScheduleAccess,
id,
addNewUser, addNewUser,
getListUserGroup, getListUserGroup,
confirmDeleteUser, confirmDeleteUser,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment