Commit 40b3ffdc authored by youjie's avatar youjie

修复放大缩小bug

parent ed3366af
...@@ -204,6 +204,7 @@ ...@@ -204,6 +204,7 @@
</div> </div>
<div class="dayPage-box row"> <div class="dayPage-box row">
<div class="dayPage-form relative" v-if="!item.isHide"> <div class="dayPage-form relative" v-if="!item.isHide">
<template v-if="isTemplate">
<el-tooltip class="item" effect="dark" content="放大行程" placement="top"> <el-tooltip class="item" effect="dark" content="放大行程" placement="top">
<span class="el-icon-full-screen absolute BlowUpTravelDays" <span class="el-icon-full-screen absolute BlowUpTravelDays"
@click="clickBlowUpTravelDays(item)"></span> @click="clickBlowUpTravelDays(item)"></span>
...@@ -222,6 +223,8 @@ ...@@ -222,6 +223,8 @@
<span v-if="item.IsBlowUp" class="el-icon-error BlowUpTravelDaysClose" <span v-if="item.IsBlowUp" class="el-icon-error BlowUpTravelDaysClose"
@click="clickBlowUpTravelDays(item)"></span> @click="clickBlowUpTravelDays(item)"></span>
</div> </div>
</template>
<span v-else style="color: red;">请选择版型</span>
</div> </div>
<div class="newDayContent" <div class="newDayContent"
:style="{'width':!item.isHide?'520px':'1020px'}"> :style="{'width':!item.isHide?'520px':'1020px'}">
...@@ -276,23 +279,25 @@ ...@@ -276,23 +279,25 @@
}, },
methods: { methods: {
PromptTemplate(){ PromptTemplate(){
let _this = this
this.$confirm("一旦选择不可更改, 确认?", "提示", { this.$confirm("一旦选择不可更改, 确认?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning" type: "warning"
}) })
.then(() => { .then(() => {
this.isTemplate = true _this.isTemplate = true
this.getFeaturePageType() _this.getFeaturePageType()
}) })
.catch(() => { .catch(() => {
this.isTemplate = false _this.isTemplate = false
this.dataAll.FeaturePageType = 0 _this.dataAll.FeaturePageType = 0
}); });
}, },
getFeaturePageType(){ getFeaturePageType(){
this.subConfig.DayList.forEach(x=>{ this.subConfig.DayList.forEach(x=>{
x.IsBlowUp = false
x.ScenicArray.forEach(y=>{ x.ScenicArray.forEach(y=>{
y.ScenicJson = { y.ScenicJson = {
x: 0, x: 0,
...@@ -361,6 +366,8 @@ ...@@ -361,6 +366,8 @@
dayItem.WarmTipObj = warmTipObj; dayItem.WarmTipObj = warmTipObj;
dayItem.isHide = false; dayItem.isHide = false;
dayItem.isRead = false; dayItem.isRead = false;
dayItem.IsBlowUp = false
dayItem.zoom = 1
if(this.dataAll.FeaturePageType==1){ if(this.dataAll.FeaturePageType==1){
dayItem.zoom = 0.285 dayItem.zoom = 0.285
} }
......
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