Browse Source

[完善]完善左侧单位列表分数显示

master
邵佳豪 4 years ago
parent
commit
0871cf6739
  1. 4
      src/app/examiner/create-test-score/create-test-score.component.html
  2. 1
      src/app/examiner/create-test-score/create-test-score.component.ts

4
src/app/examiner/create-test-score/create-test-score.component.html

@ -21,7 +21,7 @@
</tr> </tr>
<tr style="cursor: pointer;" *ngFor="let item of unitId;let key = index" (click)="clickUnitName(key)" [ngClass]="{'selectedLi': key == selectedUnitIndex}"> <tr style="cursor: pointer;" *ngFor="let item of unitId;let key = index" (click)="clickUnitName(key)" [ngClass]="{'selectedLi': key == selectedUnitIndex}">
<td>{{item.name}}</td> <td>{{item.name}}</td>
<td class="colorspan">{{item.score}}</td> <td class="colorspan">{{item.score}}+{{item.planScore || 0}}</td>
</tr> </tr>
</table> </table>
</div> </div>
@ -285,7 +285,7 @@
<td>{{item.isPublic ? '已公开' : '未公开'}}</td> <td>{{item.isPublic ? '已公开' : '未公开'}}</td>
<td>{{item.planLevel | planlevel}}</td> <td>{{item.planLevel | planlevel}}</td>
<td> <td>
<input (input)="planItemScore()" type="number" [(ngModel)]="item.score"> <input onchange="if(!value)value=0" (input)="planItemScore()" type="number" [(ngModel)]="item.score">
</td> </td>
<td *ngIf="!(pattern=='look')"> <td *ngIf="!(pattern=='look')">
<span style="color: #07CDCF;" (click)="edit(item)" >编辑</span> <span style="color: #07CDCF;" (click)="edit(item)" >编辑</span>

1
src/app/examiner/create-test-score/create-test-score.component.ts

@ -830,6 +830,7 @@ export class CreateTestScoreComponent implements OnInit {
x += i.score x += i.score
}) })
} }
element.planScore = x
examScore2 += Number(x) examScore2 += Number(x)
}) })
this.examScore = examScore + examScore2 this.examScore = examScore + examScore2

Loading…
Cancel
Save