|
@@ -462,7 +462,7 @@
|
462
|
462
|
</td>
|
463
|
463
|
<td height="32px" colspan="2" class="advice-name" style="padding-left:7px;">
|
464
|
464
|
<span style="padding-left:5px;display:inline-block;">
|
465
|
|
- <span>{{ advice.project.project_name }}</span>
|
|
465
|
+ <span>{{ advice && advice.project ? advice.project.project_name : '' }}</span>
|
466
|
466
|
</span>
|
467
|
467
|
</td>
|
468
|
468
|
|
|
@@ -757,20 +757,20 @@ export default {
|
757
|
757
|
this.records[recordIndex].his_advices &&
|
758
|
758
|
this.records[recordIndex].his_advices.length + this.records[recordIndex].his_project.length < 6
|
759
|
759
|
) {
|
760
|
|
- delghThree = 6 - this.records[recordIndex].his_advices.length
|
|
760
|
+ delghThree = 6 - (this.records[recordIndex].his_advices.length + this.records[recordIndex].his_project.length)
|
761
|
761
|
} else {
|
762
|
762
|
delghThree = 0
|
763
|
763
|
}
|
764
|
764
|
|
765
|
765
|
if (delghThree > 0) {
|
766
|
766
|
if (
|
767
|
|
- typeof this.records[recordIndex].his_advices === 'undefined' ||
|
768
|
|
- this.records[recordIndex].his_advices == null
|
|
767
|
+ typeof this.records[recordIndex].his_project === 'undefined' ||
|
|
768
|
+ this.records[recordIndex].his_project == null
|
769
|
769
|
) {
|
770
|
|
- this.records[recordIndex].his_advices = []
|
|
770
|
+ this.records[recordIndex].his_project = []
|
771
|
771
|
}
|
772
|
772
|
for (let index = 0; index < delghThree; index++) {
|
773
|
|
- this.records[recordIndex].his_advices.push([])
|
|
773
|
+ this.records[recordIndex].his_project.push([])
|
774
|
774
|
}
|
775
|
775
|
}
|
776
|
776
|
this.records[recordIndex].his_advices = this.records[recordIndex].his_advices.sort((a,b)=>{ return a.id-b.id})
|