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

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

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


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

// exports


/***/ }),

/***/ "7c0f":
/***/ (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_PictureView_vue_vue_type_style_index_0_id_42862ad6_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("c05c");
/* 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_PictureView_vue_vue_type_style_index_0_id_42862ad6_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_PictureView_vue_vue_type_style_index_0_id_42862ad6_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */


/***/ }),

/***/ "c05c":
/***/ (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__("20da");
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("543eef0a", content, true, {"sourceMap":false,"shadowMode":false});

/***/ }),

/***/ "e5a4":
/***/ (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/components/PictureView.vue?vue&type=template&id=42862ad6&scoped=true
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"h-full w-full bg-$contentBgColor py-5px px-10px"},[_c('div',{staticClass:"h-40px py-3px flex items-center justify-start",on:{"click":function($event){return _vm.$emit('close')}}},[_c('el-page-header',{attrs:{"content":"预览图片"}})],1),_c('el-row',{staticClass:"h-[calc(100%-40px)]"},[_c('el-col',{staticClass:"h-full flex justify-center items-center",attrs:{"span":1}},[_c('el-button',{staticClass:"w-26px h-39px p-0",attrs:{"disabled":_vm.skipCount === 0 || _vm._.isEmpty(_vm.currentDataInfo),"size":"mini","type":"primary","icon":"iconfont icon-line-left"},on:{"click":function($event){return _vm.togglePicture('last')}}})],1),_c('el-col',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.pictureLoading),expression:"pictureLoading"}],staticClass:"h-full flex justify-center items-center",attrs:{"span":22}},[_c('iframe',{ref:"htFrame",staticClass:"h-full w-full",attrs:{"src":"/static/ht/htView.html"},on:{"load":function($event){return _vm.iframeOnload()}}})]),_c('el-col',{staticClass:"h-full flex justify-center items-center",attrs:{"span":1}},[_c('el-button',{staticClass:"w-26px h-39px p-0",attrs:{"disabled":_vm.skipCount === _vm.totalCount - 1 || _vm._.isEmpty(_vm.currentDataInfo),"size":"mini","type":"primary","icon":"iconfont icon-line-right"},on:{"click":function($event){return _vm.togglePicture('next')}}})],1)],1)],1)}
var staticRenderFns = []


// CONCATENATED MODULE: ./src/modules/risk-area-management/components/PictureView.vue?vue&type=template&id=42862ad6&scoped=true

// 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.number.constructor.js
var es_number_constructor = __webpack_require__("a9e3");

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

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




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


var areaChartApi = new area_management_umd["AreaChartApi"]();
/* harmony default export */ var PictureViewvue_type_script_lang_js = ({
  name: 'picture-view',
  props: {
    pageConfig: {
      type: Object,
      default: function _default() {
        return {};
      }
    },
    initDataIndex: {
      type: Number,
      default: 0
    }
  },
  computed: {
    skipCount: function skipCount() {
      return (this.pageConfig.SkipCount - 1) * this.pageConfig.MaxResultCount + this.currentDataIndex;
    }
  },
  data: function data() {
    return {
      currentDataIndex: 0,
      // 当前展示ht数据索引
      totalCount: 0,
      // 列表总数
      pictureLoading: true,
      // 图片加载状态
      currentDataInfo: {} // 当前加载ht数据信息
    };
  },
  methods: {
    // 获取当前数据
    getListData: function getListData() {
      var _this = this;
      return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee() {
        var data, _yield$areaChartApi$g, _yield$areaChartApi$g2, err, res, $window;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee$(_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              _this.pictureLoading = true;
              data = {
                maxResultCount: 1,
                // 每页多少条
                skipCount: _this.skipCount // 跳过多少条
              };
              _context.next = 4;
              return areaChartApi.getList(data);
            case 4:
              _yield$areaChartApi$g = _context.sent;
              _yield$areaChartApi$g2 = Object(slicedToArray["a" /* default */])(_yield$areaChartApi$g, 2);
              err = _yield$areaChartApi$g2[0];
              res = _yield$areaChartApi$g2[1];
              if (err) {
                _context.next = 16;
                break;
              }
              _this.currentDataInfo = _.head(res.items);
              _this.totalCount = res.totalCount;
              _this.pictureLoading = false;
              // 不存在当前ht图数据
              if (!_.isEmpty(_this.currentDataInfo)) {
                _context.next = 14;
                break;
              }
              return _context.abrupt("return");
            case 14:
              $window = _this.$refs.htFrame.contentWindow;
              $window.init(_.get(_this.currentDataInfo, 'fileUrl'));
            case 16:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    // 图片切换
    togglePicture: function togglePicture() {
      var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'last';
      this.currentDataIndex += type === 'last' ? -1 : 1;
      this.getListData();
    },
    // ht加载事件
    iframeOnload: function iframeOnload() {
      // 加载完成获取当前ht图数据
      this.getListData();
    }
  },
  created: function created() {
    // 初始化当前索引
    this.currentDataIndex = this.initDataIndex;
  }
});
// CONCATENATED MODULE: ./src/modules/risk-area-management/components/PictureView.vue?vue&type=script&lang=js
 /* harmony default export */ var components_PictureViewvue_type_script_lang_js = (PictureViewvue_type_script_lang_js); 
// EXTERNAL MODULE: ./src/modules/risk-area-management/components/PictureView.vue?vue&type=style&index=0&id=42862ad6&prod&lang=scss&scoped=true
var PictureViewvue_type_style_index_0_id_42862ad6_prod_lang_scss_scoped_true = __webpack_require__("7c0f");

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

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






/* normalize component */

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

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

/***/ })

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