Browse Source

[修复]修复bug

master
邵佳豪 3 years ago
parent
commit
e10b9bbfa4
  1. 4
      angular.json
  2. 13887
      package-lock.json
  3. 7
      src/app/examiner/create-test-score/create-test-score.component.ts
  4. 25
      src/app/examiner/examiner-index/examiner-index.component.spec.ts
  5. 1
      src/app/examiner/examiner-index/examiner-index.component.ts
  6. 2
      src/app/pipes/size.pipe.ts
  7. 1
      src/app/student/examination-details/examination-details.component.ts

4
angular.json

@ -58,8 +58,8 @@
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
"maximumWarning": "6mb",
"maximumError": "6mb"
},
{
"type": "anyComponentStyle",

13887
package-lock.json generated

File diff suppressed because it is too large Load Diff

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

@ -29,12 +29,13 @@ export class CreateTestScoreComponent implements OnInit {
}
pattern: any = this.route.snapshot.queryParams.pattern || ''
ngOnInit(): void {
if (this.route.snapshot.queryParams.status == 0) {
//已创建完成 未开考
if (this.route.snapshot.queryParams.status == 0 || this.route.snapshot.queryParams.status == 1) {
//已创建完成 未开考/开考中
this.getSoloPaper()
} else {
console.log('this.unitId', this.unitId)
//创建考题
this.unitId = JSON.parse(sessionStorage.getItem(sessionStorage.getItem('paperId')))
console.log('this.unitId', this.unitId)
for (let y = 0, length = this.unitId.length; y < length; y++) {
let element = this.unitId[y]
element.score = 0

25
src/app/examiner/examiner-index/examiner-index.component.spec.ts

@ -1,25 +0,0 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ExaminerIndexComponent } from './examiner-index.component';
describe('ExaminerIndexComponent', () => {
let component: ExaminerIndexComponent;
let fixture: ComponentFixture<ExaminerIndexComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ ExaminerIndexComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(ExaminerIndexComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

1
src/app/examiner/examiner-index/examiner-index.component.ts

@ -145,6 +145,7 @@ export class ExaminerIndexComponent implements OnInit {
}
lookPaper(item) {
sessionStorage.setItem("paperId", item.id)
console.log(item)
this.router.navigateByUrl(`/examiner/create-test-score?pattern=look&status=${item.status}`)
}

2
src/app/pipes/size.pipe.ts

@ -13,7 +13,7 @@ export class testState implements PipeTransform {
}
export enum PlanLevelEnum {
"编制级别0",
"自定义预案",
"总队",
"支队",
"编制级别3",

1
src/app/student/examination-details/examination-details.component.ts

@ -61,6 +61,7 @@ export class ExaminationDetailsComponent implements OnInit {
});
this.paperCompanyData = JSON.parse( JSON.stringify(data.paperDataInfo) ) //具体考卷
this.selectPaper = this.paperCompanyData[0] || {id:null} //当前选择考卷
console.log('当前考卷', this.selectPaper)
resolve(1)
})
})

Loading…
Cancel
Save