Commit f038ffb6 authored by zhengke's avatar zhengke

修复PDF导出

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