((typeof self !== 'undefined' ? self : this)["webpackJsonpcontractor_management_sm"] = (typeof self !== 'undefined' ? self : this)["webpackJsonpcontractor_management_sm"] || []).push([[53],{

/***/ "204f":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"28eb61d9-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/windicss-webpack-plugin/dist/loaders/windicss-template.cjs!./src/components/safety/WizSafetyPage/PersonExamRecord.vue?vue&type=template&id=de71828e
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-table',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loading),expression:"loading"}],attrs:{"data":_vm.tableData,"height":"calc(100% - 50px)","border":"","stripe":""}},[_c('el-table-column',{attrs:{"width":"100","type":"index","label":"序号/场次"}}),_c('el-table-column',{attrs:{"prop":"examName","label":"试卷名称"}}),_c('el-table-column',{attrs:{"prop":"examCategoryText","label":"考试类型"}}),_c('el-table-column',{attrs:{"prop":"makeUpExam","label":"是否补考"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_vm._v("\n        "+_vm._s(scope.row.makeUpExam ? '是' : '否')+"\n      ")]}}])}),_c('el-table-column',{attrs:{"prop":"coursewareTimes","label":"考试时间","width":"300"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('span',[_vm._v(_vm._s(_vm._f("showText")(scope.row,'time')))])]}}])}),_c('el-table-column',{attrs:{"prop":"answerTime","label":"考试时长(min)","width":"140"}}),_c('el-table-column',{attrs:{"prop":"pass","label":"是否通过"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('div',[_vm._v("\n          "+_vm._s(scope.row.pass ? '是' : '否')+"\n        ")])]}}])}),_c('el-table-column',{attrs:{"prop":"customerScore","label":"得分"}})],1),_c('el-pagination',{staticClass:"mt-20px text-right",attrs:{"background":"","current-page":_vm.page.pageNo,"page-sizes":[15, 30, 45, 60, 75, 90],"page-size":_vm.page.pageSize,"layout":"total, sizes, prev, pager, next, jumper","total":_vm.total},on:{"update:currentPage":function($event){return _vm.$set(_vm.page, "pageNo", $event)},"update:current-page":function($event){return _vm.$set(_vm.page, "pageNo", $event)},"size-change":_vm.searchList,"current-change":_vm.findList,"update:pageSize":function($event){return _vm.$set(_vm.page, "pageSize", $event)},"update:page-size":function($event){return _vm.$set(_vm.page, "pageSize", $event)}}})],1)}
var staticRenderFns = []


// CONCATENATED MODULE: ./src/components/safety/WizSafetyPage/PersonExamRecord.vue?vue&type=template&id=de71828e

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/regenerator.js + 1 modules
var regenerator = __webpack_require__("c14f");

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 3 modules
var slicedToArray = __webpack_require__("3835");

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
var asyncToGenerator = __webpack_require__("1da1");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
var es_array_concat = __webpack_require__("99af");

// EXTERNAL MODULE: ./node_modules/@wiz-api/exam-management/lib/exam-management.umd.js
var exam_management_umd = __webpack_require__("6268");

// EXTERNAL MODULE: ./node_modules/dayjs/dayjs.min.js
var dayjs_min = __webpack_require__("5a0c");
var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);

// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib??ref--12-1!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/windicss-webpack-plugin/dist/loaders/windicss-template.cjs!./src/components/safety/WizSafetyPage/PersonExamRecord.vue?vue&type=script&lang=js




//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//



var taskExamAnswerRecordApi = new exam_management_umd["TaskExamAnswerRecordApi"]();
/* harmony default export */ var PersonExamRecordvue_type_script_lang_js = ({
  name: 'personExamRecord',
  props: {
    userId: {
      type: String,
      default: ''
    }
  },
  methods: {
    searchList: function searchList() {
      this.page.pageNo = 1;
      this.findList();
    },
    findList: function findList() {
      var _this = this;
      return Object(asyncToGenerator["a" /* default */])(/*#__PURE__*/Object(regenerator["a" /* default */])().m(function _callee() {
        var _yield$taskExamAnswer, _yield$taskExamAnswer2, err, res;
        return Object(regenerator["a" /* default */])().w(function (_context) {
          while (1) switch (_context.n) {
            case 0:
              if (_this.userId) {
                _context.n = 1;
                break;
              }
              return _context.a(2);
            case 1:
              _this.loading = true;
              _context.n = 2;
              return taskExamAnswerRecordApi.examineePageList({
                userId: _this.userId,
                skipCount: (_this.page.pageNo - 1) * _this.page.pageSize,
                maxResultCount: _this.page.pageSize
              });
            case 2:
              _yield$taskExamAnswer = _context.v;
              _yield$taskExamAnswer2 = Object(slicedToArray["a" /* default */])(_yield$taskExamAnswer, 2);
              err = _yield$taskExamAnswer2[0];
              res = _yield$taskExamAnswer2[1];
              _this.loading = false;
              if (!err) {
                _this.tableData = res.items;
                _this.total = res.totalCount;
              }
            case 3:
              return _context.a(2);
          }
        }, _callee);
      }))();
    }
  },
  data: function data() {
    return {
      tableData: [],
      page: {
        pageNo: 1,
        pageSize: 15
      },
      total: 0,
      loading: false
    };
  },
  filters: {
    showText: function showText(val, type) {
      var result = '';
      if (type === 'time') {
        if (val.examStartTime && val.examEndTime) {
          result = "".concat(dayjs_min_default()(val.examStartTime).format('YYYY-MM-DD HH:mm'), " - ").concat(dayjs_min_default()(val.examEndTime).format('YYYY-MM-DD HH:mm'));
        } else if (val.examStartTime) {
          result = "".concat(dayjs_min_default()(val.examStartTime).format('YYYY-MM-DD HH:mm'), " - \u65E0");
        }
      }
      return result;
    }
  },
  created: function created() {
    var _this2 = this;
    return Object(asyncToGenerator["a" /* default */])(/*#__PURE__*/Object(regenerator["a" /* default */])().m(function _callee2() {
      return Object(regenerator["a" /* default */])().w(function (_context2) {
        while (1) switch (_context2.n) {
          case 0:
            _this2.findList();
          case 1:
            return _context2.a(2);
        }
      }, _callee2);
    }))();
  }
});
// CONCATENATED MODULE: ./src/components/safety/WizSafetyPage/PersonExamRecord.vue?vue&type=script&lang=js
 /* harmony default export */ var WizSafetyPage_PersonExamRecordvue_type_script_lang_js = (PersonExamRecordvue_type_script_lang_js); 
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__("2877");

// CONCATENATED MODULE: ./src/components/safety/WizSafetyPage/PersonExamRecord.vue





/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  WizSafetyPage_PersonExamRecordvue_type_script_lang_js,
  render,
  staticRenderFns,
  false,
  null,
  null,
  null
  
)

/* harmony default export */ var PersonExamRecord = __webpack_exports__["default"] = (component.exports);

/***/ })

}]);
//# sourceMappingURL=contractor-management-sm.umd.53.js.map