Commit b3a21bbc authored by 黄奎's avatar 黄奎

新增切换提示

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