Commit 5371491a authored by 黄奎's avatar 黄奎

页面修改

parent ae77d8ca
<style>
@import url("../../../assets/css/tripIndexNew2.css");
.dayPage-box {
margin-left: 20px;
position: relative;
......@@ -22,16 +23,20 @@
left: -8px;
top: 17px;
}
.TravelDayContentThree .el-textarea__inner{
.TravelDayContentThree .el-textarea__inner {
/* width: ; */
}
.TravelDayContentThree .days-box .leftDayLine{
.TravelDayContentThree .days-box .leftDayLine {
flex-shrink: 0;
}
.dayPage-form{
.dayPage-form {
width: 500px;
padding: 10px 0;
}
.TravelDaysTrip .el-form-item {
display: inline-block;
}
......@@ -77,7 +82,8 @@
.TC-newTop {
margin-top: 40px !important;
}
.BlowUpTravelDays{
.BlowUpTravelDays {
position: absolute;
right: 10px;
top: -19px;
......@@ -91,10 +97,12 @@
cursor: pointer;
font-size: 15px;
}
.BlowUpTravelDays:hover{
.BlowUpTravelDays:hover {
color: #fff;
}
.BlowUpTravelDaysBox{
.BlowUpTravelDaysBox {
position: fixed;
top: 0;
left: 0;
......@@ -103,11 +111,12 @@
z-index: 10000;
padding: 0 10px;
overflow-y: scroll;
background: rgba(23,23,23,0.5);
background: rgba(23, 23, 23, 0.5);
display: flex;
justify-content: center;
}
.BlowUpTravelDaysClose{
.BlowUpTravelDaysClose {
position: fixed;
width: 40px;
right: 50px;
......@@ -136,6 +145,7 @@
<span class="TDInputspan">
<el-form-item prop="DayNum">
<el-input class="w100 LowNum" v-model="subConfig.DayNum" maxlength="2"
:disabled="dataAll&&dataAll.OfferId&&dataAll.OfferId>0"
@keyup.native="checkInteger(subConfig,'DayNum');createLineTrip()">
<template slot="append">{{$t('hotel.hotel_day')}}</template>
</el-input>
......@@ -180,13 +190,12 @@
</el-form-item>
</span> -->
<template v-if="true">
<span class="TDTextspan" :class="{'showOther':TeamType==3}">{{$t('objFill.v101.myOrdersAllType.banxing')}}</span>
<span class="TDTextspan"
:class="{'showOther':TeamType==3}">{{$t('objFill.v101.myOrdersAllType.banxing')}}</span>
<span :class="{'showOther':TeamType==3}">
<el-form-item prop="FeaturePageType">
<el-select class="w90" :placeholder="$t('objFill.v101.myOrdersAllType.qingxuanzbx')"
:disabled="isTemplate"
v-model="dataAll.FeaturePageType"
@change="PromptTemplate()" @focus="">
:disabled="isTemplate" v-model="dataAll.FeaturePageType" @change="PromptTemplate()">
<el-option :label="$t('objFill.v101.myOrdersAllType.hengban')" :value="1"></el-option>
<el-option :label="$t('objFill.v101.myOrdersAllType.shuban')" :value="2"></el-option>
</el-select>
......@@ -205,7 +214,8 @@
<div class="dayPage-box row">
<div class="dayPage-form relative" v-if="!item.isHide">
<template v-if="isTemplate">
<el-tooltip class="item" effect="dark" :content="$t('objFill.v101.myOrdersAllType.fangdaxingc')" placement="top">
<el-tooltip class="item" effect="dark" :content="$t('objFill.v101.myOrdersAllType.fangdaxingc')"
placement="top">
<span class="el-icon-full-screen absolute BlowUpTravelDays"
@click="clickBlowUpTravelDays(item)"></span>
</el-tooltip>
......@@ -226,8 +236,7 @@
</template>
<span v-else style="color: red;">{{$t('objFill.v101.myOrdersAllType.qingxuanzbx')}}</span>
</div>
<div class="newDayContent"
:style="{'width':!item.isHide?'520px':'1020px'}">
<div class="newDayContent" :style="{'width':!item.isHide?'520px':'1020px'}">
<travelDaysTrip :dataAll="dataAll" v-bind:dayObj="item" v-bind:CurrentIndex="index"
v-bind:TotalCount="subConfig.DayList.length" v-bind:isOpenGroup="isOpenGroup"
v-bind:AllCityList="AllCityList" v-bind:StartCity="StartCity" v-bind:UseTypeArray="UseTypeArray"
......@@ -278,7 +287,7 @@
travelDaysHV
},
methods: {
PromptTemplate(){
PromptTemplate() {
let _this = this
this.$confirm(this.$t('objFill.v101.myOrdersAllType.yidanxzbkgg'), this.$t('tips.tips'), {
confirmButtonText: this.$t('pub.sureBtn'),
......@@ -295,33 +304,32 @@
});
},
getFeaturePageType(){
this.subConfig.DayList.forEach(x=>{
getFeaturePageType() {
this.subConfig.DayList.forEach(x => {
x.IsBlowUp = false
x.ScenicArray.forEach(y=>{
x.ScenicArray.forEach(y => {
y.ScenicJson = {
x: 0,
y:0
y: 0
}
})
if(this.dataAll.FeaturePageType==1){
if (this.dataAll.FeaturePageType == 1) {
x.zoom = 0.285
}
if(this.dataAll.FeaturePageType==2){
if (this.dataAll.FeaturePageType == 2) {
x.zoom = 0.40
}
})
this.$forceUpdate()
},
clickBlowUpTravelDays(item){
item.IsBlowUp=!item.IsBlowUp
if(item.IsBlowUp) {
if(this.dataAll.FeaturePageType==1) item.zoom = 0.68
if(this.dataAll.FeaturePageType==2) item.zoom = 1
}
else{
if(this.dataAll.FeaturePageType==1) item.zoom = 0.285
if(this.dataAll.FeaturePageType==2) item.zoom = 0.40
clickBlowUpTravelDays(item) {
item.IsBlowUp = !item.IsBlowUp
if (item.IsBlowUp) {
if (this.dataAll.FeaturePageType == 1) item.zoom = 0.68
if (this.dataAll.FeaturePageType == 2) item.zoom = 1
} else {
if (this.dataAll.FeaturePageType == 1) item.zoom = 0.285
if (this.dataAll.FeaturePageType == 2) item.zoom = 0.40
}
this.$forceUpdate()
},
......@@ -368,10 +376,10 @@
dayItem.isRead = false;
dayItem.IsBlowUp = false
dayItem.zoom = 1
if(this.dataAll.FeaturePageType==1){
if (this.dataAll.FeaturePageType == 1) {
dayItem.zoom = 0.285
}
if(this.dataAll.FeaturePageType==2){
if (this.dataAll.FeaturePageType == 2) {
dayItem.zoom = 0.40
}
var hotelObj = this.$tripUtils.hotelObj();
......@@ -499,7 +507,7 @@
TrafficList: TrafficList,
WarmTipList: WarmTipList,
TitleList: TitleList,
IsUpdateTrip:this.subConfig.IsUpdateTrip,
IsUpdateTrip: this.subConfig.IsUpdateTrip,
FeaturePageType: this.dataAll.FeaturePageType
};
this.HotelList = HotelList;
......@@ -528,9 +536,9 @@
deep: true,
immediate: true,
handler: function (newVal, oldVal) {
if(!this.dataAll.FeaturePageType){
if (!this.dataAll.FeaturePageType) {
this.isTemplate = false
}else this.isTemplate = true
} else this.isTemplate = true
}
},
'subConfig.DayList': {
......@@ -544,8 +552,7 @@
this.createLineTrip();
},
//监听直采和非直采的编号
getLineId(newValue, oldValue) {
},
getLineId(newValue, oldValue) {},
subConfig: {
handler: function (newValue, oldValue) {
this.emitData();
......
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