|
@@ -196,11 +196,32 @@ export default {
|
|
|
if (this.menuData != undefined && this.menuData.index != undefined && this.menuData.title != undefined) {
|
|
|
this.$store.commit("changeLeftMenuTitle", this.menuData.title);
|
|
|
if (this.menuData.menuIndex != undefined && this.menuData.subMenuIndex != undefined) {
|
|
|
- this.$store.commit("changeBackMenu", { index: this.menuData.menuIndex, subIndex: this.menuData.subMenuIndex ,name: this.menuData.menuName ? this.menuData.menuName : "" });
|
|
|
+ this.$store.commit("changeBackMenu", {
|
|
|
+ index: this.menuData.menuIndex,
|
|
|
+ subIndex: this.menuData.subMenuIndex,
|
|
|
+ name: this.menuData.menuName ? this.menuData.menuName : ""
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
if (this.menuData != undefined && this.menuData.gotoPageInfo != undefined) {
|
|
|
- this.$store.commit("changeNavSelect", this.menuData.gotoPageInfo);
|
|
|
+ // 暂未开发页面集合
|
|
|
+ let notFound = [
|
|
|
+ { index: "2", subIndex: "2" },
|
|
|
+ { index: "2", subIndex: "3" }
|
|
|
+ ];
|
|
|
+ // 是否跳转暂存变量
|
|
|
+ let notFoundState = true;
|
|
|
+ // 遍历未开发页面index信息
|
|
|
+ notFound.forEach(item => {
|
|
|
+ // 如果要跳转的页面存在未开发页面集合中
|
|
|
+ if (item.index == this.menuData.gotoPageInfo.index && item.subIndex == this.menuData.gotoPageInfo.subIndex) {
|
|
|
+ this.$message.info("页面开发中,敬请期待!");
|
|
|
+ notFoundState = false;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ if (notFoundState) {
|
|
|
+ this.$store.commit("changeNavSelect", this.menuData.gotoPageInfo);
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
// 根据菜单imageURL和boxHeight对象自动生成元素的样式(背景以及高度)
|
|
@@ -222,14 +243,14 @@ export default {
|
|
|
setTimeout(() => {
|
|
|
this.$refs.menuCard.style.transform = "translate(0,0)";
|
|
|
this.$refs.menuCard.style.opacity = "0.9";
|
|
|
- },300);
|
|
|
+ }, 300);
|
|
|
} else {
|
|
|
// 延迟0.3s后修改display为none
|
|
|
this.$refs.menuCard.style.transform = this.positionTotransform();
|
|
|
this.$refs.menuCard.style.opacity = "0";
|
|
|
- // setTimeout(() => {
|
|
|
+ setTimeout(() => {
|
|
|
this.$refs.menuCard.style.display = "none";
|
|
|
- // }, 300);
|
|
|
+ }, 300);
|
|
|
}
|
|
|
}
|
|
|
},
|