Commit 5c7aba38 authored by 罗超's avatar 罗超

修复文件上传和批量设置字体信息

parent 36b794e4
...@@ -24,7 +24,7 @@ const replaceSCSSVariable = (names) => { ...@@ -24,7 +24,7 @@ const replaceSCSSVariable = (names) => {
console.error(errs) console.error(errs)
process.exit(1) process.exit(1)
} }
console.log('自动生成自定义字体列表完成') //console.log('自动生成自定义字体列表完成')
}) })
}) })
} }
......
...@@ -257,7 +257,6 @@ const GetTripConfig = async (ConfigId) =>{ ...@@ -257,7 +257,6 @@ const GetTripConfig = async (ConfigId) =>{
TempIdStore.setTempId(dataObj.TempId) TempIdStore.setTempId(dataObj.TempId)
} }
} catch (error) { } catch (error) {
console.log("triptemplate_GetTripConfig", error);
} }
} }
userLoginHandler() userLoginHandler()
......
...@@ -118,12 +118,10 @@ const updateLineStyle = (lineObj:any)=>{ ...@@ -118,12 +118,10 @@ const updateLineStyle = (lineObj:any)=>{
lineObj.children.getIndex(0).tensionX = attrs.tensionX lineObj.children.getIndex(0).tensionX = attrs.tensionX
lineObj.children.getIndex(0).tensionY = attrs.tensionY lineObj.children.getIndex(0).tensionY = attrs.tensionY
lineObj.strokeDasharray = `${attrs.strokeDasharray},${attrs.strokeDasharray}` lineObj.strokeDasharray = `${attrs.strokeDasharray},${attrs.strokeDasharray}`
console.log(attrs.strokeDasharray)
} }
const updateLinePoint = (t:number,isReload:boolean=false)=>{ const updateLinePoint = (t:number,isReload:boolean=false)=>{
if(t==attrs.arrow && !isReload) t=-1 if(t==attrs.arrow && !isReload) t=-1
console.log(t)
for (let i = 0; i < splineSeries.value?.mapLines.length!; i++) { for (let i = 0; i < splineSeries.value?.mapLines.length!; i++) {
let element = splineSeries.value?.mapLines.getIndex(i); let element = splineSeries.value?.mapLines.getIndex(i);
if(element?.uid==current.value.uid || updateAllLineStatus.value){ if(element?.uid==current.value.uid || updateAllLineStatus.value){
...@@ -147,7 +145,6 @@ const updateLinePoint = (t:number,isReload:boolean=false)=>{ ...@@ -147,7 +145,6 @@ const updateLinePoint = (t:number,isReload:boolean=false)=>{
const createPoint = (point:number,lineObj:any)=>{ const createPoint = (point:number,lineObj:any)=>{
console.log(lineObj.lineObjects)
let rotation = point == 0?270:90 let rotation = point == 0?270:90
let bullet = lineObj.lineObjects.create(); let bullet = lineObj.lineObjects.create();
bullet.position = point; bullet.position = point;
......
...@@ -88,7 +88,6 @@ const querySearchAsync = async ( ...@@ -88,7 +88,6 @@ const querySearchAsync = async (
cb(response); cb(response);
}; };
const citySelectHandler = (item: Record<string, any>, i: number) => { const citySelectHandler = (item: Record<string, any>, i: number) => {
console.log(item);
attrs.cities[i].data = item; attrs.cities[i].data = item;
}; };
const createNewCity = (index = -1) => { const createNewCity = (index = -1) => {
...@@ -133,7 +132,6 @@ const finishHandler = ()=>{ ...@@ -133,7 +132,6 @@ const finishHandler = ()=>{
countries:attrs.selectedCountries, countries:attrs.selectedCountries,
cities:attrs.cities cities:attrs.cities
} }
console.log(r)
emit('finish',r) emit('finish',r)
} }
loading.value=false loading.value=false
......
...@@ -61,7 +61,6 @@ export default (MapDOM: Ref<HTMLElement | undefined>, loadingStatus: Ref<boolean ...@@ -61,7 +61,6 @@ export default (MapDOM: Ref<HTMLElement | undefined>, loadingStatus: Ref<boolean
}) })
worldSeries.events.on('ready', (e) => { worldSeries.events.on('ready', (e) => {
console.log('ready.........')
loadingStatus.value = false loadingStatus.value = false
}) })
...@@ -111,7 +110,6 @@ export default (MapDOM: Ref<HTMLElement | undefined>, loadingStatus: Ref<boolean ...@@ -111,7 +110,6 @@ export default (MapDOM: Ref<HTMLElement | undefined>, loadingStatus: Ref<boolean
const exportPng = (): Promise<string> => { const exportPng = (): Promise<string> => {
const tt = map.config const tt = map.config
console.log(tt)
countrySeries.exporting.getJSON("json").then(async r=>{ countrySeries.exporting.getJSON("json").then(async r=>{
r = decodeURIComponent(r.replace('data:application/json;charset=utf-8,','')) r = decodeURIComponent(r.replace('data:application/json;charset=utf-8,',''))
...@@ -542,7 +540,6 @@ export default (MapDOM: Ref<HTMLElement | undefined>, loadingStatus: Ref<boolean ...@@ -542,7 +540,6 @@ export default (MapDOM: Ref<HTMLElement | undefined>, loadingStatus: Ref<boolean
//@ts-ignore //@ts-ignore
line.children.getIndex(0).tensionY = 2 line.children.getIndex(0).tensionY = 2
line.events.on("hit", (e) => { line.events.on("hit", (e) => {
console.log(e)
eventName.value = 'lineEvent' eventName.value = 'lineEvent'
mapStore.setCurrent(e.target) mapStore.setCurrent(e.target)
}) })
...@@ -662,7 +659,6 @@ export default (MapDOM: Ref<HTMLElement | undefined>, loadingStatus: Ref<boolean ...@@ -662,7 +659,6 @@ export default (MapDOM: Ref<HTMLElement | undefined>, loadingStatus: Ref<boolean
} }
if(!lab){ if(!lab){
let labelChildren = mark.mapImages.create(); let labelChildren = mark.mapImages.create();
console.log(mark.data)
labelChildren.latitude = mark.data[0].latitude; labelChildren.latitude = mark.data[0].latitude;
labelChildren.longitude = mark.data[0].longitude; labelChildren.longitude = mark.data[0].longitude;
......
...@@ -201,7 +201,7 @@ const uploadFontHandler = async (uploadFile:any, uploadFiles:any, fontName:strin ...@@ -201,7 +201,7 @@ const uploadFontHandler = async (uploadFile:any, uploadFiles:any, fontName:strin
uploadingIndex.value=-1 uploadingIndex.value=-1
return return
} }
const url = await FileService.uploadToFontServerAsync(uploadFile?.raw) let url = await FileService.uploadToFontServerAsync(uploadFile?.raw)
if(url && url!=''){ if(url && url!=''){
if(url.indexOf('"')!=-1) url = url.replaceAll('"','') if(url.indexOf('"')!=-1) url = url.replaceAll('"','')
let label=uploadFile.name.split('.')[0],reduceName='',reduceUrl='' let label=uploadFile.name.split('.')[0],reduceName='',reduceUrl=''
...@@ -212,7 +212,6 @@ const uploadFontHandler = async (uploadFile:any, uploadFiles:any, fontName:strin ...@@ -212,7 +212,6 @@ const uploadFontHandler = async (uploadFile:any, uploadFiles:any, fontName:strin
reduceUrl = await AliyunUpload.UploadAsync(info.file,"tripfont/"+info.file.name) reduceUrl = await AliyunUpload.UploadAsync(info.file,"tripfont/"+info.file.name)
} }
} catch (error) { } catch (error) {
console.log('发生异常',error)
} }
//添加字体 //添加字体
//uploadFinishFont.value.push(fontName) //uploadFinishFont.value.push(fontName)
...@@ -239,7 +238,6 @@ const uploadFontHandler = async (uploadFile:any, uploadFiles:any, fontName:strin ...@@ -239,7 +238,6 @@ const uploadFontHandler = async (uploadFile:any, uploadFiles:any, fontName:strin
}) })
} }
} catch (error) { } catch (error) {
console.log("上传异常",error)
} }
uploadingIndex.value=-1 uploadingIndex.value=-1
} }
...@@ -253,10 +251,9 @@ const removeFontHandler = (fontName:any)=>{ ...@@ -253,10 +251,9 @@ const removeFontHandler = (fontName:any)=>{
fonts.value?.splice(fonts.value.findIndex(x=>x.fontFamily==fontName),1) fonts.value?.splice(fonts.value.findIndex(x=>x.fontFamily==fontName),1)
} }
}) })
.catch((error) => { console.log("catch",error)}) .catch((error) => { })
} }
const handleExceed: UploadProps['onExceed'] = (files) => { const handleExceed: UploadProps['onExceed'] = (files) => {
console.log('执行clear')
upload.value!.clearFiles() upload.value!.clearFiles()
const file = files[0] as UploadRawFile const file = files[0] as UploadRawFile
upload.value!.handleStart(file) upload.value!.handleStart(file)
......
...@@ -5,28 +5,28 @@ import { register } from 'register-service-worker' ...@@ -5,28 +5,28 @@ import { register } from 'register-service-worker'
if (process.env.NODE_ENV === 'production') { if (process.env.NODE_ENV === 'production') {
register(`${process.env.BASE_URL}service-worker.js`, { register(`${process.env.BASE_URL}service-worker.js`, {
ready() { ready() {
console.log( // console.log(
'App is being served from cache by a service worker.\n' + // 'App is being served from cache by a service worker.\n' +
'For more details, visit https://goo.gl/AFskqB' // 'For more details, visit https://goo.gl/AFskqB'
) // )
}, },
registered() { registered() {
console.log('Service worker has been registered.') //console.log('Service worker has been registered.')
}, },
cached() { cached() {
console.log('Content has been cached for offline use.') //console.log('Content has been cached for offline use.')
}, },
updatefound() { updatefound() {
console.log('New content is downloading.') //console.log('New content is downloading.')
}, },
updated() { updated() {
console.log('New content is available; please refresh.') //console.log('New content is available; please refresh.')
}, },
offline() { offline() {
console.log('No internet connection found. App is running in offline mode.') //console.log('No internet connection found. App is running in offline mode.')
}, },
error(error) { error(error) {
console.error('Error during service worker registration:', error) //console.error('Error during service worker registration:', error)
} }
}) })
} }
...@@ -31,7 +31,6 @@ class FileService { ...@@ -31,7 +31,6 @@ class FileService {
return false return false
} }
} catch (error) { } catch (error) {
console.log(error)
return false return false
} }
} }
......
...@@ -66,7 +66,6 @@ export const useFontStore = defineStore('fonts',{ ...@@ -66,7 +66,6 @@ export const useFontStore = defineStore('fonts',{
} }
} catch (error) { } catch (error) {
console.log('初始化字体信息失败')
} }
}, },
async loadAllReduceFont(index:number=-1){ async loadAllReduceFont(index:number=-1){
...@@ -111,7 +110,6 @@ export const useFontStore = defineStore('fonts',{ ...@@ -111,7 +110,6 @@ export const useFontStore = defineStore('fonts',{
await fontFace.load(); await fontFace.load();
} catch (error) { } catch (error) {
console.log('加载字体报错',error)
} }
document.fonts.add(fontFace) document.fonts.add(fontFace)
this.loaded.push(item.fontFamily) this.loaded.push(item.fontFamily)
......
...@@ -25,14 +25,12 @@ const randomString = (e:number) => { ...@@ -25,14 +25,12 @@ const randomString = (e:number) => {
export const reduceFont = async (fontFile: File) => { export const reduceFont = async (fontFile: File) => {
const buff = await fontFile.arrayBuffer() const buff = await fontFile.arrayBuffer()
console.log(buff)
let fontb = opentype.parse(buff) let fontb = opentype.parse(buff)
let saveWords = fontb.names.fontFamily.zh??fontb.names.fontFamily.en let saveWords = fontb.names.fontFamily.zh??fontb.names.fontFamily.en
saveWords ="A"+saveWords saveWords ="A"+saveWords
let savePosition:any[] = [] let savePosition:any[] = []
for (let i = 0; i < saveWords.length; i++) { for (let i = 0; i < saveWords.length; i++) {
let g=fontb.encoding.charToGlyphIndex(saveWords[i]); let g=fontb.encoding.charToGlyphIndex(saveWords[i]);
console.log(g)
if (g>=0){ if (g>=0){
savePosition.push(fontb.glyphs.get(g)) savePosition.push(fontb.glyphs.get(g))
} }
......
export const ResolveFonts = (item: any): any[] => { export const ResolveFonts = (item: any): any[] => {
const ignore = ['AdobeInvisFont','AdobeHeitiStd-Regular'] const ignore = 'Adobe'
let f = item.layer.typeTool().export() let f = item.layer.typeTool().export()
const { font } = f const { font } = f
const { names } = font const { names } = font
let fonts = names.filter((x:any)=>ignore.indexOf(x)==-1) let fonts = names.filter((x:any)=>x.indexOf(ignore)==-1)
return fonts if(fonts && fonts.length>0){
for (let i = 0; i < fonts.length; i++) {
let x = fonts[i];
if(/^\d+/.test(x)){
x=x.replace(/[0-9]/ig,"")
x=x.replace('-','')
}
fonts[i]=x
}
}
return fonts && fonts.length>0 ? [fonts[0]] :[]
} }
\ No newline at end of file
...@@ -34,7 +34,6 @@ export const ResolveLayer = async (item: any, index: number,offsetLeft:number,of ...@@ -34,7 +34,6 @@ export const ResolveLayer = async (item: any, index: number,offsetLeft:number,of
return element return element
} catch (error) { } catch (error) {
console.log("执行出错",item)
return null return null
} }
} }
\ No newline at end of file
...@@ -89,7 +89,17 @@ export const ResolveText = (item: any, index: number,offsetLeft:number,offsetTop ...@@ -89,7 +89,17 @@ export const ResolveText = (item: any, index: number,offsetLeft:number,offsetTop
domTop -= 10+((leading-1)*fontSize/2) domTop -= 10+((leading-1)*fontSize/2)
} }
let fontName = names.filter((x:any)=>x.indexOf('Adobe')==-1)
if(fontName && fontName.length>0){
for (let i = 0; i < fontName.length; i++) {
let x = fontName[i];
if(/^\d+/.test(x)){
x=x.replace(/[0-9]/ig,"")
x=x.replace('-','')
}
fontName[i]=x
}
}
let element: PPTTextElement = { let element: PPTTextElement = {
id: "text_" + index, id: "text_" + index,
type: 'text', type: 'text',
...@@ -100,7 +110,7 @@ export const ResolveText = (item: any, index: number,offsetLeft:number,offsetTop ...@@ -100,7 +110,7 @@ export const ResolveText = (item: any, index: number,offsetLeft:number,offsetTop
rotate: transformRotate, rotate: transformRotate,
opacity, opacity,
content, content,
defaultFontName: names.join(','), defaultFontName: fontName && fontName.length>0 ? fontName[0]:'',
defaultColor: color, defaultColor: color,
fill: background, fill: background,
lineHeight: leading<1?1:leading, lineHeight: leading<1?1:leading,
......
...@@ -25,7 +25,6 @@ class AliyunUpload { ...@@ -25,7 +25,6 @@ class AliyunUpload {
let result = await oss.put(name,file,{headers}) let result = await oss.put(name,file,{headers})
return 'https://im.oytour.com/'+name//result.url return 'https://im.oytour.com/'+name//result.url
} catch (error) { } catch (error) {
console.log('上传发生异常:',error)
return '' return ''
} }
} }
......
...@@ -154,7 +154,6 @@ const { handleElement, handleElementId } = storeToRefs(mainStore) ...@@ -154,7 +154,6 @@ const { handleElement, handleElementId } = storeToRefs(mainStore)
const handleImageElement = handleElement as Ref<PPTImageElement> const handleImageElement = handleElement as Ref<PPTImageElement>
const handleSizeChange = (val: number) => { const handleSizeChange = (val: number) => {
console.log(`${val} items per page`)
} }
const handleCurrentChange = (val: number) => { const handleCurrentChange = (val: number) => {
datas.queryMsg.pageIndex = val datas.queryMsg.pageIndex = val
......
...@@ -243,7 +243,6 @@ const goBack = (type:any) =>{ ...@@ -243,7 +243,6 @@ const goBack = (type:any) =>{
} }
// 返回是否清空数据 // 返回是否清空数据
const setNewDatas = (type,i) => { const setNewDatas = (type,i) => {
console.log(type,i)
let list = [ let list = [
{ {
id: 'test-slide-1', id: 'test-slide-1',
...@@ -407,7 +406,6 @@ const uploadImageHandler = async ()=>{ ...@@ -407,7 +406,6 @@ const uploadImageHandler = async ()=>{
} }
const thumbnails = useSlidesStore().getThumbnails const thumbnails = useSlidesStore().getThumbnails
console.log('console thumbnails',thumbnails)
if(thumbnails && thumbnails.length>0){ if(thumbnails && thumbnails.length>0){
loadingInstance.value.text='正在上传模板缩略图' loadingInstance.value.text='正在上传模板缩略图'
queryObj.value.PageImage=[] queryObj.value.PageImage=[]
......
...@@ -144,7 +144,7 @@ const beginDownload = async ()=>{ ...@@ -144,7 +144,7 @@ const beginDownload = async ()=>{
} }
fileUrl.value = `https://fileservice.oytour.com/api/img/${searchData.value.sellId}/${rangeArray.join(',')}/${format.value=='png'?'png':'jpg'}/${quality.value}/${useSellTemplateStore().SaleHashCode}` //https://fileservice.oytour.com fileUrl.value = `https://fileservice.oytour.com/api/img/${searchData.value.sellId}/${rangeArray.join(',')}/${format.value=='png'?'png':'jpg'}/${quality.value}/${useSellTemplateStore().SaleHashCode}` //https://fileservice.oytour.com
console.log(fileUrl.value)
nextTick(()=>{ nextTick(()=>{
downloadLink.value.click() downloadLink.value.click()
}) })
......
...@@ -286,7 +286,6 @@ const GetTripFiledData = async () =>{ ...@@ -286,7 +286,6 @@ const GetTripFiledData = async () =>{
y.fixedRatio = true y.fixedRatio = true
} catch (error) { } catch (error) {
console.log(error)
y.fixedRatio = false y.fixedRatio = false
} }
y.src = value[0] y.src = value[0]
...@@ -306,7 +305,6 @@ const GetTripFiledData = async () =>{ ...@@ -306,7 +305,6 @@ const GetTripFiledData = async () =>{
slidesStore.setSlides(slidesData) slidesStore.setSlides(slidesData)
} }
} catch (error) { } catch (error) {
console.log("triptemplateGetTripFiledData", error);
} }
loadingObj.close() loadingObj.close()
} }
...@@ -486,7 +484,6 @@ const GetTripTemplate = async () =>{ ...@@ -486,7 +484,6 @@ const GetTripTemplate = async () =>{
} }
} catch (error) { } catch (error) {
console.log("GetTripTemplateSlide", error);
} }
} }
......
...@@ -50,7 +50,35 @@ ...@@ -50,7 +50,35 @@
<Divider /> <Divider />
<SelectGroup class="row"> <SelectGroup class="row formatFontsBox">
<span class="selectText">
<el-select v-model="richTextAttrs.fontname" placeholder="" filterable
@change="updateFontStyle('fontname', richTextAttrs.fontname)">
<el-option
v-for="item in formatFonts"
:key="item.value"
:label="item.label"
:value="item.value"
:style="{'font-family':item.reduce!=''?item.reduce:item.label}"
/>
</el-select>
</span>
<span class="selectTextInput">
<el-autocomplete
v-model="fontsize"
:fetch-suggestions="(queryString: string, cb: any)=>querySearchFont(queryString,cb)"
class="inline-input w-50"
placeholder="字号"
@select="handleSelect"
@blur="handleSelect"
@keyup.enter="handleSelect">
<template #suffix>
<IconAddText />
</template>
</el-autocomplete>
</span>
</SelectGroup>
<!-- <SelectGroup class="row">
<Select <Select
style="width: 60%;;" style="width: 60%;;"
:value="richTextAttrs.fontname" :value="richTextAttrs.fontname"
...@@ -76,7 +104,7 @@ ...@@ -76,7 +104,7 @@
<IconAddText /> <IconAddText />
</template> </template>
</Select> </Select>
</SelectGroup> </SelectGroup> -->
<ButtonGroup class="row" passive> <ButtonGroup class="row" passive>
<Popover trigger="click" style="width: 30%;"> <Popover trigger="click" style="width: 30%;">
<template #content> <template #content>
...@@ -130,7 +158,7 @@ ...@@ -130,7 +158,7 @@
<script lang="ts" setup> <script lang="ts" setup>
import { ref } from 'vue' import { ref } from 'vue'
import { storeToRefs } from 'pinia' import { storeToRefs } from 'pinia'
import { useMainStore, useSlidesStore } from '@/store' import { useFontStore, useMainStore, useSlidesStore } from '@/store'
import type { PPTElement, PPTElementOutline, TableCell } from '@/types/slides' import type { PPTElement, PPTElementOutline, TableCell } from '@/types/slides'
import emitter, { EmitterEvents } from '@/utils/emitter' import emitter, { EmitterEvents } from '@/utils/emitter'
import { WEB_FONTS } from '@/configs/font' import { WEB_FONTS } from '@/configs/font'
...@@ -151,6 +179,7 @@ import Popover from '@/components/Popover.vue' ...@@ -151,6 +179,7 @@ import Popover from '@/components/Popover.vue'
const slidesStore = useSlidesStore() const slidesStore = useSlidesStore()
const { richTextAttrs, availableFonts, activeElementList } = storeToRefs(useMainStore()) const { richTextAttrs, availableFonts, activeElementList } = storeToRefs(useMainStore())
const { formatFonts } = storeToRefs(useFontStore())
const { addHistorySnapshot } = useHistorySnapshot() const { addHistorySnapshot } = useHistorySnapshot()
...@@ -164,6 +193,15 @@ const fontSizeOptions = [ ...@@ -164,6 +193,15 @@ const fontSizeOptions = [
'36px', '40px', '44px', '48px', '54px', '60px', '66px', '72px', '76px', '36px', '40px', '44px', '48px', '54px', '60px', '66px', '72px', '76px',
'80px', '88px', '96px', '104px', '112px', '120px', '80px', '88px', '96px', '104px', '112px', '120px',
] ]
const fontSizes = ref<{label:string,value:string}[]>([])
for(let i=0;i<fontSizeOptions.length;i++){
let value = fontSizeOptions[i].split('px')
let obj = {
label: value[0],
value: value[0],
}
fontSizes.value.push(obj)
}
const fill = ref('#fff') const fill = ref('#fff')
const outline = ref<PPTElementOutline>({ const outline = ref<PPTElementOutline>({
...@@ -171,6 +209,7 @@ const outline = ref<PPTElementOutline>({ ...@@ -171,6 +209,7 @@ const outline = ref<PPTElementOutline>({
color: '#fff', color: '#fff',
style: 'solid', style: 'solid',
}) })
const fontsize = ref<string>(richTextAttrs.value.fontsize.replace('px',''))
// 批量修改填充色(表格元素为单元格填充、音频元素为图标颜色) // 批量修改填充色(表格元素为单元格填充、音频元素为图标颜色)
const updateFill = (value: string) => { const updateFill = (value: string) => {
...@@ -222,6 +261,9 @@ const updateOutline = (outlineProps: Partial<PPTElementOutline>) => { ...@@ -222,6 +261,9 @@ const updateOutline = (outlineProps: Partial<PPTElementOutline>) => {
const updateFontStyle = (command: string, value: string) => { const updateFontStyle = (command: string, value: string) => {
for (const el of activeElementList.value) { for (const el of activeElementList.value) {
if (el.type === 'text' || (el.type === 'shape' && el.text?.content)) { if (el.type === 'text' || (el.type === 'shape' && el.text?.content)) {
if(command=='fontname' && value){
useFontStore().loadFontToDocument([value])
}
emitter.emit(EmitterEvents.RICH_TEXT_COMMAND, { target: el.id, action: { command, value } }) emitter.emit(EmitterEvents.RICH_TEXT_COMMAND, { target: el.id, action: { command, value } })
} }
if (el.type === 'table') { if (el.type === 'table') {
...@@ -239,6 +281,25 @@ const updateFontStyle = (command: string, value: string) => { ...@@ -239,6 +281,25 @@ const updateFontStyle = (command: string, value: string) => {
} }
} }
} }
const handleSelect = () => {
let value = fontsize.value+'px'
updateFontStyle('fontsize', value as string)
}
const querySearchFont = (queryString: string, cb: any) => {
let results = queryString? fontSizes.value.filter(createFilter(queryString)) : fontSizes.value
cb(results)
}
const createFilter = (queryString: string) => {
return (restaurant:any) => {
return (
restaurant.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0
)
}
}
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
...@@ -251,4 +312,13 @@ const updateFontStyle = (command: string, value: string) => { ...@@ -251,4 +312,13 @@ const updateFontStyle = (command: string, value: string) => {
.font-size-btn { .font-size-btn {
padding: 0; padding: 0;
} }
.formatFontsBox{
position: relative;
}
.formatFontsBox::v-deep(.el-input__wrapper):hover{
border: 0;
}
.formatFontsBox::v-deep(.el-input__wrapper){
border-radius: 0px !important;
}
</style> </style>
\ No newline at end of file
...@@ -442,7 +442,6 @@ ...@@ -442,7 +442,6 @@
onLineChangeHandler() onLineChangeHandler()
} }
} catch (error) { } catch (error) {
console.log("GetLineListAsync", error);
} }
} }
...@@ -468,7 +467,6 @@ ...@@ -468,7 +467,6 @@
Series.value = response.data.data; Series.value = response.data.data;
} }
} catch (error) { } catch (error) {
console.log("GetSeriesListAsync", error);
} }
} }
...@@ -482,7 +480,6 @@ ...@@ -482,7 +480,6 @@
dispositionObj.value = response.data.data; dispositionObj.value = response.data.data;
} }
} catch (error) { } catch (error) {
console.log("GetTemplateConfigData", error);
} }
} }
GetTemplateConfigDatas() GetTemplateConfigDatas()
......
...@@ -430,7 +430,6 @@ const applyBackgroundAllSlide = () => { ...@@ -430,7 +430,6 @@ const applyBackgroundAllSlide = () => {
// 设置主题 // 设置主题
const updateTheme = (themeProps: Partial<SlideTheme>) => { const updateTheme = (themeProps: Partial<SlideTheme>) => {
console.log(themeProps)
slidesStore.setTheme(themeProps) slidesStore.setTheme(themeProps)
} }
......
...@@ -145,7 +145,6 @@ watch(viewportRatio, reload()) ...@@ -145,7 +145,6 @@ watch(viewportRatio, reload())
const getDomeWH = async () => { const getDomeWH = async () => {
if(refThumbnails.value){ if(refThumbnails.value){
let height = await refThumbnails.value.offsetHeight; let height = await refThumbnails.value.offsetHeight;
console.log(height,'-------行程特色高')
window.parent.postMessage(`行程特色高-${height}`, `${domainManager().notificationUrl}`); window.parent.postMessage(`行程特色高-${height}`, `${domainManager().notificationUrl}`);
} }
} }
...@@ -172,7 +171,6 @@ const GetTripFiled = async () =>{ ...@@ -172,7 +171,6 @@ const GetTripFiled = async () =>{
TempDataSourceStore.setTemplateDataSource(TemplateRes.data.data) TempDataSourceStore.setTemplateDataSource(TemplateRes.data.data)
} }
} catch (error) { } catch (error) {
console.log("TemplateGetTripFiled", error);
} }
} }
if(searchData.value.TemplateType!=2&&!query().ViewSlideshow) GetTripFiled() if(searchData.value.TemplateType!=2&&!query().ViewSlideshow) GetTripFiled()
......
...@@ -457,7 +457,7 @@ ...@@ -457,7 +457,7 @@
lines.value = response.data.data; lines.value = response.data.data;
} }
} catch (error) { } catch (error) {
console.log("getLinesHandler", error);
} }
} }
...@@ -508,7 +508,7 @@ ...@@ -508,7 +508,7 @@
// } // }
} }
} catch (error) { } catch (error) {
console.log("getTemplateQuery", error);
} }
} }
const scrollingHandler = () =>{ const scrollingHandler = () =>{
......
...@@ -89,7 +89,6 @@ const showElementHandler= (items:any)=>{ ...@@ -89,7 +89,6 @@ const showElementHandler= (items:any)=>{
let leading = (Math.round((lineHeight * transform.yy) * 100) * 0.01) / fontSize let leading = (Math.round((lineHeight * transform.yy) * 100) * 0.01) / fontSize
let objectEFFFects = x.layer.objectEffects?x.layer.objectEffects():null let objectEFFFects = x.layer.objectEffects?x.layer.objectEffects():null
var div = document.createElement("div"); var div = document.createElement("div");
console.log(f,x,objectEFFFects)
div.innerText = value div.innerText = value
div.style.top = x.coords.top+"px" div.style.top = x.coords.top+"px"
div.style.right = x.coords.right+"px" div.style.right = x.coords.right+"px"
...@@ -212,7 +211,6 @@ const getGradient=(obj:any)=>{ ...@@ -212,7 +211,6 @@ const getGradient=(obj:any)=>{
}) })
linear+=")" linear+=")"
console.log(GrFl)
return linear; return linear;
} }
const getFillColor = (node:any) => { const getFillColor = (node:any) => {
......
...@@ -53,10 +53,6 @@ const loadSliders = async ()=>{ ...@@ -53,10 +53,6 @@ const loadSliders = async ()=>{
viewportRatio.value = h.value/w.value viewportRatio.value = h.value/w.value
if(viewportRatio.value>=1) VIEWPORT_VER_SIZE.Value=w.value if(viewportRatio.value>=1) VIEWPORT_VER_SIZE.Value=w.value
if(viewportRatio.value<1) VIEWPORT_SIZE.Value=w.value if(viewportRatio.value<1) VIEWPORT_SIZE.Value=w.value
console.log(viewportRatio.value,VIEWPORT_SIZE.Value,VIEWPORT_VER_SIZE.Value)
console.log(viewportRatio.value < 1
? VIEWPORT_SIZE.Value
: VIEWPORT_VER_SIZE.Value)
}else{ }else{
viewportRatio.value = dataObj.TempType==1? 0.7069:1.414 viewportRatio.value = dataObj.TempType==1? 0.7069:1.414
} }
......
...@@ -142,7 +142,6 @@ ...@@ -142,7 +142,6 @@
} }
}) })
const setTemplateType = (Id:number) => { const setTemplateType = (Id:number) => {
console.log(Id)
queryObj.TemplateType = Id queryObj.TemplateType = Id
searchData.value.SellTemplateType = Id searchData.value.SellTemplateType = Id
queryObj.pageIndex = 1 queryObj.pageIndex = 1
......
...@@ -155,7 +155,6 @@ const backInquireHandler = () => { ...@@ -155,7 +155,6 @@ const backInquireHandler = () => {
else breadPeelingInquire(0, 0); else breadPeelingInquire(0, 0);
}; };
const breadPeelingInquire = (FileId: number, index: number) => { const breadPeelingInquire = (FileId: number, index: number) => {
console.log(FileId,index)
selectAll.value = false; selectAll.value = false;
selectedDatas.value = []; selectedDatas.value = [];
navigations.value.splice(index + 1, navigations.value.length - 1); navigations.value.splice(index + 1, navigations.value.length - 1);
...@@ -305,7 +304,6 @@ const checkPositionHandler = (n:any)=>{ ...@@ -305,7 +304,6 @@ const checkPositionHandler = (n:any)=>{
} }
} }
const tableScrollHandler = ()=>{ const tableScrollHandler = ()=>{
console.log('share 通知到底底部')
if(pageCount.value>queryObj.pageIndex){ if(pageCount.value>queryObj.pageIndex){
queryObj.pageIndex++ queryObj.pageIndex++
getDocumentData() getDocumentData()
......
...@@ -83,7 +83,6 @@ const searchHandler = ()=>{ ...@@ -83,7 +83,6 @@ const searchHandler = ()=>{
if(searchKey.value!=''){ if(searchKey.value!=''){
lastKeyword.value = searchKey.value lastKeyword.value = searchKey.value
let task:any[] = [] let task:any[] = []
console.log(searchType)
if(searchType.value=='0'||searchType.value=='1') task.push(searchByType(1,searchType.value=='0'?3:1000)) if(searchType.value=='0'||searchType.value=='1') task.push(searchByType(1,searchType.value=='0'?3:1000))
if(searchType.value=='0'||searchType.value=='2') task.push(searchByType(2,searchType.value=='0'?3:1000)) if(searchType.value=='0'||searchType.value=='2') task.push(searchByType(2,searchType.value=='0'?3:1000))
Promise.all(task).then(r=>{ Promise.all(task).then(r=>{
...@@ -98,7 +97,6 @@ const searchHandler = ()=>{ ...@@ -98,7 +97,6 @@ const searchHandler = ()=>{
} }
loading.value = false loading.value = false
}).catch(()=>{ }).catch(()=>{
console.log('异常')
loading.value = false loading.value = false
}) })
}else{ }else{
......
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