Commit e94ada8c authored by zhengke's avatar zhengke

修复 匹配数据bug

parent 43168dbf
...@@ -209,6 +209,7 @@ const ConfirmCreation = () => { ...@@ -209,6 +209,7 @@ const ConfirmCreation = () => {
}) })
} }
if(setTemplateType.value==1&&datas.TemplateBoxRec&&datas.TemplateBoxRec.Id==6){ if(setTemplateType.value==1&&datas.TemplateBoxRec&&datas.TemplateBoxRec.Id==6){
searchData.value.isTeamManage = false
return openNewBlank(`/market/create/trip`) return openNewBlank(`/market/create/trip`)
} }
if(setTemplateType.value==2&&!datas.TemplateBoxRec&&!CustomSwitch.value) { if(setTemplateType.value==2&&!datas.TemplateBoxRec&&!CustomSwitch.value) {
...@@ -218,6 +219,7 @@ const ConfirmCreation = () => { ...@@ -218,6 +219,7 @@ const ConfirmCreation = () => {
}) })
} }
if(setTemplateType.value==2&&datas.TemplateBoxRec&&datas.TemplateBoxRec.Id==7) { if(setTemplateType.value==2&&datas.TemplateBoxRec&&datas.TemplateBoxRec.Id==7) {
searchData.value.isTeamManage = false
return openNewBlank(`/market/create/ad`) return openNewBlank(`/market/create/ad`)
} }
if(setTemplateType.value==2&&CustomSwitch.value&&(!datas.CustomSize.width||!datas.CustomSize.height)){ if(setTemplateType.value==2&&CustomSwitch.value&&(!datas.CustomSize.width||!datas.CustomSize.height)){
...@@ -277,6 +279,7 @@ const addTemplate = (type:number) =>{ ...@@ -277,6 +279,7 @@ const addTemplate = (type:number) =>{
if(setTemplateType.value==2) Title = '广告名称' if(setTemplateType.value==2) Title = '广告名称'
slidesStore.setTitle(Title) slidesStore.setTitle(Title)
slidesStore.setSlides(list) slidesStore.setSlides(list)
searchData.value.isTeamManage = false
router.push({ router.push({
path:`/create_template/${type}` path:`/create_template/${type}`
}) })
......
...@@ -179,11 +179,6 @@ const ToggleImg = (text: String) => { ...@@ -179,11 +179,6 @@ const ToggleImg = (text: String) => {
} }
} }
const addTemplate = (type:number) =>{
router.push({
path:`/create_template/${type}`
})
}
// 图片滚动翻页 // 图片滚动翻页
const handleScroll = (e) =>{ const handleScroll = (e) =>{
......
...@@ -67,7 +67,8 @@ ...@@ -67,7 +67,8 @@
</div> </div>
<div class="text-info text-small text-center q-pt-xs">你的创作空间</div> <div class="text-info text-small text-center q-pt-xs">你的创作空间</div>
<template v-if="!multipleUsers || multipleUsers.length==0"> <template v-if="!multipleUsers || multipleUsers.length==0">
<div class="q-mb-md" style="padding: 0 50px;"> <div class="q-mb-md"
:style="{'padding':currentLogin==2?'0 50px':'0 87px'}">
<passwordLogin v-if="currentLogin==1" @submitForm="(multUser)=> {multipleUsers=multUser}"></passwordLogin> <passwordLogin v-if="currentLogin==1" @submitForm="(multUser)=> {multipleUsers=multUser}"></passwordLogin>
<wechatLogin :current="currentLogin" v-show="currentLogin==2"></wechatLogin> <wechatLogin :current="currentLogin" v-show="currentLogin==2"></wechatLogin>
<div class="q-pt-lg"> <div class="q-pt-lg">
......
...@@ -115,7 +115,6 @@ const initCreateTemplate = ()=>{ ...@@ -115,7 +115,6 @@ const initCreateTemplate = ()=>{
const init =()=>{ const init =()=>{
//销售修改行程 //销售修改行程
searchData.value.isTeamManage = false
if(currentRoute.path.includes('/editor/') && params.id) initSellEditor() if(currentRoute.path.includes('/editor/') && params.id) initSellEditor()
else if(currentRoute.path.includes('/editor/')) initSellCreate() else if(currentRoute.path.includes('/editor/')) initSellCreate()
else if(currentRoute.path.includes('/team_editor/') && params.tid) initOpCreate() else if(currentRoute.path.includes('/team_editor/') && params.tid) initOpCreate()
......
...@@ -280,13 +280,14 @@ const goBack = (type:any) =>{ ...@@ -280,13 +280,14 @@ const goBack = (type:any) =>{
}else if(model.value==2){ }else if(model.value==2){
SaleExit(type) SaleExit(type)
}else window.history.back() }else window.history.back()
searchData.value.isTeamManage = false
}).catch(() => {}) }).catch(() => {})
} }
} }
const SaleExit = (type:any) => { const SaleExit = (type:any) => {
searchData.value.isTeamManage = false
setNewDatas(type,0) setNewDatas(type,0)
mainStore.setToolbarState(ToolbarStates.SLIDE_DESIGN) mainStore.setToolbarState(ToolbarStates.SLIDE_DESIGN)
let path ='/' let path ='/'
......
<template> <template>
<div ref="marketRef" class="Market-from"> <div ref="marketRef" class="Market-from">
<div class="Market-fromBj"></div> <div class="Market-fromBj"></div>
<div class=""> <div style="position: relative;z-index: 2;">
<div :class="[datas.scrollTop>200?'MarketHeader':'']"> <div :class="[datas.scrollTop>200?'MarketHeader':'']">
<!-- <adHeader v-if="!userInfo.iv&&!userInfo.it&&!userInfo.OpenScanCode" style="position: relative;z-index: 2;" <!-- <adHeader v-if="!userInfo.iv&&!userInfo.it&&!userInfo.OpenScanCode" style="position: relative;z-index: 2;"
@close="closeScanCode" @scanCode="isPublicAccount=true"></adHeader> --> @close="closeScanCode" @scanCode="isPublicAccount=true"></adHeader> -->
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
</el-menu> </el-menu>
<el-button class="full-width pingfangr text-weight-bolder" @click="forwardSpace" style="font-size: 14px !important;" icon="arrow-left">返回工作台</el-button> <el-button class="full-width pingfangr text-weight-bolder" @click="forwardSpace" style="font-size: 14px !important;" icon="arrow-left">返回工作台</el-button>
</div> </div>
<el-scrollbar v-if="path!='/a/c'&&path!='/a/u'" class="col full-height user-center-body" wrap-style="overflow-x:unset;" view-style="padding-bottom:30px;"> <el-scrollbar v-if="path=='/a'||path=='/a/w'||path=='/a/info'||path=='/a/diss'" class="col full-height user-center-body" wrap-style="overflow-x:unset;" view-style="padding-bottom:30px;">
<router-view /> <router-view />
</el-scrollbar> </el-scrollbar>
<div v-else class="col full-height user-center-body" view-style="padding-bottom:30px;"> <div v-else class="col full-height user-center-body" view-style="padding-bottom:30px;">
...@@ -65,7 +65,7 @@ if(menus.value.length==0){ ...@@ -65,7 +65,7 @@ if(menus.value.length==0){
watch(() => router.currentRoute.value.path, (toPath) => { watch(() => router.currentRoute.value.path, (toPath) => {
if(!userInfo.value.showCloudDisk&&toPath=='/a/c'){ if(!userInfo.value.showCloudDisk&&toPath!='/a'&&toPath!='/a/w'&&toPath!='/a/info'&&toPath!='/a/diss'){
userInfo.value.showCloudDisk = true userInfo.value.showCloudDisk = true
location.reload() location.reload()
}else userInfo.value.showCloudDisk = false }else userInfo.value.showCloudDisk = false
......
...@@ -440,6 +440,7 @@ const addTemplate = (type:number) =>{ ...@@ -440,6 +440,7 @@ const addTemplate = (type:number) =>{
// searchData.value.TemplateType = type // searchData.value.TemplateType = type
// marketStore.setMarket(!market) // marketStore.setMarket(!market)
// searchData.value.TempId = 0 // searchData.value.TempId = 0
searchData.value.isTeamManage = true
slidesStore.ClearSlides() slidesStore.ClearSlides()
router.push({ router.push({
path:`/create_template/${type}` path:`/create_template/${type}`
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
</el-menu> </el-menu>
<el-button class="full-width pingfangr text-weight-bolder" @click="forwardSpace" style="font-size: 14px !important;" icon="arrow-left">返回工作台</el-button> <el-button class="full-width pingfangr text-weight-bolder" @click="forwardSpace" style="font-size: 14px !important;" icon="arrow-left">返回工作台</el-button>
</div> </div>
<el-scrollbar v-if="path!='/u/cloudDiskSpace'" class="col full-height user-center-body" wrap-style="overflow-x:unset;" view-style="padding-bottom:30px;"> <el-scrollbar v-if="path=='/u'||path=='/u/setting'" class="col full-height user-center-body" wrap-style="overflow-x:unset;" view-style="padding-bottom:30px;">
<router-view /> <router-view />
</el-scrollbar> </el-scrollbar>
<div v-else class="col full-height user-center-body" view-style="padding-bottom:30px;"> <div v-else class="col full-height user-center-body" view-style="padding-bottom:30px;">
...@@ -49,7 +49,7 @@ const forwardSpace = () => router.push('/space') ...@@ -49,7 +49,7 @@ const forwardSpace = () => router.push('/space')
watch(() => router.currentRoute.value.path, (toPath) => { watch(() => router.currentRoute.value.path, (toPath) => {
if(!userInfo.value.showCloudDisk&&toPath=='/u/cloudDiskSpace'){ if(!userInfo.value.showCloudDisk&&toPath!='/u'&&toPath!='/u/setting'){
userInfo.value.showCloudDisk = true userInfo.value.showCloudDisk = true
location.reload() location.reload()
}else userInfo.value.showCloudDisk = false }else userInfo.value.showCloudDisk = false
......
...@@ -108,7 +108,7 @@ const handleSelectElement = (e: MouseEvent | TouchEvent, canMove = true) => { ...@@ -108,7 +108,7 @@ const handleSelectElement = (e: MouseEvent | TouchEvent, canMove = true) => {
if (props.elementInfo.lock) return if (props.elementInfo.lock) return
e.stopPropagation() e.stopPropagation()
if(!searchData.value.isTeamManage) mainStore.setToolbarState(ToolbarStates.EL_NORMALDATA) // if(!searchData.value.isTeamManage) mainStore.setToolbarState(ToolbarStates.EL_NORMALDATA)
props.selectElement(e, props.elementInfo, canMove) props.selectElement(e, props.elementInfo, canMove)
} }
......
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