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

/***/ "1310":
/***/ (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":"28eb61d9-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/safety/WizSafetyPage/violation/ReportFlow.vue?vue&type=template&id=f19e0ee8
var 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"}],attrs:{"title":_vm.dialogTitle,"visible":_vm.dialogVisible,"close-on-click-modal":false,"width":"1100px","custom-class":"set-middle-dialog"},on:{"update:visible":function($event){_vm.dialogVisible=$event}}},[_c('iframe',{staticClass:"w-full h-full",attrs:{"src":_vm.flowSrc,"frameborder":"0"}})])}
var staticRenderFns = []


// CONCATENATED MODULE: ./src/components/safety/WizSafetyPage/violation/ReportFlow.vue?vue&type=template&id=f19e0ee8

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/regenerator.js + 1 modules
var regenerator = __webpack_require__("c14f");

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

// EXTERNAL MODULE: ./node_modules/@wiz-api/emergency-management/lib/emergency-management.umd.js
var emergency_management_umd = __webpack_require__("779f");

// 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/safety/WizSafetyPage/violation/ReportFlow.vue?vue&type=script&lang=js





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


var planApi = new emergency_management_umd["PlanApi"]();
/* harmony default export */ var ReportFlowvue_type_script_lang_js = ({
  name: 'ApprovalFlow',
  props: {
    visible: {
      type: Boolean,
      default: false
    },
    // 弹窗显隐
    flowid: {
      type: [String, Number],
      default: ''
    },
    groupid: {
      type: [String, Number],
      default: ''
    }
  },
  computed: {
    dialogVisible: {
      get: function get() {
        return this.visible;
      },
      set: function set(val) {
        this.$emit('update:visible', val);
      }
    },
    dialogTitle: function dialogTitle() {
      return this.$t('查看流程');
    } // dialog标题
  },
  data: function data() {
    return {
      flowSrc: '' // 嵌入流程图的地址
    };
  },
  methods: {
    /**
     * @description 获取iframe嵌入地址的token和ip地址
     */
    getProcessDetail: function getProcessDetail() {
      var _this = this;
      return Object(asyncToGenerator["a" /* default */])(/*#__PURE__*/Object(regenerator["a" /* default */])().m(function _callee() {
        var _yield$planApi$getPro, _yield$planApi$getPro2, err, res;
        return Object(regenerator["a" /* default */])().w(function (_context) {
          while (1) switch (_context.n) {
            case 0:
              _context.n = 1;
              return planApi.getProcess();
            case 1:
              _yield$planApi$getPro = _context.v;
              _yield$planApi$getPro2 = Object(slicedToArray["a" /* default */])(_yield$planApi$getPro, 2);
              err = _yield$planApi$getPro2[0];
              res = _yield$planApi$getPro2[1];
              if (!err) {
                _this.flowSrc = "".concat(res.apiUrl, "/index.html?loadurl=").concat(encodeURIComponent("/flow/run/process?flowid=".concat(_this.flowid, "&groupid=").concat(_this.groupid, "&status=-1")), "&nroadflow-token=").concat(res.token, "&isiframe=1");
              }
            case 2:
              return _context.a(2);
          }
        }, _callee);
      }))();
    }
  },
  created: function created() {
    this.getProcessDetail();
  }
});
// CONCATENATED MODULE: ./src/components/safety/WizSafetyPage/violation/ReportFlow.vue?vue&type=script&lang=js
 /* harmony default export */ var violation_ReportFlowvue_type_script_lang_js = (ReportFlowvue_type_script_lang_js); 
// EXTERNAL MODULE: ./src/components/safety/WizSafetyPage/violation/ReportFlow.vue?vue&type=style&index=0&id=f19e0ee8&prod&lang=scss
var ReportFlowvue_type_style_index_0_id_f19e0ee8_prod_lang_scss = __webpack_require__("24b5");

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

// CONCATENATED MODULE: ./src/components/safety/WizSafetyPage/violation/ReportFlow.vue






/* normalize component */

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

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

/***/ }),

/***/ "24b5":
/***/ (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_ReportFlow_vue_vue_type_style_index_0_id_f19e0ee8_prod_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("336e");
/* 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_ReportFlow_vue_vue_type_style_index_0_id_f19e0ee8_prod_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_ReportFlow_vue_vue_type_style_index_0_id_f19e0ee8_prod_lang_scss__WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */


/***/ }),

/***/ "336e":
/***/ (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__("98a5");
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("3cf17db3", content, true, {"sourceMap":false,"shadowMode":false});

/***/ }),

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

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


// module
exports.push([module.i, ".set-middle-dialog .el-dialog__body{height:400px!important}", ""]);

// exports


/***/ })

}]);
//# sourceMappingURL=contractor-management-sm.umd.44.js.map