Commit 268b4666 authored by zhengke's avatar zhengke

修复 erp 行程特色图 固定宽

parent 9c973797
...@@ -29,16 +29,15 @@ ...@@ -29,16 +29,15 @@
> >
<ExportDialog /> <ExportDialog />
</Modal> </Modal>
<div v-if="model&&model==3" <div v-if="model&&model==3" style="position: fixed;left: 0;right: 0;top: 0;bottom: 0; overflow: auto;">
style="opacity: 1;position: fixed;left: 0;right: 0; top: 0;bottom: 0;overflow: auto;z-index: 99999999;">
<div class="export-img-dialog"> <div class="export-img-dialog">
<div class="thumbnails-view"> <div class="thumbnails-view" ref="refThumbnails">
<div class="thumbnails" v-for="slide in slides"> <div class="thumbnails" v-for="slide in slides">
<ThumbnailSlide <ThumbnailSlide
class="thumbnail" class="thumbnail"
:key="slide.id" :key="slide.id"
:slide="slide" :slide="slide"
:size="(viewportRatio<1 ? VIEWPORT_SIZE : VIEWPORT_VER_SIZE )" :size="param.w?param.w:(viewportRatio<1 ? VIEWPORT_SIZE : VIEWPORT_VER_SIZE )"
/> />
</div> </div>
</div> </div>
...@@ -54,6 +53,8 @@ import { useMainStore, useSlidesStore, useScreenStore } from '@/store' ...@@ -54,6 +53,8 @@ import { useMainStore, useSlidesStore, useScreenStore } from '@/store'
import useGlobalHotkey from '@/hooks/useGlobalHotkey' import useGlobalHotkey from '@/hooks/useGlobalHotkey'
import usePasteEvent from '@/hooks/usePasteEvent' import usePasteEvent from '@/hooks/usePasteEvent'
import { injectKeyDataSource, injectKeyTemplate } from '@/types/injectKey' import { injectKeyDataSource, injectKeyTemplate } from '@/types/injectKey'
import { query } from '@/utils/common'
import { domainManager } from '@/utils/domainManager'
import EditorHeader from './EditorHeader/index.vue' import EditorHeader from './EditorHeader/index.vue'
import Canvas from './Canvas/index.vue' import Canvas from './Canvas/index.vue'
...@@ -84,6 +85,9 @@ searchData.value = inject(injectKeyTemplate) ...@@ -84,6 +85,9 @@ searchData.value = inject(injectKeyTemplate)
let TempIds = 0 let TempIds = 0
if(searchData.value.TempId) TempIds = searchData.value.TempId if(searchData.value.TempId) TempIds = searchData.value.TempId
else if(TempId.value) TempIds = TempId.value else if(TempId.value) TempIds = TempId.value
const refThumbnails = ref(null)
const param = ref("")
param.value = query()
const datas = reactive({ const datas = reactive({
DataSource:{ DataSource:{
TravelAatas:{}, TravelAatas:{},
...@@ -113,6 +117,19 @@ const datas = reactive({ ...@@ -113,6 +117,19 @@ const datas = reactive({
watch(() => datas.DataSource, () => { watch(() => datas.DataSource, () => {
provide(injectKeyDataSource,datas.DataSource) provide(injectKeyDataSource,datas.DataSource)
}) })
watch(() => refThumbnails.value, () => {
setTimeout(()=>{
getDomeWH()
},1000)
})
const getDomeWH = async () => {
if(refThumbnails.value){
let height = await refThumbnails.value.offsetHeight;
console.log(height,'-------行程特色高')
window.parent.postMessage(`行程特色高-${height}`, `${domainManager().notificationUrl}`);
}
}
// 数据源 // 数据源
const GetTripFiled = async () =>{ const GetTripFiled = async () =>{
try { try {
......
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