Browse Source

[新增]创建试卷增加单项分

master
邵佳豪 4 years ago
parent
commit
d8be26a4dd
  1. 7
      src/app/examiner/create-test-score/create-test-score.component.ts

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

@ -1187,6 +1187,7 @@ export class CreateTestScoreComponent implements OnInit {
//将筛选出来的数据变为服务器提交数据
let paperDataInfo = []
console.log(111,copyDatas)
copyDatas.forEach((item,key) =>{
paperDataInfo[key] = {}
paperDataInfo[key].id = null
@ -1203,6 +1204,12 @@ export class CreateTestScoreComponent implements OnInit {
paperDataInfo[key].facilityData = item.fireFacNodes ? JSON.stringify(item.fireFacNodes) : '[]'
paperDataInfo[key].facilityScore = item.fireFacScore,
paperDataInfo[key].originalData = JSON.stringify(this.unitId[key])
//赋值单项分
paperDataInfo[key].basicInfoItemScore = item.basicInfoItemScore
paperDataInfo[key].adjoinItemScore = item.aroundItemScore
paperDataInfo[key].importLocationItemScore = item.keySiteItemScore
paperDataInfo[key].functionalDivisionItemSocre = item.funDivItemScore
paperDataInfo[key].facilityItemScore = item.fireFacItemScore
})
//判断是否存在总分填写后没有勾选 或者勾选了没有填写总分的情况

Loading…
Cancel
Save