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

/***/ "0fb4":
/***/ (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_WorkplaceSafety_vue_vue_type_style_index_0_id_60d8cc7a_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("d092");
/* 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_WorkplaceSafety_vue_vue_type_style_index_0_id_60d8cc7a_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_WorkplaceSafety_vue_vue_type_style_index_0_id_60d8cc7a_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */


/***/ }),

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

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


// module
exports.push([module.i, ".workplace-safety[data-v-60d8cc7a]{font-family:Microsoft YaHei}.workplace-safety .dashed-border[data-v-60d8cc7a]{background:-webkit-gradient(linear,left top,right top,from(transparent),color-stop(50%,transparent),color-stop(50%,#e2e2e2),to(#e2e2e2));background:linear-gradient(90deg,transparent 0,transparent 50%,#e2e2e2 0,#e2e2e2);background-size:20px 1px;background-repeat:repeat-x}.workplace-safety .dashed-border-red[data-v-60d8cc7a]{background:-webkit-gradient(linear,left top,right top,from(transparent),color-stop(50%,transparent),color-stop(50%,var(--portalPrimaryColor)),to(var(--portalPrimaryColor)));background:linear-gradient(90deg,transparent 0,transparent 50%,var(--portalPrimaryColor) 0,var(--portalPrimaryColor));background-size:20px 1px;background-repeat:repeat-x}", ""]);

// exports


/***/ }),

/***/ "9e67":
/***/ (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/modules/portal-homepage/views/WorkplaceSafety.vue?vue&type=template&id=60d8cc7a&scoped=true
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"bg-hex-$portalPrimaryBgColor h-full relative px-13px py-8px workplace-safety"},[_c('div',{staticClass:"absolute right-12px top-104/380"},[_c('div',{staticClass:"w-25px h-25px text-12px text-center !leading-25px text-hex-$portalPrimaryColor cursor-pointer border-1px border-$portalPrimaryColor rounded-1/2",on:{"click":function($event){_vm.currentIndex = 1}}},[_c('span',{staticClass:"iconfont icon-line-up"})]),_c('div',{staticClass:"w-25px h-25px text-12px text-center !leading-25px text-hex-$portalPrimaryColor mt-15px cursor-pointer border-1px border-$portalPrimaryColor rounded-1/2",on:{"click":function($event){_vm.currentIndex = 11}}},[_c('span',{staticClass:"iconfont icon-line-down"})])]),_c('div',{staticClass:"h-full overflow-hidden mr-35px"},[_c('div',{staticClass:"flex justify-between items-center h-20/380"},[_c('div',{staticClass:"flex-1 flex items-center truncate"},[_c('div',{staticClass:"text-14px"},[_vm._v(_vm._s(_vm.pointList[0].name))]),_c('div',{staticClass:"text-hex-ff5c00 text-20px font-bold ml-7px mr-5px"},[_vm._v("\n          "+_vm._s(_vm.pointList[0].value)+"\n        ")]),_c('div',{staticClass:"text-12px text-hex-999"},[_vm._v(_vm._s(_vm.pointList[0].unit))])]),_c('div',{staticClass:"text-hex-$portalPrimaryColor text-14px font-bold"},[_vm._v("\n        "+_vm._s(_vm.currentIndex === 1 ? '运行数据' : '环保数据')+"\n      ")])]),_c('div',{staticClass:"dashed-border-red h-1px my-10px"}),_c('div',{staticClass:"h-82/380 flex flex-col justify-around"},[_vm._m(0),_c('div',{staticClass:"flex text-center text-14px text-hex-333"},[_c('div',{staticClass:"w-125px truncate text-left text-hex-999"},[_vm._v("\n          "+_vm._s(_vm.pointList[_vm.currentIndex].name)+"("+_vm._s(_vm.pointList[_vm.currentIndex].unit)+")\n        ")]),_c('div',{staticClass:"flex-1 ml-5px truncate"},[_vm._v(_vm._s(_vm.pointList[_vm.currentIndex].value))]),_c('div',{staticClass:"flex-1 ml-5px truncate"},[_vm._v(_vm._s(_vm.pointList[_vm.currentIndex + 1].value))])]),_c('div',{staticClass:"flex text-center text-14px text-hex-333"},[_c('div',{staticClass:"w-125px truncate text-left text-hex-999"},[_vm._v("\n          "+_vm._s(_vm.pointList[_vm.currentIndex + 2].name)+"("+_vm._s(_vm.pointList[_vm.currentIndex + 2].unit)+")\n        ")]),_c('div',{staticClass:"flex-1 ml-5px truncate"},[_vm._v(_vm._s(_vm.pointList[_vm.currentIndex + 2].value))]),_c('div',{staticClass:"flex-1 ml-5px truncate"},[_vm._v(_vm._s(_vm.pointList[_vm.currentIndex + 3].value))])])]),_c('div',{staticClass:"dashed-border h-1px mt-18px mb-18px"}),_c('div',{staticClass:"h-192/380 flex flex-col justify-around"},_vm._l((_vm.pointList.slice(_vm.currentIndex + 4, _vm.currentIndex + 10)),function(item){return _c('div',{key:item.name,staticClass:"flex text-center text-14px text-hex-333 mb-10px"},[_c('div',{staticClass:"w-125px truncate text-left text-hex-999"},[_vm._v("\n          "+_vm._s(item.name)+"("+_vm._s(item.unit)+")\n        ")]),_c('div',{staticClass:"flex-1 ml-5px truncate"},[_vm._v(_vm._s(item.value))])])}),0)])])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"flex text-center text-14px text-hex-333"},[_c('div',{staticClass:"w-125px truncate text-left"},[_vm._v("名称")]),_c('div',{staticClass:"flex-1 ml-5px truncate"},[_vm._v("一号机")]),_c('div',{staticClass:"flex-1 ml-5px truncate"},[_vm._v("二号机")])])}]


// CONCATENATED MODULE: ./src/modules/portal-homepage/views/WorkplaceSafety.vue?vue&type=template&id=60d8cc7a&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/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.join.js
var es_array_join = __webpack_require__("a15b");

// 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/web.dom-collections.for-each.js
var web_dom_collections_for_each = __webpack_require__("159b");

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

// EXTERNAL MODULE: external "_"
var external_ = __webpack_require__("60bb");

// EXTERNAL MODULE: external "axios"
var external_axios_ = __webpack_require__("cebe");
var external_axios_default = /*#__PURE__*/__webpack_require__.n(external_axios_);

// CONCATENATED MODULE: ./src/modules/portal-homepage/js/workplaceSafetyConfig.js
/* harmony default export */ var workplaceSafetyConfig = ([{
  name: '安全生产',
  code: 'PE_SAFE_DAY',
  unit: '天',
  value: 0
}, {
  name: '连续运行',
  code: 'PE_DCS1_LXYXTS',
  unit: '天',
  value: 0
}, {
  name: '连续运行',
  code: 'PE_DCS2_LXYXTS',
  unit: '天',
  value: 0
}, {
  name: '实时负荷',
  code: 'DCS1.MW',
  unit: 'MW',
  value: '-'
}, {
  name: '实时负荷',
  code: 'DCS2.MW',
  unit: 'MW',
  value: '-'
}, {
  name: '日电量',
  code: 'PE_ALL_FDL_DAY',
  unit: '万kwh',
  value: '-'
}, {
  name: '月电量',
  code: 'PE_FDL_MON_ALL',
  unit: '万kwh',
  value: '-'
}, {
  name: '年电量',
  code: 'PE_FDL_YEAR_ALL',
  unit: '万kwh',
  value: '-'
}, {
  name: '日供热',
  code: 'PE.QCGRLLYLL.D',
  unit: 'GJ',
  value: '-'
}, {
  name: '月供热',
  code: 'PE.QCGRLLYLL.M',
  unit: 'GJ',
  value: '-'
}, {
  name: '年供热',
  code: 'PE.QCGRLLYLL.Y',
  unit: 'GJ',
  value: '-'
}, {
  name: '脱硝效率',
  code: 'PE_1_TXXL_AVG_DAY',
  unit: '%',
  value: '-'
}, {
  name: '脱硝效率',
  code: 'PE_2_TXXL_AVG_DAY',
  unit: '%',
  value: '-'
}, {
  name: '脱硫效率',
  code: 'TL.DPU1SPA55',
  unit: '%',
  value: '-'
}, {
  name: '脱硫效率',
  code: 'TL.2HTD1FU151',
  unit: '%',
  value: '-'
}, {
  name: '烟囱烟尘',
  code: 'TL.JTA10CQ104',
  unit: 'mg/Nm³',
  value: '-'
}, {
  name: '排放标准',
  code: '',
  unit: 'mg/Nm³',
  value: '5.00'
}, {
  name: '烟囱SO2',
  code: 'TL.JTA10CQ101',
  unit: 'mg/Nm³',
  value: '-'
}, {
  name: '排放标准',
  code: '',
  unit: 'mg/Nm³',
  value: '35.00'
}, {
  name: '烟囱NOX',
  code: 'TL.JTA10CQ103',
  unit: 'mg/Nm³',
  value: '-'
}, {
  name: '排放标准',
  code: '',
  unit: 'mg/Nm³',
  value: '50.00'
}]);
// 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/portal-homepage/views/WorkplaceSafety.vue?vue&type=script&lang=js








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




/* harmony default export */ var WorkplaceSafetyvue_type_script_lang_js = ({
  data: function data() {
    return {
      pointList: workplaceSafetyConfig,
      currentIndex: 1,
      timer: null
    };
  },
  computed: {
    baseServer: function baseServer() {
      return Wiz.GetModuleServer('workbench');
    }
  },
  methods: {
    getPointListByCode: function getPointListByCode() {
      var _this = this;
      return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee() {
        var codes;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee$(_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              codes = Object(external_["compact"])(Object(external_["map"])(_this.pointList, function (item) {
                return "codes=".concat(item.code);
              }));
              external_axios_default()({
                url: "".concat(_this.baseServer, "/api/workbench/measuring-point/list-by-point-codes?").concat(codes.join('&')),
                method: 'post',
                headers: {
                  Authorization: "Bearer ".concat(Wiz.AuthHooks.GetToken())
                }
              }).then(function (res) {
                if (res && res.status === 200 && !_.isEmpty(res.data)) {
                  res.data.forEach(function (item) {
                    var point = Object(external_["find"])(_this.pointList, {
                      code: item.code
                    });
                    if (point) {
                      point.pointId = "".concat(item.pointId);
                    }
                  });
                  _this.timer = setInterval(function () {
                    _this.getPointListRealTimeValue();
                  }, 1000);
                }
              });
            case 2:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    getPointListRealTimeValue: function getPointListRealTimeValue() {
      var _this2 = this;
      return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee2() {
        var pointIds;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee2$(_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              pointIds = Object(external_["compact"])(Object(external_["map"])(_this2.pointList, function (item) {
                return item.pointId;
              }));
              if (!(pointIds.length === 0)) {
                _context2.next = 3;
                break;
              }
              return _context2.abrupt("return");
            case 3:
              external_axios_default()({
                url: "".concat(_this2.baseServer, "/api/workbench/measuring-point/multiple-realtime-value?ids=").concat(pointIds.join(',')),
                method: 'get',
                headers: {
                  Authorization: "Bearer ".concat(Wiz.AuthHooks.GetToken())
                }
              }).then(function (res) {
                var _res$data;
                if (res && res.status === 200 && !_.isEmpty((_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.data)) {
                  res.data.data.forEach(function (item) {
                    if (item.values.length) {
                      var point = Object(external_["find"])(_this2.pointList, {
                        pointId: item.measuringPointId
                      });
                      if (point) {
                        point.value = _.round(item.values[0].value, 2);
                      }
                    }
                  });
                }
              });
            case 4:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    }
  },
  created: function created() {
    var _this3 = this;
    return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee3() {
      return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee3$(_context3) {
        while (1) switch (_context3.prev = _context3.next) {
          case 0:
            _this3.getPointListByCode();
          case 1:
          case "end":
            return _context3.stop();
        }
      }, _callee3);
    }))();
  },
  beforeDestroy: function beforeDestroy() {
    if (this.timer) {
      clearInterval(this.timer);
    }
  }
});
// CONCATENATED MODULE: ./src/modules/portal-homepage/views/WorkplaceSafety.vue?vue&type=script&lang=js
 /* harmony default export */ var views_WorkplaceSafetyvue_type_script_lang_js = (WorkplaceSafetyvue_type_script_lang_js); 
// EXTERNAL MODULE: ./src/modules/portal-homepage/views/WorkplaceSafety.vue?vue&type=style&index=0&id=60d8cc7a&prod&lang=scss&scoped=true
var WorkplaceSafetyvue_type_style_index_0_id_60d8cc7a_prod_lang_scss_scoped_true = __webpack_require__("0fb4");

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

// CONCATENATED MODULE: ./src/modules/portal-homepage/views/WorkplaceSafety.vue






/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  views_WorkplaceSafetyvue_type_script_lang_js,
  render,
  staticRenderFns,
  false,
  null,
  "60d8cc7a",
  null
  
)

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

/***/ }),

/***/ "d092":
/***/ (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__("69ff");
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("1c8923a7", content, true, {"sourceMap":false,"shadowMode":false});

/***/ })

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