eoss-ui 0.5.45 → 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 (71) hide show
  1. package/lib/button.js +135 -135
  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 +17 -6
  8. package/lib/date-picker.js +2 -2
  9. package/lib/dialog.js +8 -4
  10. package/lib/enterprise.js +2 -2
  11. package/lib/eoss-ui.common.js +1214 -630
  12. package/lib/error-page.js +2 -2
  13. package/lib/flow-group.js +2 -2
  14. package/lib/flow-list.js +2 -2
  15. package/lib/form.js +215 -231
  16. package/lib/handle-user.js +2 -2
  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/calendar.css +0 -0
  42. package/lib/theme-chalk/cascader.css +1 -0
  43. package/lib/theme-chalk/data-table-form.css +1 -1
  44. package/lib/theme-chalk/index.css +1 -1
  45. package/lib/theme-chalk/toolbar.css +1 -1
  46. package/lib/tips.js +2 -2
  47. package/lib/toolbar.js +17 -33
  48. package/lib/tree-group.js +2 -2
  49. package/lib/tree.js +2 -2
  50. package/lib/wujie.js +2 -2
  51. package/lib/wxlogin.js +2 -2
  52. package/package.json +1 -1
  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 +12 -1
  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 +3 -0
  59. package/packages/nav/src/main.vue +1 -1
  60. package/packages/theme-chalk/lib/calendar.css +0 -0
  61. package/packages/theme-chalk/lib/cascader.css +1 -0
  62. package/packages/theme-chalk/lib/data-table-form.css +1 -1
  63. package/packages/theme-chalk/lib/index.css +1 -1
  64. package/packages/theme-chalk/lib/toolbar.css +1 -1
  65. package/packages/theme-chalk/src/calendar.scss +0 -0
  66. package/packages/theme-chalk/src/cascader.scss +93 -0
  67. package/packages/theme-chalk/src/data-table-form.scss +11 -0
  68. package/packages/theme-chalk/src/index.scss +2 -1
  69. package/packages/theme-chalk/src/toolbar.scss +13 -11
  70. package/packages/toolbar/src/main.vue +34 -48
  71. package/src/index.js +7 -4
@@ -4376,184 +4376,153 @@ src_main.install = function (Vue) {
4376
4376
  };
4377
4377
 
4378
4378
  /* 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 () {
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 () {
4381
4381
  var _vm = this
4382
4382
  var _h = _vm.$createElement
4383
4383
  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
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 "
4428
4416
  ),
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
- ),
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
+ },
4507
4486
  ],
4508
- 1
4509
- )
4510
- : _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
+ ])
4511
4518
  }
4512
- var mainvue_type_template_id_6ffd0b06_staticRenderFns = []
4513
- mainvue_type_template_id_6ffd0b06_render._withStripped = true
4514
-
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);
4520
-
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
4519
+ var mainvue_type_template_id_9b8c6630_staticRenderFns = []
4520
+ mainvue_type_template_id_9b8c6630_render._withStripped = true
4548
4521
 
4549
4522
 
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; };
4523
+ // CONCATENATED MODULE: ./packages/calendar/src/main.vue?vue&type=template&id=9b8c6630&
4553
4524
 
4554
- //
4555
- //
4556
- //
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&
4557
4526
  //
4558
4527
  //
4559
4528
  //
@@ -4607,252 +4576,340 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
4607
4576
  //
4608
4577
  //
4609
4578
 
4610
-
4611
-
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
- },
4579
+ /* harmony default export */ var calendar_src_mainvue_type_script_lang_js_ = ({
4580
+ name: 'esCalendar',
4622
4581
  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: {
4582
+ //显示title
4583
+ showTitle: {
4658
4584
  type: Boolean,
4659
4585
  default: true
4660
4586
  },
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: {
4587
+ //指定日期
4588
+ date: [String, Number],
4589
+ //是否只显示本周
4590
+ brief: Boolean,
4591
+ //是否等指定日期传入后再渲染
4592
+ wait: Boolean,
4593
+ //是否显示收起展开按钮
4594
+ fold: {
4681
4595
  type: Boolean,
4682
4596
  default: true
4683
4597
  },
4684
- isNoParamRequest: {
4685
- type: Boolean,
4686
- 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
+ }
4687
4610
  },
4688
- 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
+ }
4689
4634
  },
4690
4635
  data: function data() {
4691
4636
  return {
4692
- options: '',
4693
- 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
4694
4651
  };
4695
4652
  },
4653
+ mounted: function mounted() {},
4696
4654
 
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])) {
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) {
4700
4692
  return true;
4701
- } else {
4702
- if (this.valueType === 'object') {
4703
- return true;
4704
- } else {
4705
- return false;
4706
- }
4707
4693
  }
4694
+ return this.weekDate.filter(function (item) {
4695
+ return item.year == res.year && item.month == res.month && item.date == res.date;
4696
+ }).length;
4708
4697
  },
4698
+ isSelect: function isSelect(res, target) {
4699
+ var year = res.year,
4700
+ month = res.month,
4701
+ date = res.date;
4709
4702
 
4710
- model: {
4711
- get: function get() {
4712
- return this.value === undefined ? [] : this.value;
4713
- },
4714
- set: function set(val) {
4715
- return val;
4716
- }
4703
+ return target == year + '/' + month + '/' + date;
4717
4704
  },
4718
- label: function label() {
4719
- if (this.sysCode) {
4720
- return 'shortName';
4721
- }
4722
- 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);
4723
4713
  },
4724
- valKey: function valKey() {
4725
- if (this.sysCode) {
4726
- 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');
4727
4721
  }
4728
- return this.valueKey;
4729
4722
  },
4730
- results: function results() {
4731
- 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
+ }
4732
4731
  },
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];
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
+ });
4740
4798
  }
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
- }
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
4747
4813
  });
4748
- return vals.join(_this.separator);
4749
4814
  }
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
- }
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
+ });
4766
4827
  }
4767
4828
  }
4768
- },
4769
- url: {
4770
- immediate: true,
4771
- handler: function handler(val) {
4772
- if (val && !this.sysCode) {
4773
- 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
+ });
4774
4848
  }
4775
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
+ };
4776
4863
  },
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) {
4864
+ getWeekDay: function getWeekDay(val) {
4791
4865
  var _this2 = this;
4792
4866
 
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)));
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;
4816
4881
  }
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;
4882
+ } else if (date > _this2.days) {
4883
+ date -= _this2.days;
4884
+ month += 1;
4885
+ if (month > 12) {
4886
+ month = 1;
4887
+ year += 1;
4829
4888
  }
4830
4889
  }
4890
+ if (_this2.month == month) {
4891
+ flag = false;
4892
+ }
4893
+ return { date: date, month: month, year: year };
4831
4894
  });
4832
- },
4833
- getprops: function getprops(attrs, res) {
4834
- if (res.checked && this.model) {
4835
- this.$emit('input', this.valueType === 'object' ? res : res[this.valKey]);
4895
+ if (flag) {
4896
+ val == 1 ? this.nextMonth() : this.prevMonth();
4836
4897
  }
4837
- return utils_util["a" /* default */].isObject(res) ? mainvue_type_script_lang_js_extends({}, attrs, res) : attrs;
4898
+ return days;
4838
4899
  },
4839
- setOptions: function setOptions(val) {
4840
- this.options = val;
4841
- },
4842
- bindEventBus: function bindEventBus() {
4843
- bus.$on(this.sysCode || this.dataKey, this.setOptions);
4900
+ handleShow: function handleShow() {
4901
+ this.all = true;
4902
+ this.$emit('show', true);
4844
4903
  },
4845
- unbindEventBus: function unbindEventBus() {
4846
- bus.$off(this.sysCode || this.dataKey, this.setOptions);
4904
+ handleHide: function handleHide() {
4905
+ this.all = false;
4906
+ this.$emit('show', false);
4847
4907
  }
4848
- },
4849
- beforeDestroy: function beforeDestroy() {
4850
- this.unbindEventBus();
4851
4908
  }
4852
4909
  });
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
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
4856
4913
 
4857
4914
 
4858
4915
 
@@ -4860,10 +4917,10 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
4860
4917
 
4861
4918
  /* normalize component */
4862
4919
 
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,
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,
4867
4924
  false,
4868
4925
  null,
4869
4926
  null,
@@ -4871,15 +4928,15 @@ var checkbox_group_src_main_component = normalizeComponent(
4871
4928
 
4872
4929
  )
4873
4930
 
4874
- /* harmony default export */ var checkbox_group_src_main = (checkbox_group_src_main_component.exports);
4875
- // 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
4876
4933
 
4877
4934
 
4878
- checkbox_group_src_main.install = function (Vue) {
4879
- 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);
4880
4937
  };
4881
4938
 
4882
- /* harmony default export */ var checkbox_group = (checkbox_group_src_main);
4939
+ /* harmony default export */ var calendar = (calendar_src_main);
4883
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&
4884
4941
  var mainvue_type_template_id_46ef4fcd_render = function () {
4885
4942
  var _vm = this
@@ -5200,233 +5257,737 @@ mainvue_type_template_id_46ef4fcd_render._withStripped = true
5200
5257
  //
5201
5258
  //
5202
5259
 
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
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
+
5251
5734
 
5252
5735
 
5253
5736
 
5254
5737
 
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
- )
5268
-
5269
- /* harmony default export */ var card_src_main = (card_src_main_component.exports);
5270
- // CONCATENATED MODULE: ./packages/card/index.js
5271
-
5272
-
5273
- card_src_main.install = function (Vue) {
5274
- return Vue.component(card_src_main.name, card_src_main);
5275
- };
5276
-
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',
5738
+ /* harmony default export */ var checkbox_group_src_mainvue_type_script_lang_js_ = ({
5739
+ name: 'EsCheckboxGroup',
5283
5740
  inheritAttrs: false,
5741
+ inject: {
5742
+ esForm: {
5743
+ default: ''
5744
+ }
5745
+ },
5284
5746
  props: {
5285
- value: [String, Array],
5286
- data: Array,
5287
- 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,
5288
5766
  hide: {
5289
5767
  type: Boolean,
5290
5768
  default: false
5291
5769
  },
5292
- readonly: Boolean,
5293
- plain: Boolean,
5294
- separator: {
5770
+ // 选择项获取代码表数据(优先级大于url)
5771
+ sysCode: String,
5772
+ // 样式风格 button(按钮样式), border(带有边框)
5773
+ genre: {
5295
5774
  type: String,
5296
- default: '/'
5775
+ default: ''
5297
5776
  },
5298
- props: Object,
5299
- //Props
5300
- trigger: {
5777
+ separator: {
5301
5778
  type: String,
5302
- default: 'click'
5779
+ default: ''
5303
5780
  },
5304
- multiple: Boolean,
5305
- checkStrictly: Boolean,
5306
- emitPath: {
5781
+ display: {
5307
5782
  type: Boolean,
5308
5783
  default: true
5309
5784
  },
5310
- lazy: Boolean,
5311
- lazyLoad: Function,
5312
- type: {
5785
+ valueType: {
5313
5786
  type: String,
5314
- default: 'object'
5787
+ default: 'string',
5788
+ validator: function validator(value) {
5789
+ return ['string', 'object'].includes(value);
5790
+ }
5315
5791
  },
5316
5792
  valueKey: {
5317
5793
  type: String,
5318
5794
  default: 'value'
5319
5795
  },
5796
+ // 指定选择项显示值的键名,data元素是对象类型时必填
5320
5797
  labelKey: {
5321
5798
  type: String,
5322
- default: 'label'
5799
+ default: 'name'
5323
5800
  },
5324
- children: {
5325
- type: String,
5326
- default: 'children'
5801
+ value: [Array, String],
5802
+ readonly: Boolean,
5803
+ plain: Boolean,
5804
+ ajax: {
5805
+ type: Boolean,
5806
+ default: true
5327
5807
  },
5328
- disabled: {
5329
- type: String,
5330
- default: 'disabled'
5808
+ isNoParamRequest: {
5809
+ type: Boolean,
5810
+ default: true
5331
5811
  },
5332
- leaf: {
5333
- type: String,
5334
- default: 'leaf'
5335
- }
5812
+ dataKey: String
5336
5813
  },
5814
+ data: function data() {
5815
+ return {
5816
+ options: '',
5817
+ canceled: false
5818
+ };
5819
+ },
5820
+
5337
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
+
5338
5834
  model: {
5339
5835
  get: function get() {
5340
- return this.value;
5836
+ return this.value === undefined ? [] : this.value;
5341
5837
  },
5342
5838
  set: function set(val) {
5343
5839
  return val;
5344
5840
  }
5345
5841
  },
5346
- datas: function datas() {
5347
- return this.data || this.options;
5842
+ label: function label() {
5843
+ if (this.sysCode) {
5844
+ return 'shortName';
5845
+ }
5846
+ return this.labelKey;
5348
5847
  },
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);
5848
+ valKey: function valKey() {
5849
+ if (this.sysCode) {
5850
+ return 'cciValue';
5366
5851
  }
5367
- 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);
5368
5877
  }
5369
5878
  },
5370
- data: function data() {
5371
- 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
+ }
5372
5907
  },
5373
- created: function created() {},
5908
+ created: function created() {
5909
+ this.bindEventBus();
5910
+ },
5911
+ mounted: function mounted() {},
5374
5912
 
5375
- methods: {},
5376
- render: function render(h) {
5377
- var _this = this;
5913
+ methods: {
5914
+ getData: function getData(url, sysCode) {
5915
+ var _this2 = this;
5378
5916
 
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;
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);
5400
5944
  }
5401
- return h('div', {
5402
- class: ['el-cascader el-input__inner', { 'es-plain': this.plain }]
5403
- }, [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]);
5404
5960
  }
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]);
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);
5413
5971
  }
5972
+ },
5973
+ beforeDestroy: function beforeDestroy() {
5974
+ this.unbindEventBus();
5414
5975
  }
5415
5976
  });
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
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
+
5420
5981
 
5421
5982
 
5422
5983
 
5423
5984
 
5424
5985
  /* normalize component */
5425
5986
 
5426
- var cascader_src_main_component = normalizeComponent(
5427
- packages_cascader_src_mainvue_type_script_lang_js_,
5428
- src_main_render,
5429
- 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,
5430
5991
  false,
5431
5992
  null,
5432
5993
  null,
@@ -5434,15 +5995,15 @@ var cascader_src_main_component = normalizeComponent(
5434
5995
 
5435
5996
  )
5436
5997
 
5437
- /* harmony default export */ var cascader_src_main = (cascader_src_main_component.exports);
5438
- // 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
5439
6000
 
5440
6001
 
5441
- cascader_src_main.install = function (Vue) {
5442
- 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);
5443
6004
  };
5444
6005
 
5445
- /* harmony default export */ var cascader = (cascader_src_main);
6006
+ /* harmony default export */ var checkbox_group = (checkbox_group_src_main);
5446
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&
5447
6008
  var mainvue_type_template_id_2f0c03c7_render = function () {
5448
6009
  var _vm = this
@@ -5701,8 +6262,8 @@ clients_src_main.install = function (Vue) {
5701
6262
  };
5702
6263
 
5703
6264
  /* 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 () {
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 () {
5706
6267
  var _vm = this
5707
6268
  var _h = _vm.$createElement
5708
6269
  var _c = _vm._self._c || _h
@@ -5967,11 +6528,11 @@ var mainvue_type_template_id_76df6f7a_render = function () {
5967
6528
  1
5968
6529
  )
5969
6530
  }
5970
- var mainvue_type_template_id_76df6f7a_staticRenderFns = []
5971
- mainvue_type_template_id_76df6f7a_render._withStripped = true
6531
+ var mainvue_type_template_id_7f4bdc14_staticRenderFns = []
6532
+ mainvue_type_template_id_7f4bdc14_render._withStripped = true
5972
6533
 
5973
6534
 
5974
- // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=76df6f7a&
6535
+ // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=7f4bdc14&
5975
6536
 
5976
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&
5977
6538
  var childrenvue_type_template_id_29bcbc72_render = function () {
@@ -8284,7 +8845,11 @@ var mainvue_type_script_lang_js_components, _watch;
8284
8845
  least: Boolean,
8285
8846
  //保留搜索参数
8286
8847
  retainSearh: Boolean,
8287
- infiniteScroll: Boolean
8848
+ infiniteScroll: Boolean,
8849
+ isJoin: {
8850
+ type: Boolean,
8851
+ default: true
8852
+ }
8288
8853
  },
8289
8854
  data: function data() {
8290
8855
  return {
@@ -8761,6 +9326,13 @@ var mainvue_type_script_lang_js_components, _watch;
8761
9326
  if (this.retainSearh) {
8762
9327
  reqData = utils_util["a" /* default */].extend({}, reqData, this.wheres);
8763
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
+ }
8764
9336
  this.tableLoading = true;
8765
9337
  utils_util["a" /* default */].ajax({
8766
9338
  url: this.url,
@@ -9282,8 +9854,8 @@ var mainvue_type_script_lang_js_components, _watch;
9282
9854
 
9283
9855
  var data_table_src_main_component = normalizeComponent(
9284
9856
  packages_data_table_src_mainvue_type_script_lang_js_,
9285
- mainvue_type_template_id_76df6f7a_render,
9286
- mainvue_type_template_id_76df6f7a_staticRenderFns,
9857
+ mainvue_type_template_id_7f4bdc14_render,
9858
+ mainvue_type_template_id_7f4bdc14_staticRenderFns,
9287
9859
  false,
9288
9860
  null,
9289
9861
  null,
@@ -9300,14 +9872,17 @@ data_table_src_main.install = function (Vue) {
9300
9872
  };
9301
9873
 
9302
9874
  /* 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 () {
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 () {
9305
9877
  var _vm = this
9306
9878
  var _h = _vm.$createElement
9307
9879
  var _c = _vm._self._c || _h
9308
9880
  return _c(
9309
9881
  "div",
9310
- { staticClass: "es-data-form" },
9882
+ {
9883
+ staticClass: "es-data-form",
9884
+ class: { "es-data-form-haspage": _vm.page },
9885
+ },
9311
9886
  [
9312
9887
  _c(
9313
9888
  "el-scrollbar",
@@ -9413,7 +9988,10 @@ var tablevue_type_template_id_736ff20c_render = function () {
9413
9988
  refInFor: true,
9414
9989
  staticClass: "es-data-table-form-handle",
9415
9990
  style: _vm.style,
9416
- attrs: { data: _vm.options[item.field || item.prop] },
9991
+ attrs: {
9992
+ suffix: false,
9993
+ data: _vm.options[item.field || item.prop],
9994
+ },
9417
9995
  on: {
9418
9996
  "hide-menu": function ($event) {
9419
9997
  _vm.selectShow = false
@@ -9487,11 +10065,11 @@ var tablevue_type_template_id_736ff20c_render = function () {
9487
10065
  2
9488
10066
  )
9489
10067
  }
9490
- var tablevue_type_template_id_736ff20c_staticRenderFns = []
9491
- 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
9492
10070
 
9493
10071
 
9494
- // 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&
9495
10073
 
9496
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&
9497
10075
  var colgroupvue_type_template_id_9b289ebe_render = function () {
@@ -10830,6 +11408,7 @@ var tablevue_type_script_lang_js_components;
10830
11408
  //
10831
11409
  //
10832
11410
  //
11411
+ //
10833
11412
 
10834
11413
 
10835
11414
  //import rules from 'eoss-ui/src/utils/rules.js';
@@ -10846,6 +11425,11 @@ var tablevue_type_script_lang_js_components;
10846
11425
  };
10847
11426
  },
10848
11427
 
11428
+ inject: {
11429
+ esDialog: {
11430
+ default: ''
11431
+ }
11432
+ },
10849
11433
  props: {
10850
11434
  height: String,
10851
11435
  readonly: Boolean,
@@ -10925,8 +11509,15 @@ var tablevue_type_script_lang_js_components;
10925
11509
  }
10926
11510
  },
10927
11511
  setStyle: function setStyle(res, data, field) {
10928
- this.style.left = res ? res.left + 'px' : '';
10929
- 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' : '';
10930
11521
  this.style.width = res ? res.width + 'px' : '';
10931
11522
  this.target = data;
10932
11523
  this.field = field;
@@ -10968,8 +11559,8 @@ var tablevue_type_script_lang_js_components;
10968
11559
 
10969
11560
  var table_component = normalizeComponent(
10970
11561
  src_tablevue_type_script_lang_js_,
10971
- tablevue_type_template_id_736ff20c_render,
10972
- tablevue_type_template_id_736ff20c_staticRenderFns,
11562
+ tablevue_type_template_id_3953d5ce_render,
11563
+ tablevue_type_template_id_3953d5ce_staticRenderFns,
10973
11564
  false,
10974
11565
  null,
10975
11566
  null,
@@ -10979,6 +11570,8 @@ var table_component = normalizeComponent(
10979
11570
 
10980
11571
  /* harmony default export */ var src_table = (table_component.exports);
10981
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
+
10982
11575
  var src_mainvue_type_script_lang_js_components;
10983
11576
 
10984
11577
 
@@ -11115,15 +11708,17 @@ var src_mainvue_type_script_lang_js_components;
11115
11708
  }
11116
11709
  },
11117
11710
  render: function render(h) {
11118
- var _props;
11711
+ var _extends2;
11119
11712
 
11120
11713
  var tag = this.elForm ? 'div' : 'form';
11121
- return h(tag, {}, [h('eo-table', {
11122
- 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 = {
11123
11718
  cols: this.cols,
11124
11719
  thead: this.theads,
11125
11720
  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),
11721
+ }, _extends2['cols'] = this.cols, _extends2.data = this.models, _extends2.types = this.types, _extends2.options = this.options, _extends2.page = this.page, _extends2), this.$attrs),
11127
11722
  on: this.$listeners
11128
11723
  })]);
11129
11724
  }
@@ -11388,8 +11983,8 @@ date_picker_src_main.install = function (Vue) {
11388
11983
  };
11389
11984
 
11390
11985
  /* 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 () {
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 () {
11393
11988
  var _vm = this
11394
11989
  var _h = _vm.$createElement
11395
11990
  var _c = _vm._self._c || _h
@@ -11898,11 +12493,11 @@ var mainvue_type_template_id_b1d8aec4_render = function () {
11898
12493
  2
11899
12494
  )
11900
12495
  }
11901
- var mainvue_type_template_id_b1d8aec4_staticRenderFns = []
11902
- mainvue_type_template_id_b1d8aec4_render._withStripped = true
12496
+ var mainvue_type_template_id_2a4878f7_staticRenderFns = []
12497
+ mainvue_type_template_id_2a4878f7_render._withStripped = true
11903
12498
 
11904
12499
 
11905
- // CONCATENATED MODULE: ./packages/dialog/src/main.vue?vue&type=template&id=b1d8aec4&
12500
+ // CONCATENATED MODULE: ./packages/dialog/src/main.vue?vue&type=template&id=2a4878f7&
11906
12501
 
11907
12502
  // EXTERNAL MODULE: external "wujie-vue2"
11908
12503
  var external_wujie_vue2_ = __webpack_require__(13);
@@ -12450,6 +13045,9 @@ var mainvue_type_script_lang_js_bus = external_wujie_vue2_default.a.bus;
12450
13045
  this.zoom = res;
12451
13046
  this.$set(this.scales, 'zoom', res);
12452
13047
  this.$emit('scale', res);
13048
+ },
13049
+ getDialog: function getDialog() {
13050
+ return this.$refs[this.wujieName].$refs['dialog'];
12453
13051
  }
12454
13052
  }
12455
13053
  });
@@ -12465,8 +13063,8 @@ var mainvue_type_script_lang_js_bus = external_wujie_vue2_default.a.bus;
12465
13063
 
12466
13064
  var dialog_src_main_component = normalizeComponent(
12467
13065
  packages_dialog_src_mainvue_type_script_lang_js_,
12468
- mainvue_type_template_id_b1d8aec4_render,
12469
- mainvue_type_template_id_b1d8aec4_staticRenderFns,
13066
+ mainvue_type_template_id_2a4878f7_render,
13067
+ mainvue_type_template_id_2a4878f7_staticRenderFns,
12470
13068
  false,
12471
13069
  null,
12472
13070
  null,
@@ -52853,8 +53451,8 @@ menu_src_main.install = function (Vue) {
52853
53451
  };
52854
53452
 
52855
53453
  /* 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 () {
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 () {
52858
53456
  var _vm = this
52859
53457
  var _h = _vm.$createElement
52860
53458
  var _c = _vm._self._c || _h
@@ -52992,11 +53590,11 @@ var mainvue_type_template_id_74f295ae_render = function () {
52992
53590
  ]
52993
53591
  )
52994
53592
  }
52995
- var mainvue_type_template_id_74f295ae_staticRenderFns = []
52996
- 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
52997
53595
 
52998
53596
 
52999
- // 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&
53000
53598
 
53001
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&
53002
53600
  //
@@ -53102,7 +53700,7 @@ mainvue_type_template_id_74f295ae_render._withStripped = true
53102
53700
  return active;
53103
53701
  },
53104
53702
  menuActive: function menuActive() {
53105
- 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;
53106
53704
  return active;
53107
53705
  },
53108
53706
  boxWidth: function boxWidth() {
@@ -53263,8 +53861,8 @@ mainvue_type_template_id_74f295ae_render._withStripped = true
53263
53861
 
53264
53862
  var nav_src_main_component = normalizeComponent(
53265
53863
  packages_nav_src_mainvue_type_script_lang_js_,
53266
- mainvue_type_template_id_74f295ae_render,
53267
- mainvue_type_template_id_74f295ae_staticRenderFns,
53864
+ mainvue_type_template_id_5d7ddb00_render,
53865
+ mainvue_type_template_id_5d7ddb00_staticRenderFns,
53268
53866
  false,
53269
53867
  null,
53270
53868
  null,
@@ -65661,41 +66259,25 @@ function mainvue_type_script_lang_js_objectWithoutProperties(obj, keys) { var ta
65661
66259
  default: 'auto'
65662
66260
  }
65663
66261
  },
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;
66262
+ watch: {
66263
+ searchValue: {
66264
+ deep: true,
66265
+ handler: function handler(val) {
66266
+ this.searchData = val;
65678
66267
  }
65679
66268
  },
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;
66269
+ advanceValue: {
66270
+ deep: true,
66271
+ handler: function handler(val) {
66272
+ this.advancedData = val;
65693
66273
  }
65694
66274
  }
65695
66275
  },
65696
66276
  data: function data() {
65697
66277
  return {
65698
- show: false
66278
+ show: false,
66279
+ searchData: this.searchValue,
66280
+ advancedData: this.advanceValue
65699
66281
  };
65700
66282
  },
65701
66283
  created: function created() {
@@ -65888,8 +66470,8 @@ function mainvue_type_script_lang_js_objectWithoutProperties(obj, keys) { var ta
65888
66470
  name: 'show',
65889
66471
  value: _this2.show
65890
66472
  }]
65891
- }, [h('es-form', {
65892
- class: 'es-form-search',
66473
+ }, [_this2.show ? h('es-form', {
66474
+ class: 'es-form-advanced-filter',
65893
66475
  ref: 'filter',
65894
66476
  props: toolbar_src_mainvue_type_script_lang_js_extends({}, other, config || {}, {
65895
66477
  size: 'medium',
@@ -65901,7 +66483,7 @@ function mainvue_type_script_lang_js_objectWithoutProperties(obj, keys) { var ta
65901
66483
  submit: _this2.hanleSubmit,
65902
66484
  reset: _this2.hanleCancel
65903
66485
  }
65904
- }, [])])]);
66486
+ }, []) : ''])]);
65905
66487
  }
65906
66488
  });
65907
66489
  var box = [h('div', {
@@ -71943,7 +72525,8 @@ wxlogin_src_main.install = function (Vue) {
71943
72525
 
71944
72526
 
71945
72527
 
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];
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];
71947
72530
 
71948
72531
  var install = function install(Vue) {
71949
72532
  var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
@@ -71958,13 +72541,14 @@ if (typeof window !== 'undefined' && window.Vue) {
71958
72541
  }
71959
72542
 
71960
72543
  /* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
71961
- version: '0.5.45',
72544
+ version: '0.5.46',
71962
72545
  install: install,
71963
72546
  Button: packages_button,
71964
72547
  ButtonGroup: button_group,
71965
- CheckboxGroup: checkbox_group,
72548
+ Calendar: calendar,
71966
72549
  Card: card,
71967
72550
  Cascader: cascader,
72551
+ CheckboxGroup: checkbox_group,
71968
72552
  Clients: clients,
71969
72553
  DataTable: data_table,
71970
72554
  DataTableForm: data_table_form,