eoss-ui 0.5.13 → 0.5.15

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 (69) hide show
  1. package/lib/button-group.js +5 -1
  2. package/lib/button.js +7 -3
  3. package/lib/cascader.js +2 -2
  4. package/lib/checkbox-group.js +44 -22
  5. package/lib/data-table-form.js +8 -3
  6. package/lib/data-table.js +1205 -1517
  7. package/lib/date-picker.js +7 -3
  8. package/lib/dialog.js +14 -10
  9. package/lib/eoss-ui.common.js +1211 -1752
  10. package/lib/flow-group.js +5 -1
  11. package/lib/flow-list.js +7 -3
  12. package/lib/flow.js +12 -7
  13. package/lib/form.js +9 -10
  14. package/lib/handle-user.js +5 -1
  15. package/lib/handler.js +5 -1
  16. package/lib/icons.js +2 -2
  17. package/lib/index.js +1 -1
  18. package/lib/input-number.js +7 -3
  19. package/lib/input.js +7 -3
  20. package/lib/label.js +2 -2
  21. package/lib/layout.js +166 -152
  22. package/lib/login.js +5 -1
  23. package/lib/main.js +11 -6
  24. package/lib/menu.js +2 -2
  25. package/lib/nav.js +14 -10
  26. package/lib/notify.js +2 -2
  27. package/lib/page.js +7 -3
  28. package/lib/pagination.js +2 -2
  29. package/lib/player.js +13 -9
  30. package/lib/qr-code.js +9 -5
  31. package/lib/radio-group.js +48 -22
  32. package/lib/retrial-auth.js +7 -3
  33. package/lib/select-ganged.js +30 -6
  34. package/lib/select.js +46 -19
  35. package/lib/selector-panel.js +11 -6
  36. package/lib/selector.js +9 -5
  37. package/lib/sizer.js +7 -3
  38. package/lib/steps.js +14 -10
  39. package/lib/switch.js +7 -3
  40. package/lib/table-form.js +7 -3
  41. package/lib/tabs-panel.js +2 -2
  42. package/lib/tabs.js +7 -3
  43. package/lib/theme-chalk/data-table.css +1 -1
  44. package/lib/theme-chalk/index.css +1 -1
  45. package/lib/tips.js +7 -3
  46. package/lib/toolbar.js +2 -2
  47. package/lib/tree-group.js +7 -3
  48. package/lib/tree.js +7 -3
  49. package/lib/upload.js +8 -4
  50. package/lib/utils/util.js +5 -1
  51. package/lib/wujie.js +7 -3
  52. package/lib/wxlogin.js +7 -3
  53. package/package.json +2 -2
  54. package/packages/checkbox-group/src/main.vue +20 -30
  55. package/packages/data-table/src/children.vue +4 -8
  56. package/packages/data-table/src/column.vue +524 -575
  57. package/packages/data-table/src/main.vue +95 -119
  58. package/packages/form/src/main.vue +2 -7
  59. package/packages/radio-group/src/main.vue +20 -30
  60. package/packages/select/src/main.vue +20 -29
  61. package/packages/select-ganged/src/main.vue +1 -3
  62. package/packages/theme-chalk/lib/data-table.css +1 -1
  63. package/packages/theme-chalk/lib/index.css +1 -1
  64. package/packages/theme-chalk/src/data-table.scss +2 -1
  65. package/src/index.js +1 -1
  66. package/src/utils/util.js +5 -1
  67. package/packages/data-table/src/column copy.vue +0 -977
  68. package/packages/data-table/src/main copy.vue +0 -1325
  69. package/packages/data-table/src/mixins/table.js +0 -12
@@ -1965,7 +1965,11 @@ var isLogined = function isLogined(_ref8) {
1965
1965
  // const logined = getStorage('logined');
1966
1966
  // eslint-disable-next-line eqeqeq
1967
1967
  if (token || cookie == true || cookie == 1) {
1968
- next && next();
1968
+ if (to.path === '/main' || to.path === '/login') {
1969
+ window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1970
+ } else {
1971
+ next && next();
1972
+ }
1969
1973
  } else {
1970
1974
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1971
1975
  ajax({
@@ -4217,8 +4221,8 @@ src_main.install = function (Vue) {
4217
4221
  };
4218
4222
 
4219
4223
  /* harmony default export */ var button_group = (src_main);
4220
- // 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=667a17b1&
4221
- var mainvue_type_template_id_667a17b1_render = function () {
4224
+ // 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=103e1959&
4225
+ var mainvue_type_template_id_103e1959_render = function () {
4222
4226
  var _vm = this
4223
4227
  var _h = _vm.$createElement
4224
4228
  var _c = _vm._self._c || _h
@@ -4346,11 +4350,11 @@ var mainvue_type_template_id_667a17b1_render = function () {
4346
4350
  )
4347
4351
  : _vm._e()
4348
4352
  }
4349
- var mainvue_type_template_id_667a17b1_staticRenderFns = []
4350
- mainvue_type_template_id_667a17b1_render._withStripped = true
4353
+ var mainvue_type_template_id_103e1959_staticRenderFns = []
4354
+ mainvue_type_template_id_103e1959_render._withStripped = true
4351
4355
 
4352
4356
 
4353
- // CONCATENATED MODULE: ./packages/checkbox-group/src/main.vue?vue&type=template&id=667a17b1&
4357
+ // CONCATENATED MODULE: ./packages/checkbox-group/src/main.vue?vue&type=template&id=103e1959&
4354
4358
 
4355
4359
  // EXTERNAL MODULE: ./src/config/api.js
4356
4360
  var api = __webpack_require__(1);
@@ -4377,6 +4381,14 @@ var store_store = {
4377
4381
  };
4378
4382
  window.__store = store_store;
4379
4383
  /* harmony default export */ var utils_store = (store_store);
4384
+ // EXTERNAL MODULE: external "vue"
4385
+ var external_vue_ = __webpack_require__(12);
4386
+ var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
4387
+
4388
+ // CONCATENATED MODULE: ./src/utils/bus.js
4389
+
4390
+
4391
+ /* harmony default export */ var bus = (new external_vue_default.a());
4380
4392
  // 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&
4381
4393
  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; };
4382
4394
 
@@ -4439,15 +4451,13 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
4439
4451
 
4440
4452
 
4441
4453
 
4454
+
4442
4455
  /* harmony default export */ var checkbox_group_src_mainvue_type_script_lang_js_ = ({
4443
4456
  name: 'EsCheckboxGroup',
4444
4457
  inheritAttrs: false,
4445
4458
  inject: {
4446
4459
  esForm: {
4447
4460
  default: ''
4448
- },
4449
- sysCodes: {
4450
- default: ''
4451
4461
  }
4452
4462
  },
4453
4463
  props: {
@@ -4604,21 +4614,11 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
4604
4614
  handler: function handler() {
4605
4615
  this.url && this.getData(this.url);
4606
4616
  }
4607
- },
4608
- sysCodes: {
4609
- deep: true,
4610
- handler: function handler(val) {
4611
- if (this.canceled && val && (this.sysCode && val[this.sysCode] || this.dataKey && val[this.dataKey])) {
4612
- if (this.parseData) {
4613
- this.options = this.parseData(JSON.parse(JSON.stringify(val[this.sysCode || this.dataKey])));
4614
- } else {
4615
- this.options = JSON.parse(JSON.stringify(val[this.sysCode || this.dataKey]));
4616
- }
4617
- }
4618
- }
4619
4617
  }
4620
4618
  },
4621
- created: function created() {},
4619
+ created: function created() {
4620
+ this.bindEventBus();
4621
+ },
4622
4622
  mounted: function mounted() {},
4623
4623
 
4624
4624
  methods: {
@@ -4646,7 +4646,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
4646
4646
  if (res.rCode === 0) {
4647
4647
  _this2.options = JSON.parse(JSON.stringify(res.results));
4648
4648
  if (sysCode || _this2.dataKey) {
4649
- _this2.esForm && _this2.esForm.setSysCodes(sysCode || _this2.dataKey, JSON.parse(JSON.stringify(_this2.options)));
4649
+ bus.$emit(sysCode || _this2.dataKey, JSON.parse(JSON.stringify(_this2.options)));
4650
4650
  utils_store.set(sysCode, JSON.parse(JSON.stringify(res.results)));
4651
4651
  }
4652
4652
  } else {
@@ -4670,7 +4670,19 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
4670
4670
  this.$emit('input', this.valueType === 'object' ? res : res[this.valKey]);
4671
4671
  }
4672
4672
  return utils_util["a" /* default */].isObject(res) ? mainvue_type_script_lang_js_extends({}, attrs, res) : attrs;
4673
+ },
4674
+ setOptions: function setOptions(val) {
4675
+ this.options = val;
4676
+ },
4677
+ bindEventBus: function bindEventBus() {
4678
+ bus.$on(this.sysCode || this.dataKey, this.setOptions);
4679
+ },
4680
+ unbindEventBus: function unbindEventBus() {
4681
+ bus.$off(this.sysCode || this.dataKey, this.setOptions);
4673
4682
  }
4683
+ },
4684
+ beforeDestroy: function beforeDestroy() {
4685
+ this.unbindEventBus();
4674
4686
  }
4675
4687
  });
4676
4688
  // CONCATENATED MODULE: ./packages/checkbox-group/src/main.vue?vue&type=script&lang=js&
@@ -4685,8 +4697,8 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
4685
4697
 
4686
4698
  var checkbox_group_src_main_component = normalizeComponent(
4687
4699
  packages_checkbox_group_src_mainvue_type_script_lang_js_,
4688
- mainvue_type_template_id_667a17b1_render,
4689
- mainvue_type_template_id_667a17b1_staticRenderFns,
4700
+ mainvue_type_template_id_103e1959_render,
4701
+ mainvue_type_template_id_103e1959_staticRenderFns,
4690
4702
  false,
4691
4703
  null,
4692
4704
  null,
@@ -5521,8 +5533,8 @@ clients_src_main.install = function (Vue) {
5521
5533
  };
5522
5534
 
5523
5535
  /* harmony default export */ var clients = (clients_src_main);
5524
- // 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=1d557e20&
5525
- var mainvue_type_template_id_1d557e20_render = function () {
5536
+ // 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=2d512d7f&
5537
+ var mainvue_type_template_id_2d512d7f_render = function () {
5526
5538
  var _vm = this
5527
5539
  var _h = _vm.$createElement
5528
5540
  var _c = _vm._self._c || _h
@@ -5537,7 +5549,6 @@ var mainvue_type_template_id_1d557e20_render = function () {
5537
5549
  expression: "tableLoading",
5538
5550
  },
5539
5551
  ],
5540
- ref: "esTableForm",
5541
5552
  tag: "component",
5542
5553
  staticClass: "es-data-table",
5543
5554
  attrs: {
@@ -5627,103 +5638,17 @@ var mainvue_type_template_id_1d557e20_render = function () {
5627
5638
  [
5628
5639
  _vm._t("prepend"),
5629
5640
  _vm._t("default"),
5630
- _vm.checkbox
5631
- ? _c(
5632
- "el-table-column",
5633
- _vm._b(
5634
- {},
5635
- "el-table-column",
5636
- {
5637
- type: "selection",
5638
- width: "55",
5639
- align: "center",
5640
- fixed: "left",
5641
- selectable: _vm.selectable,
5642
- reserveSelection: _vm.reserveSelection,
5643
- filterIcon: _vm.getIcon(),
5644
- },
5645
- false
5646
- )
5647
- )
5648
- : _vm._e(),
5649
- _vm.numbers
5650
- ? _c(
5651
- "el-table-column",
5652
- _vm._b(
5653
- {},
5654
- "el-table-column",
5655
- {
5656
- type: "index",
5657
- label: "序号",
5658
- width: "70",
5659
- align: "center",
5660
- fixed: "left",
5661
- index:
5662
- _vm.index === true
5663
- ? (_vm.config.pageNum - 1) *
5664
- _vm.config.pageSize +
5665
- 1
5666
- : _vm.index === false
5667
- ? 1
5668
- : _vm.index,
5669
- filterIcon: _vm.getIcon(),
5670
- },
5671
- false
5672
- )
5673
- )
5674
- : _vm._e(),
5675
- _vm._l(_vm.theads, function (items, indexs) {
5641
+ _vm._l(_vm.theads, function (item, index) {
5676
5642
  return [
5677
- items.hide !== true
5643
+ item.hide !== true
5678
5644
  ? [
5679
- items.type === "index"
5680
- ? _c(
5681
- "el-table-column",
5682
- _vm._b(
5683
- { key: indexs },
5684
- "el-table-column",
5685
- Object.assign(
5686
- {},
5687
- {
5688
- type: "index",
5689
- label: "序号",
5690
- width: "70",
5691
- align: "center",
5692
- fixed: "left",
5693
- index:
5694
- _vm.index === true
5695
- ? (_vm.config.pageNum - 1) *
5696
- _vm.config.pageSize +
5697
- 1
5698
- : _vm.index === false
5699
- ? 1
5700
- : _vm.index,
5701
- filterIcon: _vm.getIcon(),
5702
- },
5703
- items
5704
- ),
5705
- false
5706
- )
5707
- )
5708
- : items.type === "selection"
5645
+ item.type === "index" || item.type === "selection"
5709
5646
  ? _c(
5710
5647
  "el-table-column",
5711
5648
  _vm._b(
5712
- { key: indexs },
5649
+ { key: index },
5713
5650
  "el-table-column",
5714
- Object.assign(
5715
- {},
5716
- {
5717
- type: "selection",
5718
- width: "55",
5719
- align: "center",
5720
- fixed: "left",
5721
- selectable: _vm.selectable,
5722
- reserveSelection: _vm.reserveSelection,
5723
- filterIcon: _vm.getIcon(),
5724
- },
5725
- items
5726
- ),
5651
+ item,
5727
5652
  false
5728
5653
  )
5729
5654
  )
@@ -5731,21 +5656,18 @@ var mainvue_type_template_id_1d557e20_render = function () {
5731
5656
  "children",
5732
5657
  _vm._g(
5733
5658
  _vm._b(
5734
- { key: indexs },
5659
+ { key: item.label || item.title },
5735
5660
  "children",
5736
- {
5737
- name: _vm.name,
5738
- item: items,
5739
- width: items.width,
5740
- index: indexs,
5741
- readonly: _vm.readonly,
5742
- optionData: _vm.optionDatas,
5743
- form: _vm.form,
5744
- minWidth: _vm.minWidth,
5745
- filterIcon: _vm.getIcon(items.fixed),
5746
- children: items.children,
5747
- childHead: items.childHead,
5748
- },
5661
+ Object.assign(
5662
+ {},
5663
+ {
5664
+ name: _vm.name,
5665
+ indexs: index,
5666
+ form: _vm.form,
5667
+ optionData: _vm.optionDatas,
5668
+ },
5669
+ item
5670
+ ),
5749
5671
  false
5750
5672
  ),
5751
5673
  {
@@ -5858,14 +5780,14 @@ var mainvue_type_template_id_1d557e20_render = function () {
5858
5780
  1
5859
5781
  )
5860
5782
  }
5861
- var mainvue_type_template_id_1d557e20_staticRenderFns = []
5862
- mainvue_type_template_id_1d557e20_render._withStripped = true
5783
+ var mainvue_type_template_id_2d512d7f_staticRenderFns = []
5784
+ mainvue_type_template_id_2d512d7f_render._withStripped = true
5863
5785
 
5864
5786
 
5865
- // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=1d557e20&
5787
+ // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=2d512d7f&
5866
5788
 
5867
- // 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=796433ee&
5868
- var childrenvue_type_template_id_796433ee_render = function () {
5789
+ // 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&
5790
+ var childrenvue_type_template_id_29bcbc72_render = function () {
5869
5791
  var _vm = this
5870
5792
  var _h = _vm.$createElement
5871
5793
  var _c = _vm._self._c || _h
@@ -5873,7 +5795,7 @@ var childrenvue_type_template_id_796433ee_render = function () {
5873
5795
  "column",
5874
5796
  _vm._g(_vm._b({}, "column", _vm.$attrs, false), _vm.$listeners),
5875
5797
  [
5876
- _vm.childrens && _vm.childrens.length
5798
+ _vm.childrens.length
5877
5799
  ? [
5878
5800
  _vm._l(_vm.childrens, function (item, index) {
5879
5801
  return [
@@ -5884,13 +5806,8 @@ var childrenvue_type_template_id_796433ee_render = function () {
5884
5806
  _vm._b(
5885
5807
  { key: index },
5886
5808
  "children",
5887
- Object.assign({}, _vm.$attrs, {
5888
- filterIcon: false,
5889
- item: item,
5890
- width: item.width,
5891
- index: index,
5892
- children: item.children,
5893
- childHead: item.childHead,
5809
+ Object.assign({}, _vm.$attrs, item, {
5810
+ indexs: index,
5894
5811
  }),
5895
5812
  false
5896
5813
  ),
@@ -5906,902 +5823,627 @@ var childrenvue_type_template_id_796433ee_render = function () {
5906
5823
  2
5907
5824
  )
5908
5825
  }
5909
- var childrenvue_type_template_id_796433ee_staticRenderFns = []
5910
- childrenvue_type_template_id_796433ee_render._withStripped = true
5826
+ var childrenvue_type_template_id_29bcbc72_staticRenderFns = []
5827
+ childrenvue_type_template_id_29bcbc72_render._withStripped = true
5911
5828
 
5912
5829
 
5913
- // CONCATENATED MODULE: ./packages/data-table/src/children.vue?vue&type=template&id=796433ee&
5830
+ // CONCATENATED MODULE: ./packages/data-table/src/children.vue?vue&type=template&id=29bcbc72&
5914
5831
 
5915
- // 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/column.vue?vue&type=template&id=00ff0a77&
5916
- var columnvue_type_template_id_00ff0a77_render = function () {
5832
+ // 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/column.vue?vue&type=template&id=cd703de2&
5833
+ var columnvue_type_template_id_cd703de2_render = function () {
5917
5834
  var _vm = this
5918
5835
  var _h = _vm.$createElement
5919
5836
  var _c = _vm._self._c || _h
5920
- return _vm.showTemplate(_vm.item)
5921
- ? _c("el-table-column", {
5922
- directives: [
5923
- {
5924
- name: "show",
5925
- rawName: "v-show",
5926
- value: !_vm.item.hide,
5927
- expression: "!item.hide",
5928
- },
5929
- ],
5930
- attrs: {
5931
- "filter-icon": _vm.filterIcon,
5932
- label: _vm.item.title || _vm.item.label,
5933
- "label-key": _vm.item.labelKey,
5934
- "value-key": _vm.item.valueKey,
5935
- prop: _vm.item.field || _vm.item.prop,
5936
- fixed: _vm.item.fixed,
5937
- sortable: _vm.item.sortable || _vm.item.sort,
5938
- "column-key": _vm.item.columnKey,
5939
- width: _vm.width,
5940
- "min-width": _vm.item.minWidth,
5941
- "render-header": _vm.item.renderHeader,
5942
- "sort-method": _vm.item.sortMethod,
5943
- "sort-by": _vm.item.sortBy,
5944
- "sort-orders": _vm.item.sortOrders,
5945
- resizable: _vm.item.resizable,
5946
- formatter: _vm.item.formatter,
5947
- "show-overflow-tooltip": _vm.item.showOverflowTooltip,
5948
- align: _vm.item.align,
5949
- "header-align": _vm.item.headerAlign,
5950
- "class-name":
5951
- (_vm.item.className
5952
- ? _vm.item.className +
5953
- (_vm.item.type ? " es-table-" + _vm.item.type + "-box" : "")
5954
- : _vm.item.type
5955
- ? "es-table-" + _vm.item.type + "-box"
5956
- : "") + (_vm.item.showOverflowTooltip ? " es-text-ellipsis" : ""),
5957
- "label-class-name": _vm.item.required
5958
- ? "es-required" +
5959
- (_vm.item.labelClassName ? " " + _vm.item.labelClassName : "")
5960
- : _vm.item.labelClassName,
5961
- selectable: _vm.item.selectable,
5962
- "reserve-selection": _vm.item.reserveSelection,
5963
- filters: _vm.item.filters,
5964
- "filter-placement": _vm.item.filterPlacement,
5965
- "filter-multiple": _vm.item.filterMultiple,
5966
- "filter-method": _vm.item.filterMethod,
5967
- "filtered-value": _vm.item.filteredValue,
5968
- colspan: _vm.item.colspan,
5969
- rowspan: _vm.item.rowspan,
5970
- total: _vm.item.total,
5971
- },
5837
+ return _c(
5838
+ "el-table-column",
5839
+ _vm._b(
5840
+ {
5972
5841
  scopedSlots: _vm._u([
5973
5842
  {
5974
5843
  key: "default",
5975
5844
  fn: function (scope) {
5976
5845
  return [
5977
- _vm.form && _vm.item.type !== "handle"
5846
+ _vm.isForm && !_vm.isReadOnly(scope)
5978
5847
  ? [
5979
- _vm.isReadOnly(_vm.item, scope)
5980
- ? [
5981
- _vm.item.render
5982
- ? _c("expand-dom", {
5983
- attrs: {
5984
- column: _vm.item,
5985
- row: scope.row,
5986
- render: _vm.item.render,
5987
- index: _vm.index,
5988
- },
5989
- })
5990
- : [
5991
- _vm._v(
5992
- _vm._s(_vm.format(scope.row, _vm.item))
5993
- ),
5994
- ],
5995
- ]
5996
- : [
5997
- _vm.item.type === "slot"
5998
- ? _c("section", [_vm._t(_vm.item.prop)], 2)
5999
- : _c(
6000
- "el-form-item",
5848
+ _c(
5849
+ "el-form-item",
5850
+ {
5851
+ attrs: {
5852
+ name: _vm.name,
5853
+ prop: _vm.field || _vm.prop,
5854
+ rules: _vm.isNotRule(scope) ? [] : _vm.rules,
5855
+ index: scope.$index,
5856
+ },
5857
+ },
5858
+ [
5859
+ _vm.type === "select"
5860
+ ? _c(
5861
+ "es-select",
5862
+ _vm._b(
6001
5863
  {
6002
- attrs: {
6003
- name: _vm.name,
6004
- prop: _vm.item.field,
6005
- rules: _vm.isNotRule(_vm.item, scope)
6006
- ? []
6007
- : _vm.item.rules,
6008
- index: scope.$index,
5864
+ on: {
5865
+ blur: function (event) {
5866
+ _vm.handleBlur({
5867
+ item: _vm.config,
5868
+ event: event,
5869
+ data: scope.row,
5870
+ scope: scope,
5871
+ })
5872
+ },
5873
+ focus: function (event) {
5874
+ _vm.handleFocus({
5875
+ item: _vm.config,
5876
+ event: event,
5877
+ data: scope.row,
5878
+ scope: scope,
5879
+ })
5880
+ },
5881
+ change: function (value) {
5882
+ _vm.handleChange({
5883
+ item: _vm.config,
5884
+ name: _vm.field || _vm.prop,
5885
+ value: value,
5886
+ data: scope.row,
5887
+ scope: scope,
5888
+ })
5889
+ },
5890
+ },
5891
+ model: {
5892
+ value: scope.row[_vm.field || _vm.prop],
5893
+ callback: function ($$v) {
5894
+ _vm.$set(
5895
+ scope.row,
5896
+ _vm.field || _vm.prop,
5897
+ $$v
5898
+ )
5899
+ },
5900
+ expression: "scope.row[field || prop]",
6009
5901
  },
6010
5902
  },
6011
- [
6012
- _vm.item.type === "select"
6013
- ? _c(
6014
- "es-select",
6015
- _vm._b(
6016
- {
6017
- attrs: {
6018
- ajax: false,
6019
- data: _vm.item.data
6020
- ? _vm.item.data
6021
- : _vm.item.optionData
6022
- ? scope.row[
6023
- _vm.item.optionData
6024
- ]
6025
- : _vm.optionDatas[
6026
- _vm.item.field ||
6027
- _vm.item.prop
6028
- ],
6029
- },
6030
- on: {
6031
- blur: function (event) {
6032
- _vm.handleBlur({
6033
- item: _vm.item,
6034
- event: event,
6035
- data: scope.row,
6036
- scope: scope,
6037
- })
6038
- },
6039
- focus: function (event) {
6040
- _vm.handleFocus({
6041
- item: _vm.item,
6042
- event: event,
6043
- data: scope.row,
6044
- scope: scope,
6045
- })
6046
- },
6047
- change: function (value) {
6048
- _vm.handleChange({
6049
- item: _vm.item,
6050
- name:
6051
- _vm.item.field ||
6052
- _vm.item.prop,
6053
- value: value,
6054
- data: scope.row,
6055
- scope: scope,
6056
- })
6057
- },
6058
- },
6059
- model: {
6060
- value:
6061
- scope.row[_vm.item.field],
6062
- callback: function ($$v) {
6063
- _vm.$set(
6064
- scope.row,
6065
- _vm.item.field,
6066
- $$v
6067
- )
6068
- },
6069
- expression:
6070
- "scope.row[item.field]",
6071
- },
6072
- },
6073
- "es-select",
6074
- _vm.exclAttribute({
6075
- data: _vm.item,
6076
- attrs: "width",
6077
- }),
6078
- false
6079
- )
5903
+ "es-select",
5904
+ _vm.formOption,
5905
+ false
5906
+ )
5907
+ )
5908
+ : _vm.type == "cascader"
5909
+ ? _c(
5910
+ "es-cascader",
5911
+ _vm._b(
5912
+ {
5913
+ on: {
5914
+ blur: function (event) {
5915
+ _vm.handleBlur({
5916
+ item: _vm.config,
5917
+ event: event,
5918
+ data: scope.row,
5919
+ scope: scope,
5920
+ })
5921
+ },
5922
+ focus: function (event) {
5923
+ _vm.handleFocus({
5924
+ item: _vm.config,
5925
+ event: event,
5926
+ data: scope.row,
5927
+ scope: scope,
5928
+ })
5929
+ },
5930
+ change: function (value) {
5931
+ _vm.handleChange({
5932
+ item: _vm.config,
5933
+ name: _vm.field || _vm.prop,
5934
+ value: value,
5935
+ data: scope.row,
5936
+ scope: scope,
5937
+ })
5938
+ },
5939
+ },
5940
+ model: {
5941
+ value: scope.row[_vm.field || _vm.prop],
5942
+ callback: function ($$v) {
5943
+ _vm.$set(
5944
+ scope.row,
5945
+ _vm.field || _vm.prop,
5946
+ $$v
6080
5947
  )
6081
- : _vm.item.type == "cascader"
6082
- ? _c(
6083
- "es-cascader",
6084
- _vm._b(
6085
- {
6086
- attrs: {
6087
- data: _vm.item.data
6088
- ? _vm.item.data
6089
- : _vm.item.optionData
6090
- ? scope.row[
6091
- _vm.item.optionData
6092
- ]
6093
- : _vm.optionDatas[
6094
- _vm.item.field ||
6095
- _vm.item.prop
6096
- ],
6097
- },
6098
- on: {
6099
- blur: function (event) {
6100
- _vm.handleBlur({
6101
- item: _vm.item,
6102
- event: event,
6103
- data: scope.row,
6104
- scope: scope,
6105
- })
6106
- },
6107
- focus: function (event) {
6108
- _vm.handleFocus({
6109
- item: _vm.item,
6110
- event: event,
6111
- data: scope.row,
6112
- scope: scope,
6113
- })
6114
- },
6115
- change: function (value) {
6116
- _vm.handleChange({
6117
- item: _vm.item,
6118
- name:
6119
- _vm.item.field ||
6120
- _vm.item.prop,
6121
- value: value,
6122
- data: scope.row,
6123
- scope: scope,
6124
- })
6125
- },
6126
- },
6127
- model: {
6128
- value:
6129
- scope.row[_vm.item.field],
6130
- callback: function ($$v) {
6131
- _vm.$set(
6132
- scope.row,
6133
- _vm.item.field,
6134
- $$v
6135
- )
6136
- },
6137
- expression:
6138
- "scope.row[item.field]",
6139
- },
6140
- },
6141
- "es-cascader",
6142
- _vm.exclAttribute({
6143
- data: _vm.item,
6144
- attrs: "width",
6145
- }),
6146
- false
6147
- )
5948
+ },
5949
+ expression: "scope.row[field || prop]",
5950
+ },
5951
+ },
5952
+ "es-cascader",
5953
+ _vm.formOption,
5954
+ false
5955
+ )
5956
+ )
5957
+ : _vm.type === "ganged"
5958
+ ? _c(
5959
+ "es-select-ganged",
5960
+ _vm._b(
5961
+ {
5962
+ attrs: {
5963
+ data: _vm.init(_vm.option, _vm.config),
5964
+ },
5965
+ on: {
5966
+ change: function (value) {
5967
+ _vm.handleChange({
5968
+ name: _vm.field || _vm.prop,
5969
+ value: value,
5970
+ data: scope.row,
5971
+ item: _vm.item,
5972
+ })
5973
+ },
5974
+ },
5975
+ model: {
5976
+ value: scope.row[_vm.field || _vm.prop],
5977
+ callback: function ($$v) {
5978
+ _vm.$set(
5979
+ scope.row,
5980
+ _vm.field || _vm.prop,
5981
+ $$v
6148
5982
  )
6149
- : _vm.item.type === "ganged"
6150
- ? _c(
6151
- "es-select-ganged",
6152
- _vm._b(
6153
- {
6154
- attrs: {
6155
- data: _vm.init(
6156
- _vm.item.data
6157
- ? _vm.item.data
6158
- : _vm.item.optionData
6159
- ? scope.row[
6160
- _vm.item.optionData
6161
- ]
6162
- : _vm.optionDatas[
6163
- _vm.item.field ||
6164
- _vm.item.prop
6165
- ],
6166
- scope.row[_vm.item.field],
6167
- _vm.item
6168
- ),
6169
- },
6170
- on: {
6171
- change: function (value) {
6172
- _vm.handleChange({
6173
- name:
6174
- _vm.item.field ||
6175
- _vm.item.prop,
6176
- value: value,
6177
- data: scope.row,
6178
- item: _vm.item,
6179
- })
6180
- },
6181
- },
6182
- model: {
6183
- value:
6184
- scope.row[_vm.item.field],
6185
- callback: function ($$v) {
6186
- _vm.$set(
6187
- scope.row,
6188
- _vm.item.field,
6189
- $$v
6190
- )
6191
- },
6192
- expression:
6193
- "scope.row[item.field]",
6194
- },
6195
- },
6196
- "es-select-ganged",
6197
- _vm.exclAttribute({
6198
- data: _vm.item,
6199
- attrs: [
6200
- "width",
6201
- "url",
6202
- "sysCode",
6203
- ],
6204
- }),
6205
- false
6206
- )
5983
+ },
5984
+ expression: "scope.row[field || prop]",
5985
+ },
5986
+ },
5987
+ "es-select-ganged",
5988
+ _vm.exclAttribute({
5989
+ data: _vm.config,
5990
+ attrs: ["width", "url", "sysCode"],
5991
+ }),
5992
+ false
5993
+ )
5994
+ )
5995
+ : _vm.type === "radio"
5996
+ ? _c(
5997
+ "es-radio-group",
5998
+ _vm._b(
5999
+ {
6000
+ on: {
6001
+ change: function (value) {
6002
+ _vm.handleChange({
6003
+ item: _vm.config,
6004
+ name: _vm.field || _vm.prop,
6005
+ value: value,
6006
+ data: scope.row,
6007
+ })
6008
+ },
6009
+ },
6010
+ model: {
6011
+ value: scope.row[_vm.field || _vm.prop],
6012
+ callback: function ($$v) {
6013
+ _vm.$set(
6014
+ scope.row,
6015
+ _vm.field || _vm.prop,
6016
+ $$v
6207
6017
  )
6208
- : _vm.item.type === "radio"
6209
- ? _c(
6210
- "es-radio-group",
6211
- _vm._b(
6212
- {
6213
- attrs: {
6214
- data: _vm.item.data
6215
- ? _vm.item.data
6216
- : _vm.item.optionData
6217
- ? scope.row[
6218
- _vm.item.optionData
6219
- ]
6220
- : _vm.optionDatas[
6221
- _vm.item.field ||
6222
- _vm.item.prop
6223
- ],
6224
- ajax: false,
6225
- },
6226
- on: {
6227
- change: function (value) {
6228
- _vm.handleChange({
6229
- item: _vm.item,
6230
- name:
6231
- _vm.item.field ||
6232
- _vm.item.prop,
6233
- value: value,
6234
- data: scope.row,
6235
- })
6236
- },
6237
- },
6238
- model: {
6239
- value:
6240
- scope.row[_vm.item.field],
6241
- callback: function ($$v) {
6242
- _vm.$set(
6243
- scope.row,
6244
- _vm.item.field,
6245
- $$v
6246
- )
6247
- },
6248
- expression:
6249
- "scope.row[item.field]",
6250
- },
6251
- },
6252
- "es-radio-group",
6253
- _vm.exclAttribute({
6254
- data: _vm.item,
6255
- attrs: "width",
6256
- }),
6257
- false
6258
- )
6018
+ },
6019
+ expression: "scope.row[field || prop]",
6020
+ },
6021
+ },
6022
+ "es-radio-group",
6023
+ _vm.formOption,
6024
+ false
6025
+ )
6026
+ )
6027
+ : _vm.type === "checkbox"
6028
+ ? _c(
6029
+ "es-checkbox-group",
6030
+ _vm._b(
6031
+ {
6032
+ on: {
6033
+ change: function (value) {
6034
+ _vm.handleChange({
6035
+ item: _vm.config,
6036
+ name: _vm.field || _vm.prop,
6037
+ value: value,
6038
+ data: scope.row,
6039
+ })
6040
+ },
6041
+ },
6042
+ model: {
6043
+ value: scope.row[_vm.field || _vm.prop],
6044
+ callback: function ($$v) {
6045
+ _vm.$set(
6046
+ scope.row,
6047
+ _vm.field || _vm.prop,
6048
+ $$v
6259
6049
  )
6260
- : _vm.item.type === "checkbox"
6261
- ? _c(
6262
- "es-checkbox-group",
6263
- _vm._b(
6264
- {
6265
- attrs: {
6266
- data: _vm.item.data
6267
- ? _vm.item.data
6268
- : _vm.item.optionData
6269
- ? scope.row[
6270
- _vm.item.optionData
6271
- ]
6272
- : _vm.optionDatas[
6273
- _vm.item.field ||
6274
- _vm.item.prop
6275
- ],
6276
- ajax: false,
6277
- },
6278
- on: {
6279
- change: function (value) {
6280
- _vm.handleChange({
6281
- item: _vm.item,
6282
- name:
6283
- _vm.item.field ||
6284
- _vm.item.prop,
6285
- value: value,
6286
- data: scope.row,
6287
- })
6288
- },
6289
- },
6290
- model: {
6291
- value:
6292
- scope.row[_vm.item.field],
6293
- callback: function ($$v) {
6294
- _vm.$set(
6295
- scope.row,
6296
- _vm.item.field,
6297
- $$v
6298
- )
6299
- },
6300
- expression:
6301
- "scope.row[item.field]",
6302
- },
6303
- },
6304
- "es-checkbox-group",
6305
- _vm.exclAttribute({
6306
- data: _vm.item,
6307
- attrs: "width",
6308
- }),
6309
- false
6310
- )
6050
+ },
6051
+ expression: "scope.row[field || prop]",
6052
+ },
6053
+ },
6054
+ "es-checkbox-group",
6055
+ _vm.formOption,
6056
+ false
6057
+ )
6058
+ )
6059
+ : _vm.type === "switch"
6060
+ ? _c(
6061
+ "es-switch",
6062
+ _vm._b(
6063
+ {
6064
+ on: {
6065
+ change: function (value) {
6066
+ _vm.handleChange({
6067
+ item: _vm.config,
6068
+ name: _vm.field || _vm.prop,
6069
+ value: value,
6070
+ data: scope.row,
6071
+ })
6072
+ },
6073
+ },
6074
+ model: {
6075
+ value: scope.row[_vm.field || _vm.prop],
6076
+ callback: function ($$v) {
6077
+ _vm.$set(
6078
+ scope.row,
6079
+ _vm.field || _vm.prop,
6080
+ $$v
6311
6081
  )
6312
- : _vm.item.type === "switch"
6313
- ? _c(
6314
- "es-switch",
6315
- _vm._b(
6316
- {
6317
- attrs: {
6318
- data: _vm.item.data
6319
- ? _vm.item.data
6320
- : _vm.item.optionData
6321
- ? scope.row[
6322
- _vm.item.optionData
6323
- ]
6324
- : _vm.optionDatas[
6325
- _vm.item.field ||
6326
- _vm.item.prop
6327
- ],
6328
- },
6329
- on: {
6330
- change: function (value) {
6331
- _vm.handleChange({
6332
- item: _vm.item,
6333
- name:
6334
- _vm.item.field ||
6335
- _vm.item.prop,
6336
- value: value,
6337
- data: scope.row,
6338
- })
6339
- },
6340
- },
6341
- model: {
6342
- value:
6343
- scope.row[_vm.item.field],
6344
- callback: function ($$v) {
6345
- _vm.$set(
6346
- scope.row,
6347
- _vm.item.field,
6348
- $$v
6349
- )
6350
- },
6351
- expression:
6352
- "scope.row[item.field]",
6353
- },
6354
- },
6355
- "es-switch",
6356
- _vm.exclAttribute({
6357
- data: _vm.item,
6358
- attrs: "width",
6359
- }),
6360
- false
6361
- )
6082
+ },
6083
+ expression: "scope.row[field || prop]",
6084
+ },
6085
+ },
6086
+ "es-switch",
6087
+ _vm.formOption,
6088
+ false
6089
+ )
6090
+ )
6091
+ : _vm.config.date ||
6092
+ _vm.type == "date" ||
6093
+ _vm.type == "year" ||
6094
+ _vm.type == "month" ||
6095
+ _vm.type == "date" ||
6096
+ _vm.type == "dates" ||
6097
+ _vm.type == "week" ||
6098
+ _vm.type == "datetime" ||
6099
+ _vm.type == "datetimerange" ||
6100
+ _vm.type == "daterange" ||
6101
+ _vm.type == "monthrange" ||
6102
+ _vm.type == "quarter" ||
6103
+ _vm.type == "halfyear"
6104
+ ? _c(
6105
+ "es-date-picker",
6106
+ _vm._b(
6107
+ {
6108
+ on: {
6109
+ blur: function (event) {
6110
+ _vm.handleBlur({
6111
+ item: _vm.config,
6112
+ event: event,
6113
+ data: scope.row,
6114
+ scope: scope,
6115
+ })
6116
+ },
6117
+ focus: function (event) {
6118
+ _vm.handleFocus({
6119
+ item: _vm.config,
6120
+ event: event,
6121
+ data: scope.row,
6122
+ scope: scope,
6123
+ })
6124
+ },
6125
+ change: function (value) {
6126
+ _vm.handleChange({
6127
+ item: _vm.config,
6128
+ name: _vm.field || _vm.prop,
6129
+ value: value,
6130
+ data: scope.row,
6131
+ scope: scope,
6132
+ })
6133
+ },
6134
+ },
6135
+ model: {
6136
+ value: scope.row[_vm.field || _vm.prop],
6137
+ callback: function ($$v) {
6138
+ _vm.$set(
6139
+ scope.row,
6140
+ _vm.field || _vm.prop,
6141
+ $$v
6362
6142
  )
6363
- : _vm.item.date ||
6364
- _vm.item.type == "date" ||
6365
- _vm.item.type == "year" ||
6366
- _vm.item.type == "month" ||
6367
- _vm.item.type == "date" ||
6368
- _vm.item.type == "dates" ||
6369
- _vm.item.type == "week" ||
6370
- _vm.item.type == "datetime" ||
6371
- _vm.item.type == "datetimerange" ||
6372
- _vm.item.type == "daterange" ||
6373
- _vm.item.type == "monthrange" ||
6374
- _vm.item.type == "quarter" ||
6375
- _vm.item.type == "halfyear"
6376
- ? _c(
6377
- "es-date-picker",
6378
- _vm._b(
6379
- {
6380
- on: {
6381
- blur: function (event) {
6382
- _vm.handleBlur({
6383
- item: _vm.item,
6384
- event: event,
6385
- data: scope.row,
6386
- scope: scope,
6387
- })
6388
- },
6389
- focus: function (event) {
6390
- _vm.handleFocus({
6391
- item: _vm.item,
6392
- event: event,
6393
- data: scope.row,
6394
- scope: scope,
6395
- })
6396
- },
6397
- change: function (value) {
6398
- _vm.handleChange({
6399
- item: _vm.item,
6400
- name:
6401
- _vm.item.field ||
6402
- _vm.item.prop,
6403
- value: value,
6404
- data: scope.row,
6405
- scope: scope,
6406
- })
6407
- },
6408
- },
6409
- model: {
6410
- value:
6411
- scope.row[_vm.item.field],
6412
- callback: function ($$v) {
6413
- _vm.$set(
6414
- scope.row,
6415
- _vm.item.field,
6416
- $$v
6417
- )
6418
- },
6419
- expression:
6420
- "scope.row[item.field]",
6421
- },
6422
- },
6423
- "es-date-picker",
6424
- _vm.exclAttribute({
6425
- data: _vm.item,
6426
- attrs: "width",
6427
- }),
6428
- false
6429
- )
6143
+ },
6144
+ expression: "scope.row[field || prop]",
6145
+ },
6146
+ },
6147
+ "es-date-picker",
6148
+ _vm.formOption,
6149
+ false
6150
+ )
6151
+ )
6152
+ : _vm.type == "number"
6153
+ ? _c(
6154
+ "es-input-number",
6155
+ _vm._b(
6156
+ {
6157
+ on: {
6158
+ blur: function (event) {
6159
+ _vm.handleBlur({
6160
+ item: _vm.config,
6161
+ event: event,
6162
+ data: scope.row,
6163
+ scope: scope,
6164
+ })
6165
+ },
6166
+ focus: function (event) {
6167
+ _vm.handleFocus({
6168
+ item: _vm.config,
6169
+ event: event,
6170
+ data: scope.row,
6171
+ scope: scope,
6172
+ })
6173
+ },
6174
+ change: function (value) {
6175
+ _vm.handleChange({
6176
+ item: _vm.config,
6177
+ name: _vm.field || _vm.prop,
6178
+ value: value,
6179
+ data: scope.row,
6180
+ scope: scope,
6181
+ })
6182
+ },
6183
+ },
6184
+ model: {
6185
+ value: scope.row[_vm.field || _vm.prop],
6186
+ callback: function ($$v) {
6187
+ _vm.$set(
6188
+ scope.row,
6189
+ _vm.field || _vm.prop,
6190
+ $$v
6430
6191
  )
6431
- : _vm.item.type == "number"
6432
- ? _c(
6433
- "es-input-number",
6434
- _vm._b(
6435
- {
6436
- on: {
6437
- blur: function (event) {
6438
- _vm.handleBlur({
6439
- item: _vm.item,
6440
- event: event,
6441
- data: scope.row,
6442
- scope: scope,
6443
- })
6444
- },
6445
- focus: function (event) {
6446
- _vm.handleFocus({
6447
- item: _vm.item,
6448
- event: event,
6449
- data: scope.row,
6450
- scope: scope,
6451
- })
6452
- },
6453
- change: function (value) {
6454
- _vm.handleChange({
6455
- item: _vm.item,
6456
- name:
6457
- _vm.item.field ||
6458
- _vm.item.prop,
6459
- value: value,
6460
- data: scope.row,
6461
- scope: scope,
6462
- })
6463
- },
6464
- },
6465
- model: {
6466
- value:
6467
- scope.row[_vm.item.field],
6468
- callback: function ($$v) {
6469
- _vm.$set(
6470
- scope.row,
6471
- _vm.item.field,
6472
- $$v
6473
- )
6474
- },
6475
- expression:
6476
- "scope.row[item.field]",
6477
- },
6478
- },
6479
- "es-input-number",
6480
- _vm.exclAttribute({
6481
- data: _vm.item,
6482
- attrs: "width",
6483
- }),
6484
- false
6192
+ },
6193
+ expression: "scope.row[field || prop]",
6194
+ },
6195
+ },
6196
+ "es-input-number",
6197
+ _vm.formOption,
6198
+ false
6199
+ )
6200
+ )
6201
+ : _vm.type == "selector"
6202
+ ? _c(
6203
+ "es-selector",
6204
+ _vm._g(
6205
+ _vm._b(
6206
+ {
6207
+ on: {
6208
+ change: function (value) {
6209
+ _vm.handleChange({
6210
+ item: _vm.config,
6211
+ name: _vm.field || _vm.prop,
6212
+ value: value,
6213
+ data: scope.row,
6214
+ })
6215
+ },
6216
+ },
6217
+ model: {
6218
+ value: scope.row[_vm.field || _vm.prop],
6219
+ callback: function ($$v) {
6220
+ _vm.$set(
6221
+ scope.row,
6222
+ _vm.field || _vm.prop,
6223
+ $$v
6485
6224
  )
6486
- )
6487
- : _vm.item.type == "selector"
6488
- ? _c(
6489
- "es-selector",
6490
- _vm._g(
6225
+ },
6226
+ expression: "scope.row[field || prop]",
6227
+ },
6228
+ },
6229
+ "es-selector",
6230
+ _vm.formOption,
6231
+ false
6232
+ ),
6233
+ _vm.exclAttribute({
6234
+ data: _vm.events,
6235
+ attrs: "change",
6236
+ })
6237
+ )
6238
+ )
6239
+ : _vm.type === "text" || _vm.type === "textarea"
6240
+ ? [
6241
+ _vm.config.lazy
6242
+ ? [
6243
+ _vm.type === "text"
6244
+ ? _c(
6245
+ "input",
6491
6246
  _vm._b(
6492
6247
  {
6248
+ directives: [
6249
+ {
6250
+ name: "model",
6251
+ rawName: "v-model.lazy",
6252
+ value: scope.row[_vm.field],
6253
+ expression:
6254
+ "scope.row[field]",
6255
+ modifiers: { lazy: true },
6256
+ },
6257
+ ],
6258
+ staticClass: "el-input__inner",
6259
+ domProps: {
6260
+ value: scope.row[_vm.field],
6261
+ },
6493
6262
  on: {
6494
- change: function (value) {
6495
- _vm.handleChange({
6496
- item: _vm.item,
6497
- name:
6498
- _vm.item.field ||
6499
- _vm.item.prop,
6500
- value: value,
6263
+ blur: function (event) {
6264
+ _vm.handleBlur({
6265
+ item: _vm.config,
6266
+ event: event,
6501
6267
  data: scope.row,
6268
+ scope: scope,
6502
6269
  })
6503
6270
  },
6504
- },
6505
- model: {
6506
- value:
6507
- scope.row[_vm.item.field],
6508
- callback: function ($$v) {
6509
- _vm.$set(
6510
- scope.row,
6511
- _vm.item.field,
6512
- $$v
6513
- )
6271
+ focus: function (event) {
6272
+ _vm.handleFocus({
6273
+ item: _vm.config,
6274
+ event: event,
6275
+ data: scope.row,
6276
+ scope: scope,
6277
+ })
6514
6278
  },
6515
- expression:
6516
- "scope.row[item.field]",
6279
+ change: [
6280
+ function ($event) {
6281
+ _vm.$set(
6282
+ scope.row,
6283
+ _vm.field,
6284
+ $event.target.value
6285
+ )
6286
+ },
6287
+ function (value) {
6288
+ _vm.handleChange({
6289
+ item: _vm.config,
6290
+ name:
6291
+ _vm.field || _vm.prop,
6292
+ value: value,
6293
+ data: scope.row,
6294
+ scope: scope,
6295
+ })
6296
+ },
6297
+ ],
6517
6298
  },
6518
6299
  },
6519
- "es-selector",
6520
- _vm.exclAttribute({
6521
- data: _vm.item,
6522
- attrs: "width",
6523
- }),
6300
+ "input",
6301
+ _vm.formOption,
6524
6302
  false
6525
- ),
6526
- _vm.exclAttribute({
6527
- data: _vm.item.events,
6528
- attrs: "change",
6529
- })
6303
+ )
6530
6304
  )
6531
- )
6532
- : _vm.item.type === "text" ||
6533
- _vm.item.type === "textarea"
6534
- ? [
6535
- _vm.item.lazy
6536
- ? [
6537
- _vm.item.type === "text"
6538
- ? _c(
6539
- "input",
6540
- _vm._b(
6541
- {
6542
- directives: [
6543
- {
6544
- name: "model",
6545
- rawName:
6546
- "v-model.lazy",
6547
- value:
6548
- scope.row[
6549
- _vm.item.field
6550
- ],
6551
- expression:
6552
- "scope.row[item.field]",
6553
- modifiers: {
6554
- lazy: true,
6555
- },
6556
- },
6557
- ],
6558
- staticClass:
6559
- "el-input__inner",
6560
- domProps: {
6561
- value:
6562
- scope.row[
6563
- _vm.item.field
6564
- ],
6565
- },
6566
- on: {
6567
- blur: function (
6568
- event
6569
- ) {
6570
- _vm.handleBlur({
6571
- item: _vm.item,
6572
- event: event,
6573
- data: scope.row,
6574
- scope: scope,
6575
- })
6576
- },
6577
- focus: function (
6578
- event
6579
- ) {
6580
- _vm.handleFocus({
6581
- item: _vm.item,
6582
- event: event,
6583
- data: scope.row,
6584
- scope: scope,
6585
- })
6586
- },
6587
- change: [
6588
- function (
6589
- $event
6590
- ) {
6591
- _vm.$set(
6592
- scope.row,
6593
- _vm.item
6594
- .field,
6595
- $event.target
6596
- .value
6597
- )
6598
- },
6599
- function (value) {
6600
- _vm.handleChange(
6601
- {
6602
- item: _vm.item,
6603
- name:
6604
- _vm.item
6605
- .field ||
6606
- _vm.item
6607
- .prop,
6608
- value:
6609
- value,
6610
- data: scope.row,
6611
- scope:
6612
- scope,
6613
- }
6614
- )
6615
- },
6616
- ],
6617
- },
6618
- },
6619
- "input",
6620
- _vm.exclAttribute({
6621
- data: _vm.item,
6622
- attrs: "width",
6623
- }),
6624
- false
6625
- )
6626
- )
6627
- : _c(
6628
- "textarea",
6629
- _vm._b(
6630
- {
6631
- directives: [
6632
- {
6633
- name: "model",
6634
- rawName:
6635
- "v-model.lazy",
6636
- value:
6637
- scope.row[
6638
- _vm.item.field
6639
- ],
6640
- expression:
6641
- "scope.row[item.field]",
6642
- modifiers: {
6643
- lazy: true,
6644
- },
6645
- },
6646
- ],
6647
- staticClass:
6648
- "el-textarea__inner",
6649
- domProps: {
6650
- value:
6651
- scope.row[
6652
- _vm.item.field
6653
- ],
6654
- },
6655
- on: {
6656
- blur: function (
6657
- event
6658
- ) {
6659
- _vm.handleBlur({
6660
- item: _vm.item,
6661
- event: event,
6662
- data: scope.row,
6663
- scope: scope,
6664
- })
6665
- },
6666
- focus: function (
6667
- event
6668
- ) {
6669
- _vm.handleFocus({
6670
- item: _vm.item,
6671
- event: event,
6672
- data: scope.row,
6673
- scope: scope,
6674
- })
6675
- },
6676
- change: [
6677
- function (
6678
- $event
6679
- ) {
6680
- _vm.$set(
6681
- scope.row,
6682
- _vm.item
6683
- .field,
6684
- $event.target
6685
- .value
6686
- )
6687
- },
6688
- function (value) {
6689
- _vm.handleChange(
6690
- {
6691
- item: _vm.item,
6692
- name:
6693
- _vm.item
6694
- .field ||
6695
- _vm.item
6696
- .prop,
6697
- value:
6698
- value,
6699
- data: scope.row,
6700
- scope:
6701
- scope,
6702
- }
6703
- )
6704
- },
6705
- ],
6706
- },
6707
- },
6708
- "textarea",
6709
- _vm.exclAttribute({
6710
- data: _vm.item,
6711
- attrs: "width",
6712
- }),
6713
- false
6714
- )
6715
- ),
6716
- ]
6717
- : _c(
6718
- "es-input",
6719
- _vm._b(
6305
+ : _c(
6306
+ "textarea",
6307
+ _vm._b(
6308
+ {
6309
+ directives: [
6720
6310
  {
6721
- attrs: { scope: scope },
6722
- on: {
6723
- blur: function (event) {
6724
- _vm.handleBlur({
6725
- item: _vm.item,
6726
- event: event,
6727
- data: scope.row,
6728
- scope: scope,
6729
- })
6730
- },
6731
- focus: function (event) {
6732
- _vm.handleFocus({
6733
- item: _vm.item,
6734
- event: event,
6735
- data: scope.row,
6736
- scope: scope,
6737
- })
6738
- },
6739
- change: function (value) {
6740
- _vm.handleChange({
6741
- item: _vm.item,
6742
- name:
6743
- _vm.item.field ||
6744
- _vm.item.prop,
6745
- value: value,
6746
- data: scope.row,
6747
- scope: scope,
6748
- })
6749
- },
6311
+ name: "model",
6312
+ rawName: "v-model.lazy",
6313
+ value: scope.row[_vm.field],
6314
+ expression:
6315
+ "scope.row[field]",
6316
+ modifiers: { lazy: true },
6317
+ },
6318
+ ],
6319
+ staticClass:
6320
+ "el-textarea__inner",
6321
+ domProps: {
6322
+ value: scope.row[_vm.field],
6323
+ },
6324
+ on: {
6325
+ blur: function (event) {
6326
+ _vm.handleBlur({
6327
+ item: _vm.config,
6328
+ event: event,
6329
+ data: scope.row,
6330
+ scope: scope,
6331
+ })
6332
+ },
6333
+ focus: function (event) {
6334
+ _vm.handleFocus({
6335
+ item: _vm.config,
6336
+ event: event,
6337
+ data: scope.row,
6338
+ scope: scope,
6339
+ })
6340
+ },
6341
+ change: [
6342
+ function ($event) {
6343
+ _vm.$set(
6344
+ scope.row,
6345
+ _vm.field,
6346
+ $event.target.value
6347
+ )
6750
6348
  },
6751
- model: {
6752
- value:
6753
- scope.row[
6754
- _vm.item.field
6755
- ],
6756
- callback: function ($$v) {
6757
- _vm.$set(
6758
- scope.row,
6759
- _vm.item.field,
6760
- $$v
6761
- )
6762
- },
6763
- expression:
6764
- "scope.row[item.field]",
6349
+ function (value) {
6350
+ _vm.handleChange({
6351
+ item: _vm.config,
6352
+ name:
6353
+ _vm.field || _vm.prop,
6354
+ value: value,
6355
+ data: scope.row,
6356
+ scope: scope,
6357
+ })
6765
6358
  },
6766
- },
6767
- "es-input",
6768
- _vm.exclAttribute({
6769
- data: _vm.item,
6770
- attrs: "width",
6771
- }),
6772
- false
6773
- )
6774
- ),
6775
- ]
6776
- : _vm._e(),
6777
- ],
6778
- 2
6779
- ),
6780
- ],
6359
+ ],
6360
+ },
6361
+ },
6362
+ "textarea",
6363
+ _vm.formOption,
6364
+ false
6365
+ )
6366
+ ),
6367
+ ]
6368
+ : _c(
6369
+ "es-input",
6370
+ _vm._b(
6371
+ {
6372
+ attrs: { scope: scope },
6373
+ on: {
6374
+ blur: function (event) {
6375
+ _vm.handleBlur({
6376
+ item: _vm.config,
6377
+ event: event,
6378
+ data: scope.row,
6379
+ scope: scope,
6380
+ })
6381
+ },
6382
+ focus: function (event) {
6383
+ _vm.handleFocus({
6384
+ item: _vm.config,
6385
+ event: event,
6386
+ data: scope.row,
6387
+ scope: scope,
6388
+ })
6389
+ },
6390
+ change: function (value) {
6391
+ _vm.handleChange({
6392
+ item: _vm.config,
6393
+ name: _vm.field || _vm.prop,
6394
+ value: value,
6395
+ data: scope.row,
6396
+ scope: scope,
6397
+ })
6398
+ },
6399
+ },
6400
+ model: {
6401
+ value:
6402
+ scope.row[_vm.field || _vm.prop],
6403
+ callback: function ($$v) {
6404
+ _vm.$set(
6405
+ scope.row,
6406
+ _vm.field || _vm.prop,
6407
+ $$v
6408
+ )
6409
+ },
6410
+ expression:
6411
+ "scope.row[field || prop]",
6412
+ },
6413
+ },
6414
+ "es-input",
6415
+ _vm.formOption,
6416
+ false
6417
+ )
6418
+ ),
6419
+ ]
6420
+ : _vm._e(),
6421
+ ],
6422
+ 2
6423
+ ),
6781
6424
  ]
6782
- : _vm._e(),
6783
- _vm.item.type === "handle" && !scope.row.hideHandle
6425
+ : _vm.type === "handle" && !scope.row.hideHandle
6784
6426
  ? _c(
6785
6427
  "es-button-group",
6786
6428
  _vm._b(
6787
6429
  {
6788
6430
  attrs: {
6789
6431
  stop: "",
6790
- contents: _vm.item.contents || _vm.item.events,
6432
+ contents: _vm.contents || _vm.events,
6791
6433
  data: scope.row,
6792
6434
  },
6793
6435
  on: { handleClick: _vm.handleClick },
6794
6436
  model: {
6795
- value: _vm.width,
6437
+ value: _vm.btnWidth,
6796
6438
  callback: function ($$v) {
6797
- _vm.width = $$v
6439
+ _vm.btnWidth = $$v
6798
6440
  },
6799
- expression: "width",
6441
+ expression: "btnWidth",
6800
6442
  },
6801
6443
  },
6802
6444
  "es-button-group",
6803
6445
  _vm.exclAttribute({
6804
- data: _vm.item,
6446
+ data: _vm.config,
6805
6447
  attrs: [
6806
6448
  "contents",
6807
6449
  "events",
@@ -6814,117 +6456,65 @@ var columnvue_type_template_id_00ff0a77_render = function () {
6814
6456
  false
6815
6457
  )
6816
6458
  )
6817
- : _vm._e(),
6459
+ : _vm.render
6460
+ ? _c("expand-dom", {
6461
+ attrs: {
6462
+ column: _vm.config,
6463
+ row: scope.row,
6464
+ render: _vm.render,
6465
+ index: _vm.indexs,
6466
+ },
6467
+ })
6468
+ : _vm.dateFormat
6469
+ ? [
6470
+ _vm._v(
6471
+ "\n " +
6472
+ _vm._s(
6473
+ _vm.formatDate(
6474
+ scope.row[_vm.field || _vm.prop],
6475
+ _vm.dateFormat
6476
+ )
6477
+ ) +
6478
+ "\n "
6479
+ ),
6480
+ ]
6481
+ : _c(
6482
+ "span",
6483
+ {
6484
+ style: _vm.styles
6485
+ ? _vm.styles[scope.row[_vm.prop]]
6486
+ : {},
6487
+ },
6488
+ [_vm._v(_vm._s(_vm.format(scope.row)))]
6489
+ ),
6818
6490
  ]
6819
6491
  },
6820
6492
  },
6821
6493
  ]),
6822
- })
6823
- : _c(
6824
- "el-table-column",
6825
- {
6826
- directives: [
6827
- {
6828
- name: "show",
6829
- rawName: "v-show",
6830
- value: !_vm.item.hide,
6831
- expression: "!item.hide",
6832
- },
6833
- ],
6834
- key: _vm.index,
6835
- attrs: {
6836
- "filter-icon": _vm.filterIcon,
6837
- label: _vm.item.title || _vm.item.label,
6838
- "label-key": _vm.item.labelKey,
6839
- "value-key": _vm.item.valueKey,
6840
- prop: _vm.item.field || _vm.item.prop,
6841
- fixed: _vm.item.fixed,
6842
- sortable: _vm.item.sortable || _vm.item.sort,
6843
- index: _vm.item.index,
6844
- "column-key": _vm.item.columnKey,
6845
- width: _vm.item.width,
6846
- "min-width": _vm.item.minWidth,
6847
- "render-header": _vm.item.renderHeader,
6848
- "sort-method": _vm.item.sortMethod,
6849
- "sort-by": _vm.item.sortBy,
6850
- "sort-orders": _vm.item.sortOrders,
6851
- resizable: _vm.item.resizable,
6852
- formatter: _vm.item.formatter,
6853
- "show-overflow-tooltip": _vm.item.showOverflowTooltip,
6854
- align: _vm.item.align,
6855
- "header-align": _vm.item.headerAlign,
6856
- "class-name": _vm.item.className,
6857
- "label-class-name": _vm.item.labelClassName,
6858
- selectable: _vm.item.selectable,
6859
- "reserve-selection": _vm.item.reserveSelection,
6860
- filters: _vm.item.filters,
6861
- "filter-placement": _vm.item.filterPlacement,
6862
- "filter-multiple": _vm.item.filterMultiple,
6863
- "filter-method": _vm.item.filterMethod,
6864
- "filtered-value": _vm.item.filteredValue,
6865
- colspan: _vm.item.colspan,
6866
- rowspan: _vm.item.rowspan,
6867
- total: _vm.item.total,
6868
- },
6869
- scopedSlots: _vm._u([
6870
- {
6871
- key: "default",
6872
- fn: function (scope) {
6873
- return [
6874
- _vm.item.render
6875
- ? _c("expand-dom", {
6876
- attrs: {
6877
- column: _vm.item,
6878
- row: scope.row,
6879
- render: _vm.item.render,
6880
- index: _vm.index,
6881
- },
6882
- })
6883
- : [
6884
- _vm._v(
6885
- _vm._s(
6886
- _vm.item.formatDate
6887
- ? _vm.formatDate(
6888
- scope.row[_vm.item.field || _vm.item.prop],
6889
- _vm.item.formatDate
6890
- )
6891
- : _vm.format(scope.row, _vm.item)
6892
- )
6893
- ),
6894
- ],
6895
- ]
6896
- },
6897
- },
6898
- ]),
6899
- },
6900
- [_vm._t("default")],
6901
- 2
6902
- )
6494
+ },
6495
+ "el-table-column",
6496
+ _vm.config,
6497
+ false
6498
+ ),
6499
+ [_vm._t("default")],
6500
+ 2
6501
+ )
6903
6502
  }
6904
- var columnvue_type_template_id_00ff0a77_staticRenderFns = []
6905
- columnvue_type_template_id_00ff0a77_render._withStripped = true
6503
+ var columnvue_type_template_id_cd703de2_staticRenderFns = []
6504
+ columnvue_type_template_id_cd703de2_render._withStripped = true
6906
6505
 
6907
6506
 
6908
- // CONCATENATED MODULE: ./packages/data-table/src/column.vue?vue&type=template&id=00ff0a77&
6507
+ // CONCATENATED MODULE: ./packages/data-table/src/column.vue?vue&type=template&id=cd703de2&
6909
6508
 
6910
6509
  // EXTERNAL MODULE: external "babel-runtime/regenerator"
6911
6510
  var regenerator_ = __webpack_require__(2);
6912
6511
  var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator_);
6913
6512
 
6914
- // CONCATENATED MODULE: ./packages/data-table/src/mixins/table.js
6915
- /* harmony default export */ var mixins_table = ({
6916
- methods: {
6917
- showTemplate: function showTemplate(item) {
6918
- if (item.type) {
6919
- item.type.toLowerCase();
6920
- }
6921
- return this.form && ['text', 'textarea', 'checkbox', 'radio', 'select', 'handle', 'date', 'year', 'month', 'date', 'dates', 'week', 'datetime', 'datetimerange', 'daterange', 'monthrange', 'quarter', 'halfyear', 'switch', 'selector', 'ganged', 'number'].indexOf(item.type) > -1 || ['space', 'slot', 'handle', 'template'].indexOf(item.type) > -1;
6922
- }
6923
- }
6924
- });
6925
6513
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/column.vue?vue&type=script&lang=js&
6926
6514
 
6927
6515
 
6516
+ var columnvue_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; };
6517
+
6928
6518
  function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
6929
6519
 
6930
6520
  //
@@ -7333,158 +6923,6 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
7333
6923
  //
7334
6924
  //
7335
6925
  //
7336
- //
7337
- //
7338
- //
7339
- //
7340
- //
7341
- //
7342
- //
7343
- //
7344
- //
7345
- //
7346
- //
7347
- //
7348
- //
7349
- //
7350
- //
7351
- //
7352
- //
7353
- //
7354
- //
7355
- //
7356
- //
7357
- //
7358
- //
7359
- //
7360
- //
7361
- //
7362
- //
7363
- //
7364
- //
7365
- //
7366
- //
7367
- //
7368
- //
7369
- //
7370
- //
7371
- //
7372
- //
7373
- //
7374
- //
7375
- //
7376
- //
7377
- //
7378
- //
7379
- //
7380
- //
7381
- //
7382
- //
7383
- //
7384
- //
7385
- //
7386
- //
7387
- //
7388
- //
7389
- //
7390
- //
7391
- //
7392
- //
7393
- //
7394
- //
7395
- //
7396
- //
7397
- //
7398
- //
7399
- //
7400
- //
7401
- //
7402
- //
7403
- //
7404
- //
7405
- //
7406
- //
7407
- //
7408
- //
7409
- //
7410
- //
7411
- //
7412
- //
7413
- //
7414
- //
7415
- //
7416
- //
7417
- //
7418
- //
7419
- //
7420
- //
7421
- //
7422
- //
7423
- //
7424
- //
7425
- //
7426
- //
7427
- //
7428
- //
7429
- //
7430
- //
7431
- //
7432
- //
7433
- //
7434
- //
7435
- //
7436
- //
7437
- //
7438
- //
7439
- //
7440
- //
7441
- //
7442
- //
7443
- //
7444
- //
7445
- //
7446
- //
7447
- //
7448
- //
7449
- //
7450
- //
7451
- //
7452
- //
7453
- //
7454
- //
7455
- //
7456
- //
7457
- //
7458
- //
7459
- //
7460
- //
7461
- //
7462
- //
7463
- //
7464
- //
7465
- //
7466
- //
7467
- //
7468
- //
7469
- //
7470
- //
7471
- //
7472
- //
7473
- //
7474
- //
7475
- //
7476
- //
7477
- //
7478
- //
7479
- //
7480
- //
7481
- //
7482
- //
7483
- //
7484
- //
7485
- //
7486
- //
7487
-
7488
6926
 
7489
6927
 
7490
6928
 
@@ -7527,38 +6965,52 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
7527
6965
  },
7528
6966
  tableReload: {
7529
6967
  default: ''
6968
+ },
6969
+ table: {
6970
+ default: ''
7530
6971
  }
7531
6972
  },
7532
- mixins: [mixins_table],
7533
6973
  props: {
6974
+ form: Boolean,
7534
6975
  readonly: Boolean,
7535
6976
  name: String,
7536
6977
  filterIcon: [Boolean, String],
7537
- item: {
7538
- type: Object,
7539
- default: function _default() {
7540
- return {};
7541
- }
7542
- },
7543
- index: {
6978
+ title: String,
6979
+ label: String,
6980
+ labelKey: String,
6981
+ valueKey: String,
6982
+ field: String,
6983
+ prop: String,
6984
+ sortable: [Boolean, String],
6985
+ sort: [Boolean, String],
6986
+ className: String,
6987
+ labelClassName: String,
6988
+ type: String,
6989
+ required: Boolean,
6990
+ width: String,
6991
+ minWidth: String,
6992
+ hide: Boolean,
6993
+ showOverflowTooltip: Boolean,
6994
+ render: [Function, String],
6995
+ contents: Array,
6996
+ events: [Array, Object],
6997
+ dateFormat: String,
6998
+ styles: [Array, Object],
6999
+ sysCode: String,
7000
+ valueToString: Boolean,
7001
+ symbol: String,
7002
+ rules: [Array, Object],
7003
+ method: String,
7004
+ indexs: {
7544
7005
  type: Number,
7545
7006
  default: null
7546
7007
  },
7547
- minWidth: {
7548
- type: String,
7549
- default: function _default() {
7550
- return this.form ? '180px' : undefined;
7551
- }
7552
- },
7008
+ data: Object,
7553
7009
  optionData: {
7554
7010
  type: Object,
7555
7011
  default: function _default() {
7556
7012
  return {};
7557
7013
  }
7558
- },
7559
- form: {
7560
- type: Boolean,
7561
- default: false
7562
7014
  }
7563
7015
  },
7564
7016
  watch: {
@@ -7567,12 +7019,68 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
7567
7019
  handler: function handler(val) {
7568
7020
  this.optionDatas = val;
7569
7021
  }
7022
+ },
7023
+ width: {
7024
+ immediate: true,
7025
+ handler: function handler(val) {
7026
+ if (val) {
7027
+ this.btnWidth = parseInt(val, 10) + 'px';
7028
+ }
7029
+ }
7030
+ }
7031
+ },
7032
+ computed: {
7033
+ config: function config() {
7034
+ var config = {
7035
+ label: this.label || this.title,
7036
+ width: this.btnWidth || this.width
7037
+ };
7038
+
7039
+ if (this.type === 'expand') {
7040
+ config = columnvue_type_script_lang_js_extends({ type: this.type }, config, this.$attrs);
7041
+ return config;
7042
+ }
7043
+ var minWidth = this.label || this.title ? (this.label || this.title).length * 14 + 20 : this.width ? '' : '180px';
7044
+ config = columnvue_type_script_lang_js_extends({}, config, {
7045
+ filterIcon: this.icon,
7046
+ sortable: this.sortable || this.sort,
7047
+ minWidth: this.minWidth || this.table.minWidth || minWidth,
7048
+ className: [this.className ? this.className : '', this.type ? ' es-table-' + this.type + '-box' : '', this.showOverflowTooltip ? ' es-text-ellipsis' : ''].join(' '),
7049
+ labelClassName: [this.labelClassName ? this.labelClassName : '', this.required ? 'es-required' : ''].join(' '),
7050
+ prop: this.field || this.prop,
7051
+ field: this.field
7052
+ }, this.$attrs);
7053
+ return config;
7054
+ },
7055
+ formOption: function formOption() {
7056
+ return columnvue_type_script_lang_js_extends({
7057
+ labelKey: this.sysCode ? 'shortName' : this.labelKey,
7058
+ valueKey: this.sysCode ? 'cciValue' : this.valueKey,
7059
+ rules: this.rules,
7060
+ events: this.events
7061
+ }, this.$attrs, {
7062
+ data: this.option
7063
+ });
7064
+ },
7065
+ icon: function icon() {
7066
+ if (this.filterIcon === true) {
7067
+ return 'es-icon-biao';
7068
+ }
7069
+ return false;
7070
+ },
7071
+ isForm: function isForm() {
7072
+ var type = this.type ? this.type.toLowerCase() : '';
7073
+ var flag = this.form && ['text', 'textarea', 'checkbox', 'radio', 'select', 'handle', 'date', 'year', 'month', 'date', 'dates', 'week', 'datetime', 'datetimerange', 'daterange', 'monthrange', 'quarter', 'halfyear', 'switch', 'selector', 'ganged', 'number'].indexOf(type) > -1 || ['space', 'slot'].indexOf(type) > -1;
7074
+ return flag;
7075
+ },
7076
+ option: function option() {
7077
+ var field = this.field || this.prop;
7078
+ return this.data ? this.data : this.optionDatas[this.sysCode || field];
7570
7079
  }
7571
7080
  },
7572
- computed: {},
7573
7081
  data: function data() {
7574
7082
  return {
7575
- width: Object.prototype.hasOwnProperty.call(this.item, 'width') ? parseInt(this.item.width, 10) + 'px' : undefined,
7083
+ btnWidth: '',
7576
7084
  searchs: [],
7577
7085
  optionDatas: this.optionData
7578
7086
  };
@@ -7585,7 +7093,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
7585
7093
 
7586
7094
  if (data && value) {
7587
7095
  if (Array.isArray(value) && value.length) {
7588
- if (item.url || item.sysCode) {
7096
+ if (item.url || this.sysCode) {
7589
7097
  value.forEach(function () {
7590
7098
  var _ref = _asyncToGenerator( /*#__PURE__*/regenerator_default.a.mark(function _callee(val, index) {
7591
7099
  var option, lists, v, queryKey, param, i, params;
@@ -7593,7 +7101,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
7593
7101
  while (1) {
7594
7102
  switch (_context.prev = _context.next) {
7595
7103
  case 0:
7596
- if (!(val.hasSub == false || _this.searchs.indexOf(val[item.valueKey] || val.value) > -1)) {
7104
+ if (!(val.hasSub == false || _this.searchs.indexOf(val[_this.valueKey] || val.value) > -1)) {
7597
7105
  _context.next = 2;
7598
7106
  break;
7599
7107
  }
@@ -7601,7 +7109,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
7601
7109
  return _context.abrupt('return');
7602
7110
 
7603
7111
  case 2:
7604
- _this.searchs.push(val[item.valueKey] || val.value);
7112
+ _this.searchs.push(val[_this.valueKey] || val.value);
7605
7113
 
7606
7114
  if (!(item.ganged && index < item.ganged - 1 || val.hasSub)) {
7607
7115
  _context.next = 14;
@@ -7612,7 +7120,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
7612
7120
  lists = [];
7613
7121
 
7614
7122
  if (option) {
7615
- v = val[item.valueKey] || val.value;
7123
+ v = val[_this.valueKey] || val.value;
7616
7124
 
7617
7125
  lists = option.filter(function (list) {
7618
7126
  return list[item.filtrateKey] == v;
@@ -7632,10 +7140,10 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
7632
7140
  param[i] = val[queryKey[i]];
7633
7141
  }
7634
7142
  }
7635
- params = utils_util["a" /* default */].extend(true, item.sysCode ? { sysAppCode: item.sysCode } : {}, item.param ? item.param : {}, param);
7143
+ params = utils_util["a" /* default */].extend(true, _this.sysCode ? { sysAppCode: _this.sysCode } : {}, item.param ? item.param : {}, param);
7636
7144
  _context.next = 14;
7637
7145
  return utils_util["a" /* default */].ajax({
7638
- url: item.sysCode ? api["u" /* findSysCode */] : item.url,
7146
+ url: _this.sysCode ? api["u" /* findSysCode */] : item.url,
7639
7147
  method: _this.method,
7640
7148
  params: params,
7641
7149
  data: params
@@ -7680,73 +7188,69 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
7680
7188
 
7681
7189
  return utils_util["a" /* default */].exclAttribute({ data: data, attrs: attrs });
7682
7190
  },
7683
- format: function format(rows, col) {
7191
+ format: function format(rows) {
7684
7192
  var _this2 = this;
7685
7193
 
7686
- var field = col.field || col.prop;
7687
- var data = col.data ? col.data : col.optionData ? rows[col.optionData] : this.optionDatas[field];
7194
+ var field = this.field || this.prop;
7195
+ var data = this.option;
7688
7196
  if (utils_util["a" /* default */].isObject(rows[field])) {
7689
- return rows[field][col.labelKey] || rows[field]['name'] || rows[field]['label'] || rows[field]['shortName'];
7197
+ return rows[field][this.labelKey] || rows[field]['name'] || rows[field]['label'] || rows[field]['shortName'];
7690
7198
  } else if (Array.isArray(rows[field])) {
7691
7199
  var vals = rows[field].map(function (item) {
7692
7200
  if (utils_util["a" /* default */].isObject(item)) {
7693
- return item[col.labelKey] || item['name'] || item['label'] || item['shortName'];
7201
+ return item[_this2.labelKey] || item['name'] || item['label'] || item['shortName'];
7694
7202
  } else {
7695
7203
  if (data && data.length && utils_util["a" /* default */].isObject(data[0])) {
7696
- return _this2.getLabel(data, item, col);
7204
+ return _this2.getLabel(data, item);
7697
7205
  }
7698
7206
  return item;
7699
7207
  }
7700
7208
  });
7701
- return vals.join(col.symbol ? col.symbol : '-');
7209
+ return vals.join(this.symbol ? this.symbol : '-');
7702
7210
  } else {
7703
- if (col.valueToString || col['value-to-string']) {
7211
+ if (this.valueToString) {
7704
7212
  var _vals = rows[field].split(',').map(function (item) {
7705
7213
  if (data && data.length && utils_util["a" /* default */].isObject(data[0])) {
7706
- return _this2.getLabel(data, item, col);
7214
+ return _this2.getLabel(data, item);
7707
7215
  }
7708
7216
  return item;
7709
7217
  });
7710
- return _vals.join(col.symbol ? col.symbol : '-');
7218
+ return _vals.join(this.symbol ? this.symbol : '-');
7711
7219
  } else {
7712
7220
  if (data && data.length && utils_util["a" /* default */].isObject(data[0])) {
7713
- return this.getLabel(data, rows[field], col);
7221
+ return this.getLabel(data, rows[field]);
7714
7222
  }
7715
7223
  return rows[field];
7716
7224
  }
7717
7225
  }
7718
7226
  },
7719
- getLabel: function getLabel(obj, val, col) {
7227
+ getLabel: function getLabel(obj, val) {
7720
7228
  for (var i = 0; i < obj.length; i++) {
7721
7229
  var item = obj[i];
7722
- var value = item[col.valueKey || 'cciValue'] || item['value'];
7230
+ var value = item[this.valueKey || 'cciValue'] || item['value'];
7723
7231
  if (value == val) {
7724
- return item[col.labelKey] || item['name'] || item['label'] || item['shortName'];
7232
+ return item[this.labelKey] || item['name'] || item['label'] || item['shortName'];
7725
7233
  } else if (item.children && item.children.length) {
7726
- return this.getLabel(item.children, val, col);
7234
+ return this.getLabel(item.children, val);
7727
7235
  }
7728
7236
  }
7729
7237
  },
7730
- isReadOnly: function isReadOnly(item, scope) {
7731
- return scope.row.canEdit === false || this.readonly || item.editable === false || scope.row.cantEditKey && scope.row.cantEditKey.indexOf(item.field || item.prop) > -1 || item.readonly;
7238
+ isReadOnly: function isReadOnly(scope) {
7239
+ return scope.row.canEdit === false || this.readonly || this.$attrs.editable === false || scope.row.cantEditKey && scope.row.cantEditKey.indexOf(this.field || this.prop) > -1;
7732
7240
  },
7733
- isNotRule: function isNotRule(item, scope) {
7734
- if (scope.row.canRule === false || scope.row.notRules && scope.row.notRules.indexOf(item.field || item.prop) > -1) {
7735
- this.elForm && this.elForm.clearValidate(item.field || item.prop);
7241
+ isNotRule: function isNotRule(scope) {
7242
+ if (scope.row.canRule === false || scope.row.notRules && scope.row.notRules.indexOf(this.field || this.prop) > -1) {
7243
+ this.elForm && this.elForm.clearValidate(this.field || this.prop);
7736
7244
  return true;
7737
7245
  }
7738
7246
  return false;
7739
7247
  },
7740
7248
  handleBlur: function handleBlur(data) {
7741
- var item = data.item;
7742
-
7743
- item.events && item.events.blur && item.events.blur(data);
7249
+ this.events && this.events.blur && this.events.blur(data);
7744
7250
  this.$emit('formBlur', data);
7745
7251
  },
7746
7252
  handleFocus: function handleFocus(data) {
7747
- var item = data.item;
7748
-
7749
- item.events && item.events.focus && item.events.focus(data);
7253
+ this.events && this.events.focus && this.events.focus(data);
7750
7254
  this.$emit('formFocus', data);
7751
7255
  },
7752
7256
  handleChange: function handleChange(data) {
@@ -7754,16 +7258,16 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
7754
7258
 
7755
7259
  var item = data.item;
7756
7260
 
7757
- if (item && item.type == 'ganged') {
7261
+ if (item && this.type == 'ganged') {
7758
7262
  var _data$value = data.value,
7759
7263
  index = _data$value.index,
7760
7264
  value = _data$value.value;
7761
7265
 
7762
- if ((item.url || item.sysCode) && (item.ganged && index > item.ganged - 1 || value.hasSub)) {
7763
- var filte = value[item.valueKey] || value.value;
7266
+ if ((item.url || this.sysCode) && (item.ganged && index > item.ganged - 1 || value.hasSub)) {
7267
+ var filte = value[this.valueKey] || value.value;
7764
7268
  var datas = [];
7765
- if (this.optionDatas[item.field || item.prop][index + 1]) {
7766
- datas = this.optionDatas[item.field || item.prop][index + 1].filter(function (items) {
7269
+ if (this.optionDatas[this.field || this.prop][index + 1]) {
7270
+ datas = this.optionDatas[this.field || this.prop][index + 1].filter(function (items) {
7767
7271
  return filte == items[item.filtrateKey];
7768
7272
  });
7769
7273
  }
@@ -7775,21 +7279,21 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
7775
7279
  param[i] = value[queryKey[i]];
7776
7280
  }
7777
7281
  }
7778
- var params = utils_util["a" /* default */].extend(true, item.sysCode ? { sysAppCode: item.sysCode } : {}, item.param ? item.param : {}, param);
7282
+ var params = utils_util["a" /* default */].extend(true, this.sysCode ? { sysAppCode: this.sysCode } : {}, item.param ? item.param : {}, param);
7779
7283
  utils_util["a" /* default */].ajax({
7780
- url: item.sysCode ? api["u" /* findSysCode */] : item.url,
7284
+ url: this.sysCode ? api["u" /* findSysCode */] : item.url,
7781
7285
  method: this.method,
7782
7286
  params: params,
7783
7287
  data: params
7784
7288
  }).then(function (res) {
7785
7289
  if (res.rCode === 0) {
7786
- var options = JSON.parse(JSON.stringify(_this3.optionDatas[item.field || item.prop]));
7290
+ var options = JSON.parse(JSON.stringify(_this3.optionDatas[_this3.sysCode]));
7787
7291
  if (options[index + 1]) {
7788
7292
  options[index + 1] = options[index + 1].concat(JSON.parse(JSON.stringify(res.results)));
7789
7293
  } else {
7790
7294
  options.push(JSON.parse(JSON.stringify(res.results)));
7791
7295
  }
7792
- _this3.$set(_this3.optionDatas, item.field || item.prop, options);
7296
+ _this3.$set(_this3.optionDatas, _this3.sysCode, options);
7793
7297
  } else {
7794
7298
  var msg = res.msg || '系统错误,请联系管理员!';
7795
7299
  _this3.$message.error(msg);
@@ -7802,7 +7306,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
7802
7306
  }
7803
7307
  }
7804
7308
  }
7805
- item.events && item.events.change && item.events.change(data);
7309
+ this.events && this.events.change && this.events.change(data);
7806
7310
  this.$emit('formChange', data);
7807
7311
  },
7808
7312
  handleClick: function handleClick(data) {
@@ -7825,8 +7329,8 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
7825
7329
 
7826
7330
  var column_component = normalizeComponent(
7827
7331
  src_columnvue_type_script_lang_js_,
7828
- columnvue_type_template_id_00ff0a77_render,
7829
- columnvue_type_template_id_00ff0a77_staticRenderFns,
7332
+ columnvue_type_template_id_cd703de2_render,
7333
+ columnvue_type_template_id_cd703de2_staticRenderFns,
7830
7334
  false,
7831
7335
  null,
7832
7336
  null,
@@ -7856,10 +7360,6 @@ var _components;
7856
7360
  //
7857
7361
  //
7858
7362
  //
7859
- //
7860
- //
7861
- //
7862
- //
7863
7363
 
7864
7364
 
7865
7365
  /* harmony default export */ var childrenvue_type_script_lang_js_ = ({
@@ -7871,7 +7371,7 @@ var _components;
7871
7371
  },
7872
7372
  computed: {
7873
7373
  childrens: function childrens() {
7874
- return this.children || this.childHead;
7374
+ return this.children || this.childHead || [];
7875
7375
  }
7876
7376
  }
7877
7377
  });
@@ -7887,8 +7387,8 @@ var _components;
7887
7387
 
7888
7388
  var children_component = normalizeComponent(
7889
7389
  src_childrenvue_type_script_lang_js_,
7890
- childrenvue_type_template_id_796433ee_render,
7891
- childrenvue_type_template_id_796433ee_staticRenderFns,
7390
+ childrenvue_type_template_id_29bcbc72_render,
7391
+ childrenvue_type_template_id_29bcbc72_staticRenderFns,
7892
7392
  false,
7893
7393
  null,
7894
7394
  null,
@@ -8133,23 +7633,43 @@ var sizer_component = normalizeComponent(
8133
7633
  )
8134
7634
 
8135
7635
  /* harmony default export */ var sizer = (sizer_component.exports);
8136
- // EXTERNAL MODULE: external "vue"
8137
- var external_vue_ = __webpack_require__(12);
8138
- var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
8139
-
8140
- // CONCATENATED MODULE: ./src/utils/bus.js
8141
-
8142
-
8143
- /* harmony default export */ var bus = (new external_vue_default.a());
8144
7636
  // EXTERNAL MODULE: external "qs"
8145
7637
  var external_qs_ = __webpack_require__(3);
8146
7638
  var external_qs_default = /*#__PURE__*/__webpack_require__.n(external_qs_);
8147
7639
 
8148
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/main.vue?vue&type=script&lang=js&
8149
- var data_table_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; };
7640
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/layout/src/item.vue?vue&type=template&id=124bb300&
7641
+ var itemvue_type_template_id_124bb300_render = function () {
7642
+ var _vm = this
7643
+ var _h = _vm.$createElement
7644
+ var _c = _vm._self._c || _h
7645
+ return _c(
7646
+ "div",
7647
+ {
7648
+ ref: "move",
7649
+ staticClass: "es-layout-item",
7650
+ class: _vm.defaultClasss,
7651
+ style: _vm.defaultaStyle,
7652
+ },
7653
+ [
7654
+ _c("es-card"),
7655
+ _c("div", { staticClass: "es-layout-resizable-width" }),
7656
+ _c("div", { staticClass: "es-layout-resizable-height" }),
7657
+ _c("div", { staticClass: "es-layout-resizable" }),
7658
+ ],
7659
+ 1
7660
+ )
7661
+ }
7662
+ var itemvue_type_template_id_124bb300_staticRenderFns = []
7663
+ itemvue_type_template_id_124bb300_render._withStripped = true
8150
7664
 
8151
- var mainvue_type_script_lang_js_components;
8152
7665
 
7666
+ // CONCATENATED MODULE: ./packages/layout/src/item.vue?vue&type=template&id=124bb300&
7667
+
7668
+ // EXTERNAL MODULE: external "interactjs"
7669
+ var external_interactjs_ = __webpack_require__(4);
7670
+ var external_interactjs_default = /*#__PURE__*/__webpack_require__.n(external_interactjs_);
7671
+
7672
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/layout/src/item.vue?vue&type=script&lang=js&
8153
7673
  //
8154
7674
  //
8155
7675
  //
@@ -8163,6 +7683,172 @@ var mainvue_type_script_lang_js_components;
8163
7683
  //
8164
7684
  //
8165
7685
  //
7686
+
7687
+ // import '@interactjs/auto-start';
7688
+ // import '@interactjs/auto-scroll';
7689
+ // import '@interactjs/actions/drag';
7690
+ // import '@interactjs/actions/resize';
7691
+ // import '@interactjs/modifiers';
7692
+ // import '@interactjs/dev-tools';
7693
+
7694
+ /* harmony default export */ var itemvue_type_script_lang_js_ = ({
7695
+ name: 'LayoutItem',
7696
+ components: {},
7697
+ props: {
7698
+ redact: {
7699
+ type: Boolean,
7700
+ default: true
7701
+ },
7702
+ width: {
7703
+ type: String,
7704
+ default: '100%'
7705
+ },
7706
+ height: {
7707
+ type: String,
7708
+ default: '100px'
7709
+ },
7710
+ left: String,
7711
+ top: String,
7712
+ index: Number
7713
+ },
7714
+ computed: {
7715
+ defaultClasss: function defaultClasss() {
7716
+ return {
7717
+ 'es-dragging': this.dragging
7718
+ };
7719
+ },
7720
+ defaultaStyle: function defaultaStyle() {
7721
+ return {
7722
+ width: this.width,
7723
+ height: this.height,
7724
+ left: this.left,
7725
+ top: this.top
7726
+ };
7727
+ },
7728
+ cardStyle: function cardStyle() {
7729
+ return {
7730
+ width: this.width,
7731
+ height: this.height
7732
+ };
7733
+ }
7734
+ },
7735
+ watch: {},
7736
+ data: function data() {
7737
+ return {
7738
+ position: { x: 0, y: 0 },
7739
+ interaction: null,
7740
+ dragging: false
7741
+ };
7742
+ },
7743
+ created: function created() {
7744
+ this.position = {
7745
+ x: parseInt(this.left) || 0,
7746
+ y: parseInt(this.top) || 0
7747
+ };
7748
+ console.log(this.position);
7749
+ },
7750
+ mounted: function mounted() {
7751
+ console.log(external_interactjs_default.a.feedback);
7752
+ this.interaction = external_interactjs_default()(this.$refs.move);
7753
+ this.interaction.draggable({
7754
+ // modifiers: [
7755
+ // interact.modifiers.restrictRect({
7756
+ // restriction: 'parent',
7757
+ // endOnly: false
7758
+ // })
7759
+ // ],
7760
+ // listeners: {
7761
+ // start: (event) => {
7762
+ // this.dragging = true;
7763
+ // console.log(event.type, event.target, 111);
7764
+ // },
7765
+ // move: (event) => {
7766
+ // this.position.x += event.dx;
7767
+ // this.position.y += event.dy;
7768
+ // event.target.style.transform = `translate(${this.position.x}px, ${this.position.y}px)`;
7769
+ // },
7770
+ // end: (event) => {
7771
+ // this.dragging = false;
7772
+ // console.log(event.type, event.target, 222);
7773
+ // }
7774
+ // }
7775
+ inertia: true,
7776
+ //autoScroll: { container: '.container' },
7777
+ listeners: [external_interactjs_default.a.feedback.pointers()],
7778
+ modifiers: [external_interactjs_default.a.modifiers.restrict({
7779
+ restriction: 'html',
7780
+ elementRect: { left: 0, top: 0, right: 1, bottom: 1 }
7781
+ }), external_interactjs_default.a.modifiers.transform(), external_interactjs_default.a.modifiers.spring()]
7782
+ });
7783
+ this.interaction.resizable({
7784
+ modifiers: [
7785
+ // keep the edges inside the parent
7786
+ external_interactjs_default.a.modifiers.restrictEdges({
7787
+ outer: 'parent'
7788
+ }),
7789
+
7790
+ // minimum size
7791
+ external_interactjs_default.a.modifiers.restrictSize({
7792
+ min: { width: 100, height: 100 }
7793
+ })],
7794
+
7795
+ //inertia: true,
7796
+ edges: { top: true, left: true, bottom: true, right: true },
7797
+ listeners: {
7798
+ move: function move(event) {
7799
+ console.log(1212);
7800
+ var _event$target$dataset = event.target.dataset,
7801
+ x = _event$target$dataset.x,
7802
+ y = _event$target$dataset.y;
7803
+
7804
+
7805
+ x = (parseFloat(x) || 0) + event.deltaRect.left;
7806
+ y = (parseFloat(y) || 0) + event.deltaRect.top;
7807
+
7808
+ Object.assign(event.target.style, {
7809
+ width: event.rect.width + 'px',
7810
+ height: event.rect.height + 'px',
7811
+ transform: 'translate(' + x + 'px, ' + y + 'px)'
7812
+ });
7813
+
7814
+ Object.assign(event.target.dataset, { x: x, y: y });
7815
+ }
7816
+ }
7817
+ });
7818
+ },
7819
+
7820
+ methods: {},
7821
+ beforeDestroy: function beforeDestroy() {}
7822
+ });
7823
+ // CONCATENATED MODULE: ./packages/layout/src/item.vue?vue&type=script&lang=js&
7824
+ /* harmony default export */ var src_itemvue_type_script_lang_js_ = (itemvue_type_script_lang_js_);
7825
+ // CONCATENATED MODULE: ./packages/layout/src/item.vue
7826
+
7827
+
7828
+
7829
+
7830
+
7831
+ /* normalize component */
7832
+
7833
+ var item_component = normalizeComponent(
7834
+ src_itemvue_type_script_lang_js_,
7835
+ itemvue_type_template_id_124bb300_render,
7836
+ itemvue_type_template_id_124bb300_staticRenderFns,
7837
+ false,
7838
+ null,
7839
+ null,
7840
+ null
7841
+
7842
+ )
7843
+
7844
+ /* harmony default export */ var src_item = (item_component.exports);
7845
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/main.vue?vue&type=script&lang=js&
7846
+ var mainvue_type_script_lang_js_typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
7847
+
7848
+ var data_table_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; };
7849
+
7850
+ var mainvue_type_script_lang_js_components;
7851
+
8166
7852
  //
8167
7853
  //
8168
7854
  //
@@ -8298,57 +7984,7 @@ var mainvue_type_script_lang_js_components;
8298
7984
  //
8299
7985
  //
8300
7986
  //
8301
- //
8302
- //
8303
- //
8304
- //
8305
- //
8306
- //
8307
- //
8308
- //
8309
- //
8310
- //
8311
- //
8312
- //
8313
- //
8314
- //
8315
- //
8316
- //
8317
- //
8318
- //
8319
- //
8320
- //
8321
- //
8322
- //
8323
- //
8324
- //
8325
- //
8326
- //
8327
- //
8328
- //
8329
- //
8330
- //
8331
- //
8332
- //
8333
- //
8334
- //
8335
- //
8336
- //
8337
- //
8338
- //
8339
- //
8340
- //
8341
- //
8342
- //
8343
- //
8344
- //
8345
- //
8346
- //
8347
- //
8348
- //
8349
- //
8350
- //
8351
- //
7987
+
8352
7988
 
8353
7989
 
8354
7990
 
@@ -8461,10 +8097,6 @@ var mainvue_type_script_lang_js_components;
8461
8097
  type: String,
8462
8098
  default: 'id'
8463
8099
  },
8464
- sizer: {
8465
- type: Boolean,
8466
- default: true
8467
- },
8468
8100
  // 无数据时显示的文本
8469
8101
  emptyText: {
8470
8102
  type: String,
@@ -8598,7 +8230,8 @@ var mainvue_type_script_lang_js_components;
8598
8230
  selected: null,
8599
8231
  options: {},
8600
8232
  icon: true,
8601
- show: true
8233
+ show: true,
8234
+ sysCodes: []
8602
8235
  };
8603
8236
  },
8604
8237
 
@@ -8609,12 +8242,33 @@ var mainvue_type_script_lang_js_components;
8609
8242
 
8610
8243
  theads: {
8611
8244
  get: function get() {
8245
+ var thead = [];
8246
+ if (this.checkbox) {
8247
+ thead.push({
8248
+ type: 'selection',
8249
+ width: '55',
8250
+ align: 'center',
8251
+ fixed: 'left',
8252
+ selectable: this.selectable,
8253
+ reserveSelection: this.reserveSelection
8254
+ });
8255
+ }
8256
+ if (this.numbers) {
8257
+ thead.push({
8258
+ type: 'index',
8259
+ label: '序号',
8260
+ width: '70',
8261
+ align: 'center',
8262
+ fixed: 'left',
8263
+ index: this.index === true ? (this.config.pageNum - 1) * this.config.pageSize + 1 : this.index === false ? 1 : this.index
8264
+ });
8265
+ }
8612
8266
  if (this.theadData.length) {
8613
- this.setMinWidth(this.theadData);
8614
- return this.theadData;
8267
+ thead = [].concat(thead, this.theadData);
8268
+ } else {
8269
+ thead = [].concat(thead, this.thead);
8615
8270
  }
8616
- this.setMinWidth(this.thead);
8617
- return this.thead;
8271
+ return thead;
8618
8272
  },
8619
8273
  set: function set(val) {
8620
8274
  return val;
@@ -8663,7 +8317,8 @@ var mainvue_type_script_lang_js_components;
8663
8317
 
8664
8318
  optionDatas: {
8665
8319
  get: function get() {
8666
- return this.optionData ? data_table_src_mainvue_type_script_lang_js_extends({}, this.optionData, this.options) : this.options;
8320
+ var data = this.optionData ? data_table_src_mainvue_type_script_lang_js_extends({}, this.optionData, this.options) : this.options;
8321
+ return data;
8667
8322
  },
8668
8323
  set: function set(val) {
8669
8324
  return val;
@@ -8718,12 +8373,20 @@ var mainvue_type_script_lang_js_components;
8718
8373
  immediate: true,
8719
8374
  deep: true,
8720
8375
  handler: function handler(val) {
8721
- this.config = utils_util["a" /* default */].extend({}, this.config, this.page);
8376
+ if ((typeof val === 'undefined' ? 'undefined' : mainvue_type_script_lang_js_typeof(val)) === 'object') {
8377
+ this.config = utils_util["a" /* default */].extend({}, this.config, val);
8378
+ } else {
8379
+ this.config = {
8380
+ pageNum: 1,
8381
+ pageSize: 20,
8382
+ totalCount: 0
8383
+ };
8384
+ }
8722
8385
  }
8723
8386
  },
8724
8387
  'config.pageNum': function configPageNum() {
8725
8388
  if (this.data.length) {
8726
- this.$refs.oaTable.resetScroll(0, 0);
8389
+ this.$refs.oaTable && this.$refs.oaTable.resetScroll && this.$refs.oaTable.resetScroll(0, 0);
8727
8390
  }
8728
8391
  },
8729
8392
 
@@ -8771,80 +8434,68 @@ var mainvue_type_script_lang_js_components;
8771
8434
 
8772
8435
  return [method, url, external_qs_default.a.stringify(params), external_qs_default.a.stringify(data)].join('&');
8773
8436
  },
8774
- getIcon: function getIcon(res) {
8775
- if (this.sizer && this.icon && res !== 'right' && !this.$slots.prepend && !this.$slots.append && !this.$slots.default && !this.form) {
8776
- this.icon = false;
8777
- return 'es-icon-biao';
8778
- }
8779
- return false;
8780
- },
8781
- setMinWidth: function setMinWidth(obj) {
8782
- var _this2 = this;
8783
-
8784
- obj.forEach(function (item) {
8785
- if (item.childHead && item.childHead.length) {
8786
- _this2.setMinWidth(item.childHead);
8787
- } else if (item.children && item.children.length) {
8788
- _this2.setMinWidth(item.children);
8789
- } else if (!item.width && !item.minWidth && item.title) {
8790
- var width = item.title.length * 14 + 20;
8791
- if (width > 80) {
8792
- _this2.$set(item, 'minWidth', width);
8793
- }
8794
- }
8795
- });
8796
- },
8797
8437
  getOptions: function getOptions(res) {
8798
- var _this3 = this;
8438
+ var _this2 = this;
8799
8439
 
8440
+ var sysCodes = [];
8800
8441
  res.forEach(function (item) {
8801
8442
  if (item.sysCode || item.url) {
8443
+ item.sysCode && sysCodes.push(item.sysCode);
8802
8444
  var params = utils_util["a" /* default */].extend({}, item.sysCode ? { sysAppCode: item.sysCode } : {}, item.param ? item.param : {});
8803
- var key = _this3.getRequestKey({
8804
- method: _this3.method,
8445
+ var key = _this2.getRequestKey({
8446
+ method: _this2.method,
8805
8447
  url: item.sysCode ? api["u" /* findSysCode */] : item.url,
8806
8448
  params: params,
8807
8449
  data: {}
8808
8450
  });
8809
- if (!_this3.requests.includes(key)) {
8451
+ if (!_this2.requests.includes(key)) {
8810
8452
  utils_util["a" /* default */].ajax({
8811
8453
  url: item.sysCode ? api["u" /* findSysCode */] : item.url,
8812
- method: _this3.method,
8454
+ method: _this2.method,
8813
8455
  params: params,
8814
8456
  data: params
8815
8457
  }).then(function (res) {
8816
8458
  if (res.rCode === 0) {
8817
8459
  if (item.type == 'ganged') {
8818
- _this3.$set(_this3.options, item.field || item.prop, [JSON.parse(JSON.stringify(res.results))]);
8460
+ _this2.$set(_this2.options, item.sysCode || item.field || item.prop, [JSON.parse(JSON.stringify(res.results))]);
8461
+ if (item.sysCode) {
8462
+ bus.$emit(item.sysCode, JSON.parse(JSON.stringify(_this2.options[item.sysCode])));
8463
+ }
8819
8464
  } else {
8820
- _this3.$set(_this3.options, item.field || item.prop, JSON.parse(JSON.stringify(res.results)));
8465
+ _this2.$set(_this2.options, item.sysCode || item.field || item.prop, JSON.parse(JSON.stringify(res.results)));
8466
+ if (item.sysCode) {
8467
+ bus.$emit(item.sysCode, JSON.parse(JSON.stringify(res.results)));
8468
+ }
8821
8469
  }
8822
- _this3.requests.push(key);
8470
+ _this2.requests.push(key);
8823
8471
  } else {
8824
8472
  var msg = res.msg || '系统错误,请联系管理员!';
8825
- _this3.$message.error(msg);
8473
+ _this2.$message.error(msg);
8826
8474
  }
8827
8475
  }).catch(function (err) {
8828
8476
  if (err.message && err.message !== 'canceled') {
8829
- _this3.$message.error(err.message);
8477
+ _this2.$message.error(err.message);
8830
8478
  }
8831
8479
  });
8832
8480
  }
8833
8481
  } else {
8834
8482
  if (item.childHead && item.childHead.length) {
8835
- _this3.getOptions(item.childHead);
8483
+ _this2.getOptions(item.childHead);
8836
8484
  }
8837
8485
  if (item.children && item.children.length) {
8838
- _this3.getOptions(item.children);
8486
+ _this2.getOptions(item.children);
8839
8487
  }
8840
8488
  }
8841
8489
  });
8490
+ this.sysCodes = sysCodes;
8491
+
8492
+ this.bindEventBus();
8842
8493
  },
8843
8494
  checkObject: function checkObject(item) {
8844
8495
  return utils_util["a" /* default */].getObjectType(item) === 'object';
8845
8496
  },
8846
8497
  chekOpenTotalArea: function chekOpenTotalArea() {
8847
- var _this4 = this;
8498
+ var _this3 = this;
8848
8499
 
8849
8500
  if (this.total || this.showSummary) {
8850
8501
  this.showTotal = true;
@@ -8853,7 +8504,7 @@ var mainvue_type_script_lang_js_components;
8853
8504
  var arr = JSON.parse(JSON.stringify(this.theads));
8854
8505
  arr.forEach(function (item) {
8855
8506
  if (item.total) {
8856
- _this4.showTotal = true;
8507
+ _this3.showTotal = true;
8857
8508
  }
8858
8509
  });
8859
8510
  },
@@ -8892,27 +8543,27 @@ var mainvue_type_script_lang_js_components;
8892
8543
  });
8893
8544
  },
8894
8545
  checkSelect: function checkSelect(newVal) {
8895
- var _this5 = this;
8546
+ var _this4 = this;
8896
8547
 
8897
8548
  this.$nextTick(function () {
8898
8549
  if (utils_util["a" /* default */].getObjectType(newVal) === 'array') {
8899
8550
  newVal.forEach(function (row) {
8900
8551
  if (utils_util["a" /* default */].isObject(row)) {
8901
- _this5.$refs.oaTable.toggleRowSelection(row, true);
8902
- } else _this5.datas.forEach(function (item) {
8903
- if (item[_this5.checkedKey] === row) {
8904
- _this5.$refs.oaTable.toggleRowSelection(item, true);
8552
+ _this4.$refs.oaTable.toggleRowSelection(row, true);
8553
+ } else _this4.datas.forEach(function (item) {
8554
+ if (item[_this4.checkedKey] === row) {
8555
+ _this4.$refs.oaTable.toggleRowSelection(item, true);
8905
8556
  return;
8906
8557
  }
8907
8558
  });
8908
8559
  });
8909
8560
  } else if (newVal === true) {
8910
- _this5.toggleAllSelection();
8561
+ _this4.toggleAllSelection();
8911
8562
  }
8912
8563
  });
8913
8564
  },
8914
8565
  getTheads: function getTheads() {
8915
- var _this6 = this;
8566
+ var _this5 = this;
8916
8567
 
8917
8568
  utils_util["a" /* default */].ajax({
8918
8569
  url: this.thead,
@@ -8924,27 +8575,27 @@ var mainvue_type_script_lang_js_components;
8924
8575
  if (res.rCode === 0) {
8925
8576
  var results = res.results;
8926
8577
  if (Array.isArray(results)) {
8927
- _this6.theadData = results;
8578
+ _this5.theadData = results;
8928
8579
  } else {
8929
- _this6.theadData = results.theadData || [];
8930
- _this6.list = results.data || results.records || [];
8931
- _this6.config.totalCount = results.count || results.total || results.totalCount;
8932
- _this6.getOptions(_this6.theadData);
8580
+ _this5.theadData = results.theadData || [];
8581
+ _this5.list = results.data || results.records || [];
8582
+ _this5.config.totalCount = results.count || results.total || results.totalCount;
8583
+ _this5.getOptions(_this5.theadData);
8933
8584
  }
8934
8585
  } else {
8935
- _this6.theadData = [];
8586
+ _this5.theadData = [];
8936
8587
  var msg = res.msg || '系统错误,请联系管理员!';
8937
- _this6.$message.error(msg);
8588
+ _this5.$message.error(msg);
8938
8589
  }
8939
- _this6.$emit('success', res);
8590
+ _this5.$emit('success', res);
8940
8591
  }).catch(function (err) {
8941
8592
  if (err.message && err.message !== 'canceled') {
8942
- _this6.$message.error(err.message);
8593
+ _this5.$message.error(err.message);
8943
8594
  }
8944
8595
  });
8945
8596
  },
8946
8597
  getTableData: function getTableData(res) {
8947
- var _this7 = this;
8598
+ var _this6 = this;
8948
8599
 
8949
8600
  var where = void 0;
8950
8601
  var first = void 0;
@@ -8974,28 +8625,28 @@ var mainvue_type_script_lang_js_components;
8974
8625
  params: reqData,
8975
8626
  data: reqData
8976
8627
  }).then(function (res) {
8977
- _this7.tableLoading = false;
8628
+ _this6.tableLoading = false;
8978
8629
  if (res.rCode === 0 || res.status === 'success') {
8979
- _this7.$refs.oaTable.resetScroll(0, 0);
8980
- var results = _this7.parseData !== undefined ? _this7.parseData(res.results || res.data || res) : res.results || res.data;
8981
- _this7.list = results.data || results.records || results.list || [];
8982
- _this7.config.totalCount = results.count || results.total || results.totalCount;
8983
- _this7.checked && _this7.$nextTick(function () {
8984
- _this7.checkSelect(_this7.checked);
8630
+ _this6.$refs.oaTable.resetScroll(0, 0);
8631
+ var results = _this6.parseData !== undefined ? _this6.parseData(res.results || res.data || res) : res.results || res.data;
8632
+ _this6.list = results.data || results.records || results.list || [];
8633
+ _this6.config.totalCount = results.count || results.total || results.totalCount;
8634
+ _this6.checked && _this6.$nextTick(function () {
8635
+ _this6.checkSelect(_this6.checked);
8985
8636
  });
8986
8637
  } else {
8987
- _this7.list = [];
8638
+ _this6.list = [];
8988
8639
  //this.tableHeight = false;
8989
8640
  var msg = res.msg || '系统错误,请联系管理员!';
8990
- _this7.$message.error(msg);
8641
+ _this6.$message.error(msg);
8991
8642
  }
8992
- _this7.$emit('success', res);
8643
+ _this6.$emit('success', res);
8993
8644
  }).catch(function (err) {
8994
8645
  //this.tableHeight = false;
8995
8646
  if (err.message && err.message !== 'canceled') {
8996
- _this7.$message.error(err.message);
8647
+ _this6.$message.error(err.message);
8997
8648
  }
8998
- _this7.tableLoading = false;
8649
+ _this6.tableLoading = false;
8999
8650
  });
9000
8651
  },
9001
8652
  selectionChange: function selectionChange(data) {
@@ -9040,7 +8691,7 @@ var mainvue_type_script_lang_js_components;
9040
8691
  this.$emit('change', data, this.datas);
9041
8692
  },
9042
8693
  handleAjax: function handleAjax(handle, row) {
9043
- var _this8 = this;
8694
+ var _this7 = this;
9044
8695
 
9045
8696
  this.changeLoading(true, handle.text + '\u4E2D...');
9046
8697
  var params = handle.param || {};
@@ -9096,9 +8747,9 @@ var mainvue_type_script_lang_js_components;
9096
8747
  method: handle.method,
9097
8748
  format: handle.format
9098
8749
  }).then(function (res) {
9099
- _this8.changeLoading(false);
8750
+ _this7.changeLoading(false);
9100
8751
  if (res.rCode === 0) {
9101
- _this8.$message({
8752
+ _this7.$message({
9102
8753
  message: handle.text + '\u6210\u529F',
9103
8754
  duration: 2000,
9104
8755
  type: 'success',
@@ -9106,17 +8757,17 @@ var mainvue_type_script_lang_js_components;
9106
8757
  var first = Object.prototype.hasOwnProperty.call(handle, 'first') ? handle.first : false;
9107
8758
  var reload = handle.reload || true;
9108
8759
  if (reload) {
9109
- _this8.reload({}, first);
8760
+ _this7.reload({}, first);
9110
8761
  }
9111
8762
  }
9112
8763
  });
9113
8764
  } else {
9114
- _this8.$message.error(res.msg || handle.text + '\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01');
8765
+ _this7.$message.error(res.msg || handle.text + '\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01');
9115
8766
  }
9116
8767
  }).catch(function (err) {
9117
- _this8.changeLoading(false);
8768
+ _this7.changeLoading(false);
9118
8769
  if (err.message && err.message !== 'canceled') {
9119
- _this8.$message.error(err.message);
8770
+ _this7.$message.error(err.message);
9120
8771
  }
9121
8772
  });
9122
8773
  },
@@ -9141,7 +8792,7 @@ var mainvue_type_script_lang_js_components;
9141
8792
  return data_table_src_mainvue_type_script_lang_js_extends({}, obj, item);
9142
8793
  },
9143
8794
  handleClick: function handleClick(res) {
9144
- var _this9 = this;
8795
+ var _this8 = this;
9145
8796
 
9146
8797
  var row = res.row,
9147
8798
  handle = res.handle;
@@ -9177,7 +8828,7 @@ var mainvue_type_script_lang_js_components;
9177
8828
  cancelButtonText: '取消',
9178
8829
  type: 'warning'
9179
8830
  }).then(function () {
9180
- _this9.handleAjax(handle, rows);
8831
+ _this8.handleAjax(handle, rows);
9181
8832
  }).catch(function () {});
9182
8833
  } else {
9183
8834
  this.handleAjax(handle, rows);
@@ -9265,7 +8916,7 @@ var mainvue_type_script_lang_js_components;
9265
8916
  var type = ['selection', 'index', 'expand'];
9266
8917
  thead = thead.map(function (item) {
9267
8918
  return item.filter(function (ele) {
9268
- return !type.includes(ele.type) && ele.label !== text && !_this9.exportExcludeLabel.includes(ele.label);
8919
+ return !type.includes(ele.type) && ele.label !== text && !_this8.exportExcludeLabel.includes(ele.label);
9269
8920
  });
9270
8921
  });
9271
8922
  utils_util["a" /* default */].exportXls({
@@ -9371,47 +9022,47 @@ var mainvue_type_script_lang_js_components;
9371
9022
  }
9372
9023
  },
9373
9024
  resetHeight: function resetHeight(warn) {
9374
- var _this10 = this;
9025
+ var _this9 = this;
9375
9026
 
9376
9027
  this.$nextTick(function () {
9377
- if (_this10.full && !_this10.height && !_this10.maxHeight) {
9378
- var height = _this10.$el.parentNode.offsetHeight;
9028
+ if (_this9.full && !_this9.height && !_this9.maxHeight) {
9029
+ var height = _this9.$el.parentNode.offsetHeight;
9379
9030
  if (height) {
9380
- height = parseInt(utils_util["a" /* default */].getStyle(_this10.$el.parentNode, 'height', '%'), 10);
9381
- height = (height == NaN ? 0 : height) - parseInt(utils_util["a" /* default */].getStyle(_this10.$el.parentNode, 'padding-top'), 10) - parseInt(utils_util["a" /* default */].getStyle(_this10.$el.parentNode, 'padding-bottom'), 10);
9382
- for (var i = 0; i < _this10.$el.parentNode.childNodes.length; i++) {
9383
- var ele = _this10.$el.parentNode.childNodes[i];
9384
- if (ele !== _this10.$el && ele.offsetHeight !== undefined) {
9031
+ height = parseInt(utils_util["a" /* default */].getStyle(_this9.$el.parentNode, 'height', '%'), 10);
9032
+ height = (height == NaN ? 0 : height) - parseInt(utils_util["a" /* default */].getStyle(_this9.$el.parentNode, 'padding-top'), 10) - parseInt(utils_util["a" /* default */].getStyle(_this9.$el.parentNode, 'padding-bottom'), 10);
9033
+ for (var i = 0; i < _this9.$el.parentNode.childNodes.length; i++) {
9034
+ var ele = _this9.$el.parentNode.childNodes[i];
9035
+ if (ele !== _this9.$el && ele.offsetHeight !== undefined) {
9385
9036
  height = height - ele.offsetHeight - parseInt(utils_util["a" /* default */].getStyle(ele, 'margin-top'), 10) - parseInt(utils_util["a" /* default */].getStyle(ele, 'margin-bottom'), 10);
9386
9037
  }
9387
9038
  }
9388
- height -= _this10.showToolbar ? 45 : 0;
9389
- height -= _this10.page === false ? 0 : 46;
9390
- height -= _this10.title ? _this10.$refs.title.offsetHeight : 0;
9391
- height -= parseInt(utils_util["a" /* default */].getStyle(_this10.$refs.esTableContent, 'padding-top'), 10);
9392
- height -= parseInt(utils_util["a" /* default */].getStyle(_this10.$refs.esTableContent, 'padding-bottom'), 10);
9393
- var emptyText = _this10.$refs.esTableContent.querySelector('.el-table__empty-text');
9039
+ height -= _this9.showToolbar ? 45 : 0;
9040
+ height -= _this9.page === false ? 0 : 46;
9041
+ height -= _this9.title ? _this9.$refs.title.offsetHeight : 0;
9042
+ height -= parseInt(utils_util["a" /* default */].getStyle(_this9.$refs.esTableContent, 'padding-top'), 10);
9043
+ height -= parseInt(utils_util["a" /* default */].getStyle(_this9.$refs.esTableContent, 'padding-bottom'), 10);
9044
+ var emptyText = _this9.$refs.esTableContent.querySelector('.el-table__empty-text');
9394
9045
  var eht = 0;
9395
9046
  if (emptyText) {
9396
9047
  eht = emptyText.offsetHeight;
9397
- var thead = _this10.$refs.esTableContent.querySelector('.el-table__header');
9048
+ var thead = _this9.$refs.esTableContent.querySelector('.el-table__header');
9398
9049
  thead && (eht += thead.offsetHeight);
9399
9050
  }
9400
9051
  if (height > 1 && height - eht > 1) {
9401
- _this10.tableHeight = height;
9052
+ _this9.tableHeight = height;
9402
9053
  } else {
9403
- console.warn(_this10.$el.parentNode, '\u83B7\u53D6\u4E0D\u5230\u9AD8\u5EA6\uFF01');
9054
+ console.warn(_this9.$el.parentNode, '\u83B7\u53D6\u4E0D\u5230\u9AD8\u5EA6\uFF01');
9404
9055
  }
9405
9056
  } else if (!warn) {
9406
9057
  setTimeout(function () {
9407
- _this10.resetHeight(true);
9058
+ _this9.resetHeight(true);
9408
9059
  }, 1000);
9409
9060
  }
9410
9061
  }
9411
9062
  });
9412
9063
  },
9413
9064
  validate: function validate(callback) {
9414
- var form = this.elForm || this.$refs.esTableForm;
9065
+ var form = this.elForm || this.$el;
9415
9066
  form.validate(function (valid) {
9416
9067
  callback(valid);
9417
9068
  });
@@ -9432,13 +9083,32 @@ var mainvue_type_script_lang_js_components;
9432
9083
  this.$emit('sort-change', res);
9433
9084
  },
9434
9085
  mergeThead: function mergeThead(res) {
9435
- var _this11 = this;
9086
+ var _this10 = this;
9436
9087
 
9437
9088
  this.theadData = res;
9438
9089
  this.icon = true;
9439
9090
  setTimeout(function () {
9440
- _this11.show = true;
9091
+ _this10.show = true;
9441
9092
  }, 100);
9093
+ },
9094
+ setOptions: function setOptions(val, sysCode) {
9095
+ this.$set(this.options, sysCode, val);
9096
+ },
9097
+ bindEventBus: function bindEventBus() {
9098
+ var _this11 = this;
9099
+
9100
+ this.sysCodes.forEach(function (item) {
9101
+ bus.$on(item, function (val) {
9102
+ _this11.setOptions(val, item);
9103
+ });
9104
+ });
9105
+ },
9106
+ unbindEventBus: function unbindEventBus() {
9107
+ var _this12 = this;
9108
+
9109
+ this.sysCodes.forEach(function (item) {
9110
+ bus.$off(item, _this12.setOptions);
9111
+ });
9442
9112
  }
9443
9113
  }
9444
9114
  });
@@ -9454,8 +9124,8 @@ var mainvue_type_script_lang_js_components;
9454
9124
 
9455
9125
  var data_table_src_main_component = normalizeComponent(
9456
9126
  packages_data_table_src_mainvue_type_script_lang_js_,
9457
- mainvue_type_template_id_1d557e20_render,
9458
- mainvue_type_template_id_1d557e20_staticRenderFns,
9127
+ mainvue_type_template_id_2d512d7f_render,
9128
+ mainvue_type_template_id_2d512d7f_staticRenderFns,
9459
9129
  false,
9460
9130
  null,
9461
9131
  null,
@@ -12853,8 +12523,8 @@ error_page_src_main.install = function (Vue) {
12853
12523
  };
12854
12524
 
12855
12525
  /* harmony default export */ var error_page = (error_page_src_main);
12856
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/main.vue?vue&type=template&id=2fd814fb&
12857
- var mainvue_type_template_id_2fd814fb_render = function () {
12526
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/main.vue?vue&type=template&id=14ee5f2f&
12527
+ var mainvue_type_template_id_14ee5f2f_render = function () {
12858
12528
  var _vm = this
12859
12529
  var _h = _vm.$createElement
12860
12530
  var _c = _vm._self._c || _h
@@ -23768,11 +23438,11 @@ var mainvue_type_template_id_2fd814fb_render = function () {
23768
23438
  )
23769
23439
  : _vm._e()
23770
23440
  }
23771
- var mainvue_type_template_id_2fd814fb_staticRenderFns = []
23772
- mainvue_type_template_id_2fd814fb_render._withStripped = true
23441
+ var mainvue_type_template_id_14ee5f2f_staticRenderFns = []
23442
+ mainvue_type_template_id_14ee5f2f_render._withStripped = true
23773
23443
 
23774
23444
 
23775
- // CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=2fd814fb&
23445
+ // CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=14ee5f2f&
23776
23446
 
23777
23447
  // CONCATENATED MODULE: ./src/utils/rules.js
23778
23448
  // 手机号
@@ -23796,7 +23466,7 @@ var bankCard = { pattern: new RegExp('^([1-9]{1})(\\d{14}|\\d{18})$'), message:
23796
23466
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/main.vue?vue&type=script&lang=js&
23797
23467
 
23798
23468
 
23799
- var mainvue_type_script_lang_js_typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
23469
+ var src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
23800
23470
 
23801
23471
  var 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; };
23802
23472
 
@@ -27680,8 +27350,7 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
27680
27350
  inheritAttrs: false,
27681
27351
  provide: function provide() {
27682
27352
  return {
27683
- esForm: this,
27684
- sysCodes: this.sysCodes
27353
+ esForm: this
27685
27354
  };
27686
27355
  },
27687
27356
 
@@ -27856,8 +27525,7 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
27856
27525
  newHeight: null,
27857
27526
  uuid: utils_util["a" /* default */].uuid(32),
27858
27527
  dialog: false,
27859
- refresh: true,
27860
- sysCodes: {}
27528
+ refresh: true
27861
27529
  };
27862
27530
  },
27863
27531
 
@@ -28458,7 +28126,7 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
28458
28126
  if (obj) {
28459
28127
  if (Array.isArray(a.idCard)) {
28460
28128
  a.idCard.forEach(function (item) {
28461
- if ((typeof item === 'undefined' ? 'undefined' : mainvue_type_script_lang_js_typeof(item)) === 'object') {
28129
+ if ((typeof item === 'undefined' ? 'undefined' : src_mainvue_type_script_lang_js_typeof(item)) === 'object') {
28462
28130
  for (var i in item) {
28463
28131
  if (typeof item[i] === 'string') {
28464
28132
  _this8.$set(_this8.models, i, obj[item[i]]);
@@ -28480,7 +28148,7 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
28480
28148
  var adjunctId = b[0].response.adjunctId;
28481
28149
  this.$set(this.models, a.name, a.previewUrl ? a.previewUrl + adjunctId : adjunctId);
28482
28150
  }
28483
- if (Object.prototype.hasOwnProperty.call(a, 'setValues') && (typeof b === 'undefined' ? 'undefined' : mainvue_type_script_lang_js_typeof(b)) === 'object') {
28151
+ if (Object.prototype.hasOwnProperty.call(a, 'setValues') && (typeof b === 'undefined' ? 'undefined' : src_mainvue_type_script_lang_js_typeof(b)) === 'object') {
28484
28152
  if (Array.isArray(a.setValues)) {
28485
28153
  a.setValues.forEach(function (item) {
28486
28154
  _this8.$set(_this8.models, item, b[item]);
@@ -28604,7 +28272,7 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
28604
28272
  }
28605
28273
  _context3.next = 8;
28606
28274
  return utils_util["a" /* default */].ajax({
28607
- url: mainvue_type_script_lang_js_typeof(_this11.action) === 'object' ? _this11.action[_this11.actionType] : _this11.action,
28275
+ url: src_mainvue_type_script_lang_js_typeof(_this11.action) === 'object' ? _this11.action[_this11.actionType] : _this11.action,
28608
28276
  format: handle.format || _this11.format,
28609
28277
  data: form_src_mainvue_type_script_lang_js_extends({}, models, param),
28610
28278
  method: _this11.method,
@@ -28677,7 +28345,7 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
28677
28345
  }
28678
28346
  _context4.next = 7;
28679
28347
  return utils_util["a" /* default */].ajax({
28680
- url: mainvue_type_script_lang_js_typeof(_this11.action) === 'object' ? _this11.action[_this11.actionType] : _this11.action,
28348
+ url: src_mainvue_type_script_lang_js_typeof(_this11.action) === 'object' ? _this11.action[_this11.actionType] : _this11.action,
28681
28349
  format: handle.format || _this11.format,
28682
28350
  data: form_src_mainvue_type_script_lang_js_extends({}, models, param),
28683
28351
  method: _this11.method,
@@ -28755,7 +28423,7 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
28755
28423
  for (var i in keys) {
28756
28424
  var _ret = _loop(i);
28757
28425
 
28758
- if ((typeof _ret === 'undefined' ? 'undefined' : mainvue_type_script_lang_js_typeof(_ret)) === "object") return _ret.v;
28426
+ if ((typeof _ret === 'undefined' ? 'undefined' : src_mainvue_type_script_lang_js_typeof(_ret)) === "object") return _ret.v;
28759
28427
  }
28760
28428
  }
28761
28429
  return null;
@@ -28866,9 +28534,6 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
28866
28534
  data: data,
28867
28535
  attrs: attrs
28868
28536
  });
28869
- },
28870
- setSysCodes: function setSysCodes(name, value) {
28871
- this.$set(this.sysCodes, name, value);
28872
28537
  }
28873
28538
  }
28874
28539
  });
@@ -28884,8 +28549,8 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
28884
28549
 
28885
28550
  var form_src_main_component = normalizeComponent(
28886
28551
  packages_form_src_mainvue_type_script_lang_js_,
28887
- mainvue_type_template_id_2fd814fb_render,
28888
- mainvue_type_template_id_2fd814fb_staticRenderFns,
28552
+ mainvue_type_template_id_14ee5f2f_render,
28553
+ mainvue_type_template_id_14ee5f2f_staticRenderFns,
28889
28554
  false,
28890
28555
  null,
28891
28556
  null,
@@ -43967,7 +43632,7 @@ icons_src_main.install = function (Vue) {
43967
43632
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/input/src/main.vue?vue&type=script&lang=js&
43968
43633
  var input_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; };
43969
43634
 
43970
- var src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
43635
+ var input_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
43971
43636
 
43972
43637
 
43973
43638
 
@@ -44095,7 +43760,7 @@ var src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function" && typ
44095
43760
  getData: function getData(query, callback, isChange) {
44096
43761
  var _this2 = this;
44097
43762
 
44098
- if (src_mainvue_type_script_lang_js_typeof(this.url) && this.results.length === 0) {
43763
+ if (input_src_mainvue_type_script_lang_js_typeof(this.url) && this.results.length === 0) {
44099
43764
  utils_util["a" /* default */].ajax({
44100
43765
  method: this.method,
44101
43766
  url: this.url,
@@ -44147,7 +43812,7 @@ var src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function" && typ
44147
43812
  doms.push(h('template', { slot: type }, this.$attrs.render(h, this)));
44148
43813
  }
44149
43814
  }
44150
- } else if (src_mainvue_type_script_lang_js_typeof(this.$attrs[type]) === 'object') {
43815
+ } else if (input_src_mainvue_type_script_lang_js_typeof(this.$attrs[type]) === 'object') {
44151
43816
  doms.push(h('es-button', {
44152
43817
  slot: type,
44153
43818
  class: ['el-primeval', this.$attrs[type].class],
@@ -44818,211 +44483,6 @@ mainvue_type_template_id_3f931032_render._withStripped = true
44818
44483
 
44819
44484
  // CONCATENATED MODULE: ./packages/layout/src/main.vue?vue&type=template&id=3f931032&
44820
44485
 
44821
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/layout/src/item.vue?vue&type=template&id=124bb300&
44822
- var itemvue_type_template_id_124bb300_render = function () {
44823
- var _vm = this
44824
- var _h = _vm.$createElement
44825
- var _c = _vm._self._c || _h
44826
- return _c(
44827
- "div",
44828
- {
44829
- ref: "move",
44830
- staticClass: "es-layout-item",
44831
- class: _vm.defaultClasss,
44832
- style: _vm.defaultaStyle,
44833
- },
44834
- [
44835
- _c("es-card"),
44836
- _c("div", { staticClass: "es-layout-resizable-width" }),
44837
- _c("div", { staticClass: "es-layout-resizable-height" }),
44838
- _c("div", { staticClass: "es-layout-resizable" }),
44839
- ],
44840
- 1
44841
- )
44842
- }
44843
- var itemvue_type_template_id_124bb300_staticRenderFns = []
44844
- itemvue_type_template_id_124bb300_render._withStripped = true
44845
-
44846
-
44847
- // CONCATENATED MODULE: ./packages/layout/src/item.vue?vue&type=template&id=124bb300&
44848
-
44849
- // EXTERNAL MODULE: external "interactjs"
44850
- var external_interactjs_ = __webpack_require__(4);
44851
- var external_interactjs_default = /*#__PURE__*/__webpack_require__.n(external_interactjs_);
44852
-
44853
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/layout/src/item.vue?vue&type=script&lang=js&
44854
- //
44855
- //
44856
- //
44857
- //
44858
- //
44859
- //
44860
- //
44861
- //
44862
- //
44863
- //
44864
- //
44865
- //
44866
- //
44867
-
44868
- // import '@interactjs/auto-start';
44869
- // import '@interactjs/auto-scroll';
44870
- // import '@interactjs/actions/drag';
44871
- // import '@interactjs/actions/resize';
44872
- // import '@interactjs/modifiers';
44873
- // import '@interactjs/dev-tools';
44874
-
44875
- /* harmony default export */ var itemvue_type_script_lang_js_ = ({
44876
- name: 'LayoutItem',
44877
- components: {},
44878
- props: {
44879
- redact: {
44880
- type: Boolean,
44881
- default: true
44882
- },
44883
- width: {
44884
- type: String,
44885
- default: '100%'
44886
- },
44887
- height: {
44888
- type: String,
44889
- default: '100px'
44890
- },
44891
- left: String,
44892
- top: String,
44893
- index: Number
44894
- },
44895
- computed: {
44896
- defaultClasss: function defaultClasss() {
44897
- return {
44898
- 'es-dragging': this.dragging
44899
- };
44900
- },
44901
- defaultaStyle: function defaultaStyle() {
44902
- return {
44903
- width: this.width,
44904
- height: this.height,
44905
- left: this.left,
44906
- top: this.top
44907
- };
44908
- },
44909
- cardStyle: function cardStyle() {
44910
- return {
44911
- width: this.width,
44912
- height: this.height
44913
- };
44914
- }
44915
- },
44916
- watch: {},
44917
- data: function data() {
44918
- return {
44919
- position: { x: 0, y: 0 },
44920
- interaction: null,
44921
- dragging: false
44922
- };
44923
- },
44924
- created: function created() {
44925
- this.position = {
44926
- x: parseInt(this.left) || 0,
44927
- y: parseInt(this.top) || 0
44928
- };
44929
- console.log(this.position);
44930
- },
44931
- mounted: function mounted() {
44932
- console.log(external_interactjs_default.a.feedback);
44933
- this.interaction = external_interactjs_default()(this.$refs.move);
44934
- this.interaction.draggable({
44935
- // modifiers: [
44936
- // interact.modifiers.restrictRect({
44937
- // restriction: 'parent',
44938
- // endOnly: false
44939
- // })
44940
- // ],
44941
- // listeners: {
44942
- // start: (event) => {
44943
- // this.dragging = true;
44944
- // console.log(event.type, event.target, 111);
44945
- // },
44946
- // move: (event) => {
44947
- // this.position.x += event.dx;
44948
- // this.position.y += event.dy;
44949
- // event.target.style.transform = `translate(${this.position.x}px, ${this.position.y}px)`;
44950
- // },
44951
- // end: (event) => {
44952
- // this.dragging = false;
44953
- // console.log(event.type, event.target, 222);
44954
- // }
44955
- // }
44956
- inertia: true,
44957
- //autoScroll: { container: '.container' },
44958
- listeners: [external_interactjs_default.a.feedback.pointers()],
44959
- modifiers: [external_interactjs_default.a.modifiers.restrict({
44960
- restriction: 'html',
44961
- elementRect: { left: 0, top: 0, right: 1, bottom: 1 }
44962
- }), external_interactjs_default.a.modifiers.transform(), external_interactjs_default.a.modifiers.spring()]
44963
- });
44964
- this.interaction.resizable({
44965
- modifiers: [
44966
- // keep the edges inside the parent
44967
- external_interactjs_default.a.modifiers.restrictEdges({
44968
- outer: 'parent'
44969
- }),
44970
-
44971
- // minimum size
44972
- external_interactjs_default.a.modifiers.restrictSize({
44973
- min: { width: 100, height: 100 }
44974
- })],
44975
-
44976
- //inertia: true,
44977
- edges: { top: true, left: true, bottom: true, right: true },
44978
- listeners: {
44979
- move: function move(event) {
44980
- console.log(1212);
44981
- var _event$target$dataset = event.target.dataset,
44982
- x = _event$target$dataset.x,
44983
- y = _event$target$dataset.y;
44984
-
44985
-
44986
- x = (parseFloat(x) || 0) + event.deltaRect.left;
44987
- y = (parseFloat(y) || 0) + event.deltaRect.top;
44988
-
44989
- Object.assign(event.target.style, {
44990
- width: event.rect.width + 'px',
44991
- height: event.rect.height + 'px',
44992
- transform: 'translate(' + x + 'px, ' + y + 'px)'
44993
- });
44994
-
44995
- Object.assign(event.target.dataset, { x: x, y: y });
44996
- }
44997
- }
44998
- });
44999
- },
45000
-
45001
- methods: {},
45002
- beforeDestroy: function beforeDestroy() {}
45003
- });
45004
- // CONCATENATED MODULE: ./packages/layout/src/item.vue?vue&type=script&lang=js&
45005
- /* harmony default export */ var src_itemvue_type_script_lang_js_ = (itemvue_type_script_lang_js_);
45006
- // CONCATENATED MODULE: ./packages/layout/src/item.vue
45007
-
45008
-
45009
-
45010
-
45011
-
45012
- /* normalize component */
45013
-
45014
- var item_component = normalizeComponent(
45015
- src_itemvue_type_script_lang_js_,
45016
- itemvue_type_template_id_124bb300_render,
45017
- itemvue_type_template_id_124bb300_staticRenderFns,
45018
- false,
45019
- null,
45020
- null,
45021
- null
45022
-
45023
- )
45024
-
45025
- /* harmony default export */ var src_item = (item_component.exports);
45026
44486
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/layout/src/main.vue?vue&type=script&lang=js&
45027
44487
  //
45028
44488
  //
@@ -54235,8 +53695,8 @@ qr_code_src_main.install = function (Vue) {
54235
53695
  };
54236
53696
 
54237
53697
  /* harmony default export */ var qr_code = (qr_code_src_main);
54238
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/radio-group/src/main.vue?vue&type=template&id=a0afa96c&
54239
- var mainvue_type_template_id_a0afa96c_render = function () {
53698
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/radio-group/src/main.vue?vue&type=template&id=4b2ba50e&
53699
+ var mainvue_type_template_id_4b2ba50e_render = function () {
54240
53700
  var _vm = this
54241
53701
  var _h = _vm.$createElement
54242
53702
  var _c = _vm._self._c || _h
@@ -54365,11 +53825,11 @@ var mainvue_type_template_id_a0afa96c_render = function () {
54365
53825
  )
54366
53826
  : _vm._e()
54367
53827
  }
54368
- var mainvue_type_template_id_a0afa96c_staticRenderFns = []
54369
- mainvue_type_template_id_a0afa96c_render._withStripped = true
53828
+ var mainvue_type_template_id_4b2ba50e_staticRenderFns = []
53829
+ mainvue_type_template_id_4b2ba50e_render._withStripped = true
54370
53830
 
54371
53831
 
54372
- // CONCATENATED MODULE: ./packages/radio-group/src/main.vue?vue&type=template&id=a0afa96c&
53832
+ // CONCATENATED MODULE: ./packages/radio-group/src/main.vue?vue&type=template&id=4b2ba50e&
54373
53833
 
54374
53834
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/radio-group/src/main.vue?vue&type=script&lang=js&
54375
53835
  var radio_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; };
@@ -54436,15 +53896,13 @@ var radio_group_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "func
54436
53896
 
54437
53897
 
54438
53898
 
53899
+
54439
53900
  /* harmony default export */ var radio_group_src_mainvue_type_script_lang_js_ = ({
54440
53901
  name: 'EsRadioGroup',
54441
53902
  inheritAttrs: false,
54442
53903
  inject: {
54443
53904
  esForm: {
54444
53905
  default: ''
54445
- },
54446
- sysCodes: {
54447
- default: ''
54448
53906
  }
54449
53907
  },
54450
53908
  props: {
@@ -54603,21 +54061,11 @@ var radio_group_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "func
54603
54061
  handler: function handler() {
54604
54062
  this.url && this.getData(this.url);
54605
54063
  }
54606
- },
54607
- sysCodes: {
54608
- deep: true,
54609
- handler: function handler(val) {
54610
- if (this.canceled && val && (this.sysCode && val[this.sysCode] || this.dataKey && val[this.dataKey])) {
54611
- if (this.parseData) {
54612
- this.options = this.parseData(JSON.parse(JSON.stringify(val[this.sysCode || this.dataKey])));
54613
- } else {
54614
- this.options = JSON.parse(JSON.stringify(val[this.sysCode || this.dataKey]));
54615
- }
54616
- }
54617
- }
54618
54064
  }
54619
54065
  },
54620
- created: function created() {},
54066
+ created: function created() {
54067
+ this.bindEventBus();
54068
+ },
54621
54069
  mounted: function mounted() {},
54622
54070
 
54623
54071
  methods: {
@@ -54645,7 +54093,7 @@ var radio_group_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "func
54645
54093
  if (res.rCode === 0) {
54646
54094
  _this2.options = JSON.parse(JSON.stringify(res.results));
54647
54095
  if (sysCode || _this2.dataKey) {
54648
- _this2.esForm && _this2.esForm.setSysCodes(sysCode || _this2.dataKey, JSON.parse(JSON.stringify(_this2.options)));
54096
+ bus.$emit(sysCode || _this2.dataKey, JSON.parse(JSON.stringify(_this2.options)));
54649
54097
  utils_store.set(sysCode, JSON.parse(JSON.stringify(res.results)));
54650
54098
  }
54651
54099
  }
@@ -54666,7 +54114,19 @@ var radio_group_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "func
54666
54114
  this.$emit('input', this.valueType === 'object' ? res : res[this.valKey]);
54667
54115
  }
54668
54116
  return utils_util["a" /* default */].isObject(res) ? radio_group_src_mainvue_type_script_lang_js_extends({}, attrs, res) : attrs;
54117
+ },
54118
+ setOptions: function setOptions(val) {
54119
+ this.options = val;
54120
+ },
54121
+ bindEventBus: function bindEventBus() {
54122
+ bus.$on(this.sysCode || this.dataKey, this.setOptions);
54123
+ },
54124
+ unbindEventBus: function unbindEventBus() {
54125
+ bus.$off(this.sysCode || this.dataKey, this.setOptions);
54669
54126
  }
54127
+ },
54128
+ beforeDestroy: function beforeDestroy() {
54129
+ this.unbindEventBus();
54670
54130
  }
54671
54131
  });
54672
54132
  // CONCATENATED MODULE: ./packages/radio-group/src/main.vue?vue&type=script&lang=js&
@@ -54681,8 +54141,8 @@ var radio_group_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "func
54681
54141
 
54682
54142
  var radio_group_src_main_component = normalizeComponent(
54683
54143
  packages_radio_group_src_mainvue_type_script_lang_js_,
54684
- mainvue_type_template_id_a0afa96c_render,
54685
- mainvue_type_template_id_a0afa96c_staticRenderFns,
54144
+ mainvue_type_template_id_4b2ba50e_render,
54145
+ mainvue_type_template_id_4b2ba50e_staticRenderFns,
54686
54146
  false,
54687
54147
  null,
54688
54148
  null,
@@ -55164,6 +54624,7 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
55164
54624
 
55165
54625
 
55166
54626
 
54627
+
55167
54628
  /* harmony default export */ var select_src_mainvue_type_script_lang_js_ = ({
55168
54629
  name: 'EsSelect',
55169
54630
  componentName: 'EsSelect',
@@ -55177,9 +54638,6 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
55177
54638
  inject: {
55178
54639
  esForm: {
55179
54640
  default: ''
55180
- },
55181
- sysCodes: {
55182
- default: ''
55183
54641
  }
55184
54642
  },
55185
54643
  props: {
@@ -55383,20 +54841,11 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
55383
54841
  this.getData(this.sysCode);
55384
54842
  }
55385
54843
  }
55386
- },
55387
- sysCodes: {
55388
- deep: true,
55389
- handler: function handler(val) {
55390
- if (this.canceled && val && (this.sysCode && val[this.sysCode] || this.dataKey && val[this.dataKey])) {
55391
- if (this.parseData) {
55392
- this.options = this.parseData(JSON.parse(JSON.stringify(val[this.sysCode || this.dataKey])));
55393
- } else {
55394
- this.options = JSON.parse(JSON.stringify(val[this.sysCode || this.dataKey]));
55395
- }
55396
- }
55397
- }
55398
54844
  }
55399
54845
  },
54846
+ created: function created() {
54847
+ this.bindEventBus();
54848
+ },
55400
54849
  mounted: function mounted() {
55401
54850
  if (this.wait) {
55402
54851
  this.getData();
@@ -55485,7 +54934,7 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
55485
54934
  _this3.options = JSON.parse(JSON.stringify(res.results));
55486
54935
  }
55487
54936
  if (sysCode || _this3.dataKey) {
55488
- _this3.esForm && _this3.esForm.setSysCodes(sysCode || _this3.dataKey, JSON.parse(JSON.stringify(_this3.options)));
54937
+ bus.$emit(sysCode || _this3.dataKey, JSON.parse(JSON.stringify(_this3.options)));
55489
54938
  utils_store.set(sysCode, JSON.parse(JSON.stringify(_this3.options)));
55490
54939
  }
55491
54940
  } else {
@@ -55677,8 +55126,20 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
55677
55126
  },
55678
55127
  toggleMenu: function toggleMenu() {
55679
55128
  this.$refs.elSelect.toggleMenu();
55129
+ },
55130
+ setOptions: function setOptions(val) {
55131
+ this.options = val;
55132
+ },
55133
+ bindEventBus: function bindEventBus() {
55134
+ bus.$on(this.sysCode || this.dataKey, this.setOptions);
55135
+ },
55136
+ unbindEventBus: function unbindEventBus() {
55137
+ bus.$off(this.sysCode || this.dataKey, this.setOptions);
55680
55138
  }
55681
55139
  },
55140
+ beforeDestroy: function beforeDestroy() {
55141
+ this.unbindEventBus();
55142
+ },
55682
55143
  render: function render(h) {
55683
55144
  var _this7 = this;
55684
55145
 
@@ -55833,6 +55294,7 @@ select_src_main.install = function (Vue) {
55833
55294
  var select_ganged_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; };
55834
55295
 
55835
55296
 
55297
+
55836
55298
  /* harmony default export */ var select_ganged_src_mainvue_type_script_lang_js_ = ({
55837
55299
  name: 'EsSelectGanged',
55838
55300
  componentName: 'EsSelectGanged',
@@ -55846,9 +55308,6 @@ var select_ganged_src_mainvue_type_script_lang_js_extends = Object.assign || fun
55846
55308
  inject: {
55847
55309
  esForm: {
55848
55310
  default: ''
55849
- },
55850
- sysCodes: {
55851
- default: ''
55852
55311
  }
55853
55312
  },
55854
55313
  props: {
@@ -71130,7 +70589,7 @@ if (typeof window !== 'undefined' && window.Vue) {
71130
70589
  }
71131
70590
 
71132
70591
  /* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
71133
- version: '0.5.13',
70592
+ version: '0.5.15',
71134
70593
  install: install,
71135
70594
  Button: packages_button,
71136
70595
  ButtonGroup: button_group,