refactor: header edit img
This commit is contained in:
parent
1c467bff35
commit
0895714887
2 changed files with 5 additions and 3 deletions
|
|
@ -179,8 +179,8 @@ watch(
|
||||||
:img="book.bankUrl"
|
:img="book.bankUrl"
|
||||||
@view="() => $emit('viewQr', i)"
|
@view="() => $emit('viewQr', i)"
|
||||||
@edit="
|
@edit="
|
||||||
() => () => {
|
() => {
|
||||||
readonly ? '' : inputFile?.click(), (listIndex = i);
|
$emit('editQr', i);
|
||||||
}
|
}
|
||||||
"
|
"
|
||||||
icon="mdi-qrcode"
|
icon="mdi-qrcode"
|
||||||
|
|
|
||||||
|
|
@ -1780,6 +1780,7 @@ watch(currentHq, () => {
|
||||||
@edit-qr="
|
@edit-qr="
|
||||||
(i) => {
|
(i) => {
|
||||||
currentIndexQrCodeBank = i;
|
currentIndexQrCodeBank = i;
|
||||||
|
refQrCodeUpload && refQrCodeUpload.browse();
|
||||||
}
|
}
|
||||||
"
|
"
|
||||||
/>
|
/>
|
||||||
|
|
@ -2061,6 +2062,7 @@ watch(currentHq, () => {
|
||||||
@edit-qr="
|
@edit-qr="
|
||||||
(i) => {
|
(i) => {
|
||||||
currentIndexQrCodeBank = i;
|
currentIndexQrCodeBank = i;
|
||||||
|
refQrCodeUpload.browse();
|
||||||
}
|
}
|
||||||
"
|
"
|
||||||
/>
|
/>
|
||||||
|
|
@ -2213,7 +2215,7 @@ watch(currentHq, () => {
|
||||||
v-model:file="statusQrCodeFile as File"
|
v-model:file="statusQrCodeFile as File"
|
||||||
v-model:image-url="statusQrCodeUrl"
|
v-model:image-url="statusQrCodeUrl"
|
||||||
@save="
|
@save="
|
||||||
() => {
|
(_file, imageUrl) => {
|
||||||
qrCodeDialog = false;
|
qrCodeDialog = false;
|
||||||
if (currentIndexQrCodeBank === -1) {
|
if (currentIndexQrCodeBank === -1) {
|
||||||
triggerEditQrCodeLine({ save: true });
|
triggerEditQrCodeLine({ save: true });
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue