Browse Source

优化

master
陈裕财 4 years ago
parent
commit
1d76176308
  1. 14
      src/views/xm/core/xmProduct/XmProductInfo.vue
  2. 13
      src/views/xm/core/xmProject/XmProjectInfo.vue

14
src/views/xm/core/xmProduct/XmProductInfo.vue

@ -427,11 +427,17 @@ import WikiList from '../wiki/archive/WikiList.vue';
}else{
return dateStr.substr(0,10);
}
},
goBack(){
},
goBack() {
localStorage.setItem('product-infotype',"产品概览");
this.$router.back()
}
if(window.history.length>0){
this.$router.back(-1);
}else{
this.$router.push({path:'/xm/core/xmProduct/XmProductMng'})
}
},
},//end methods
components: {

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

@ -439,8 +439,7 @@ export default {
load: { list: false, edit: false },
groupUserVisible: false,
exportArr: ["任务", "计划", "需求监控"],
dicts: getDefOptions(),
historyLength:0,
dicts: getDefOptions(),
maxTableHeight:300,
/**end 自定义属性请在上面加 请加备注**/
};
@ -774,8 +773,9 @@ export default {
},
goBack() {
localStorage.setItem("project-infotype", "项目概览");
if(this.historyLength>0){
this.$router.back();
if(window.history.length>0){
this.$router.back(-1);
}else{
this.$router.push({path:'/xm/core/xmProject/XmProjectMng'})
}
@ -838,10 +838,7 @@ export default {
XmWorkloadSetDayList,
XmWorkloadSetMonthList
//
},
activated: function () {
this.historyLength=window.history.length
},
},
mounted() {
this.$nextTick(() => {

Loading…
Cancel
Save