eoss-ui 0.5.45 → 0.5.47

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 (127) hide show
  1. package/lib/button.js +137 -144
  2. package/lib/calendar.js +769 -0
  3. package/lib/cascader.js +2 -2
  4. package/lib/checkbox-group.js +4 -2
  5. package/lib/clients.js +2 -2
  6. package/lib/data-table-form.js +36 -13
  7. package/lib/data-table.js +39 -37
  8. package/lib/date-picker.js +2 -2
  9. package/lib/dialog.js +10 -13
  10. package/lib/enterprise.js +2 -2
  11. package/lib/eoss-ui.common.js +1265 -721
  12. package/lib/error-page.js +2 -2
  13. package/lib/flow-group.js +9 -21
  14. package/lib/flow-list.js +2 -2
  15. package/lib/form.js +215 -231
  16. package/lib/handle-user.js +5 -11
  17. package/lib/handler.js +2 -2
  18. package/lib/icons.js +2 -2
  19. package/lib/index.js +1 -1
  20. package/lib/input-number.js +2 -2
  21. package/lib/input.js +2 -2
  22. package/lib/label.js +2 -2
  23. package/lib/menu.js +2 -2
  24. package/lib/nav.js +5 -5
  25. package/lib/notify.js +2 -2
  26. package/lib/page.js +2 -2
  27. package/lib/pagination.js +2 -2
  28. package/lib/player.js +2 -2
  29. package/lib/qr-code.js +2 -2
  30. package/lib/radio-group.js +2 -2
  31. package/lib/retrial-auth.js +2 -2
  32. package/lib/select-ganged.js +2 -2
  33. package/lib/select.js +2 -2
  34. package/lib/selector.js +2 -2
  35. package/lib/sizer.js +9 -9
  36. package/lib/steps.js +2 -2
  37. package/lib/switch.js +2 -2
  38. package/lib/table-form.js +2 -2
  39. package/lib/tabs-panel.js +2 -2
  40. package/lib/tabs.js +2 -2
  41. package/lib/theme-chalk/cascader.css +1 -0
  42. package/lib/theme-chalk/data-table-form.css +1 -1
  43. package/lib/theme-chalk/index.css +1 -1
  44. package/lib/theme-chalk/toolbar.css +1 -1
  45. package/lib/tips.js +2 -2
  46. package/lib/toolbar.js +22 -37
  47. package/lib/tree-group.js +2 -2
  48. package/lib/tree.js +2 -2
  49. package/lib/wujie.js +2 -2
  50. package/lib/wxlogin.js +2 -2
  51. package/package.json +1 -1
  52. package/packages/button/src/main.vue +2 -9
  53. package/packages/calendar/index.js +5 -0
  54. package/packages/calendar/src/main.vue +386 -0
  55. package/packages/data-table/src/main.vue +40 -28
  56. package/packages/data-table-form/src/main.vue +30 -23
  57. package/packages/data-table-form/src/table.vue +16 -3
  58. package/packages/dialog/src/main.vue +5 -9
  59. package/packages/flow-group/src/main.vue +5 -17
  60. package/packages/handle-user/src/main.vue +1 -7
  61. package/packages/nav/src/main.vue +1 -1
  62. package/packages/theme-chalk/gulpfile.js +25 -0
  63. package/packages/theme-chalk/src/cascader.scss +93 -0
  64. package/packages/theme-chalk/src/data-table-form.scss +11 -0
  65. package/packages/theme-chalk/src/index.scss +2 -1
  66. package/packages/theme-chalk/src/toolbar.scss +13 -11
  67. package/packages/toolbar/src/main.vue +39 -52
  68. package/src/index.js +7 -4
  69. package/CHANGELOG.md +0 -929
  70. package/packages/theme-chalk/lib/base.css +0 -1
  71. package/packages/theme-chalk/lib/button-group.css +0 -1
  72. package/packages/theme-chalk/lib/button.css +0 -1
  73. package/packages/theme-chalk/lib/card.css +0 -1
  74. package/packages/theme-chalk/lib/checkbox-group.css +0 -1
  75. package/packages/theme-chalk/lib/clients.css +0 -1
  76. package/packages/theme-chalk/lib/data-table-form.css +0 -1
  77. package/packages/theme-chalk/lib/data-table.css +0 -1
  78. package/packages/theme-chalk/lib/date-picker.css +0 -1
  79. package/packages/theme-chalk/lib/dialog.css +0 -1
  80. package/packages/theme-chalk/lib/enterprise.css +0 -1
  81. package/packages/theme-chalk/lib/error-page.css +0 -1
  82. package/packages/theme-chalk/lib/flow-group.css +0 -1
  83. package/packages/theme-chalk/lib/flow-list.css +0 -1
  84. package/packages/theme-chalk/lib/flow.css +0 -1
  85. package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
  86. package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
  87. package/packages/theme-chalk/lib/form.css +0 -1
  88. package/packages/theme-chalk/lib/handle-user.css +0 -1
  89. package/packages/theme-chalk/lib/handler.css +0 -1
  90. package/packages/theme-chalk/lib/icon.css +0 -1
  91. package/packages/theme-chalk/lib/icons.css +0 -1
  92. package/packages/theme-chalk/lib/index.css +0 -1
  93. package/packages/theme-chalk/lib/input-number.css +0 -0
  94. package/packages/theme-chalk/lib/input.css +0 -1
  95. package/packages/theme-chalk/lib/label.css +0 -1
  96. package/packages/theme-chalk/lib/layout.css +0 -1
  97. package/packages/theme-chalk/lib/login.css +0 -1
  98. package/packages/theme-chalk/lib/main.css +0 -1
  99. package/packages/theme-chalk/lib/mainComp.css +0 -0
  100. package/packages/theme-chalk/lib/menu.css +0 -1
  101. package/packages/theme-chalk/lib/nav.css +0 -1
  102. package/packages/theme-chalk/lib/notify.css +0 -0
  103. package/packages/theme-chalk/lib/page.css +0 -1
  104. package/packages/theme-chalk/lib/pagination.css +0 -1
  105. package/packages/theme-chalk/lib/player.css +0 -1
  106. package/packages/theme-chalk/lib/qr-code.css +0 -1
  107. package/packages/theme-chalk/lib/radio-group.css +0 -1
  108. package/packages/theme-chalk/lib/retrial-auth.css +0 -1
  109. package/packages/theme-chalk/lib/select-ganged.css +0 -1
  110. package/packages/theme-chalk/lib/select.css +0 -1
  111. package/packages/theme-chalk/lib/selector-panel.css +0 -1
  112. package/packages/theme-chalk/lib/selector.css +0 -1
  113. package/packages/theme-chalk/lib/sizer.css +0 -1
  114. package/packages/theme-chalk/lib/steps.css +0 -1
  115. package/packages/theme-chalk/lib/switch.css +0 -1
  116. package/packages/theme-chalk/lib/table-form.css +0 -0
  117. package/packages/theme-chalk/lib/tabs-panel.css +0 -0
  118. package/packages/theme-chalk/lib/tabs.css +0 -1
  119. package/packages/theme-chalk/lib/tips.css +0 -1
  120. package/packages/theme-chalk/lib/toolbar.css +0 -1
  121. package/packages/theme-chalk/lib/tree-group.css +0 -1
  122. package/packages/theme-chalk/lib/tree.css +0 -1
  123. package/packages/theme-chalk/lib/upload.css +0 -1
  124. package/packages/theme-chalk/lib/wujie.css +0 -0
  125. package/packages/theme-chalk/lib/wxlogin.css +0 -1
  126. /package/{packages/theme-chalk/lib/cascader.css → lib/theme-chalk/calendar.css} +0 -0
  127. /package/packages/theme-chalk/{lib/flow-chart.css → src/calendar.scss} +0 -0
@@ -3776,15 +3776,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3776
3776
  evt.preventDefault();
3777
3777
  var width = 0;
3778
3778
  var height = 0;
3779
- var win = void 0;
3780
- try {
3781
- utils_util["a" /* default */].win.top.document;
3782
- win = utils_util["a" /* default */].win.top;
3783
- } catch (error) {
3784
- win = utils_util["a" /* default */].getMyWinTop();
3785
- }
3786
- width = win.screen.availWidth - 10;
3787
- height = win.screen.availHeight - 60;
3779
+ width = utils_util["a" /* default */].win.top.screen.availWidth - 10;
3780
+ height = utils_util["a" /* default */].win.top.screen.availHeight - 60;
3788
3781
  var flag = true;
3789
3782
  if (this.esForm) {
3790
3783
  var params = utils_util["a" /* default */].getParams({ url: this.link });
@@ -4376,182 +4369,153 @@ src_main.install = function (Vue) {
4376
4369
  };
4377
4370
 
4378
4371
  /* harmony default export */ var button_group = (src_main);
4379
- // 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&
4380
- var mainvue_type_template_id_6ffd0b06_render = function () {
4372
+ // 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&
4373
+ var mainvue_type_template_id_9b8c6630_render = function () {
4381
4374
  var _vm = this
4382
4375
  var _h = _vm.$createElement
4383
4376
  var _c = _vm._self._c || _h
4384
- return !_vm.hide
4385
- ? _c(
4386
- "div",
4387
- { staticClass: "es-checkbox-group" },
4388
- [
4389
- _vm.readonly
4390
- ? _c(
4391
- "div",
4392
- {
4393
- staticClass: "es-input__inner",
4394
- class: { "es-plain": this.plain || _vm.$attrs.text },
4395
- },
4396
- [_vm._v("\n " + _vm._s(_vm.labelVal) + "\n ")]
4397
- )
4398
- : _c(
4399
- "el-checkbox-group",
4400
- _vm._g(
4401
- _vm._b(
4402
- {
4403
- directives: [
4404
- {
4405
- name: "show",
4406
- rawName: "v-show",
4407
- value: _vm.display,
4408
- expression: "display",
4409
- },
4410
- ],
4411
- model: {
4412
- value: _vm.model,
4413
- callback: function ($$v) {
4414
- _vm.model = $$v
4415
- },
4416
- expression: "model",
4417
- },
4418
- },
4419
- "el-checkbox-group",
4420
- Object.assign(
4421
- {},
4422
- { valueKey: _vm.valKey, labelKey: _vm.label },
4423
- _vm.$attrs
4424
- ),
4425
- false
4426
- ),
4427
- _vm.$listeners
4377
+ return _c("div", { staticClass: "es-calendar" }, [
4378
+ _c(
4379
+ "div",
4380
+ {
4381
+ directives: [
4382
+ {
4383
+ name: "show",
4384
+ rawName: "v-show",
4385
+ value: _vm.showTitle,
4386
+ expression: "showTitle",
4387
+ },
4388
+ ],
4389
+ staticClass: "es-calendar-title",
4390
+ },
4391
+ [
4392
+ _c("i", {
4393
+ staticClass: "es-calendar-prev es-icon-pointer-left",
4394
+ on: { click: _vm.prev },
4395
+ }),
4396
+ _c(
4397
+ "div",
4398
+ { staticClass: "es-title", on: { click: _vm.resetDate } },
4399
+ [
4400
+ _vm._t(
4401
+ "title",
4402
+ [
4403
+ _vm._v(
4404
+ "\n " +
4405
+ _vm._s(_vm.year) +
4406
+ "年" +
4407
+ _vm._s(_vm.month) +
4408
+ "月\n "
4428
4409
  ),
4429
- [
4430
- _vm.genre === "button"
4431
- ? _vm._l(_vm.results, function (item, index) {
4432
- return _c(
4433
- "el-checkbox-button",
4434
- _vm._b(
4435
- {
4436
- key: index,
4437
- attrs: {
4438
- label:
4439
- _vm.isObject || typeof item == "string"
4440
- ? item
4441
- : item[_vm.valKey],
4442
- disabled:
4443
- typeof item == "string"
4444
- ? false
4445
- : item.disabled,
4446
- },
4447
- },
4448
- "el-checkbox-button",
4449
- _vm.getprops(_vm.$attrs, item),
4450
- false
4451
- ),
4452
- [
4453
- _vm._v(
4454
- "\n " +
4455
- _vm._s(
4456
- typeof item == "string"
4457
- ? item
4458
- : item[_vm.label]
4459
- ? item[_vm.label]
4460
- : item.label || item[_vm.valKey]
4461
- ) +
4462
- "\n "
4463
- ),
4464
- ]
4465
- )
4466
- })
4467
- : _vm._l(_vm.results, function (item, index) {
4468
- return _c(
4469
- "el-checkbox",
4470
- _vm._b(
4471
- {
4472
- key: index,
4473
- attrs: {
4474
- label:
4475
- _vm.isObject || typeof item == "string"
4476
- ? item
4477
- : item[_vm.valKey],
4478
- disabled:
4479
- typeof item == "string"
4480
- ? false
4481
- : item.disabled,
4482
- border: _vm.genre === "border",
4483
- },
4484
- },
4485
- "el-checkbox",
4486
- _vm.getprops(_vm.$attrs, item),
4487
- false
4488
- ),
4489
- [
4490
- _vm._v(
4491
- "\n " +
4492
- _vm._s(
4493
- typeof item == "string"
4494
- ? item
4495
- : item[_vm.label]
4496
- ? item[_vm.label]
4497
- : item.label || item[_vm.valKey]
4498
- ) +
4499
- "\n "
4500
- ),
4501
- ]
4502
- )
4503
- }),
4504
- ],
4505
- 2
4506
- ),
4410
+ ],
4411
+ { year: _vm.year, month: _vm.month }
4412
+ ),
4413
+ ],
4414
+ 2
4415
+ ),
4416
+ _c("i", {
4417
+ staticClass: "es-calendar-next es-icon-pointer-right",
4418
+ on: { click: _vm.next },
4419
+ }),
4420
+ ]
4421
+ ),
4422
+ _c(
4423
+ "ul",
4424
+ { staticClass: "es-calendar-weeks" },
4425
+ _vm._l(_vm.weeks, function (item, index) {
4426
+ return _c("li", { key: index, staticClass: "es-week" }, [
4427
+ _vm._v("\n " + _vm._s(item) + "\n "),
4428
+ ])
4429
+ }),
4430
+ 0
4431
+ ),
4432
+ _c(
4433
+ "ul",
4434
+ { staticClass: "es-calendar-days" },
4435
+ _vm._l(_vm.lists, function (item, index) {
4436
+ return _c(
4437
+ "li",
4438
+ {
4439
+ key: item.year + "-" + item.month + "-" + item.date,
4440
+ staticClass: "es-day",
4441
+ on: {
4442
+ click: function ($event) {
4443
+ _vm.handleClick(item)
4444
+ },
4445
+ },
4446
+ },
4447
+ [
4448
+ _c(
4449
+ "div",
4450
+ {
4451
+ staticClass: "es-day-item",
4452
+ class: {
4453
+ "es-disabled-day": item.type == 0,
4454
+ "es-today": _vm.isSelect(item, _vm.today) && _vm.mark,
4455
+ "es-select": _vm.isSelect(item, _vm.select),
4456
+ },
4457
+ },
4458
+ [
4459
+ _vm._v("\n " + _vm._s(item.date) + "\n "),
4460
+ _vm._t("mark", null, { data: item }),
4461
+ ],
4462
+ 2
4463
+ ),
4464
+ ]
4465
+ )
4466
+ }),
4467
+ 0
4468
+ ),
4469
+ _c(
4470
+ "div",
4471
+ {
4472
+ directives: [
4473
+ {
4474
+ name: "show",
4475
+ rawName: "v-show",
4476
+ value: _vm.fold,
4477
+ expression: "fold",
4478
+ },
4507
4479
  ],
4508
- 1
4509
- )
4510
- : _vm._e()
4480
+ staticClass: "es-calendar-switch",
4481
+ },
4482
+ [
4483
+ _c("i", {
4484
+ directives: [
4485
+ {
4486
+ name: "show",
4487
+ rawName: "v-show",
4488
+ value: _vm.all,
4489
+ expression: "all",
4490
+ },
4491
+ ],
4492
+ staticClass: "es-icon-pointer-up es-switch-icon",
4493
+ attrs: { name: "" },
4494
+ on: { click: _vm.handleHide },
4495
+ }),
4496
+ _c("i", {
4497
+ directives: [
4498
+ {
4499
+ name: "show",
4500
+ rawName: "v-show",
4501
+ value: !_vm.all,
4502
+ expression: "!all",
4503
+ },
4504
+ ],
4505
+ staticClass: "es-icon-pointer-down es-switch-icon",
4506
+ on: { click: _vm.handleShow },
4507
+ }),
4508
+ ]
4509
+ ),
4510
+ ])
4511
4511
  }
4512
- var mainvue_type_template_id_6ffd0b06_staticRenderFns = []
4513
- mainvue_type_template_id_6ffd0b06_render._withStripped = true
4512
+ var mainvue_type_template_id_9b8c6630_staticRenderFns = []
4513
+ mainvue_type_template_id_9b8c6630_render._withStripped = true
4514
4514
 
4515
4515
 
4516
- // CONCATENATED MODULE: ./packages/checkbox-group/src/main.vue?vue&type=template&id=6ffd0b06&
4517
-
4518
- // EXTERNAL MODULE: ./src/config/api.js
4519
- var api = __webpack_require__(1);
4516
+ // CONCATENATED MODULE: ./packages/calendar/src/main.vue?vue&type=template&id=9b8c6630&
4520
4517
 
4521
- // CONCATENATED MODULE: ./src/utils/store.js
4522
- var store_store = {
4523
- state: {},
4524
- set: function set(name, value) {
4525
- this.state[name] = value;
4526
- },
4527
- get: function get(name) {
4528
- return this.state[name];
4529
- },
4530
- clear: function clear(name) {
4531
- this.state[name] = null;
4532
- },
4533
- remove: function remove(name) {
4534
- if (name) {
4535
- delete this.state[name];
4536
- } else {
4537
- this.state = {};
4538
- }
4539
- }
4540
- };
4541
- window.__store = store_store;
4542
- /* harmony default export */ var utils_store = (store_store);
4543
- // EXTERNAL MODULE: external "vue"
4544
- var external_vue_ = __webpack_require__(12);
4545
- var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
4546
-
4547
- // CONCATENATED MODULE: ./src/utils/bus.js
4548
-
4549
-
4550
- /* harmony default export */ var bus = (new external_vue_default.a());
4551
- // 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&
4552
- 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; };
4553
-
4554
- //
4518
+ // 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&
4555
4519
  //
4556
4520
  //
4557
4521
  //
@@ -4604,255 +4568,341 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
4604
4568
  //
4605
4569
  //
4606
4570
  //
4607
- //
4608
- //
4609
-
4610
-
4611
4571
 
4612
-
4613
-
4614
- /* harmony default export */ var checkbox_group_src_mainvue_type_script_lang_js_ = ({
4615
- name: 'EsCheckboxGroup',
4616
- inheritAttrs: false,
4617
- inject: {
4618
- esForm: {
4619
- default: ''
4620
- }
4621
- },
4572
+ /* harmony default export */ var calendar_src_mainvue_type_script_lang_js_ = ({
4573
+ name: 'esCalendar',
4622
4574
  props: {
4623
- method: {
4624
- type: String,
4625
- default: 'get'
4626
- },
4627
- // 选择项本地数据
4628
- data: {
4629
- type: Array,
4630
- default: function _default() {
4631
- return [];
4632
- }
4633
- },
4634
- param: {
4635
- type: Object,
4636
- default: function _default() {
4637
- return {};
4638
- }
4639
- },
4640
- // 选择项远程地址
4641
- url: String,
4642
- hide: {
4643
- type: Boolean,
4644
- default: false
4645
- },
4646
- // 选择项获取代码表数据(优先级大于url)
4647
- sysCode: String,
4648
- // 样式风格 button(按钮样式), border(带有边框)
4649
- genre: {
4650
- type: String,
4651
- default: ''
4652
- },
4653
- separator: {
4654
- type: String,
4655
- default: '、'
4656
- },
4657
- display: {
4575
+ //显示title
4576
+ showTitle: {
4658
4577
  type: Boolean,
4659
4578
  default: true
4660
4579
  },
4661
- valueType: {
4662
- type: String,
4663
- default: 'string',
4664
- validator: function validator(value) {
4665
- return ['string', 'object'].includes(value);
4666
- }
4667
- },
4668
- valueKey: {
4669
- type: String,
4670
- default: 'value'
4671
- },
4672
- // 指定选择项显示值的键名,data元素是对象类型时必填
4673
- labelKey: {
4674
- type: String,
4675
- default: 'name'
4676
- },
4677
- value: [Array, String],
4678
- readonly: Boolean,
4679
- plain: Boolean,
4680
- ajax: {
4580
+ //指定日期
4581
+ date: [String, Number],
4582
+ //是否只显示本周
4583
+ brief: Boolean,
4584
+ //是否等指定日期传入后再渲染
4585
+ wait: Boolean,
4586
+ //是否显示收起展开按钮
4587
+ fold: {
4681
4588
  type: Boolean,
4682
4589
  default: true
4683
4590
  },
4684
- isNoParamRequest: {
4685
- type: Boolean,
4686
- default: true
4591
+ mark: Boolean
4592
+ },
4593
+ watch: {
4594
+ date: {
4595
+ immediate: true,
4596
+ handler: function handler(val) {
4597
+ if (this.wait) {
4598
+ val && this.init();
4599
+ } else {
4600
+ this.init();
4601
+ }
4602
+ }
4687
4603
  },
4688
- dataKey: String
4604
+ brief: {
4605
+ immediate: true,
4606
+ handler: function handler(val) {
4607
+ this.all = !val;
4608
+ }
4609
+ }
4610
+ },
4611
+ computed: {
4612
+ lists: function lists() {
4613
+ var _this = this;
4614
+
4615
+ if (this.all) {
4616
+ return this.daysList;
4617
+ }
4618
+ return this.daysList.filter(function (item) {
4619
+ for (var i = 0; i < _this.weekDate.length; i++) {
4620
+ var ele = _this.weekDate[i];
4621
+ if (item.year == ele.year && item.month == ele.month && item.date == ele.date) {
4622
+ return true;
4623
+ }
4624
+ }
4625
+ });
4626
+ }
4689
4627
  },
4690
4628
  data: function data() {
4691
4629
  return {
4692
- options: '',
4693
- canceled: false
4630
+ year: '',
4631
+ _month: '',
4632
+ weeks: ['日', '一', '二', '三', '四', '五', '六'],
4633
+ weekDate: [],
4634
+ week7: '',
4635
+ today: '',
4636
+ select: '',
4637
+ selectDate: '',
4638
+ daysList: [],
4639
+ all: true,
4640
+ week: 0,
4641
+ prevMonthDays: 0,
4642
+ nextMonthDays: 0,
4643
+ days: 0
4694
4644
  };
4695
4645
  },
4646
+ mounted: function mounted() {},
4696
4647
 
4697
- computed: {
4698
- isObject: function isObject() {
4699
- if (this.value !== '' && Array.isArray(this.value) && this.value.length > 0 && utils_util["a" /* default */].isObject(this.value[0])) {
4648
+ methods: {
4649
+ resetDate: function resetDate() {
4650
+ this.week = 0;
4651
+ this.init();
4652
+ },
4653
+ init: function init(res) {
4654
+ this.daysList = [];
4655
+ var dates = this.getDays(res ? res : this.date);
4656
+ var year = dates.year,
4657
+ month = dates.month,
4658
+ today = dates.today,
4659
+ daysList = dates.daysList,
4660
+ weekDate = dates.weekDate,
4661
+ prevMonthDays = dates.prevMonthDays,
4662
+ nextMonthDays = dates.nextMonthDays,
4663
+ days = dates.days;
4664
+
4665
+ if (!res) {
4666
+ this.today = year + '/' + month + '/' + today;
4667
+ this.selectDate = today;
4668
+ this.select = year + '/' + month + '/' + today;
4669
+ this.$emit('select', { year: year, month: month, date: today, type: 1 });
4670
+ }
4671
+ this.prevMonthDays = prevMonthDays;
4672
+ this.nextMonthDays = nextMonthDays;
4673
+ this.days = days;
4674
+ this.daysList = daysList;
4675
+ this.year = year;
4676
+ this.month = month;
4677
+ if (!this.weekDate.length) {
4678
+ this.weekDate = weekDate;
4679
+ }
4680
+ this.$emit('init', dates);
4681
+ return dates;
4682
+ },
4683
+ isShow: function isShow(res) {
4684
+ if (this.all) {
4700
4685
  return true;
4701
- } else {
4702
- if (this.valueType === 'object') {
4703
- return true;
4704
- } else {
4705
- return false;
4706
- }
4707
4686
  }
4687
+ return this.weekDate.filter(function (item) {
4688
+ return item.year == res.year && item.month == res.month && item.date == res.date;
4689
+ }).length;
4708
4690
  },
4691
+ isSelect: function isSelect(res, target) {
4692
+ var year = res.year,
4693
+ month = res.month,
4694
+ date = res.date;
4709
4695
 
4710
- model: {
4711
- get: function get() {
4712
- return this.value === undefined ? [] : this.value;
4713
- },
4714
- set: function set(val) {
4715
- return val;
4716
- }
4696
+ return target == year + '/' + month + '/' + date;
4717
4697
  },
4718
- label: function label() {
4719
- if (this.sysCode) {
4720
- return 'shortName';
4721
- }
4722
- return this.labelKey;
4698
+ handleClick: function handleClick(res) {
4699
+ var year = res.year,
4700
+ month = res.month,
4701
+ date = res.date;
4702
+
4703
+ this.selectDate = date;
4704
+ this.select = year + '/' + month + '/' + date;
4705
+ this.$emit('select', res);
4723
4706
  },
4724
- valKey: function valKey() {
4725
- if (this.sysCode) {
4726
- return 'cciValue';
4707
+ prev: function prev() {
4708
+ if (this.all) {
4709
+ this.weekDate = [];
4710
+ this.prevMonth();
4711
+ } else {
4712
+ this.weekDate = this.getWeekDay(-1);
4713
+ this.$emit('prev', this.weekDate, 'week');
4727
4714
  }
4728
- return this.valueKey;
4729
4715
  },
4730
- results: function results() {
4731
- return this.options ? this.options : this.data;
4716
+ next: function next() {
4717
+ if (this.all) {
4718
+ this.weekDate = [];
4719
+ this.nextMonth();
4720
+ } else {
4721
+ this.weekDate = this.getWeekDay(1);
4722
+ this.$emit('next', this.weekDate, 'week');
4723
+ }
4732
4724
  },
4733
- labelVal: function labelVal() {
4734
- var _this = this;
4735
-
4736
- var model = typeof this.model === 'string' ? this.model.split(',') : this.model || [];
4737
- var label = model.map(function (item) {
4738
- if (utils_util["a" /* default */].isObject(item)) {
4739
- return item[_this.label];
4725
+ prevMonth: function prevMonth() {
4726
+ var year = this.year;
4727
+ var month = this.month;
4728
+ var dates = this.select.split('/');
4729
+ if (month == 1) {
4730
+ year -= 1;
4731
+ month = 12;
4732
+ } else {
4733
+ month -= 1;
4734
+ }
4735
+ var date = year == dates[0] && month == dates[1] ? dates[2] : this.prevMonthDays;
4736
+ date = date.toString().padStart(2, '0');
4737
+ month = month.toString().padStart(2, '0');
4738
+ var res = this.init(year + '/' + month + '/' + date);
4739
+ this.$emit('prev', res, 'month');
4740
+ },
4741
+ nextMonth: function nextMonth() {
4742
+ var year = this.year;
4743
+ var month = this.month;
4744
+ var dates = this.select.split('/');
4745
+ if (month == 12) {
4746
+ year += 1;
4747
+ month = 1;
4748
+ } else {
4749
+ month += 1;
4750
+ }
4751
+ var date = year == dates[0] && month == dates[1] ? dates[2] : 1;
4752
+ date = date.toString().padStart(2, '0');
4753
+ month = month.toString().padStart(2, '0');
4754
+ var res = this.init(year + '/' + month + '/' + date);
4755
+ this.$emit('next', res, 'month');
4756
+ },
4757
+
4758
+ //获取当月或指定日期所在月天数
4759
+ getDays: function getDays(res) {
4760
+ var date = res ? new Date(res) : new Date();
4761
+ var year = date.getFullYear();
4762
+ var month = date.getMonth();
4763
+ var today = date.getDate();
4764
+ var week = date.getDay();
4765
+ //此月天数
4766
+ var days = new Date(year, month + 1, 0).getDate();
4767
+ //此月第一天周几
4768
+ var stratDay = new Date(year, month, 1).getDay();
4769
+ //此月最后一天周几
4770
+ var endDay = new Date(year, month, days).getDay();
4771
+ //上月天数
4772
+ var prevMonthDays = month == 0 ? new Date(year - 1, 11, 0).getDate() : new Date(year, month, 0).getDate();
4773
+ //下月天数
4774
+ var nextMonthDays = month == 11 ? new Date(year + 1, 1, 0).getDate() : new Date(year, month + 2, 0).getDate();
4775
+ //当前日期所在的周
4776
+ var weekDate = [{ date: today, year: year, month: month + 1 }];
4777
+ for (var _i = 0; _i < week; _i++) {
4778
+ var d = _i + 1;
4779
+ if (today - d > 1) {
4780
+ weekDate.unshift({
4781
+ date: today - d,
4782
+ year: year,
4783
+ month: month + 1
4784
+ });
4785
+ } else {
4786
+ weekDate.unshift({
4787
+ date: prevMonthDays - _i,
4788
+ year: month == 0 ? year - 1 : year,
4789
+ month: month == 0 ? 12 : month
4790
+ });
4740
4791
  }
4741
- if (utils_util["a" /* default */].isObject(_this.results[0])) {
4742
- var vals = [];
4743
- _this.results.forEach(function (ele) {
4744
- if (ele[_this.valKey] === item) {
4745
- vals.push(ele[_this.label]);
4746
- }
4792
+ }
4793
+ for (var _i2 = 0; _i2 < 6 - week; _i2++) {
4794
+ var _d = _i2 + 1;
4795
+ if (today + _d <= days) {
4796
+ weekDate.unshift({
4797
+ date: today + _d,
4798
+ year: year,
4799
+ month: month + 1
4800
+ });
4801
+ } else {
4802
+ weekDate.push({
4803
+ date: today + _d - days,
4804
+ year: month == 11 ? year + 1 : year,
4805
+ month: month == 11 ? 1 : month + 2
4747
4806
  });
4748
- return vals.join(_this.separator);
4749
4807
  }
4750
- return item;
4751
- });
4752
- return label.join(this.separator);
4753
- }
4754
- },
4755
- watch: {
4756
- sysCode: {
4757
- immediate: true,
4758
- handler: function handler(val, old) {
4759
- if (val && val != old) {
4760
- var options = utils_store.get(val);
4761
- if (options) {
4762
- this.options = JSON.parse(JSON.stringify(options));
4763
- } else {
4764
- this.getData(api["v" /* findSysCode */], val);
4765
- }
4808
+ }
4809
+
4810
+ var daysList = [];
4811
+ //本月前加入数组
4812
+ if (stratDay > 0) {
4813
+ for (var _i3 = prevMonthDays; _i3 > prevMonthDays - stratDay; _i3--) {
4814
+ daysList.unshift({
4815
+ date: _i3,
4816
+ type: 0,
4817
+ year: month == 0 ? year - 1 : year,
4818
+ month: month == 0 ? 12 : month
4819
+ });
4766
4820
  }
4767
4821
  }
4768
- },
4769
- url: {
4770
- immediate: true,
4771
- handler: function handler(val) {
4772
- if (val && !this.sysCode) {
4773
- this.getData(val);
4822
+ //本月加入数组
4823
+ for (var _i4 = 1; _i4 <= days; _i4++) {
4824
+ daysList.push({
4825
+ date: _i4,
4826
+ type: 1,
4827
+ year: year,
4828
+ month: month + 1,
4829
+ row: week < 6 && today + week > days
4830
+ });
4831
+ }
4832
+ //本月后加入数组
4833
+ if (endDay < 6) {
4834
+ for (var i = 1; i < 6 - endDay + 1; i++) {
4835
+ daysList.push({
4836
+ date: i,
4837
+ type: 0,
4838
+ year: month == 11 ? year + 1 : year,
4839
+ month: month == 11 ? 1 : month + 2
4840
+ });
4774
4841
  }
4775
4842
  }
4843
+ return {
4844
+ days: days,
4845
+ prevMonthDays: prevMonthDays,
4846
+ nextMonthDays: nextMonthDays,
4847
+ stratDay: stratDay,
4848
+ endDay: endDay,
4849
+ weekDate: weekDate,
4850
+ year: year,
4851
+ month: month + 1,
4852
+ today: today,
4853
+ week: week,
4854
+ daysList: daysList
4855
+ };
4776
4856
  },
4777
- param: {
4778
- deep: true,
4779
- handler: function handler() {
4780
- this.url && this.getData(this.url);
4781
- }
4782
- }
4783
- },
4784
- created: function created() {
4785
- this.bindEventBus();
4786
- },
4787
- mounted: function mounted() {},
4788
-
4789
- methods: {
4790
- getData: function getData(url, sysCode) {
4857
+ getWeekDay: function getWeekDay(val) {
4791
4858
  var _this2 = this;
4792
4859
 
4793
- var params = {};
4794
- if (this.results.length === 0) {
4795
- params = utils_util["a" /* default */].extend({}, this.param, sysCode ? { sysAppCode: sysCode } : {});
4796
- } else {
4797
- return false;
4798
- }
4799
- if (!this.ajax || !this.isNoParamRequest && Object.keys(this.param).length == 0) {
4800
- return false;
4801
- }
4802
- this.loading = true;
4803
- utils_util["a" /* default */].ajax({
4804
- url: url,
4805
- method: this.method,
4806
- params: params,
4807
- data: params
4808
- }).then(function (res) {
4809
- _this2.loading = false;
4810
- _this2.canceled = false;
4811
- if (res.rCode === 0) {
4812
- _this2.options = JSON.parse(JSON.stringify(res.results));
4813
- if (sysCode || _this2.dataKey) {
4814
- bus.$emit(sysCode || _this2.dataKey, JSON.parse(JSON.stringify(_this2.options)));
4815
- utils_store.set(sysCode, JSON.parse(JSON.stringify(res.results)));
4860
+ var flag = true;
4861
+ var weekDate = JSON.parse(JSON.stringify(this.weekDate));
4862
+ var days = weekDate.map(function (item) {
4863
+ var date = item.date,
4864
+ month = item.month,
4865
+ year = item.year;
4866
+
4867
+ date += val * 7;
4868
+ if (date < 1) {
4869
+ date += _this2.prevMonthDays;
4870
+ month -= 1;
4871
+ if (month == 0) {
4872
+ month = 12;
4873
+ year -= 1;
4816
4874
  }
4817
- } else {
4818
- var msg = res.msg || '系统错误,请联系管理员!';
4819
- _this2.$message.error(msg);
4820
- }
4821
- }).catch(function (err) {
4822
- _this2.loading = false;
4823
- if (err.message) {
4824
- if (err.message !== 'canceled') {
4825
- _this2.$message.error(err.message);
4826
- }
4827
- if (err.message === 'canceled' && sysCode) {
4828
- _this2.canceled = true;
4875
+ } else if (date > _this2.days) {
4876
+ date -= _this2.days;
4877
+ month += 1;
4878
+ if (month > 12) {
4879
+ month = 1;
4880
+ year += 1;
4829
4881
  }
4830
4882
  }
4883
+ if (_this2.month == month) {
4884
+ flag = false;
4885
+ }
4886
+ return { date: date, month: month, year: year };
4831
4887
  });
4832
- },
4833
- getprops: function getprops(attrs, res) {
4834
- if (res.checked && this.model) {
4835
- this.$emit('input', this.valueType === 'object' ? res : res[this.valKey]);
4888
+ if (flag) {
4889
+ val == 1 ? this.nextMonth() : this.prevMonth();
4836
4890
  }
4837
- return utils_util["a" /* default */].isObject(res) ? mainvue_type_script_lang_js_extends({}, attrs, res) : attrs;
4891
+ return days;
4838
4892
  },
4839
- setOptions: function setOptions(val) {
4840
- this.options = val;
4841
- },
4842
- bindEventBus: function bindEventBus() {
4843
- bus.$on(this.sysCode || this.dataKey, this.setOptions);
4893
+ handleShow: function handleShow() {
4894
+ this.all = true;
4895
+ this.$emit('show', true);
4844
4896
  },
4845
- unbindEventBus: function unbindEventBus() {
4846
- bus.$off(this.sysCode || this.dataKey, this.setOptions);
4897
+ handleHide: function handleHide() {
4898
+ this.all = false;
4899
+ this.$emit('show', false);
4847
4900
  }
4848
- },
4849
- beforeDestroy: function beforeDestroy() {
4850
- this.unbindEventBus();
4851
4901
  }
4852
4902
  });
4853
- // CONCATENATED MODULE: ./packages/checkbox-group/src/main.vue?vue&type=script&lang=js&
4854
- /* harmony default export */ var packages_checkbox_group_src_mainvue_type_script_lang_js_ = (checkbox_group_src_mainvue_type_script_lang_js_);
4855
- // CONCATENATED MODULE: ./packages/checkbox-group/src/main.vue
4903
+ // CONCATENATED MODULE: ./packages/calendar/src/main.vue?vue&type=script&lang=js&
4904
+ /* harmony default export */ var packages_calendar_src_mainvue_type_script_lang_js_ = (calendar_src_mainvue_type_script_lang_js_);
4905
+ // CONCATENATED MODULE: ./packages/calendar/src/main.vue
4856
4906
 
4857
4907
 
4858
4908
 
@@ -4860,10 +4910,10 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
4860
4910
 
4861
4911
  /* normalize component */
4862
4912
 
4863
- var checkbox_group_src_main_component = normalizeComponent(
4864
- packages_checkbox_group_src_mainvue_type_script_lang_js_,
4865
- mainvue_type_template_id_6ffd0b06_render,
4866
- mainvue_type_template_id_6ffd0b06_staticRenderFns,
4913
+ var calendar_src_main_component = normalizeComponent(
4914
+ packages_calendar_src_mainvue_type_script_lang_js_,
4915
+ mainvue_type_template_id_9b8c6630_render,
4916
+ mainvue_type_template_id_9b8c6630_staticRenderFns,
4867
4917
  false,
4868
4918
  null,
4869
4919
  null,
@@ -4871,15 +4921,15 @@ var checkbox_group_src_main_component = normalizeComponent(
4871
4921
 
4872
4922
  )
4873
4923
 
4874
- /* harmony default export */ var checkbox_group_src_main = (checkbox_group_src_main_component.exports);
4875
- // CONCATENATED MODULE: ./packages/checkbox-group/index.js
4924
+ /* harmony default export */ var calendar_src_main = (calendar_src_main_component.exports);
4925
+ // CONCATENATED MODULE: ./packages/calendar/index.js
4876
4926
 
4877
4927
 
4878
- checkbox_group_src_main.install = function (Vue) {
4879
- return Vue.component(checkbox_group_src_main.name, checkbox_group_src_main);
4928
+ calendar_src_main.install = function (Vue) {
4929
+ return Vue.component(calendar_src_main.name, calendar_src_main);
4880
4930
  };
4881
4931
 
4882
- /* harmony default export */ var checkbox_group = (checkbox_group_src_main);
4932
+ /* harmony default export */ var calendar = (calendar_src_main);
4883
4933
  // 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&
4884
4934
  var mainvue_type_template_id_46ef4fcd_render = function () {
4885
4935
  var _vm = this
@@ -5200,233 +5250,737 @@ mainvue_type_template_id_46ef4fcd_render._withStripped = true
5200
5250
  //
5201
5251
  //
5202
5252
 
5203
- /* harmony default export */ var card_src_mainvue_type_script_lang_js_ = ({
5204
- name: 'EsCard',
5205
- inheritAttrs: false,
5206
- props: {
5207
- show: {
5208
- type: Boolean,
5209
- default: true
5210
- },
5211
- header: [String, Object],
5212
- tabs: Array,
5213
- defaultActive: String,
5214
- max: {
5215
- type: Number,
5216
- default: 99
5217
- },
5218
- isDot: Boolean
5219
- },
5220
- computed: {
5221
- isObject: function isObject() {
5222
- return typeof this.header !== 'string';
5223
- },
5224
-
5225
- active: {
5226
- get: function get() {
5227
- if (this.defaultActive === undefined) {
5228
- if (typeof this.tabs[0] === 'string') {
5229
- return '0';
5230
- } else {
5231
- return this.tabs[0].id ? this.tabs[0].id : '0';
5232
- }
5233
- }
5234
- return this.defaultActive;
5235
- }
5236
- }
5237
- },
5238
- data: function data() {
5239
- return {};
5240
- },
5241
-
5242
- methods: {
5243
- handleSelect: function handleSelect(res, path) {
5244
- this.$emit('select', res, path);
5245
- }
5246
- }
5247
- });
5248
- // CONCATENATED MODULE: ./packages/card/src/main.vue?vue&type=script&lang=js&
5249
- /* harmony default export */ var packages_card_src_mainvue_type_script_lang_js_ = (card_src_mainvue_type_script_lang_js_);
5250
- // CONCATENATED MODULE: ./packages/card/src/main.vue
5251
-
5252
-
5253
-
5254
-
5255
-
5256
- /* normalize component */
5257
-
5258
- var card_src_main_component = normalizeComponent(
5259
- packages_card_src_mainvue_type_script_lang_js_,
5260
- mainvue_type_template_id_46ef4fcd_render,
5261
- mainvue_type_template_id_46ef4fcd_staticRenderFns,
5262
- false,
5263
- null,
5264
- null,
5265
- null
5266
-
5267
- )
5253
+ /* harmony default export */ var card_src_mainvue_type_script_lang_js_ = ({
5254
+ name: 'EsCard',
5255
+ inheritAttrs: false,
5256
+ props: {
5257
+ show: {
5258
+ type: Boolean,
5259
+ default: true
5260
+ },
5261
+ header: [String, Object],
5262
+ tabs: Array,
5263
+ defaultActive: String,
5264
+ max: {
5265
+ type: Number,
5266
+ default: 99
5267
+ },
5268
+ isDot: Boolean
5269
+ },
5270
+ computed: {
5271
+ isObject: function isObject() {
5272
+ return typeof this.header !== 'string';
5273
+ },
5274
+
5275
+ active: {
5276
+ get: function get() {
5277
+ if (this.defaultActive === undefined) {
5278
+ if (typeof this.tabs[0] === 'string') {
5279
+ return '0';
5280
+ } else {
5281
+ return this.tabs[0].id ? this.tabs[0].id : '0';
5282
+ }
5283
+ }
5284
+ return this.defaultActive;
5285
+ }
5286
+ }
5287
+ },
5288
+ data: function data() {
5289
+ return {};
5290
+ },
5291
+
5292
+ methods: {
5293
+ handleSelect: function handleSelect(res, path) {
5294
+ this.$emit('select', res, path);
5295
+ }
5296
+ }
5297
+ });
5298
+ // CONCATENATED MODULE: ./packages/card/src/main.vue?vue&type=script&lang=js&
5299
+ /* harmony default export */ var packages_card_src_mainvue_type_script_lang_js_ = (card_src_mainvue_type_script_lang_js_);
5300
+ // CONCATENATED MODULE: ./packages/card/src/main.vue
5301
+
5302
+
5303
+
5304
+
5305
+
5306
+ /* normalize component */
5307
+
5308
+ var card_src_main_component = normalizeComponent(
5309
+ packages_card_src_mainvue_type_script_lang_js_,
5310
+ mainvue_type_template_id_46ef4fcd_render,
5311
+ mainvue_type_template_id_46ef4fcd_staticRenderFns,
5312
+ false,
5313
+ null,
5314
+ null,
5315
+ null
5316
+
5317
+ )
5318
+
5319
+ /* harmony default export */ var card_src_main = (card_src_main_component.exports);
5320
+ // CONCATENATED MODULE: ./packages/card/index.js
5321
+
5322
+
5323
+ card_src_main.install = function (Vue) {
5324
+ return Vue.component(card_src_main.name, card_src_main);
5325
+ };
5326
+
5327
+ /* harmony default export */ var card = (card_src_main);
5328
+ // 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&
5329
+ 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; };
5330
+
5331
+ /* harmony default export */ var cascader_src_mainvue_type_script_lang_js_ = ({
5332
+ name: 'EsCascader',
5333
+ inheritAttrs: false,
5334
+ props: {
5335
+ value: [String, Array],
5336
+ data: Array,
5337
+ options: Array,
5338
+ hide: {
5339
+ type: Boolean,
5340
+ default: false
5341
+ },
5342
+ readonly: Boolean,
5343
+ plain: Boolean,
5344
+ separator: {
5345
+ type: String,
5346
+ default: '/'
5347
+ },
5348
+ props: Object,
5349
+ //Props
5350
+ trigger: {
5351
+ type: String,
5352
+ default: 'click'
5353
+ },
5354
+ multiple: Boolean,
5355
+ checkStrictly: Boolean,
5356
+ emitPath: {
5357
+ type: Boolean,
5358
+ default: true
5359
+ },
5360
+ lazy: Boolean,
5361
+ lazyLoad: Function,
5362
+ type: {
5363
+ type: String,
5364
+ default: 'object'
5365
+ },
5366
+ valueKey: {
5367
+ type: String,
5368
+ default: 'value'
5369
+ },
5370
+ labelKey: {
5371
+ type: String,
5372
+ default: 'label'
5373
+ },
5374
+ children: {
5375
+ type: String,
5376
+ default: 'children'
5377
+ },
5378
+ disabled: {
5379
+ type: String,
5380
+ default: 'disabled'
5381
+ },
5382
+ leaf: {
5383
+ type: String,
5384
+ default: 'leaf'
5385
+ }
5386
+ },
5387
+ computed: {
5388
+ model: {
5389
+ get: function get() {
5390
+ return this.value;
5391
+ },
5392
+ set: function set(val) {
5393
+ return val;
5394
+ }
5395
+ },
5396
+ datas: function datas() {
5397
+ return this.data || this.options;
5398
+ },
5399
+ newProps: function newProps() {
5400
+ var props = {
5401
+ expandTrigger: this.trigger,
5402
+ multiple: this.multiple,
5403
+ checkStrictly: this.checkStrictly,
5404
+ emitPath: this.emitPath,
5405
+ lazy: this.lazy,
5406
+ lazyLoad: this.lazyLoad,
5407
+ type: this.type,
5408
+ value: this.valueKey,
5409
+ label: this.labelKey,
5410
+ children: this.children,
5411
+ disabled: this.disabled,
5412
+ leaf: this.leaf
5413
+ };
5414
+ if (this.props) {
5415
+ return mainvue_type_script_lang_js_extends({}, props, this.props);
5416
+ }
5417
+ return props;
5418
+ }
5419
+ },
5420
+ data: function data() {
5421
+ return {};
5422
+ },
5423
+ created: function created() {},
5424
+
5425
+ methods: {},
5426
+ render: function render(h) {
5427
+ var _this = this;
5428
+
5429
+ if (!this.hide) {
5430
+ if (this.readonly) {
5431
+ var value = '';
5432
+ if (this.model) {
5433
+ value = Array.isArray(this.model) ? this.model.map(function (item) {
5434
+ if (Array.isArray(item)) {
5435
+ return item.map(function (ele) {
5436
+ if (typeof ele === 'string') {
5437
+ return ele;
5438
+ } else {
5439
+ return ele[_this.newProps.label];
5440
+ }
5441
+ }).join(_this.separator);
5442
+ } else {
5443
+ if (typeof item === 'string') {
5444
+ return item;
5445
+ } else {
5446
+ return item[_this.newProps.label];
5447
+ }
5448
+ }
5449
+ }).join(this.multiple ? ',' : this.separator) : this.model;
5450
+ }
5451
+ return h('div', {
5452
+ class: ['el-cascader el-input__inner', { 'es-plain': this.plain }]
5453
+ }, [value]);
5454
+ }
5455
+ return h('el-cascader', {
5456
+ attrs: mainvue_type_script_lang_js_extends({}, this.$attrs, {
5457
+ options: this.datas,
5458
+ props: this.newProps,
5459
+ value: this.model
5460
+ }),
5461
+ on: this.$listeners
5462
+ }, [this.$slots.default]);
5463
+ }
5464
+ }
5465
+ });
5466
+ // CONCATENATED MODULE: ./packages/cascader/src/main.vue?vue&type=script&lang=js&
5467
+ /* harmony default export */ var packages_cascader_src_mainvue_type_script_lang_js_ = (cascader_src_mainvue_type_script_lang_js_);
5468
+ // CONCATENATED MODULE: ./packages/cascader/src/main.vue
5469
+ var src_main_render, main_staticRenderFns
5470
+
5471
+
5472
+
5473
+
5474
+ /* normalize component */
5475
+
5476
+ var cascader_src_main_component = normalizeComponent(
5477
+ packages_cascader_src_mainvue_type_script_lang_js_,
5478
+ src_main_render,
5479
+ main_staticRenderFns,
5480
+ false,
5481
+ null,
5482
+ null,
5483
+ null
5484
+
5485
+ )
5486
+
5487
+ /* harmony default export */ var cascader_src_main = (cascader_src_main_component.exports);
5488
+ // CONCATENATED MODULE: ./packages/cascader/index.js
5489
+
5490
+
5491
+ cascader_src_main.install = function (Vue) {
5492
+ return Vue.component(cascader_src_main.name, cascader_src_main);
5493
+ };
5494
+
5495
+ /* harmony default export */ var cascader = (cascader_src_main);
5496
+ // 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&
5497
+ var mainvue_type_template_id_6ffd0b06_render = function () {
5498
+ var _vm = this
5499
+ var _h = _vm.$createElement
5500
+ var _c = _vm._self._c || _h
5501
+ return !_vm.hide
5502
+ ? _c(
5503
+ "div",
5504
+ { staticClass: "es-checkbox-group" },
5505
+ [
5506
+ _vm.readonly
5507
+ ? _c(
5508
+ "div",
5509
+ {
5510
+ staticClass: "es-input__inner",
5511
+ class: { "es-plain": this.plain || _vm.$attrs.text },
5512
+ },
5513
+ [_vm._v("\n " + _vm._s(_vm.labelVal) + "\n ")]
5514
+ )
5515
+ : _c(
5516
+ "el-checkbox-group",
5517
+ _vm._g(
5518
+ _vm._b(
5519
+ {
5520
+ directives: [
5521
+ {
5522
+ name: "show",
5523
+ rawName: "v-show",
5524
+ value: _vm.display,
5525
+ expression: "display",
5526
+ },
5527
+ ],
5528
+ model: {
5529
+ value: _vm.model,
5530
+ callback: function ($$v) {
5531
+ _vm.model = $$v
5532
+ },
5533
+ expression: "model",
5534
+ },
5535
+ },
5536
+ "el-checkbox-group",
5537
+ Object.assign(
5538
+ {},
5539
+ { valueKey: _vm.valKey, labelKey: _vm.label },
5540
+ _vm.$attrs
5541
+ ),
5542
+ false
5543
+ ),
5544
+ _vm.$listeners
5545
+ ),
5546
+ [
5547
+ _vm.genre === "button"
5548
+ ? _vm._l(_vm.results, function (item, index) {
5549
+ return _c(
5550
+ "el-checkbox-button",
5551
+ _vm._b(
5552
+ {
5553
+ key: index,
5554
+ attrs: {
5555
+ label:
5556
+ _vm.isObject || typeof item == "string"
5557
+ ? item
5558
+ : item[_vm.valKey],
5559
+ disabled:
5560
+ typeof item == "string"
5561
+ ? false
5562
+ : item.disabled,
5563
+ },
5564
+ },
5565
+ "el-checkbox-button",
5566
+ _vm.getprops(_vm.$attrs, item),
5567
+ false
5568
+ ),
5569
+ [
5570
+ _vm._v(
5571
+ "\n " +
5572
+ _vm._s(
5573
+ typeof item == "string"
5574
+ ? item
5575
+ : item[_vm.label]
5576
+ ? item[_vm.label]
5577
+ : item.label || item[_vm.valKey]
5578
+ ) +
5579
+ "\n "
5580
+ ),
5581
+ ]
5582
+ )
5583
+ })
5584
+ : _vm._l(_vm.results, function (item, index) {
5585
+ return _c(
5586
+ "el-checkbox",
5587
+ _vm._b(
5588
+ {
5589
+ key: index,
5590
+ attrs: {
5591
+ label:
5592
+ _vm.isObject || typeof item == "string"
5593
+ ? item
5594
+ : item[_vm.valKey],
5595
+ disabled:
5596
+ typeof item == "string"
5597
+ ? false
5598
+ : item.disabled,
5599
+ border: _vm.genre === "border",
5600
+ },
5601
+ },
5602
+ "el-checkbox",
5603
+ _vm.getprops(_vm.$attrs, item),
5604
+ false
5605
+ ),
5606
+ [
5607
+ _vm._v(
5608
+ "\n " +
5609
+ _vm._s(
5610
+ typeof item == "string"
5611
+ ? item
5612
+ : item[_vm.label]
5613
+ ? item[_vm.label]
5614
+ : item.label || item[_vm.valKey]
5615
+ ) +
5616
+ "\n "
5617
+ ),
5618
+ ]
5619
+ )
5620
+ }),
5621
+ ],
5622
+ 2
5623
+ ),
5624
+ ],
5625
+ 1
5626
+ )
5627
+ : _vm._e()
5628
+ }
5629
+ var mainvue_type_template_id_6ffd0b06_staticRenderFns = []
5630
+ mainvue_type_template_id_6ffd0b06_render._withStripped = true
5631
+
5632
+
5633
+ // CONCATENATED MODULE: ./packages/checkbox-group/src/main.vue?vue&type=template&id=6ffd0b06&
5634
+
5635
+ // EXTERNAL MODULE: ./src/config/api.js
5636
+ var api = __webpack_require__(1);
5637
+
5638
+ // CONCATENATED MODULE: ./src/utils/store.js
5639
+ var store_store = {
5640
+ state: {},
5641
+ set: function set(name, value) {
5642
+ this.state[name] = value;
5643
+ },
5644
+ get: function get(name) {
5645
+ return this.state[name];
5646
+ },
5647
+ clear: function clear(name) {
5648
+ this.state[name] = null;
5649
+ },
5650
+ remove: function remove(name) {
5651
+ if (name) {
5652
+ delete this.state[name];
5653
+ } else {
5654
+ this.state = {};
5655
+ }
5656
+ }
5657
+ };
5658
+ window.__store = store_store;
5659
+ /* harmony default export */ var utils_store = (store_store);
5660
+ // EXTERNAL MODULE: external "vue"
5661
+ var external_vue_ = __webpack_require__(12);
5662
+ var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
5663
+
5664
+ // CONCATENATED MODULE: ./src/utils/bus.js
5665
+
5666
+
5667
+ /* harmony default export */ var bus = (new external_vue_default.a());
5668
+ // 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&
5669
+ 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; };
5670
+
5671
+ //
5672
+ //
5673
+ //
5674
+ //
5675
+ //
5676
+ //
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
+
5268
5727
 
5269
- /* harmony default export */ var card_src_main = (card_src_main_component.exports);
5270
- // CONCATENATED MODULE: ./packages/card/index.js
5271
5728
 
5272
5729
 
5273
- card_src_main.install = function (Vue) {
5274
- return Vue.component(card_src_main.name, card_src_main);
5275
- };
5276
5730
 
5277
- /* harmony default export */ var card = (card_src_main);
5278
- // 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&
5279
- 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; };
5280
-
5281
- /* harmony default export */ var cascader_src_mainvue_type_script_lang_js_ = ({
5282
- name: 'EsCascader',
5731
+ /* harmony default export */ var checkbox_group_src_mainvue_type_script_lang_js_ = ({
5732
+ name: 'EsCheckboxGroup',
5283
5733
  inheritAttrs: false,
5734
+ inject: {
5735
+ esForm: {
5736
+ default: ''
5737
+ }
5738
+ },
5284
5739
  props: {
5285
- value: [String, Array],
5286
- data: Array,
5287
- options: Array,
5740
+ method: {
5741
+ type: String,
5742
+ default: 'get'
5743
+ },
5744
+ // 选择项本地数据
5745
+ data: {
5746
+ type: Array,
5747
+ default: function _default() {
5748
+ return [];
5749
+ }
5750
+ },
5751
+ param: {
5752
+ type: Object,
5753
+ default: function _default() {
5754
+ return {};
5755
+ }
5756
+ },
5757
+ // 选择项远程地址
5758
+ url: String,
5288
5759
  hide: {
5289
5760
  type: Boolean,
5290
5761
  default: false
5291
5762
  },
5292
- readonly: Boolean,
5293
- plain: Boolean,
5294
- separator: {
5763
+ // 选择项获取代码表数据(优先级大于url)
5764
+ sysCode: String,
5765
+ // 样式风格 button(按钮样式), border(带有边框)
5766
+ genre: {
5295
5767
  type: String,
5296
- default: '/'
5768
+ default: ''
5297
5769
  },
5298
- props: Object,
5299
- //Props
5300
- trigger: {
5770
+ separator: {
5301
5771
  type: String,
5302
- default: 'click'
5772
+ default: ''
5303
5773
  },
5304
- multiple: Boolean,
5305
- checkStrictly: Boolean,
5306
- emitPath: {
5774
+ display: {
5307
5775
  type: Boolean,
5308
5776
  default: true
5309
5777
  },
5310
- lazy: Boolean,
5311
- lazyLoad: Function,
5312
- type: {
5778
+ valueType: {
5313
5779
  type: String,
5314
- default: 'object'
5780
+ default: 'string',
5781
+ validator: function validator(value) {
5782
+ return ['string', 'object'].includes(value);
5783
+ }
5315
5784
  },
5316
5785
  valueKey: {
5317
5786
  type: String,
5318
5787
  default: 'value'
5319
5788
  },
5789
+ // 指定选择项显示值的键名,data元素是对象类型时必填
5320
5790
  labelKey: {
5321
5791
  type: String,
5322
- default: 'label'
5792
+ default: 'name'
5323
5793
  },
5324
- children: {
5325
- type: String,
5326
- default: 'children'
5794
+ value: [Array, String],
5795
+ readonly: Boolean,
5796
+ plain: Boolean,
5797
+ ajax: {
5798
+ type: Boolean,
5799
+ default: true
5327
5800
  },
5328
- disabled: {
5329
- type: String,
5330
- default: 'disabled'
5801
+ isNoParamRequest: {
5802
+ type: Boolean,
5803
+ default: true
5331
5804
  },
5332
- leaf: {
5333
- type: String,
5334
- default: 'leaf'
5335
- }
5805
+ dataKey: String
5806
+ },
5807
+ data: function data() {
5808
+ return {
5809
+ options: '',
5810
+ canceled: false
5811
+ };
5336
5812
  },
5813
+
5337
5814
  computed: {
5815
+ isObject: function isObject() {
5816
+ if (this.value !== '' && Array.isArray(this.value) && this.value.length > 0 && utils_util["a" /* default */].isObject(this.value[0])) {
5817
+ return true;
5818
+ } else {
5819
+ if (this.valueType === 'object') {
5820
+ return true;
5821
+ } else {
5822
+ return false;
5823
+ }
5824
+ }
5825
+ },
5826
+
5338
5827
  model: {
5339
5828
  get: function get() {
5340
- return this.value;
5829
+ return this.value === undefined ? [] : this.value;
5341
5830
  },
5342
5831
  set: function set(val) {
5343
5832
  return val;
5344
5833
  }
5345
5834
  },
5346
- datas: function datas() {
5347
- return this.data || this.options;
5835
+ label: function label() {
5836
+ if (this.sysCode) {
5837
+ return 'shortName';
5838
+ }
5839
+ return this.labelKey;
5348
5840
  },
5349
- newProps: function newProps() {
5350
- var props = {
5351
- expandTrigger: this.trigger,
5352
- multiple: this.multiple,
5353
- checkStrictly: this.checkStrictly,
5354
- emitPath: this.emitPath,
5355
- lazy: this.lazy,
5356
- lazyLoad: this.lazyLoad,
5357
- type: this.type,
5358
- value: this.valueKey,
5359
- label: this.labelKey,
5360
- children: this.children,
5361
- disabled: this.disabled,
5362
- leaf: this.leaf
5363
- };
5364
- if (this.props) {
5365
- return src_mainvue_type_script_lang_js_extends({}, props, this.props);
5841
+ valKey: function valKey() {
5842
+ if (this.sysCode) {
5843
+ return 'cciValue';
5366
5844
  }
5367
- return props;
5845
+ return this.valueKey;
5846
+ },
5847
+ results: function results() {
5848
+ return this.options ? this.options : this.data;
5849
+ },
5850
+ labelVal: function labelVal() {
5851
+ var _this = this;
5852
+
5853
+ var model = typeof this.model === 'string' ? this.model.split(',') : this.model || [];
5854
+ var label = model.map(function (item) {
5855
+ if (utils_util["a" /* default */].isObject(item)) {
5856
+ return item[_this.label];
5857
+ }
5858
+ if (utils_util["a" /* default */].isObject(_this.results[0])) {
5859
+ var vals = [];
5860
+ _this.results.forEach(function (ele) {
5861
+ if (ele[_this.valKey] === item) {
5862
+ vals.push(ele[_this.label]);
5863
+ }
5864
+ });
5865
+ return vals.join(_this.separator);
5866
+ }
5867
+ return item;
5868
+ });
5869
+ return label.join(this.separator);
5368
5870
  }
5369
5871
  },
5370
- data: function data() {
5371
- return {};
5872
+ watch: {
5873
+ sysCode: {
5874
+ immediate: true,
5875
+ handler: function handler(val, old) {
5876
+ if (val && val != old) {
5877
+ var options = utils_store.get(val);
5878
+ if (options) {
5879
+ this.options = JSON.parse(JSON.stringify(options));
5880
+ } else {
5881
+ this.getData(api["v" /* findSysCode */], val);
5882
+ }
5883
+ }
5884
+ }
5885
+ },
5886
+ url: {
5887
+ immediate: true,
5888
+ handler: function handler(val) {
5889
+ if (val && !this.sysCode) {
5890
+ this.getData(val);
5891
+ }
5892
+ }
5893
+ },
5894
+ param: {
5895
+ deep: true,
5896
+ handler: function handler() {
5897
+ this.url && this.getData(this.url);
5898
+ }
5899
+ }
5372
5900
  },
5373
- created: function created() {},
5901
+ created: function created() {
5902
+ this.bindEventBus();
5903
+ },
5904
+ mounted: function mounted() {},
5374
5905
 
5375
- methods: {},
5376
- render: function render(h) {
5377
- var _this = this;
5906
+ methods: {
5907
+ getData: function getData(url, sysCode) {
5908
+ var _this2 = this;
5378
5909
 
5379
- if (!this.hide) {
5380
- if (this.readonly) {
5381
- var value = '';
5382
- if (this.model) {
5383
- value = Array.isArray(this.model) ? this.model.map(function (item) {
5384
- if (Array.isArray(item)) {
5385
- return item.map(function (ele) {
5386
- if (typeof ele === 'string') {
5387
- return ele;
5388
- } else {
5389
- return ele[_this.newProps.label];
5390
- }
5391
- }).join(_this.separator);
5392
- } else {
5393
- if (typeof item === 'string') {
5394
- return item;
5395
- } else {
5396
- return item[_this.newProps.label];
5397
- }
5398
- }
5399
- }).join(this.multiple ? ',' : this.separator) : this.model;
5910
+ var params = {};
5911
+ if (this.results.length === 0) {
5912
+ params = utils_util["a" /* default */].extend({}, this.param, sysCode ? { sysAppCode: sysCode } : {});
5913
+ } else {
5914
+ return false;
5915
+ }
5916
+ if (!this.ajax || !this.isNoParamRequest && Object.keys(this.param).length == 0) {
5917
+ return false;
5918
+ }
5919
+ this.loading = true;
5920
+ utils_util["a" /* default */].ajax({
5921
+ url: url,
5922
+ method: this.method,
5923
+ params: params,
5924
+ data: params
5925
+ }).then(function (res) {
5926
+ _this2.loading = false;
5927
+ _this2.canceled = false;
5928
+ if (res.rCode === 0) {
5929
+ _this2.options = JSON.parse(JSON.stringify(res.results));
5930
+ if (sysCode || _this2.dataKey) {
5931
+ bus.$emit(sysCode || _this2.dataKey, JSON.parse(JSON.stringify(_this2.options)));
5932
+ utils_store.set(sysCode, JSON.parse(JSON.stringify(res.results)));
5933
+ }
5934
+ } else {
5935
+ var msg = res.msg || '系统错误,请联系管理员!';
5936
+ _this2.$message.error(msg);
5400
5937
  }
5401
- return h('div', {
5402
- class: ['el-cascader el-input__inner', { 'es-plain': this.plain }]
5403
- }, [value]);
5938
+ }).catch(function (err) {
5939
+ _this2.loading = false;
5940
+ if (err.message) {
5941
+ if (err.message !== 'canceled') {
5942
+ _this2.$message.error(err.message);
5943
+ }
5944
+ if (err.message === 'canceled' && sysCode) {
5945
+ _this2.canceled = true;
5946
+ }
5947
+ }
5948
+ });
5949
+ },
5950
+ getprops: function getprops(attrs, res) {
5951
+ if (res.checked && this.model) {
5952
+ this.$emit('input', this.valueType === 'object' ? res : res[this.valKey]);
5404
5953
  }
5405
- return h('el-cascader', {
5406
- attrs: src_mainvue_type_script_lang_js_extends({}, this.$attrs, {
5407
- options: this.datas,
5408
- props: this.newProps,
5409
- value: this.model
5410
- }),
5411
- on: this.$listeners
5412
- }, [this.$slots.default]);
5954
+ return utils_util["a" /* default */].isObject(res) ? src_mainvue_type_script_lang_js_extends({}, attrs, res) : attrs;
5955
+ },
5956
+ setOptions: function setOptions(val) {
5957
+ this.options = val;
5958
+ },
5959
+ bindEventBus: function bindEventBus() {
5960
+ bus.$on(this.sysCode || this.dataKey, this.setOptions);
5961
+ },
5962
+ unbindEventBus: function unbindEventBus() {
5963
+ bus.$off(this.sysCode || this.dataKey, this.setOptions);
5413
5964
  }
5965
+ },
5966
+ beforeDestroy: function beforeDestroy() {
5967
+ this.unbindEventBus();
5414
5968
  }
5415
5969
  });
5416
- // CONCATENATED MODULE: ./packages/cascader/src/main.vue?vue&type=script&lang=js&
5417
- /* harmony default export */ var packages_cascader_src_mainvue_type_script_lang_js_ = (cascader_src_mainvue_type_script_lang_js_);
5418
- // CONCATENATED MODULE: ./packages/cascader/src/main.vue
5419
- var src_main_render, main_staticRenderFns
5970
+ // CONCATENATED MODULE: ./packages/checkbox-group/src/main.vue?vue&type=script&lang=js&
5971
+ /* harmony default export */ var packages_checkbox_group_src_mainvue_type_script_lang_js_ = (checkbox_group_src_mainvue_type_script_lang_js_);
5972
+ // CONCATENATED MODULE: ./packages/checkbox-group/src/main.vue
5973
+
5420
5974
 
5421
5975
 
5422
5976
 
5423
5977
 
5424
5978
  /* normalize component */
5425
5979
 
5426
- var cascader_src_main_component = normalizeComponent(
5427
- packages_cascader_src_mainvue_type_script_lang_js_,
5428
- src_main_render,
5429
- main_staticRenderFns,
5980
+ var checkbox_group_src_main_component = normalizeComponent(
5981
+ packages_checkbox_group_src_mainvue_type_script_lang_js_,
5982
+ mainvue_type_template_id_6ffd0b06_render,
5983
+ mainvue_type_template_id_6ffd0b06_staticRenderFns,
5430
5984
  false,
5431
5985
  null,
5432
5986
  null,
@@ -5434,15 +5988,15 @@ var cascader_src_main_component = normalizeComponent(
5434
5988
 
5435
5989
  )
5436
5990
 
5437
- /* harmony default export */ var cascader_src_main = (cascader_src_main_component.exports);
5438
- // CONCATENATED MODULE: ./packages/cascader/index.js
5991
+ /* harmony default export */ var checkbox_group_src_main = (checkbox_group_src_main_component.exports);
5992
+ // CONCATENATED MODULE: ./packages/checkbox-group/index.js
5439
5993
 
5440
5994
 
5441
- cascader_src_main.install = function (Vue) {
5442
- return Vue.component(cascader_src_main.name, cascader_src_main);
5995
+ checkbox_group_src_main.install = function (Vue) {
5996
+ return Vue.component(checkbox_group_src_main.name, checkbox_group_src_main);
5443
5997
  };
5444
5998
 
5445
- /* harmony default export */ var cascader = (cascader_src_main);
5999
+ /* harmony default export */ var checkbox_group = (checkbox_group_src_main);
5446
6000
  // 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&
5447
6001
  var mainvue_type_template_id_2f0c03c7_render = function () {
5448
6002
  var _vm = this
@@ -5701,8 +6255,8 @@ clients_src_main.install = function (Vue) {
5701
6255
  };
5702
6256
 
5703
6257
  /* harmony default export */ var clients = (clients_src_main);
5704
- // 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=76df6f7a&
5705
- var mainvue_type_template_id_76df6f7a_render = function () {
6258
+ // 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=5745f486&
6259
+ var mainvue_type_template_id_5745f486_render = function () {
5706
6260
  var _vm = this
5707
6261
  var _h = _vm.$createElement
5708
6262
  var _c = _vm._self._c || _h
@@ -5967,11 +6521,11 @@ var mainvue_type_template_id_76df6f7a_render = function () {
5967
6521
  1
5968
6522
  )
5969
6523
  }
5970
- var mainvue_type_template_id_76df6f7a_staticRenderFns = []
5971
- mainvue_type_template_id_76df6f7a_render._withStripped = true
6524
+ var mainvue_type_template_id_5745f486_staticRenderFns = []
6525
+ mainvue_type_template_id_5745f486_render._withStripped = true
5972
6526
 
5973
6527
 
5974
- // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=76df6f7a&
6528
+ // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=5745f486&
5975
6529
 
5976
6530
  // 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&
5977
6531
  var childrenvue_type_template_id_29bcbc72_render = function () {
@@ -8284,7 +8838,11 @@ var mainvue_type_script_lang_js_components, _watch;
8284
8838
  least: Boolean,
8285
8839
  //保留搜索参数
8286
8840
  retainSearh: Boolean,
8287
- infiniteScroll: Boolean
8841
+ infiniteScroll: Boolean,
8842
+ isJoin: {
8843
+ type: Boolean,
8844
+ default: true
8845
+ }
8288
8846
  },
8289
8847
  data: function data() {
8290
8848
  return {
@@ -8317,6 +8875,9 @@ var mainvue_type_script_lang_js_components, _watch;
8317
8875
  },
8318
8876
 
8319
8877
  computed: {
8878
+ params: function params() {
8879
+ return data_table_src_mainvue_type_script_lang_js_extends({}, this.param || {}, this.searchValue || {}, this.advanceValue || {});
8880
+ },
8320
8881
  tag: function tag() {
8321
8882
  return this.form && this.elForm == '' ? 'el-form' : 'div';
8322
8883
  },
@@ -8751,7 +9312,7 @@ var mainvue_type_script_lang_js_components, _watch;
8751
9312
  this.config.pageNum = 1;
8752
9313
  }
8753
9314
  this.tableLoadingText = '加载中...';
8754
- var reqData = utils_util["a" /* default */].extend({}, this.param, this.page ? {
9315
+ var reqData = utils_util["a" /* default */].extend({}, this.params, this.page ? {
8755
9316
  pageNum: this.config.pageNum,
8756
9317
  pageSize: this.config.pageSize
8757
9318
  } : {});
@@ -8761,6 +9322,13 @@ var mainvue_type_script_lang_js_components, _watch;
8761
9322
  if (this.retainSearh) {
8762
9323
  reqData = utils_util["a" /* default */].extend({}, reqData, this.wheres);
8763
9324
  }
9325
+ if (this.isJoin) {
9326
+ for (var i in reqData) {
9327
+ if (Array.isArray(reqData[i])) {
9328
+ reqData[i] = reqData[i].join(',');
9329
+ }
9330
+ }
9331
+ }
8764
9332
  this.tableLoading = true;
8765
9333
  utils_util["a" /* default */].ajax({
8766
9334
  url: this.url,
@@ -9110,53 +9678,41 @@ var mainvue_type_script_lang_js_components, _watch;
9110
9678
  this.$emit('next', res);
9111
9679
  },
9112
9680
  hanleSearch: function hanleSearch(data) {
9113
- this.wheres = data;
9681
+ this.wheres = this.response !== undefined ? this.response({
9682
+ type: 'search',
9683
+ data: JSON.parse(JSON.stringify(data))
9684
+ }) : data;
9114
9685
  if (this.url) {
9115
- if (this.response !== undefined) {
9116
- this.getTableData({
9117
- where: this.response({
9118
- type: 'search',
9119
- data: JSON.parse(JSON.stringify(data))
9120
- })
9121
- });
9122
- } else {
9123
- this.getTableData({ where: this.wheres });
9124
- }
9686
+ this.getTableData();
9125
9687
  }
9126
- this.$emit('search', data);
9688
+ this.$emit('search', this.wheres);
9127
9689
  },
9128
9690
  hanleReset: function hanleReset() {
9129
9691
  if (this.url) {
9130
9692
  this.wheres = {};
9131
9693
  this.getTableData();
9132
9694
  }
9133
- this.$emit('reset');
9695
+ this.$emit('reset', this.params);
9134
9696
  },
9135
9697
  hanleSubmit: function hanleSubmit(_ref) {
9136
9698
  var data = _ref.data,
9137
9699
  show = _ref.show;
9138
9700
 
9139
- this.wheres = data;
9701
+ this.wheres = this.response !== undefined ? this.response({
9702
+ type: 'filter',
9703
+ data: JSON.parse(JSON.stringify(data))
9704
+ }) : data;
9140
9705
  if (this.url) {
9141
- if (this.response !== undefined) {
9142
- this.getTableData({
9143
- where: this.response({
9144
- type: 'filter',
9145
- data: JSON.parse(JSON.stringify(data))
9146
- })
9147
- });
9148
- } else {
9149
- this.getTableData({ where: this.wheres });
9150
- }
9706
+ this.getTableData();
9151
9707
  }
9152
- this.$emit('submit', { data: data, show: show });
9708
+ this.$emit('submit', { data: this.wheres, show: show });
9153
9709
  },
9154
9710
  hanleCancel: function hanleCancel() {
9155
- if (this.url && JSON.stringify(this.wheres) !== '{}') {
9156
- this.wheres = {};
9157
- this.getTableData();
9158
- }
9159
- this.$emit('cancel');
9711
+ // if (this.url && JSON.stringify(this.wheres) !== '{}') {
9712
+ // this.wheres = {};
9713
+ // this.getTableData();
9714
+ // }
9715
+ this.$emit('cancel', this.params);
9160
9716
  },
9161
9717
  handleTabs: function handleTabs(_ref2) {
9162
9718
  var item = _ref2.item,
@@ -9282,8 +9838,8 @@ var mainvue_type_script_lang_js_components, _watch;
9282
9838
 
9283
9839
  var data_table_src_main_component = normalizeComponent(
9284
9840
  packages_data_table_src_mainvue_type_script_lang_js_,
9285
- mainvue_type_template_id_76df6f7a_render,
9286
- mainvue_type_template_id_76df6f7a_staticRenderFns,
9841
+ mainvue_type_template_id_5745f486_render,
9842
+ mainvue_type_template_id_5745f486_staticRenderFns,
9287
9843
  false,
9288
9844
  null,
9289
9845
  null,
@@ -9300,14 +9856,17 @@ data_table_src_main.install = function (Vue) {
9300
9856
  };
9301
9857
 
9302
9858
  /* harmony default export */ var data_table = (data_table_src_main);
9303
- // 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&
9304
- var tablevue_type_template_id_736ff20c_render = function () {
9859
+ // 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&
9860
+ var tablevue_type_template_id_3953d5ce_render = function () {
9305
9861
  var _vm = this
9306
9862
  var _h = _vm.$createElement
9307
9863
  var _c = _vm._self._c || _h
9308
9864
  return _c(
9309
9865
  "div",
9310
- { staticClass: "es-data-form" },
9866
+ {
9867
+ staticClass: "es-data-form",
9868
+ class: { "es-data-form-haspage": _vm.page },
9869
+ },
9311
9870
  [
9312
9871
  _c(
9313
9872
  "el-scrollbar",
@@ -9413,7 +9972,10 @@ var tablevue_type_template_id_736ff20c_render = function () {
9413
9972
  refInFor: true,
9414
9973
  staticClass: "es-data-table-form-handle",
9415
9974
  style: _vm.style,
9416
- attrs: { data: _vm.options[item.field || item.prop] },
9975
+ attrs: {
9976
+ suffix: false,
9977
+ data: _vm.options[item.field || item.prop],
9978
+ },
9417
9979
  on: {
9418
9980
  "hide-menu": function ($event) {
9419
9981
  _vm.selectShow = false
@@ -9487,11 +10049,11 @@ var tablevue_type_template_id_736ff20c_render = function () {
9487
10049
  2
9488
10050
  )
9489
10051
  }
9490
- var tablevue_type_template_id_736ff20c_staticRenderFns = []
9491
- tablevue_type_template_id_736ff20c_render._withStripped = true
10052
+ var tablevue_type_template_id_3953d5ce_staticRenderFns = []
10053
+ tablevue_type_template_id_3953d5ce_render._withStripped = true
9492
10054
 
9493
10055
 
9494
- // CONCATENATED MODULE: ./packages/data-table-form/src/table.vue?vue&type=template&id=736ff20c&
10056
+ // CONCATENATED MODULE: ./packages/data-table-form/src/table.vue?vue&type=template&id=3953d5ce&
9495
10057
 
9496
10058
  // 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&
9497
10059
  var colgroupvue_type_template_id_9b289ebe_render = function () {
@@ -10830,6 +11392,7 @@ var tablevue_type_script_lang_js_components;
10830
11392
  //
10831
11393
  //
10832
11394
  //
11395
+ //
10833
11396
 
10834
11397
 
10835
11398
  //import rules from 'eoss-ui/src/utils/rules.js';
@@ -10846,6 +11409,11 @@ var tablevue_type_script_lang_js_components;
10846
11409
  };
10847
11410
  },
10848
11411
 
11412
+ inject: {
11413
+ esDialog: {
11414
+ default: ''
11415
+ }
11416
+ },
10849
11417
  props: {
10850
11418
  height: String,
10851
11419
  readonly: Boolean,
@@ -10925,8 +11493,15 @@ var tablevue_type_script_lang_js_components;
10925
11493
  }
10926
11494
  },
10927
11495
  setStyle: function setStyle(res, data, field) {
10928
- this.style.left = res ? res.left + 'px' : '';
10929
- this.style.top = res ? res.top + 'px' : '';
11496
+ var left = 0;
11497
+ var top = 0;
11498
+ if (this.esDialog) {
11499
+ var style = this.esDialog.getDialog().getBoundingClientRect();
11500
+ left = style.left;
11501
+ top = style.top;
11502
+ }
11503
+ this.style.left = res ? res.left - left + 'px' : '';
11504
+ this.style.top = res ? res.top - top + 'px' : '';
10930
11505
  this.style.width = res ? res.width + 'px' : '';
10931
11506
  this.target = data;
10932
11507
  this.field = field;
@@ -10968,8 +11543,8 @@ var tablevue_type_script_lang_js_components;
10968
11543
 
10969
11544
  var table_component = normalizeComponent(
10970
11545
  src_tablevue_type_script_lang_js_,
10971
- tablevue_type_template_id_736ff20c_render,
10972
- tablevue_type_template_id_736ff20c_staticRenderFns,
11546
+ tablevue_type_template_id_3953d5ce_render,
11547
+ tablevue_type_template_id_3953d5ce_staticRenderFns,
10973
11548
  false,
10974
11549
  null,
10975
11550
  null,
@@ -10979,6 +11554,8 @@ var table_component = normalizeComponent(
10979
11554
 
10980
11555
  /* harmony default export */ var src_table = (table_component.exports);
10981
11556
  // 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&
11557
+ 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; };
11558
+
10982
11559
  var src_mainvue_type_script_lang_js_components;
10983
11560
 
10984
11561
 
@@ -11115,15 +11692,17 @@ var src_mainvue_type_script_lang_js_components;
11115
11692
  }
11116
11693
  },
11117
11694
  render: function render(h) {
11118
- var _props;
11695
+ var _extends2;
11119
11696
 
11120
11697
  var tag = this.elForm ? 'div' : 'form';
11121
- return h(tag, {}, [h('eo-table', {
11122
- props: (_props = {
11698
+ return h(tag, {
11699
+ class: { 'es-data-form-full': this.full, 'es-data-table-form': 1 }
11700
+ }, [h('eo-table', {
11701
+ props: data_table_form_src_mainvue_type_script_lang_js_extends((_extends2 = {
11123
11702
  cols: this.cols,
11124
11703
  thead: this.theads,
11125
11704
  numbers: this.numbers
11126
- }, _props['cols'] = this.cols, _props.data = this.models, _props.types = this.types, _props.options = this.options, _props.page = this.page, _props),
11705
+ }, _extends2['cols'] = this.cols, _extends2.data = this.models, _extends2.types = this.types, _extends2.options = this.options, _extends2.page = this.page, _extends2), this.$attrs),
11127
11706
  on: this.$listeners
11128
11707
  })]);
11129
11708
  }
@@ -11388,8 +11967,8 @@ date_picker_src_main.install = function (Vue) {
11388
11967
  };
11389
11968
 
11390
11969
  /* harmony default export */ var date_picker = (date_picker_src_main);
11391
- // 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=b1d8aec4&
11392
- var mainvue_type_template_id_b1d8aec4_render = function () {
11970
+ // 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=39199bdc&
11971
+ var mainvue_type_template_id_39199bdc_render = function () {
11393
11972
  var _vm = this
11394
11973
  var _h = _vm.$createElement
11395
11974
  var _c = _vm._self._c || _h
@@ -11898,11 +12477,11 @@ var mainvue_type_template_id_b1d8aec4_render = function () {
11898
12477
  2
11899
12478
  )
11900
12479
  }
11901
- var mainvue_type_template_id_b1d8aec4_staticRenderFns = []
11902
- mainvue_type_template_id_b1d8aec4_render._withStripped = true
12480
+ var mainvue_type_template_id_39199bdc_staticRenderFns = []
12481
+ mainvue_type_template_id_39199bdc_render._withStripped = true
11903
12482
 
11904
12483
 
11905
- // CONCATENATED MODULE: ./packages/dialog/src/main.vue?vue&type=template&id=b1d8aec4&
12484
+ // CONCATENATED MODULE: ./packages/dialog/src/main.vue?vue&type=template&id=39199bdc&
11906
12485
 
11907
12486
  // EXTERNAL MODULE: external "wujie-vue2"
11908
12487
  var external_wujie_vue2_ = __webpack_require__(13);
@@ -12302,15 +12881,8 @@ var mainvue_type_script_lang_js_bus = external_wujie_vue2_default.a.bus;
12302
12881
 
12303
12882
  var availWidth = 0;
12304
12883
  var availHeight = 0;
12305
- var win = void 0;
12306
- try {
12307
- utils_util["a" /* default */].win.top.document;
12308
- win = utils_util["a" /* default */].win.top;
12309
- } catch (error) {
12310
- win = utils_util["a" /* default */].getMyWinTop();
12311
- }
12312
- availWidth = win.document.body.offsetWidth - 260;
12313
- availHeight = win.document.body.offsetHeight - 60;
12884
+ availWidth = utils_util["a" /* default */].win.top.document.body.offsetWidth - 260;
12885
+ availHeight = utils_util["a" /* default */].win.top.document.body.offsetHeight - 60;
12314
12886
  this.sizes.max = { width: availWidth + 'px', height: availHeight + 'px' };
12315
12887
  if (this.size === 'full' || this.width == '100%' && this.height == '100%') {
12316
12888
  this.full = true;
@@ -12450,6 +13022,9 @@ var mainvue_type_script_lang_js_bus = external_wujie_vue2_default.a.bus;
12450
13022
  this.zoom = res;
12451
13023
  this.$set(this.scales, 'zoom', res);
12452
13024
  this.$emit('scale', res);
13025
+ },
13026
+ getDialog: function getDialog() {
13027
+ return this.$refs[this.wujieName].$refs['dialog'];
12453
13028
  }
12454
13029
  }
12455
13030
  });
@@ -12465,8 +13040,8 @@ var mainvue_type_script_lang_js_bus = external_wujie_vue2_default.a.bus;
12465
13040
 
12466
13041
  var dialog_src_main_component = normalizeComponent(
12467
13042
  packages_dialog_src_mainvue_type_script_lang_js_,
12468
- mainvue_type_template_id_b1d8aec4_render,
12469
- mainvue_type_template_id_b1d8aec4_staticRenderFns,
13043
+ mainvue_type_template_id_39199bdc_render,
13044
+ mainvue_type_template_id_39199bdc_staticRenderFns,
12470
13045
  false,
12471
13046
  null,
12472
13047
  null,
@@ -39996,8 +40571,8 @@ flow_src_main.install = function (Vue) {
39996
40571
  };
39997
40572
 
39998
40573
  /* harmony default export */ var packages_flow = (flow_src_main);
39999
- // 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&
40000
- var mainvue_type_template_id_16f6a02a_render = function () {
40574
+ // 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=6cb3ec91&
40575
+ var mainvue_type_template_id_6cb3ec91_render = function () {
40001
40576
  var _vm = this
40002
40577
  var _h = _vm.$createElement
40003
40578
  var _c = _vm._self._c || _h
@@ -41225,11 +41800,11 @@ var mainvue_type_template_id_16f6a02a_render = function () {
41225
41800
  2
41226
41801
  )
41227
41802
  }
41228
- var mainvue_type_template_id_16f6a02a_staticRenderFns = []
41229
- mainvue_type_template_id_16f6a02a_render._withStripped = true
41803
+ var mainvue_type_template_id_6cb3ec91_staticRenderFns = []
41804
+ mainvue_type_template_id_6cb3ec91_render._withStripped = true
41230
41805
 
41231
41806
 
41232
- // CONCATENATED MODULE: ./packages/flow-group/src/main.vue?vue&type=template&id=16f6a02a&
41807
+ // CONCATENATED MODULE: ./packages/flow-group/src/main.vue?vue&type=template&id=6cb3ec91&
41233
41808
 
41234
41809
  // 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&
41235
41810
  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; };
@@ -41807,13 +42382,7 @@ var flow_group_src_mainvue_type_script_lang_js_extends = Object.assign || functi
41807
42382
  var name = item.name;
41808
42383
  var width = 0;
41809
42384
  var height = 0;
41810
- var win = void 0;
41811
- try {
41812
- utils_util["a" /* default */].win.top.document;
41813
- win = utils_util["a" /* default */].win.top;
41814
- } catch (error) {
41815
- win = utils_util["a" /* default */].getMyWinTop();
41816
- }
42385
+ var win = utils_util["a" /* default */].win.top;
41817
42386
  width = win.screen.availWidth - 10;
41818
42387
  height = win.screen.availHeight - 60;
41819
42388
  if (item.url) {
@@ -41875,16 +42444,10 @@ var flow_group_src_mainvue_type_script_lang_js_extends = Object.assign || functi
41875
42444
  handleSuccess: function handleSuccess() {
41876
42445
  if (this.closeDialog && this.esDialog) {
41877
42446
  this.esDialog.handleClose();
41878
- } else if (utils_util["a" /* default */].win.opener) {
41879
- var win = void 0;
41880
- try {
41881
- utils_util["a" /* default */].win.top.document;
41882
- win = utils_util["a" /* default */].win.top;
41883
- } catch (error) {
41884
- win = utils_util["a" /* default */].getMyWinTop();
41885
- }
41886
- win.close();
41887
- win.postMessage({ type: 0 }, '*');
42447
+ } else if (utils_util["a" /* default */].win.top.COOS_SDK) {
42448
+ utils_util["a" /* default */].win.top.COOS_SDK.closePopup && utils_util["a" /* default */].win.top.COOS_SDK.closePopup();
42449
+ } else if (utils_util["a" /* default */].win.top.opener) {
42450
+ utils_util["a" /* default */].win.top.close();
41888
42451
  }
41889
42452
  if (this.events && this.events.success) {
41890
42453
  this.events.success();
@@ -41919,8 +42482,8 @@ var flow_group_src_mainvue_type_script_lang_js_extends = Object.assign || functi
41919
42482
 
41920
42483
  var flow_group_src_main_component = normalizeComponent(
41921
42484
  packages_flow_group_src_mainvue_type_script_lang_js_,
41922
- mainvue_type_template_id_16f6a02a_render,
41923
- mainvue_type_template_id_16f6a02a_staticRenderFns,
42485
+ mainvue_type_template_id_6cb3ec91_render,
42486
+ mainvue_type_template_id_6cb3ec91_staticRenderFns,
41924
42487
  false,
41925
42488
  null,
41926
42489
  null,
@@ -43196,8 +43759,8 @@ flow_list_src_main.install = function (Vue) {
43196
43759
  };
43197
43760
 
43198
43761
  /* harmony default export */ var flow_list = (flow_list_src_main);
43199
- // 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&
43200
- var mainvue_type_template_id_4616b35e_render = function () {
43762
+ // 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=2f21f1e1&
43763
+ var mainvue_type_template_id_2f21f1e1_render = function () {
43201
43764
  var _vm = this
43202
43765
  var _h = _vm.$createElement
43203
43766
  var _c = _vm._self._c || _h
@@ -43280,11 +43843,11 @@ var mainvue_type_template_id_4616b35e_render = function () {
43280
43843
  : _vm._e(),
43281
43844
  ])
43282
43845
  }
43283
- var mainvue_type_template_id_4616b35e_staticRenderFns = []
43284
- mainvue_type_template_id_4616b35e_render._withStripped = true
43846
+ var mainvue_type_template_id_2f21f1e1_staticRenderFns = []
43847
+ mainvue_type_template_id_2f21f1e1_render._withStripped = true
43285
43848
 
43286
43849
 
43287
- // CONCATENATED MODULE: ./packages/handle-user/src/main.vue?vue&type=template&id=4616b35e&
43850
+ // CONCATENATED MODULE: ./packages/handle-user/src/main.vue?vue&type=template&id=2f21f1e1&
43288
43851
 
43289
43852
  // 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&
43290
43853
  //
@@ -43386,13 +43949,7 @@ mainvue_type_template_id_4616b35e_render._withStripped = true
43386
43949
  duration: 500,
43387
43950
  onClose: function onClose() {
43388
43951
  utils_util["a" /* default */].removeStorage(['mainConfig', 'jump']);
43389
- var win = void 0;
43390
- try {
43391
- utils_util["a" /* default */].win.top.document;
43392
- win = utils_util["a" /* default */].win.top;
43393
- } catch (error) {
43394
- win = utils_util["a" /* default */].getMyWinTop();
43395
- }
43952
+ var win = utils_util["a" /* default */].win.top;
43396
43953
  win.location.reload();
43397
43954
  }
43398
43955
  });
@@ -43425,8 +43982,8 @@ mainvue_type_template_id_4616b35e_render._withStripped = true
43425
43982
 
43426
43983
  var handle_user_src_main_component = normalizeComponent(
43427
43984
  packages_handle_user_src_mainvue_type_script_lang_js_,
43428
- mainvue_type_template_id_4616b35e_render,
43429
- mainvue_type_template_id_4616b35e_staticRenderFns,
43985
+ mainvue_type_template_id_2f21f1e1_render,
43986
+ mainvue_type_template_id_2f21f1e1_staticRenderFns,
43430
43987
  false,
43431
43988
  null,
43432
43989
  null,
@@ -52853,8 +53410,8 @@ menu_src_main.install = function (Vue) {
52853
53410
  };
52854
53411
 
52855
53412
  /* harmony default export */ var menu = (menu_src_main);
52856
- // 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&
52857
- var mainvue_type_template_id_74f295ae_render = function () {
53413
+ // 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&
53414
+ var mainvue_type_template_id_5d7ddb00_render = function () {
52858
53415
  var _vm = this
52859
53416
  var _h = _vm.$createElement
52860
53417
  var _c = _vm._self._c || _h
@@ -52992,11 +53549,11 @@ var mainvue_type_template_id_74f295ae_render = function () {
52992
53549
  ]
52993
53550
  )
52994
53551
  }
52995
- var mainvue_type_template_id_74f295ae_staticRenderFns = []
52996
- mainvue_type_template_id_74f295ae_render._withStripped = true
53552
+ var mainvue_type_template_id_5d7ddb00_staticRenderFns = []
53553
+ mainvue_type_template_id_5d7ddb00_render._withStripped = true
52997
53554
 
52998
53555
 
52999
- // CONCATENATED MODULE: ./packages/nav/src/main.vue?vue&type=template&id=74f295ae&
53556
+ // CONCATENATED MODULE: ./packages/nav/src/main.vue?vue&type=template&id=5d7ddb00&
53000
53557
 
53001
53558
  // 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&
53002
53559
  //
@@ -53102,7 +53659,7 @@ mainvue_type_template_id_74f295ae_render._withStripped = true
53102
53659
  return active;
53103
53660
  },
53104
53661
  menuActive: function menuActive() {
53105
- var active = typeof this.defaultActive === 'string' ? this.defaultActive : this.defaultActive.length ? this.defaultActive[this.defaultActive.length - 1] : undefined;
53662
+ var active = typeof this.defaultActive === 'string' ? this.defaultActive : this.defaultActive && this.defaultActive.length ? this.defaultActive[this.defaultActive.length - 1] : undefined;
53106
53663
  return active;
53107
53664
  },
53108
53665
  boxWidth: function boxWidth() {
@@ -53263,8 +53820,8 @@ mainvue_type_template_id_74f295ae_render._withStripped = true
53263
53820
 
53264
53821
  var nav_src_main_component = normalizeComponent(
53265
53822
  packages_nav_src_mainvue_type_script_lang_js_,
53266
- mainvue_type_template_id_74f295ae_render,
53267
- mainvue_type_template_id_74f295ae_staticRenderFns,
53823
+ mainvue_type_template_id_5d7ddb00_render,
53824
+ mainvue_type_template_id_5d7ddb00_staticRenderFns,
53268
53825
  false,
53269
53826
  null,
53270
53827
  null,
@@ -65661,41 +66218,25 @@ function mainvue_type_script_lang_js_objectWithoutProperties(obj, keys) { var ta
65661
66218
  default: 'auto'
65662
66219
  }
65663
66220
  },
65664
- computed: {
65665
- searchData: {
65666
- get: function get() {
65667
- var value = void 0;
65668
- for (var i = 0; i < this.contents.length; i++) {
65669
- if (this.contents[i].type === 'search') {
65670
- value = this.contents[i].value || this.contents[i].searchValue;
65671
- break;
65672
- }
65673
- }
65674
- return value ? value : this.searchValue;
65675
- },
65676
- set: function set(val) {
65677
- return val;
66221
+ watch: {
66222
+ searchValue: {
66223
+ deep: true,
66224
+ handler: function handler(val) {
66225
+ this.searchData = JSON.parse(JSON.stringify(val));
65678
66226
  }
65679
66227
  },
65680
- advancedData: {
65681
- get: function get() {
65682
- var value = void 0;
65683
- for (var i = 0; i < this.contents.length; i++) {
65684
- if (this.contents[i].type === 'filter') {
65685
- value = this.contents[i].value || this.contents[i].searchValue;
65686
- break;
65687
- }
65688
- }
65689
- return value ? value : this.advanceValue;
65690
- },
65691
- set: function set(val) {
65692
- return val;
66228
+ advanceValue: {
66229
+ deep: true,
66230
+ handler: function handler(val) {
66231
+ this.advancedData = JSON.parse(JSON.stringify(val));
65693
66232
  }
65694
66233
  }
65695
66234
  },
65696
66235
  data: function data() {
65697
66236
  return {
65698
- show: false
66237
+ show: false,
66238
+ searchData: JSON.parse(JSON.stringify(this.searchValue)),
66239
+ advancedData: JSON.parse(JSON.stringify(this.advanceValue))
65699
66240
  };
65700
66241
  },
65701
66242
  created: function created() {
@@ -65745,13 +66286,14 @@ function mainvue_type_script_lang_js_objectWithoutProperties(obj, keys) { var ta
65745
66286
  },
65746
66287
  hanleReset: function hanleReset() {
65747
66288
  this.$refs.filter && this.$refs.filter.resetFields();
65748
- this.searchData = {};
65749
- this.advancedData = {};
65750
- this.$emit('reset');
66289
+ this.searchData = JSON.parse(JSON.stringify(this.searchValue));
66290
+ this.advancedData = JSON.parse(JSON.stringify(this.advanceValue));
66291
+ this.$emit('reset', this.searchData);
65751
66292
  },
65752
66293
  hanleCancel: function hanleCancel() {
65753
66294
  this.show = false;
65754
- this.$emit('cancel');
66295
+ this.advancedData = JSON.parse(JSON.stringify(this.advanceValue));
66296
+ this.$emit('cancel', this.advancedData);
65755
66297
  }
65756
66298
  },
65757
66299
  render: function render(h) {
@@ -65888,8 +66430,8 @@ function mainvue_type_script_lang_js_objectWithoutProperties(obj, keys) { var ta
65888
66430
  name: 'show',
65889
66431
  value: _this2.show
65890
66432
  }]
65891
- }, [h('es-form', {
65892
- class: 'es-form-search',
66433
+ }, [_this2.show ? h('es-form', {
66434
+ class: 'es-form-advanced-filter',
65893
66435
  ref: 'filter',
65894
66436
  props: toolbar_src_mainvue_type_script_lang_js_extends({}, other, config || {}, {
65895
66437
  size: 'medium',
@@ -65901,7 +66443,7 @@ function mainvue_type_script_lang_js_objectWithoutProperties(obj, keys) { var ta
65901
66443
  submit: _this2.hanleSubmit,
65902
66444
  reset: _this2.hanleCancel
65903
66445
  }
65904
- }, [])])]);
66446
+ }, []) : ''])]);
65905
66447
  }
65906
66448
  });
65907
66449
  var box = [h('div', {
@@ -71943,7 +72485,8 @@ wxlogin_src_main.install = function (Vue) {
71943
72485
 
71944
72486
 
71945
72487
 
71946
- 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];
72488
+
72489
+ 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];
71947
72490
 
71948
72491
  var install = function install(Vue) {
71949
72492
  var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
@@ -71958,13 +72501,14 @@ if (typeof window !== 'undefined' && window.Vue) {
71958
72501
  }
71959
72502
 
71960
72503
  /* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
71961
- version: '0.5.45',
72504
+ version: '0.5.47',
71962
72505
  install: install,
71963
72506
  Button: packages_button,
71964
72507
  ButtonGroup: button_group,
71965
- CheckboxGroup: checkbox_group,
72508
+ Calendar: calendar,
71966
72509
  Card: card,
71967
72510
  Cascader: cascader,
72511
+ CheckboxGroup: checkbox_group,
71968
72512
  Clients: clients,
71969
72513
  DataTable: data_table,
71970
72514
  DataTableForm: data_table_form,