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

/***/ 1:
/***/ (function(module, exports) {

/* (ignored) */

/***/ }),

/***/ 2:
/***/ (function(module, exports) {

/* (ignored) */

/***/ }),

/***/ "2ab8":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var _data_jenkins_workspace_tools_ui_cdn_wiz_shimen_ui_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("c7eb");
/* harmony import */ var _data_jenkins_workspace_tools_ui_cdn_wiz_shimen_ui_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("5530");
/* harmony import */ var _data_jenkins_workspace_tools_ui_cdn_wiz_shimen_ui_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("1da1");
/* harmony import */ var _data_jenkins_workspace_tools_ui_cdn_wiz_shimen_ui_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("3835");
/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("99af");
/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("4de4");
/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("e260");
/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("d81d");
/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("14d9");
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("e9c4");
/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var core_js_modules_es_object_entries_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("4fad");
/* harmony import */ var core_js_modules_es_object_entries_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_entries_js__WEBPACK_IMPORTED_MODULE_10__);
/* harmony import */ var core_js_modules_es_object_from_entries_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("c1f9");
/* harmony import */ var core_js_modules_es_object_from_entries_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_from_entries_js__WEBPACK_IMPORTED_MODULE_11__);
/* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("b64b");
/* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_12__);
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("d3b7");
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_13__);
/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("25f0");
/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_14__);
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__("159b");
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_15__);
/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__("ddb0");
/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_16__);
/* harmony import */ var _wiz_api_abp_application__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__("39d3");
/* harmony import */ var _wiz_api_abp_application__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_wiz_api_abp_application__WEBPACK_IMPORTED_MODULE_17__);
/* harmony import */ var _wiz_api_data_category_management__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__("2adf");
/* harmony import */ var _wiz_api_data_category_management__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_wiz_api_data_category_management__WEBPACK_IMPORTED_MODULE_18__);
/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__("5a0c");
/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(dayjs__WEBPACK_IMPORTED_MODULE_19__);




















var abpApplicationConfigurationApi = new _wiz_api_abp_application__WEBPACK_IMPORTED_MODULE_17__["AbpApplicationConfigurationApi"]();
var dataCategoryApi = new _wiz_api_data_category_management__WEBPACK_IMPORTED_MODULE_18__["DataCategoryApi"]();

// 表单字段为空， null，重置或者删除
var deleteFormField = function deleteFormField(formData) {
  var data = Object.fromEntries(Object.entries(formData).filter(function (_ref) {
    var _ref2 = Object(_data_jenkins_workspace_tools_ui_cdn_wiz_shimen_ui_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(_ref, 2),
      key = _ref2[0],
      value = _ref2[1];
    return value !== null && value !== undefined && value !== '';
  }));
  return data;
};
// 时间格式处理
var dealTimeField = function dealTimeField(formData) {
  var data = JSON.parse(JSON.stringify(formData));
  // 时间格式处理
  Object.keys(data).forEach(function (key) {
    // eslint-disable-next-line no-restricted-globals
    if (dayjs__WEBPACK_IMPORTED_MODULE_19___default()(data[key]).isValid() && isNaN(data[key])) {
      data[key] = dayjs__WEBPACK_IMPORTED_MODULE_19___default()(data[key]).format('YYYY-MM-DD HH:mm:ss');
    }
  });
  return data;
};
var getDataCategory = /*#__PURE__*/function () {
  var _ref3 = Object(_data_jenkins_workspace_tools_ui_cdn_wiz_shimen_ui_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(/*#__PURE__*/Object(_data_jenkins_workspace_tools_ui_cdn_wiz_shimen_ui_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])().mark(function _callee() {
    var codeList,
      values,
      vue,
      _yield$abpApplication,
      _yield$abpApplication2,
      configError,
      abpConfigList,
      codes,
      _yield$dataCategoryAp,
      _yield$dataCategoryAp2,
      statusError,
      statusRes,
      codeMap,
      _yield$dataCategoryAp3,
      _yield$dataCategoryAp4,
      err,
      res,
      _args = arguments;
    return Object(_data_jenkins_workspace_tools_ui_cdn_wiz_shimen_ui_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])().wrap(function _callee$(_context) {
      while (1) switch (_context.prev = _context.next) {
        case 0:
          codeList = _args.length > 0 && _args[0] !== undefined ? _args[0] : [];
          values = _args.length > 1 && _args[1] !== undefined ? _args[1] : [];
          vue = _args.length > 2 ? _args[2] : undefined;
          _context.next = 5;
          return abpApplicationConfigurationApi.get();
        case 5:
          _yield$abpApplication = _context.sent;
          _yield$abpApplication2 = Object(_data_jenkins_workspace_tools_ui_cdn_wiz_shimen_ui_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(_yield$abpApplication, 2);
          configError = _yield$abpApplication2[0];
          abpConfigList = _yield$abpApplication2[1];
          if (configError) {
            _context.next = 27;
            break;
          }
          codes = [];
          codeList.forEach(function (item) {
            codes.push(abpConfigList.setting.values[item]);
          });
          _context.next = 14;
          return dataCategoryApi.getListByCodes({
            codes: codes,
            includeDetails: true
          });
        case 14:
          _yield$dataCategoryAp = _context.sent;
          _yield$dataCategoryAp2 = Object(_data_jenkins_workspace_tools_ui_cdn_wiz_shimen_ui_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(_yield$dataCategoryAp, 2);
          statusError = _yield$dataCategoryAp2[0];
          statusRes = _yield$dataCategoryAp2[1];
          codeMap = codes.reduce(function (pre, code, index) {
            pre[code] = values[index];
            return pre;
          }, {});
          if (statusError) {
            _context.next = 27;
            break;
          }
          _context.next = 22;
          return dataCategoryApi.getListByIds({
            ids: statusRes.map(function (item) {
              return item.id;
            }),
            includeDetails: true
          });
        case 22:
          _yield$dataCategoryAp3 = _context.sent;
          _yield$dataCategoryAp4 = Object(_data_jenkins_workspace_tools_ui_cdn_wiz_shimen_ui_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(_yield$dataCategoryAp3, 2);
          err = _yield$dataCategoryAp4[0];
          res = _yield$dataCategoryAp4[1];
          if (!err) {
            res.forEach(function (item) {
              vue[codeMap[item.code]] = item.dataItems.map(function (i) {
                return Object(_data_jenkins_workspace_tools_ui_cdn_wiz_shimen_ui_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])({
                  value: i.code,
                  label: i.displayName
                }, i);
              });
            });
          }
        case 27:
        case "end":
          return _context.stop();
      }
    }, _callee);
  }));
  return function getDataCategory() {
    return _ref3.apply(this, arguments);
  };
}();
var numToChines = function numToChines(num) {
  var changeNum = ['零', '一', '二', '三', '四', '五', '六', '七', '八', '九'];
  var unit = ['', '十', '百', '千', '万'];
  num = parseInt(num);
  var getWan = function getWan(temp) {
    var strArr = temp.toString().split('').reverse();
    var newNum = '';
    var newArr = [];
    strArr.forEach(function (item, index) {
      newArr.unshift(item === '0' ? changeNum[item] : changeNum[item] + unit[index]);
    });
    var numArr = [];
    newArr.forEach(function (m, n) {
      if (m !== '零') numArr.push(n);
    });
    if (newArr.length > 1) {
      newArr.forEach(function (m, n) {
        if (newArr[newArr.length - 1] === '零') {
          if (n <= numArr[numArr.length - 1]) {
            newNum += m;
          }
        } else {
          newNum += m;
        }
      });
    } else {
      newNum = newArr[0];
    }
    return newNum;
  };
  var overWan = Math.floor(num / 10000);
  var noWan = num % 10000;
  if (noWan.toString().length < 4) {
    noWan = "0".concat(noWan);
  }
  return overWan ? "".concat(getWan(overWan), "\u4E07").concat(getWan(noWan)) : getWan(num);
};
/* harmony default export */ __webpack_exports__["a"] = ({
  deleteFormField: deleteFormField,
  dealTimeField: dealTimeField,
  getDataCategory: getDataCategory,
  numToChines: numToChines
});

/***/ }),

/***/ "56c4":
/***/ (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":"2c16d438-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/modules/double-prevention-management-sm/views/AutoCheckConfig.vue?vue&type=template&id=762dfab5&scoped=true
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-card',{staticClass:"h-full"},[_c('div',{staticClass:"flex flex-col h-full"},[_c('div',{staticClass:"flex flex-row-reverse mb-20px"},[_c('el-button',{directives:[{name:"show",rawName:"v-show",value:(_vm.isEdit),expression:"isEdit"}],staticClass:"ml-15px",attrs:{"size":"small"},on:{"click":function($event){_vm.isEdit = false}}},[_vm._v("返回")]),_c('el-button',{directives:[{name:"show",rawName:"v-show",value:(!_vm.isEdit),expression:"!isEdit"}],staticClass:"ml-15px",attrs:{"size":"small","type":"primary"},on:{"click":function($event){return _vm.editApi()}}},[_vm._v("编辑")]),_c('el-button',{directives:[{name:"show",rawName:"v-show",value:(_vm.isEdit),expression:"isEdit"}],staticClass:"ml-10px",attrs:{"type":"primary","loading":_vm.savaLoading},on:{"click":_vm.saveSettings}},[_vm._v("保存")])],1),_c('div',{staticClass:"overflow-y-auto flex-1"},[_c('el-collapse',{model:{value:(_vm.collapseActiveName),callback:function ($$v) {_vm.collapseActiveName=$$v},expression:"collapseActiveName"}},[_c('el-form',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loading),expression:"loading"}],ref:"form",attrs:{"disabled":!_vm.isEdit,"inline":"","label-width":"260px","model":_vm.formData,"hide-required-asterisk":!_vm.isEdit,"show-message":!!_vm.isEdit,"label-position":"right","validate-on-rule-change":false}},_vm._l((_vm.infoList),function(info,index){return _c('el-collapse-item',{key:index,attrs:{"title":info.title,"name":index + 1}},[_vm._l((info.formList),function(form,formIndex){return _c('el-form-item',{key:formIndex,staticClass:"w-1/2 !mr-0",attrs:{"label":((form.name) + ":"),"prop":form.file,"rules":form.rules || []}},[(form.type === 'select')?_c('el-select',{attrs:{"placeholder":_vm.isEdit ? ("请输入" + (form.name)) : ''},model:{value:(_vm.formData[form.file]),callback:function ($$v) {_vm.$set(_vm.formData, form.file, $$v)},expression:"formData[form.file]"}},_vm._l((_vm.safetyLevelOption),function(item){return _c('el-option',{key:item.code,attrs:{"value":item.code,"label":item.displayName}})}),1):(form.type === 'number')?_c('el-input-number',{attrs:{"max":10000,"disabled":!_vm.isEdit,"min":0,"placeholder":_vm.isEdit ? "请输入" : ''},model:{value:(_vm.formData[form.file]),callback:function ($$v) {_vm.$set(_vm.formData, form.file, $$v)},expression:"formData[form.file]"}}):_vm._e()],1)}),(index === 1 && !_vm.isEdit)?_c('p',{staticClass:"mt-20px"},[_vm._v("\n              温馨提示：上报隐患获得积分需隐患开始整改上报人才能获得积分，隐患按期整改验收通过后，整改负责人才能获得积分\n            ")]):_vm._e(),(index === 1 && _vm.isEdit)?_c('p',{staticClass:"mt-20"},[_vm._v("\n              温馨提示：上报隐患获得积分需隐患治理流程结束后，上报人才能获得积分\n            ")]):_vm._e()],2)}),1)],1)],1)])])}
var staticRenderFns = []


// CONCATENATED MODULE: ./src/modules/double-prevention-management-sm/views/AutoCheckConfig.vue?vue&type=template&id=762dfab5&scoped=true

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

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__("c7eb");

// 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/@wiz-api/double-prevention-management/lib/double-prevention-management.umd.js
var double_prevention_management_umd = __webpack_require__("323a");

// EXTERNAL MODULE: ./src/components/safety/enumField/utils.js
var utils = __webpack_require__("2ab8");

// 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/modules/double-prevention-management-sm/views/AutoCheckConfig.vue?vue&type=script&lang=js




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



var automaticCheckConfigurationApi = new double_prevention_management_umd["AutomaticCheckConfigurationApi"]();
/* harmony default export */ var AutoCheckConfigvue_type_script_lang_js = ({
  name: 'auto-check-config',
  data: function data() {
    return {
      loading: false,
      savaLoading: false,
      isEdit: false,
      formData: {
        assessmentCycle: null,
        completionCredit: 0,
        reportCriticalHazardPoints: 0,
        reportGeneralHazardPoints: 0,
        hiddenDangerRectificationPersonPoints: 0,
        taskOverdueMinusPoints: 0,
        tasksAreHeadLosePoints: 0
      },
      collapseActiveName: [1, 2, 3, 4, 5],
      infoList: [{
        title: '考核周期设置',
        formList: [{
          name: '考核自动生成周期',
          type: 'select',
          file: 'assessmentCycle',
          rules: [{
            required: true,
            message: '考核自动生成周期'
          }]
        }]
      }, {
        title: '积分增加项目设置',
        formList: [{
          name: '按期隐患排查任务增加积分',
          type: 'number',
          file: 'completionCredit',
          rules: [{
            pattern: /^[+]{0,1}(\d+)$/,
            message: '请输入正整数'
          }]
        }, {
          name: '上报重大隐患获得积分',
          type: 'number',
          file: 'reportCriticalHazardPoints',
          rules: [{
            pattern: /^[+]{0,1}(\d+)$/,
            message: '请输入正整数'
          }]
        }, {
          name: '上报一般隐患获得积分',
          type: 'number',
          file: 'reportGeneralHazardPoints',
          rules: [{
            pattern: /^[+]{0,1}(\d+)$/,
            message: '请输入正整数'
          }]
        }, {
          name: '隐患按期整改验收通过负责人增加积分',
          type: 'number',
          file: 'hiddenDangerRectificationPersonPoints',
          rules: [{
            pattern: /^[+]{0,1}(\d+)$/,
            message: '请输入正整数'
          }]
        }]
      }, {
        title: '积分减少项目设置',
        formList: [{
          name: '隐患排查任务超期未排查减少积分',
          type: 'number',
          file: 'taskOverdueMinusPoints',
          rules: [{
            pattern: /^[+]{0,1}(\d+)$/,
            message: '请输入正整数'
          }]
        }, {
          name: '隐患超期未整改减少整改负责人积分',
          type: 'number',
          file: 'tasksAreHeadLosePoints',
          rules: [{
            pattern: /^[+]{0,1}(\d+)$/,
            message: '请输入正整数'
          }]
        }]
      }],
      safetyLevelOption: [{
        code: 0,
        displayName: '月'
      }, {
        code: 1,
        displayName: '季'
      }, {
        code: 2,
        displayName: '年'
      }]
    };
  },
  methods: {
    saveSettings: function saveSettings() {
      var _this = this;
      return Object(asyncToGenerator["a" /* default */])(/*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee3() {
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee3$(_context3) {
          while (1) switch (_context3.prev = _context3.next) {
            case 0:
              _this.$confirm('是否保存当前设置！', '提示', {
                confirmButtonText: '保存',
                cancelButtonText: '取消',
                type: 'warning',
                lockScroll: false
              }).then(/*#__PURE__*/Object(asyncToGenerator["a" /* default */])(/*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee2() {
                return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee2$(_context2) {
                  while (1) switch (_context2.prev = _context2.next) {
                    case 0:
                      _this.$refs.form.validate(/*#__PURE__*/function () {
                        var _ref2 = Object(asyncToGenerator["a" /* default */])(/*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee(valid) {
                          var _yield$automaticCheck, _yield$automaticCheck2, err, res, _yield$automaticCheck3, _yield$automaticCheck4, _err, _res;
                          return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee$(_context) {
                            while (1) switch (_context.prev = _context.next) {
                              case 0:
                                if (!valid) {
                                  _context.next = 20;
                                  break;
                                }
                                _this.savaLoading = true;
                                if (!_this.formData.id) {
                                  _context.next = 12;
                                  break;
                                }
                                _context.next = 5;
                                return automaticCheckConfigurationApi.update({
                                  id: _this.formData.id,
                                  body: _this.formData
                                });
                              case 5:
                                _yield$automaticCheck = _context.sent;
                                _yield$automaticCheck2 = Object(slicedToArray["a" /* default */])(_yield$automaticCheck, 2);
                                err = _yield$automaticCheck2[0];
                                res = _yield$automaticCheck2[1];
                                if (!err) {
                                  _this.$message.success('保存成功');
                                  _this.isEdit = false;
                                }
                                _context.next = 19;
                                break;
                              case 12:
                                _context.next = 14;
                                return automaticCheckConfigurationApi.create({
                                  body: _this.formData
                                });
                              case 14:
                                _yield$automaticCheck3 = _context.sent;
                                _yield$automaticCheck4 = Object(slicedToArray["a" /* default */])(_yield$automaticCheck3, 2);
                                _err = _yield$automaticCheck4[0];
                                _res = _yield$automaticCheck4[1];
                                if (!_err) {
                                  _this.$message.success('保存成功');
                                  _this.isEdit = false;
                                }
                              case 19:
                                _this.savaLoading = false;
                              case 20:
                              case "end":
                                return _context.stop();
                            }
                          }, _callee);
                        }));
                        return function (_x) {
                          return _ref2.apply(this, arguments);
                        };
                      }());
                    case 1:
                    case "end":
                      return _context2.stop();
                  }
                }, _callee2);
              }))).catch(function () {});
            case 1:
            case "end":
              return _context3.stop();
          }
        }, _callee3);
      }))();
    },
    editApi: function editApi(row) {
      var _this2 = this;
      this.$refs.form.clearValidate();
      this.loading = true;
      setTimeout(function () {
        _this2.isEdit = true;
        _this2.loading = false;
      }, 200);
    },
    getInfo: function getInfo() {
      var _this3 = this;
      return Object(asyncToGenerator["a" /* default */])(/*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee4() {
        var _yield$automaticCheck5, _yield$automaticCheck6, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee4$(_context4) {
          while (1) switch (_context4.prev = _context4.next) {
            case 0:
              _this3.loading = true;
              _context4.next = 3;
              return automaticCheckConfigurationApi.getList({
                skipCount: 0,
                maxResultCount: 999
              });
            case 3:
              _yield$automaticCheck5 = _context4.sent;
              _yield$automaticCheck6 = Object(slicedToArray["a" /* default */])(_yield$automaticCheck5, 2);
              err = _yield$automaticCheck6[0];
              res = _yield$automaticCheck6[1];
              if (!err && res.items.length > 0) {
                _this3.formData = Object(objectSpread2["a" /* default */])({}, res.items[0]);
                _this3.loading = false;
              } else {
                _this3.formData = _this3.$options.data().formData;
                _this3.loading = false;
              }
            case 8:
            case "end":
              return _context4.stop();
          }
        }, _callee4);
      }))();
    }
  },
  created: function created() {
    this.getInfo();
  }
});
// CONCATENATED MODULE: ./src/modules/double-prevention-management-sm/views/AutoCheckConfig.vue?vue&type=script&lang=js
 /* harmony default export */ var views_AutoCheckConfigvue_type_script_lang_js = (AutoCheckConfigvue_type_script_lang_js); 
// EXTERNAL MODULE: ./src/modules/double-prevention-management-sm/views/AutoCheckConfig.vue?vue&type=style&index=0&id=762dfab5&prod&scoped=true&lang=scss
var AutoCheckConfigvue_type_style_index_0_id_762dfab5_prod_scoped_true_lang_scss = __webpack_require__("7f15");

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__("2877");

// CONCATENATED MODULE: ./src/modules/double-prevention-management-sm/views/AutoCheckConfig.vue






/* normalize component */

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

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

/***/ }),

/***/ "5758":
/***/ (function(module, exports, __webpack_require__) {

exports = module.exports = __webpack_require__("2350")(false);
// imports


// module
exports.push([module.i, "[data-v-762dfab5] .el-card__body{height:100%}[data-v-762dfab5] .el-select{width:187px}", ""]);

// exports


/***/ }),

/***/ "7f15":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var _node_modules_windicss_webpack_plugin_dist_loaders_windicss_style_pitcher_cjs_node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_windicss_webpack_plugin_dist_loaders_windicss_template_cjs_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AutoCheckConfig_vue_vue_type_style_index_0_id_762dfab5_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("fb10");
/* harmony import */ var _node_modules_windicss_webpack_plugin_dist_loaders_windicss_style_pitcher_cjs_node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_windicss_webpack_plugin_dist_loaders_windicss_template_cjs_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AutoCheckConfig_vue_vue_type_style_index_0_id_762dfab5_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_windicss_webpack_plugin_dist_loaders_windicss_style_pitcher_cjs_node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_windicss_webpack_plugin_dist_loaders_windicss_template_cjs_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AutoCheckConfig_vue_vue_type_style_index_0_id_762dfab5_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */


/***/ }),

/***/ "fb10":
/***/ (function(module, exports, __webpack_require__) {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__("5758");
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__("499e").default
var update = add("683f8e1a", content, true, {"sourceMap":false,"shadowMode":false});

/***/ })

}]);
//# sourceMappingURL=double-prevention-management-sm.umd.37.js.map