Commit f038ffb6 authored by zhengke's avatar zhengke

修复PDF导出

parent 1bff37dc
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<ThumbnailSlide <ThumbnailSlide
class="thumbnail" class="thumbnail"
:slide="currentSlide" :slide="currentSlide"
:size="viewportRatio<1 ? VIEWPORT_SIZE : VIEWPORT_VER_SIZE" :size="1600"
v-if="rangeType === 'current'" v-if="rangeType === 'current'"
/> />
<template v-else> <template v-else>
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
v-for="(slide, index) in slides" v-for="(slide, index) in slides"
:key="slide.id" :key="slide.id"
:slide="slide" :slide="slide"
:size="viewportRatio<1 ? VIEWPORT_SIZE : VIEWPORT_VER_SIZE" :size="1600"
/> />
</template> </template>
</div> </div>
...@@ -88,10 +88,9 @@ const padding = ref(false) ...@@ -88,10 +88,9 @@ const padding = ref(false)
const expPDF = () => { const expPDF = () => {
if (!pdfThumbnailsRef.value) return if (!pdfThumbnailsRef.value) return
const width = viewportRatio<1 ? VIEWPORT_SIZE : VIEWPORT_VER_SIZE
const pageSize = { const pageSize = {
width: width, width: 1600,
height: rangeType.value === 'all' ? width * viewportRatio.value * count.value : width * viewportRatio.value, height: rangeType.value === 'all' ? 1600 * viewportRatio.value * count.value : 1600 * viewportRatio.value,
margin: padding.value ? 50 : 0, margin: padding.value ? 50 : 0,
} }
print(pdfThumbnailsRef.value, pageSize) print(pdfThumbnailsRef.value, pageSize)
......
...@@ -154,7 +154,7 @@ ...@@ -154,7 +154,7 @@
SeasonName: '', //季节名称 SeasonName: '', //季节名称
ColorName: '', //颜色名称 ColorName: '', //颜色名称
pageCount: 0, //总页数 pageCount: 0, //总页数
TempType: 2, TempType: 0,
}) })
const loading = ref(false as any) const loading = ref(false as any)
...@@ -243,7 +243,7 @@ ...@@ -243,7 +243,7 @@
* 获取模板市场分页列表 * 获取模板市场分页列表
*/ */
const queryTemplateBySearchHandler = async () => { const queryTemplateBySearchHandler = async () => {
queryObj.TempType = query().TempType if(query().TempType) queryObj.TempType = query().TempType
loading.value = true loading.value = true
try { try {
if(queryObj.pageIndex == 1) dataList.value =[] if(queryObj.pageIndex == 1) dataList.value =[]
......
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