Browse Source

优化

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

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

@ -428,10 +428,16 @@ import WikiList from '../wiki/archive/WikiList.vue';
return dateStr.substr(0,10);
}
},
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: {

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

@ -440,7 +440,6 @@ export default {
groupUserVisible: false,
exportArr: ["任务", "计划", "需求监控"],
dicts: getDefOptions(),
historyLength:0,
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'})
}
@ -839,9 +839,6 @@ export default {
XmWorkloadSetMonthList
//
},
activated: function () {
this.historyLength=window.history.length
},
mounted() {
this.$nextTick(() => {

Loading…
Cancel
Save