/******/ (function() { // webpackBootstrap
/******/ 	"use strict";
/******/ 	// The require scope
/******/ 	var __webpack_require__ = {};
/******/ 	
/************************************************************************/
/******/ 	/* webpack/runtime/compat get default export */
/******/ 	!function() {
/******/ 		// getDefaultExport function for compatibility with non-harmony modules
/******/ 		__webpack_require__.n = function(module) {
/******/ 			var getter = module && module.__esModule ?
/******/ 				function() { return module['default']; } :
/******/ 				function() { return module; };
/******/ 			__webpack_require__.d(getter, { a: getter });
/******/ 			return getter;
/******/ 		};
/******/ 	}();
/******/ 	
/******/ 	/* webpack/runtime/define property getters */
/******/ 	!function() {
/******/ 		// define getter functions for harmony exports
/******/ 		__webpack_require__.d = function(exports, definition) {
/******/ 			for(var key in definition) {
/******/ 				if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
/******/ 					Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
/******/ 				}
/******/ 			}
/******/ 		};
/******/ 	}();
/******/ 	
/******/ 	/* webpack/runtime/hasOwnProperty shorthand */
/******/ 	!function() {
/******/ 		__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
/******/ 	}();
/******/ 	
/******/ 	/* webpack/runtime/make namespace object */
/******/ 	!function() {
/******/ 		// define __esModule on exports
/******/ 		__webpack_require__.r = function(exports) {
/******/ 			if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ 				Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ 			}
/******/ 			Object.defineProperty(exports, '__esModule', { value: true });
/******/ 		};
/******/ 	}();
/******/ 	
/************************************************************************/
var __webpack_exports__ = {};
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  "default": function() { return /* binding */ dialog_table; }
});

;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./packages/dialog-table/src/main.vue?vue&type=template&id=5e23457e&
var render = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _vm.dialogVisible ? _c("el-dialog", _vm._b({
    directives: [{
      name: "el-drag-dialog",
      rawName: "v-el-drag-dialog",
      value: true,
      expression: "true"
    }],
    ref: "elDialog",
    staticClass: "jdf-dialog-table",
    attrs: {
      visible: _vm.dialogVisible,
      title: _vm.dialogTitle,
      width: _vm.dialogWidth
    },
    on: {
      "update:visible": function updateVisible($event) {
        _vm.dialogVisible = $event;
      },
      close: _vm.hide
    }
  }, "el-dialog", _vm.dialogAttrs, false), [_c("div", {
    staticClass: "title-text"
  }, [_vm._v(_vm._s(_vm.titleText))]), _c("jdf-query-condition", {
    directives: [{
      name: "show",
      rawName: "v-show",
      value: !_vm.isEmpty(_vm.configs),
      expression: "!isEmpty(configs)"
    }],
    ref: "queryCondition",
    attrs: {
      configs: _vm.configs
    }
  }), _c("jdf-btn-group", {
    directives: [{
      name: "show",
      rawName: "v-show",
      value: !_vm.isEmpty(_vm.btnGroup),
      expression: "!isEmpty(btnGroup)"
    }],
    attrs: {
      "btn-group-list": _vm.btnGroupProps
    }
  }), _c("jdf-table", {
    ref: "jdfDialogTable",
    class: _vm.multipleSelect ? "" : "hide-check-box",
    attrs: {
      columns: _vm.columns,
      data: _vm.tableData,
      "table-attrs": _vm.tableAttrsProps,
      "table-events": _vm.tableEventsProps,
      "pagination-attrs": _vm.paginationAttrsProps,
      "pagination-events": _vm.paginationEventsProps
    }
  }), _c("span", {
    staticClass: "dialog-footer",
    attrs: {
      slot: "footer"
    },
    slot: "footer"
  }, [_c("el-button", {
    attrs: {
      type: "primary",
      size: "small"
    },
    on: {
      click: _vm.confirm
    }
  }, [_vm._v("确定")]), _c("el-button", {
    attrs: {
      size: "small"
    },
    on: {
      click: _vm.hide
    }
  }, [_vm._v("取消")])], 1)], 1) : _vm._e();
};
var staticRenderFns = [];
render._withStripped = true;

;// CONCATENATED MODULE: ./packages/dialog-table/src/main.vue?vue&type=template&id=5e23457e&

;// CONCATENATED MODULE: external "@babel/runtime/helpers/asyncToGenerator"
var asyncToGenerator_namespaceObject = require("@babel/runtime/helpers/asyncToGenerator");
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator_namespaceObject);
;// CONCATENATED MODULE: external "@babel/runtime/helpers/toConsumableArray"
var toConsumableArray_namespaceObject = require("@babel/runtime/helpers/toConsumableArray");
var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray_namespaceObject);
;// CONCATENATED MODULE: external "@babel/runtime/helpers/defineProperty"
var defineProperty_namespaceObject = require("@babel/runtime/helpers/defineProperty");
var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty_namespaceObject);
;// CONCATENATED MODULE: external "@babel/runtime/regenerator"
var regenerator_namespaceObject = require("@babel/runtime/regenerator");
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator_namespaceObject);
;// CONCATENATED MODULE: external "lodash/findLastIndex"
var findLastIndex_namespaceObject = require("lodash/findLastIndex");
var findLastIndex_default = /*#__PURE__*/__webpack_require__.n(findLastIndex_namespaceObject);
;// CONCATENATED MODULE: external "lodash/isArray"
var isArray_namespaceObject = require("lodash/isArray");
var isArray_default = /*#__PURE__*/__webpack_require__.n(isArray_namespaceObject);
;// CONCATENATED MODULE: external "lodash/pickBy"
var pickBy_namespaceObject = require("lodash/pickBy");
var pickBy_default = /*#__PURE__*/__webpack_require__.n(pickBy_namespaceObject);
;// CONCATENATED MODULE: external "lodash/isEmpty"
var isEmpty_namespaceObject = require("lodash/isEmpty");
var isEmpty_default = /*#__PURE__*/__webpack_require__.n(isEmpty_namespaceObject);
;// CONCATENATED MODULE: ./src/mixins/dialogAttrs.js

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { defineProperty_default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
/* eslint-disable no-undef */
/* eslint-disable no-param-reassign */
/*
 * @Author: lirl
 * @Date: 2023-02-02 19:37:40
 * @Description: file content
 */
/* harmony default export */ var dialogAttrs = ({
  data: function data() {
    var _this$$JDF = this.$JDF,
      dialogAttrs = _this$$JDF.dialogAttrs,
      lockScroll = _this$$JDF.lockScroll;
    return {
      // el-dialog属性，closeOnClickModal需要设为false，这样才可以向遮罩层添加关闭弹窗事件
      dialogAttrs: dialogAttrs ? _objectSpread(_objectSpread({}, dialogAttrs), {}, {
        closeOnClickModal: false
      }) : {
        appendToBody: true,
        lockScroll: lockScroll !== null && lockScroll !== void 0 ? lockScroll : false,
        closeOnClickModal: false,
        closeOnPressEscape: false,
        customClass: 'jdf-common-dialog'
      },
      // 当前为拖动鼠标还是点击鼠标
      isMove: false
    };
  },
  methods: {
    /**
     * 添加关闭弹窗事件，鼠标拖动到遮罩时不关闭弹窗，鼠标点击到遮罩时关闭弹窗
     */
    addCloseDialogEvent: function addCloseDialogEvent(dialogRef) {
      var _this = this;
      this.$nextTick(function () {
        var isMove = _this.isMove;
        var dialogEles = document.querySelectorAll('.el-dialog__wrapper');
        var handleMousemove = function handleMousemove() {
          isMove = true;
        };
        dialogEles === null || dialogEles === void 0 ? void 0 : dialogEles.forEach(function (ele) {
          if (ele) {
            ele.onclick = function (event) {
              if (!isMove && event.target === ele) {
                var dialogName = dialogRef || 'elDialog';
                _this.$refs[dialogName].handleClose();
              }
            };
            ele.onmousedown = function () {
              isMove = false;
              window.addEventListener('mousemove', handleMousemove);
            };
            ele.onmouseup = function () {
              return window.removeEventListener('mousemove', handleMousemove);
            };
          }
        });
      });
    }
  }
});
;// CONCATENATED MODULE: external "globalthis/implementation"
var implementation_namespaceObject = require("globalthis/implementation");
;// CONCATENATED MODULE: external "xregexp"
var external_xregexp_namespaceObject = require("xregexp");
var external_xregexp_default = /*#__PURE__*/__webpack_require__.n(external_xregexp_namespaceObject);
;// CONCATENATED MODULE: ./src/directives/el-drag-dialog/drag.js
/*
 * @Author: lirl
 * @Date: 2020-08-03 10:31:13
 * @LastEditTime: 2022-12-07 14:35:00
 * @Description: dialog拖动
 */



/** 宽度高度为百分比 */
var PERSENT_WH = external_xregexp_default()('%', 'g');
/** 宽度高度为像素 */
var PIXEL_WH = external_xregexp_default()('px', 'g');
/* harmony default export */ var drag = ({
  bind: function bind(el, binding, vnode) {
    // 自定义属性，判断是否可拖拽
    if (!binding.value) return;
    var dialogHeaderEl = el.querySelector('.el-dialog__header');
    var dragDom = el.querySelector('.el-dialog');
    dialogHeaderEl.style.cssText += ';cursor:move;';
    dragDom.style.cssText += ';top:0px;';

    // 获取原有属性 ie dom元素.currentStyle 火狐谷歌 window.getComputedStyle(dom元素, null);
    var getStyle = function () {
      if (implementation_namespaceObject.window.document.currentStyle) {
        return function (dom, attr) {
          return dom.currentStyle[attr];
        };
      }
      return function (dom, attr) {
        return getComputedStyle(dom, false)[attr];
      };
    }();
    dialogHeaderEl.onmousedown = function (e) {
      // 鼠标按下，计算当前元素距离可视区的距离
      var disX = e.clientX - dialogHeaderEl.offsetLeft;
      var disY = e.clientY - dialogHeaderEl.offsetTop;
      var dragDomWidth = dragDom.offsetWidth;
      var dragDomheight = dragDom.offsetHeight;
      var screenWidth = implementation_namespaceObject.document.body.clientWidth;
      var screenHeight = implementation_namespaceObject.document.body.clientHeight;
      var minDragDomLeft = dragDom.offsetLeft + dragDomWidth * 0.7;
      var maxDragDomLeft = screenWidth - dragDom.offsetLeft - dragDomWidth * 0.3;
      var minDragDomTop = dragDom.offsetTop;
      var maxDragDomTop = screenHeight - dragDom.offsetTop - dragDomheight * 0.3;

      // 获取到的值带px 正则匹配替换
      var styL = getStyle(dragDom, 'left');
      var styT = getStyle(dragDom, 'top');
      if (styL.includes('%')) {
        styL = +implementation_namespaceObject.document.body.clientWidth * (+external_xregexp_default().replace(styL, PERSENT_WH, '') / 100);
        styT = +implementation_namespaceObject.document.body.clientHeight * (+external_xregexp_default().replace(styT, PERSENT_WH, '') / 100);
      } else {
        styL = +external_xregexp_default().replace(styL, PIXEL_WH, '');
        styT = +external_xregexp_default().replace(styT, PIXEL_WH, '');
      }
      implementation_namespaceObject.document.onmousemove = function (evt) {
        // 通过事件委托，计算移动的距离
        var left = evt.clientX - disX;
        var top = evt.clientY - disY;

        // 边界处理
        if (-left > minDragDomLeft) {
          left = -minDragDomLeft;
        } else if (left > maxDragDomLeft) {
          left = maxDragDomLeft;
        }
        if (-top > minDragDomTop) {
          top = -minDragDomTop;
        } else if (top > maxDragDomTop) {
          top = maxDragDomTop;
        }

        // 移动当前元素
        dragDom.style.cssText += ";left:".concat(left + styL, "px;top:").concat(top + styT, "px;");

        // emit onDrag event
        vnode.child.$emit('dragDialog');
      };
      implementation_namespaceObject.document.onmouseup = function () {
        implementation_namespaceObject.document.onmousemove = null;
        implementation_namespaceObject.document.onmouseup = null;
      };
    };
  }
});
;// CONCATENATED MODULE: ./src/directives/el-drag-dialog/index.js


var install = function install(Vue) {
  Vue.directive('el-drag-dialog', drag);
};
if (implementation_namespaceObject.window.Vue) {
  implementation_namespaceObject.window['el-drag-dialog'] = drag;
  implementation_namespaceObject.window.Vue.use(install);
}
drag.install = install;
/* harmony default export */ var el_drag_dialog = (drag);
;// CONCATENATED MODULE: external "element-ui"
var external_element_ui_namespaceObject = require("element-ui");
;// CONCATENATED MODULE: external "lodash/isString"
var isString_namespaceObject = require("lodash/isString");
var isString_default = /*#__PURE__*/__webpack_require__.n(isString_namespaceObject);
;// CONCATENATED MODULE: ./src/utils/message.js


/*
 * @Author: lirl
 * @Date: 2020-06-03 15:09:21
 * @LastEditTime: 2023-03-02 14:10:57
 * @Description: 消息提示
 */
// 信息提示框




var TOKEN_CODES = (/* unused pure expression or super */ null && (['B004-000-10', 'B004-000-11', 'B004-000-09']));

/**
 * 消息提示框.
 * @param {String} text 消息提示文字
 * @param {String} type success/warning/info/error,默认为success
 */
var message = function message(text) {
  var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'success';
  var duration = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 2000;
  var showClose = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  var className = type === 'success' ? 'pj-common-message' : 'pj-ui-validate';
  return Message({
    message: text,
    type: type,
    offset: 300,
    dangerouslyUseHTMLString: false,
    duration: duration,
    showClose: showClose,
    customClass: className
  });
};

/**
 * 弹出提示框.
 * @param {String} content 提示内容
 * @param {String} type 提示类型 success / info / warning / error
 * @param {Boolean} center 是否居中显示
 */
var messageAlert = function messageAlert(content) {
  var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'success';
  var center = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  return MessageBox.alert(content, '提示', {
    confirmButtonText: '确定',
    type: type,
    dangerouslyUseHTMLString: false,
    center: center
  });
};

/**
 * 弹出确认框.
 * @param {String} content 提示内容
 * @param {Function} yes 点击确定按钮的回调
 * @param {Function} cancel 点击取消按钮的回调
 * @returns Promise 调用方式： mmessageConfirm("提示信息", () => {
 *  alert('确定');
 * }, () => {
 *  alert('取消');
 * })
 */
var messageConfirm = /*#__PURE__*/(/* unused pure expression or super */ null && (function () {
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(content, yes, cancel) {
    var title,
      _args = arguments;
    return _regeneratorRuntime.wrap(function _callee$(_context) {
      while (1) switch (_context.prev = _context.next) {
        case 0:
          title = _args.length > 3 && _args[3] !== undefined ? _args[3] : '温馨提示';
          _context.prev = 1;
          _context.next = 4;
          return MessageBox.confirm(content, title, {
            confirmButtonText: '确定',
            cancelButtonText: '取消',
            cancelButtonClass: 'fr ml10',
            confirmButtonClass: 'fr',
            type: 'warning',
            lockScroll: false,
            dangerouslyUseHTMLString: false,
            iconClass: 'el-icon-question orange'
          });
        case 4:
          return _context.abrupt("return", yes === null || yes === void 0 ? void 0 : yes());
        case 7:
          _context.prev = 7;
          _context.t0 = _context["catch"](1);
          cancel === null || cancel === void 0 ? void 0 : cancel();
          return _context.abrupt("return", false);
        case 11:
        case "end":
          return _context.stop();
      }
    }, _callee, null, [[1, 7]]);
  }));
  return function messageConfirm(_x, _x2, _x3) {
    return _ref.apply(this, arguments);
  };
}()));
var showErrorMsg = function showErrorMsg(error, customClass) {
  var msg = isString_default()(error) ? error : error === null || error === void 0 ? void 0 : error.message;
  msg && (0,external_element_ui_namespaceObject.Message)({
    message: msg,
    type: 'warning',
    offset: 300,
    dangerouslyUseHTMLString: false,
    duration: 3000,
    showClose: true,
    customClass: customClass
  });
};

/**
 * 弹出接口错误信息
 */
var alertErrorMsg = function alertErrorMsg(error) {
  if (!error) {
    return;
  }
  if (isString(error)) {
    messageAlert(error, 'warning');
    return;
  }
  var ssoPage = sessionStorage.getItem('ssoPage');
  if (TOKEN_CODES.includes(error.code) && ssoPage) {
    window.open(decodeURIComponent(ssoPage), '_self');
  } else {
    var msg = error === null || error === void 0 ? void 0 : error.message;
    msg && messageAlert(msg, 'warning');
  }
};
var showSubmitPrompt = /*#__PURE__*/(/* unused pure expression or super */ null && (function () {
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(msg, wordLimit, isRequired, yesCallback, cancelCallback) {
    var inputWordLimit, _yield$MessageBox$pro, value;
    return _regeneratorRuntime.wrap(function _callee2$(_context2) {
      while (1) switch (_context2.prev = _context2.next) {
        case 0:
          _context2.prev = 0;
          inputWordLimit = wordLimit !== null && wordLimit !== void 0 ? wordLimit : 200;
          _context2.next = 4;
          return MessageBox.prompt(msg, '流程提交', {
            confirmButtonText: '确定',
            cancelButtonText: '取消',
            cancelButtonClass: 'fr ml10',
            confirmButtonClass: 'fr',
            inputValidator: function inputValidator(v) {
              if (isRequired && isEmptyStr(v)) {
                return '请填写意见';
              }
              if ((v === null || v === void 0 ? void 0 : v.length) > inputWordLimit) {
                return "\u8BF7\u6700\u591A\u8F93\u5165".concat(inputWordLimit, "\u5B57");
              }
              return true;
            },
            inputErrorMessage: '请填写意见',
            closeOnClickModal: false,
            inputType: 'textarea',
            inputPlaceholder: "\u8BF7\u586B\u5199\u610F\u89C1\uFF0C\u6700\u591A".concat(inputWordLimit, "\u5B57")
          });
        case 4:
          _yield$MessageBox$pro = _context2.sent;
          value = _yield$MessageBox$pro.value;
          yesCallback === null || yesCallback === void 0 ? void 0 : yesCallback(value);
          _context2.next = 12;
          break;
        case 9:
          _context2.prev = 9;
          _context2.t0 = _context2["catch"](0);
          cancelCallback === null || cancelCallback === void 0 ? void 0 : cancelCallback();
        case 12:
        case "end":
          return _context2.stop();
      }
    }, _callee2, null, [[0, 9]]);
  }));
  return function showSubmitPrompt(_x4, _x5, _x6, _x7, _x8) {
    return _ref2.apply(this, arguments);
  };
}()));
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./packages/dialog-table/src/main.vue?vue&type=script&lang=js&




function mainvue_type_script_lang_js_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function mainvue_type_script_lang_js_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? mainvue_type_script_lang_js_ownKeys(Object(source), !0).forEach(function (key) { defineProperty_default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : mainvue_type_script_lang_js_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }







/* harmony default export */ var mainvue_type_script_lang_js_ = ({
  name: 'JdfDialogTable',
  mixins: [dialogAttrs],
  directives: {
    elDragDialog: el_drag_dialog
  },
  props: {
    visible: Boolean,
    // 弹框标题
    dialogTitle: String,
    // 弹框宽度
    dialogWidth: {
      type: String,
      default: '1200px'
    },
    // 表格标题
    titleText: {
      type: String,
      default: ''
    },
    // 表格头的信息
    columns: Array,
    // element-ui表格v-bind绑定的属性信息
    tableAttrs: {
      type: Object,
      default: function _default() {}
    },
    // element-ui 表格v-on绑定的事件
    tableEvents: {
      type: Object,
      default: function _default() {}
    },
    // element-ui分页组件v-bind绑定的属性信息
    paginationAttrs: {
      type: Object,
      default: function _default() {
        return null;
      }
    },
    // element-ui分页组件v-on绑定的事件
    paginationEvents: {
      type: Object,
      default: function _default() {}
    },
    // 数据主键
    selectKey: {
      type: String,
      default: ''
    },
    // 已选中数据
    multipleSelectedList: {
      type: Array,
      default: function _default() {
        return [];
      }
    },
    // 是否多选
    multipleSelect: {
      type: Boolean,
      default: false
    },
    // 查询条件
    configs: {
      type: Array,
      default: function _default() {
        return [];
      }
    },
    // 按钮组
    btnGroup: {
      type: Array,
      default: function _default() {
        return [];
      }
    },
    // 查询按钮命名
    searchText: {
      type: String,
      default: '查询'
    },
    // 清空按钮命名
    resetText: {
      type: String,
      default: '重置'
    },
    // 命名格式化
    formatParam: {
      type: Object,
      default: function _default() {}
    },
    // 查询方法
    searchMethod: Function,
    // 查询条件
    searchParam: {
      type: Object,
      default: function _default() {}
    },
    // 是否显示dialog底部按钮
    showDialogBtn: {
      type: Boolean,
      default: true
    }
  },
  data: function data() {
    var _this$paginationAttrs, _this$paginationAttrs2;
    return {
      isEmpty: (isEmpty_default()),
      // 弹框显示/隐藏
      dialogVisible: false,
      // 当前行
      currentRow: null,
      // 已选中数据
      multipleSelection: this.multipleSelectedList,
      // 表格数据
      tableData: [],
      // 页码数
      pageNumber: (_this$paginationAttrs = this.paginationAttrs) === null || _this$paginationAttrs === void 0 ? void 0 : _this$paginationAttrs['current-page'],
      // 每页条数
      pageSize: (_this$paginationAttrs2 = this.paginationAttrs) === null || _this$paginationAttrs2 === void 0 ? void 0 : _this$paginationAttrs2['page-size'],
      // 数据总数
      total: 0
    };
  },
  watch: {
    visible: {
      handler: function handler(val) {
        val && this.show();
      },
      immediate: true
    }
  },
  computed: {
    tableEventsProps: function tableEventsProps() {
      return mainvue_type_script_lang_js_objectSpread(mainvue_type_script_lang_js_objectSpread({}, this.tableEvents), {}, {
        select: this.multipleSelect ? this.rowClick : this.singleRowClick,
        'select-all': this.rowClick
      });
    },
    tableAttrsProps: function tableAttrsProps() {
      return mainvue_type_script_lang_js_objectSpread(mainvue_type_script_lang_js_objectSpread({}, this.tableAttrs), {}, {
        'row-key': this.selectKey
      });
    },
    btnGroupProps: function btnGroupProps() {
      var _this$formatParam, _this$formatParam2;
      // configs存在时，显示“查询”和“重置”按钮
      var isShow = !isEmpty_default()(this.configs);
      return [
      // “查询”按钮
      {
        label: ((_this$formatParam = this.formatParam) === null || _this$formatParam === void 0 ? void 0 : _this$formatParam['search-text']) || '查询',
        eventMethod: this.search,
        loading: false,
        show: isShow
      },
      // “重置”按钮
      {
        label: ((_this$formatParam2 = this.formatParam) === null || _this$formatParam2 === void 0 ? void 0 : _this$formatParam2['reset-text']) || '重置',
        eventMethod: this.reset,
        loading: false,
        show: isShow
      }].concat(toConsumableArray_default()(this.btnGroup));
    },
    paginationAttrsProps: function paginationAttrsProps() {
      if (isEmpty_default()(this.paginationAttrs)) {
        // 返回null，不显示分页组件
        return null;
      }
      // 默认属性信息
      var paginationAttrsDefault = {
        total: this.total,
        'current-page': this.pageNumber,
        'page-size': this.pageSize
      };
      return mainvue_type_script_lang_js_objectSpread(mainvue_type_script_lang_js_objectSpread({}, this.paginationAttrs), paginationAttrsDefault);
    },
    paginationEventsProps: function paginationEventsProps() {
      var paginationEventsDefault = {
        'current-change': this.getList,
        'size-change': this.sizeChange
      };
      return mainvue_type_script_lang_js_objectSpread(mainvue_type_script_lang_js_objectSpread({}, this.paginationEvents), paginationEventsDefault);
    }
  },
  methods: {
    /**
     * 显示dialog
     */
    show: function show() {
      this.dialogVisible = true;
      // 添加关闭弹窗事件
      this.addCloseDialogEvent();
    },
    /**
     * 隐藏dialog
     */
    hide: function hide() {
      this.dialogVisible = false;
      this.$emit('update:visible', false);
    },
    /**
     * 点击确认按钮
     */
    confirm: function confirm() {
      this.$emit('getSelectData', this.multipleSelection);
      this.hide();
    },
    /**
     * 选中框点击事件（单选）
     */
    singleRowClick: function singleRowClick(selection, row) {
      if (isEmpty_default()(selection)) {
        this.multipleSelection = [row];
        return;
      }
      // 先清空选中
      this.$refs.jdfDialogTable.clearSelection();
      // 检测当前行是否被选中
      var index = this.getLastIndex(row[this.selectKey]);
      // 未选中
      if (index < 0) {
        return;
      }
      var dataIndex = this.tableData[index];
      // 选中，遍历循环时把el-table此行的selection置为true
      this.$refs.jdfDialogTable.toggleRowSelection(dataIndex, true);
      this.multipleSelection = [dataIndex];
    },
    /**
     * 选中框点击事件
     */
    rowClick: function rowClick(selection) {
      this.multipleSelection = selection;
    },
    /**
     * 切换选中状态
     */
    toggleSelection: function toggleSelection() {
      var _this = this;
      this.$nextTick(function () {
        if (isEmpty_default()(_this.multipleSelection)) {
          return;
        }
        _this.multipleSelection.forEach(function (row) {
          // 检测当前元素是否被选中
          var index = _this.getLastIndex(row[_this.selectKey]);
          // 未被选中
          if (index < 0) {
            return;
          }
          // 被选中，遍历循环时把此行的selection置为true
          _this.$refs.jdfDialogTable.toggleRowSelection(_this.tableData[index], true);
        });
      });
    },
    /**
     * 获取当前页主键与selectId相同的最后索引
     */
    getLastIndex: function getLastIndex(selectId) {
      var _this2 = this;
      var lastIndex = findLastIndex_default()(this.tableData, function (item) {
        return item[_this2.selectKey] === selectId;
      });
      return lastIndex;
    },
    /**
     * 获取数据请求参数，把查询参数和分页数据合并为请求后台参数
     */
    getParam: function getParam() {
      var _ref;
      var formatParam = this.formatParam;
      // 数据分页时传入pageNumber和pageSize
      var paginationParam = this.paginationAttrs ? (_ref = {}, defineProperty_default()(_ref, formatParam['format-number'], this.pageNumber), defineProperty_default()(_ref, formatParam['format-size'], this.pageSize), _ref) : {};
      var param = pickBy_default()(mainvue_type_script_lang_js_objectSpread(mainvue_type_script_lang_js_objectSpread(mainvue_type_script_lang_js_objectSpread({}, this.searchParam), this.$refs.queryCondition.queryForm), paginationParam));
      this.$emit('getSearchParam', param);
      return param;
    },
    /**
     * 获取列表
     */
    getList: function getList() {
      var _arguments = arguments,
        _this3 = this;
      return asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee() {
        var pageNum, _this3$searchMethod, _data$formatParam$for, _data$formatParam$for2, formatParam, data;
        return regenerator_default().wrap(function _callee$(_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              pageNum = _arguments.length > 0 && _arguments[0] !== undefined ? _arguments[0] : 1;
              _context.prev = 1;
              _context.next = 4;
              return _this3.$nextTick();
            case 4:
              _this3.loading = true;
              _this3.pageNumber = pageNum;
              formatParam = _this3.formatParam; // 获取请求参数
              _this3.param = _this3.getParam();
              _context.next = 10;
              return (_this3$searchMethod = _this3.searchMethod) === null || _this3$searchMethod === void 0 ? void 0 : _this3$searchMethod.call(_this3, _this3.param);
            case 10:
              data = _context.sent;
              // 获取列表数据
              // [formatParam['format-list']：对象中存储table数据的属性名
              _this3.tableData = (_data$formatParam$for = data === null || data === void 0 ? void 0 : data[formatParam['format-list']]) !== null && _data$formatParam$for !== void 0 ? _data$formatParam$for : data;
              // 当tableData不是数组时，将其置为[]
              !isArray_default()(_this3.tableData) && (_this3.tableData = []);
              // 获取数据总数
              _this3.total = (_data$formatParam$for2 = data === null || data === void 0 ? void 0 : data[formatParam['format-total']]) !== null && _data$formatParam$for2 !== void 0 ? _data$formatParam$for2 : 0;
              // 切换复选框选中状态
              _this3.toggleSelection();
              _context.next = 20;
              break;
            case 17:
              _context.prev = 17;
              _context.t0 = _context["catch"](1);
              showErrorMsg(_context.t0);
            case 20:
              _context.prev = 20;
              _this3.loading = false;
              return _context.finish(20);
            case 23:
            case "end":
              return _context.stop();
          }
        }, _callee, null, [[1, 17, 20, 23]]);
      }))();
    },
    /**
     * pageSize 改变时会触发
     * @param {Number} size 每页条数
     */
    sizeChange: function sizeChange(size) {
      this.pageSize = size;
      this.getList();
    },
    /**
     * 点击查询按钮
     */
    search: function search() {
      var _this4 = this;
      return asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee2() {
        return regenerator_default().wrap(function _callee2$(_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              _context2.next = 2;
              return _this4.getList();
            case 2:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    },
    /**
     * 点击重置按钮
     */
    reset: function reset() {
      var _this5 = this;
      return asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee3() {
        return regenerator_default().wrap(function _callee3$(_context3) {
          while (1) switch (_context3.prev = _context3.next) {
            case 0:
              // 情况查询条件
              _this5.$refs.queryCondition.queryForm = {};
              _context3.next = 3;
              return _this5.search();
            case 3:
            case "end":
              return _context3.stop();
          }
        }, _callee3);
      }))();
    }
  },
  mounted: function mounted() {
    var _this6 = this;
    return asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee4() {
      return regenerator_default().wrap(function _callee4$(_context4) {
        while (1) switch (_context4.prev = _context4.next) {
          case 0:
            // 初始化表格
            _this6.getList();
          case 1:
          case "end":
            return _context4.stop();
        }
      }, _callee4);
    }))();
  }
});
;// CONCATENATED MODULE: ./packages/dialog-table/src/main.vue?vue&type=script&lang=js&
 /* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_); 
;// CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
/* globals __VUE_SSR_CONTEXT__ */

// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
// This module is a runtime utility for cleaner component module output and will
// be included in the final webpack user bundle.

function normalizeComponent(
  scriptExports,
  render,
  staticRenderFns,
  functionalTemplate,
  injectStyles,
  scopeId,
  moduleIdentifier /* server only */,
  shadowMode /* vue-cli only */
) {
  // Vue.extend constructor export interop
  var options =
    typeof scriptExports === 'function' ? scriptExports.options : scriptExports

  // render functions
  if (render) {
    options.render = render
    options.staticRenderFns = staticRenderFns
    options._compiled = true
  }

  // functional template
  if (functionalTemplate) {
    options.functional = true
  }

  // scopedId
  if (scopeId) {
    options._scopeId = 'data-v-' + scopeId
  }

  var hook
  if (moduleIdentifier) {
    // server build
    hook = function (context) {
      // 2.3 injection
      context =
        context || // cached call
        (this.$vnode && this.$vnode.ssrContext) || // stateful
        (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
      // 2.2 with runInNewContext: true
      if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
        context = __VUE_SSR_CONTEXT__
      }
      // inject component styles
      if (injectStyles) {
        injectStyles.call(this, context)
      }
      // register component module identifier for async chunk inferrence
      if (context && context._registeredComponents) {
        context._registeredComponents.add(moduleIdentifier)
      }
    }
    // used by ssr in case component is cached and beforeCreate
    // never gets called
    options._ssrRegister = hook
  } else if (injectStyles) {
    hook = shadowMode
      ? function () {
          injectStyles.call(
            this,
            (options.functional ? this.parent : this).$root.$options.shadowRoot
          )
        }
      : injectStyles
  }

  if (hook) {
    if (options.functional) {
      // for template-only hot-reload because in that case the render fn doesn't
      // go through the normalizer
      options._injectStyles = hook
      // register for functional component in vue file
      var originalRender = options.render
      options.render = function renderWithStyleInjection(h, context) {
        hook.call(context)
        return originalRender(h, context)
      }
    } else {
      // inject component registration as beforeCreate hook
      var existing = options.beforeCreate
      options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
    }
  }

  return {
    exports: scriptExports,
    options: options
  }
}

;// CONCATENATED MODULE: ./packages/dialog-table/src/main.vue





/* normalize component */
;
var component = normalizeComponent(
  src_mainvue_type_script_lang_js_,
  render,
  staticRenderFns,
  false,
  null,
  null,
  null
  
)

/* harmony default export */ var main = (component.exports);
;// CONCATENATED MODULE: ./packages/dialog-table/index.js

main.install = function (Vue) {
  Vue.component(main.name, main);
};
/* harmony default export */ var dialog_table = (main);
module.exports = __webpack_exports__;
/******/ })()
;