fix: drawer info icon & btn
This commit is contained in:
parent
c50ca43437
commit
405e1bb267
3 changed files with 8 additions and 8 deletions
|
|
@ -66,7 +66,7 @@ function reset() {
|
||||||
round
|
round
|
||||||
flat
|
flat
|
||||||
id="closeDialog"
|
id="closeDialog"
|
||||||
icon="mdi-undo"
|
icon="mdi-arrow-left"
|
||||||
padding="xs"
|
padding="xs"
|
||||||
class="q-mr-md"
|
class="q-mr-md"
|
||||||
:class="{ dark: $q.dark.isActive }"
|
:class="{ dark: $q.dark.isActive }"
|
||||||
|
|
@ -153,6 +153,7 @@ function reset() {
|
||||||
class="form-footer col q-pr-lg row items-center justify-end q-gutter-x-lg"
|
class="form-footer col q-pr-lg row items-center justify-end q-gutter-x-lg"
|
||||||
>
|
>
|
||||||
<q-btn
|
<q-btn
|
||||||
|
v-if="isEdit"
|
||||||
dense
|
dense
|
||||||
outline
|
outline
|
||||||
unelevated
|
unelevated
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ import productService from './product-service';
|
||||||
import alertDialog from './alert-dialog';
|
import alertDialog from './alert-dialog';
|
||||||
export default {
|
export default {
|
||||||
ok: 'Confirm',
|
ok: 'Confirm',
|
||||||
agree: 'Agree',
|
agree: 'Ok',
|
||||||
cancel: 'Cancel',
|
cancel: 'Cancel',
|
||||||
failed: 'Failed',
|
failed: 'Failed',
|
||||||
success: 'Success',
|
success: 'Success',
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,6 @@ import {
|
||||||
EmployeeCheckup,
|
EmployeeCheckup,
|
||||||
EmployeeCreate,
|
EmployeeCreate,
|
||||||
EmployeeOther,
|
EmployeeOther,
|
||||||
EmployeeUpdate,
|
|
||||||
EmployeeWork,
|
EmployeeWork,
|
||||||
} from './types';
|
} from './types';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
|
|
@ -100,7 +99,7 @@ const useEmployeeStore = defineStore('api-employee', () => {
|
||||||
) {
|
) {
|
||||||
const { image, ...payload } = data;
|
const { image, ...payload } = data;
|
||||||
const res = await api.put<
|
const res = await api.put<
|
||||||
Employee & { imageUrl: string; imageUploadUrl: string }
|
Employee & { imageUrl: string; profileImageUploadUrl: string }
|
||||||
>(`/employee/${id}`, payload, {
|
>(`/employee/${id}`, payload, {
|
||||||
headers: {
|
headers: {
|
||||||
'X-Session-Id': flow?.sessionId,
|
'X-Session-Id': flow?.sessionId,
|
||||||
|
|
@ -109,13 +108,13 @@ const useEmployeeStore = defineStore('api-employee', () => {
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
if (image)
|
image &&
|
||||||
await axios
|
(await axios
|
||||||
.put(res.data.imageUploadUrl, image, {
|
.put(res.data.profileImageUploadUrl, image, {
|
||||||
headers: { 'Content-Type': image.type },
|
headers: { 'Content-Type': image.type },
|
||||||
onUploadProgress: (e) => console.log(e),
|
onUploadProgress: (e) => console.log(e),
|
||||||
})
|
})
|
||||||
.catch((e) => console.error(e));
|
.catch((e) => console.error(e)));
|
||||||
|
|
||||||
if (!res) return false;
|
if (!res) return false;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue