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

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

/* (ignored) */

/***/ }),

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

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


// module
exports.push([module.i, "[data-v-1fa9d33d] .el-card__body{height:100%}", ""]);

// exports


/***/ }),

/***/ "6a75":
/***/ (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__("2913");
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("4398591d", content, true, {"sourceMap":false,"shadowMode":false});

/***/ }),

/***/ "9bae":
/***/ (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_Identify_vue_vue_type_style_index_0_id_1fa9d33d_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6a75");
/* 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_Identify_vue_vue_type_style_index_0_id_1fa9d33d_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_Identify_vue_vue_type_style_index_0_id_1fa9d33d_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */


/***/ }),

/***/ "b953":
/***/ (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":"3f554254-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/host/resource-management/views/Identify.vue?vue&type=template&id=1fa9d33d&scoped=true
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-card',{staticClass:"h-full"},[_c('div',{staticClass:"flex mb-20px"},[_c('el-input',{staticClass:"!w-280px mr-10px",attrs:{"size":"mini","placeholder":"请输入关键字","clearable":""},model:{value:(_vm.keyWord),callback:function ($$v) {_vm.keyWord=$$v},expression:"keyWord"}}),_c('el-button',{staticClass:"ml-0px mr-10px ",attrs:{"size":"small","type":"primary"},on:{"click":function($event){return _vm.searchList()}}},[_vm._v("搜索")]),_c('el-button',{staticClass:"!ml-0px mr-10px ",attrs:{"size":"small","type":"primary"},on:{"click":function($event){return _vm.createIdentity()}}},[_vm._v("新增")])],1),_c('el-table',{ref:"eltable",attrs:{"stripe":"","height":_vm.tableHeight,"border":"","data":_vm.tableData},on:{"sort-change":_vm.sortChangeTable}},[_c('el-table-column',{attrs:{"label":"名称","prop":"name","sortable":""}}),_c('el-table-column',{attrs:{"label":"显示名称","prop":"displayName","sortable":""}}),_c('el-table-column',{attrs:{"label":"必须","prop":"required","sortable":""},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_vm._v("\n        "+_vm._s(scope.row.required ? '是' : '否')+"\n      ")]}}])}),_c('el-table-column',{attrs:{"label":"在发现文档中显示","prop":"showInDiscoveryDocument","sortable":""},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_vm._v("\n        "+_vm._s(scope.row.showInDiscoveryDocument ? '是' : '否')+"\n      ")]}}])}),_c('el-table-column',{attrs:{"label":"启用","prop":"enabled","sortable":""},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_vm._v("\n        "+_vm._s(scope.row.enabled ? '是' : '否')+"\n      ")]}}])}),_c('el-table-column',{attrs:{"width":"140","show-overflow-tooltip":"","label":"操作"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-button',{attrs:{"size":"mini"},on:{"click":function($event){return _vm.editIdentity(scope.row)}}},[_vm._v("修改")]),_c('el-button',{attrs:{"size":"mini"},on:{"click":function($event){return _vm.deleteIdentity(scope.row.id)}}},[_vm._v("删除")])]}}])})],1),_c('el-pagination',{staticClass:"float-right mt-20px",attrs:{"background":"","current-page":_vm.page.pageNo,"page-size":_vm.page.pageSize,"total":_vm.page.pageTotal,"layout":"sizes, total, prev, pager, next, jumper","pager-count":5,"page-sizes":[15, 30, 45, 60, 75, 90]},on:{"size-change":function($event){return _vm.searchList()},"current-change":function($event){return _vm.findList()},"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)}}}),(_vm.showOperateIdentity)?_c('operate-identity-dialog',{attrs:{"operateIdentityProps":_vm.operateIdentityProps,"identityForm":_vm.identityForm},on:{"refreshList":_vm.findList}}):_vm._e()],1)}
var staticRenderFns = []


// CONCATENATED MODULE: ./src/modules/host/resource-management/views/Identify.vue?vue&type=template&id=1fa9d33d&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.sort.js
var es_array_sort = __webpack_require__("4e82");

// 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/auth-server/lib/auth-server.umd.js
var auth_server_umd = __webpack_require__("93f7");

// 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/host/resource-management/views/Identify.vue?vue&type=script&lang=js










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


var identityResourceApi = new auth_server_umd["IdentityResourceApi"]();
var OperateIdentityDialog = function OperateIdentityDialog() {
  return Promise.all(/* import() */[__webpack_require__.e(1), __webpack_require__.e(12)]).then(__webpack_require__.bind(null, "06a6"));
};
/* harmony default export */ var Identifyvue_type_script_lang_js = ({
  name: 'client',
  components: {
    OperateIdentityDialog: OperateIdentityDialog
  },
  data: function data() {
    return {
      keyWord: '',
      showOperateIdentity: false,
      operateIdentityProps: {
        title: '新增身份资源',
        editType: 'create',
        visible: true
      },
      identityForm: {
        name: '',
        displayName: '',
        userClaims: [],
        description: '',
        enabled: true,
        showInDiscoveryDocument: true
      },
      tableData: [],
      page: {
        pageNo: 1,
        pageSize: 15,
        pageTotal: 0
      },
      sort: {
        type: '',
        sortName: 'creationTime'
      }
    };
  },
  computed: {
    tableHeight: function tableHeight() {
      return 'calc(100% - 110px)';
    }
  },
  methods: {
    sortChangeTable: function sortChangeTable(sortColumn) {
      if (_.isNil(sortColumn.column)) {
        return;
      }
      this.sort.type = sortColumn.order === 'ascending' ? 0 : 1;
      this.sort.sortName = sortColumn.prop;
      this.findList();
    },
    searchList: function searchList() {
      this.page.pageNo = 1;
      this.findList();
    },
    findList: function findList() {
      var _this = this;
      return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee() {
        var _yield$identityResour, _yield$identityResour2, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee$(_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              _context.next = 2;
              return identityResourceApi.getList({
                filter: _this.keyWord,
                skipCount: (_this.page.pageNo - 1) * _this.page.pageSize,
                maxResultCount: _this.page.pageSize,
                sorting: "".concat(_this.sort.sortName, " ").concat(_this.sort.type === 0 ? 'asc' : 'desc')
              });
            case 2:
              _yield$identityResour = _context.sent;
              _yield$identityResour2 = Object(slicedToArray["a" /* default */])(_yield$identityResour, 2);
              err = _yield$identityResour2[0];
              res = _yield$identityResour2[1];
              if (!err) {
                _this.tableData = res.items;
                _this.page.pageTotal = res.totalCount;
              }
            case 7:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    createIdentity: function createIdentity() {
      this.showOperateIdentity = true;
      this.operateIdentityProps = this.$options.data().operateIdentityProps;
      this.identityForm = this.$options.data().identityForm;
    },
    editIdentity: function editIdentity(row) {
      var _this2 = this;
      return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee2() {
        var _yield$identityResour3, _yield$identityResour4, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee2$(_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              _context2.next = 2;
              return identityResourceApi.get(row.id);
            case 2:
              _yield$identityResour3 = _context2.sent;
              _yield$identityResour4 = Object(slicedToArray["a" /* default */])(_yield$identityResour3, 2);
              err = _yield$identityResour4[0];
              res = _yield$identityResour4[1];
              if (!err) {
                _this2.identityForm = res;
              }
              _this2.showOperateIdentity = true;
              _this2.operateIdentityProps = _this2.$options.data().operateIdentityProps;
              _this2.operateIdentityProps.editType = 'edit';
              _this2.operateIdentityProps.title = '编辑身份资源';
            case 11:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    },
    /**
     * @description: 删除身份
     * @param {*}
     * @return {*}
     */
    deleteIdentity: function deleteIdentity(id) {
      var _this3 = this;
      this.$confirm('确认要删除么', '提示', {
        confirmButtonText: '确认',
        cancelButtonText: '取消',
        type: 'warning'
      }).then( /*#__PURE__*/Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee3() {
        var _yield$identityResour5, _yield$identityResour6, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee3$(_context3) {
          while (1) switch (_context3.prev = _context3.next) {
            case 0:
              _context3.next = 2;
              return identityResourceApi.callDelete(id);
            case 2:
              _yield$identityResour5 = _context3.sent;
              _yield$identityResour6 = Object(slicedToArray["a" /* default */])(_yield$identityResour5, 2);
              err = _yield$identityResour6[0];
              res = _yield$identityResour6[1];
              if (!err) {
                _this3.$message.success({
                  showClose: true,
                  message: '删除成功'
                });
                _this3.searchList();
              }
            case 7:
            case "end":
              return _context3.stop();
          }
        }, _callee3);
      }))).catch(function () {
        _this3.$message({
          showClose: true,
          type: 'info',
          message: '已取消删除'
        });
      });
    }
  },
  activated: function activated() {
    var _this4 = this;
    this.$nextTick(function () {
      _this4.$refs.eltable.doLayout();
    });
  },
  created: function created() {
    this.searchList();
  }
});
// CONCATENATED MODULE: ./src/modules/host/resource-management/views/Identify.vue?vue&type=script&lang=js
 /* harmony default export */ var views_Identifyvue_type_script_lang_js = (Identifyvue_type_script_lang_js); 
// EXTERNAL MODULE: ./src/modules/host/resource-management/views/Identify.vue?vue&type=style&index=0&id=1fa9d33d&prod&scoped=true&lang=scss
var Identifyvue_type_style_index_0_id_1fa9d33d_prod_scoped_true_lang_scss = __webpack_require__("9bae");

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

// CONCATENATED MODULE: ./src/modules/host/resource-management/views/Identify.vue






/* normalize component */

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

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

/***/ })

}]);
//# sourceMappingURL=resource-management.umd.10.js.map