question.js 608 B

1234567891011121314151617181920212223
  1. import Api from "../../model/api";
  2. import {getDataSet} from "../../utils/utils";
  3. import {examTypes} from "../../model/enum";
  4. import Route from "../../model/route";
  5. const app = getApp();
  6. app.Base({
  7. data: {
  8. type: examTypes.QUESTION
  9. },
  10. toExam(e) {
  11. let item = getDataSet(e, "item");
  12. Route.toQuestionDetail(item.questionnaire.id, item.teamId, item.courseId, item.id, item.eduStuId)
  13. },
  14. async requestData() {
  15. let res = await Api.getQuestionList({
  16. pageNum: this.pageNum,
  17. pageSize: this.pageSize
  18. });
  19. return res;
  20. },
  21. });