Browse Source

[修改]试卷id修改

master
chenjingyu 4 years ago
parent
commit
6f14d9946a
  1. 4
      src/app/examiner/examiner-index/examiner-index.component.ts
  2. 4
      src/app/examiner/examiner-new-one/examiner-new-one.component.ts

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

@ -4,7 +4,7 @@
* @Author: sueRimn
* @Date: 2020-12-11 09:06:03
* @LastEditors: sueRimn
* @LastEditTime: 2020-12-21 10:44:17
* @LastEditTime: 2020-12-21 11:03:07
*/
import { Component, OnInit, ViewChild, Inject,Input } from '@angular/core';
import {HttpClient} from '@angular/common/http'
@ -346,7 +346,7 @@ export class FinishDia{
//sessionStorage.removeItem("checkedWork")
this.tabledate=data
console.log(this.tabledate)
sessionStorage.setItem("indexId",this.tabledate.id)
sessionStorage.setItem("paperId",this.tabledate.id)
this.router.navigate(['/home/createexam-index/examiner-new-one']) //跳转试卷列表页面
},err => {
this.snackBar.open('创建失败','确定',config);

4
src/app/examiner/examiner-new-one/examiner-new-one.component.ts

@ -4,7 +4,7 @@
* @Author: sueRimn
* @Date: 2020-12-11 16:34:26
* @LastEditors: sueRimn
* @LastEditTime: 2020-12-21 10:52:07
* @LastEditTime: 2020-12-21 11:03:29
*/
import { Component, OnInit, ViewChild, Inject } from '@angular/core';
import { HttpClient } from '@angular/common/http'
@ -36,7 +36,7 @@ export class ExaminerNewOneComponent implements OnInit {
this.getUnittype();
this.getAllKeyUnit();
}
indexid=sessionStorage.getItem("indexId") //上个页面传过来的id
indexid=sessionStorage.getItem("paperId") //上个页面传过来的id
removeClass=document.getElementsByClassName("mat-form-field-underline")
private _transformer = (node, level: number) => { //初始化tree

Loading…
Cancel
Save