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{ }else{
return dateStr.substr(0,10); return dateStr.substr(0,10);
} }
},
goBack(){
},
goBack() {
localStorage.setItem('product-infotype',"产品概览"); 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 },//end methods
components: { components: {

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

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

Loading…
Cancel
Save