Commit 7dea8b6d authored by youjie's avatar youjie

禁止更改模版 版型

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