|
|
@ -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 ); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
}; |
|
|
}; |
|
|
|