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

/***/ "1135":
/***/ (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_SelecWorkFlowtUser_vue_vue_type_style_index_0_id_31a3d020_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("71d9");
/* 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_SelecWorkFlowtUser_vue_vue_type_style_index_0_id_31a3d020_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_SelecWorkFlowtUser_vue_vue_type_style_index_0_id_31a3d020_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */


/***/ }),

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

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ DiyService_DiyService; });

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js + 1 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 + 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/@babel/runtime/helpers/esm/classCallCheck.js
var classCallCheck = __webpack_require__("d4ec");

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
var createClass = __webpack_require__("bee2");

// 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.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.regexp.exec.js
var es_regexp_exec = __webpack_require__("ac1f");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.to-string.js
var es_regexp_to_string = __webpack_require__("25f0");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.match.js
var es_string_match = __webpack_require__("466d");

// EXTERNAL MODULE: ./node_modules/superagent/lib/client.js
var client = __webpack_require__("db82");
var client_default = /*#__PURE__*/__webpack_require__.n(client);

// CONCATENATED MODULE: ./src/modules/double-prevention-management-sm/assets/utils/superagent.js









var toType = function toType(obj) {
  return {}.toString.call(obj).match(/\s([a-zA-Z]+)/)[1].toLowerCase();
};
var handleResult = function handleResult(request) {
  return new Promise(function (resolve) {
    request.end(function (err, res) {
      if (err) {
        var _err$response;
        resolve([((_err$response = err.response) === null || _err$response === void 0 ? void 0 : _err$response.body) || err, null]);
      } else {
        resolve([null, res.body]);
      }
    });
  });
};
var commonHeader = {
  'Content-Type': 'application/json;chatset=utf-8'
};
var superagent_SuperagentApi = /*#__PURE__*/function () {
  function SuperagentApi(_ref) {
    var baseUrl = _ref.baseUrl;
    Object(classCallCheck["a" /* default */])(this, SuperagentApi);
    this.agent = client_default.a;
    this.baseUrl = baseUrl;
  }
  /**
   *
   * @param {String} api 接口路由
   * @param {Object} params1 扩展对象，满足不同类型参数传递，params为url携带参数,headers为自定义头参数
   * @returns
   */
  return Object(createClass["a" /* default */])(SuperagentApi, [{
    key: "get",
    value: function get(api, _ref2) {
      var params = _ref2.params,
        _ref2$headers = _ref2.headers,
        headers = _ref2$headers === void 0 ? commonHeader : _ref2$headers;
      var request = this.agent.get("".concat(this.baseUrl).concat(api));
      request.set(headers);
      request.query(params);
      return handleResult(request);
    }
    /**
     *
     * @param {String} api 接口路由
     * @param {Object} params1 扩展对象，满足不同类型参数传递，data为body参数，params为url携带参数,headers为自定义头参数
     * @returns
     */
  }, {
    key: "post",
    value: function post(api, _ref3) {
      var data = _ref3.data,
        params = _ref3.params,
        _ref3$headers = _ref3.headers,
        headers = _ref3$headers === void 0 ? commonHeader : _ref3$headers;
      var type = 'json';
      if (toType(data) === 'formdata') {
        type = 'form';
      }
      var request = this.agent.post("".concat(this.baseUrl).concat(api));
      request.type(type);
      request.set(headers);
      request.query(params);
      request.send(data);
      return handleResult(request);
    }
    /**
     *
     * @param {String} api 接口路由
     * @param {Object} params1 扩展对象，满足不同类型参数传递，params为url携带参数,headers为自定义头参数
     * @returns
     */
  }, {
    key: "delete",
    value: function _delete(api, _ref4) {
      var params = _ref4.params,
        _ref4$headers = _ref4.headers,
        headers = _ref4$headers === void 0 ? commonHeader : _ref4$headers;
      var request = this.agent.del("".concat(this.baseUrl).concat(api));
      request.set(headers);
      request.query(params);
      return handleResult(request);
    }
  }]);
}();

// CONCATENATED MODULE: ./src/modules/double-prevention-management-sm/services/DiyService.js








var token = Wiz.AuthHooks.GetToken();
var headers = {
  Authorization: "Bearer ".concat(localStorage.getItem('authorization') || token)
};
console.log(headers, 111111111);
var superagentApi = new superagent_SuperagentApi({
  baseUrl: window.ApiBase || 'http://pr.code.wiz.top:1052'
});
var DiyService_DiyService = /*#__PURE__*/function () {
  function DiyService() {
    Object(classCallCheck["a" /* default */])(this, DiyService);
  }
  return Object(createClass["a" /* default */])(DiyService, null, [{
    key: "getTableData",
    value: // 获取列表数据
    function () {
      var _getTableData = Object(asyncToGenerator["a" /* default */])(/*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee(payload) {
        var _yield$superagentApi$, _yield$superagentApi$2, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee$(_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              _context.next = 2;
              return superagentApi.post('/api/FormEngine/getTableData', {
                data: payload,
                headers: headers
              });
            case 2:
              _yield$superagentApi$ = _context.sent;
              _yield$superagentApi$2 = Object(slicedToArray["a" /* default */])(_yield$superagentApi$, 2);
              err = _yield$superagentApi$2[0];
              res = _yield$superagentApi$2[1];
              return _context.abrupt("return", [err, res]);
            case 7:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }));
      function getTableData(_x) {
        return _getTableData.apply(this, arguments);
      }
      return getTableData;
    }() // 获取节点审批人
  }, {
    key: "getNodeConfirmUsers",
    value: function () {
      var _getNodeConfirmUsers = Object(asyncToGenerator["a" /* default */])(/*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee2(payload) {
        var _yield$superagentApi$3, _yield$superagentApi$4, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee2$(_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              _context2.next = 2;
              return superagentApi.post('/api/WorkFlow/GetNodeConfirmUsers', {
                data: payload,
                headers: Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, headers), {}, {
                  'Content-Type': 'application/x-www-form-urlencoded'
                })
              });
            case 2:
              _yield$superagentApi$3 = _context2.sent;
              _yield$superagentApi$4 = Object(slicedToArray["a" /* default */])(_yield$superagentApi$3, 2);
              err = _yield$superagentApi$4[0];
              res = _yield$superagentApi$4[1];
              return _context2.abrupt("return", [err, res]);
            case 7:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }));
      function getNodeConfirmUsers(_x2) {
        return _getNodeConfirmUsers.apply(this, arguments);
      }
      return getNodeConfirmUsers;
    }() // 获取下一节点审批人
  }, {
    key: "getNextNodeConfirmUsers",
    value: function () {
      var _getNextNodeConfirmUsers = Object(asyncToGenerator["a" /* default */])(/*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee3(payload) {
        var _yield$superagentApi$5, _yield$superagentApi$6, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee3$(_context3) {
          while (1) switch (_context3.prev = _context3.next) {
            case 0:
              _context3.next = 2;
              return superagentApi.post('/api/WorkFlow/getNextNodeConfirmUsers', {
                data: payload,
                headers: Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, headers), {}, {
                  'Content-Type': 'application/x-www-form-urlencoded'
                })
              });
            case 2:
              _yield$superagentApi$5 = _context3.sent;
              _yield$superagentApi$6 = Object(slicedToArray["a" /* default */])(_yield$superagentApi$5, 2);
              err = _yield$superagentApi$6[0];
              res = _yield$superagentApi$6[1];
              return _context3.abrupt("return", [err, res]);
            case 7:
            case "end":
              return _context3.stop();
          }
        }, _callee3);
      }));
      function getNextNodeConfirmUsers(_x3) {
        return _getNextNodeConfirmUsers.apply(this, arguments);
      }
      return getNextNodeConfirmUsers;
    }()
  }]);
}();


/***/ }),

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

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


// module
exports.push([module.i, ".tree[data-v-31a3d020]{height:calc(100% - 74px)}.tree[data-v-31a3d020]  .el-tree-node__content{height:35px}.tree[data-v-31a3d020]  .el-tree-node__content .node-item{width:calc(100% - 24px)}.tree[data-v-31a3d020]  .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}[data-v-31a3d020] .el-select-dropdown__item{background-color:#fff!important;overflow:hidden;-ms-flex-wrap:nowrap;flex-wrap:nowrap}[data-v-31a3d020] .el-card__body{height:100%}[data-v-31a3d020] .el-input__validateIcon{display:none}.vertial-border[data-v-31a3d020]{background-color:#0086f7}", ""]);

// exports


/***/ }),

/***/ "71d9":
/***/ (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__("6712");
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("511d4d6c", content, true, {"sourceMap":false,"shadowMode":false});

/***/ }),

/***/ "dcfc":
/***/ (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":"4bd4944d-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/double-prevention-management-sm/components/HiddenVerify/SelecWorkFlowtUser.vue?vue&type=template&id=31a3d020&scoped=true
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"h-full"},[_c('el-dialog',{attrs:{"append-to-body":"","close-on-click-modal":false,"title":"选择人员","width":"450px","top":"30vh","visible":_vm.visible,"before-close":_vm.closeDialog},on:{"update:visible":function($event){_vm.visible=$event}}},[_c('div',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.tableLoading),expression:"tableLoading"}],staticClass:"w-full h-full"},[_c('el-form',{ref:"form",staticClass:"py-45px",attrs:{"model":_vm.selectForm,"label-width":"120px","size":"normal"}},[(_vm.isMultiple)?_c('el-form-item',{attrs:{"label":_vm.formLabel,"prop":"multiplePeopleSelect","rules":[
            {
              required: true,
              message: ("请选择" + _vm.formLabel),
              trigger: ['blur', 'change'],
            } ]}},[_c('el-select',{staticClass:"w-full",attrs:{"filterable":"","multiple":"","placeholder":"请选择"},model:{value:(_vm.selectForm.multiplePeopleSelect),callback:function ($$v) {_vm.$set(_vm.selectForm, "multiplePeopleSelect", $$v)},expression:"selectForm.multiplePeopleSelect"}},_vm._l((_vm.tableData),function(item){return _c('el-option',{key:item.Id,attrs:{"label":item.Name,"value":item.Id}})}),1)],1):_c('el-form-item',{attrs:{"label":_vm.formLabel,"prop":"singlePeopleSelect","rules":[
            {
              required: true,
              message: ("请选择" + _vm.formLabel),
              trigger: ['blur', 'change'],
            } ]}},[_c('el-select',{staticClass:"w-full",attrs:{"filterable":"","placeholder":"请选择"},model:{value:(_vm.selectForm.singlePeopleSelect),callback:function ($$v) {_vm.$set(_vm.selectForm, "singlePeopleSelect", $$v)},expression:"selectForm.singlePeopleSelect"}},_vm._l((_vm.tableData),function(item){return _c('el-option',{key:item.Id,attrs:{"label":item.Name,"value":item.Id}})}),1)],1),(_vm.isReportLeader)?_c('el-form-item',{attrs:{"label":"上报原因","prop":"reportReason","rules":[
            {
              required: true,
              message: "请填写上报原因",
              trigger: ['blur', 'change'],
            } ]}},[_c('el-input',{attrs:{"placeholder":"请输入","type":"textarea","autosize":{ minRows: 4, maxRows: 6 }},model:{value:(_vm.selectForm.reportReason),callback:function ($$v) {_vm.$set(_vm.selectForm, "reportReason", $$v)},expression:"selectForm.reportReason"}})],1):_vm._e()],1),_c('div',{staticClass:"flex flex-wrap justify-center items-center mt-20px"},[_c('el-button',{attrs:{"type":"primary","size":"small"},on:{"click":_vm.save}},[_vm._v(" 确定 ")]),_c('el-button',{attrs:{"type":"primary","size":"small"},on:{"click":_vm.closeDialog}},[_vm._v(" 关闭 ")])],1)],1)])],1)}
var staticRenderFns = []


// CONCATENATED MODULE: ./src/modules/double-prevention-management-sm/components/HiddenVerify/SelecWorkFlowtUser.vue?vue&type=template&id=31a3d020&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.find.js
var es_array_find = __webpack_require__("7db0");

// 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/esnext.iterator.constructor.js
var esnext_iterator_constructor = __webpack_require__("0643");

// EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.find.js
var esnext_iterator_find = __webpack_require__("fffc");

// EXTERNAL MODULE: ./src/modules/double-prevention-management-sm/services/DiyService.js + 1 modules
var DiyService = __webpack_require__("21a7");

// 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/double-prevention-management-sm/components/HiddenVerify/SelecWorkFlowtUser.vue?vue&type=script&lang=js







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


/* harmony default export */ var SelecWorkFlowtUservue_type_script_lang_js = ({
  name: 'person-select',
  components: {},
  props: {
    formLabel: {
      type: String,
      default: ''
    },
    isReportLeader: {
      type: Boolean,
      default: false
    },
    type: {
      type: String,
      default: ''
    },
    workFlowTaskId: {
      type: String,
      default: ''
    },
    nodeName: {
      type: String,
      default: ''
    },
    dataId: {
      type: String,
      default: ''
    },
    visible: {
      type: Boolean,
      default: false
    },
    // 弹窗显隐
    // 是否禁用选择按钮
    disabled: {
      type: Boolean,
      default: false
    },
    // 是否多选
    isMultiple: {
      type: Boolean,
      default: false
    },
    value: {
      default: ''
    }
  },
  model: {
    prop: 'value',
    event: 'change'
  },
  data: function data() {
    return {
      workFlowDesignId: '',
      workFlowNodeId: '',
      searchOrganizationId: '',
      tableLoading: false,
      tableData: [],
      saveLoading: false,
      selectForm: {
        multiplePeopleSelect: [],
        singlePeopleSelect: '',
        reportReason: ''
      }
    };
  },
  computed: {},
  watch: {
    visible: function visible(val) {
      if (val) {
        this.initDialog();
      }
    }
  },
  methods: {
    // 获取待办
    getByFlowTaskId: function getByFlowTaskId() {
      var _this = this;
      return Object(asyncToGenerator["a" /* default */])(/*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee() {
        var _res$Data;
        var _yield$DiyService$get, _yield$DiyService$get2, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee$(_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              _context.next = 2;
              return DiyService["a" /* default */].getTableData({
                TableName: 'WF_Work',
                _SearchEqual: {
                  FlowId: _this.workFlowTaskId
                },
                _Where: [{
                  Name: 'WorkState',
                  Value: 'Todo',
                  Type: '='
                }]
              });
            case 2:
              _yield$DiyService$get = _context.sent;
              _yield$DiyService$get2 = Object(slicedToArray["a" /* default */])(_yield$DiyService$get, 2);
              err = _yield$DiyService$get2[0];
              res = _yield$DiyService$get2[1];
              if (!err && res.Code === 1 && (_res$Data = res.Data) !== null && _res$Data !== void 0 && _res$Data.length) {
                _this.workFlowNodeId = res.Data[0].NodeId;
              }
            case 7:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    // 获取下一级节点用户
    getNextNodeUsers: function getNextNodeUsers() {
      var _this2 = this;
      return Object(asyncToGenerator["a" /* default */])(/*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee2() {
        var _yield$DiyService$get3, _yield$DiyService$get4, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee2$(_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              _context2.next = 2;
              return DiyService["a" /* default */].getNextNodeConfirmUsers({
                NodeId: _this2.workFlowNodeId,
                ApprovalType: 'Agree',
                '_Where[0]': {
                  Name: 'LineName',
                  Value: '上级领导审批',
                  Type: '='
                }
              });
            case 2:
              _yield$DiyService$get3 = _context2.sent;
              _yield$DiyService$get4 = Object(slicedToArray["a" /* default */])(_yield$DiyService$get3, 2);
              err = _yield$DiyService$get4[0];
              res = _yield$DiyService$get4[1];
              if (!err && res.Code === 1 && res.Data && res.Data.SelectUsers) {
                _this2.tableData = res.Data.SelectUsers;
              }
            case 7:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    },
    // 初始化弹窗
    initDialog: function initDialog() {
      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.tableLoading = true;
              if (!_this3.workFlowTaskId) {
                _context3.next = 8;
                break;
              }
              _context3.next = 4;
              return _this3.getByFlowTaskId();
            case 4:
              _context3.next = 6;
              return _this3.getNextNodeUsers();
            case 6:
              _context3.next = 14;
              break;
            case 8:
              _context3.next = 10;
              return _this3.getDataDetail();
            case 10:
              _context3.next = 12;
              return _this3.getWorkFlowNodes();
            case 12:
              _context3.next = 14;
              return _this3.getUserList();
            case 14:
              _this3.tableLoading = false;
            case 15:
            case "end":
              return _context3.stop();
          }
        }, _callee3);
      }))();
    },
    // 获取流程节点
    getWorkFlowNodes: function getWorkFlowNodes() {
      var _this4 = this;
      return Object(asyncToGenerator["a" /* default */])(/*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee4() {
        var _yield$DiyService$get5, _yield$DiyService$get6, err, res, currentNode;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee4$(_context4) {
          while (1) switch (_context4.prev = _context4.next) {
            case 0:
              _context4.next = 2;
              return DiyService["a" /* default */].getTableData({
                TableName: 'WF_Node',
                _SearchEqual: {
                  FlowDesignId: _this4.workFlowDesignId
                }
              });
            case 2:
              _yield$DiyService$get5 = _context4.sent;
              _yield$DiyService$get6 = Object(slicedToArray["a" /* default */])(_yield$DiyService$get5, 2);
              err = _yield$DiyService$get6[0];
              res = _yield$DiyService$get6[1];
              console.log(res);
              if (!err && res && res.Code === 1 && res.Data && res.Data.length) {
                currentNode = _.find(res.Data, ['NodeName', _this4.nodeName]);
                if (currentNode) {
                  _this4.workFlowNodeId = currentNode.Id;
                }
              }
            case 8:
            case "end":
              return _context4.stop();
          }
        }, _callee4);
      }))();
    },
    // 获取流程
    getWorkFlowDesign: function getWorkFlowDesign(name) {
      var _this5 = this;
      return Object(asyncToGenerator["a" /* default */])(/*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee5() {
        var _yield$DiyService$get7, _yield$DiyService$get8, err, res, currentFlowDesign;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee5$(_context5) {
          while (1) switch (_context5.prev = _context5.next) {
            case 0:
              _context5.next = 2;
              return DiyService["a" /* default */].getTableData({
                TableName: 'WF_FlowDesign',
                _PageSize: 15,
                _PageIndex: 1,
                _Where: [{
                  Name: 'FlowName',
                  Value: name,
                  Type: 'Like'
                }]
              });
            case 2:
              _yield$DiyService$get7 = _context5.sent;
              _yield$DiyService$get8 = Object(slicedToArray["a" /* default */])(_yield$DiyService$get7, 2);
              err = _yield$DiyService$get8[0];
              res = _yield$DiyService$get8[1];
              if (!err && res && res.Code === 1 && res.Data && res.Data.length) {
                currentFlowDesign = _.find(res.Data, ['FlowName', '隐患治理审批主流程']);
                if (currentFlowDesign) {
                  _this5.workFlowDesignId = currentFlowDesign.Id;
                }
              }
            case 7:
            case "end":
              return _context5.stop();
          }
        }, _callee5);
      }))();
    },
    // 获取数据详情
    getDataDetail: function getDataDetail() {
      var _this6 = this;
      return Object(asyncToGenerator["a" /* default */])(/*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee6() {
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee6$(_context6) {
          while (1) switch (_context6.prev = _context6.next) {
            case 0:
              if (!(_this6.type === 'hiddenList')) {
                _context6.next = 3;
                break;
              }
              _context6.next = 3;
              return _this6.getWorkFlowDesign('隐患治理审批主流程');
            case 3:
            case "end":
              return _context6.stop();
          }
        }, _callee6);
      }))();
    },
    // 关闭弹窗
    closeDialog: function closeDialog() {
      this.$emit('update:visible', false);
      this.$emit('close');
    },
    // 保存
    save: function save() {
      var _this7 = this;
      this.$refs.form.validate(function (valid) {
        if (valid) {
          _this7.$emit('selected', _this7.isMultiple ? _this7.selectForm.multiplePeopleSelect : _this7.selectForm.singlePeopleSelect, _this7.selectForm.reportReason);
          _this7.$emit('update:visible', false);
        }
      });
    },
    // 获取用户列表
    getUserList: function getUserList() {
      var _this8 = this;
      return Object(asyncToGenerator["a" /* default */])(/*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee7() {
        var _yield$DiyService$get9, _yield$DiyService$get10, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee7$(_context7) {
          while (1) switch (_context7.prev = _context7.next) {
            case 0:
              _context7.next = 2;
              return DiyService["a" /* default */].getNodeConfirmUsers({
                NodeId: _this8.workFlowNodeId,
                ApprovalType: 'Agree'
              });
            case 2:
              _yield$DiyService$get9 = _context7.sent;
              _yield$DiyService$get10 = Object(slicedToArray["a" /* default */])(_yield$DiyService$get9, 2);
              err = _yield$DiyService$get10[0];
              res = _yield$DiyService$get10[1];
              if (!err && res.Code === 1 && res.Data && res.Data.SelectUsers) {
                _this8.tableData = res.Data.SelectUsers;
              }
            case 7:
            case "end":
              return _context7.stop();
          }
        }, _callee7);
      }))();
    }
  },
  created: function created() {
    this.initDialog();
  }
});
// CONCATENATED MODULE: ./src/modules/double-prevention-management-sm/components/HiddenVerify/SelecWorkFlowtUser.vue?vue&type=script&lang=js
 /* harmony default export */ var HiddenVerify_SelecWorkFlowtUservue_type_script_lang_js = (SelecWorkFlowtUservue_type_script_lang_js); 
// EXTERNAL MODULE: ./src/modules/double-prevention-management-sm/components/HiddenVerify/SelecWorkFlowtUser.vue?vue&type=style&index=0&id=31a3d020&prod&scoped=true&lang=scss
var SelecWorkFlowtUservue_type_style_index_0_id_31a3d020_prod_scoped_true_lang_scss = __webpack_require__("1135");

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

// CONCATENATED MODULE: ./src/modules/double-prevention-management-sm/components/HiddenVerify/SelecWorkFlowtUser.vue






/* normalize component */

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

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

/***/ })

}]);
//# sourceMappingURL=double-prevention-management-sm.umd.6.js.map