fix: request list => product expansion img url
This commit is contained in:
parent
66d2a17277
commit
6c2f18acf9
2 changed files with 3 additions and 4 deletions
|
|
@ -15,8 +15,6 @@ const workStatus = [
|
||||||
RequestWorkStatus.Completed,
|
RequestWorkStatus.Completed,
|
||||||
];
|
];
|
||||||
|
|
||||||
const productId = defineModel<string>('productId', { required: true });
|
|
||||||
|
|
||||||
defineEmits<{
|
defineEmits<{
|
||||||
(
|
(
|
||||||
e: 'changeStatus',
|
e: 'changeStatus',
|
||||||
|
|
@ -29,6 +27,7 @@ defineProps<{
|
||||||
name: string;
|
name: string;
|
||||||
code: string;
|
code: string;
|
||||||
status?: Step;
|
status?: Step;
|
||||||
|
imgUrl?: string;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
// NOTE: Function
|
// NOTE: Function
|
||||||
|
|
@ -50,7 +49,7 @@ defineProps<{
|
||||||
style="width: 50px; height: 50px"
|
style="width: 50px; height: 50px"
|
||||||
>
|
>
|
||||||
<q-img
|
<q-img
|
||||||
:src="`${baseUrl}/product/${productId}/image/`"
|
:src="`${baseUrl}${imgUrl}`"
|
||||||
style="object-fit: cover; width: 100%; height: 100%"
|
style="object-fit: cover; width: 100%; height: 100%"
|
||||||
>
|
>
|
||||||
<template #error>
|
<template #error>
|
||||||
|
|
|
||||||
|
|
@ -451,7 +451,7 @@ async function triggerViewFile(opt: {
|
||||||
:status="
|
:status="
|
||||||
value.stepStatus?.find((v) => v.step === pageState.currentStep)
|
value.stepStatus?.find((v) => v.step === pageState.currentStep)
|
||||||
"
|
"
|
||||||
v-model:product-id="value.productService.productId"
|
:img-url="`/product/${value.productService.productId}/image/${value.productService.product.selectedImage}`"
|
||||||
:name="value.productService.product.name"
|
:name="value.productService.product.name"
|
||||||
:code="value.productService.product.code"
|
:code="value.productService.product.code"
|
||||||
:product="value.productService.product"
|
:product="value.productService.product"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue