update code
parent
23443986e6
commit
6d75116694
|
@ -20,14 +20,14 @@
|
|||
</div>
|
||||
<div class="modify-content" id="modifyContent">
|
||||
<div class="modify-content-overflow">
|
||||
<template v-if="dataList.length>0">
|
||||
<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 }}</div>
|
||||
<div class="row-1">
|
||||
<div class="issue-title screen-one-1-1">{{ info.projectName||prj.projectName }}</div>
|
||||
<div class="row-1" v-if="info.existingProblem">
|
||||
<div class="sp-lbl">存在问题:</div>
|
||||
<div class="sp-detail" :title="info.existingProblem">{{ info.existingProblem }}</div>
|
||||
</div>
|
||||
<div class="row-1">
|
||||
<div class="row-1" v-if="info.problemProgress">
|
||||
<div class="sp-lbl">推进情况:</div>
|
||||
<div class="sp-detail sp-info" :title="info.problemProgress">{{ info.problemProgress }}</div>
|
||||
</div>
|
||||
|
@ -106,13 +106,17 @@ export default {
|
|||
initPrj(){
|
||||
let find = this.dataList.find(d => d.projectName == this.prj.projectName);
|
||||
if(find){
|
||||
this.index=this.dataList.indexOf(find);
|
||||
}else{
|
||||
if(this.isOnly){
|
||||
this.isOnly=false;
|
||||
this.index=this.dataList.indexOf(find);
|
||||
this.info=this.dataList[this.index];
|
||||
}else{
|
||||
if(this.prj.id==0){
|
||||
this.index=0;
|
||||
this.info=this.dataList[this.index];
|
||||
}else{
|
||||
this.info={projectName:this.prj.projectName }
|
||||
}
|
||||
}
|
||||
this.info=this.dataList[this.index];
|
||||
|
||||
},
|
||||
modifyLeftBtn() {
|
||||
let n=this.index-1;
|
||||
|
|
Loading…
Reference in New Issue