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

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

/* (ignored) */

/***/ }),

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

/* (ignored) */

/***/ }),

/***/ "1bda":
/***/ (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__("5677");
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("2e0a5339", content, true, {"sourceMap":false,"shadowMode":false});

/***/ }),

/***/ "1c6f":
/***/ (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__("c7af");
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("66eb91fc", content, true, {"sourceMap":false,"shadowMode":false});

/***/ }),

/***/ "1fbc":
/***/ (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_AreaForm_vue_vue_type_style_index_0_id_8df48be0_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("1c6f");
/* 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_AreaForm_vue_vue_type_style_index_0_id_8df48be0_prod_lang_scss_scoped_true__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_AreaForm_vue_vue_type_style_index_0_id_8df48be0_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */


/***/ }),

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

/* (ignored) */

/***/ }),

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

"use strict";

var $ = __webpack_require__("23e7");
var uncurryThis = __webpack_require__("e330");
var notARegExp = __webpack_require__("5a34");
var requireObjectCoercible = __webpack_require__("1d80");
var toString = __webpack_require__("577e");
var correctIsRegExpLogic = __webpack_require__("ab13");

var stringIndexOf = uncurryThis(''.indexOf);

// `String.prototype.includes` method
// https://tc39.es/ecma262/#sec-string.prototype.includes
$({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
  includes: function includes(searchString /* , position = 0 */) {
    return !!~stringIndexOf(
      toString(requireObjectCoercible(this)),
      toString(notARegExp(searchString)),
      arguments.length > 1 ? arguments[1] : undefined
    );
  }
});


/***/ }),

/***/ "4322":
/***/ (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":"1d052202-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/risk-area-management/views/RiskArea.vue?vue&type=template&id=03a6ed76&scoped=true
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"h-full"},[_c('el-row',{staticClass:"h-full",attrs:{"gutter":10}},[_c('el-col',{staticClass:"h-full",attrs:{"md":5,"lg":5}},[_c('el-card',{staticClass:"h-full"},[_c('div',{staticClass:"flex items-center"},[_c('span',{staticClass:"border-l-3 border-color-primary flex-1 pl-10px text-18px"},[_vm._v("区域组管理")])]),_c('div',{staticClass:"flex mt-10px mb-10px"},[_c('el-input',{staticClass:"flex-1 mr-10px",attrs:{"size":"small","clearable":"","placeholder":"搜索区域组名称"},model:{value:(_vm.areaGroupName),callback:function ($$v) {_vm.areaGroupName=(typeof $$v === 'string'? $$v.trim(): $$v)},expression:"areaGroupName"}}),_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":function($event){return _vm.$refs.roleTree.filter(_vm.areaGroupName)}}},[_vm._v("搜索")]),_c('el-button',{attrs:{"size":"small","type":"primary","disabled":!_vm.$hasAccess('create')},on:{"click":function($event){return _vm.addAreaGroup(null)}}},[_vm._v("新增")])],1),_c('div',{staticClass:"tree overflow-y-auto"},[_c('el-tree',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.treeLoading),expression:"treeLoading"}],ref:"roleTree",attrs:{"data":_vm.treeData,"highlight-current":"","node-key":"id","filter-node-method":_vm.filterTree,"default-expanded-keys":[''],"props":{
              label: 'name',
            }},on:{"node-click":_vm.clickModelTree},scopedSlots:_vm._u([{key:"default",fn:function(ref){
            var node = ref.node;
            var data = ref.data;
return _c('div',{staticClass:"w-[calc(100%-42px)] flex items-center justify-between flex-1"},[_c('span',{staticClass:"text-sm flex-1 mr-10px truncate max-w-4/5"},[_vm._v(_vm._s(node.label))]),(data.id)?_c('el-dropdown',{staticClass:"mr-10px",on:{"command":function ($event) { return _vm.handleCommand($event, data); }}},[_c('i',{staticClass:"iconfont icon-line-moreVertical"}),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},[_c('el-dropdown-item',{attrs:{"command":"edit","disabled":!_vm.$hasAccess('update')}},[_vm._v("编辑")]),_c('el-dropdown-item',{attrs:{"command":"delete","disabled":!_vm.$hasAccess('delete')}},[_vm._v("删除")])],1)],1):_vm._e()],1)}}])})],1)])],1),_c('el-col',{staticClass:"h-full",attrs:{"md":19,"lg":19}},[_c('el-card',{staticClass:"h-full"},[_c('div',{staticClass:"h-40px"},[_c('el-input',{staticClass:"!w-200px mr-10px",attrs:{"size":"small","clearable":"","placeholder":"请输入区域名称"},model:{value:(_vm.searchData.name),callback:function ($$v) {_vm.$set(_vm.searchData, "name", $$v)},expression:"searchData.name"}}),_c('el-select',{staticClass:"!w-200px mr-10px",attrs:{"size":"small","placeholder":"请选择风险等级","clearable":"","filterable":""},model:{value:(_vm.searchData.riskLevelId),callback:function ($$v) {_vm.$set(_vm.searchData, "riskLevelId", $$v)},expression:"searchData.riskLevelId"}},_vm._l((_vm.riskTypeOption),function(item){return _c('el-option',{key:item.id,attrs:{"label":item.displayName,"value":item.id}})}),1),_c('el-select',{staticClass:"!w-230px mr-10px",attrs:{"size":"small","placeholder":"请选择区域类型","clearable":"","filterable":""},model:{value:(_vm.searchData.areaTypeId),callback:function ($$v) {_vm.$set(_vm.searchData, "areaTypeId", $$v)},expression:"searchData.areaTypeId"}},_vm._l((_vm.areaTypeOption),function(item){return _c('el-option',{key:item.id,attrs:{"label":item.displayName,"value":item.id}})}),1),_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":function($event){return _vm.getListData()}}},[_vm._v("搜索")]),_c('el-button',{attrs:{"size":"small"},on:{"click":function($event){return _vm.resetForm()}}},[_vm._v("重置")]),_c('el-button',{attrs:{"disabled":!_vm.$hasAccess('create'),"size":"small","type":"primary"},on:{"click":function($event){return _vm.addAreaData()}}},[_vm._v("新增区域")]),_c('el-button',{attrs:{"disabled":!_vm.$hasAccess('delete'),"size":"small","type":"danger"},on:{"click":function($event){return _vm.deleteList()}}},[_vm._v("删除")])],1),_c('el-table',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.tableLoading),expression:"tableLoading"}],ref:"areaTable",staticClass:"mt-20px",attrs:{"height":_vm.tableHeight,"border":"","stripe":"","data":_vm.dataList,"row-key":"id"},on:{"selection-change":_vm.handleSelectionChange}},[_c('el-table-column',{attrs:{"type":"selection","width":"60","align":"center"}}),_c('el-table-column',{attrs:{"label":"区域名称","prop":"name","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"label":"区域类型","prop":"areaTypeName","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"label":"区域编码","prop":"code","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"label":"风险等级","prop":"riskLevelName","show-overflow-tooltip":""},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-tag',{staticClass:"w-60px text-center",class:{
                  'tag-risk-primary': _vm._.eq(_vm.tagType[scope.row.riskLevelName], 'primary'),
                  'tag-risk-general': _vm._.eq(_vm.tagType[scope.row.riskLevelName], 'risk'),
                },attrs:{"size":"mini","type":_vm.tagType[scope.row.riskLevelName] || 'empty'}},[_vm._v(_vm._s(scope.row.riskLevelName))])]}}])}),_c('el-table-column',{attrs:{"label":"所属区域分组","prop":"groupName","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"width":"200","label":"操作","show-overflow-tooltip":""},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-button',{attrs:{"disabled":!_vm.$hasAccess('read'),"size":"mini"},on:{"click":function($event){return _vm.openDeviceDialog('detail', scope.row)}}},[_vm._v("详情")]),_c('el-button',{attrs:{"disabled":!_vm.$hasAccess('update'),"size":"mini"},on:{"click":function($event){return _vm.openDeviceDialog('edit', scope.row)}}},[_vm._v("编辑")]),_c('el-button',{attrs:{"disabled":!_vm.$hasAccess('delete'),"size":"mini"},on:{"click":function($event){return _vm.removeTableData(scope.row)}}},[_vm._v("删除")])]}}])})],1),_c('el-pagination',{staticClass:"float-right mt-20px",attrs:{"background":"","current-page":_vm.pageConfig.SkipCount,"page-size":_vm.pageConfig.MaxResultCount,"layout":"total, sizes ,prev, pager, next","page-sizes":[15, 30, 45, 60, 75, 90],"total":_vm.pageConfig.totalCount},on:{"size-change":function($event){return _vm.handleSearch()},"current-change":function($event){return _vm.getListData()},"update:currentPage":function($event){return _vm.$set(_vm.pageConfig, "SkipCount", $event)},"update:current-page":function($event){return _vm.$set(_vm.pageConfig, "SkipCount", $event)},"update:pageSize":function($event){return _vm.$set(_vm.pageConfig, "MaxResultCount", $event)},"update:page-size":function($event){return _vm.$set(_vm.pageConfig, "MaxResultCount", $event)}}})],1)],1)],1),_c('el-dialog',{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],staticClass:"mini-dialog",attrs:{"close-on-click-modal":false,"title":(_vm.areaGroupDialogTitle + "区域组"),"visible":_vm.areaGroupDialog},on:{"update:visible":function($event){_vm.areaGroupDialog=$event}}},[_c('el-form',{ref:"areagroupForm",attrs:{"label-width":"160px","model":_vm.areagroupForm,"rules":_vm.areaGroupRules}},[_c('el-form-item',{attrs:{"label":"区域组名称","prop":"name"}},[_c('el-input',{attrs:{"placeholder":"请输入区域组名称","size":"small","clearable":"","maxlength":"50","show-word-limit":""},model:{value:(_vm.areagroupForm.name),callback:function ($$v) {_vm.$set(_vm.areagroupForm, "name", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:"areagroupForm.name"}})],1)],1),_c('div',{staticClass:"flex justify-center items-center",attrs:{"slot":"footer"},slot:"footer"},[_c('el-button',{attrs:{"size":"small","type":"primary","icon":"iconfont icon-save","loading":_vm.saveLoading},on:{"click":_vm.saveAreaGroupForm}},[_vm._v("保存")]),_c('el-button',{attrs:{"size":"small","icon":"iconfont icon-close"},on:{"click":function($event){_vm.areaGroupDialog = false}}},[_vm._v("取消")])],1)],1),(_vm.addAreaDialog)?_c('area-form',{attrs:{"addAreaDialog":_vm.addAreaDialog,"checkForm":_vm.checkForm,"pageType":_vm.pageType,"areaTypeOption":_vm.areaTypeOption,"riskTypeOption":_vm.riskTypeOption,"groupTypeOption":_vm.treeData},on:{"updateList":_vm.updateList,"cancel":function($event){_vm.addAreaDialog = false}}}):_vm._e()],1)}
var staticRenderFns = []


// CONCATENATED MODULE: ./src/modules/risk-area-management/views/RiskArea.vue?vue&type=template&id=03a6ed76&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/slicedToArray.js + 5 modules
var slicedToArray = __webpack_require__("3835");

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

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

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find.js
var es_array_find = __webpack_require__("7db0");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
var es_array_includes = __webpack_require__("caad");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.iterator.js
var es_array_iterator = __webpack_require__("e260");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.join.js
var es_array_join = __webpack_require__("a15b");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.map.js
var es_array_map = __webpack_require__("d81d");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
var es_function_name = __webpack_require__("b0c0");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
var es_object_to_string = __webpack_require__("d3b7");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
var es_string_includes = __webpack_require__("2532");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.trim.js
var es_string_trim = __webpack_require__("498a");

// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.iterator.js
var web_dom_collections_iterator = __webpack_require__("ddb0");

// EXTERNAL MODULE: ./node_modules/@wiz-api/area-management/lib/area-management.umd.js
var area_management_umd = __webpack_require__("aa07");

// EXTERNAL MODULE: ./node_modules/@wiz-api/data-category-management/lib/data-category-management.umd.js
var data_category_management_umd = __webpack_require__("2adf");

// EXTERNAL MODULE: ./node_modules/@wiz-api/abp-application/lib/abp-application.umd.js
var abp_application_umd = __webpack_require__("39d3");

// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1d052202-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/risk-area-management/components/AreaForm.vue?vue&type=template&id=8df48be0&scoped=true
var AreaFormvue_type_template_id_8df48be0_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],staticClass:"mini-dialog",attrs:{"visible":_vm.addAreaDialog,"close-on-click-modal":false,"title":_vm.pageType === 'create' ? '新增区域' : _vm.pageType === 'edit' ? '编辑区域' : '区域详情'},on:{"update:visible":function($event){_vm.addAreaDialog=$event},"close":_vm.closeDialog}},[_c('el-form',{ref:"areaForm",attrs:{"label-width":"160px","rules":_vm.rules,"model":_vm.formData,"disabled":_vm.tableFormDisabled}},[_c('el-form-item',{attrs:{"label":"区域名称","prop":"name"}},[_c('el-input',{attrs:{"placeholder":"请输入区域名称","size":"small","clearable":""},model:{value:(_vm.formData.name),callback:function ($$v) {_vm.$set(_vm.formData, "name", $$v)},expression:"formData.name"}})],1),_c('el-form-item',{attrs:{"label":"区域类型","prop":"areaTypeId"}},[_c('el-select',{attrs:{"size":"small","placeholder":"请选择区域类型","clearable":"","filterable":""},model:{value:(_vm.formData.areaTypeId),callback:function ($$v) {_vm.$set(_vm.formData, "areaTypeId", $$v)},expression:"formData.areaTypeId"}},_vm._l((_vm.areaTypeOption),function(item){return _c('el-option',{key:item.id,attrs:{"label":item.displayName,"value":item.id}})}),1)],1),_c('el-form-item',{attrs:{"label":"区域编码","prop":"code"}},[_c('el-input',{attrs:{"placeholder":"请输入区域编码","size":"small","clearable":""},model:{value:(_vm.formData.code),callback:function ($$v) {_vm.$set(_vm.formData, "code", $$v)},expression:"formData.code"}})],1),_c('el-form-item',{attrs:{"label":"风险等级","prop":"riskLevelId"}},[_c('el-select',{attrs:{"size":"small","placeholder":"请选择风险等级","clearable":"","filterable":""},model:{value:(_vm.formData.riskLevelId),callback:function ($$v) {_vm.$set(_vm.formData, "riskLevelId", $$v)},expression:"formData.riskLevelId"}},_vm._l((_vm.riskTypeOption),function(item){return _c('el-option',{key:item.id,attrs:{"label":item.displayName,"value":item.id}})}),1)],1),_c('el-form-item',{attrs:{"label":"所属分组","prop":"areaGroupIds"}},[_c('el-select',{attrs:{"multiple":"","size":"small","placeholder":"请选择所属分组","clearable":"","filterable":""},model:{value:(_vm.formData.areaGroupIds),callback:function ($$v) {_vm.$set(_vm.formData, "areaGroupIds", $$v)},expression:"formData.areaGroupIds"}},_vm._l((_vm.dealGroupTypeOption),function(item){return _c('el-option',{key:item.id,attrs:{"label":item.displayName,"value":item.id}})}),1)],1)],1),(!this.tableFormDisabled)?_c('div',{staticClass:"flex justify-center items-center",attrs:{"slot":"footer"},slot:"footer"},[_c('el-button',{attrs:{"size":"small","type":"primary","loading":_vm.saveLoading},on:{"click":_vm.handleSave}},[_vm._v("保存")]),_c('el-button',{attrs:{"size":"small"},on:{"click":_vm.closeDialog}},[_vm._v("取消")])],1):_vm._e()],1)}
var AreaFormvue_type_template_id_8df48be0_scoped_true_staticRenderFns = []


// CONCATENATED MODULE: ./src/modules/risk-area-management/components/AreaForm.vue?vue&type=template&id=8df48be0&scoped=true

// 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/risk-area-management/components/AreaForm.vue?vue&type=script&lang=js







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


var areaApi = new area_management_umd["AreaApi"]();
/* harmony default export */ var AreaFormvue_type_script_lang_js = ({
  name: 'area-form',
  props: {
    addAreaDialog: {
      type: Boolean,
      default: false
    },
    checkForm: {
      type: Object,
      default: function _default() {
        return {};
      }
    },
    pageType: {
      type: String,
      default: 'create'
    },
    areaTypeOption: {
      type: Array,
      default: function _default() {
        return [];
      }
    },
    riskTypeOption: {
      type: Array,
      default: function _default() {
        return [];
      }
    },
    groupTypeOption: {
      type: Array,
      default: function _default() {
        return [];
      }
    }
  },
  computed: {
    // 分组数据处理
    dealGroupTypeOption: function dealGroupTypeOption(val) {
      var targetArr = _.get(_.head(this.groupTypeOption), 'children');
      if (!targetArr) {
        return [];
      }
      return _.map(targetArr, function (item) {
        return {
          id: item.id,
          displayName: item.name
        };
      });
    },
    // 表单禁用
    tableFormDisabled: function tableFormDisabled() {
      return this.pageType === 'detail';
    }
  },
  data: function data() {
    return {
      // 表单校验
      rules: {
        name: [{
          required: true,
          message: '请输入区域名称',
          trigger: 'change'
        }],
        areaTypeId: [{
          required: true,
          message: '请输入区域类型',
          trigger: 'change'
        }],
        code: [{
          required: true,
          message: '请输入区域编码',
          trigger: 'change'
        }],
        riskLevelId: [{
          required: true,
          message: '请输入风险等级',
          trigger: 'change'
        }],
        areaGroupIds: [{
          required: false,
          message: '请输入所属分组',
          trigger: 'change'
        }]
      },
      // 选中资质模板过滤后显示的字段
      chooseFilterList: [],
      dataList: [],
      // 表单数据
      formData: {
        name: '',
        areaTypeId: '',
        code: '',
        riskLevelId: '',
        areaGroupIds: []
      },
      // 保存加载动画
      saveLoading: false
    };
  },
  methods: {
    // 关闭弹框
    closeDialog: function closeDialog() {
      this.$emit('cancel');
    },
    // 保存
    handleSave: function handleSave() {
      var _this = this;
      return 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.areaForm.validate( /*#__PURE__*/function () {
                var _ref = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee(valid) {
                  return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee$(_context) {
                    while (1) switch (_context.prev = _context.next) {
                      case 0:
                        if (valid) {
                          _context.next = 2;
                          break;
                        }
                        return _context.abrupt("return");
                      case 2:
                        if (!_this.formData.id) {
                          _context.next = 5;
                          break;
                        }
                        _this.editAreaManagement();
                        return _context.abrupt("return");
                      case 5:
                        _this.addAreaManagement();
                      case 6:
                      case "end":
                        return _context.stop();
                    }
                  }, _callee);
                }));
                return function (_x) {
                  return _ref.apply(this, arguments);
                };
              }());
            case 1:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    },
    // 编辑二维区域管理
    editAreaManagement: function editAreaManagement() {
      var _this2 = this;
      return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee3() {
        var body, _yield$areaApi$update, _yield$areaApi$update2, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee3$(_context3) {
          while (1) switch (_context3.prev = _context3.next) {
            case 0:
              _this2.saveLoading = true;
              // 暂时写死 待接口改造去除必填
              body = _.cloneDeep(_this2.formData);
              _context3.next = 4;
              return areaApi.updateTwoDimensionalArea(_this2.formData.id, {
                body: body
              });
            case 4:
              _yield$areaApi$update = _context3.sent;
              _yield$areaApi$update2 = Object(slicedToArray["a" /* default */])(_yield$areaApi$update, 2);
              err = _yield$areaApi$update2[0];
              res = _yield$areaApi$update2[1];
              _this2.saveLoading = false;
              if (!err) {
                _this2.$message.success('保存成功');
                // 保存成功后，清空数据和区域
                _this2.formData = _this2.$options.data().formData;
                _this2.closeDialog();
                // 编辑更新当前列表
                _this2.$emit('updateList', 'edit');
              }
            case 10:
            case "end":
              return _context3.stop();
          }
        }, _callee3);
      }))();
    },
    // 新建二维区域管理
    addAreaManagement: function addAreaManagement() {
      var _this3 = this;
      return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee4() {
        var body, _yield$areaApi$create, _yield$areaApi$create2, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee4$(_context4) {
          while (1) switch (_context4.prev = _context4.next) {
            case 0:
              _this3.saveLoading = true;
              // 暂时写死 待接口改造去除必填
              body = _.cloneDeep(_this3.formData);
              _context4.next = 4;
              return areaApi.createTwoDimensionalArea({
                body: body
              });
            case 4:
              _yield$areaApi$create = _context4.sent;
              _yield$areaApi$create2 = Object(slicedToArray["a" /* default */])(_yield$areaApi$create, 2);
              err = _yield$areaApi$create2[0];
              res = _yield$areaApi$create2[1];
              _this3.saveLoading = false;
              if (!err) {
                _this3.$message.success('保存成功');
                // 保存成功后，清空数据和区域
                _this3.formData = _this3.$options.data().formData;
                _this3.closeDialog();
                // 新增获取第一页新数据
                _this3.$emit('updateList');
              }
            case 10:
            case "end":
              return _context4.stop();
          }
        }, _callee4);
      }))();
    },
    // 接口保存表单
    saveForm: function saveForm() {
      return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee5() {
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee5$(_context5) {
          while (1) switch (_context5.prev = _context5.next) {
            case 0:
            case "end":
              return _context5.stop();
          }
        }, _callee5);
      }))();
    }
  },
  created: function created() {
    this.formData = _.cloneDeep(this.checkForm);
    // 默认自定义风险区域
    if (this.pageType === 'create') {
      this.formData.areaTypeId = _.get(_.find(this.areaTypeOption, ['displayName', '自定义风险区域']), 'id');
    }
  }
});
// CONCATENATED MODULE: ./src/modules/risk-area-management/components/AreaForm.vue?vue&type=script&lang=js
 /* harmony default export */ var components_AreaFormvue_type_script_lang_js = (AreaFormvue_type_script_lang_js); 
// EXTERNAL MODULE: ./src/modules/risk-area-management/components/AreaForm.vue?vue&type=style&index=0&id=8df48be0&prod&lang=scss&scoped=true
var AreaFormvue_type_style_index_0_id_8df48be0_prod_lang_scss_scoped_true = __webpack_require__("1fbc");

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

// CONCATENATED MODULE: ./src/modules/risk-area-management/components/AreaForm.vue






/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  components_AreaFormvue_type_script_lang_js,
  AreaFormvue_type_template_id_8df48be0_scoped_true_render,
  AreaFormvue_type_template_id_8df48be0_scoped_true_staticRenderFns,
  false,
  null,
  "8df48be0",
  null
  
)

/* harmony default export */ var AreaForm = (component.exports);
// 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/risk-area-management/views/RiskArea.vue?vue&type=script&lang=js














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






// 业务请求
var RiskAreavue_type_script_lang_js_areaApi = new area_management_umd["AreaApi"]();
var areaGroupApi = new area_management_umd["AreaGroupApi"]();
var dataCategoryApi = new data_category_management_umd["DataCategoryApi"]();
var abpApplicationConfigurationApi = new abp_application_umd["AbpApplicationConfigurationApi"]();
var currentEnv = Wiz.GetModuleConfig('risk-area-management').currentEnv;
/* harmony default export */ var RiskAreavue_type_script_lang_js = ({
  name: 'risk-area',
  components: {
    AreaForm: AreaForm
  },
  data: function data() {
    return {
      // 分页参数
      pageConfig: {
        SkipCount: 1,
        MaxResultCount: 15,
        totalCount: 0
      },
      // 搜索字段
      searchData: {},
      // 区域组名称
      areaGroupName: '',
      // 区域树列表
      treeData: [],
      // 当前选择树节点
      currentTreeSelect: null,
      // 区域加载动画控制
      treeLoading: false,
      // 区域组弹框显隐
      areaGroupDialog: false,
      // 弹框标题
      areaGroupDialogTitle: '新增',
      // 区域组弹框保存动画
      saveLoading: false,
      // 区域组表单
      areagroupForm: {
        name: '',
        id: ''
      },
      // 区域组表单校验
      areaGroupRules: {
        name: [{
          required: true,
          message: '请前些区域组名称',
          trigger: 'change'
        }]
      },
      // 风险等级列表
      riskTypeOption: [],
      // 风险区域列表
      areaTypeOption: [],
      // 表格加载
      tableLoading: false,
      // 新增弹框显隐
      addAreaDialog: false,
      // 区域表单
      checkForm: {
        name: '',
        areaTypeId: '',
        code: '',
        riskLevelId: '',
        areaGroupIds: []
      },
      // 当前操作类型
      pageType: '',
      // 表格选中数据
      multipleSelect: [],
      // 区域组数据
      dataList: []
    };
  },
  created: function created() {
    // 获取区域组列表
    this.getAreaGroupData();
    // 初始化请求列表
    this.getListData();
    // 获取风险等级列表
    this.getSelectOption();
  },
  computed: {
    // 表格高度适配
    tableHeight: function tableHeight() {
      return 'calc(100% - 115px)';
    },
    // 风险等级-标签类型
    tagType: function tagType() {
      return _.fromPairs(currentEnv.tagType);
    }
  },
  methods: {
    // 区域数点击过滤
    clickModelTree: function clickModelTree(node) {
      this.searchData.areaGroupId = node.id;
      this.handleSearch();
    },
    // 区域数据过滤
    filterTree: function filterTree(value, data) {
      return data.name.includes(value);
    },
    // 区域点击搜索
    handleNodeClick: function handleNodeClick(node) {
      this.currentTreeSelect = node;
      this.getAreaGroupData();
    },
    // 选中处理
    handleSelectionChange: function handleSelectionChange(val) {
      this.multipleSelect = val;
    },
    // 区域组添加事件
    addAreaGroup: function addAreaGroup() {
      var _this = this;
      var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
        name: '',
        id: ''
      };
      this.areaGroupDialog = true;
      this.$nextTick(function () {
        _this.$refs.areagroupForm.resetFields();
        _this.areagroupForm = _.assign({}, data);
      });
    },
    // 保存、编辑区域组
    saveAreaGroupForm: function saveAreaGroupForm() {
      var _this2 = this;
      return 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:
              _this2.$refs.areagroupForm.validate( /*#__PURE__*/function () {
                var _ref = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee(valid) {
                  return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee$(_context) {
                    while (1) switch (_context.prev = _context.next) {
                      case 0:
                        if (valid) {
                          _context.next = 2;
                          break;
                        }
                        return _context.abrupt("return");
                      case 2:
                        if (!_this2.areagroupForm.id) {
                          _context.next = 5;
                          break;
                        }
                        _this2.editAreaGroupData();
                        return _context.abrupt("return");
                      case 5:
                        _this2.addAreaGroupData();
                      case 6:
                      case "end":
                        return _context.stop();
                    }
                  }, _callee);
                }));
                return function (_x) {
                  return _ref.apply(this, arguments);
                };
              }());
            case 1:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    },
    // 获取区域组数据
    getAreaGroupData: function getAreaGroupData() {
      var _this3 = this;
      return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee3() {
        var data, _yield$areaGroupApi$g, _yield$areaGroupApi$g2, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee3$(_context3) {
          while (1) switch (_context3.prev = _context3.next) {
            case 0:
              _this3.treeLoading = true;
              data = {
                maxResultCount: 999,
                // 每页多少条
                skipCount: 0 // 跳过多少条
              };
              _context3.next = 4;
              return areaGroupApi.getList_0(data);
            case 4:
              _yield$areaGroupApi$g = _context3.sent;
              _yield$areaGroupApi$g2 = Object(slicedToArray["a" /* default */])(_yield$areaGroupApi$g, 2);
              err = _yield$areaGroupApi$g2[0];
              res = _yield$areaGroupApi$g2[1];
              _this3.treeLoading = false;
              if (!err) {
                _this3.treeData = [{
                  name: '区域组列表',
                  id: '',
                  type: 0,
                  children: res
                }];
              }
            case 10:
            case "end":
              return _context3.stop();
          }
        }, _callee3);
      }))();
    },
    // 编辑区域组数据
    editAreaGroupData: function editAreaGroupData() {
      var _this4 = this;
      return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee4() {
        var _yield$areaGroupApi$u, _yield$areaGroupApi$u2, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee4$(_context4) {
          while (1) switch (_context4.prev = _context4.next) {
            case 0:
              _this4.saveLoading = true;
              _context4.next = 3;
              return areaGroupApi.update(_this4.areagroupForm.id, {
                body: _.assign({}, _this4.areagroupForm)
              });
            case 3:
              _yield$areaGroupApi$u = _context4.sent;
              _yield$areaGroupApi$u2 = Object(slicedToArray["a" /* default */])(_yield$areaGroupApi$u, 2);
              err = _yield$areaGroupApi$u2[0];
              res = _yield$areaGroupApi$u2[1];
              _this4.areaGroupDialog = false;
              _this4.saveLoading = false;
              if (!err) {
                _this4.getAreaGroupData();
                _this4.$message.success('编辑成功');
              }
            case 10:
            case "end":
              return _context4.stop();
          }
        }, _callee4);
      }))();
    },
    // 新增区域组数据
    addAreaGroupData: function addAreaGroupData() {
      var _this5 = this;
      return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee5() {
        var body, _yield$areaGroupApi$c, _yield$areaGroupApi$c2, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee5$(_context5) {
          while (1) switch (_context5.prev = _context5.next) {
            case 0:
              _this5.saveLoading = true;
              body = {
                modelId: 'test',
                name: _.trim(_this5.areagroupForm.name)
              };
              _context5.next = 4;
              return areaGroupApi.create({
                body: body
              });
            case 4:
              _yield$areaGroupApi$c = _context5.sent;
              _yield$areaGroupApi$c2 = Object(slicedToArray["a" /* default */])(_yield$areaGroupApi$c, 2);
              err = _yield$areaGroupApi$c2[0];
              res = _yield$areaGroupApi$c2[1];
              _this5.saveLoading = false;
              _this5.areaGroupDialog = false;
              if (!err) {
                _this5.getAreaGroupData();
                _this5.$message.success('新增成功');
              }
            case 11:
            case "end":
              return _context5.stop();
          }
        }, _callee5);
      }))();
    },
    // 删除区域组
    deleteAreaGroup: function deleteAreaGroup(id, name) {
      var _this6 = this;
      return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee6() {
        var _yield$areaGroupApi$c3, _yield$areaGroupApi$c4, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee6$(_context6) {
          while (1) switch (_context6.prev = _context6.next) {
            case 0:
              _context6.next = 2;
              return _this6.$confirm("\u662F\u5426\u5220\u9664\"".concat(name || '', "\"\u533A\u57DF\u7EC4\uFF1F"), '提示', {
                confirmButtonText: '确定',
                cancelButtonText: '取消',
                type: 'warning'
              });
            case 2:
              _context6.next = 4;
              return areaGroupApi.callDelete(id);
            case 4:
              _yield$areaGroupApi$c3 = _context6.sent;
              _yield$areaGroupApi$c4 = Object(slicedToArray["a" /* default */])(_yield$areaGroupApi$c3, 2);
              err = _yield$areaGroupApi$c4[0];
              res = _yield$areaGroupApi$c4[1];
              if (!err) {
                _this6.$message.success('删除成功');
                _this6.getAreaGroupData();
              }
            case 9:
            case "end":
              return _context6.stop();
          }
        }, _callee6);
      }))();
    },
    // 区域数点击事件
    handleCommand: function handleCommand(command, data) {
      switch (command) {
        case 'edit':
          this.areaGroupDialogTitle = '编辑';
          this.addAreaGroup(data);
          break;
        case 'delete':
          var id = data.id,
            name = data.name;
          this.deleteAreaGroup(id, name);
          break;
        default:
          break;
      }
    },
    // 风险等级列表
    getSelectOption: function getSelectOption() {
      var _this7 = this;
      return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee7() {
        var ids, _yield$abpApplication, _yield$abpApplication2, configError, abpConfigList, _yield$dataCategoryAp, _yield$dataCategoryAp2, statusError, statusRes;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee7$(_context7) {
          while (1) switch (_context7.prev = _context7.next) {
            case 0:
              ids = [];
              _context7.next = 3;
              return abpApplicationConfigurationApi.get();
            case 3:
              _yield$abpApplication = _context7.sent;
              _yield$abpApplication2 = Object(slicedToArray["a" /* default */])(_yield$abpApplication, 2);
              configError = _yield$abpApplication2[0];
              abpConfigList = _yield$abpApplication2[1];
              if (configError) {
                _context7.next = 15;
                break;
              }
              _context7.next = 10;
              return dataCategoryApi.getListByCodes({
                // AreaType RiskLevel
                codes: [abpConfigList.setting.values['AreaManagement.DataCategory.AreaType'], abpConfigList.setting.values['AreaManagement.DataCategory.RiskLevel']],
                includeDetails: true
              });
            case 10:
              _yield$dataCategoryAp = _context7.sent;
              _yield$dataCategoryAp2 = Object(slicedToArray["a" /* default */])(_yield$dataCategoryAp, 2);
              statusError = _yield$dataCategoryAp2[0];
              statusRes = _yield$dataCategoryAp2[1];
              if (!statusError) {
                ids = statusRes.map(function (item) {
                  return item.id;
                });
                _this7.getItemsByIds(ids);
              }
            case 15:
            case "end":
              return _context7.stop();
          }
        }, _callee7);
      }))();
    },
    // 获取数据字典列表
    getItemsByIds: function getItemsByIds(ids) {
      var _this8 = this;
      return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee8() {
        var _yield$dataCategoryAp3, _yield$dataCategoryAp4, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee8$(_context8) {
          while (1) switch (_context8.prev = _context8.next) {
            case 0:
              _context8.next = 2;
              return dataCategoryApi.getListByIds({
                ids: ids,
                includeDetails: true
              });
            case 2:
              _yield$dataCategoryAp3 = _context8.sent;
              _yield$dataCategoryAp4 = Object(slicedToArray["a" /* default */])(_yield$dataCategoryAp3, 2);
              err = _yield$dataCategoryAp4[0];
              res = _yield$dataCategoryAp4[1];
              if (!err) {
                // 承包商入厂状态
                _this8.riskTypeOption = _.get(_.find(res, ['code', 'RiskLevel']), 'dataItems');
                // 审批状态
                _this8.areaTypeOption = _.get(_.find(res, ['code', 'AreaType']), 'dataItems');
              }
            case 7:
            case "end":
              return _context8.stop();
          }
        }, _callee8);
      }))();
    },
    // 表单新建、编辑获取数据逻辑
    updateList: function updateList(type) {
      if (type === 'edit') {
        this.getListData();
        return;
      }
      this.resetForm();
    },
    // 重置搜索
    resetForm: function resetForm() {
      this.searchData = this.$options.data().searchData;
      this.handleSearch();
    },
    // 搜索
    handleSearch: function handleSearch() {
      this.pageConfig.SkipCount = 1;
      this.getListData();
    },
    // 页码改变
    tableSizeChange: function tableSizeChange(MaxResultCount) {
      this.pageConfig.MaxResultCount = MaxResultCount;
      this.getListData();
    },
    // 页数改变
    tableCurrentChange: function tableCurrentChange(SkipCount) {
      this.pageConfig.SkipCount = SkipCount;
      this.getListData();
    },
    // 获取列表数据
    getListData: function getListData() {
      var _this9 = this;
      return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee9() {
        var data, _yield$areaApi$getLis, _yield$areaApi$getLis2, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee9$(_context9) {
          while (1) switch (_context9.prev = _context9.next) {
            case 0:
              _this9.tableLoading = true;
              data = Object(objectSpread2["a" /* default */])({
                maxResultCount: _this9.pageConfig.MaxResultCount,
                // 每页多少条
                skipCount: (_this9.pageConfig.SkipCount - 1) * _this9.pageConfig.MaxResultCount
              }, _this9.searchData);
              _context9.next = 4;
              return RiskAreavue_type_script_lang_js_areaApi.getList(data);
            case 4:
              _yield$areaApi$getLis = _context9.sent;
              _yield$areaApi$getLis2 = Object(slicedToArray["a" /* default */])(_yield$areaApi$getLis, 2);
              err = _yield$areaApi$getLis2[0];
              res = _yield$areaApi$getLis2[1];
              if (!err) {
                _this9.dataList = _.map(res.items, function (item) {
                  return _.assign(item, {
                    groupName: _.join(_.map(item.areaGroupList, 'name'), ',')
                  });
                });
                _this9.pageConfig.totalCount = res.totalCount;
                _this9.tableLoading = false;
              }
            case 9:
            case "end":
              return _context9.stop();
          }
        }, _callee9);
      }))();
    },
    // 新增区域
    addAreaData: function addAreaData() {
      this.pageType = 'create';
      this.checkForm = this.$options.data().checkForm;
      this.addAreaDialog = true;
    },
    // 表格查看
    openDeviceDialog: function openDeviceDialog(type, data) {
      var _this10 = this;
      return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee10() {
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee10$(_context10) {
          while (1) switch (_context10.prev = _context10.next) {
            case 0:
              _this10.pageType = type;
              _this10.checkForm = _.cloneDeep(data);
              _this10.addAreaDialog = true;
            case 3:
            case "end":
              return _context10.stop();
          }
        }, _callee10);
      }))();
    },
    // 区域删除
    removeTableData: function removeTableData(data) {
      var _this11 = this;
      return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee11() {
        var _yield$areaApi$callDe, _yield$areaApi$callDe2, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee11$(_context11) {
          while (1) switch (_context11.prev = _context11.next) {
            case 0:
              _context11.next = 2;
              return _this11.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
                confirmButtonText: '确定',
                cancelButtonText: '取消',
                type: 'warning'
              });
            case 2:
              _context11.next = 4;
              return RiskAreavue_type_script_lang_js_areaApi.callDelete(data.id);
            case 4:
              _yield$areaApi$callDe = _context11.sent;
              _yield$areaApi$callDe2 = Object(slicedToArray["a" /* default */])(_yield$areaApi$callDe, 2);
              err = _yield$areaApi$callDe2[0];
              res = _yield$areaApi$callDe2[1];
              if (!err) {
                _this11.$message.success('删除成功！');
                _this11.getListData();
              }
            case 9:
            case "end":
              return _context11.stop();
          }
        }, _callee11);
      }))();
    },
    // 批量删除
    deleteList: function deleteList() {
      var _this12 = this;
      return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee12() {
        var _yield$areaApi$delete, _yield$areaApi$delete2, err;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee12$(_context12) {
          while (1) switch (_context12.prev = _context12.next) {
            case 0:
              if (!_.isEmpty(_this12.multipleSelect)) {
                _context12.next = 3;
                break;
              }
              _this12.$message.warning('请选择需要删除区域!');
              return _context12.abrupt("return");
            case 3:
              _context12.next = 5;
              return _this12.$confirm('此操作将永久删除所选数据，是否继续？', '提示', {
                confirmButtonText: '确认',
                cancelButtonText: '取消',
                type: 'warning'
              });
            case 5:
              _context12.next = 7;
              return RiskAreavue_type_script_lang_js_areaApi.deleteMany({
                ids: _.map(_this12.multipleSelect, 'id')
              });
            case 7:
              _yield$areaApi$delete = _context12.sent;
              _yield$areaApi$delete2 = Object(slicedToArray["a" /* default */])(_yield$areaApi$delete, 1);
              err = _yield$areaApi$delete2[0];
              if (!err) {
                _this12.$refs.areaTable.clearSelection();
                _this12.$message.success('删除成功');
                _this12.getListData();
              }
            case 11:
            case "end":
              return _context12.stop();
          }
        }, _callee12);
      }))();
    }
  }
});
// CONCATENATED MODULE: ./src/modules/risk-area-management/views/RiskArea.vue?vue&type=script&lang=js
 /* harmony default export */ var views_RiskAreavue_type_script_lang_js = (RiskAreavue_type_script_lang_js); 
// EXTERNAL MODULE: ./src/modules/risk-area-management/views/RiskArea.vue?vue&type=style&index=0&id=03a6ed76&prod&scoped=true&lang=scss
var RiskAreavue_type_style_index_0_id_03a6ed76_prod_scoped_true_lang_scss = __webpack_require__("b3bc");

// CONCATENATED MODULE: ./src/modules/risk-area-management/views/RiskArea.vue






/* normalize component */

var RiskArea_component = Object(componentNormalizer["a" /* default */])(
  views_RiskAreavue_type_script_lang_js,
  render,
  staticRenderFns,
  false,
  null,
  "03a6ed76",
  null
  
)

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

/***/ }),

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

"use strict";

var isObject = __webpack_require__("861d");
var classof = __webpack_require__("c6b6");
var wellKnownSymbol = __webpack_require__("b622");

var MATCH = wellKnownSymbol('match');

// `IsRegExp` abstract operation
// https://tc39.es/ecma262/#sec-isregexp
module.exports = function (it) {
  var isRegExp;
  return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) === 'RegExp');
};


/***/ }),

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

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


// module
exports.push([module.i, ".tree[data-v-03a6ed76]{height:calc(100% - 74px)}.tree[data-v-03a6ed76]  .el-tree-node__content{height:24px}.tree[data-v-03a6ed76]  .el-tree-node__content .node-item{width:calc(100% - 24px)}.tree[data-v-03a6ed76]  .el-tree-node__content .node-item .custom-tree-node{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-size:14px}.button-normal.el-button.el-tooltip[data-v-03a6ed76]{width:unset!important;height:unset!important;padding:6px 12px!important}[data-v-03a6ed76] .el-select__tags .el-tag{max-width:100%;overflow:hidden;text-overflow:ellipsis}[data-v-03a6ed76] .el-card__body{height:100%}[data-v-03a6ed76] .el-form-item__content .el-input,[data-v-03a6ed76] .el-form-item__content .el-select{max-width:none}[data-v-03a6ed76] .el-tag--empty{background-color:transparent;border-color:transparent;color:var(--contentTextColor)}.tag-risk-primary[data-v-03a6ed76]{background-color:#d0ebff!important;color:#0082f7!important;border-color:#d0ebff!important}", ""]);

// exports


/***/ }),

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

"use strict";

var isRegExp = __webpack_require__("44e7");

var $TypeError = TypeError;

module.exports = function (it) {
  if (isRegExp(it)) {
    throw new $TypeError("The method doesn't accept regular expressions");
  } return it;
};


/***/ }),

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

"use strict";

var $ = __webpack_require__("23e7");
var $find = __webpack_require__("b727").find;
var addToUnscopables = __webpack_require__("44d2");

var FIND = 'find';
var SKIPS_HOLES = true;

// Shouldn't skip holes
// eslint-disable-next-line es/no-array-prototype-find -- testing
if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });

// `Array.prototype.find` method
// https://tc39.es/ecma262/#sec-array.prototype.find
$({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
  find: function find(callbackfn /* , that = undefined */) {
    return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  }
});

// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
addToUnscopables(FIND);


/***/ }),

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

"use strict";

var wellKnownSymbol = __webpack_require__("b622");

var MATCH = wellKnownSymbol('match');

module.exports = function (METHOD_NAME) {
  var regexp = /./;
  try {
    '/./'[METHOD_NAME](regexp);
  } catch (error1) {
    try {
      regexp[MATCH] = false;
      return '/./'[METHOD_NAME](regexp);
    } catch (error2) { /* empty */ }
  } return false;
};


/***/ }),

/***/ "b3bc":
/***/ (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_RiskArea_vue_vue_type_style_index_0_id_03a6ed76_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("1bda");
/* 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_RiskArea_vue_vue_type_style_index_0_id_03a6ed76_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_RiskArea_vue_vue_type_style_index_0_id_03a6ed76_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */


/***/ }),

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

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


// module
exports.push([module.i, "[data-v-8df48be0] .el-form-item__content .el-input,[data-v-8df48be0] .el-form-item__content .el-select{max-width:none}", ""]);

// exports


/***/ })

}]);
//# sourceMappingURL=risk-area-management.umd.5.js.map