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

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

/* (ignored) */

/***/ }),

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

/* (ignored) */

/***/ }),

/***/ 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
    );
  }
});


/***/ }),

/***/ "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');
};


/***/ }),

/***/ "4e15":
/***/ (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_ThreeDimensional_vue_vue_type_style_index_0_id_927dadf6_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("9867");
/* 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_ThreeDimensional_vue_vue_type_style_index_0_id_927dadf6_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_ThreeDimensional_vue_vue_type_style_index_0_id_927dadf6_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */


/***/ }),

/***/ "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);


/***/ }),

/***/ "9867":
/***/ (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__("e445");
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("2ab43b64", content, true, {"sourceMap":false,"shadowMode":false});

/***/ }),

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

"use strict";

var $ = __webpack_require__("23e7");
var fails = __webpack_require__("d039");
var isArray = __webpack_require__("e8b5");
var isObject = __webpack_require__("861d");
var toObject = __webpack_require__("7b0b");
var lengthOfArrayLike = __webpack_require__("07fa");
var doesNotExceedSafeInteger = __webpack_require__("3511");
var createProperty = __webpack_require__("8418");
var arraySpeciesCreate = __webpack_require__("65f0");
var arrayMethodHasSpeciesSupport = __webpack_require__("1dde");
var wellKnownSymbol = __webpack_require__("b622");
var V8_VERSION = __webpack_require__("2d00");

var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');

// We can't use this feature detection in V8 since it causes
// deoptimization and serious performance degradation
// https://github.com/zloirock/core-js/issues/679
var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () {
  var array = [];
  array[IS_CONCAT_SPREADABLE] = false;
  return array.concat()[0] !== array;
});

var isConcatSpreadable = function (O) {
  if (!isObject(O)) return false;
  var spreadable = O[IS_CONCAT_SPREADABLE];
  return spreadable !== undefined ? !!spreadable : isArray(O);
};

var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('concat');

// `Array.prototype.concat` method
// https://tc39.es/ecma262/#sec-array.prototype.concat
// with adding support of @@isConcatSpreadable and @@species
$({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
  // eslint-disable-next-line no-unused-vars -- required for `.length`
  concat: function concat(arg) {
    var O = toObject(this);
    var A = arraySpeciesCreate(O, 0);
    var n = 0;
    var i, k, length, len, E;
    for (i = -1, length = arguments.length; i < length; i++) {
      E = i === -1 ? O : arguments[i];
      if (isConcatSpreadable(E)) {
        len = lengthOfArrayLike(E);
        doesNotExceedSafeInteger(n + len);
        for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
      } else {
        doesNotExceedSafeInteger(n + 1);
        createProperty(A, n++, E);
      }
    }
    A.length = n;
    return A;
  }
});


/***/ }),

/***/ "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;
};


/***/ }),

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

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


// module
exports.push([module.i, ".tree[data-v-927dadf6]{height:calc(100% - 74px)}.tree[data-v-927dadf6]  .el-tree-node__content{height:35px}.tree[data-v-927dadf6]  .el-tree-node__content .node-item{width:calc(100% - 24px)}.tree[data-v-927dadf6]  .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-927dadf6]{padding:6px 12px!important;width:unset!important;height:unset!important}[data-v-927dadf6] .el-select__tags .el-tag{overflow:hidden;max-width:100%;text-overflow:ellipsis}[data-v-927dadf6] .el-card__body{height:100%}[data-v-927dadf6] .el-tag--empty{color:var(--contentTextColor);background-color:transparent;border-color:transparent}.tag-risk-primary[data-v-927dadf6]{color:#0082f7!important;background-color:#d0ebff!important;border-color:#d0ebff!important}", ""]);

// exports


/***/ }),

/***/ "f766":
/***/ (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/ThreeDimensional.vue?vue&type=template&id=927dadf6&scoped=true
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"h-full relative"},[_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":""},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-200px mr-10px",attrs:{"size":"small","placeholder":"请选择是否绘制","clearable":""},model:{value:(_vm.searchData.isDrawed),callback:function ($$v) {_vm.$set(_vm.searchData, "isDrawed", $$v)},expression:"searchData.isDrawed"}},_vm._l((_vm.isDrawOption),function(item){return _c('el-option',{key:item.code,attrs:{"label":item.label,"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("重置")])],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"}},[_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":"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:{"label":"是否绘制","prop":"areaCode","show-overflow-tooltip":""},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('span',{class:scope.row.isDrawed ? 'text-$systemMainColor' : 'text-$alarmColor'},[_vm._v("\n            "+_vm._s(scope.row.isDrawed ? '是' : '否')+"\n          ")])]}}])}),_c('el-table-column',{attrs:{"label":"是否显示区域名称","prop":"areaCode","show-overflow-tooltip":""},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-switch',{attrs:{"value":scope.row.isDisplayName},on:{"change":function($event){return _vm.changeShowAreaName(scope.row, $event)}}})]}}])}),_c('el-table-column',{attrs:{"width":"200","label":"操作","show-overflow-tooltip":""},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [(scope.row.isDrawed)?[_c('el-button',{attrs:{"disabled":!_vm.$hasAccess('read'),"size":"mini"},on:{"click":function($event){return _vm.openPaintPage('check', scope.row)}}},[_vm._v("详情")]),_c('el-button',{attrs:{"disabled":!_vm.$hasAccess('update'),"size":"mini"},on:{"click":function($event){return _vm.openPaintPage('edit', scope.row)}}},[_vm._v("编辑")]),_c('el-button',{attrs:{"disabled":!_vm.$hasAccess('clear'),"size":"mini"},on:{"click":function($event){return _vm.removeTableData(scope.row)}}},[_vm._v("清除")])]:[_c('el-button',{attrs:{"disabled":!_vm.$hasAccess('paint'),"size":"mini"},on:{"click":function($event){return _vm.openPaintPage('paint', 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.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)}
var staticRenderFns = []


// CONCATENATED MODULE: ./src/modules/risk-area-management/views/ThreeDimensional.vue?vue&type=template&id=927dadf6&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 + 5 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/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.array.push.js
var es_array_push = __webpack_require__("14d9");

// 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/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/@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/ThreeDimensional.vue?vue&type=script&lang=js















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





// 业务请求
var areaApi = new area_management_umd["AreaApi"]();
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 ThreeDimensionalvue_type_script_lang_js = ({
  name: 'three-dimensional',
  data: function data() {
    return {
      // 分页参数
      pageConfig: {
        SkipCount: 1,
        MaxResultCount: 15
      },
      // 搜索字段
      searchData: {},
      // 区域树列表
      treeData: [],
      // 当前选择树节点
      currentTreeSelect: null,
      // 风险等级列表
      riskTypeOption: [],
      // 风险区域列表
      isDrawOption: [{
        id: true,
        label: '是'
      }, {
        id: false,
        label: '否'
      }],
      // 表格加载
      tableLoading: false,
      // 新增弹框显隐
      addAreaDialog: false,
      // 区域表单
      checkForm: {},
      // 当前操作类型
      pageType: '',
      // 表格选中数据
      multipleSelect: [],
      // 绘制弹框
      paintPageShow: false,
      dataList: [],
      totalCount: 0
    };
  },
  created: function created() {
    // 初始化请求列表
    this.getListData();
    // 获取风险等级列表
    this.getSelectOption();
  },
  deactivated: function deactivated() {
    this.getListData();
  },
  computed: {
    // 表格高度适配
    tableHeight: function tableHeight() {
      return 'calc(100% - 115px)';
    },
    // 风险等级-标签类型
    tagType: function tagType() {
      return _.fromPairs(currentEnv.tagType);
    },
    // 兼容除saas其他项目使用该模块
    basePath: function basePath() {
      return _.get(Wiz, 'globalSettings.globalConfig.routerBase') ? "/".concat(Wiz.globalSettings.globalConfig.routerBase) : '';
    }
  },
  methods: {
    // 区域数据过滤
    filterTree: function filterTree(value, data) {
      return data.name.includes(value);
    },
    // 风险等级列表
    getSelectOption: function getSelectOption() {
      var _this = this;
      return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee() {
        var ids, _yield$abpApplication, _yield$abpApplication2, configError, abpConfigList, _yield$dataCategoryAp, _yield$dataCategoryAp2, statusError, statusRes;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee$(_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              ids = [];
              _context.next = 3;
              return abpApplicationConfigurationApi.get();
            case 3:
              _yield$abpApplication = _context.sent;
              _yield$abpApplication2 = Object(slicedToArray["a" /* default */])(_yield$abpApplication, 2);
              configError = _yield$abpApplication2[0];
              abpConfigList = _yield$abpApplication2[1];
              if (configError) {
                _context.next = 15;
                break;
              }
              _context.next = 10;
              return dataCategoryApi.getListByCodes({
                // AreaType RiskLevel
                codes: [abpConfigList.setting.values['AreaManagement.DataCategory.RiskLevel']],
                includeDetails: true
              });
            case 10:
              _yield$dataCategoryAp = _context.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;
                });
                _this.getItemsByIds(ids);
              }
            case 15:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    // 获取数据字典列表
    getItemsByIds: function getItemsByIds(ids) {
      var _this2 = this;
      return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee2() {
        var _yield$dataCategoryAp3, _yield$dataCategoryAp4, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee2$(_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              _context2.next = 2;
              return dataCategoryApi.getListByIds({
                ids: ids,
                includeDetails: true
              });
            case 2:
              _yield$dataCategoryAp3 = _context2.sent;
              _yield$dataCategoryAp4 = Object(slicedToArray["a" /* default */])(_yield$dataCategoryAp3, 2);
              err = _yield$dataCategoryAp4[0];
              res = _yield$dataCategoryAp4[1];
              if (!err) {
                // 承包商入厂状态
                _this2.riskTypeOption = _.get(_.find(res, ['code', 'RiskLevel']), 'dataItems');
              }
            case 7:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    },
    // 重置搜索
    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 _this3 = this;
      return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee3() {
        var data, _yield$areaApi$getLis, _yield$areaApi$getLis2, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee3$(_context3) {
          while (1) switch (_context3.prev = _context3.next) {
            case 0:
              _this3.tableLoading = true;
              data = Object(objectSpread2["a" /* default */])({
                maxResultCount: _this3.pageConfig.MaxResultCount,
                // 每页多少条
                skipCount: (_this3.pageConfig.SkipCount - 1) * _this3.pageConfig.MaxResultCount
              }, _this3.searchData);
              _context3.next = 4;
              return areaApi.getList(data);
            case 4:
              _yield$areaApi$getLis = _context3.sent;
              _yield$areaApi$getLis2 = Object(slicedToArray["a" /* default */])(_yield$areaApi$getLis, 2);
              err = _yield$areaApi$getLis2[0];
              res = _yield$areaApi$getLis2[1];
              if (!err) {
                _this3.dataList = _.map(res.items, function (item) {
                  return _.assign(item, {
                    groupName: _.join(_.map(item.areaGroupList, 'name'), ',')
                  });
                });
                _this3.totalCount = res.totalCount;
                _this3.tableLoading = false;
              }
            case 9:
            case "end":
              return _context3.stop();
          }
        }, _callee3);
      }))();
    },
    // 新增区域
    addAreaData: function addAreaData() {
      this.pageType = 'create';
      this.checkForm = this.$options.data().checkForm;
      this.addAreaDialog = true;
    },
    // 区域清除
    removeTableData: function removeTableData(data) {
      var _this4 = this;
      return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee4() {
        var _yield$areaApi$clearT, _yield$areaApi$clearT2, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee4$(_context4) {
          while (1) switch (_context4.prev = _context4.next) {
            case 0:
              _context4.next = 2;
              return _this4.$confirm('是否清除绘制数据?', '提示', {
                confirmButtonText: '确定',
                cancelButtonText: '取消',
                type: 'warning'
              });
            case 2:
              _context4.next = 4;
              return areaApi.clearTwoDimensionalAreaCoordinate(data.id);
            case 4:
              _yield$areaApi$clearT = _context4.sent;
              _yield$areaApi$clearT2 = Object(slicedToArray["a" /* default */])(_yield$areaApi$clearT, 2);
              err = _yield$areaApi$clearT2[0];
              res = _yield$areaApi$clearT2[1];
              if (!err) {
                _this4.$message.success('删除成功！');
                _this4.getListData();
              }
            case 9:
            case "end":
              return _context4.stop();
          }
        }, _callee4);
      }))();
    },
    // 批量删除
    deleteList: function deleteList() {
      var _this5 = this;
      return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee5() {
        var _yield$areaApi$delete, _yield$areaApi$delete2, err;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee5$(_context5) {
          while (1) switch (_context5.prev = _context5.next) {
            case 0:
              if (!_.isEmpty(_this5.multipleSelect)) {
                _context5.next = 3;
                break;
              }
              _this5.$message.warning('请选择需要删除区域!');
              return _context5.abrupt("return");
            case 3:
              _context5.next = 5;
              return _this5.$confirm('此操作将永久删除所选数据，是否继续？', '提示', {
                confirmButtonText: '确认',
                cancelButtonText: '取消',
                type: 'warning'
              });
            case 5:
              _context5.next = 7;
              return areaApi.deleteMany({
                ids: _.map(_this5.multipleSelect, 'id')
              });
            case 7:
              _yield$areaApi$delete = _context5.sent;
              _yield$areaApi$delete2 = Object(slicedToArray["a" /* default */])(_yield$areaApi$delete, 1);
              err = _yield$areaApi$delete2[0];
              if (!err) {
                _this5.$refs.areaTable.clearSelection();
                _this5.$message.success('删除成功');
                _this5.getListData();
              }
            case 11:
            case "end":
              return _context5.stop();
          }
        }, _callee5);
      }))();
    },
    // 是否显示名称切换
    changeShowAreaName: function changeShowAreaName(data, targetValue) {
      var _this6 = this;
      return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee6() {
        var params, _yield$areaApi$update, _yield$areaApi$update2, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee6$(_context6) {
          while (1) switch (_context6.prev = _context6.next) {
            case 0:
              // 兼容页面加载方式
              params = _.clone(data);
              _context6.next = 3;
              return areaApi.update(params.id, {
                body: Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, params), {}, {
                  isDisplayName: targetValue,
                  height: params.height || 1
                })
              });
            case 3:
              _yield$areaApi$update = _context6.sent;
              _yield$areaApi$update2 = Object(slicedToArray["a" /* default */])(_yield$areaApi$update, 2);
              err = _yield$areaApi$update2[0];
              res = _yield$areaApi$update2[1];
              if (!err) {
                _this6.getListData();
                _this6.$message.success('修改成功');
              }
            case 8:
            case "end":
              return _context6.stop();
          }
        }, _callee6);
      }))();
    },
    // 绘制
    openPaintPage: function openPaintPage(type, row) {
      // 打开电子围栏绘制页面
      this.$router.push("".concat(this.basePath, "/risk-area-management/draw-area?id=").concat(row.id, "&sceneId=").concat(row.modelId ? row.modelId : '', "&operateType=").concat(type));
    }
  }
});
// CONCATENATED MODULE: ./src/modules/risk-area-management/views/ThreeDimensional.vue?vue&type=script&lang=js
 /* harmony default export */ var views_ThreeDimensionalvue_type_script_lang_js = (ThreeDimensionalvue_type_script_lang_js); 
// EXTERNAL MODULE: ./src/modules/risk-area-management/views/ThreeDimensional.vue?vue&type=style&index=0&id=927dadf6&prod&scoped=true&lang=scss
var ThreeDimensionalvue_type_style_index_0_id_927dadf6_prod_scoped_true_lang_scss = __webpack_require__("4e15");

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

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






/* normalize component */

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

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

/***/ })

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