|
|
@ -54,39 +54,39 @@ |
|
|
'userInfo','roles' |
|
|
'userInfo','roles' |
|
|
]), |
|
|
]), |
|
|
datesCpd(){ |
|
|
datesCpd(){ |
|
|
if(this.xmProductStateHiss.length==0){ |
|
|
|
|
|
|
|
|
if(this.rawDatas.length==0){ |
|
|
return [] |
|
|
return [] |
|
|
}else{ |
|
|
}else{ |
|
|
return this.xmProductStateHiss.map(i=>i.bizDate) |
|
|
|
|
|
|
|
|
return this.rawDatas.map(i=>i.bizDate) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
menuCloseCntCpd(){ |
|
|
menuCloseCntCpd(){ |
|
|
if(this.xmProductStateHiss.length==0){ |
|
|
|
|
|
|
|
|
if(this.rawDatas.length==0){ |
|
|
return [] |
|
|
return [] |
|
|
}else{ |
|
|
}else{ |
|
|
return this.xmProductStateHiss.map(i=>i.menuCloseCnt) |
|
|
|
|
|
|
|
|
return this.rawDatas.map(i=>i.menuCloseCnt) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
menuUnstartCntCpd(){ |
|
|
menuUnstartCntCpd(){ |
|
|
if(this.xmProductStateHiss.length==0){ |
|
|
|
|
|
|
|
|
if(this.rawDatas.length==0){ |
|
|
return [] |
|
|
return [] |
|
|
}else{ |
|
|
}else{ |
|
|
return this.xmProductStateHiss.map(i=> i.menuUnstartCnt) |
|
|
|
|
|
|
|
|
return this.rawDatas.map(i=> i.menuUnstartCnt) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
menuExecCntCpd(){ |
|
|
menuExecCntCpd(){ |
|
|
if(this.xmProductStateHiss.length==0){ |
|
|
|
|
|
|
|
|
if(this.rawDatas.length==0){ |
|
|
return [] |
|
|
return [] |
|
|
}else{ |
|
|
}else{ |
|
|
return this.xmProductStateHiss.map(i=> i.menuExecCnt) |
|
|
|
|
|
|
|
|
return this.rawDatas.map(i=> i.menuExecCnt) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
menuFinishCntCpd(){ |
|
|
menuFinishCntCpd(){ |
|
|
if(this.xmProductStateHiss.length==0){ |
|
|
|
|
|
|
|
|
if(this.rawDatas.length==0){ |
|
|
return [] |
|
|
return [] |
|
|
}else{ |
|
|
}else{ |
|
|
return this.xmProductStateHiss.map(i=>i.menuFinishCnt) |
|
|
|
|
|
|
|
|
return this.rawDatas.map(i=>i.menuFinishCnt) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
titleCpd(){ |
|
|
titleCpd(){ |
|
|
@ -134,7 +134,7 @@ |
|
|
dateRanger:[], |
|
|
dateRanger:[], |
|
|
maxTableHeight:300, |
|
|
maxTableHeight:300, |
|
|
visible:false, |
|
|
visible:false, |
|
|
xmProductStateHiss:[], |
|
|
|
|
|
|
|
|
rawDatas:[], |
|
|
|
|
|
|
|
|
}//end return |
|
|
}//end return |
|
|
},//end data |
|
|
},//end data |
|
|
@ -143,7 +143,7 @@ |
|
|
|
|
|
|
|
|
var params={...this.params,orderBy:'biz_date asc'} |
|
|
var params={...this.params,orderBy:'biz_date asc'} |
|
|
listXmBranchStateHis(params).then(res=>{ |
|
|
listXmBranchStateHis(params).then(res=>{ |
|
|
this.xmProductStateHiss=res.data.tips.isOk?res.data.data:this.xmProductStateHiss; |
|
|
|
|
|
|
|
|
this.rawDatas=res.data.tips.isOk?res.data.data:this.rawDatas; |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
open(){ |
|
|
open(){ |
|
|
@ -182,7 +182,7 @@ |
|
|
if(this.showToolBar && !this.title){ |
|
|
if(this.showToolBar && !this.title){ |
|
|
this.title="企业工作项每日趋势图" |
|
|
this.title="企业工作项每日趋势图" |
|
|
} |
|
|
} |
|
|
this.xmProductStateHiss=[] |
|
|
|
|
|
|
|
|
this.rawDatas=[] |
|
|
if(this.$refs['xmProductSelect'])this.$refs['xmProductSelect'].clearSelect(); |
|
|
if(this.$refs['xmProductSelect'])this.$refs['xmProductSelect'].clearSelect(); |
|
|
if(this.$refs['xmIterationSelect'])this.$refs['xmIterationSelect'].clearSelect(); |
|
|
if(this.$refs['xmIterationSelect'])this.$refs['xmIterationSelect'].clearSelect(); |
|
|
this.$nextTick(()=>{ |
|
|
this.$nextTick(()=>{ |
|
|
@ -288,22 +288,22 @@ |
|
|
|
|
|
|
|
|
onProductSelected(product){ |
|
|
onProductSelected(product){ |
|
|
this.filters.product=product |
|
|
this.filters.product=product |
|
|
this.xmProductStateHiss=[]; |
|
|
|
|
|
|
|
|
this.rawDatas=[]; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
onProductClear(){ |
|
|
onProductClear(){ |
|
|
this.filters.product=null |
|
|
this.filters.product=null |
|
|
this.xmProductStateHiss=[]; |
|
|
|
|
|
|
|
|
this.rawDatas=[]; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
onIterationSelected(iteration){ |
|
|
onIterationSelected(iteration){ |
|
|
this.filters.iteration=iteration |
|
|
this.filters.iteration=iteration |
|
|
this.xmProductStateHiss=[]; |
|
|
|
|
|
|
|
|
this.rawDatas=[]; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
onIterationClear(){ |
|
|
onIterationClear(){ |
|
|
this.filters.iteration=null |
|
|
this.filters.iteration=null |
|
|
this.xmProductStateHiss=[]; |
|
|
|
|
|
|
|
|
this.rawDatas=[]; |
|
|
} |
|
|
} |
|
|
},//end method |
|
|
},//end method |
|
|
mounted() { |
|
|
mounted() { |
|
|
|