{"remainingRequest":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\examine-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\examine-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\examine-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\examine-fvue\\src\\views\\examMenu\\components\\testPaper.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\examine-fvue\\src\\views\\examMenu\\components\\testPaper.vue","mtime":1705466684645},{"path":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport { mapState } from 'vuex';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport paperMenu from '@/api/examination/paperMenu.js';\nexport default {\n  mixins: [TableMixin],\n  name: 'testPaper',\n  components: {},\n  data: function data() {\n    return {\n      circleUrl: \"https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png\",\n      //头像\n      hr: 1,\n      min: 30,\n      sec: 0,\n      radio: '',\n      checkList: [],\n      radio3: '',\n      input: '',\n      textarea: '',\n      end: Date.parse(new Date()) + 1 * 30 * 60 * 1000,\n      paperData: {},\n      //试卷数据\n      value: [],\n      topicList: [],\n      //题目类型\n      formalType: false //正式考试\n\n    };\n  },\n  created: function created() {\n    this.topicList = dictUtils.getDictItemsFromCache('sttx');\n  },\n  mounted: function mounted() {\n    this.countdown();\n  },\n  // watch: {\n  // \tpaperData: {\n  // \t\tdeep: true, //深度监听设置为 true\n  // \t\thandler: function(newVal, oldVal) {\n  // \t\t\tconsole.log(\"数据发生变化啦\"); //修改数据时，能看到输出结果\n  // \t\t\tconsole.log(newVal, oldVal);\n  // \t\t}\n  // \t}\n  // },\n  methods: {\n    loadData: function loadData() {\n      var _this = this;\n\n      // console.log(this.$route.query);\n      var id = this.$route.query.id;\n      paperMenu.previewPaper(id, function (res) {\n        if (res) {\n          res.examQuestionsInfos.forEach(function (e) {\n            if (e.type == 2) {\n              e.answer = [];\n            } else {\n              e.answer = '';\n            }\n\n            _this.topicList.forEach(function (t) {\n              if (e.type == t.value) {\n                e.typeName = t.name;\n              }\n            });\n          });\n          _this.paperData = res;\n        }\n      });\n    },\n    checkout: function checkout(val) {\n      console.log(this.checkList);\n      console.log(this.value);\n    },\n    countdown: function countdown() {\n      var now = Date.parse(new Date());\n      var msec = this.end - now;\n      if (msec < 0) return;\n      var day = parseInt(msec / 1000 / 60 / 60 / 24);\n      var hr = parseInt(msec / 1000 / 60 / 60 % 24);\n      var min = parseInt(msec / 1000 / 60 % 60);\n      var sec = parseInt(msec / 1000 % 60);\n      this.day = day;\n      this.hr = hr > 9 ? hr : '0' + hr;\n      this.min = min > 9 ? min : '0' + min;\n      this.sec = sec > 9 ? sec : '0' + sec;\n      var that = this;\n\n      if (min >= 0 && sec >= 0) {\n        //倒计时结束关闭订单\n        if (min == 0 && sec == 0) {\n          return;\n        }\n\n        setTimeout(function () {\n          that.countdown();\n        }, 1000);\n      }\n    },\n    chengeGroup: function chengeGroup(val) {\n      val;\n    },\n    //提交试卷\n    submitPaper: function submitPaper() {\n      this.$router.go(-1);\n    }\n  }\n};",null]}