eoss-ui 0.5.44 → 0.5.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/lib/button-group.js +16 -0
  2. package/lib/button.js +157 -144
  3. package/lib/calendar.js +769 -0
  4. package/lib/cascader.js +2 -2
  5. package/lib/checkbox-group.js +20 -2
  6. package/lib/clients.js +2 -2
  7. package/lib/data-table-form.js +52 -13
  8. package/lib/data-table.js +33 -7
  9. package/lib/date-picker.js +18 -2
  10. package/lib/dialog.js +30 -13
  11. package/lib/enterprise.js +2 -2
  12. package/lib/eoss-ui.common.js +1324 -730
  13. package/lib/error-page.js +2 -2
  14. package/lib/flow-group.js +32 -19
  15. package/lib/flow-list.js +18 -2
  16. package/lib/flow.js +16 -0
  17. package/lib/form.js +231 -231
  18. package/lib/handle-user.js +25 -10
  19. package/lib/handler.js +24 -5
  20. package/lib/icons.js +2 -2
  21. package/lib/index.js +1 -1
  22. package/lib/input-number.js +18 -2
  23. package/lib/input.js +18 -2
  24. package/lib/label.js +2 -2
  25. package/lib/login.js +16 -0
  26. package/lib/main.js +27 -4
  27. package/lib/menu.js +2 -2
  28. package/lib/nav.js +21 -5
  29. package/lib/notify.js +2 -2
  30. package/lib/page.js +18 -2
  31. package/lib/pagination.js +2 -2
  32. package/lib/player.js +18 -2
  33. package/lib/qr-code.js +18 -2
  34. package/lib/radio-group.js +18 -2
  35. package/lib/retrial-auth.js +22 -8
  36. package/lib/select-ganged.js +18 -2
  37. package/lib/select.js +18 -2
  38. package/lib/selector-panel.js +16 -0
  39. package/lib/selector.js +18 -2
  40. package/lib/sizer.js +25 -9
  41. package/lib/steps.js +18 -2
  42. package/lib/switch.js +18 -2
  43. package/lib/table-form.js +18 -2
  44. package/lib/tabs-panel.js +2 -2
  45. package/lib/tabs.js +18 -2
  46. package/lib/theme-chalk/calendar.css +0 -0
  47. package/lib/theme-chalk/cascader.css +1 -0
  48. package/lib/theme-chalk/data-table-form.css +1 -1
  49. package/lib/theme-chalk/index.css +1 -1
  50. package/lib/theme-chalk/toolbar.css +1 -1
  51. package/lib/tips.js +18 -2
  52. package/lib/toolbar.js +24 -34
  53. package/lib/tree-group.js +18 -2
  54. package/lib/tree.js +18 -2
  55. package/lib/upload.js +22 -15
  56. package/lib/utils/util.js +16 -0
  57. package/lib/wujie.js +18 -2
  58. package/lib/wxlogin.js +18 -2
  59. package/package.json +2 -2
  60. package/packages/button/src/main.vue +6 -9
  61. package/packages/calendar/index.js +5 -0
  62. package/packages/calendar/src/main.vue +386 -0
  63. package/packages/data-table/src/main.vue +12 -2
  64. package/packages/data-table-form/src/main.vue +30 -23
  65. package/packages/data-table-form/src/table.vue +16 -3
  66. package/packages/dialog/src/main.vue +9 -9
  67. package/packages/flow-group/src/main.vue +12 -15
  68. package/packages/handle-user/src/main.vue +5 -6
  69. package/packages/handler/src/main.vue +4 -1
  70. package/packages/main/src/main.vue +9 -2
  71. package/packages/nav/src/main.vue +1 -1
  72. package/packages/retrial-auth/src/main.vue +2 -4
  73. package/packages/theme-chalk/lib/calendar.css +0 -0
  74. package/packages/theme-chalk/lib/cascader.css +1 -0
  75. package/packages/theme-chalk/lib/data-table-form.css +1 -1
  76. package/packages/theme-chalk/lib/index.css +1 -1
  77. package/packages/theme-chalk/lib/toolbar.css +1 -1
  78. package/packages/theme-chalk/src/calendar.scss +0 -0
  79. package/packages/theme-chalk/src/cascader.scss +93 -0
  80. package/packages/theme-chalk/src/data-table-form.scss +11 -0
  81. package/packages/theme-chalk/src/index.scss +2 -1
  82. package/packages/theme-chalk/src/toolbar.scss +16 -11
  83. package/packages/toolbar/src/main.vue +44 -49
  84. package/packages/upload/src/main.vue +1 -10
  85. package/src/index.js +7 -4
  86. package/src/utils/util.js +16 -0
@@ -1249,6 +1249,21 @@ var getHour = function getHour(datetime) {
1249
1249
  return datetimeObj.getHours();
1250
1250
  };
1251
1251
 
1252
+ /**
1253
+ * getMyWinTop
1254
+ * @desc 获取同域的top窗口
1255
+ * @param {object} wind - window对象
1256
+ **/
1257
+ var getMyWinTop = function getMyWinTop(wind) {
1258
+ wind = wind ? wind : win;
1259
+ try {
1260
+ wind.parent.document;
1261
+ return getMyWinTop(wind.parent);
1262
+ } catch (error) {
1263
+ return wind;
1264
+ }
1265
+ };
1266
+
1252
1267
  /**
1253
1268
  * getWeekNumber
1254
1269
  * @desc 当年第几周
@@ -3002,6 +3017,7 @@ var watermark = function watermark(option) {
3002
3017
  getCurrentDate: getCurrentDate,
3003
3018
  getCurrentDateTime: getCurrentDateTime,
3004
3019
  getHour: getHour,
3020
+ getMyWinTop: getMyWinTop,
3005
3021
  getWeekNumber: getWeekNumber,
3006
3022
  getLength: getLength,
3007
3023
  getMainConfig: getMainConfig,
@@ -3760,18 +3776,15 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3760
3776
  evt.preventDefault();
3761
3777
  var width = 0;
3762
3778
  var height = 0;
3779
+ var win = void 0;
3763
3780
  try {
3764
- width = utils_util["a" /* default */].win.top.screen.availWidth - 10;
3765
- height = utils_util["a" /* default */].win.top.screen.availHeight - 60;
3781
+ utils_util["a" /* default */].win.top.document;
3782
+ win = utils_util["a" /* default */].win.top;
3766
3783
  } catch (error) {
3767
- try {
3768
- width = utils_util["a" /* default */].win.parent.screen.availWidth - 10;
3769
- height = utils_util["a" /* default */].win.parent.screen.availHeight - 60;
3770
- } catch (error) {
3771
- width = utils_util["a" /* default */].win.screen.availWidth - 10;
3772
- height = utils_util["a" /* default */].win.screen.availHeight - 60;
3773
- }
3784
+ win = utils_util["a" /* default */].getMyWinTop();
3774
3785
  }
3786
+ width = win.screen.availWidth - 10;
3787
+ height = win.screen.availHeight - 60;
3775
3788
  var flag = true;
3776
3789
  if (this.esForm) {
3777
3790
  var params = utils_util["a" /* default */].getParams({ url: this.link });
@@ -4363,184 +4376,153 @@ src_main.install = function (Vue) {
4363
4376
  };
4364
4377
 
4365
4378
  /* harmony default export */ var button_group = (src_main);
4366
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox-group/src/main.vue?vue&type=template&id=6ffd0b06&
4367
- var mainvue_type_template_id_6ffd0b06_render = function () {
4379
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/calendar/src/main.vue?vue&type=template&id=9b8c6630&
4380
+ var mainvue_type_template_id_9b8c6630_render = function () {
4368
4381
  var _vm = this
4369
4382
  var _h = _vm.$createElement
4370
4383
  var _c = _vm._self._c || _h
4371
- return !_vm.hide
4372
- ? _c(
4373
- "div",
4374
- { staticClass: "es-checkbox-group" },
4375
- [
4376
- _vm.readonly
4377
- ? _c(
4378
- "div",
4379
- {
4380
- staticClass: "es-input__inner",
4381
- class: { "es-plain": this.plain || _vm.$attrs.text },
4382
- },
4383
- [_vm._v("\n " + _vm._s(_vm.labelVal) + "\n ")]
4384
- )
4385
- : _c(
4386
- "el-checkbox-group",
4387
- _vm._g(
4388
- _vm._b(
4389
- {
4390
- directives: [
4391
- {
4392
- name: "show",
4393
- rawName: "v-show",
4394
- value: _vm.display,
4395
- expression: "display",
4396
- },
4397
- ],
4398
- model: {
4399
- value: _vm.model,
4400
- callback: function ($$v) {
4401
- _vm.model = $$v
4402
- },
4403
- expression: "model",
4404
- },
4405
- },
4406
- "el-checkbox-group",
4407
- Object.assign(
4408
- {},
4409
- { valueKey: _vm.valKey, labelKey: _vm.label },
4410
- _vm.$attrs
4411
- ),
4412
- false
4413
- ),
4414
- _vm.$listeners
4384
+ return _c("div", { staticClass: "es-calendar" }, [
4385
+ _c(
4386
+ "div",
4387
+ {
4388
+ directives: [
4389
+ {
4390
+ name: "show",
4391
+ rawName: "v-show",
4392
+ value: _vm.showTitle,
4393
+ expression: "showTitle",
4394
+ },
4395
+ ],
4396
+ staticClass: "es-calendar-title",
4397
+ },
4398
+ [
4399
+ _c("i", {
4400
+ staticClass: "es-calendar-prev es-icon-pointer-left",
4401
+ on: { click: _vm.prev },
4402
+ }),
4403
+ _c(
4404
+ "div",
4405
+ { staticClass: "es-title", on: { click: _vm.resetDate } },
4406
+ [
4407
+ _vm._t(
4408
+ "title",
4409
+ [
4410
+ _vm._v(
4411
+ "\n " +
4412
+ _vm._s(_vm.year) +
4413
+ "年" +
4414
+ _vm._s(_vm.month) +
4415
+ "月\n "
4415
4416
  ),
4416
- [
4417
- _vm.genre === "button"
4418
- ? _vm._l(_vm.results, function (item, index) {
4419
- return _c(
4420
- "el-checkbox-button",
4421
- _vm._b(
4422
- {
4423
- key: index,
4424
- attrs: {
4425
- label:
4426
- _vm.isObject || typeof item == "string"
4427
- ? item
4428
- : item[_vm.valKey],
4429
- disabled:
4430
- typeof item == "string"
4431
- ? false
4432
- : item.disabled,
4433
- },
4434
- },
4435
- "el-checkbox-button",
4436
- _vm.getprops(_vm.$attrs, item),
4437
- false
4438
- ),
4439
- [
4440
- _vm._v(
4441
- "\n " +
4442
- _vm._s(
4443
- typeof item == "string"
4444
- ? item
4445
- : item[_vm.label]
4446
- ? item[_vm.label]
4447
- : item.label || item[_vm.valKey]
4448
- ) +
4449
- "\n "
4450
- ),
4451
- ]
4452
- )
4453
- })
4454
- : _vm._l(_vm.results, function (item, index) {
4455
- return _c(
4456
- "el-checkbox",
4457
- _vm._b(
4458
- {
4459
- key: index,
4460
- attrs: {
4461
- label:
4462
- _vm.isObject || typeof item == "string"
4463
- ? item
4464
- : item[_vm.valKey],
4465
- disabled:
4466
- typeof item == "string"
4467
- ? false
4468
- : item.disabled,
4469
- border: _vm.genre === "border",
4470
- },
4471
- },
4472
- "el-checkbox",
4473
- _vm.getprops(_vm.$attrs, item),
4474
- false
4475
- ),
4476
- [
4477
- _vm._v(
4478
- "\n " +
4479
- _vm._s(
4480
- typeof item == "string"
4481
- ? item
4482
- : item[_vm.label]
4483
- ? item[_vm.label]
4484
- : item.label || item[_vm.valKey]
4485
- ) +
4486
- "\n "
4487
- ),
4488
- ]
4489
- )
4490
- }),
4491
- ],
4492
- 2
4493
- ),
4417
+ ],
4418
+ { year: _vm.year, month: _vm.month }
4419
+ ),
4420
+ ],
4421
+ 2
4422
+ ),
4423
+ _c("i", {
4424
+ staticClass: "es-calendar-next es-icon-pointer-right",
4425
+ on: { click: _vm.next },
4426
+ }),
4427
+ ]
4428
+ ),
4429
+ _c(
4430
+ "ul",
4431
+ { staticClass: "es-calendar-weeks" },
4432
+ _vm._l(_vm.weeks, function (item, index) {
4433
+ return _c("li", { key: index, staticClass: "es-week" }, [
4434
+ _vm._v("\n " + _vm._s(item) + "\n "),
4435
+ ])
4436
+ }),
4437
+ 0
4438
+ ),
4439
+ _c(
4440
+ "ul",
4441
+ { staticClass: "es-calendar-days" },
4442
+ _vm._l(_vm.lists, function (item, index) {
4443
+ return _c(
4444
+ "li",
4445
+ {
4446
+ key: item.year + "-" + item.month + "-" + item.date,
4447
+ staticClass: "es-day",
4448
+ on: {
4449
+ click: function ($event) {
4450
+ _vm.handleClick(item)
4451
+ },
4452
+ },
4453
+ },
4454
+ [
4455
+ _c(
4456
+ "div",
4457
+ {
4458
+ staticClass: "es-day-item",
4459
+ class: {
4460
+ "es-disabled-day": item.type == 0,
4461
+ "es-today": _vm.isSelect(item, _vm.today) && _vm.mark,
4462
+ "es-select": _vm.isSelect(item, _vm.select),
4463
+ },
4464
+ },
4465
+ [
4466
+ _vm._v("\n " + _vm._s(item.date) + "\n "),
4467
+ _vm._t("mark", null, { data: item }),
4468
+ ],
4469
+ 2
4470
+ ),
4471
+ ]
4472
+ )
4473
+ }),
4474
+ 0
4475
+ ),
4476
+ _c(
4477
+ "div",
4478
+ {
4479
+ directives: [
4480
+ {
4481
+ name: "show",
4482
+ rawName: "v-show",
4483
+ value: _vm.fold,
4484
+ expression: "fold",
4485
+ },
4494
4486
  ],
4495
- 1
4496
- )
4497
- : _vm._e()
4487
+ staticClass: "es-calendar-switch",
4488
+ },
4489
+ [
4490
+ _c("i", {
4491
+ directives: [
4492
+ {
4493
+ name: "show",
4494
+ rawName: "v-show",
4495
+ value: _vm.all,
4496
+ expression: "all",
4497
+ },
4498
+ ],
4499
+ staticClass: "es-icon-pointer-up es-switch-icon",
4500
+ attrs: { name: "" },
4501
+ on: { click: _vm.handleHide },
4502
+ }),
4503
+ _c("i", {
4504
+ directives: [
4505
+ {
4506
+ name: "show",
4507
+ rawName: "v-show",
4508
+ value: !_vm.all,
4509
+ expression: "!all",
4510
+ },
4511
+ ],
4512
+ staticClass: "es-icon-pointer-down es-switch-icon",
4513
+ on: { click: _vm.handleShow },
4514
+ }),
4515
+ ]
4516
+ ),
4517
+ ])
4498
4518
  }
4499
- var mainvue_type_template_id_6ffd0b06_staticRenderFns = []
4500
- mainvue_type_template_id_6ffd0b06_render._withStripped = true
4519
+ var mainvue_type_template_id_9b8c6630_staticRenderFns = []
4520
+ mainvue_type_template_id_9b8c6630_render._withStripped = true
4501
4521
 
4502
4522
 
4503
- // CONCATENATED MODULE: ./packages/checkbox-group/src/main.vue?vue&type=template&id=6ffd0b06&
4523
+ // CONCATENATED MODULE: ./packages/calendar/src/main.vue?vue&type=template&id=9b8c6630&
4504
4524
 
4505
- // EXTERNAL MODULE: ./src/config/api.js
4506
- var api = __webpack_require__(1);
4507
-
4508
- // CONCATENATED MODULE: ./src/utils/store.js
4509
- var store_store = {
4510
- state: {},
4511
- set: function set(name, value) {
4512
- this.state[name] = value;
4513
- },
4514
- get: function get(name) {
4515
- return this.state[name];
4516
- },
4517
- clear: function clear(name) {
4518
- this.state[name] = null;
4519
- },
4520
- remove: function remove(name) {
4521
- if (name) {
4522
- delete this.state[name];
4523
- } else {
4524
- this.state = {};
4525
- }
4526
- }
4527
- };
4528
- window.__store = store_store;
4529
- /* harmony default export */ var utils_store = (store_store);
4530
- // EXTERNAL MODULE: external "vue"
4531
- var external_vue_ = __webpack_require__(12);
4532
- var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
4533
-
4534
- // CONCATENATED MODULE: ./src/utils/bus.js
4535
-
4536
-
4537
- /* harmony default export */ var bus = (new external_vue_default.a());
4538
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox-group/src/main.vue?vue&type=script&lang=js&
4539
- var mainvue_type_script_lang_js_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
4540
-
4541
- //
4542
- //
4543
- //
4525
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/calendar/src/main.vue?vue&type=script&lang=js&
4544
4526
  //
4545
4527
  //
4546
4528
  //
@@ -4594,252 +4576,340 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
4594
4576
  //
4595
4577
  //
4596
4578
 
4597
-
4598
-
4599
-
4600
-
4601
- /* harmony default export */ var checkbox_group_src_mainvue_type_script_lang_js_ = ({
4602
- name: 'EsCheckboxGroup',
4603
- inheritAttrs: false,
4604
- inject: {
4605
- esForm: {
4606
- default: ''
4607
- }
4608
- },
4579
+ /* harmony default export */ var calendar_src_mainvue_type_script_lang_js_ = ({
4580
+ name: 'esCalendar',
4609
4581
  props: {
4610
- method: {
4611
- type: String,
4612
- default: 'get'
4613
- },
4614
- // 选择项本地数据
4615
- data: {
4616
- type: Array,
4617
- default: function _default() {
4618
- return [];
4619
- }
4620
- },
4621
- param: {
4622
- type: Object,
4623
- default: function _default() {
4624
- return {};
4625
- }
4626
- },
4627
- // 选择项远程地址
4628
- url: String,
4629
- hide: {
4630
- type: Boolean,
4631
- default: false
4632
- },
4633
- // 选择项获取代码表数据(优先级大于url)
4634
- sysCode: String,
4635
- // 样式风格 button(按钮样式), border(带有边框)
4636
- genre: {
4637
- type: String,
4638
- default: ''
4639
- },
4640
- separator: {
4641
- type: String,
4642
- default: '、'
4643
- },
4644
- display: {
4582
+ //显示title
4583
+ showTitle: {
4645
4584
  type: Boolean,
4646
4585
  default: true
4647
4586
  },
4648
- valueType: {
4649
- type: String,
4650
- default: 'string',
4651
- validator: function validator(value) {
4652
- return ['string', 'object'].includes(value);
4653
- }
4654
- },
4655
- valueKey: {
4656
- type: String,
4657
- default: 'value'
4658
- },
4659
- // 指定选择项显示值的键名,data元素是对象类型时必填
4660
- labelKey: {
4661
- type: String,
4662
- default: 'name'
4663
- },
4664
- value: [Array, String],
4665
- readonly: Boolean,
4666
- plain: Boolean,
4667
- ajax: {
4587
+ //指定日期
4588
+ date: [String, Number],
4589
+ //是否只显示本周
4590
+ brief: Boolean,
4591
+ //是否等指定日期传入后再渲染
4592
+ wait: Boolean,
4593
+ //是否显示收起展开按钮
4594
+ fold: {
4668
4595
  type: Boolean,
4669
4596
  default: true
4670
4597
  },
4671
- isNoParamRequest: {
4672
- type: Boolean,
4673
- default: true
4598
+ mark: Boolean
4599
+ },
4600
+ watch: {
4601
+ date: {
4602
+ immediate: true,
4603
+ handler: function handler(val) {
4604
+ if (this.wait) {
4605
+ val && this.init();
4606
+ } else {
4607
+ this.init();
4608
+ }
4609
+ }
4674
4610
  },
4675
- dataKey: String
4611
+ brief: {
4612
+ immediate: true,
4613
+ handler: function handler(val) {
4614
+ this.all = !val;
4615
+ }
4616
+ }
4617
+ },
4618
+ computed: {
4619
+ lists: function lists() {
4620
+ var _this = this;
4621
+
4622
+ if (this.all) {
4623
+ return this.daysList;
4624
+ }
4625
+ return this.daysList.filter(function (item) {
4626
+ for (var i = 0; i < _this.weekDate.length; i++) {
4627
+ var ele = _this.weekDate[i];
4628
+ if (item.year == ele.year && item.month == ele.month && item.date == ele.date) {
4629
+ return true;
4630
+ }
4631
+ }
4632
+ });
4633
+ }
4676
4634
  },
4677
4635
  data: function data() {
4678
4636
  return {
4679
- options: '',
4680
- canceled: false
4637
+ year: '',
4638
+ _month: '',
4639
+ weeks: ['日', '一', '二', '三', '四', '五', '六'],
4640
+ weekDate: [],
4641
+ week7: '',
4642
+ today: '',
4643
+ select: '',
4644
+ selectDate: '',
4645
+ daysList: [],
4646
+ all: true,
4647
+ week: 0,
4648
+ prevMonthDays: 0,
4649
+ nextMonthDays: 0,
4650
+ days: 0
4681
4651
  };
4682
4652
  },
4653
+ mounted: function mounted() {},
4683
4654
 
4684
- computed: {
4685
- isObject: function isObject() {
4686
- if (this.value !== '' && Array.isArray(this.value) && this.value.length > 0 && utils_util["a" /* default */].isObject(this.value[0])) {
4655
+ methods: {
4656
+ resetDate: function resetDate() {
4657
+ this.week = 0;
4658
+ this.init();
4659
+ },
4660
+ init: function init(res) {
4661
+ this.daysList = [];
4662
+ var dates = this.getDays(res ? res : this.date);
4663
+ var year = dates.year,
4664
+ month = dates.month,
4665
+ today = dates.today,
4666
+ daysList = dates.daysList,
4667
+ weekDate = dates.weekDate,
4668
+ prevMonthDays = dates.prevMonthDays,
4669
+ nextMonthDays = dates.nextMonthDays,
4670
+ days = dates.days;
4671
+
4672
+ if (!res) {
4673
+ this.today = year + '/' + month + '/' + today;
4674
+ this.selectDate = today;
4675
+ this.select = year + '/' + month + '/' + today;
4676
+ this.$emit('select', { year: year, month: month, date: today, type: 1 });
4677
+ }
4678
+ this.prevMonthDays = prevMonthDays;
4679
+ this.nextMonthDays = nextMonthDays;
4680
+ this.days = days;
4681
+ this.daysList = daysList;
4682
+ this.year = year;
4683
+ this.month = month;
4684
+ if (!this.weekDate.length) {
4685
+ this.weekDate = weekDate;
4686
+ }
4687
+ this.$emit('init', dates);
4688
+ return dates;
4689
+ },
4690
+ isShow: function isShow(res) {
4691
+ if (this.all) {
4687
4692
  return true;
4688
- } else {
4689
- if (this.valueType === 'object') {
4690
- return true;
4691
- } else {
4692
- return false;
4693
- }
4694
4693
  }
4694
+ return this.weekDate.filter(function (item) {
4695
+ return item.year == res.year && item.month == res.month && item.date == res.date;
4696
+ }).length;
4695
4697
  },
4698
+ isSelect: function isSelect(res, target) {
4699
+ var year = res.year,
4700
+ month = res.month,
4701
+ date = res.date;
4696
4702
 
4697
- model: {
4698
- get: function get() {
4699
- return this.value === undefined ? [] : this.value;
4700
- },
4701
- set: function set(val) {
4702
- return val;
4703
- }
4703
+ return target == year + '/' + month + '/' + date;
4704
4704
  },
4705
- label: function label() {
4706
- if (this.sysCode) {
4707
- return 'shortName';
4708
- }
4709
- return this.labelKey;
4705
+ handleClick: function handleClick(res) {
4706
+ var year = res.year,
4707
+ month = res.month,
4708
+ date = res.date;
4709
+
4710
+ this.selectDate = date;
4711
+ this.select = year + '/' + month + '/' + date;
4712
+ this.$emit('select', res);
4710
4713
  },
4711
- valKey: function valKey() {
4712
- if (this.sysCode) {
4713
- return 'cciValue';
4714
+ prev: function prev() {
4715
+ if (this.all) {
4716
+ this.weekDate = [];
4717
+ this.prevMonth();
4718
+ } else {
4719
+ this.weekDate = this.getWeekDay(-1);
4720
+ this.$emit('prev', this.weekDate, 'week');
4714
4721
  }
4715
- return this.valueKey;
4716
4722
  },
4717
- results: function results() {
4718
- return this.options ? this.options : this.data;
4723
+ next: function next() {
4724
+ if (this.all) {
4725
+ this.weekDate = [];
4726
+ this.nextMonth();
4727
+ } else {
4728
+ this.weekDate = this.getWeekDay(1);
4729
+ this.$emit('next', this.weekDate, 'week');
4730
+ }
4719
4731
  },
4720
- labelVal: function labelVal() {
4721
- var _this = this;
4722
-
4723
- var model = typeof this.model === 'string' ? this.model.split(',') : this.model || [];
4724
- var label = model.map(function (item) {
4725
- if (utils_util["a" /* default */].isObject(item)) {
4726
- return item[_this.label];
4732
+ prevMonth: function prevMonth() {
4733
+ var year = this.year;
4734
+ var month = this.month;
4735
+ var dates = this.select.split('/');
4736
+ if (month == 1) {
4737
+ year -= 1;
4738
+ month = 12;
4739
+ } else {
4740
+ month -= 1;
4741
+ }
4742
+ var date = year == dates[0] && month == dates[1] ? dates[2] : this.prevMonthDays;
4743
+ date = date.toString().padStart(2, '0');
4744
+ month = month.toString().padStart(2, '0');
4745
+ var res = this.init(year + '/' + month + '/' + date);
4746
+ this.$emit('prev', res, 'month');
4747
+ },
4748
+ nextMonth: function nextMonth() {
4749
+ var year = this.year;
4750
+ var month = this.month;
4751
+ var dates = this.select.split('/');
4752
+ if (month == 12) {
4753
+ year += 1;
4754
+ month = 1;
4755
+ } else {
4756
+ month += 1;
4757
+ }
4758
+ var date = year == dates[0] && month == dates[1] ? dates[2] : 1;
4759
+ date = date.toString().padStart(2, '0');
4760
+ month = month.toString().padStart(2, '0');
4761
+ var res = this.init(year + '/' + month + '/' + date);
4762
+ this.$emit('next', res, 'month');
4763
+ },
4764
+
4765
+ //获取当月或指定日期所在月天数
4766
+ getDays: function getDays(res) {
4767
+ var date = res ? new Date(res) : new Date();
4768
+ var year = date.getFullYear();
4769
+ var month = date.getMonth();
4770
+ var today = date.getDate();
4771
+ var week = date.getDay();
4772
+ //此月天数
4773
+ var days = new Date(year, month + 1, 0).getDate();
4774
+ //此月第一天周几
4775
+ var stratDay = new Date(year, month, 1).getDay();
4776
+ //此月最后一天周几
4777
+ var endDay = new Date(year, month, days).getDay();
4778
+ //上月天数
4779
+ var prevMonthDays = month == 0 ? new Date(year - 1, 11, 0).getDate() : new Date(year, month, 0).getDate();
4780
+ //下月天数
4781
+ var nextMonthDays = month == 11 ? new Date(year + 1, 1, 0).getDate() : new Date(year, month + 2, 0).getDate();
4782
+ //当前日期所在的周
4783
+ var weekDate = [{ date: today, year: year, month: month + 1 }];
4784
+ for (var _i = 0; _i < week; _i++) {
4785
+ var d = _i + 1;
4786
+ if (today - d > 1) {
4787
+ weekDate.unshift({
4788
+ date: today - d,
4789
+ year: year,
4790
+ month: month + 1
4791
+ });
4792
+ } else {
4793
+ weekDate.unshift({
4794
+ date: prevMonthDays - _i,
4795
+ year: month == 0 ? year - 1 : year,
4796
+ month: month == 0 ? 12 : month
4797
+ });
4727
4798
  }
4728
- if (utils_util["a" /* default */].isObject(_this.results[0])) {
4729
- var vals = [];
4730
- _this.results.forEach(function (ele) {
4731
- if (ele[_this.valKey] === item) {
4732
- vals.push(ele[_this.label]);
4733
- }
4799
+ }
4800
+ for (var _i2 = 0; _i2 < 6 - week; _i2++) {
4801
+ var _d = _i2 + 1;
4802
+ if (today + _d <= days) {
4803
+ weekDate.unshift({
4804
+ date: today + _d,
4805
+ year: year,
4806
+ month: month + 1
4807
+ });
4808
+ } else {
4809
+ weekDate.push({
4810
+ date: today + _d - days,
4811
+ year: month == 11 ? year + 1 : year,
4812
+ month: month == 11 ? 1 : month + 2
4734
4813
  });
4735
- return vals.join(_this.separator);
4736
4814
  }
4737
- return item;
4738
- });
4739
- return label.join(this.separator);
4740
- }
4741
- },
4742
- watch: {
4743
- sysCode: {
4744
- immediate: true,
4745
- handler: function handler(val, old) {
4746
- if (val && val != old) {
4747
- var options = utils_store.get(val);
4748
- if (options) {
4749
- this.options = JSON.parse(JSON.stringify(options));
4750
- } else {
4751
- this.getData(api["v" /* findSysCode */], val);
4752
- }
4815
+ }
4816
+
4817
+ var daysList = [];
4818
+ //本月前加入数组
4819
+ if (stratDay > 0) {
4820
+ for (var _i3 = prevMonthDays; _i3 > prevMonthDays - stratDay; _i3--) {
4821
+ daysList.unshift({
4822
+ date: _i3,
4823
+ type: 0,
4824
+ year: month == 0 ? year - 1 : year,
4825
+ month: month == 0 ? 12 : month
4826
+ });
4753
4827
  }
4754
4828
  }
4755
- },
4756
- url: {
4757
- immediate: true,
4758
- handler: function handler(val) {
4759
- if (val && !this.sysCode) {
4760
- this.getData(val);
4829
+ //本月加入数组
4830
+ for (var _i4 = 1; _i4 <= days; _i4++) {
4831
+ daysList.push({
4832
+ date: _i4,
4833
+ type: 1,
4834
+ year: year,
4835
+ month: month + 1,
4836
+ row: week < 6 && today + week > days
4837
+ });
4838
+ }
4839
+ //本月后加入数组
4840
+ if (endDay < 6) {
4841
+ for (var i = 1; i < 6 - endDay + 1; i++) {
4842
+ daysList.push({
4843
+ date: i,
4844
+ type: 0,
4845
+ year: month == 11 ? year + 1 : year,
4846
+ month: month == 11 ? 1 : month + 2
4847
+ });
4761
4848
  }
4762
4849
  }
4850
+ return {
4851
+ days: days,
4852
+ prevMonthDays: prevMonthDays,
4853
+ nextMonthDays: nextMonthDays,
4854
+ stratDay: stratDay,
4855
+ endDay: endDay,
4856
+ weekDate: weekDate,
4857
+ year: year,
4858
+ month: month + 1,
4859
+ today: today,
4860
+ week: week,
4861
+ daysList: daysList
4862
+ };
4763
4863
  },
4764
- param: {
4765
- deep: true,
4766
- handler: function handler() {
4767
- this.url && this.getData(this.url);
4768
- }
4769
- }
4770
- },
4771
- created: function created() {
4772
- this.bindEventBus();
4773
- },
4774
- mounted: function mounted() {},
4775
-
4776
- methods: {
4777
- getData: function getData(url, sysCode) {
4864
+ getWeekDay: function getWeekDay(val) {
4778
4865
  var _this2 = this;
4779
4866
 
4780
- var params = {};
4781
- if (this.results.length === 0) {
4782
- params = utils_util["a" /* default */].extend({}, this.param, sysCode ? { sysAppCode: sysCode } : {});
4783
- } else {
4784
- return false;
4785
- }
4786
- if (!this.ajax || !this.isNoParamRequest && Object.keys(this.param).length == 0) {
4787
- return false;
4788
- }
4789
- this.loading = true;
4790
- utils_util["a" /* default */].ajax({
4791
- url: url,
4792
- method: this.method,
4793
- params: params,
4794
- data: params
4795
- }).then(function (res) {
4796
- _this2.loading = false;
4797
- _this2.canceled = false;
4798
- if (res.rCode === 0) {
4799
- _this2.options = JSON.parse(JSON.stringify(res.results));
4800
- if (sysCode || _this2.dataKey) {
4801
- bus.$emit(sysCode || _this2.dataKey, JSON.parse(JSON.stringify(_this2.options)));
4802
- utils_store.set(sysCode, JSON.parse(JSON.stringify(res.results)));
4803
- }
4804
- } else {
4805
- var msg = res.msg || '系统错误,请联系管理员!';
4806
- _this2.$message.error(msg);
4807
- }
4808
- }).catch(function (err) {
4809
- _this2.loading = false;
4810
- if (err.message) {
4811
- if (err.message !== 'canceled') {
4812
- _this2.$message.error(err.message);
4867
+ var flag = true;
4868
+ var weekDate = JSON.parse(JSON.stringify(this.weekDate));
4869
+ var days = weekDate.map(function (item) {
4870
+ var date = item.date,
4871
+ month = item.month,
4872
+ year = item.year;
4873
+
4874
+ date += val * 7;
4875
+ if (date < 1) {
4876
+ date += _this2.prevMonthDays;
4877
+ month -= 1;
4878
+ if (month == 0) {
4879
+ month = 12;
4880
+ year -= 1;
4813
4881
  }
4814
- if (err.message === 'canceled' && sysCode) {
4815
- _this2.canceled = true;
4882
+ } else if (date > _this2.days) {
4883
+ date -= _this2.days;
4884
+ month += 1;
4885
+ if (month > 12) {
4886
+ month = 1;
4887
+ year += 1;
4816
4888
  }
4817
4889
  }
4890
+ if (_this2.month == month) {
4891
+ flag = false;
4892
+ }
4893
+ return { date: date, month: month, year: year };
4818
4894
  });
4819
- },
4820
- getprops: function getprops(attrs, res) {
4821
- if (res.checked && this.model) {
4822
- this.$emit('input', this.valueType === 'object' ? res : res[this.valKey]);
4895
+ if (flag) {
4896
+ val == 1 ? this.nextMonth() : this.prevMonth();
4823
4897
  }
4824
- return utils_util["a" /* default */].isObject(res) ? mainvue_type_script_lang_js_extends({}, attrs, res) : attrs;
4898
+ return days;
4825
4899
  },
4826
- setOptions: function setOptions(val) {
4827
- this.options = val;
4828
- },
4829
- bindEventBus: function bindEventBus() {
4830
- bus.$on(this.sysCode || this.dataKey, this.setOptions);
4900
+ handleShow: function handleShow() {
4901
+ this.all = true;
4902
+ this.$emit('show', true);
4831
4903
  },
4832
- unbindEventBus: function unbindEventBus() {
4833
- bus.$off(this.sysCode || this.dataKey, this.setOptions);
4904
+ handleHide: function handleHide() {
4905
+ this.all = false;
4906
+ this.$emit('show', false);
4834
4907
  }
4835
- },
4836
- beforeDestroy: function beforeDestroy() {
4837
- this.unbindEventBus();
4838
4908
  }
4839
4909
  });
4840
- // CONCATENATED MODULE: ./packages/checkbox-group/src/main.vue?vue&type=script&lang=js&
4841
- /* harmony default export */ var packages_checkbox_group_src_mainvue_type_script_lang_js_ = (checkbox_group_src_mainvue_type_script_lang_js_);
4842
- // CONCATENATED MODULE: ./packages/checkbox-group/src/main.vue
4910
+ // CONCATENATED MODULE: ./packages/calendar/src/main.vue?vue&type=script&lang=js&
4911
+ /* harmony default export */ var packages_calendar_src_mainvue_type_script_lang_js_ = (calendar_src_mainvue_type_script_lang_js_);
4912
+ // CONCATENATED MODULE: ./packages/calendar/src/main.vue
4843
4913
 
4844
4914
 
4845
4915
 
@@ -4847,10 +4917,10 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
4847
4917
 
4848
4918
  /* normalize component */
4849
4919
 
4850
- var checkbox_group_src_main_component = normalizeComponent(
4851
- packages_checkbox_group_src_mainvue_type_script_lang_js_,
4852
- mainvue_type_template_id_6ffd0b06_render,
4853
- mainvue_type_template_id_6ffd0b06_staticRenderFns,
4920
+ var calendar_src_main_component = normalizeComponent(
4921
+ packages_calendar_src_mainvue_type_script_lang_js_,
4922
+ mainvue_type_template_id_9b8c6630_render,
4923
+ mainvue_type_template_id_9b8c6630_staticRenderFns,
4854
4924
  false,
4855
4925
  null,
4856
4926
  null,
@@ -4858,15 +4928,15 @@ var checkbox_group_src_main_component = normalizeComponent(
4858
4928
 
4859
4929
  )
4860
4930
 
4861
- /* harmony default export */ var checkbox_group_src_main = (checkbox_group_src_main_component.exports);
4862
- // CONCATENATED MODULE: ./packages/checkbox-group/index.js
4931
+ /* harmony default export */ var calendar_src_main = (calendar_src_main_component.exports);
4932
+ // CONCATENATED MODULE: ./packages/calendar/index.js
4863
4933
 
4864
4934
 
4865
- checkbox_group_src_main.install = function (Vue) {
4866
- return Vue.component(checkbox_group_src_main.name, checkbox_group_src_main);
4935
+ calendar_src_main.install = function (Vue) {
4936
+ return Vue.component(calendar_src_main.name, calendar_src_main);
4867
4937
  };
4868
4938
 
4869
- /* harmony default export */ var checkbox_group = (checkbox_group_src_main);
4939
+ /* harmony default export */ var calendar = (calendar_src_main);
4870
4940
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/card/src/main.vue?vue&type=template&id=46ef4fcd&
4871
4941
  var mainvue_type_template_id_46ef4fcd_render = function () {
4872
4942
  var _vm = this
@@ -5187,233 +5257,737 @@ mainvue_type_template_id_46ef4fcd_render._withStripped = true
5187
5257
  //
5188
5258
  //
5189
5259
 
5190
- /* harmony default export */ var card_src_mainvue_type_script_lang_js_ = ({
5191
- name: 'EsCard',
5192
- inheritAttrs: false,
5193
- props: {
5194
- show: {
5195
- type: Boolean,
5196
- default: true
5197
- },
5198
- header: [String, Object],
5199
- tabs: Array,
5200
- defaultActive: String,
5201
- max: {
5202
- type: Number,
5203
- default: 99
5204
- },
5205
- isDot: Boolean
5206
- },
5207
- computed: {
5208
- isObject: function isObject() {
5209
- return typeof this.header !== 'string';
5210
- },
5211
-
5212
- active: {
5213
- get: function get() {
5214
- if (this.defaultActive === undefined) {
5215
- if (typeof this.tabs[0] === 'string') {
5216
- return '0';
5217
- } else {
5218
- return this.tabs[0].id ? this.tabs[0].id : '0';
5219
- }
5220
- }
5221
- return this.defaultActive;
5222
- }
5223
- }
5224
- },
5225
- data: function data() {
5226
- return {};
5227
- },
5228
-
5229
- methods: {
5230
- handleSelect: function handleSelect(res, path) {
5231
- this.$emit('select', res, path);
5232
- }
5233
- }
5234
- });
5235
- // CONCATENATED MODULE: ./packages/card/src/main.vue?vue&type=script&lang=js&
5236
- /* harmony default export */ var packages_card_src_mainvue_type_script_lang_js_ = (card_src_mainvue_type_script_lang_js_);
5237
- // CONCATENATED MODULE: ./packages/card/src/main.vue
5238
-
5239
-
5240
-
5241
-
5242
-
5243
- /* normalize component */
5244
-
5245
- var card_src_main_component = normalizeComponent(
5246
- packages_card_src_mainvue_type_script_lang_js_,
5247
- mainvue_type_template_id_46ef4fcd_render,
5248
- mainvue_type_template_id_46ef4fcd_staticRenderFns,
5249
- false,
5250
- null,
5251
- null,
5252
- null
5253
-
5254
- )
5260
+ /* harmony default export */ var card_src_mainvue_type_script_lang_js_ = ({
5261
+ name: 'EsCard',
5262
+ inheritAttrs: false,
5263
+ props: {
5264
+ show: {
5265
+ type: Boolean,
5266
+ default: true
5267
+ },
5268
+ header: [String, Object],
5269
+ tabs: Array,
5270
+ defaultActive: String,
5271
+ max: {
5272
+ type: Number,
5273
+ default: 99
5274
+ },
5275
+ isDot: Boolean
5276
+ },
5277
+ computed: {
5278
+ isObject: function isObject() {
5279
+ return typeof this.header !== 'string';
5280
+ },
5281
+
5282
+ active: {
5283
+ get: function get() {
5284
+ if (this.defaultActive === undefined) {
5285
+ if (typeof this.tabs[0] === 'string') {
5286
+ return '0';
5287
+ } else {
5288
+ return this.tabs[0].id ? this.tabs[0].id : '0';
5289
+ }
5290
+ }
5291
+ return this.defaultActive;
5292
+ }
5293
+ }
5294
+ },
5295
+ data: function data() {
5296
+ return {};
5297
+ },
5298
+
5299
+ methods: {
5300
+ handleSelect: function handleSelect(res, path) {
5301
+ this.$emit('select', res, path);
5302
+ }
5303
+ }
5304
+ });
5305
+ // CONCATENATED MODULE: ./packages/card/src/main.vue?vue&type=script&lang=js&
5306
+ /* harmony default export */ var packages_card_src_mainvue_type_script_lang_js_ = (card_src_mainvue_type_script_lang_js_);
5307
+ // CONCATENATED MODULE: ./packages/card/src/main.vue
5308
+
5309
+
5310
+
5311
+
5312
+
5313
+ /* normalize component */
5314
+
5315
+ var card_src_main_component = normalizeComponent(
5316
+ packages_card_src_mainvue_type_script_lang_js_,
5317
+ mainvue_type_template_id_46ef4fcd_render,
5318
+ mainvue_type_template_id_46ef4fcd_staticRenderFns,
5319
+ false,
5320
+ null,
5321
+ null,
5322
+ null
5323
+
5324
+ )
5325
+
5326
+ /* harmony default export */ var card_src_main = (card_src_main_component.exports);
5327
+ // CONCATENATED MODULE: ./packages/card/index.js
5328
+
5329
+
5330
+ card_src_main.install = function (Vue) {
5331
+ return Vue.component(card_src_main.name, card_src_main);
5332
+ };
5333
+
5334
+ /* harmony default export */ var card = (card_src_main);
5335
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/cascader/src/main.vue?vue&type=script&lang=js&
5336
+ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
5337
+
5338
+ /* harmony default export */ var cascader_src_mainvue_type_script_lang_js_ = ({
5339
+ name: 'EsCascader',
5340
+ inheritAttrs: false,
5341
+ props: {
5342
+ value: [String, Array],
5343
+ data: Array,
5344
+ options: Array,
5345
+ hide: {
5346
+ type: Boolean,
5347
+ default: false
5348
+ },
5349
+ readonly: Boolean,
5350
+ plain: Boolean,
5351
+ separator: {
5352
+ type: String,
5353
+ default: '/'
5354
+ },
5355
+ props: Object,
5356
+ //Props
5357
+ trigger: {
5358
+ type: String,
5359
+ default: 'click'
5360
+ },
5361
+ multiple: Boolean,
5362
+ checkStrictly: Boolean,
5363
+ emitPath: {
5364
+ type: Boolean,
5365
+ default: true
5366
+ },
5367
+ lazy: Boolean,
5368
+ lazyLoad: Function,
5369
+ type: {
5370
+ type: String,
5371
+ default: 'object'
5372
+ },
5373
+ valueKey: {
5374
+ type: String,
5375
+ default: 'value'
5376
+ },
5377
+ labelKey: {
5378
+ type: String,
5379
+ default: 'label'
5380
+ },
5381
+ children: {
5382
+ type: String,
5383
+ default: 'children'
5384
+ },
5385
+ disabled: {
5386
+ type: String,
5387
+ default: 'disabled'
5388
+ },
5389
+ leaf: {
5390
+ type: String,
5391
+ default: 'leaf'
5392
+ }
5393
+ },
5394
+ computed: {
5395
+ model: {
5396
+ get: function get() {
5397
+ return this.value;
5398
+ },
5399
+ set: function set(val) {
5400
+ return val;
5401
+ }
5402
+ },
5403
+ datas: function datas() {
5404
+ return this.data || this.options;
5405
+ },
5406
+ newProps: function newProps() {
5407
+ var props = {
5408
+ expandTrigger: this.trigger,
5409
+ multiple: this.multiple,
5410
+ checkStrictly: this.checkStrictly,
5411
+ emitPath: this.emitPath,
5412
+ lazy: this.lazy,
5413
+ lazyLoad: this.lazyLoad,
5414
+ type: this.type,
5415
+ value: this.valueKey,
5416
+ label: this.labelKey,
5417
+ children: this.children,
5418
+ disabled: this.disabled,
5419
+ leaf: this.leaf
5420
+ };
5421
+ if (this.props) {
5422
+ return mainvue_type_script_lang_js_extends({}, props, this.props);
5423
+ }
5424
+ return props;
5425
+ }
5426
+ },
5427
+ data: function data() {
5428
+ return {};
5429
+ },
5430
+ created: function created() {},
5431
+
5432
+ methods: {},
5433
+ render: function render(h) {
5434
+ var _this = this;
5435
+
5436
+ if (!this.hide) {
5437
+ if (this.readonly) {
5438
+ var value = '';
5439
+ if (this.model) {
5440
+ value = Array.isArray(this.model) ? this.model.map(function (item) {
5441
+ if (Array.isArray(item)) {
5442
+ return item.map(function (ele) {
5443
+ if (typeof ele === 'string') {
5444
+ return ele;
5445
+ } else {
5446
+ return ele[_this.newProps.label];
5447
+ }
5448
+ }).join(_this.separator);
5449
+ } else {
5450
+ if (typeof item === 'string') {
5451
+ return item;
5452
+ } else {
5453
+ return item[_this.newProps.label];
5454
+ }
5455
+ }
5456
+ }).join(this.multiple ? ',' : this.separator) : this.model;
5457
+ }
5458
+ return h('div', {
5459
+ class: ['el-cascader el-input__inner', { 'es-plain': this.plain }]
5460
+ }, [value]);
5461
+ }
5462
+ return h('el-cascader', {
5463
+ attrs: mainvue_type_script_lang_js_extends({}, this.$attrs, {
5464
+ options: this.datas,
5465
+ props: this.newProps,
5466
+ value: this.model
5467
+ }),
5468
+ on: this.$listeners
5469
+ }, [this.$slots.default]);
5470
+ }
5471
+ }
5472
+ });
5473
+ // CONCATENATED MODULE: ./packages/cascader/src/main.vue?vue&type=script&lang=js&
5474
+ /* harmony default export */ var packages_cascader_src_mainvue_type_script_lang_js_ = (cascader_src_mainvue_type_script_lang_js_);
5475
+ // CONCATENATED MODULE: ./packages/cascader/src/main.vue
5476
+ var src_main_render, main_staticRenderFns
5477
+
5478
+
5479
+
5480
+
5481
+ /* normalize component */
5482
+
5483
+ var cascader_src_main_component = normalizeComponent(
5484
+ packages_cascader_src_mainvue_type_script_lang_js_,
5485
+ src_main_render,
5486
+ main_staticRenderFns,
5487
+ false,
5488
+ null,
5489
+ null,
5490
+ null
5491
+
5492
+ )
5493
+
5494
+ /* harmony default export */ var cascader_src_main = (cascader_src_main_component.exports);
5495
+ // CONCATENATED MODULE: ./packages/cascader/index.js
5496
+
5497
+
5498
+ cascader_src_main.install = function (Vue) {
5499
+ return Vue.component(cascader_src_main.name, cascader_src_main);
5500
+ };
5501
+
5502
+ /* harmony default export */ var cascader = (cascader_src_main);
5503
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox-group/src/main.vue?vue&type=template&id=6ffd0b06&
5504
+ var mainvue_type_template_id_6ffd0b06_render = function () {
5505
+ var _vm = this
5506
+ var _h = _vm.$createElement
5507
+ var _c = _vm._self._c || _h
5508
+ return !_vm.hide
5509
+ ? _c(
5510
+ "div",
5511
+ { staticClass: "es-checkbox-group" },
5512
+ [
5513
+ _vm.readonly
5514
+ ? _c(
5515
+ "div",
5516
+ {
5517
+ staticClass: "es-input__inner",
5518
+ class: { "es-plain": this.plain || _vm.$attrs.text },
5519
+ },
5520
+ [_vm._v("\n " + _vm._s(_vm.labelVal) + "\n ")]
5521
+ )
5522
+ : _c(
5523
+ "el-checkbox-group",
5524
+ _vm._g(
5525
+ _vm._b(
5526
+ {
5527
+ directives: [
5528
+ {
5529
+ name: "show",
5530
+ rawName: "v-show",
5531
+ value: _vm.display,
5532
+ expression: "display",
5533
+ },
5534
+ ],
5535
+ model: {
5536
+ value: _vm.model,
5537
+ callback: function ($$v) {
5538
+ _vm.model = $$v
5539
+ },
5540
+ expression: "model",
5541
+ },
5542
+ },
5543
+ "el-checkbox-group",
5544
+ Object.assign(
5545
+ {},
5546
+ { valueKey: _vm.valKey, labelKey: _vm.label },
5547
+ _vm.$attrs
5548
+ ),
5549
+ false
5550
+ ),
5551
+ _vm.$listeners
5552
+ ),
5553
+ [
5554
+ _vm.genre === "button"
5555
+ ? _vm._l(_vm.results, function (item, index) {
5556
+ return _c(
5557
+ "el-checkbox-button",
5558
+ _vm._b(
5559
+ {
5560
+ key: index,
5561
+ attrs: {
5562
+ label:
5563
+ _vm.isObject || typeof item == "string"
5564
+ ? item
5565
+ : item[_vm.valKey],
5566
+ disabled:
5567
+ typeof item == "string"
5568
+ ? false
5569
+ : item.disabled,
5570
+ },
5571
+ },
5572
+ "el-checkbox-button",
5573
+ _vm.getprops(_vm.$attrs, item),
5574
+ false
5575
+ ),
5576
+ [
5577
+ _vm._v(
5578
+ "\n " +
5579
+ _vm._s(
5580
+ typeof item == "string"
5581
+ ? item
5582
+ : item[_vm.label]
5583
+ ? item[_vm.label]
5584
+ : item.label || item[_vm.valKey]
5585
+ ) +
5586
+ "\n "
5587
+ ),
5588
+ ]
5589
+ )
5590
+ })
5591
+ : _vm._l(_vm.results, function (item, index) {
5592
+ return _c(
5593
+ "el-checkbox",
5594
+ _vm._b(
5595
+ {
5596
+ key: index,
5597
+ attrs: {
5598
+ label:
5599
+ _vm.isObject || typeof item == "string"
5600
+ ? item
5601
+ : item[_vm.valKey],
5602
+ disabled:
5603
+ typeof item == "string"
5604
+ ? false
5605
+ : item.disabled,
5606
+ border: _vm.genre === "border",
5607
+ },
5608
+ },
5609
+ "el-checkbox",
5610
+ _vm.getprops(_vm.$attrs, item),
5611
+ false
5612
+ ),
5613
+ [
5614
+ _vm._v(
5615
+ "\n " +
5616
+ _vm._s(
5617
+ typeof item == "string"
5618
+ ? item
5619
+ : item[_vm.label]
5620
+ ? item[_vm.label]
5621
+ : item.label || item[_vm.valKey]
5622
+ ) +
5623
+ "\n "
5624
+ ),
5625
+ ]
5626
+ )
5627
+ }),
5628
+ ],
5629
+ 2
5630
+ ),
5631
+ ],
5632
+ 1
5633
+ )
5634
+ : _vm._e()
5635
+ }
5636
+ var mainvue_type_template_id_6ffd0b06_staticRenderFns = []
5637
+ mainvue_type_template_id_6ffd0b06_render._withStripped = true
5638
+
5639
+
5640
+ // CONCATENATED MODULE: ./packages/checkbox-group/src/main.vue?vue&type=template&id=6ffd0b06&
5641
+
5642
+ // EXTERNAL MODULE: ./src/config/api.js
5643
+ var api = __webpack_require__(1);
5644
+
5645
+ // CONCATENATED MODULE: ./src/utils/store.js
5646
+ var store_store = {
5647
+ state: {},
5648
+ set: function set(name, value) {
5649
+ this.state[name] = value;
5650
+ },
5651
+ get: function get(name) {
5652
+ return this.state[name];
5653
+ },
5654
+ clear: function clear(name) {
5655
+ this.state[name] = null;
5656
+ },
5657
+ remove: function remove(name) {
5658
+ if (name) {
5659
+ delete this.state[name];
5660
+ } else {
5661
+ this.state = {};
5662
+ }
5663
+ }
5664
+ };
5665
+ window.__store = store_store;
5666
+ /* harmony default export */ var utils_store = (store_store);
5667
+ // EXTERNAL MODULE: external "vue"
5668
+ var external_vue_ = __webpack_require__(12);
5669
+ var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
5670
+
5671
+ // CONCATENATED MODULE: ./src/utils/bus.js
5672
+
5673
+
5674
+ /* harmony default export */ var bus = (new external_vue_default.a());
5675
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox-group/src/main.vue?vue&type=script&lang=js&
5676
+ var src_mainvue_type_script_lang_js_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
5677
+
5678
+ //
5679
+ //
5680
+ //
5681
+ //
5682
+ //
5683
+ //
5684
+ //
5685
+ //
5686
+ //
5687
+ //
5688
+ //
5689
+ //
5690
+ //
5691
+ //
5692
+ //
5693
+ //
5694
+ //
5695
+ //
5696
+ //
5697
+ //
5698
+ //
5699
+ //
5700
+ //
5701
+ //
5702
+ //
5703
+ //
5704
+ //
5705
+ //
5706
+ //
5707
+ //
5708
+ //
5709
+ //
5710
+ //
5711
+ //
5712
+ //
5713
+ //
5714
+ //
5715
+ //
5716
+ //
5717
+ //
5718
+ //
5719
+ //
5720
+ //
5721
+ //
5722
+ //
5723
+ //
5724
+ //
5725
+ //
5726
+ //
5727
+ //
5728
+ //
5729
+ //
5730
+ //
5731
+ //
5732
+ //
5733
+
5255
5734
 
5256
- /* harmony default export */ var card_src_main = (card_src_main_component.exports);
5257
- // CONCATENATED MODULE: ./packages/card/index.js
5258
5735
 
5259
5736
 
5260
- card_src_main.install = function (Vue) {
5261
- return Vue.component(card_src_main.name, card_src_main);
5262
- };
5263
5737
 
5264
- /* harmony default export */ var card = (card_src_main);
5265
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/cascader/src/main.vue?vue&type=script&lang=js&
5266
- var src_mainvue_type_script_lang_js_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
5267
-
5268
- /* harmony default export */ var cascader_src_mainvue_type_script_lang_js_ = ({
5269
- name: 'EsCascader',
5738
+ /* harmony default export */ var checkbox_group_src_mainvue_type_script_lang_js_ = ({
5739
+ name: 'EsCheckboxGroup',
5270
5740
  inheritAttrs: false,
5741
+ inject: {
5742
+ esForm: {
5743
+ default: ''
5744
+ }
5745
+ },
5271
5746
  props: {
5272
- value: [String, Array],
5273
- data: Array,
5274
- options: Array,
5747
+ method: {
5748
+ type: String,
5749
+ default: 'get'
5750
+ },
5751
+ // 选择项本地数据
5752
+ data: {
5753
+ type: Array,
5754
+ default: function _default() {
5755
+ return [];
5756
+ }
5757
+ },
5758
+ param: {
5759
+ type: Object,
5760
+ default: function _default() {
5761
+ return {};
5762
+ }
5763
+ },
5764
+ // 选择项远程地址
5765
+ url: String,
5275
5766
  hide: {
5276
5767
  type: Boolean,
5277
5768
  default: false
5278
5769
  },
5279
- readonly: Boolean,
5280
- plain: Boolean,
5281
- separator: {
5770
+ // 选择项获取代码表数据(优先级大于url)
5771
+ sysCode: String,
5772
+ // 样式风格 button(按钮样式), border(带有边框)
5773
+ genre: {
5282
5774
  type: String,
5283
- default: '/'
5775
+ default: ''
5284
5776
  },
5285
- props: Object,
5286
- //Props
5287
- trigger: {
5777
+ separator: {
5288
5778
  type: String,
5289
- default: 'click'
5779
+ default: ''
5290
5780
  },
5291
- multiple: Boolean,
5292
- checkStrictly: Boolean,
5293
- emitPath: {
5781
+ display: {
5294
5782
  type: Boolean,
5295
5783
  default: true
5296
5784
  },
5297
- lazy: Boolean,
5298
- lazyLoad: Function,
5299
- type: {
5785
+ valueType: {
5300
5786
  type: String,
5301
- default: 'object'
5787
+ default: 'string',
5788
+ validator: function validator(value) {
5789
+ return ['string', 'object'].includes(value);
5790
+ }
5302
5791
  },
5303
5792
  valueKey: {
5304
5793
  type: String,
5305
5794
  default: 'value'
5306
5795
  },
5796
+ // 指定选择项显示值的键名,data元素是对象类型时必填
5307
5797
  labelKey: {
5308
5798
  type: String,
5309
- default: 'label'
5799
+ default: 'name'
5310
5800
  },
5311
- children: {
5312
- type: String,
5313
- default: 'children'
5801
+ value: [Array, String],
5802
+ readonly: Boolean,
5803
+ plain: Boolean,
5804
+ ajax: {
5805
+ type: Boolean,
5806
+ default: true
5314
5807
  },
5315
- disabled: {
5316
- type: String,
5317
- default: 'disabled'
5808
+ isNoParamRequest: {
5809
+ type: Boolean,
5810
+ default: true
5318
5811
  },
5319
- leaf: {
5320
- type: String,
5321
- default: 'leaf'
5322
- }
5812
+ dataKey: String
5813
+ },
5814
+ data: function data() {
5815
+ return {
5816
+ options: '',
5817
+ canceled: false
5818
+ };
5323
5819
  },
5820
+
5324
5821
  computed: {
5822
+ isObject: function isObject() {
5823
+ if (this.value !== '' && Array.isArray(this.value) && this.value.length > 0 && utils_util["a" /* default */].isObject(this.value[0])) {
5824
+ return true;
5825
+ } else {
5826
+ if (this.valueType === 'object') {
5827
+ return true;
5828
+ } else {
5829
+ return false;
5830
+ }
5831
+ }
5832
+ },
5833
+
5325
5834
  model: {
5326
5835
  get: function get() {
5327
- return this.value;
5836
+ return this.value === undefined ? [] : this.value;
5328
5837
  },
5329
5838
  set: function set(val) {
5330
5839
  return val;
5331
5840
  }
5332
5841
  },
5333
- datas: function datas() {
5334
- return this.data || this.options;
5842
+ label: function label() {
5843
+ if (this.sysCode) {
5844
+ return 'shortName';
5845
+ }
5846
+ return this.labelKey;
5335
5847
  },
5336
- newProps: function newProps() {
5337
- var props = {
5338
- expandTrigger: this.trigger,
5339
- multiple: this.multiple,
5340
- checkStrictly: this.checkStrictly,
5341
- emitPath: this.emitPath,
5342
- lazy: this.lazy,
5343
- lazyLoad: this.lazyLoad,
5344
- type: this.type,
5345
- value: this.valueKey,
5346
- label: this.labelKey,
5347
- children: this.children,
5348
- disabled: this.disabled,
5349
- leaf: this.leaf
5350
- };
5351
- if (this.props) {
5352
- return src_mainvue_type_script_lang_js_extends({}, props, this.props);
5848
+ valKey: function valKey() {
5849
+ if (this.sysCode) {
5850
+ return 'cciValue';
5353
5851
  }
5354
- return props;
5852
+ return this.valueKey;
5853
+ },
5854
+ results: function results() {
5855
+ return this.options ? this.options : this.data;
5856
+ },
5857
+ labelVal: function labelVal() {
5858
+ var _this = this;
5859
+
5860
+ var model = typeof this.model === 'string' ? this.model.split(',') : this.model || [];
5861
+ var label = model.map(function (item) {
5862
+ if (utils_util["a" /* default */].isObject(item)) {
5863
+ return item[_this.label];
5864
+ }
5865
+ if (utils_util["a" /* default */].isObject(_this.results[0])) {
5866
+ var vals = [];
5867
+ _this.results.forEach(function (ele) {
5868
+ if (ele[_this.valKey] === item) {
5869
+ vals.push(ele[_this.label]);
5870
+ }
5871
+ });
5872
+ return vals.join(_this.separator);
5873
+ }
5874
+ return item;
5875
+ });
5876
+ return label.join(this.separator);
5355
5877
  }
5356
5878
  },
5357
- data: function data() {
5358
- return {};
5879
+ watch: {
5880
+ sysCode: {
5881
+ immediate: true,
5882
+ handler: function handler(val, old) {
5883
+ if (val && val != old) {
5884
+ var options = utils_store.get(val);
5885
+ if (options) {
5886
+ this.options = JSON.parse(JSON.stringify(options));
5887
+ } else {
5888
+ this.getData(api["v" /* findSysCode */], val);
5889
+ }
5890
+ }
5891
+ }
5892
+ },
5893
+ url: {
5894
+ immediate: true,
5895
+ handler: function handler(val) {
5896
+ if (val && !this.sysCode) {
5897
+ this.getData(val);
5898
+ }
5899
+ }
5900
+ },
5901
+ param: {
5902
+ deep: true,
5903
+ handler: function handler() {
5904
+ this.url && this.getData(this.url);
5905
+ }
5906
+ }
5359
5907
  },
5360
- created: function created() {},
5908
+ created: function created() {
5909
+ this.bindEventBus();
5910
+ },
5911
+ mounted: function mounted() {},
5361
5912
 
5362
- methods: {},
5363
- render: function render(h) {
5364
- var _this = this;
5913
+ methods: {
5914
+ getData: function getData(url, sysCode) {
5915
+ var _this2 = this;
5365
5916
 
5366
- if (!this.hide) {
5367
- if (this.readonly) {
5368
- var value = '';
5369
- if (this.model) {
5370
- value = Array.isArray(this.model) ? this.model.map(function (item) {
5371
- if (Array.isArray(item)) {
5372
- return item.map(function (ele) {
5373
- if (typeof ele === 'string') {
5374
- return ele;
5375
- } else {
5376
- return ele[_this.newProps.label];
5377
- }
5378
- }).join(_this.separator);
5379
- } else {
5380
- if (typeof item === 'string') {
5381
- return item;
5382
- } else {
5383
- return item[_this.newProps.label];
5384
- }
5385
- }
5386
- }).join(this.multiple ? ',' : this.separator) : this.model;
5917
+ var params = {};
5918
+ if (this.results.length === 0) {
5919
+ params = utils_util["a" /* default */].extend({}, this.param, sysCode ? { sysAppCode: sysCode } : {});
5920
+ } else {
5921
+ return false;
5922
+ }
5923
+ if (!this.ajax || !this.isNoParamRequest && Object.keys(this.param).length == 0) {
5924
+ return false;
5925
+ }
5926
+ this.loading = true;
5927
+ utils_util["a" /* default */].ajax({
5928
+ url: url,
5929
+ method: this.method,
5930
+ params: params,
5931
+ data: params
5932
+ }).then(function (res) {
5933
+ _this2.loading = false;
5934
+ _this2.canceled = false;
5935
+ if (res.rCode === 0) {
5936
+ _this2.options = JSON.parse(JSON.stringify(res.results));
5937
+ if (sysCode || _this2.dataKey) {
5938
+ bus.$emit(sysCode || _this2.dataKey, JSON.parse(JSON.stringify(_this2.options)));
5939
+ utils_store.set(sysCode, JSON.parse(JSON.stringify(res.results)));
5940
+ }
5941
+ } else {
5942
+ var msg = res.msg || '系统错误,请联系管理员!';
5943
+ _this2.$message.error(msg);
5387
5944
  }
5388
- return h('div', {
5389
- class: ['el-cascader el-input__inner', { 'es-plain': this.plain }]
5390
- }, [value]);
5945
+ }).catch(function (err) {
5946
+ _this2.loading = false;
5947
+ if (err.message) {
5948
+ if (err.message !== 'canceled') {
5949
+ _this2.$message.error(err.message);
5950
+ }
5951
+ if (err.message === 'canceled' && sysCode) {
5952
+ _this2.canceled = true;
5953
+ }
5954
+ }
5955
+ });
5956
+ },
5957
+ getprops: function getprops(attrs, res) {
5958
+ if (res.checked && this.model) {
5959
+ this.$emit('input', this.valueType === 'object' ? res : res[this.valKey]);
5391
5960
  }
5392
- return h('el-cascader', {
5393
- attrs: src_mainvue_type_script_lang_js_extends({}, this.$attrs, {
5394
- options: this.datas,
5395
- props: this.newProps,
5396
- value: this.model
5397
- }),
5398
- on: this.$listeners
5399
- }, [this.$slots.default]);
5961
+ return utils_util["a" /* default */].isObject(res) ? src_mainvue_type_script_lang_js_extends({}, attrs, res) : attrs;
5962
+ },
5963
+ setOptions: function setOptions(val) {
5964
+ this.options = val;
5965
+ },
5966
+ bindEventBus: function bindEventBus() {
5967
+ bus.$on(this.sysCode || this.dataKey, this.setOptions);
5968
+ },
5969
+ unbindEventBus: function unbindEventBus() {
5970
+ bus.$off(this.sysCode || this.dataKey, this.setOptions);
5400
5971
  }
5972
+ },
5973
+ beforeDestroy: function beforeDestroy() {
5974
+ this.unbindEventBus();
5401
5975
  }
5402
5976
  });
5403
- // CONCATENATED MODULE: ./packages/cascader/src/main.vue?vue&type=script&lang=js&
5404
- /* harmony default export */ var packages_cascader_src_mainvue_type_script_lang_js_ = (cascader_src_mainvue_type_script_lang_js_);
5405
- // CONCATENATED MODULE: ./packages/cascader/src/main.vue
5406
- var src_main_render, main_staticRenderFns
5977
+ // CONCATENATED MODULE: ./packages/checkbox-group/src/main.vue?vue&type=script&lang=js&
5978
+ /* harmony default export */ var packages_checkbox_group_src_mainvue_type_script_lang_js_ = (checkbox_group_src_mainvue_type_script_lang_js_);
5979
+ // CONCATENATED MODULE: ./packages/checkbox-group/src/main.vue
5980
+
5407
5981
 
5408
5982
 
5409
5983
 
5410
5984
 
5411
5985
  /* normalize component */
5412
5986
 
5413
- var cascader_src_main_component = normalizeComponent(
5414
- packages_cascader_src_mainvue_type_script_lang_js_,
5415
- src_main_render,
5416
- main_staticRenderFns,
5987
+ var checkbox_group_src_main_component = normalizeComponent(
5988
+ packages_checkbox_group_src_mainvue_type_script_lang_js_,
5989
+ mainvue_type_template_id_6ffd0b06_render,
5990
+ mainvue_type_template_id_6ffd0b06_staticRenderFns,
5417
5991
  false,
5418
5992
  null,
5419
5993
  null,
@@ -5421,15 +5995,15 @@ var cascader_src_main_component = normalizeComponent(
5421
5995
 
5422
5996
  )
5423
5997
 
5424
- /* harmony default export */ var cascader_src_main = (cascader_src_main_component.exports);
5425
- // CONCATENATED MODULE: ./packages/cascader/index.js
5998
+ /* harmony default export */ var checkbox_group_src_main = (checkbox_group_src_main_component.exports);
5999
+ // CONCATENATED MODULE: ./packages/checkbox-group/index.js
5426
6000
 
5427
6001
 
5428
- cascader_src_main.install = function (Vue) {
5429
- return Vue.component(cascader_src_main.name, cascader_src_main);
6002
+ checkbox_group_src_main.install = function (Vue) {
6003
+ return Vue.component(checkbox_group_src_main.name, checkbox_group_src_main);
5430
6004
  };
5431
6005
 
5432
- /* harmony default export */ var cascader = (cascader_src_main);
6006
+ /* harmony default export */ var checkbox_group = (checkbox_group_src_main);
5433
6007
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/clients/src/main.vue?vue&type=template&id=2f0c03c7&
5434
6008
  var mainvue_type_template_id_2f0c03c7_render = function () {
5435
6009
  var _vm = this
@@ -5688,8 +6262,8 @@ clients_src_main.install = function (Vue) {
5688
6262
  };
5689
6263
 
5690
6264
  /* harmony default export */ var clients = (clients_src_main);
5691
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/main.vue?vue&type=template&id=4d70cb63&
5692
- var mainvue_type_template_id_4d70cb63_render = function () {
6265
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/main.vue?vue&type=template&id=7f4bdc14&
6266
+ var mainvue_type_template_id_7f4bdc14_render = function () {
5693
6267
  var _vm = this
5694
6268
  var _h = _vm.$createElement
5695
6269
  var _c = _vm._self._c || _h
@@ -5954,11 +6528,11 @@ var mainvue_type_template_id_4d70cb63_render = function () {
5954
6528
  1
5955
6529
  )
5956
6530
  }
5957
- var mainvue_type_template_id_4d70cb63_staticRenderFns = []
5958
- mainvue_type_template_id_4d70cb63_render._withStripped = true
6531
+ var mainvue_type_template_id_7f4bdc14_staticRenderFns = []
6532
+ mainvue_type_template_id_7f4bdc14_render._withStripped = true
5959
6533
 
5960
6534
 
5961
- // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=4d70cb63&
6535
+ // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=7f4bdc14&
5962
6536
 
5963
6537
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/children.vue?vue&type=template&id=29bcbc72&
5964
6538
  var childrenvue_type_template_id_29bcbc72_render = function () {
@@ -8271,7 +8845,11 @@ var mainvue_type_script_lang_js_components, _watch;
8271
8845
  least: Boolean,
8272
8846
  //保留搜索参数
8273
8847
  retainSearh: Boolean,
8274
- infiniteScroll: Boolean
8848
+ infiniteScroll: Boolean,
8849
+ isJoin: {
8850
+ type: Boolean,
8851
+ default: true
8852
+ }
8275
8853
  },
8276
8854
  data: function data() {
8277
8855
  return {
@@ -8725,7 +9303,6 @@ var mainvue_type_script_lang_js_components, _watch;
8725
9303
  getTableData: function getTableData(res) {
8726
9304
  var _this7 = this;
8727
9305
 
8728
- console.log(11212);
8729
9306
  var where = void 0;
8730
9307
  var first = void 0;
8731
9308
  if (res) {
@@ -8749,6 +9326,13 @@ var mainvue_type_script_lang_js_components, _watch;
8749
9326
  if (this.retainSearh) {
8750
9327
  reqData = utils_util["a" /* default */].extend({}, reqData, this.wheres);
8751
9328
  }
9329
+ if (this.isJoin) {
9330
+ for (var i in reqData) {
9331
+ if (Array.isArray(reqData[i])) {
9332
+ reqData[i] = reqData[i].join(',');
9333
+ }
9334
+ }
9335
+ }
8752
9336
  this.tableLoading = true;
8753
9337
  utils_util["a" /* default */].ajax({
8754
9338
  url: this.url,
@@ -9270,8 +9854,8 @@ var mainvue_type_script_lang_js_components, _watch;
9270
9854
 
9271
9855
  var data_table_src_main_component = normalizeComponent(
9272
9856
  packages_data_table_src_mainvue_type_script_lang_js_,
9273
- mainvue_type_template_id_4d70cb63_render,
9274
- mainvue_type_template_id_4d70cb63_staticRenderFns,
9857
+ mainvue_type_template_id_7f4bdc14_render,
9858
+ mainvue_type_template_id_7f4bdc14_staticRenderFns,
9275
9859
  false,
9276
9860
  null,
9277
9861
  null,
@@ -9288,14 +9872,17 @@ data_table_src_main.install = function (Vue) {
9288
9872
  };
9289
9873
 
9290
9874
  /* harmony default export */ var data_table = (data_table_src_main);
9291
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table-form/src/table.vue?vue&type=template&id=736ff20c&
9292
- var tablevue_type_template_id_736ff20c_render = function () {
9875
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table-form/src/table.vue?vue&type=template&id=3953d5ce&
9876
+ var tablevue_type_template_id_3953d5ce_render = function () {
9293
9877
  var _vm = this
9294
9878
  var _h = _vm.$createElement
9295
9879
  var _c = _vm._self._c || _h
9296
9880
  return _c(
9297
9881
  "div",
9298
- { staticClass: "es-data-form" },
9882
+ {
9883
+ staticClass: "es-data-form",
9884
+ class: { "es-data-form-haspage": _vm.page },
9885
+ },
9299
9886
  [
9300
9887
  _c(
9301
9888
  "el-scrollbar",
@@ -9401,7 +9988,10 @@ var tablevue_type_template_id_736ff20c_render = function () {
9401
9988
  refInFor: true,
9402
9989
  staticClass: "es-data-table-form-handle",
9403
9990
  style: _vm.style,
9404
- attrs: { data: _vm.options[item.field || item.prop] },
9991
+ attrs: {
9992
+ suffix: false,
9993
+ data: _vm.options[item.field || item.prop],
9994
+ },
9405
9995
  on: {
9406
9996
  "hide-menu": function ($event) {
9407
9997
  _vm.selectShow = false
@@ -9475,11 +10065,11 @@ var tablevue_type_template_id_736ff20c_render = function () {
9475
10065
  2
9476
10066
  )
9477
10067
  }
9478
- var tablevue_type_template_id_736ff20c_staticRenderFns = []
9479
- tablevue_type_template_id_736ff20c_render._withStripped = true
10068
+ var tablevue_type_template_id_3953d5ce_staticRenderFns = []
10069
+ tablevue_type_template_id_3953d5ce_render._withStripped = true
9480
10070
 
9481
10071
 
9482
- // CONCATENATED MODULE: ./packages/data-table-form/src/table.vue?vue&type=template&id=736ff20c&
10072
+ // CONCATENATED MODULE: ./packages/data-table-form/src/table.vue?vue&type=template&id=3953d5ce&
9483
10073
 
9484
10074
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table-form/src/colgroup.vue?vue&type=template&id=9b289ebe&
9485
10075
  var colgroupvue_type_template_id_9b289ebe_render = function () {
@@ -10818,6 +11408,7 @@ var tablevue_type_script_lang_js_components;
10818
11408
  //
10819
11409
  //
10820
11410
  //
11411
+ //
10821
11412
 
10822
11413
 
10823
11414
  //import rules from 'eoss-ui/src/utils/rules.js';
@@ -10834,6 +11425,11 @@ var tablevue_type_script_lang_js_components;
10834
11425
  };
10835
11426
  },
10836
11427
 
11428
+ inject: {
11429
+ esDialog: {
11430
+ default: ''
11431
+ }
11432
+ },
10837
11433
  props: {
10838
11434
  height: String,
10839
11435
  readonly: Boolean,
@@ -10913,8 +11509,15 @@ var tablevue_type_script_lang_js_components;
10913
11509
  }
10914
11510
  },
10915
11511
  setStyle: function setStyle(res, data, field) {
10916
- this.style.left = res ? res.left + 'px' : '';
10917
- this.style.top = res ? res.top + 'px' : '';
11512
+ var left = 0;
11513
+ var top = 0;
11514
+ if (this.esDialog) {
11515
+ var style = this.esDialog.getDialog().getBoundingClientRect();
11516
+ left = style.left;
11517
+ top = style.top;
11518
+ }
11519
+ this.style.left = res ? res.left - left + 'px' : '';
11520
+ this.style.top = res ? res.top - top + 'px' : '';
10918
11521
  this.style.width = res ? res.width + 'px' : '';
10919
11522
  this.target = data;
10920
11523
  this.field = field;
@@ -10956,8 +11559,8 @@ var tablevue_type_script_lang_js_components;
10956
11559
 
10957
11560
  var table_component = normalizeComponent(
10958
11561
  src_tablevue_type_script_lang_js_,
10959
- tablevue_type_template_id_736ff20c_render,
10960
- tablevue_type_template_id_736ff20c_staticRenderFns,
11562
+ tablevue_type_template_id_3953d5ce_render,
11563
+ tablevue_type_template_id_3953d5ce_staticRenderFns,
10961
11564
  false,
10962
11565
  null,
10963
11566
  null,
@@ -10967,6 +11570,8 @@ var table_component = normalizeComponent(
10967
11570
 
10968
11571
  /* harmony default export */ var src_table = (table_component.exports);
10969
11572
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table-form/src/main.vue?vue&type=script&lang=js&
11573
+ var data_table_form_src_mainvue_type_script_lang_js_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
11574
+
10970
11575
  var src_mainvue_type_script_lang_js_components;
10971
11576
 
10972
11577
 
@@ -11103,15 +11708,17 @@ var src_mainvue_type_script_lang_js_components;
11103
11708
  }
11104
11709
  },
11105
11710
  render: function render(h) {
11106
- var _props;
11711
+ var _extends2;
11107
11712
 
11108
11713
  var tag = this.elForm ? 'div' : 'form';
11109
- return h(tag, {}, [h('eo-table', {
11110
- props: (_props = {
11714
+ return h(tag, {
11715
+ class: { 'es-data-form-full': this.full, 'es-data-table-form': 1 }
11716
+ }, [h('eo-table', {
11717
+ props: data_table_form_src_mainvue_type_script_lang_js_extends((_extends2 = {
11111
11718
  cols: this.cols,
11112
11719
  thead: this.theads,
11113
11720
  numbers: this.numbers
11114
- }, _props['cols'] = this.cols, _props.data = this.models, _props.types = this.types, _props.options = this.options, _props.page = this.page, _props),
11721
+ }, _extends2['cols'] = this.cols, _extends2.data = this.models, _extends2.types = this.types, _extends2.options = this.options, _extends2.page = this.page, _extends2), this.$attrs),
11115
11722
  on: this.$listeners
11116
11723
  })]);
11117
11724
  }
@@ -11376,8 +11983,8 @@ date_picker_src_main.install = function (Vue) {
11376
11983
  };
11377
11984
 
11378
11985
  /* harmony default export */ var date_picker = (date_picker_src_main);
11379
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/dialog/src/main.vue?vue&type=template&id=2b57a71d&
11380
- var mainvue_type_template_id_2b57a71d_render = function () {
11986
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/dialog/src/main.vue?vue&type=template&id=2a4878f7&
11987
+ var mainvue_type_template_id_2a4878f7_render = function () {
11381
11988
  var _vm = this
11382
11989
  var _h = _vm.$createElement
11383
11990
  var _c = _vm._self._c || _h
@@ -11886,11 +12493,11 @@ var mainvue_type_template_id_2b57a71d_render = function () {
11886
12493
  2
11887
12494
  )
11888
12495
  }
11889
- var mainvue_type_template_id_2b57a71d_staticRenderFns = []
11890
- mainvue_type_template_id_2b57a71d_render._withStripped = true
12496
+ var mainvue_type_template_id_2a4878f7_staticRenderFns = []
12497
+ mainvue_type_template_id_2a4878f7_render._withStripped = true
11891
12498
 
11892
12499
 
11893
- // CONCATENATED MODULE: ./packages/dialog/src/main.vue?vue&type=template&id=2b57a71d&
12500
+ // CONCATENATED MODULE: ./packages/dialog/src/main.vue?vue&type=template&id=2a4878f7&
11894
12501
 
11895
12502
  // EXTERNAL MODULE: external "wujie-vue2"
11896
12503
  var external_wujie_vue2_ = __webpack_require__(13);
@@ -12290,18 +12897,15 @@ var mainvue_type_script_lang_js_bus = external_wujie_vue2_default.a.bus;
12290
12897
 
12291
12898
  var availWidth = 0;
12292
12899
  var availHeight = 0;
12900
+ var win = void 0;
12293
12901
  try {
12294
- availWidth = utils_util["a" /* default */].win.top.document.body.offsetWidth - 260;
12295
- availHeight = utils_util["a" /* default */].win.top.document.body.offsetHeight - 60;
12902
+ utils_util["a" /* default */].win.top.document;
12903
+ win = utils_util["a" /* default */].win.top;
12296
12904
  } catch (error) {
12297
- try {
12298
- availWidth = utils_util["a" /* default */].win.parent.document.body.offsetWidth - 260;
12299
- availHeight = utils_util["a" /* default */].win.parent.document.body.offsetHeight - 60;
12300
- } catch (error) {
12301
- availWidth = utils_util["a" /* default */].win.document.body.offsetWidth - 260;
12302
- availHeight = utils_util["a" /* default */].win.document.body.offsetHeight - 60;
12303
- }
12905
+ win = utils_util["a" /* default */].getMyWinTop();
12304
12906
  }
12907
+ availWidth = win.document.body.offsetWidth - 260;
12908
+ availHeight = win.document.body.offsetHeight - 60;
12305
12909
  this.sizes.max = { width: availWidth + 'px', height: availHeight + 'px' };
12306
12910
  if (this.size === 'full' || this.width == '100%' && this.height == '100%') {
12307
12911
  this.full = true;
@@ -12441,6 +13045,9 @@ var mainvue_type_script_lang_js_bus = external_wujie_vue2_default.a.bus;
12441
13045
  this.zoom = res;
12442
13046
  this.$set(this.scales, 'zoom', res);
12443
13047
  this.$emit('scale', res);
13048
+ },
13049
+ getDialog: function getDialog() {
13050
+ return this.$refs[this.wujieName].$refs['dialog'];
12444
13051
  }
12445
13052
  }
12446
13053
  });
@@ -12456,8 +13063,8 @@ var mainvue_type_script_lang_js_bus = external_wujie_vue2_default.a.bus;
12456
13063
 
12457
13064
  var dialog_src_main_component = normalizeComponent(
12458
13065
  packages_dialog_src_mainvue_type_script_lang_js_,
12459
- mainvue_type_template_id_2b57a71d_render,
12460
- mainvue_type_template_id_2b57a71d_staticRenderFns,
13066
+ mainvue_type_template_id_2a4878f7_render,
13067
+ mainvue_type_template_id_2a4878f7_staticRenderFns,
12461
13068
  false,
12462
13069
  null,
12463
13070
  null,
@@ -39987,8 +40594,8 @@ flow_src_main.install = function (Vue) {
39987
40594
  };
39988
40595
 
39989
40596
  /* harmony default export */ var packages_flow = (flow_src_main);
39990
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow-group/src/main.vue?vue&type=template&id=92afaed0&
39991
- var mainvue_type_template_id_92afaed0_render = function () {
40597
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow-group/src/main.vue?vue&type=template&id=16f6a02a&
40598
+ var mainvue_type_template_id_16f6a02a_render = function () {
39992
40599
  var _vm = this
39993
40600
  var _h = _vm.$createElement
39994
40601
  var _c = _vm._self._c || _h
@@ -41216,11 +41823,11 @@ var mainvue_type_template_id_92afaed0_render = function () {
41216
41823
  2
41217
41824
  )
41218
41825
  }
41219
- var mainvue_type_template_id_92afaed0_staticRenderFns = []
41220
- mainvue_type_template_id_92afaed0_render._withStripped = true
41826
+ var mainvue_type_template_id_16f6a02a_staticRenderFns = []
41827
+ mainvue_type_template_id_16f6a02a_render._withStripped = true
41221
41828
 
41222
41829
 
41223
- // CONCATENATED MODULE: ./packages/flow-group/src/main.vue?vue&type=template&id=92afaed0&
41830
+ // CONCATENATED MODULE: ./packages/flow-group/src/main.vue?vue&type=template&id=16f6a02a&
41224
41831
 
41225
41832
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow-group/src/main.vue?vue&type=script&lang=js&
41226
41833
  var flow_group_src_mainvue_type_script_lang_js_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
@@ -41798,18 +42405,15 @@ var flow_group_src_mainvue_type_script_lang_js_extends = Object.assign || functi
41798
42405
  var name = item.name;
41799
42406
  var width = 0;
41800
42407
  var height = 0;
42408
+ var win = void 0;
41801
42409
  try {
41802
- width = utils_util["a" /* default */].win.top.screen.availWidth - 10;
41803
- height = utils_util["a" /* default */].win.top.screen.availHeight - 60;
42410
+ utils_util["a" /* default */].win.top.document;
42411
+ win = utils_util["a" /* default */].win.top;
41804
42412
  } catch (error) {
41805
- try {
41806
- width = utils_util["a" /* default */].win.parent.screen.availWidth - 10;
41807
- height = utils_util["a" /* default */].win.parent.screen.availHeight - 60;
41808
- } catch (error) {
41809
- width = utils_util["a" /* default */].win.screen.availWidth - 10;
41810
- height = utils_util["a" /* default */].win.screen.availHeight - 60;
41811
- }
42413
+ win = utils_util["a" /* default */].getMyWinTop();
41812
42414
  }
42415
+ width = win.screen.availWidth - 10;
42416
+ height = win.screen.availHeight - 60;
41813
42417
  if (item.url) {
41814
42418
  url = _this.handleUrlJoinParams(item);
41815
42419
  }
@@ -41870,15 +42474,15 @@ var flow_group_src_mainvue_type_script_lang_js_extends = Object.assign || functi
41870
42474
  if (this.closeDialog && this.esDialog) {
41871
42475
  this.esDialog.handleClose();
41872
42476
  } else if (utils_util["a" /* default */].win.opener) {
42477
+ var win = void 0;
41873
42478
  try {
41874
- utils_util["a" /* default */].win.top.close();
42479
+ utils_util["a" /* default */].win.top.document;
42480
+ win = utils_util["a" /* default */].win.top;
41875
42481
  } catch (error) {
41876
- try {
41877
- utils_util["a" /* default */].win.parent.close();
41878
- } catch (error) {
41879
- utils_util["a" /* default */].win.postMessage({ type: 0 }, '*');
41880
- }
42482
+ win = utils_util["a" /* default */].getMyWinTop();
41881
42483
  }
42484
+ win.close();
42485
+ win.postMessage({ type: 0 }, '*');
41882
42486
  }
41883
42487
  if (this.events && this.events.success) {
41884
42488
  this.events.success();
@@ -41913,8 +42517,8 @@ var flow_group_src_mainvue_type_script_lang_js_extends = Object.assign || functi
41913
42517
 
41914
42518
  var flow_group_src_main_component = normalizeComponent(
41915
42519
  packages_flow_group_src_mainvue_type_script_lang_js_,
41916
- mainvue_type_template_id_92afaed0_render,
41917
- mainvue_type_template_id_92afaed0_staticRenderFns,
42520
+ mainvue_type_template_id_16f6a02a_render,
42521
+ mainvue_type_template_id_16f6a02a_staticRenderFns,
41918
42522
  false,
41919
42523
  null,
41920
42524
  null,
@@ -43190,8 +43794,8 @@ flow_list_src_main.install = function (Vue) {
43190
43794
  };
43191
43795
 
43192
43796
  /* harmony default export */ var flow_list = (flow_list_src_main);
43193
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/handle-user/src/main.vue?vue&type=template&id=0e0b2c4a&
43194
- var mainvue_type_template_id_0e0b2c4a_render = function () {
43797
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/handle-user/src/main.vue?vue&type=template&id=4616b35e&
43798
+ var mainvue_type_template_id_4616b35e_render = function () {
43195
43799
  var _vm = this
43196
43800
  var _h = _vm.$createElement
43197
43801
  var _c = _vm._self._c || _h
@@ -43274,11 +43878,11 @@ var mainvue_type_template_id_0e0b2c4a_render = function () {
43274
43878
  : _vm._e(),
43275
43879
  ])
43276
43880
  }
43277
- var mainvue_type_template_id_0e0b2c4a_staticRenderFns = []
43278
- mainvue_type_template_id_0e0b2c4a_render._withStripped = true
43881
+ var mainvue_type_template_id_4616b35e_staticRenderFns = []
43882
+ mainvue_type_template_id_4616b35e_render._withStripped = true
43279
43883
 
43280
43884
 
43281
- // CONCATENATED MODULE: ./packages/handle-user/src/main.vue?vue&type=template&id=0e0b2c4a&
43885
+ // CONCATENATED MODULE: ./packages/handle-user/src/main.vue?vue&type=template&id=4616b35e&
43282
43886
 
43283
43887
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/handle-user/src/main.vue?vue&type=script&lang=js&
43284
43888
  //
@@ -43380,15 +43984,14 @@ mainvue_type_template_id_0e0b2c4a_render._withStripped = true
43380
43984
  duration: 500,
43381
43985
  onClose: function onClose() {
43382
43986
  utils_util["a" /* default */].removeStorage(['mainConfig', 'jump']);
43987
+ var win = void 0;
43383
43988
  try {
43384
- utils_util["a" /* default */].win.top.location.reload();
43989
+ utils_util["a" /* default */].win.top.document;
43990
+ win = utils_util["a" /* default */].win.top;
43385
43991
  } catch (error) {
43386
- try {
43387
- utils_util["a" /* default */].win.parent.location.reload();
43388
- } catch (error) {
43389
- utils_util["a" /* default */].win.location.reload();
43390
- }
43992
+ win = utils_util["a" /* default */].getMyWinTop();
43391
43993
  }
43994
+ win.location.reload();
43392
43995
  }
43393
43996
  });
43394
43997
  } else {
@@ -43420,8 +44023,8 @@ mainvue_type_template_id_0e0b2c4a_render._withStripped = true
43420
44023
 
43421
44024
  var handle_user_src_main_component = normalizeComponent(
43422
44025
  packages_handle_user_src_mainvue_type_script_lang_js_,
43423
- mainvue_type_template_id_0e0b2c4a_render,
43424
- mainvue_type_template_id_0e0b2c4a_staticRenderFns,
44026
+ mainvue_type_template_id_4616b35e_render,
44027
+ mainvue_type_template_id_4616b35e_staticRenderFns,
43425
44028
  false,
43426
44029
  null,
43427
44030
  null,
@@ -43438,8 +44041,8 @@ handle_user_src_main.install = function (Vue) {
43438
44041
  };
43439
44042
 
43440
44043
  /* harmony default export */ var handle_user = (handle_user_src_main);
43441
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/handler/src/main.vue?vue&type=template&id=25cdd07e&
43442
- var mainvue_type_template_id_25cdd07e_render = function () {
44044
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/handler/src/main.vue?vue&type=template&id=6f2ac1fb&
44045
+ var mainvue_type_template_id_6f2ac1fb_render = function () {
43443
44046
  var _vm = this
43444
44047
  var _h = _vm.$createElement
43445
44048
  var _c = _vm._self._c || _h
@@ -43637,11 +44240,11 @@ var mainvue_type_template_id_25cdd07e_render = function () {
43637
44240
  0
43638
44241
  )
43639
44242
  }
43640
- var mainvue_type_template_id_25cdd07e_staticRenderFns = []
43641
- mainvue_type_template_id_25cdd07e_render._withStripped = true
44243
+ var mainvue_type_template_id_6f2ac1fb_staticRenderFns = []
44244
+ mainvue_type_template_id_6f2ac1fb_render._withStripped = true
43642
44245
 
43643
44246
 
43644
- // CONCATENATED MODULE: ./packages/handler/src/main.vue?vue&type=template&id=25cdd07e&
44247
+ // CONCATENATED MODULE: ./packages/handler/src/main.vue?vue&type=template&id=6f2ac1fb&
43645
44248
 
43646
44249
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/handler/src/main.vue?vue&type=script&lang=js&
43647
44250
  //
@@ -43793,7 +44396,10 @@ mainvue_type_template_id_25cdd07e_render._withStripped = true
43793
44396
  type: Boolean,
43794
44397
  default: false
43795
44398
  },
43796
- maxHeight: String
44399
+ maxHeight: {
44400
+ type: String,
44401
+ default: '100%'
44402
+ }
43797
44403
  },
43798
44404
  watch: {
43799
44405
  subSystem: {
@@ -43983,8 +44589,8 @@ mainvue_type_template_id_25cdd07e_render._withStripped = true
43983
44589
 
43984
44590
  var handler_src_main_component = normalizeComponent(
43985
44591
  packages_handler_src_mainvue_type_script_lang_js_,
43986
- mainvue_type_template_id_25cdd07e_render,
43987
- mainvue_type_template_id_25cdd07e_staticRenderFns,
44592
+ mainvue_type_template_id_6f2ac1fb_render,
44593
+ mainvue_type_template_id_6f2ac1fb_staticRenderFns,
43988
44594
  false,
43989
44595
  null,
43990
44596
  null,
@@ -48251,8 +48857,8 @@ login_src_main.install = function (Vue) {
48251
48857
  };
48252
48858
 
48253
48859
  /* harmony default export */ var login = (login_src_main);
48254
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=fd021d4a&
48255
- var mainvue_type_template_id_fd021d4a_render = function () {
48860
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=679ec798&
48861
+ var mainvue_type_template_id_679ec798_render = function () {
48256
48862
  var _vm = this
48257
48863
  var _h = _vm.$createElement
48258
48864
  var _c = _vm._self._c || _h
@@ -48363,7 +48969,7 @@ var mainvue_type_template_id_fd021d4a_render = function () {
48363
48969
  storage: _vm.storage,
48364
48970
  notice: _vm.notice,
48365
48971
  data: _vm.handleData,
48366
- "max-height": _vm.maxHeight,
48972
+ "max-height": _vm._maxHeight,
48367
48973
  },
48368
48974
  on: {
48369
48975
  select: function (res) {
@@ -48678,11 +49284,11 @@ var mainvue_type_template_id_fd021d4a_render = function () {
48678
49284
  1
48679
49285
  )
48680
49286
  }
48681
- var mainvue_type_template_id_fd021d4a_staticRenderFns = []
48682
- mainvue_type_template_id_fd021d4a_render._withStripped = true
49287
+ var mainvue_type_template_id_679ec798_staticRenderFns = []
49288
+ mainvue_type_template_id_679ec798_render._withStripped = true
48683
49289
 
48684
49290
 
48685
- // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=fd021d4a&
49291
+ // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=679ec798&
48686
49292
 
48687
49293
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/userinfo.vue?vue&type=template&id=e93353b8&
48688
49294
  var userinfovue_type_template_id_e93353b8_render = function () {
@@ -50737,7 +51343,7 @@ var main_src_mainvue_type_script_lang_js_extends = Object.assign || function (ta
50737
51343
 
50738
51344
  var isIE = navigator.userAgent.indexOf('MSIE') != -1;
50739
51345
  var log = utils_util["a" /* default */].getParams('console');
50740
- var appCode = utils_util["a" /* default */].getParams('appCode');
51346
+ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["a" /* default */].getParams('appcode');
50741
51347
  /* harmony default export */ var main_src_mainvue_type_script_lang_js_ = ({
50742
51348
  name: 'EsMain',
50743
51349
  inheritAttrs: false,
@@ -50892,6 +51498,13 @@ var appCode = utils_util["a" /* default */].getParams('appCode');
50892
51498
  showHeader: function showHeader() {
50893
51499
  return this.isHeader == 0 ? false : this.header;
50894
51500
  },
51501
+ _maxHeight: function _maxHeight() {
51502
+ if (this.maxHeight) {
51503
+ return this.maxHeight;
51504
+ }
51505
+ console.log(document.body.clientHeight - 50);
51506
+ return String(document.body.clientHeight - 77);
51507
+ },
50895
51508
  showSide: function showSide() {
50896
51509
  return this.isSide !== null ? this.isSide : this.sideNav;
50897
51510
  },
@@ -52482,8 +53095,8 @@ var appCode = utils_util["a" /* default */].getParams('appCode');
52482
53095
 
52483
53096
  var main_src_main_component = normalizeComponent(
52484
53097
  packages_main_src_mainvue_type_script_lang_js_,
52485
- mainvue_type_template_id_fd021d4a_render,
52486
- mainvue_type_template_id_fd021d4a_staticRenderFns,
53098
+ mainvue_type_template_id_679ec798_render,
53099
+ mainvue_type_template_id_679ec798_staticRenderFns,
52487
53100
  false,
52488
53101
  null,
52489
53102
  null,
@@ -52838,8 +53451,8 @@ menu_src_main.install = function (Vue) {
52838
53451
  };
52839
53452
 
52840
53453
  /* harmony default export */ var menu = (menu_src_main);
52841
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/nav/src/main.vue?vue&type=template&id=74f295ae&
52842
- var mainvue_type_template_id_74f295ae_render = function () {
53454
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/nav/src/main.vue?vue&type=template&id=5d7ddb00&
53455
+ var mainvue_type_template_id_5d7ddb00_render = function () {
52843
53456
  var _vm = this
52844
53457
  var _h = _vm.$createElement
52845
53458
  var _c = _vm._self._c || _h
@@ -52977,11 +53590,11 @@ var mainvue_type_template_id_74f295ae_render = function () {
52977
53590
  ]
52978
53591
  )
52979
53592
  }
52980
- var mainvue_type_template_id_74f295ae_staticRenderFns = []
52981
- mainvue_type_template_id_74f295ae_render._withStripped = true
53593
+ var mainvue_type_template_id_5d7ddb00_staticRenderFns = []
53594
+ mainvue_type_template_id_5d7ddb00_render._withStripped = true
52982
53595
 
52983
53596
 
52984
- // CONCATENATED MODULE: ./packages/nav/src/main.vue?vue&type=template&id=74f295ae&
53597
+ // CONCATENATED MODULE: ./packages/nav/src/main.vue?vue&type=template&id=5d7ddb00&
52985
53598
 
52986
53599
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/nav/src/main.vue?vue&type=script&lang=js&
52987
53600
  //
@@ -53087,7 +53700,7 @@ mainvue_type_template_id_74f295ae_render._withStripped = true
53087
53700
  return active;
53088
53701
  },
53089
53702
  menuActive: function menuActive() {
53090
- var active = typeof this.defaultActive === 'string' ? this.defaultActive : this.defaultActive.length ? this.defaultActive[this.defaultActive.length - 1] : undefined;
53703
+ var active = typeof this.defaultActive === 'string' ? this.defaultActive : this.defaultActive && this.defaultActive.length ? this.defaultActive[this.defaultActive.length - 1] : undefined;
53091
53704
  return active;
53092
53705
  },
53093
53706
  boxWidth: function boxWidth() {
@@ -53248,8 +53861,8 @@ mainvue_type_template_id_74f295ae_render._withStripped = true
53248
53861
 
53249
53862
  var nav_src_main_component = normalizeComponent(
53250
53863
  packages_nav_src_mainvue_type_script_lang_js_,
53251
- mainvue_type_template_id_74f295ae_render,
53252
- mainvue_type_template_id_74f295ae_staticRenderFns,
53864
+ mainvue_type_template_id_5d7ddb00_render,
53865
+ mainvue_type_template_id_5d7ddb00_staticRenderFns,
53253
53866
  false,
53254
53867
  null,
53255
53868
  null,
@@ -55314,8 +55927,8 @@ radio_group_src_main.install = function (Vue) {
55314
55927
  };
55315
55928
 
55316
55929
  /* harmony default export */ var radio_group = (radio_group_src_main);
55317
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/retrial-auth/src/main.vue?vue&type=template&id=07b8a28c&
55318
- var mainvue_type_template_id_07b8a28c_render = function () {
55930
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/retrial-auth/src/main.vue?vue&type=template&id=70256784&
55931
+ var mainvue_type_template_id_70256784_render = function () {
55319
55932
  var _vm = this
55320
55933
  var _h = _vm.$createElement
55321
55934
  var _c = _vm._self._c || _h
@@ -55464,11 +56077,11 @@ var mainvue_type_template_id_07b8a28c_render = function () {
55464
56077
  1
55465
56078
  )
55466
56079
  }
55467
- var mainvue_type_template_id_07b8a28c_staticRenderFns = []
55468
- mainvue_type_template_id_07b8a28c_render._withStripped = true
56080
+ var mainvue_type_template_id_70256784_staticRenderFns = []
56081
+ mainvue_type_template_id_70256784_render._withStripped = true
55469
56082
 
55470
56083
 
55471
- // CONCATENATED MODULE: ./packages/retrial-auth/src/main.vue?vue&type=template&id=07b8a28c&
56084
+ // CONCATENATED MODULE: ./packages/retrial-auth/src/main.vue?vue&type=template&id=70256784&
55472
56085
 
55473
56086
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/retrial-auth/src/main.vue?vue&type=script&lang=js&
55474
56087
  //
@@ -55648,8 +56261,7 @@ mainvue_type_template_id_07b8a28c_render._withStripped = true
55648
56261
  try {
55649
56262
  _this3.reload && utils_util["a" /* default */].win.top.location.reload();
55650
56263
  } catch (error) {
55651
- _this3.reload && utils_util["a" /* default */].win.location.reload();
55652
- utils_util["a" /* default */].win.postMessage({ type: 3 }, '*');
56264
+ _this3.reload && utils_util["a" /* default */].win.postMessage({ type: 3 }, '*');
55653
56265
  }
55654
56266
  } else {
55655
56267
  _this3.$message({
@@ -55729,8 +56341,7 @@ mainvue_type_template_id_07b8a28c_render._withStripped = true
55729
56341
  try {
55730
56342
  _this5.reload && utils_util["a" /* default */].win.top.location.reload();
55731
56343
  } catch (error) {
55732
- _this5.reload && utils_util["a" /* default */].win.location.reload();
55733
- utils_util["a" /* default */].win.postMessage({ type: 3 }, '*');
56344
+ _this5.reload && utils_util["a" /* default */].win.postMessage({ type: 3 }, '*');
55734
56345
  }
55735
56346
  } else {
55736
56347
  _this5.scanCode = setTimeout(function () {
@@ -55762,8 +56373,8 @@ mainvue_type_template_id_07b8a28c_render._withStripped = true
55762
56373
 
55763
56374
  var retrial_auth_src_main_component = normalizeComponent(
55764
56375
  packages_retrial_auth_src_mainvue_type_script_lang_js_,
55765
- mainvue_type_template_id_07b8a28c_render,
55766
- mainvue_type_template_id_07b8a28c_staticRenderFns,
56376
+ mainvue_type_template_id_70256784_render,
56377
+ mainvue_type_template_id_70256784_staticRenderFns,
55767
56378
  false,
55768
56379
  null,
55769
56380
  null,
@@ -65648,41 +66259,25 @@ function mainvue_type_script_lang_js_objectWithoutProperties(obj, keys) { var ta
65648
66259
  default: 'auto'
65649
66260
  }
65650
66261
  },
65651
- computed: {
65652
- searchData: {
65653
- get: function get() {
65654
- var value = void 0;
65655
- for (var i = 0; i < this.contents.length; i++) {
65656
- if (this.contents[i].type === 'search') {
65657
- value = this.contents[i].value || this.contents[i].searchValue;
65658
- break;
65659
- }
65660
- }
65661
- return value ? value : this.searchValue;
65662
- },
65663
- set: function set(val) {
65664
- return val;
66262
+ watch: {
66263
+ searchValue: {
66264
+ deep: true,
66265
+ handler: function handler(val) {
66266
+ this.searchData = val;
65665
66267
  }
65666
66268
  },
65667
- advancedData: {
65668
- get: function get() {
65669
- var value = void 0;
65670
- for (var i = 0; i < this.contents.length; i++) {
65671
- if (this.contents[i].type === 'filter') {
65672
- value = this.contents[i].value || this.contents[i].searchValue;
65673
- break;
65674
- }
65675
- }
65676
- return value ? value : this.advanceValue;
65677
- },
65678
- set: function set(val) {
65679
- return val;
66269
+ advanceValue: {
66270
+ deep: true,
66271
+ handler: function handler(val) {
66272
+ this.advancedData = val;
65680
66273
  }
65681
66274
  }
65682
66275
  },
65683
66276
  data: function data() {
65684
66277
  return {
65685
- show: false
66278
+ show: false,
66279
+ searchData: this.searchValue,
66280
+ advancedData: this.advanceValue
65686
66281
  };
65687
66282
  },
65688
66283
  created: function created() {
@@ -65855,7 +66450,13 @@ function mainvue_type_script_lang_js_objectWithoutProperties(obj, keys) { var ta
65855
66450
  _this2.show = !_this2.show;
65856
66451
  }
65857
66452
  }
65858
- }, '高级搜索'));
66453
+ }, ['高级搜索', h('i', {
66454
+ class: {
66455
+ 'el-icon-arrow-down': !_this2.show,
66456
+ 'el-icon-arrow-up': _this2.show,
66457
+ 'es-advanced-icon': 1
66458
+ }
66459
+ })]));
65859
66460
  filter = h('transition', {
65860
66461
  props: {
65861
66462
  name: 'el-zoom-in-top'
@@ -65869,8 +66470,8 @@ function mainvue_type_script_lang_js_objectWithoutProperties(obj, keys) { var ta
65869
66470
  name: 'show',
65870
66471
  value: _this2.show
65871
66472
  }]
65872
- }, [h('es-form', {
65873
- class: 'es-form-search',
66473
+ }, [_this2.show ? h('es-form', {
66474
+ class: 'es-form-advanced-filter',
65874
66475
  ref: 'filter',
65875
66476
  props: toolbar_src_mainvue_type_script_lang_js_extends({}, other, config || {}, {
65876
66477
  size: 'medium',
@@ -65882,7 +66483,7 @@ function mainvue_type_script_lang_js_objectWithoutProperties(obj, keys) { var ta
65882
66483
  submit: _this2.hanleSubmit,
65883
66484
  reset: _this2.hanleCancel
65884
66485
  }
65885
- }, [])])]);
66486
+ }, []) : ''])]);
65886
66487
  }
65887
66488
  });
65888
66489
  var box = [h('div', {
@@ -69993,8 +70594,8 @@ form_src_table.install = function (Vue) {
69993
70594
  };
69994
70595
 
69995
70596
  /* harmony default export */ var table_form = (form_src_table);
69996
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=4eac4348&
69997
- var mainvue_type_template_id_4eac4348_render = function () {
70597
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=3d54363f&
70598
+ var mainvue_type_template_id_3d54363f_render = function () {
69998
70599
  var _vm = this
69999
70600
  var _h = _vm.$createElement
70000
70601
  var _c = _vm._self._c || _h
@@ -70373,11 +70974,11 @@ var mainvue_type_template_id_4eac4348_render = function () {
70373
70974
  )
70374
70975
  : _vm._e()
70375
70976
  }
70376
- var mainvue_type_template_id_4eac4348_staticRenderFns = []
70377
- mainvue_type_template_id_4eac4348_render._withStripped = true
70977
+ var mainvue_type_template_id_3d54363f_staticRenderFns = []
70978
+ mainvue_type_template_id_3d54363f_render._withStripped = true
70378
70979
 
70379
70980
 
70380
- // CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=4eac4348&
70981
+ // CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=3d54363f&
70381
70982
 
70382
70983
  // CONCATENATED MODULE: ./packages/upload/src/picture.js
70383
70984
  /* harmony default export */ var picture = ({
@@ -71129,16 +71730,7 @@ var mainvue_type_script_lang_js_props;
71129
71730
  this.$refs.upload.submit();
71130
71731
  },
71131
71732
  openKkfileview: function openKkfileview(file) {
71132
- var host = '';
71133
- try {
71134
- host = utils_util["a" /* default */].win.top.location.origin;
71135
- } catch (error) {
71136
- try {
71137
- host = utils_util["a" /* default */].win.parent.location.origin;
71138
- } catch (error) {
71139
- host = utils_util["a" /* default */].win.location.origin;
71140
- }
71141
- }
71733
+ var host = utils_util["a" /* default */].win.location.origin;
71142
71734
  if (this.host) {
71143
71735
  if (utils_util["a" /* default */].startWith(this.host, 'http')) {
71144
71736
  host = this.host;
@@ -71472,8 +72064,8 @@ var mainvue_type_script_lang_js_props;
71472
72064
 
71473
72065
  var upload_src_main_component = normalizeComponent(
71474
72066
  packages_upload_src_mainvue_type_script_lang_js_,
71475
- mainvue_type_template_id_4eac4348_render,
71476
- mainvue_type_template_id_4eac4348_staticRenderFns,
72067
+ mainvue_type_template_id_3d54363f_render,
72068
+ mainvue_type_template_id_3d54363f_staticRenderFns,
71477
72069
  false,
71478
72070
  null,
71479
72071
  null,
@@ -71933,7 +72525,8 @@ wxlogin_src_main.install = function (Vue) {
71933
72525
 
71934
72526
 
71935
72527
 
71936
- var components = [packages_button, button_group, checkbox_group, card, cascader, clients, data_table, data_table_form, date_picker, packages_dialog, enterprise, error_page, packages_form, packages_flow, flow_group, flow_list, handle_user, packages_handler, icons, packages_input, input_number, packages_label, layout, login, packages_main, menu, nav, packages_notify, pagination, packages_page, player, qr_code, radio_group, retrial_auth, packages_select, select_ganged, selector, selector_panel, packages_sizer, steps, packages_switch, packages_tabs, tabs_panel, tips, packages_tree, tree_group, packages_toolbar, table_form, upload, wujie, wxlogin];
72528
+
72529
+ var components = [packages_button, button_group, calendar, card, cascader, checkbox_group, clients, data_table, data_table_form, date_picker, packages_dialog, enterprise, error_page, packages_form, packages_flow, flow_group, flow_list, handle_user, packages_handler, icons, packages_input, input_number, packages_label, layout, login, packages_main, menu, nav, packages_notify, pagination, packages_page, player, qr_code, radio_group, retrial_auth, packages_select, select_ganged, selector, selector_panel, packages_sizer, steps, packages_switch, packages_tabs, tabs_panel, tips, packages_tree, tree_group, packages_toolbar, table_form, upload, wujie, wxlogin];
71937
72530
 
71938
72531
  var install = function install(Vue) {
71939
72532
  var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
@@ -71948,13 +72541,14 @@ if (typeof window !== 'undefined' && window.Vue) {
71948
72541
  }
71949
72542
 
71950
72543
  /* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
71951
- version: '0.5.44',
72544
+ version: '0.5.46',
71952
72545
  install: install,
71953
72546
  Button: packages_button,
71954
72547
  ButtonGroup: button_group,
71955
- CheckboxGroup: checkbox_group,
72548
+ Calendar: calendar,
71956
72549
  Card: card,
71957
72550
  Cascader: cascader,
72551
+ CheckboxGroup: checkbox_group,
71958
72552
  Clients: clients,
71959
72553
  DataTable: data_table,
71960
72554
  DataTableForm: data_table_form,