Browse Source

优化

master
陈裕财 4 years ago
parent
commit
f8aa0c88e2
  1. 12
      src/views/xm/core/xmProject/XmProjectInfo.vue

12
src/views/xm/core/xmProject/XmProjectInfo.vue

@ -428,6 +428,7 @@ export default {
groupUserVisible: false,
exportArr: ["任务", "计划", "需求监控"],
dicts: getDefOptions(),
historyLength:0,
/**end 自定义属性请在上面加 请加备注**/
};
}, //end data
@ -716,8 +717,12 @@ export default {
}
},
goBack() {
localStorage.setItem("project-infotype", "项目概览");
this.$router.back();
localStorage.setItem("project-infotype", "项目概览");
if(this.historyLength>0){
this.$router.back();
}else{
this.$router.push({path:'/xm/core/xmProject/XmProjectMng'})
}
},
}, //end methods
components: {
@ -745,6 +750,9 @@ export default {
XmPlan,
//
},
activated: function () {
this.historyLength=window.history.length
},
mounted() {
this.$nextTick(() => {
var infotype = localStorage.getItem("project-infotype");

Loading…
Cancel
Save