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

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

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


// module
exports.push([module.i, ".active[data-v-336b0e42]{font-weight:700}.active[data-v-336b0e42]:before{content:\"\";position:absolute;width:100%;height:3px;background-color:var(--portalPrimaryTextColor);bottom:-7px}", ""]);

// exports


/***/ }),

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

"use strict";

// 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/components/NavigationBarProps.vue?vue&type=template&id=336b0e42&scoped=true
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"relative w-$portalContainerWidth mx-auto mt-20px"},[_c('div',{staticClass:"flex h-full bg-hex-$portalPrimaryColor text-hex-$portalPrimaryTextColor  font-400 text-18px w-full"},_vm._l((_vm.navList),function(item,index){return _c('div',{key:index,staticClass:"w-1/9 cursor-pointer h-full text-center leading-50px"},[_c('span',{staticClass:"relative",class:{
          active: _vm.activeName === item.activeName,
        },on:{"click":function($event){return _vm.navbarClick(item)}}},[_vm._v("\n        "+_vm._s(item.name)+"\n      ")])])}),0)])}
var staticRenderFns = []


// CONCATENATED MODULE: ./src/modules/portal-homepage/components/NavigationBarProps.vue?vue&type=template&id=336b0e42&scoped=true

// 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.push.js
var es_array_push = __webpack_require__("14d9");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
var es_function_name = __webpack_require__("b0c0");

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



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

/* harmony default export */ var NavigationBarPropsvue_type_script_lang_js = ({
  name: 'NavigationBarProps',
  data: function data() {
    return {
      currentNav: ''
    };
  },
  props: {
    navList: {
      type: Array,
      default: function _default() {
        return [{
          name: '工作台',
          activeName: 'workbench',
          path: '/portal/workbench'
        }, {
          name: '通讯录',
          activeName: 'addressBook',
          path: '/portal/addressBook'
        }, {
          name: '消息',
          activeName: 'message',
          path: '/portal/message'
        }];
      }
    },
    value: {
      type: String,
      default: null
    }
  },
  computed: {
    activeName: function activeName() {
      return this.value ? this.value : this.$route.name;
    },
    routerBase: function routerBase() {
      if (window.__POWERED_BY_QIANKUN__) {
        return "/".concat(_.get(Wiz, 'globalSettings.globalConfig.routerBase'));
      }
      return '';
    }
  },
  created: function created() {},
  methods: {
    navbarClick: function navbarClick(navbar) {
      if (this.value) {
        this.$emit('input', navbar.activeName);
      } else {
        this.$router.push({
          path: "".concat(this.routerBase).concat(navbar.path)
        });
      }
    }
  }
});
// CONCATENATED MODULE: ./src/modules/portal-homepage/components/NavigationBarProps.vue?vue&type=script&lang=js
 /* harmony default export */ var components_NavigationBarPropsvue_type_script_lang_js = (NavigationBarPropsvue_type_script_lang_js); 
// EXTERNAL MODULE: ./src/modules/portal-homepage/components/NavigationBarProps.vue?vue&type=style&index=0&id=336b0e42&prod&scoped=true&lang=scss
var NavigationBarPropsvue_type_style_index_0_id_336b0e42_prod_scoped_true_lang_scss = __webpack_require__("a25d");

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

// CONCATENATED MODULE: ./src/modules/portal-homepage/components/NavigationBarProps.vue






/* normalize component */

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

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

/***/ }),

/***/ "39eb":
/***/ (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/AddressBook.vue?vue&type=template&id=5087627c
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"relative w-$portalContainerWidth mx-auto mt-20px h-800px"},[_c('NavigationBarProps'),_c('el-row',{staticClass:"h-full",attrs:{"gutter":10}},[_c('el-col',{staticClass:"h-full",attrs:{"span":7}},[_c('el-card',{staticClass:"h-full w-full mr-10px",attrs:{"body-style":{ height: '100%' }}},[_c('div',{staticClass:"flex"},[_c('el-input',{staticClass:"mr-10px",attrs:{"placeholder":"搜索部门","prefix-icon":"el-icon-search"},on:{"clear":_vm.searchTreeData},model:{value:(_vm.treeKeyword),callback:function ($$v) {_vm.treeKeyword=$$v},expression:"treeKeyword"}}),_c('el-button',{attrs:{"type":"primary"},on:{"click":_vm.searchTreeData}},[_vm._v("搜索")])],1),_c('el-tree',{ref:"departmentTree",staticClass:"mt-20px overflow-y-auto h-[calc(100%-56px)]",attrs:{"data":_vm.treeData,"highlight-current":"","expand-on-click-node":false,"props":_vm.defaultTreeProps,"filter-node-method":_vm.filterDepartMentNode,"node-key":"id","default-expanded-keys":_vm.defaultExpandedKeys},on:{"node-click":_vm.handleNodeClick}})],1)],1),_c('el-col',{staticClass:"h-full",attrs:{"span":17}},[_c('el-card',{staticClass:"h-full w-full mr-10px",attrs:{"body-style":{ height: '100%' }}},[_c('el-input',{staticClass:"!w-280px mr-10px",attrs:{"size":"small","clearable":"","placeholder":"搜索人员姓名","prefix-icon":"el-icon-search"},on:{"clear":_vm.getUserList},model:{value:(_vm.searchPeople),callback:function ($$v) {_vm.searchPeople=$$v},expression:"searchPeople"}}),_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.getUserList}},[_vm._v("搜索")]),_c('el-table',{staticClass:"mt-20px",attrs:{"height":"calc(100% - 100px)","border":"","stripe":"","data":_vm.tableData}},[_c('el-table-column',{attrs:{"type":"index","width":"60","label":"序号"}}),_c('el-table-column',{attrs:{"label":"所属部门","width":"330px","show-overflow-tooltip":"","sortable":"","prop":"orgUnits"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return _vm._l((scope.row.orgUnits),function(item){return _c('el-tag',{key:item.id,staticClass:"mx-5px",attrs:{"size":"mini"}},[_vm._v(_vm._s(item.organizationUnitName))])})}}])}),_c('el-table-column',{attrs:{"label":"职务","show-overflow-tooltip":"","sortable":"","prop":"posts"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return _vm._l((scope.row.posts),function(item){return _c('el-tag',{key:item.id,staticClass:"mx-5px",attrs:{"size":"mini"}},[_vm._v(_vm._s(item.postName))])})}}])}),_c('el-table-column',{attrs:{"label":"姓名","prop":"name","align":"center"}}),_c('el-table-column',{attrs:{"label":"手机","prop":"phoneNumber","align":"center"}})],1),_c('div',{staticClass:"flex justify-end mt-20px"},[_c('el-pagination',{attrs:{"background":"","current-page":_vm.page.pageNo,"layout":"total, sizes, prev, pager, next, jumper","page-size":_vm.page.pageSize,"total":_vm.page.total,"page-sizes":[15, 30, 45, 60, 75, 90],"pager-count":5},on:{"size-change":_vm.searchList,"current-change":_vm.getUserList,"update:currentPage":function($event){return _vm.$set(_vm.page, "pageNo", $event)},"update:current-page":function($event){return _vm.$set(_vm.page, "pageNo", $event)},"update:pageSize":function($event){return _vm.$set(_vm.page, "pageSize", $event)},"update:page-size":function($event){return _vm.$set(_vm.page, "pageSize", $event)}}})],1)],1)],1)],1)],1)}
var staticRenderFns = []


// CONCATENATED MODULE: ./src/modules/portal-homepage/views/AddressBook.vue?vue&type=template&id=5087627c

// 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.filter.js
var es_array_filter = __webpack_require__("4de4");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
var es_object_to_string = __webpack_require__("d3b7");

// EXTERNAL MODULE: ./node_modules/@wiz-api/account/lib/account.umd.js
var account_umd = __webpack_require__("32d0");

// EXTERNAL MODULE: ./node_modules/@wiz-api/abp-identity/lib/abp-identity.umd.js
var abp_identity_umd = __webpack_require__("d109");

// EXTERNAL MODULE: ./src/modules/portal-homepage/components/NavigationBarProps.vue + 4 modules
var NavigationBarProps = __webpack_require__("20df");

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





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




var eafOrganizationUnitUserApi = new account_umd["EafOrganizationUnitUserApi"]();
var organizationApi = new abp_identity_umd["OrganizationApi"]();
/* harmony default export */ var AddressBookvue_type_script_lang_js = ({
  name: 'AddressBook',
  components: {
    NavigationBarProps: NavigationBarProps["a" /* default */]
  },
  data: function data() {
    return {
      defaultTreeProps: {
        children: 'children',
        label: 'displayName'
      },
      treeData: [],
      // 目录树数据
      tableData: [],
      treeKeyword: '',
      keyword: '',
      page: {
        pageNo: 1,
        pageSize: 15,
        total: 0
      },
      searchPeople: null,
      defaultExpandedKeys: [],
      departmentId: ''
    };
  },
  created: function created() {
    var config = Wiz.globalSettings.dynamicModules.modules['portal-homepage-nanhai'].config;
    document.title = "\u901A\u8BAF\u5F55 - ".concat(config.title);
    this.getAllTreeListDetails();
  },
  methods: {
    searchTreeData: function searchTreeData() {
      this.$refs.departmentTree.filter(this.treeKeyword);
    },
    filterDepartMentNode: function filterDepartMentNode(value, data) {
      if (!value) return true;
      return data.displayName.indexOf(value) !== -1;
    },
    handleNodeClick: function handleNodeClick(data) {
      this.departmentId = data.id;
      this.getUserList();
    },
    // 获取整个目录树
    getAllTreeListDetails: function getAllTreeListDetails() {
      var _this = this;
      return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee() {
        var _yield$organizationAp, _yield$organizationAp2, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee$(_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              _context.next = 2;
              return organizationApi.getAllListDetails({
                Filter: '',
                Sorting: ''
              });
            case 2:
              _yield$organizationAp = _context.sent;
              _yield$organizationAp2 = Object(slicedToArray["a" /* default */])(_yield$organizationAp, 2);
              err = _yield$organizationAp2[0];
              res = _yield$organizationAp2[1];
              if (!err) {
                _this.treeData = res.items;
                _this.defaultExpandedKeys = [_this.treeData[0].id];
                _this.getUserList();
              }
            case 7:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    // 获取用户列表
    getUserList: function getUserList() {
      var _this2 = this;
      return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee2() {
        var _yield$eafOrganizatio, _yield$eafOrganizatio2, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee2$(_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              _context2.next = 2;
              return eafOrganizationUnitUserApi.getOrganizationUnitUserList({
                organizationUnitId: _this2.departmentId,
                includeOrgChild: true,
                // 是否查询该部门子部门人员
                userName: _this2.searchPeople,
                skipCount: _this2.page.pageSize * (_this2.page.pageNo - 1),
                maxResultCount: _this2.page.pageSize
              });
            case 2:
              _yield$eafOrganizatio = _context2.sent;
              _yield$eafOrganizatio2 = Object(slicedToArray["a" /* default */])(_yield$eafOrganizatio, 2);
              err = _yield$eafOrganizatio2[0];
              res = _yield$eafOrganizatio2[1];
              if (!err) {
                _this2.tableData = res.items;
                _this2.page.total = res.totalCount;
              }
            case 7:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    },
    searchList: function searchList() {
      this.page.pageNo = 1;
      this.getUserList();
    },
    findList: function findList() {}
  }
});
// CONCATENATED MODULE: ./src/modules/portal-homepage/views/AddressBook.vue?vue&type=script&lang=js
 /* harmony default export */ var views_AddressBookvue_type_script_lang_js = (AddressBookvue_type_script_lang_js); 
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__("2877");

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





/* normalize component */

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

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

/***/ }),

/***/ 6:
/***/ (function(module, exports) {

/* (ignored) */

/***/ }),

/***/ 7:
/***/ (function(module, exports) {

/* (ignored) */

/***/ }),

/***/ "a25d":
/***/ (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_NavigationBarProps_vue_vue_type_style_index_0_id_336b0e42_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("deea");
/* 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_NavigationBarProps_vue_vue_type_style_index_0_id_336b0e42_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_NavigationBarProps_vue_vue_type_style_index_0_id_336b0e42_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */


/***/ }),

/***/ "deea":
/***/ (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__("0358");
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("e6c74bb0", content, true, {"sourceMap":false,"shadowMode":false});

/***/ })

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