{"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\\workbench\\kzzxMenu.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\examine-fvue\\src\\views\\workbench\\kzzxMenu.vue","mtime":1670234386357},{"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 \"regenerator-runtime/runtime\";\nimport _asyncToGenerator from \"D:/jenkins/workspace/examine-fvue/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport \"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//\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//\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 { TableMixin } from '@/mixins/tableMixin';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport myTaskMenu from '@/api/examination/myTaskMenu.js';\nimport kzzxMenu from '@/api/examination/kzzxMenu.js';\nexport default {\n  name: 'kzzxMenu',\n  components: {},\n  mixins: [TableMixin],\n  data: function data() {\n    return {\n      activeNames: ['1'],\n      tableData: [],\n      tableDataTwo: [{\n        name: \"任务1\",\n        type: '测试类型',\n        time: \"2022-10-20 15:87:00\"\n      }],\n      ksztList: [],\n      sjztList: [],\n      jobStatisticals: {},\n      newResults: {},\n      notices: [],\n      content: '',\n      dialogVisible: false\n    };\n  },\n  created: function created() {\n    this.getJobStatistical();\n    this.getMyResultsQuery();\n    this.getNotice();\n    this.loadData();\n    this.ksztList = dictUtils.getDictItemsFromCache('kszt');\n    this.sjztList = dictUtils.getDictItemsFromCache('sjzt');\n  },\n  mounted: function mounted() {},\n  methods: {\n    addDialog: function addDialog(val) {\n      this.content = val.content;\n      this.dialogVisible = true;\n    },\n    handleClose: function handleClose(done) {\n      this.dialogVisible = false;\n    },\n    handleChange: function handleChange(val) {\n      console.log(val);\n    },\n    //获取次数\n    getJobStatistical: function getJobStatistical() {\n      var _this = this;\n\n      kzzxMenu.jobStatistical({}, function (res) {\n        if (res) {\n          _this.jobStatisticals = res;\n        }\n      });\n    },\n    //获取最新成绩\n    getMyResultsQuery: function getMyResultsQuery() {\n      var _this2 = this;\n\n      kzzxMenu.myResultsQuery({\n        pageBean: {\n          pageSize: 1,\n          page: 1\n        },\n        sorter: [{\n          direction: \"DESC\",\n          property: \"endTime\"\n        }]\n      }, function (res) {\n        if (res.rows[0]) {\n          _this2.newResults = res.rows[0];\n\n          _this2.ksztList.forEach(function (k) {\n            if (_this2.newResults.status == k.value) {\n              _this2.newResults.statusName = k.name;\n            }\n          });\n        }\n      });\n    },\n    //通知公告\n    getNotice: function getNotice() {\n      var _this3 = this;\n\n      kzzxMenu.notice({\n        pageBean: {\n          pageSize: 5,\n          page: 1\n        },\n        sorter: [{\n          direction: \"DESC\",\n          property: \"createTime\"\n        }]\n      }, function (res) {\n        if (res.rows) {\n          _this3.notices = res.rows;\n        }\n      });\n    },\n    // 获取list\n    loadData: function () {\n      var _loadData = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(page) {\n        var _this4 = this;\n\n        return regeneratorRuntime.wrap(function _callee$(_context) {\n          while (1) {\n            switch (_context.prev = _context.next) {\n              case 0:\n                if (page) {\n                  this.queryParam.pageBean.page = page;\n                }\n\n                this.loading = true;\n                this.tableData = [];\n                this.queryParam.querys = [{\n                  group: 'main',\n                  operation: 'IN',\n                  parentGroup: '',\n                  property: 's.status_',\n                  relation: 'AND',\n                  value: '1,2,8'\n                }];\n                _context.next = 6;\n                return myTaskMenu.myPaper(this.queryParam, function (res) {\n                  _this4.total = res.total;\n                  _this4.tableData = res.rows;\n\n                  _this4.tableData.forEach(function (t) {\n                    _this4.ksztList.forEach(function (k) {\n                      if (t.status == k.value) {\n                        t.statusName = k.name;\n                      }\n                    });\n\n                    _this4.sjztList.forEach(function (k) {\n                      if (t.paperStatus == k.value) {\n                        t.paperStatusName = k.name;\n                      }\n                    });\n                  });\n\n                  _this4.$set(_this4.tableData);\n\n                  _this4.loading = false;\n                });\n\n              case 6:\n              case \"end\":\n                return _context.stop();\n            }\n          }\n        }, _callee, this);\n      }));\n\n      function loadData(_x) {\n        return _loadData.apply(this, arguments);\n      }\n\n      return loadData;\n    }(),\n    //开始考试\n    toPreview: function toPreview(val) {\n      this.$router.push({\n        name: 'previewTestPaper',\n        params: {\n          id: val.id\n        }\n      });\n    },\n    handleClick: function handleClick(command, val) {\n      var _this5 = this;\n\n      console.log(command, val);\n\n      if (command == 0) {\n        myTaskMenu.applyExamPaper(val.id, function (res) {\n          if (res.state) {\n            _this5.$message({\n              message: '申请成功',\n              type: 'success'\n            });\n          }\n        });\n      }\n    },\n    //更多\n    toKscjMenu: function toKscjMenu() {\n      this.$router.push({\n        name: 'myCjMenu'\n      });\n    },\n    toNoticeDetails: function toNoticeDetails() {\n      this.$router.push({\n        name: 'noticeDetails'\n      });\n    },\n    //考试监控\n    toTestMonitor: function toTestMonitor() {\n      this.$router.push({\n        name: 'testMonitor'\n      });\n    }\n  }\n};",null]}