Commit b3a21bbc authored by 黄奎's avatar 黄奎

新增切换提示

parent 0429b4e8
......@@ -589,11 +589,9 @@
},
//切换tab事件
clickFeature(item) {
let state = this.FeatureData.FeatureType
if ((state === 4 && item.TypeState === 5) || (state === 4 && item.TypeState === 6) || (state === 4 && item
.TypeState ===
7)) {
this.$confirm('尊敬的用户,行程特色“1”切换为行程特色“2”将会清空行程特色“1”里面的所有内容,您确定切换吗?', {
let state = this.FeatureData.FeatureType;
if (item.TypeState != state) {
this.$confirm('切换类型将清空以前的行程特色,您确定切换吗?', {
confirmButtonText: this.$t('pub.sureBtn'),
cancelButtonText: this.$t('pub.cancelBtn'),
type: 'warning'
......@@ -611,11 +609,11 @@
x.isShow = false;
}
});
this.FeatureData.FeatureHtmlJson = null
this.FeatureData.FeatureHtmlJsonDelete = null
this.FeatureData.lastFeatureType = this.FeatureData.FeatureType < 4 ? true : false
this.FeatureData.switch4or5 = true
this.$forceUpdate()
this.FeatureData.FeatureHtmlJson = null;
this.FeatureData.FeatureHtmlJsonDelete = null;
this.FeatureData.TripImageListNew = [];
this.FeatureData.DetailsImageListNew = [];
this.$forceUpdate();
}).catch(() => {
this.$message({
type: 'info',
......@@ -631,18 +629,6 @@
});
this.FeatureData.FeatureType = state;
});
} else {
this.TypeArray.forEach(x => {
if (x.TypeState == item.TypeState) {
x.isShow = true;
this.ckTitle = x.ckTitle;
this.FeatureData.FeatureType = item.TypeState;
this.FeatureData.lastFeatureType = this.FeatureData.FeatureType
this.FeatureData.switch4or5 = true
} else {
x.isShow = false;
}
});
}
this.initFileList();
if (this.FeatureData.FeatureType == 9) {
......
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