Commit 7dea8b6d authored by youjie's avatar youjie

禁止更改模版 版型

parent df05b9d1
......@@ -223,7 +223,7 @@
TripCityList: [], //行程城市
TripMapList: [],
NotQueryCityList:[],//使用系统中的经纬度城市
FeaturePageType:2,//1横版 2竖版
FeaturePageType:0,//1横版 2竖版
},
//行程
FeatureData: {
......@@ -271,7 +271,7 @@
DayList: [],
isFileUpload: false, //是否是一键上传行程
IsUpdateTrip: 0, //是否联动行程特色
FeaturePageType: 1, //1横版 2竖版
FeaturePageType: 0, //1横版 2竖版
},
PostPrice: "", //报价信息
//线路
......@@ -893,6 +893,7 @@
this.PostConfig.CountryID = tempData.CountryID;
this.PostConfig.TeamType = tempData.TeamType;
this.PostConfig.FeaturePageType = tempData.FeaturePageType;
this.PostConfig.FeatureType = tempData.Feature&&tempData.Feature.FeatureType?tempData.Feature.FeatureType:8
//视频地址
this.PostConfig.VideoStr = tempData.VideoStr;
......
......@@ -183,8 +183,10 @@
<span class="TDTextspan" :class="{'showOther':TeamType==3}">版型</span>
<span :class="{'showOther':TeamType==3}">
<el-form-item prop="FeaturePageType">
<el-select class="w90" placeholder="请选择版型" v-model="dataAll.FeaturePageType"
@change="getFeaturePageType()">
<el-select class="w90" placeholder="请选择版型"
:disabled="isTemplate"
v-model="dataAll.FeaturePageType"
@change="PromptTemplate()" @focus="">
<el-option label="横版" :value="1"></el-option>
<el-option label="竖版" :value="2"></el-option>
</el-select>
......@@ -263,7 +265,8 @@
return {
//折叠展开
SelectDefaultValue: 0,
isFold: ""
isFold: "",
isTemplate: false,
};
},
components: {
......@@ -272,6 +275,22 @@
travelDaysHV
},
methods: {
PromptTemplate(){
this.$confirm("一旦选择不可更改, 确认?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
this.isTemplate = true
this.getFeaturePageType()
})
.catch(() => {
this.isTemplate = false
this.dataAll.FeaturePageType = 0
});
},
getFeaturePageType(){
this.subConfig.DayList.forEach(x=>{
x.ScenicArray.forEach(y=>{
......@@ -502,8 +521,9 @@
deep: true,
immediate: true,
handler: function (newVal, oldVal) {
if(!this.dataAll.FeaturePageType){
this.isTemplate = false
}else this.isTemplate = true
}
},
'subConfig.DayList': {
......
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