Commit 9acac785 authored by chenqikuai's avatar chenqikuai

fix

parent 3aaf27b7
...@@ -62,7 +62,15 @@ ...@@ -62,7 +62,15 @@
> >
保存证书 保存证书
</div> </div>
<div class="imgBtn" @click="printJS('imageDisplay', 'html')"> <div
class="imgBtn"
@click="
printJS({
printable: data!.certificate,
type: 'image',
})
"
>
打印证书 打印证书
</div> </div>
</div> </div>
......
...@@ -91,7 +91,16 @@ ...@@ -91,7 +91,16 @@
<ImageDisplay :url="imgUrl" v-model:visible="imageDisplayVisible"> <ImageDisplay :url="imgUrl" v-model:visible="imageDisplayVisible">
<div class="flex mt-7"> <div class="flex mt-7">
<div class="imgBtn mr-2.5" @click="saveAs(imgUrl)">保存证书</div> <div class="imgBtn mr-2.5" @click="saveAs(imgUrl)">保存证书</div>
<div class="imgBtn" @click="printJS('imageDisplay', 'html')"> <div
class="imgBtn"
@click="
printJS({
printable: imgUrl,
type: 'image',
imageStyle: 'width: 100%',
})
"
>
打印证书 打印证书
</div> </div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment