fix: service & product card image
This commit is contained in:
parent
b07d1b9085
commit
2d0def98a3
3 changed files with 185 additions and 176 deletions
|
|
@ -634,6 +634,9 @@ async function assignFormDataProductService(id: string) {
|
|||
|
||||
if (res) {
|
||||
statusToggle.value = res.status === 'INACTIVE' ? false : true;
|
||||
profileUrl.value = res.imageUrl;
|
||||
profileSubmit.value = true;
|
||||
|
||||
currentService.value = JSON.parse(JSON.stringify(res));
|
||||
|
||||
prevService.value = {
|
||||
|
|
@ -732,7 +735,7 @@ function clearFormProduct() {
|
|||
code: '',
|
||||
image: undefined,
|
||||
};
|
||||
|
||||
imageProduct.value = undefined;
|
||||
dialogProduct.value = false;
|
||||
dialogProductEdit.value = false;
|
||||
profileUrl.value = '';
|
||||
|
|
@ -758,6 +761,7 @@ function clearFormService() {
|
|||
dialogServiceEdit.value = false;
|
||||
profileUrl.value = '';
|
||||
profileSubmit.value = false;
|
||||
imageProduct.value = undefined;
|
||||
}
|
||||
|
||||
function assignFormDataProductServiceCreate() {
|
||||
|
|
@ -2172,6 +2176,7 @@ watch(inputSearchProductAndService, async () => {
|
|||
<template #prepend>
|
||||
<ProfileUpload
|
||||
isService
|
||||
:readonly="!infoServiceEdit"
|
||||
v-model:url-profile="profileUrl"
|
||||
v-model:status-toggle="statusToggle"
|
||||
v-model:profile-submit="profileSubmit"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue