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

/***/ "a6a0":
/***/ (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__("dd67");
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("61c15338", content, true, {"sourceMap":false,"shadowMode":false});

/***/ }),

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

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addRequestQueue; });
/* harmony import */ var _data_jenkins_workspace_tools_ui_cdn_wiz_integration_protal_dananhai_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("c7eb");
/* harmony import */ var _data_jenkins_workspace_tools_ui_cdn_wiz_integration_protal_dananhai_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("1da1");
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("14d9");
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("d3b7");
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("e6cf");
/* harmony import */ var core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_4__);





var queue = [];
var runningCount = 0;
var maxRequestsNum = 3;
function processNextRequest() {
  return _processNextRequest.apply(this, arguments);
}
function _processNextRequest() {
  _processNextRequest = Object(_data_jenkins_workspace_tools_ui_cdn_wiz_integration_protal_dananhai_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])( /*#__PURE__*/Object(_data_jenkins_workspace_tools_ui_cdn_wiz_integration_protal_dananhai_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])().mark(function _callee2() {
    var request;
    return Object(_data_jenkins_workspace_tools_ui_cdn_wiz_integration_protal_dananhai_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])().wrap(function _callee2$(_context2) {
      while (1) switch (_context2.prev = _context2.next) {
        case 0:
          if (!(runningCount >= maxRequestsNum || queue.length === 0)) {
            _context2.next = 2;
            break;
          }
          return _context2.abrupt("return");
        case 2:
          runningCount += 1;
          request = queue.shift();
          _context2.prev = 4;
          _context2.next = 7;
          return request();
        case 7:
          _context2.next = 11;
          break;
        case 9:
          _context2.prev = 9;
          _context2.t0 = _context2["catch"](4);
        case 11:
          _context2.prev = 11;
          runningCount -= 1;
          processNextRequest();
          return _context2.finish(11);
        case 15:
        case "end":
          return _context2.stop();
      }
    }, _callee2, null, [[4, 9, 11, 15]]);
  }));
  return _processNextRequest.apply(this, arguments);
}
function addRequestQueue(request) {
  return new Promise(function (resolve, reject) {
    queue.push( /*#__PURE__*/Object(_data_jenkins_workspace_tools_ui_cdn_wiz_integration_protal_dananhai_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])( /*#__PURE__*/Object(_data_jenkins_workspace_tools_ui_cdn_wiz_integration_protal_dananhai_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])().mark(function _callee() {
      var result;
      return Object(_data_jenkins_workspace_tools_ui_cdn_wiz_integration_protal_dananhai_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])().wrap(function _callee$(_context) {
        while (1) switch (_context.prev = _context.next) {
          case 0:
            _context.prev = 0;
            _context.next = 3;
            return request();
          case 3:
            result = _context.sent;
            resolve(result);
            _context.next = 10;
            break;
          case 7:
            _context.prev = 7;
            _context.t0 = _context["catch"](0);
            reject(_context.t0);
          case 10:
          case "end":
            return _context.stop();
        }
      }, _callee, null, [[0, 7]]);
    })));
    processNextRequest();
  });
}

/***/ }),

/***/ "d534":
/***/ (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_VerticalImageWall_vue_vue_type_style_index_0_id_264cdb39_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("a6a0");
/* 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_VerticalImageWall_vue_vue_type_style_index_0_id_264cdb39_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_VerticalImageWall_vue_vue_type_style_index_0_id_264cdb39_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */


/***/ }),

/***/ "d8c7":
/***/ (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":"628455f4-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/windicss-webpack-plugin/dist/loaders/windicss-template.cjs!./src/components/portal/VerticalImageWall.vue?vue&type=template&id=264cdb39&scoped=true
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"w-full h-full"},[_c('column-header',{staticClass:"mb-10px",attrs:{"title":_vm.title,"showMore":_vm.data.showMore},on:{"loadMore":_vm.loadMore}}),_c('el-carousel',{staticClass:"image-walll h-[calc(100%-50px)]",attrs:{"autoplay":false,"arrow":"always","indicator-position":"none"}},_vm._l((Math.ceil(_vm.list.length / (_vm.row * _vm.col))),function(item){return _c('el-carousel-item',{key:item},[_c('div',{staticClass:"h-full"},_vm._l((_vm.getGroupList(item - 1)),function(imgItem,index){return _c('el-image',{key:imgItem.id,staticClass:"cursor-pointer",style:({
            marginRight: (index + 1) % _vm.col === 0 ? '0px' : '10px',
            height: ("calc(100% / " + _vm.row + " - 8px * " + (_vm.row - 1) + " / " + _vm.row + ")"),
            width: ("calc(100% / " + _vm.col + " - 10px * " + (_vm.col - 1) + " / " + _vm.col + ")"),
          }),attrs:{"src":("" + _vm.fileUrl + (imgItem.imageFile)),"fit":_vm.data.imageFit || 'fill'},on:{"click":function($event){return _vm.toDetail(imgItem)}}})}),1)])}),1)],1)}
var staticRenderFns = []


// CONCATENATED MODULE: ./src/components/portal/VerticalImageWall.vue?vue&type=template&id=264cdb39&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 + 3 modules
var slicedToArray = __webpack_require__("3835");

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

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

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

// 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.array.slice.js
var es_array_slice = __webpack_require__("fb6a");

// 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.promise.js
var es_promise = __webpack_require__("e6cf");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.iterator.js
var es_string_iterator = __webpack_require__("3ca3");

// 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/workbench/lib/workbench.umd.js
var workbench_umd = __webpack_require__("c7fe");

// EXTERNAL MODULE: ./src/assets/js/RequestQueue.js
var RequestQueue = __webpack_require__("cfba");

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













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



var columnTableApi = new workbench_umd["ColumnTableApi"]();
var columApi = new workbench_umd["ColumApi"]();
var columnHeader = function columnHeader() {
  return __webpack_require__.e(/* import() */ 3).then(__webpack_require__.bind(null, "151c"));
};
/* harmony default export */ var VerticalImageWallvue_type_script_lang_js = ({
  props: {
    data: {
      type: Object,
      default: null
    },
    mode: {
      type: String,
      default: 'update' // update/view   update模式不触发点击
    }
    // data: {
    //   dataSource: '', 数据来源
    //   pageSize: 10, 展示条数
    // }
  },
  components: {
    columnHeader: columnHeader
  },
  computed: {
    fileUrl: function fileUrl() {
      var fileServer = Wiz.GetModuleServer('file-management');
      return "".concat(fileServer, "/api/file-management/files/public/image/");
    },
    routerBase: function routerBase() {
      if (window.__POWERED_BY_QIANKUN__) {
        return "/".concat(_.get(Wiz, 'globalSettings.globalConfig.routerBase'));
      }
      return '';
    }
  },
  data: function data() {
    return {
      page: {
        pageNo: 1,
        pageSize: 1,
        total: 0
      },
      dataSource: '',
      list: [],
      title: '专题',
      row: 1,
      col: 1
    };
  },
  methods: {
    loadMore: function loadMore() {
      if (this.mode !== 'update') {
        window.open("".concat(window.location.origin).concat(window.location.hash ? '/#' : '').concat(this.routerBase, "/portal/homepage?columnId=").concat(this.data.dataSource));
      }
    },
    getGroupList: function getGroupList(index) {
      var num = this.row * this.col;
      var startIndex = index * num;
      return this.list.slice(startIndex, startIndex + num);
    },
    toDetail: function toDetail(row) {
      if (this.mode === 'update') {
        return;
      }
      if (row.jumpType === 2) {
        row.skipMode === 1 ? window.open(row.url) : window.location.href = row.url;
      } else if (row.jumpType === 1) {
        var path = "".concat(this.routerBase, "/portal/homepage?columnId=").concat(row.jumpColumn);
        // row.skipMode === 1
        //   ? window.open(`${window.location.origin}${window.location.hash ? '/#' : ''}${path}`)
        //   : this.$router.push(path)
        window.open("".concat(window.location.origin).concat(window.location.hash ? '/#' : '').concat(path));
      }
    },
    getTitle: function getTitle() {
      var _this = this;
      return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee() {
        var _yield$columApi$getCo, _yield$columApi$getCo2, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee$(_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              if (!(_this.data.title && _this.data.dataSource)) {
                _context.next = 3;
                break;
              }
              _this.getListData();
              return _context.abrupt("return");
            case 3:
              if (!(_this.data.dataSource != null && _this.data.dataSource !== '')) {
                _context.next = 12;
                break;
              }
              _this.page.pageSize = _this.data.pageSize * _this.row * _this.col;
              _context.next = 7;
              return columApi.getColumnDetail(_this.data.dataSource);
            case 7:
              _yield$columApi$getCo = _context.sent;
              _yield$columApi$getCo2 = Object(slicedToArray["a" /* default */])(_yield$columApi$getCo, 2);
              err = _yield$columApi$getCo2[0];
              res = _yield$columApi$getCo2[1];
              if (!err) {
                _this.title = res.name;
                _this.getListData();
              }
            case 12:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    getListData: function getListData() {
      var _this2 = this;
      return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee2() {
        var params, _yield$addRequestQueu, _yield$addRequestQueu2, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee2$(_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              params = {
                columnId: _this2.data.dataSource,
                isShow: true
              };
              _context2.next = 3;
              return Object(RequestQueue["a" /* default */])(function () {
                return columnTableApi.getBinnerColumnTable(_this2.page.pageNo, _this2.page.pageSize, params);
              });
            case 3:
              _yield$addRequestQueu = _context2.sent;
              _yield$addRequestQueu2 = Object(slicedToArray["a" /* default */])(_yield$addRequestQueu, 2);
              err = _yield$addRequestQueu2[0];
              res = _yield$addRequestQueu2[1];
              if (!err) {
                _this2.list = [];
                _.map(res.items, function (it) {
                  it.isShow === true ? _this2.list.push(it) : '';
                });
                _this2.page.total = res.totalCount;
              }
            case 8:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    }
  },
  created: function created() {},
  watch: {
    data: {
      deep: true,
      immediate: true,
      handler: function handler(val, oldVal) {
        if (!_.isEmpty(val)) {
          this.row = val.row || 1;
          this.col = val.col || 1;
          if (val.title) this.title = val.title;
          if (val.dataSource !== this.dataSource || val.pageSize !== this.page.pageSize || val.row !== (oldVal === null || oldVal === void 0 ? void 0 : oldVal.row) || val.col !== (oldVal === null || oldVal === void 0 ? void 0 : oldVal.col)) {
            this.dataSource = val.dataSource;
            this.page.pageSize = val.pageSize * this.row * this.col;
            this.getTitle();
          }
        }
      }
    }
  }
});
// CONCATENATED MODULE: ./src/components/portal/VerticalImageWall.vue?vue&type=script&lang=js
 /* harmony default export */ var portal_VerticalImageWallvue_type_script_lang_js = (VerticalImageWallvue_type_script_lang_js); 
// EXTERNAL MODULE: ./src/components/portal/VerticalImageWall.vue?vue&type=style&index=0&id=264cdb39&prod&lang=scss&scoped=true
var VerticalImageWallvue_type_style_index_0_id_264cdb39_prod_lang_scss_scoped_true = __webpack_require__("d534");

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

// CONCATENATED MODULE: ./src/components/portal/VerticalImageWall.vue






/* normalize component */

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

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

/***/ }),

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

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


// module
exports.push([module.i, ".image-walll[data-v-264cdb39].el-carousel .el-carousel__container{height:100%}.image-walll[data-v-264cdb39].el-carousel .el-carousel__arrow{width:30px;height:40px;border-radius:unset;background-color:rgba(0,0,0,.3)}.image-walll[data-v-264cdb39].el-carousel .el-carousel__arrow:hover{background-color:rgba(0,0,0,.4)}.image-walll[data-v-264cdb39].el-carousel .el-carousel__arrow--left{left:0}.image-walll[data-v-264cdb39].el-carousel .el-carousel__arrow--right{right:0}", ""]);

// exports


/***/ })

}]);
//# sourceMappingURL=portal-homepage-nanhai.umd.39.js.map