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"
|
||||
@view="() => $emit('viewQr', i)"
|
||||
@edit="
|
||||
() => () => {
|
||||
readonly ? '' : inputFile?.click(), (listIndex = i);
|
||||
() => {
|
||||
$emit('editQr', i);
|
||||
}
|
||||
"
|
||||
icon="mdi-qrcode"
|
||||
|
|
|
|||
|
|
@ -1780,6 +1780,7 @@ watch(currentHq, () => {
|
|||
@edit-qr="
|
||||
(i) => {
|
||||
currentIndexQrCodeBank = i;
|
||||
refQrCodeUpload && refQrCodeUpload.browse();
|
||||
}
|
||||
"
|
||||
/>
|
||||
|
|
@ -2061,6 +2062,7 @@ watch(currentHq, () => {
|
|||
@edit-qr="
|
||||
(i) => {
|
||||
currentIndexQrCodeBank = i;
|
||||
refQrCodeUpload.browse();
|
||||
}
|
||||
"
|
||||
/>
|
||||
|
|
@ -2213,7 +2215,7 @@ watch(currentHq, () => {
|
|||
v-model:file="statusQrCodeFile as File"
|
||||
v-model:image-url="statusQrCodeUrl"
|
||||
@save="
|
||||
() => {
|
||||
(_file, imageUrl) => {
|
||||
qrCodeDialog = false;
|
||||
if (currentIndexQrCodeBank === -1) {
|
||||
triggerEditQrCodeLine({ save: true });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue