Browse Source

优化

master
陈裕财 4 years ago
parent
commit
63202d9683
  1. 9
      src/components/Guider/guiderData.js
  2. 10
      src/views/xm/XmOverview.vue

9
src/components/Guider/guiderData.js

@ -5,7 +5,8 @@ var xmHomePage=[
title: ' ', title: ' ',
description: '这里可以创建新产品,支持手工、复制现有项目、复制模板三种模式快速一键创建项目', description: '这里可以创建新产品,支持手工、复制现有项目、复制模板三种模式快速一键创建项目',
position: 'left' position: 'left'
}
},
padding: 5,
}, },
{ {
element: '#XmMenuMng', element: '#XmMenuMng',
@ -70,7 +71,8 @@ var xmProductMng=[
title: ' ', title: ' ',
description: '这里可以创建新产品,支持手工、复制现有产品、复制模板三种模式快速一键创建产品', description: '这里可以创建新产品,支持手工、复制现有产品、复制模板三种模式快速一键创建产品',
position: 'bottom' position: 'bottom'
}
},
padding: 5,
}, },
{ {
element: '#guider-two', element: '#guider-two',
@ -118,7 +120,8 @@ var xmProjectMng=[
title: ' ', title: ' ',
description: '这里可以创建新项目,支持手工、复制现有项目、复制模板三种模式快速一键创建项目', description: '这里可以创建新项目,支持手工、复制现有项目、复制模板三种模式快速一键创建项目',
position: 'bottom' position: 'bottom'
}
},
padding: 5,
}, },
{ {
element: '#prj-more-btn', element: '#prj-more-btn',

10
src/views/xm/XmOverview.vue

@ -793,12 +793,17 @@ export default {
// //
iterationAndProduct.setOption(option); iterationAndProduct.setOption(option);
}, },
searchXmBranchState(){
searchXmBranchState(callBack){
listXmBranchState({branchId:this.userInfo.branchId}).then(res=>{ listXmBranchState({branchId:this.userInfo.branchId}).then(res=>{
var tips=res.data.tips; var tips=res.data.tips;
if(tips.isOk && res.data.data.length>0){ if(tips.isOk && res.data.data.length>0){
this.xmBranchState=res.data.data[0] this.xmBranchState=res.data.data[0]
} }
if(callBack){
this.$nextTick(()=>{
callBack();
})
}
}); });
}, },
@ -816,7 +821,6 @@ export default {
mounted() { mounted() {
this.$nextTick(() => { this.$nextTick(() => {
this.maxTableHeight=util.calcTableMaxHeight(this.$refs.table.$el) this.maxTableHeight=util.calcTableMaxHeight(this.$refs.table.$el)
this.guiderStart();
}); });
this.drawAllBar(); this.drawAllBar();
this.drawTaskByDate(); this.drawTaskByDate();
@ -824,7 +828,7 @@ export default {
this.drawCostPie(); this.drawCostPie();
this.drawWorkload(); this.drawWorkload();
this.drawIterationProduct(); this.drawIterationProduct();
this.searchXmBranchState();
this.searchXmBranchState( this.guiderStart );
}, },
}; };

Loading…
Cancel
Save