update code
parent
727b9b034d
commit
038dacb973
|
@ -23,11 +23,11 @@
|
|||
<template v-if="dataList.length>0 || isOnly">
|
||||
<div class="project-amount project-issue" v-if="info">
|
||||
<div class="issue-title screen-one-1-1">{{ info.projectName||prj.projectName }}</div>
|
||||
<div class="row-1" v-if="info.existingProblem">
|
||||
<div class="row-1" v-if="!info.existingProblemIsNull">
|
||||
<div class="sp-lbl">存在问题:</div>
|
||||
<div class="sp-detail" :title="info.existingProblem">{{ info.existingProblem }}</div>
|
||||
</div>
|
||||
<div class="row-1" v-if="info.problemProgress">
|
||||
<div class="row-1" v-if="!info.problemProgressIsNull">
|
||||
<div class="sp-lbl">推进情况:</div>
|
||||
<div class="sp-detail sp-info" :title="info.problemProgress">{{ info.problemProgress }}</div>
|
||||
</div>
|
||||
|
@ -70,6 +70,10 @@ export default {
|
|||
this.dept = dept;
|
||||
this.loadData();
|
||||
}));
|
||||
this.$bus.$on("projectChange", debounce(res => {
|
||||
this.prj = res;
|
||||
this.loadData();
|
||||
}));
|
||||
this.info = this.scheduleInfo || {};
|
||||
this.prj = this.prjInfo || {};
|
||||
if(this.$root.hasInitHeader){
|
||||
|
@ -99,7 +103,27 @@ export default {
|
|||
},
|
||||
loadData(){
|
||||
this.$api.schedule.constructionProgressByDept(this.dept?.id||0).then(d => {
|
||||
this.dataList=d.data||[];
|
||||
let tmps=[];
|
||||
if(this.prj.id==0){
|
||||
(d.data||[]).forEach(it=>{
|
||||
if(!it.existingProblem ||!it.existingProblem.trim() || it.existingProblem.trim().indexOf("暂无")==0 || it.existingProblem.trim().indexOf("无")==0|| it.existingProblem.trim().indexOf("/")==0 ){
|
||||
it.existingProblemIsNull=true;
|
||||
}else{
|
||||
it.existingProblemIsNull=false;
|
||||
}
|
||||
if(!it.problemProgress ||!it.problemProgress.trim() || it.problemProgress.trim().indexOf("暂无")==0 || it.problemProgress.trim().indexOf("无")==0 || it.problemProgress.trim().indexOf("/")==0 ){
|
||||
it.problemProgressIsNull=true;
|
||||
}else{
|
||||
it.problemProgressIsNull=false;
|
||||
}
|
||||
if(!(it.existingProblemIsNull && it.problemProgressIsNull)){
|
||||
tmps.push(it);
|
||||
}
|
||||
});
|
||||
}else{
|
||||
tmps=d.data||[];
|
||||
}
|
||||
this.dataList=tmps;
|
||||
this.initPrj();
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue