eoss-ui 0.5.12 → 0.5.14

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 (79) hide show
  1. package/lib/button-group.js +1 -13
  2. package/lib/button.js +3 -15
  3. package/lib/cascader.js +2 -2
  4. package/lib/checkbox-group.js +40 -34
  5. package/lib/data-table-form.js +4 -15
  6. package/lib/data-table.js +1219 -1529
  7. package/lib/date-picker.js +3 -15
  8. package/lib/dialog.js +10 -22
  9. package/lib/eoss-ui.common.js +1282 -1818
  10. package/lib/flow-group.js +1 -13
  11. package/lib/flow-list.js +3 -15
  12. package/lib/flow.js +43 -54
  13. package/lib/form.js +5 -22
  14. package/lib/handle-user.js +1 -13
  15. package/lib/handler.js +1 -13
  16. package/lib/icons.js +2 -2
  17. package/lib/index.js +1 -1
  18. package/lib/input-number.js +3 -15
  19. package/lib/input.js +3 -15
  20. package/lib/label.js +5 -4
  21. package/lib/layout.js +166 -152
  22. package/lib/login.js +1 -13
  23. package/lib/main.js +15 -24
  24. package/lib/menu.js +2 -2
  25. package/lib/nav.js +10 -22
  26. package/lib/notify.js +2 -2
  27. package/lib/page.js +3 -15
  28. package/lib/pagination.js +2 -2
  29. package/lib/player.js +9 -21
  30. package/lib/qr-code.js +5 -17
  31. package/lib/radio-group.js +44 -34
  32. package/lib/retrial-auth.js +3 -15
  33. package/lib/select-ganged.js +26 -18
  34. package/lib/select.js +42 -31
  35. package/lib/selector-panel.js +7 -18
  36. package/lib/selector.js +5 -17
  37. package/lib/sizer.js +3 -15
  38. package/lib/steps.js +10 -22
  39. package/lib/switch.js +3 -15
  40. package/lib/table-form.js +3 -15
  41. package/lib/tabs-panel.js +2 -2
  42. package/lib/tabs.js +3 -15
  43. package/lib/theme-chalk/data-table.css +1 -1
  44. package/lib/theme-chalk/index.css +1 -1
  45. package/lib/theme-chalk/nav.css +1 -1
  46. package/lib/tips.js +3 -15
  47. package/lib/toolbar.js +2 -2
  48. package/lib/tree-group.js +3 -15
  49. package/lib/tree.js +3 -15
  50. package/lib/upload.js +4 -16
  51. package/lib/utils/util.js +1 -10
  52. package/lib/utils/webSocket.js +0 -3
  53. package/lib/wujie.js +3 -15
  54. package/lib/wxlogin.js +3 -15
  55. package/package.json +1 -1
  56. package/packages/checkbox-group/src/main.vue +20 -30
  57. package/packages/data-table/src/children.vue +4 -8
  58. package/packages/data-table/src/column.vue +522 -575
  59. package/packages/data-table/src/main.vue +123 -124
  60. package/packages/flow/src/component/taskUnionExamine.vue +1 -1
  61. package/packages/flow/src/main.vue +1 -1
  62. package/packages/flow/src/processForm.vue +1 -1
  63. package/packages/flow/src/processReject.vue +1 -1
  64. package/packages/flow/src/startTaskRead.vue +1 -1
  65. package/packages/form/src/main.vue +2 -7
  66. package/packages/label/src/main.vue +3 -2
  67. package/packages/main/src/main.vue +6 -4
  68. package/packages/radio-group/src/main.vue +20 -30
  69. package/packages/select/src/main.vue +20 -29
  70. package/packages/select-ganged/src/main.vue +1 -3
  71. package/packages/theme-chalk/lib/data-table.css +1 -1
  72. package/packages/theme-chalk/lib/index.css +1 -1
  73. package/packages/theme-chalk/lib/nav.css +1 -1
  74. package/packages/theme-chalk/src/data-table.scss +2 -1
  75. package/packages/theme-chalk/src/nav.scss +21 -2
  76. package/src/index.js +1 -1
  77. package/src/utils/util.js +1 -10
  78. package/src/utils/webSocket.js +0 -3
  79. package/packages/data-table/src/mixins/table.js +0 -12
@@ -2522,7 +2522,6 @@ var setStorage = function setStorage(_ref14) {
2522
2522
  * @author huangbo
2523
2523
  * @date 2022年5月7日
2524
2524
  * @param {String} [url] - 连接地址
2525
- * @param {String} [send] - 是否发送消息
2526
2525
  * @param {String} [take] - 订阅地址
2527
2526
  * @param {String} [debug] - 调试
2528
2527
  * @param {String} [interval] - 重连间隔时间
@@ -2530,16 +2529,8 @@ var setStorage = function setStorage(_ref14) {
2530
2529
  * @param {Function} [error] - 重连间隔时间
2531
2530
  **/
2532
2531
  function socket(option, vm) {
2533
- var options = {};
2534
- for (var i in option) {
2535
- if (i === 'send') {
2536
- options['isSend'] = option[i];
2537
- } else {
2538
- options[i] = option[i];
2539
- }
2540
- }
2541
2532
  var socket = new _webSocket__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"]();
2542
- socket.init(options, vm);
2533
+ socket.init(option, vm);
2543
2534
  return socket;
2544
2535
  }
2545
2536
  /**
@@ -3391,7 +3382,6 @@ var WebSocket = function () {
3391
3382
  this.connects = 1;
3392
3383
  this.recon = false;
3393
3384
  this.sendTimeout = null;
3394
- this.isSend = false;
3395
3385
  }
3396
3386
 
3397
3387
  /** socket连接 */
@@ -3419,9 +3409,7 @@ var WebSocket = function () {
3419
3409
  // tryTimes定义重置
3420
3410
  _this.connects = 1;
3421
3411
  // 订阅消息
3422
- // if (!this.isSend) {
3423
3412
  _this.subscribe();
3424
- // }
3425
3413
  }, function (error) {
3426
3414
  var diffSecond = parseInt((new Date() - _this.nextDate) / 1000, 10);
3427
3415
  if (_this.connects > 5 && diffSecond < _this.interval) {
@@ -4229,8 +4217,8 @@ src_main.install = function (Vue) {
4229
4217
  };
4230
4218
 
4231
4219
  /* harmony default export */ var button_group = (src_main);
4232
- // 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&
4233
- var mainvue_type_template_id_667a17b1_render = function () {
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=103e1959&
4221
+ var mainvue_type_template_id_103e1959_render = function () {
4234
4222
  var _vm = this
4235
4223
  var _h = _vm.$createElement
4236
4224
  var _c = _vm._self._c || _h
@@ -4358,11 +4346,11 @@ var mainvue_type_template_id_667a17b1_render = function () {
4358
4346
  )
4359
4347
  : _vm._e()
4360
4348
  }
4361
- var mainvue_type_template_id_667a17b1_staticRenderFns = []
4362
- mainvue_type_template_id_667a17b1_render._withStripped = true
4349
+ var mainvue_type_template_id_103e1959_staticRenderFns = []
4350
+ mainvue_type_template_id_103e1959_render._withStripped = true
4363
4351
 
4364
4352
 
4365
- // CONCATENATED MODULE: ./packages/checkbox-group/src/main.vue?vue&type=template&id=667a17b1&
4353
+ // CONCATENATED MODULE: ./packages/checkbox-group/src/main.vue?vue&type=template&id=103e1959&
4366
4354
 
4367
4355
  // EXTERNAL MODULE: ./src/config/api.js
4368
4356
  var api = __webpack_require__(1);
@@ -4389,6 +4377,14 @@ var store_store = {
4389
4377
  };
4390
4378
  window.__store = store_store;
4391
4379
  /* harmony default export */ var utils_store = (store_store);
4380
+ // EXTERNAL MODULE: external "vue"
4381
+ var external_vue_ = __webpack_require__(12);
4382
+ var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
4383
+
4384
+ // CONCATENATED MODULE: ./src/utils/bus.js
4385
+
4386
+
4387
+ /* harmony default export */ var bus = (new external_vue_default.a());
4392
4388
  // 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&
4393
4389
  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; };
4394
4390
 
@@ -4451,15 +4447,13 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
4451
4447
 
4452
4448
 
4453
4449
 
4450
+
4454
4451
  /* harmony default export */ var checkbox_group_src_mainvue_type_script_lang_js_ = ({
4455
4452
  name: 'EsCheckboxGroup',
4456
4453
  inheritAttrs: false,
4457
4454
  inject: {
4458
4455
  esForm: {
4459
4456
  default: ''
4460
- },
4461
- sysCodes: {
4462
- default: ''
4463
4457
  }
4464
4458
  },
4465
4459
  props: {
@@ -4616,21 +4610,11 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
4616
4610
  handler: function handler() {
4617
4611
  this.url && this.getData(this.url);
4618
4612
  }
4619
- },
4620
- sysCodes: {
4621
- deep: true,
4622
- handler: function handler(val) {
4623
- if (this.canceled && val && (this.sysCode && val[this.sysCode] || this.dataKey && val[this.dataKey])) {
4624
- if (this.parseData) {
4625
- this.options = this.parseData(JSON.parse(JSON.stringify(val[this.sysCode || this.dataKey])));
4626
- } else {
4627
- this.options = JSON.parse(JSON.stringify(val[this.sysCode || this.dataKey]));
4628
- }
4629
- }
4630
- }
4631
4613
  }
4632
4614
  },
4633
- created: function created() {},
4615
+ created: function created() {
4616
+ this.bindEventBus();
4617
+ },
4634
4618
  mounted: function mounted() {},
4635
4619
 
4636
4620
  methods: {
@@ -4658,7 +4642,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
4658
4642
  if (res.rCode === 0) {
4659
4643
  _this2.options = JSON.parse(JSON.stringify(res.results));
4660
4644
  if (sysCode || _this2.dataKey) {
4661
- _this2.esForm && _this2.esForm.setSysCodes(sysCode || _this2.dataKey, JSON.parse(JSON.stringify(_this2.options)));
4645
+ bus.$emit(sysCode || _this2.dataKey, JSON.parse(JSON.stringify(_this2.options)));
4662
4646
  utils_store.set(sysCode, JSON.parse(JSON.stringify(res.results)));
4663
4647
  }
4664
4648
  } else {
@@ -4682,7 +4666,19 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
4682
4666
  this.$emit('input', this.valueType === 'object' ? res : res[this.valKey]);
4683
4667
  }
4684
4668
  return utils_util["a" /* default */].isObject(res) ? mainvue_type_script_lang_js_extends({}, attrs, res) : attrs;
4669
+ },
4670
+ setOptions: function setOptions(val) {
4671
+ this.options = val;
4672
+ },
4673
+ bindEventBus: function bindEventBus() {
4674
+ bus.$on(this.sysCode || this.dataKey, this.setOptions);
4675
+ },
4676
+ unbindEventBus: function unbindEventBus() {
4677
+ bus.$off(this.sysCode || this.dataKey, this.setOptions);
4685
4678
  }
4679
+ },
4680
+ beforeDestroy: function beforeDestroy() {
4681
+ this.unbindEventBus();
4686
4682
  }
4687
4683
  });
4688
4684
  // CONCATENATED MODULE: ./packages/checkbox-group/src/main.vue?vue&type=script&lang=js&
@@ -4697,8 +4693,8 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
4697
4693
 
4698
4694
  var checkbox_group_src_main_component = normalizeComponent(
4699
4695
  packages_checkbox_group_src_mainvue_type_script_lang_js_,
4700
- mainvue_type_template_id_667a17b1_render,
4701
- mainvue_type_template_id_667a17b1_staticRenderFns,
4696
+ mainvue_type_template_id_103e1959_render,
4697
+ mainvue_type_template_id_103e1959_staticRenderFns,
4702
4698
  false,
4703
4699
  null,
4704
4700
  null,
@@ -5533,8 +5529,8 @@ clients_src_main.install = function (Vue) {
5533
5529
  };
5534
5530
 
5535
5531
  /* harmony default export */ var clients = (clients_src_main);
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=094be154&
5537
- var mainvue_type_template_id_094be154_render = function () {
5532
+ // 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&
5533
+ var mainvue_type_template_id_2d512d7f_render = function () {
5538
5534
  var _vm = this
5539
5535
  var _h = _vm.$createElement
5540
5536
  var _c = _vm._self._c || _h
@@ -5549,7 +5545,6 @@ var mainvue_type_template_id_094be154_render = function () {
5549
5545
  expression: "tableLoading",
5550
5546
  },
5551
5547
  ],
5552
- ref: "esTableForm",
5553
5548
  tag: "component",
5554
5549
  staticClass: "es-data-table",
5555
5550
  attrs: {
@@ -5639,103 +5634,17 @@ var mainvue_type_template_id_094be154_render = function () {
5639
5634
  [
5640
5635
  _vm._t("prepend"),
5641
5636
  _vm._t("default"),
5642
- _vm.checkbox
5643
- ? _c(
5644
- "el-table-column",
5645
- _vm._b(
5646
- {},
5647
- "el-table-column",
5648
- {
5649
- type: "selection",
5650
- width: "55",
5651
- align: "center",
5652
- fixed: "left",
5653
- selectable: _vm.selectable,
5654
- reserveSelection: _vm.reserveSelection,
5655
- filterIcon: _vm.getIcon(),
5656
- },
5657
- false
5658
- )
5659
- )
5660
- : _vm._e(),
5661
- _vm.numbers
5662
- ? _c(
5663
- "el-table-column",
5664
- _vm._b(
5665
- {},
5666
- "el-table-column",
5667
- {
5668
- type: "index",
5669
- label: "序号",
5670
- width: "70",
5671
- align: "center",
5672
- fixed: "left",
5673
- index:
5674
- _vm.index === true
5675
- ? (_vm.config.pageNum - 1) *
5676
- _vm.config.pageSize +
5677
- 1
5678
- : _vm.index === false
5679
- ? 1
5680
- : _vm.index,
5681
- filterIcon: _vm.getIcon(),
5682
- },
5683
- false
5684
- )
5685
- )
5686
- : _vm._e(),
5687
- _vm._l(_vm.theads, function (items, indexs) {
5637
+ _vm._l(_vm.theads, function (item, index) {
5688
5638
  return [
5689
- items.hide !== true
5639
+ item.hide !== true
5690
5640
  ? [
5691
- items.type === "index"
5692
- ? _c(
5693
- "el-table-column",
5694
- _vm._b(
5695
- { key: indexs },
5696
- "el-table-column",
5697
- Object.assign(
5698
- {},
5699
- {
5700
- type: "index",
5701
- label: "序号",
5702
- width: "70",
5703
- align: "center",
5704
- fixed: "left",
5705
- index:
5706
- _vm.index === true
5707
- ? (_vm.config.pageNum - 1) *
5708
- _vm.config.pageSize +
5709
- 1
5710
- : _vm.index === false
5711
- ? 1
5712
- : _vm.index,
5713
- filterIcon: _vm.getIcon(),
5714
- },
5715
- items
5716
- ),
5717
- false
5718
- )
5719
- )
5720
- : items.type === "selection"
5641
+ item.type === "index" || item.type === "selection"
5721
5642
  ? _c(
5722
5643
  "el-table-column",
5723
5644
  _vm._b(
5724
- { key: indexs },
5645
+ { key: index },
5725
5646
  "el-table-column",
5726
- Object.assign(
5727
- {},
5728
- {
5729
- type: "selection",
5730
- width: "55",
5731
- align: "center",
5732
- fixed: "left",
5733
- selectable: _vm.selectable,
5734
- reserveSelection: _vm.reserveSelection,
5735
- filterIcon: _vm.getIcon(),
5736
- },
5737
- items
5738
- ),
5647
+ item,
5739
5648
  false
5740
5649
  )
5741
5650
  )
@@ -5743,21 +5652,18 @@ var mainvue_type_template_id_094be154_render = function () {
5743
5652
  "children",
5744
5653
  _vm._g(
5745
5654
  _vm._b(
5746
- { key: indexs },
5655
+ { key: item.label || item.title },
5747
5656
  "children",
5748
- {
5749
- name: _vm.name,
5750
- item: items,
5751
- width: items.width,
5752
- index: indexs,
5753
- readonly: _vm.readonly,
5754
- optionData: _vm.optionDatas,
5755
- form: _vm.form,
5756
- minWidth: _vm.minWidth,
5757
- filterIcon: _vm.getIcon(items.fixed),
5758
- children: items.children,
5759
- childHead: items.childHead,
5760
- },
5657
+ Object.assign(
5658
+ {},
5659
+ {
5660
+ name: _vm.name,
5661
+ indexs: index,
5662
+ form: _vm.form,
5663
+ optionData: _vm.optionDatas,
5664
+ },
5665
+ item
5666
+ ),
5761
5667
  false
5762
5668
  ),
5763
5669
  {
@@ -5870,14 +5776,14 @@ var mainvue_type_template_id_094be154_render = function () {
5870
5776
  1
5871
5777
  )
5872
5778
  }
5873
- var mainvue_type_template_id_094be154_staticRenderFns = []
5874
- mainvue_type_template_id_094be154_render._withStripped = true
5779
+ var mainvue_type_template_id_2d512d7f_staticRenderFns = []
5780
+ mainvue_type_template_id_2d512d7f_render._withStripped = true
5875
5781
 
5876
5782
 
5877
- // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=094be154&
5783
+ // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=2d512d7f&
5878
5784
 
5879
- // 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&
5880
- var childrenvue_type_template_id_796433ee_render = function () {
5785
+ // 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&
5786
+ var childrenvue_type_template_id_29bcbc72_render = function () {
5881
5787
  var _vm = this
5882
5788
  var _h = _vm.$createElement
5883
5789
  var _c = _vm._self._c || _h
@@ -5885,7 +5791,7 @@ var childrenvue_type_template_id_796433ee_render = function () {
5885
5791
  "column",
5886
5792
  _vm._g(_vm._b({}, "column", _vm.$attrs, false), _vm.$listeners),
5887
5793
  [
5888
- _vm.childrens && _vm.childrens.length
5794
+ _vm.childrens.length
5889
5795
  ? [
5890
5796
  _vm._l(_vm.childrens, function (item, index) {
5891
5797
  return [
@@ -5896,13 +5802,8 @@ var childrenvue_type_template_id_796433ee_render = function () {
5896
5802
  _vm._b(
5897
5803
  { key: index },
5898
5804
  "children",
5899
- Object.assign({}, _vm.$attrs, {
5900
- filterIcon: false,
5901
- item: item,
5902
- width: item.width,
5903
- index: index,
5904
- children: item.children,
5905
- childHead: item.childHead,
5805
+ Object.assign({}, _vm.$attrs, item, {
5806
+ indexs: index,
5906
5807
  }),
5907
5808
  false
5908
5809
  ),
@@ -5918,902 +5819,630 @@ var childrenvue_type_template_id_796433ee_render = function () {
5918
5819
  2
5919
5820
  )
5920
5821
  }
5921
- var childrenvue_type_template_id_796433ee_staticRenderFns = []
5922
- childrenvue_type_template_id_796433ee_render._withStripped = true
5822
+ var childrenvue_type_template_id_29bcbc72_staticRenderFns = []
5823
+ childrenvue_type_template_id_29bcbc72_render._withStripped = true
5923
5824
 
5924
5825
 
5925
- // CONCATENATED MODULE: ./packages/data-table/src/children.vue?vue&type=template&id=796433ee&
5826
+ // CONCATENATED MODULE: ./packages/data-table/src/children.vue?vue&type=template&id=29bcbc72&
5926
5827
 
5927
- // 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&
5928
- var columnvue_type_template_id_00ff0a77_render = function () {
5828
+ // 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=7363f6a6&
5829
+ var columnvue_type_template_id_7363f6a6_render = function () {
5929
5830
  var _vm = this
5930
5831
  var _h = _vm.$createElement
5931
5832
  var _c = _vm._self._c || _h
5932
- return _vm.showTemplate(_vm.item)
5933
- ? _c("el-table-column", {
5934
- directives: [
5935
- {
5936
- name: "show",
5937
- rawName: "v-show",
5938
- value: !_vm.item.hide,
5939
- expression: "!item.hide",
5940
- },
5941
- ],
5942
- attrs: {
5943
- "filter-icon": _vm.filterIcon,
5944
- label: _vm.item.title || _vm.item.label,
5945
- "label-key": _vm.item.labelKey,
5946
- "value-key": _vm.item.valueKey,
5947
- prop: _vm.item.field || _vm.item.prop,
5948
- fixed: _vm.item.fixed,
5949
- sortable: _vm.item.sortable || _vm.item.sort,
5950
- "column-key": _vm.item.columnKey,
5951
- width: _vm.width,
5952
- "min-width": _vm.item.minWidth,
5953
- "render-header": _vm.item.renderHeader,
5954
- "sort-method": _vm.item.sortMethod,
5955
- "sort-by": _vm.item.sortBy,
5956
- "sort-orders": _vm.item.sortOrders,
5957
- resizable: _vm.item.resizable,
5958
- formatter: _vm.item.formatter,
5959
- "show-overflow-tooltip": _vm.item.showOverflowTooltip,
5960
- align: _vm.item.align,
5961
- "header-align": _vm.item.headerAlign,
5962
- "class-name":
5963
- (_vm.item.className
5964
- ? _vm.item.className +
5965
- (_vm.item.type ? " es-table-" + _vm.item.type + "-box" : "")
5966
- : _vm.item.type
5967
- ? "es-table-" + _vm.item.type + "-box"
5968
- : "") + (_vm.item.showOverflowTooltip ? " es-text-ellipsis" : ""),
5969
- "label-class-name": _vm.item.required
5970
- ? "es-required" +
5971
- (_vm.item.labelClassName ? " " + _vm.item.labelClassName : "")
5972
- : _vm.item.labelClassName,
5973
- selectable: _vm.item.selectable,
5974
- "reserve-selection": _vm.item.reserveSelection,
5975
- filters: _vm.item.filters,
5976
- "filter-placement": _vm.item.filterPlacement,
5977
- "filter-multiple": _vm.item.filterMultiple,
5978
- "filter-method": _vm.item.filterMethod,
5979
- "filtered-value": _vm.item.filteredValue,
5980
- colspan: _vm.item.colspan,
5981
- rowspan: _vm.item.rowspan,
5982
- total: _vm.item.total,
5983
- },
5833
+ return _c(
5834
+ "el-table-column",
5835
+ _vm._b(
5836
+ {
5984
5837
  scopedSlots: _vm._u([
5985
5838
  {
5986
5839
  key: "default",
5987
5840
  fn: function (scope) {
5988
5841
  return [
5989
- _vm.form && _vm.item.type !== "handle"
5842
+ _vm.isForm && !_vm.isReadOnly(scope)
5990
5843
  ? [
5991
- _vm.isReadOnly(_vm.item, scope)
5992
- ? [
5993
- _vm.item.render
5994
- ? _c("expand-dom", {
5995
- attrs: {
5996
- column: _vm.item,
5997
- row: scope.row,
5998
- render: _vm.item.render,
5999
- index: _vm.index,
6000
- },
6001
- })
6002
- : [
6003
- _vm._v(
6004
- _vm._s(_vm.format(scope.row, _vm.item))
6005
- ),
6006
- ],
6007
- ]
6008
- : [
6009
- _vm.item.type === "slot"
6010
- ? _c("section", [_vm._t(_vm.item.prop)], 2)
6011
- : _c(
6012
- "el-form-item",
5844
+ _c(
5845
+ "el-form-item",
5846
+ {
5847
+ attrs: {
5848
+ name: _vm.name,
5849
+ prop: _vm.field || _vm.prop,
5850
+ rules: _vm.isNotRule(scope) ? [] : _vm.rules,
5851
+ index: scope.$index,
5852
+ },
5853
+ },
5854
+ [
5855
+ _vm.type === "select"
5856
+ ? _c(
5857
+ "es-select",
5858
+ _vm._b(
6013
5859
  {
6014
- attrs: {
6015
- name: _vm.name,
6016
- prop: _vm.item.field,
6017
- rules: _vm.isNotRule(_vm.item, scope)
6018
- ? []
6019
- : _vm.item.rules,
6020
- index: scope.$index,
5860
+ on: {
5861
+ blur: function (event) {
5862
+ _vm.handleBlur({
5863
+ item: _vm.config,
5864
+ event: event,
5865
+ data: scope.row,
5866
+ scope: scope,
5867
+ })
5868
+ },
5869
+ focus: function (event) {
5870
+ _vm.handleFocus({
5871
+ item: _vm.config,
5872
+ event: event,
5873
+ data: scope.row,
5874
+ scope: scope,
5875
+ })
5876
+ },
5877
+ change: function (value) {
5878
+ _vm.handleChange({
5879
+ item: _vm.config,
5880
+ name: _vm.field || _vm.prop,
5881
+ value: value,
5882
+ data: scope.row,
5883
+ scope: scope,
5884
+ })
5885
+ },
5886
+ },
5887
+ model: {
5888
+ value: scope.row[_vm.field || _vm.prop],
5889
+ callback: function ($$v) {
5890
+ _vm.$set(
5891
+ scope.row,
5892
+ _vm.field || _vm.prop,
5893
+ $$v
5894
+ )
5895
+ },
5896
+ expression: "scope.row[field || prop]",
6021
5897
  },
6022
5898
  },
6023
- [
6024
- _vm.item.type === "select"
6025
- ? _c(
6026
- "es-select",
6027
- _vm._b(
6028
- {
6029
- attrs: {
6030
- ajax: false,
6031
- data: _vm.item.data
6032
- ? _vm.item.data
6033
- : _vm.item.optionData
6034
- ? scope.row[
6035
- _vm.item.optionData
6036
- ]
6037
- : _vm.optionDatas[
6038
- _vm.item.field ||
6039
- _vm.item.prop
6040
- ],
6041
- },
6042
- on: {
6043
- blur: function (event) {
6044
- _vm.handleBlur({
6045
- item: _vm.item,
6046
- event: event,
6047
- data: scope.row,
6048
- scope: scope,
6049
- })
6050
- },
6051
- focus: function (event) {
6052
- _vm.handleFocus({
6053
- item: _vm.item,
6054
- event: event,
6055
- data: scope.row,
6056
- scope: scope,
6057
- })
6058
- },
6059
- change: function (value) {
6060
- _vm.handleChange({
6061
- item: _vm.item,
6062
- name:
6063
- _vm.item.field ||
6064
- _vm.item.prop,
6065
- value: value,
6066
- data: scope.row,
6067
- scope: scope,
6068
- })
6069
- },
6070
- },
6071
- model: {
6072
- value:
6073
- scope.row[_vm.item.field],
6074
- callback: function ($$v) {
6075
- _vm.$set(
6076
- scope.row,
6077
- _vm.item.field,
6078
- $$v
6079
- )
6080
- },
6081
- expression:
6082
- "scope.row[item.field]",
6083
- },
6084
- },
6085
- "es-select",
6086
- _vm.exclAttribute({
6087
- data: _vm.item,
6088
- attrs: "width",
6089
- }),
6090
- false
6091
- )
5899
+ "es-select",
5900
+ _vm.formOption,
5901
+ false
5902
+ )
5903
+ )
5904
+ : _vm.type == "cascader"
5905
+ ? _c(
5906
+ "es-cascader",
5907
+ _vm._b(
5908
+ {
5909
+ on: {
5910
+ blur: function (event) {
5911
+ _vm.handleBlur({
5912
+ item: _vm.config,
5913
+ event: event,
5914
+ data: scope.row,
5915
+ scope: scope,
5916
+ })
5917
+ },
5918
+ focus: function (event) {
5919
+ _vm.handleFocus({
5920
+ item: _vm.config,
5921
+ event: event,
5922
+ data: scope.row,
5923
+ scope: scope,
5924
+ })
5925
+ },
5926
+ change: function (value) {
5927
+ _vm.handleChange({
5928
+ item: _vm.config,
5929
+ name: _vm.field || _vm.prop,
5930
+ value: value,
5931
+ data: scope.row,
5932
+ scope: scope,
5933
+ })
5934
+ },
5935
+ },
5936
+ model: {
5937
+ value: scope.row[_vm.field || _vm.prop],
5938
+ callback: function ($$v) {
5939
+ _vm.$set(
5940
+ scope.row,
5941
+ _vm.field || _vm.prop,
5942
+ $$v
6092
5943
  )
6093
- : _vm.item.type == "cascader"
6094
- ? _c(
6095
- "es-cascader",
6096
- _vm._b(
6097
- {
6098
- attrs: {
6099
- data: _vm.item.data
6100
- ? _vm.item.data
6101
- : _vm.item.optionData
6102
- ? scope.row[
6103
- _vm.item.optionData
6104
- ]
6105
- : _vm.optionDatas[
6106
- _vm.item.field ||
6107
- _vm.item.prop
6108
- ],
6109
- },
6110
- on: {
6111
- blur: function (event) {
6112
- _vm.handleBlur({
6113
- item: _vm.item,
6114
- event: event,
6115
- data: scope.row,
6116
- scope: scope,
6117
- })
6118
- },
6119
- focus: function (event) {
6120
- _vm.handleFocus({
6121
- item: _vm.item,
6122
- event: event,
6123
- data: scope.row,
6124
- scope: scope,
6125
- })
6126
- },
6127
- change: function (value) {
6128
- _vm.handleChange({
6129
- item: _vm.item,
6130
- name:
6131
- _vm.item.field ||
6132
- _vm.item.prop,
6133
- value: value,
6134
- data: scope.row,
6135
- scope: scope,
6136
- })
6137
- },
6138
- },
6139
- model: {
6140
- value:
6141
- scope.row[_vm.item.field],
6142
- callback: function ($$v) {
6143
- _vm.$set(
6144
- scope.row,
6145
- _vm.item.field,
6146
- $$v
6147
- )
6148
- },
6149
- expression:
6150
- "scope.row[item.field]",
6151
- },
6152
- },
6153
- "es-cascader",
6154
- _vm.exclAttribute({
6155
- data: _vm.item,
6156
- attrs: "width",
6157
- }),
6158
- false
6159
- )
5944
+ },
5945
+ expression: "scope.row[field || prop]",
5946
+ },
5947
+ },
5948
+ "es-cascader",
5949
+ _vm.formOption,
5950
+ false
5951
+ )
5952
+ )
5953
+ : _vm.type === "ganged"
5954
+ ? _c(
5955
+ "es-select-ganged",
5956
+ _vm._b(
5957
+ {
5958
+ attrs: {
5959
+ data: _vm.init(_vm.option, _vm.config),
5960
+ },
5961
+ on: {
5962
+ change: function (value) {
5963
+ _vm.handleChange({
5964
+ name: _vm.field || _vm.prop,
5965
+ value: value,
5966
+ data: scope.row,
5967
+ item: _vm.item,
5968
+ })
5969
+ },
5970
+ },
5971
+ model: {
5972
+ value: scope.row[_vm.field || _vm.prop],
5973
+ callback: function ($$v) {
5974
+ _vm.$set(
5975
+ scope.row,
5976
+ _vm.field || _vm.prop,
5977
+ $$v
6160
5978
  )
6161
- : _vm.item.type === "ganged"
6162
- ? _c(
6163
- "es-select-ganged",
6164
- _vm._b(
6165
- {
6166
- attrs: {
6167
- data: _vm.init(
6168
- _vm.item.data
6169
- ? _vm.item.data
6170
- : _vm.item.optionData
6171
- ? scope.row[
6172
- _vm.item.optionData
6173
- ]
6174
- : _vm.optionDatas[
6175
- _vm.item.field ||
6176
- _vm.item.prop
6177
- ],
6178
- scope.row[_vm.item.field],
6179
- _vm.item
6180
- ),
6181
- },
6182
- on: {
6183
- change: function (value) {
6184
- _vm.handleChange({
6185
- name:
6186
- _vm.item.field ||
6187
- _vm.item.prop,
6188
- value: value,
6189
- data: scope.row,
6190
- item: _vm.item,
6191
- })
6192
- },
6193
- },
6194
- model: {
6195
- value:
6196
- scope.row[_vm.item.field],
6197
- callback: function ($$v) {
6198
- _vm.$set(
6199
- scope.row,
6200
- _vm.item.field,
6201
- $$v
6202
- )
6203
- },
6204
- expression:
6205
- "scope.row[item.field]",
6206
- },
6207
- },
6208
- "es-select-ganged",
6209
- _vm.exclAttribute({
6210
- data: _vm.item,
6211
- attrs: [
6212
- "width",
6213
- "url",
6214
- "sysCode",
6215
- ],
6216
- }),
6217
- false
6218
- )
5979
+ },
5980
+ expression: "scope.row[field || prop]",
5981
+ },
5982
+ },
5983
+ "es-select-ganged",
5984
+ _vm.exclAttribute({
5985
+ data: _vm.config,
5986
+ attrs: ["width", "url", "sysCode"],
5987
+ }),
5988
+ false
5989
+ )
5990
+ )
5991
+ : _vm.type === "radio"
5992
+ ? _c(
5993
+ "es-radio-group",
5994
+ _vm._b(
5995
+ {
5996
+ on: {
5997
+ change: function (value) {
5998
+ _vm.handleChange({
5999
+ item: _vm.config,
6000
+ name: _vm.field || _vm.prop,
6001
+ value: value,
6002
+ data: scope.row,
6003
+ })
6004
+ },
6005
+ },
6006
+ model: {
6007
+ value: scope.row[_vm.field || _vm.prop],
6008
+ callback: function ($$v) {
6009
+ _vm.$set(
6010
+ scope.row,
6011
+ _vm.field || _vm.prop,
6012
+ $$v
6219
6013
  )
6220
- : _vm.item.type === "radio"
6221
- ? _c(
6222
- "es-radio-group",
6223
- _vm._b(
6224
- {
6225
- attrs: {
6226
- data: _vm.item.data
6227
- ? _vm.item.data
6228
- : _vm.item.optionData
6229
- ? scope.row[
6230
- _vm.item.optionData
6231
- ]
6232
- : _vm.optionDatas[
6233
- _vm.item.field ||
6234
- _vm.item.prop
6235
- ],
6236
- ajax: false,
6237
- },
6238
- on: {
6239
- change: function (value) {
6240
- _vm.handleChange({
6241
- item: _vm.item,
6242
- name:
6243
- _vm.item.field ||
6244
- _vm.item.prop,
6245
- value: value,
6246
- data: scope.row,
6247
- })
6248
- },
6249
- },
6250
- model: {
6251
- value:
6252
- scope.row[_vm.item.field],
6253
- callback: function ($$v) {
6254
- _vm.$set(
6255
- scope.row,
6256
- _vm.item.field,
6257
- $$v
6258
- )
6259
- },
6260
- expression:
6261
- "scope.row[item.field]",
6262
- },
6263
- },
6264
- "es-radio-group",
6265
- _vm.exclAttribute({
6266
- data: _vm.item,
6267
- attrs: "width",
6268
- }),
6269
- false
6270
- )
6014
+ },
6015
+ expression: "scope.row[field || prop]",
6016
+ },
6017
+ },
6018
+ "es-radio-group",
6019
+ _vm.formOption,
6020
+ false
6021
+ )
6022
+ )
6023
+ : _vm.type === "checkbox"
6024
+ ? _c(
6025
+ "es-checkbox-group",
6026
+ _vm._b(
6027
+ {
6028
+ on: {
6029
+ change: function (value) {
6030
+ _vm.handleChange({
6031
+ item: _vm.config,
6032
+ name: _vm.field || _vm.prop,
6033
+ value: value,
6034
+ data: scope.row,
6035
+ })
6036
+ },
6037
+ },
6038
+ model: {
6039
+ value: scope.row[_vm.field || _vm.prop],
6040
+ callback: function ($$v) {
6041
+ _vm.$set(
6042
+ scope.row,
6043
+ _vm.field || _vm.prop,
6044
+ $$v
6271
6045
  )
6272
- : _vm.item.type === "checkbox"
6273
- ? _c(
6274
- "es-checkbox-group",
6275
- _vm._b(
6276
- {
6277
- attrs: {
6278
- data: _vm.item.data
6279
- ? _vm.item.data
6280
- : _vm.item.optionData
6281
- ? scope.row[
6282
- _vm.item.optionData
6283
- ]
6284
- : _vm.optionDatas[
6285
- _vm.item.field ||
6286
- _vm.item.prop
6287
- ],
6288
- ajax: false,
6289
- },
6290
- on: {
6291
- change: function (value) {
6292
- _vm.handleChange({
6293
- item: _vm.item,
6294
- name:
6295
- _vm.item.field ||
6296
- _vm.item.prop,
6297
- value: value,
6298
- data: scope.row,
6299
- })
6300
- },
6301
- },
6302
- model: {
6303
- value:
6304
- scope.row[_vm.item.field],
6305
- callback: function ($$v) {
6306
- _vm.$set(
6307
- scope.row,
6308
- _vm.item.field,
6309
- $$v
6310
- )
6311
- },
6312
- expression:
6313
- "scope.row[item.field]",
6314
- },
6315
- },
6316
- "es-checkbox-group",
6317
- _vm.exclAttribute({
6318
- data: _vm.item,
6319
- attrs: "width",
6320
- }),
6321
- false
6322
- )
6046
+ },
6047
+ expression: "scope.row[field || prop]",
6048
+ },
6049
+ },
6050
+ "es-checkbox-group",
6051
+ _vm.formOption,
6052
+ false
6053
+ )
6054
+ )
6055
+ : _vm.type === "switch"
6056
+ ? _c(
6057
+ "es-switch",
6058
+ _vm._b(
6059
+ {
6060
+ on: {
6061
+ change: function (value) {
6062
+ _vm.handleChange({
6063
+ item: _vm.config,
6064
+ name: _vm.field || _vm.prop,
6065
+ value: value,
6066
+ data: scope.row,
6067
+ })
6068
+ },
6069
+ },
6070
+ model: {
6071
+ value: scope.row[_vm.field || _vm.prop],
6072
+ callback: function ($$v) {
6073
+ _vm.$set(
6074
+ scope.row,
6075
+ _vm.field || _vm.prop,
6076
+ $$v
6323
6077
  )
6324
- : _vm.item.type === "switch"
6325
- ? _c(
6326
- "es-switch",
6327
- _vm._b(
6328
- {
6329
- attrs: {
6330
- data: _vm.item.data
6331
- ? _vm.item.data
6332
- : _vm.item.optionData
6333
- ? scope.row[
6334
- _vm.item.optionData
6335
- ]
6336
- : _vm.optionDatas[
6337
- _vm.item.field ||
6338
- _vm.item.prop
6339
- ],
6340
- },
6341
- on: {
6342
- change: function (value) {
6343
- _vm.handleChange({
6344
- item: _vm.item,
6345
- name:
6346
- _vm.item.field ||
6347
- _vm.item.prop,
6348
- value: value,
6349
- data: scope.row,
6350
- })
6351
- },
6352
- },
6353
- model: {
6354
- value:
6355
- scope.row[_vm.item.field],
6356
- callback: function ($$v) {
6357
- _vm.$set(
6358
- scope.row,
6359
- _vm.item.field,
6360
- $$v
6361
- )
6362
- },
6363
- expression:
6364
- "scope.row[item.field]",
6365
- },
6366
- },
6367
- "es-switch",
6368
- _vm.exclAttribute({
6369
- data: _vm.item,
6370
- attrs: "width",
6371
- }),
6372
- false
6373
- )
6078
+ },
6079
+ expression: "scope.row[field || prop]",
6080
+ },
6081
+ },
6082
+ "es-switch",
6083
+ _vm.formOption,
6084
+ false
6085
+ )
6086
+ )
6087
+ : _vm.config.date ||
6088
+ _vm.type == "date" ||
6089
+ _vm.type == "year" ||
6090
+ _vm.type == "month" ||
6091
+ _vm.type == "date" ||
6092
+ _vm.type == "dates" ||
6093
+ _vm.type == "week" ||
6094
+ _vm.type == "datetime" ||
6095
+ _vm.type == "datetimerange" ||
6096
+ _vm.type == "daterange" ||
6097
+ _vm.type == "monthrange" ||
6098
+ _vm.type == "quarter" ||
6099
+ _vm.type == "halfyear"
6100
+ ? _c(
6101
+ "es-date-picker",
6102
+ _vm._b(
6103
+ {
6104
+ on: {
6105
+ blur: function (event) {
6106
+ _vm.handleBlur({
6107
+ item: _vm.config,
6108
+ event: event,
6109
+ data: scope.row,
6110
+ scope: scope,
6111
+ })
6112
+ },
6113
+ focus: function (event) {
6114
+ _vm.handleFocus({
6115
+ item: _vm.config,
6116
+ event: event,
6117
+ data: scope.row,
6118
+ scope: scope,
6119
+ })
6120
+ },
6121
+ change: function (value) {
6122
+ _vm.handleChange({
6123
+ item: _vm.config,
6124
+ name: _vm.field || _vm.prop,
6125
+ value: value,
6126
+ data: scope.row,
6127
+ scope: scope,
6128
+ })
6129
+ },
6130
+ },
6131
+ model: {
6132
+ value: scope.row[_vm.field || _vm.prop],
6133
+ callback: function ($$v) {
6134
+ _vm.$set(
6135
+ scope.row,
6136
+ _vm.field || _vm.prop,
6137
+ $$v
6374
6138
  )
6375
- : _vm.item.date ||
6376
- _vm.item.type == "date" ||
6377
- _vm.item.type == "year" ||
6378
- _vm.item.type == "month" ||
6379
- _vm.item.type == "date" ||
6380
- _vm.item.type == "dates" ||
6381
- _vm.item.type == "week" ||
6382
- _vm.item.type == "datetime" ||
6383
- _vm.item.type == "datetimerange" ||
6384
- _vm.item.type == "daterange" ||
6385
- _vm.item.type == "monthrange" ||
6386
- _vm.item.type == "quarter" ||
6387
- _vm.item.type == "halfyear"
6388
- ? _c(
6389
- "es-date-picker",
6390
- _vm._b(
6391
- {
6392
- on: {
6393
- blur: function (event) {
6394
- _vm.handleBlur({
6395
- item: _vm.item,
6396
- event: event,
6397
- data: scope.row,
6398
- scope: scope,
6399
- })
6400
- },
6401
- focus: function (event) {
6402
- _vm.handleFocus({
6403
- item: _vm.item,
6404
- event: event,
6405
- data: scope.row,
6406
- scope: scope,
6407
- })
6408
- },
6409
- change: function (value) {
6410
- _vm.handleChange({
6411
- item: _vm.item,
6412
- name:
6413
- _vm.item.field ||
6414
- _vm.item.prop,
6415
- value: value,
6416
- data: scope.row,
6417
- scope: scope,
6418
- })
6419
- },
6420
- },
6421
- model: {
6422
- value:
6423
- scope.row[_vm.item.field],
6424
- callback: function ($$v) {
6425
- _vm.$set(
6426
- scope.row,
6427
- _vm.item.field,
6428
- $$v
6429
- )
6430
- },
6431
- expression:
6432
- "scope.row[item.field]",
6433
- },
6434
- },
6435
- "es-date-picker",
6436
- _vm.exclAttribute({
6437
- data: _vm.item,
6438
- attrs: "width",
6439
- }),
6440
- false
6441
- )
6139
+ },
6140
+ expression: "scope.row[field || prop]",
6141
+ },
6142
+ },
6143
+ "es-date-picker",
6144
+ _vm.formOption,
6145
+ false
6146
+ )
6147
+ )
6148
+ : _vm.type == "number"
6149
+ ? _c(
6150
+ "es-input-number",
6151
+ _vm._b(
6152
+ {
6153
+ on: {
6154
+ blur: function (event) {
6155
+ _vm.handleBlur({
6156
+ item: _vm.config,
6157
+ event: event,
6158
+ data: scope.row,
6159
+ scope: scope,
6160
+ })
6161
+ },
6162
+ focus: function (event) {
6163
+ _vm.handleFocus({
6164
+ item: _vm.config,
6165
+ event: event,
6166
+ data: scope.row,
6167
+ scope: scope,
6168
+ })
6169
+ },
6170
+ change: function (value) {
6171
+ _vm.handleChange({
6172
+ item: _vm.config,
6173
+ name: _vm.field || _vm.prop,
6174
+ value: value,
6175
+ data: scope.row,
6176
+ scope: scope,
6177
+ })
6178
+ },
6179
+ },
6180
+ model: {
6181
+ value: scope.row[_vm.field || _vm.prop],
6182
+ callback: function ($$v) {
6183
+ _vm.$set(
6184
+ scope.row,
6185
+ _vm.field || _vm.prop,
6186
+ $$v
6442
6187
  )
6443
- : _vm.item.type == "number"
6444
- ? _c(
6445
- "es-input-number",
6446
- _vm._b(
6447
- {
6448
- on: {
6449
- blur: function (event) {
6450
- _vm.handleBlur({
6451
- item: _vm.item,
6452
- event: event,
6453
- data: scope.row,
6454
- scope: scope,
6455
- })
6456
- },
6457
- focus: function (event) {
6458
- _vm.handleFocus({
6459
- item: _vm.item,
6460
- event: event,
6461
- data: scope.row,
6462
- scope: scope,
6463
- })
6464
- },
6465
- change: function (value) {
6466
- _vm.handleChange({
6467
- item: _vm.item,
6468
- name:
6469
- _vm.item.field ||
6470
- _vm.item.prop,
6471
- value: value,
6472
- data: scope.row,
6473
- scope: scope,
6474
- })
6475
- },
6476
- },
6477
- model: {
6478
- value:
6479
- scope.row[_vm.item.field],
6480
- callback: function ($$v) {
6481
- _vm.$set(
6482
- scope.row,
6483
- _vm.item.field,
6484
- $$v
6485
- )
6486
- },
6487
- expression:
6488
- "scope.row[item.field]",
6489
- },
6490
- },
6491
- "es-input-number",
6492
- _vm.exclAttribute({
6493
- data: _vm.item,
6494
- attrs: "width",
6495
- }),
6496
- false
6188
+ },
6189
+ expression: "scope.row[field || prop]",
6190
+ },
6191
+ },
6192
+ "es-input-number",
6193
+ _vm.formOption,
6194
+ false
6195
+ )
6196
+ )
6197
+ : _vm.type == "selector"
6198
+ ? _c(
6199
+ "es-selector",
6200
+ _vm._g(
6201
+ _vm._b(
6202
+ {
6203
+ on: {
6204
+ change: function (value) {
6205
+ _vm.handleChange({
6206
+ item: _vm.config,
6207
+ name: _vm.field || _vm.prop,
6208
+ value: value,
6209
+ data: scope.row,
6210
+ })
6211
+ },
6212
+ },
6213
+ model: {
6214
+ value: scope.row[_vm.field || _vm.prop],
6215
+ callback: function ($$v) {
6216
+ _vm.$set(
6217
+ scope.row,
6218
+ _vm.field || _vm.prop,
6219
+ $$v
6497
6220
  )
6498
- )
6499
- : _vm.item.type == "selector"
6500
- ? _c(
6501
- "es-selector",
6502
- _vm._g(
6221
+ },
6222
+ expression: "scope.row[field || prop]",
6223
+ },
6224
+ },
6225
+ "es-selector",
6226
+ _vm.formOption,
6227
+ false
6228
+ ),
6229
+ _vm.exclAttribute({
6230
+ data: _vm.events,
6231
+ attrs: "change",
6232
+ })
6233
+ )
6234
+ )
6235
+ : _vm.type === "text" || _vm.type === "textarea"
6236
+ ? [
6237
+ _vm.config.lazy
6238
+ ? [
6239
+ _vm.type === "text"
6240
+ ? _c(
6241
+ "input",
6503
6242
  _vm._b(
6504
6243
  {
6244
+ directives: [
6245
+ {
6246
+ name: "model",
6247
+ rawName: "v-model.lazy",
6248
+ value: scope.row[_vm.field],
6249
+ expression:
6250
+ "scope.row[field]",
6251
+ modifiers: { lazy: true },
6252
+ },
6253
+ ],
6254
+ staticClass: "el-input__inner",
6255
+ domProps: {
6256
+ value: scope.row[_vm.field],
6257
+ },
6505
6258
  on: {
6506
- change: function (value) {
6507
- _vm.handleChange({
6508
- item: _vm.item,
6509
- name:
6510
- _vm.item.field ||
6511
- _vm.item.prop,
6512
- value: value,
6259
+ blur: function (event) {
6260
+ _vm.handleBlur({
6261
+ item: _vm.config,
6262
+ event: event,
6513
6263
  data: scope.row,
6264
+ scope: scope,
6514
6265
  })
6515
6266
  },
6516
- },
6517
- model: {
6518
- value:
6519
- scope.row[_vm.item.field],
6520
- callback: function ($$v) {
6521
- _vm.$set(
6522
- scope.row,
6523
- _vm.item.field,
6524
- $$v
6525
- )
6267
+ focus: function (event) {
6268
+ _vm.handleFocus({
6269
+ item: _vm.config,
6270
+ event: event,
6271
+ data: scope.row,
6272
+ scope: scope,
6273
+ })
6526
6274
  },
6527
- expression:
6528
- "scope.row[item.field]",
6275
+ change: [
6276
+ function ($event) {
6277
+ _vm.$set(
6278
+ scope.row,
6279
+ _vm.field,
6280
+ $event.target.value
6281
+ )
6282
+ },
6283
+ function (value) {
6284
+ _vm.handleChange({
6285
+ item: _vm.config,
6286
+ name:
6287
+ _vm.field || _vm.prop,
6288
+ value: value,
6289
+ data: scope.row,
6290
+ scope: scope,
6291
+ })
6292
+ },
6293
+ ],
6529
6294
  },
6530
6295
  },
6531
- "es-selector",
6532
- _vm.exclAttribute({
6533
- data: _vm.item,
6534
- attrs: "width",
6535
- }),
6296
+ "input",
6297
+ _vm.formOption,
6536
6298
  false
6537
- ),
6538
- _vm.exclAttribute({
6539
- data: _vm.item.events,
6540
- attrs: "change",
6541
- })
6299
+ )
6542
6300
  )
6543
- )
6544
- : _vm.item.type === "text" ||
6545
- _vm.item.type === "textarea"
6546
- ? [
6547
- _vm.item.lazy
6548
- ? [
6549
- _vm.item.type === "text"
6550
- ? _c(
6551
- "input",
6552
- _vm._b(
6553
- {
6554
- directives: [
6555
- {
6556
- name: "model",
6557
- rawName:
6558
- "v-model.lazy",
6559
- value:
6560
- scope.row[
6561
- _vm.item.field
6562
- ],
6563
- expression:
6564
- "scope.row[item.field]",
6565
- modifiers: {
6566
- lazy: true,
6567
- },
6568
- },
6569
- ],
6570
- staticClass:
6571
- "el-input__inner",
6572
- domProps: {
6573
- value:
6574
- scope.row[
6575
- _vm.item.field
6576
- ],
6577
- },
6578
- on: {
6579
- blur: function (
6580
- event
6581
- ) {
6582
- _vm.handleBlur({
6583
- item: _vm.item,
6584
- event: event,
6585
- data: scope.row,
6586
- scope: scope,
6587
- })
6588
- },
6589
- focus: function (
6590
- event
6591
- ) {
6592
- _vm.handleFocus({
6593
- item: _vm.item,
6594
- event: event,
6595
- data: scope.row,
6596
- scope: scope,
6597
- })
6598
- },
6599
- change: [
6600
- function (
6601
- $event
6602
- ) {
6603
- _vm.$set(
6604
- scope.row,
6605
- _vm.item
6606
- .field,
6607
- $event.target
6608
- .value
6609
- )
6610
- },
6611
- function (value) {
6612
- _vm.handleChange(
6613
- {
6614
- item: _vm.item,
6615
- name:
6616
- _vm.item
6617
- .field ||
6618
- _vm.item
6619
- .prop,
6620
- value:
6621
- value,
6622
- data: scope.row,
6623
- scope:
6624
- scope,
6625
- }
6626
- )
6627
- },
6628
- ],
6629
- },
6630
- },
6631
- "input",
6632
- _vm.exclAttribute({
6633
- data: _vm.item,
6634
- attrs: "width",
6635
- }),
6636
- false
6637
- )
6638
- )
6639
- : _c(
6640
- "textarea",
6641
- _vm._b(
6642
- {
6643
- directives: [
6644
- {
6645
- name: "model",
6646
- rawName:
6647
- "v-model.lazy",
6648
- value:
6649
- scope.row[
6650
- _vm.item.field
6651
- ],
6652
- expression:
6653
- "scope.row[item.field]",
6654
- modifiers: {
6655
- lazy: true,
6656
- },
6657
- },
6658
- ],
6659
- staticClass:
6660
- "el-textarea__inner",
6661
- domProps: {
6662
- value:
6663
- scope.row[
6664
- _vm.item.field
6665
- ],
6666
- },
6667
- on: {
6668
- blur: function (
6669
- event
6670
- ) {
6671
- _vm.handleBlur({
6672
- item: _vm.item,
6673
- event: event,
6674
- data: scope.row,
6675
- scope: scope,
6676
- })
6677
- },
6678
- focus: function (
6679
- event
6680
- ) {
6681
- _vm.handleFocus({
6682
- item: _vm.item,
6683
- event: event,
6684
- data: scope.row,
6685
- scope: scope,
6686
- })
6687
- },
6688
- change: [
6689
- function (
6690
- $event
6691
- ) {
6692
- _vm.$set(
6693
- scope.row,
6694
- _vm.item
6695
- .field,
6696
- $event.target
6697
- .value
6698
- )
6699
- },
6700
- function (value) {
6701
- _vm.handleChange(
6702
- {
6703
- item: _vm.item,
6704
- name:
6705
- _vm.item
6706
- .field ||
6707
- _vm.item
6708
- .prop,
6709
- value:
6710
- value,
6711
- data: scope.row,
6712
- scope:
6713
- scope,
6714
- }
6715
- )
6716
- },
6717
- ],
6718
- },
6719
- },
6720
- "textarea",
6721
- _vm.exclAttribute({
6722
- data: _vm.item,
6723
- attrs: "width",
6724
- }),
6725
- false
6726
- )
6727
- ),
6728
- ]
6729
- : _c(
6730
- "es-input",
6731
- _vm._b(
6301
+ : _c(
6302
+ "textarea",
6303
+ _vm._b(
6304
+ {
6305
+ directives: [
6732
6306
  {
6733
- attrs: { scope: scope },
6734
- on: {
6735
- blur: function (event) {
6736
- _vm.handleBlur({
6737
- item: _vm.item,
6738
- event: event,
6739
- data: scope.row,
6740
- scope: scope,
6741
- })
6742
- },
6743
- focus: function (event) {
6744
- _vm.handleFocus({
6745
- item: _vm.item,
6746
- event: event,
6747
- data: scope.row,
6748
- scope: scope,
6749
- })
6750
- },
6751
- change: function (value) {
6752
- _vm.handleChange({
6753
- item: _vm.item,
6754
- name:
6755
- _vm.item.field ||
6756
- _vm.item.prop,
6757
- value: value,
6758
- data: scope.row,
6759
- scope: scope,
6760
- })
6761
- },
6307
+ name: "model",
6308
+ rawName: "v-model.lazy",
6309
+ value: scope.row[_vm.field],
6310
+ expression:
6311
+ "scope.row[field]",
6312
+ modifiers: { lazy: true },
6313
+ },
6314
+ ],
6315
+ staticClass:
6316
+ "el-textarea__inner",
6317
+ domProps: {
6318
+ value: scope.row[_vm.field],
6319
+ },
6320
+ on: {
6321
+ blur: function (event) {
6322
+ _vm.handleBlur({
6323
+ item: _vm.config,
6324
+ event: event,
6325
+ data: scope.row,
6326
+ scope: scope,
6327
+ })
6328
+ },
6329
+ focus: function (event) {
6330
+ _vm.handleFocus({
6331
+ item: _vm.config,
6332
+ event: event,
6333
+ data: scope.row,
6334
+ scope: scope,
6335
+ })
6336
+ },
6337
+ change: [
6338
+ function ($event) {
6339
+ _vm.$set(
6340
+ scope.row,
6341
+ _vm.field,
6342
+ $event.target.value
6343
+ )
6762
6344
  },
6763
- model: {
6764
- value:
6765
- scope.row[
6766
- _vm.item.field
6767
- ],
6768
- callback: function ($$v) {
6769
- _vm.$set(
6770
- scope.row,
6771
- _vm.item.field,
6772
- $$v
6773
- )
6774
- },
6775
- expression:
6776
- "scope.row[item.field]",
6345
+ function (value) {
6346
+ _vm.handleChange({
6347
+ item: _vm.config,
6348
+ name:
6349
+ _vm.field || _vm.prop,
6350
+ value: value,
6351
+ data: scope.row,
6352
+ scope: scope,
6353
+ })
6777
6354
  },
6778
- },
6779
- "es-input",
6780
- _vm.exclAttribute({
6781
- data: _vm.item,
6782
- attrs: "width",
6783
- }),
6784
- false
6785
- )
6786
- ),
6787
- ]
6788
- : _vm._e(),
6789
- ],
6790
- 2
6791
- ),
6792
- ],
6355
+ ],
6356
+ },
6357
+ },
6358
+ "textarea",
6359
+ _vm.formOption,
6360
+ false
6361
+ )
6362
+ ),
6363
+ ]
6364
+ : _c(
6365
+ "es-input",
6366
+ _vm._b(
6367
+ {
6368
+ attrs: { scope: scope },
6369
+ on: {
6370
+ blur: function (event) {
6371
+ _vm.handleBlur({
6372
+ item: _vm.config,
6373
+ event: event,
6374
+ data: scope.row,
6375
+ scope: scope,
6376
+ })
6377
+ },
6378
+ focus: function (event) {
6379
+ _vm.handleFocus({
6380
+ item: _vm.config,
6381
+ event: event,
6382
+ data: scope.row,
6383
+ scope: scope,
6384
+ })
6385
+ },
6386
+ change: function (value) {
6387
+ _vm.handleChange({
6388
+ item: _vm.config,
6389
+ name: _vm.field || _vm.prop,
6390
+ value: value,
6391
+ data: scope.row,
6392
+ scope: scope,
6393
+ })
6394
+ },
6395
+ },
6396
+ model: {
6397
+ value:
6398
+ scope.row[_vm.field || _vm.prop],
6399
+ callback: function ($$v) {
6400
+ _vm.$set(
6401
+ scope.row,
6402
+ _vm.field || _vm.prop,
6403
+ $$v
6404
+ )
6405
+ },
6406
+ expression:
6407
+ "scope.row[field || prop]",
6408
+ },
6409
+ },
6410
+ "es-input",
6411
+ _vm.formOption,
6412
+ false
6413
+ )
6414
+ ),
6415
+ ]
6416
+ : _vm._e(),
6417
+ ],
6418
+ 2
6419
+ ),
6793
6420
  ]
6794
- : _vm._e(),
6795
- _vm.item.type === "handle" && !scope.row.hideHandle
6421
+ : _vm.type === "handle" && !scope.row.hideHandle
6796
6422
  ? _c(
6797
6423
  "es-button-group",
6798
6424
  _vm._b(
6799
6425
  {
6800
6426
  attrs: {
6801
6427
  stop: "",
6802
- contents: _vm.item.contents || _vm.item.events,
6428
+ contents: _vm.contents || _vm.events,
6803
6429
  data: scope.row,
6804
6430
  },
6805
6431
  on: { handleClick: _vm.handleClick },
6806
6432
  model: {
6807
- value: _vm.width,
6433
+ value: _vm.btnWidth,
6808
6434
  callback: function ($$v) {
6809
- _vm.width = $$v
6435
+ _vm.btnWidth = $$v
6810
6436
  },
6811
- expression: "width",
6437
+ expression: "btnWidth",
6812
6438
  },
6813
6439
  },
6814
6440
  "es-button-group",
6815
6441
  _vm.exclAttribute({
6816
- data: _vm.item,
6442
+ data: Object.assign({}, _vm.config, {
6443
+ prop: this.prop,
6444
+ field: this.field,
6445
+ }),
6817
6446
  attrs: [
6818
6447
  "contents",
6819
6448
  "events",
@@ -6826,117 +6455,68 @@ var columnvue_type_template_id_00ff0a77_render = function () {
6826
6455
  false
6827
6456
  )
6828
6457
  )
6829
- : _vm._e(),
6458
+ : _vm.render
6459
+ ? _c("expand-dom", {
6460
+ attrs: {
6461
+ column: Object.assign({}, _vm.config, {
6462
+ prop: this.prop,
6463
+ field: this.field,
6464
+ }),
6465
+ row: scope.row,
6466
+ render: _vm.render,
6467
+ index: _vm.indexs,
6468
+ },
6469
+ })
6470
+ : _vm.dateFormat
6471
+ ? [
6472
+ _vm._v(
6473
+ "\n " +
6474
+ _vm._s(
6475
+ _vm.formatDate(
6476
+ scope.row[_vm.field || _vm.prop],
6477
+ _vm.dateFormat
6478
+ )
6479
+ ) +
6480
+ "\n "
6481
+ ),
6482
+ ]
6483
+ : _c(
6484
+ "span",
6485
+ {
6486
+ style: _vm.styles
6487
+ ? _vm.styles[scope.row[_vm.prop]]
6488
+ : {},
6489
+ },
6490
+ [_vm._v(_vm._s(_vm.format(scope.row)))]
6491
+ ),
6830
6492
  ]
6831
6493
  },
6832
6494
  },
6833
6495
  ]),
6834
- })
6835
- : _c(
6836
- "el-table-column",
6837
- {
6838
- directives: [
6839
- {
6840
- name: "show",
6841
- rawName: "v-show",
6842
- value: !_vm.item.hide,
6843
- expression: "!item.hide",
6844
- },
6845
- ],
6846
- key: _vm.index,
6847
- attrs: {
6848
- "filter-icon": _vm.filterIcon,
6849
- label: _vm.item.title || _vm.item.label,
6850
- "label-key": _vm.item.labelKey,
6851
- "value-key": _vm.item.valueKey,
6852
- prop: _vm.item.field || _vm.item.prop,
6853
- fixed: _vm.item.fixed,
6854
- sortable: _vm.item.sortable || _vm.item.sort,
6855
- index: _vm.item.index,
6856
- "column-key": _vm.item.columnKey,
6857
- width: _vm.item.width,
6858
- "min-width": _vm.item.minWidth,
6859
- "render-header": _vm.item.renderHeader,
6860
- "sort-method": _vm.item.sortMethod,
6861
- "sort-by": _vm.item.sortBy,
6862
- "sort-orders": _vm.item.sortOrders,
6863
- resizable: _vm.item.resizable,
6864
- formatter: _vm.item.formatter,
6865
- "show-overflow-tooltip": _vm.item.showOverflowTooltip,
6866
- align: _vm.item.align,
6867
- "header-align": _vm.item.headerAlign,
6868
- "class-name": _vm.item.className,
6869
- "label-class-name": _vm.item.labelClassName,
6870
- selectable: _vm.item.selectable,
6871
- "reserve-selection": _vm.item.reserveSelection,
6872
- filters: _vm.item.filters,
6873
- "filter-placement": _vm.item.filterPlacement,
6874
- "filter-multiple": _vm.item.filterMultiple,
6875
- "filter-method": _vm.item.filterMethod,
6876
- "filtered-value": _vm.item.filteredValue,
6877
- colspan: _vm.item.colspan,
6878
- rowspan: _vm.item.rowspan,
6879
- total: _vm.item.total,
6880
- },
6881
- scopedSlots: _vm._u([
6882
- {
6883
- key: "default",
6884
- fn: function (scope) {
6885
- return [
6886
- _vm.item.render
6887
- ? _c("expand-dom", {
6888
- attrs: {
6889
- column: _vm.item,
6890
- row: scope.row,
6891
- render: _vm.item.render,
6892
- index: _vm.index,
6893
- },
6894
- })
6895
- : [
6896
- _vm._v(
6897
- _vm._s(
6898
- _vm.item.formatDate
6899
- ? _vm.formatDate(
6900
- scope.row[_vm.item.field || _vm.item.prop],
6901
- _vm.item.formatDate
6902
- )
6903
- : _vm.format(scope.row, _vm.item)
6904
- )
6905
- ),
6906
- ],
6907
- ]
6908
- },
6909
- },
6910
- ]),
6911
- },
6912
- [_vm._t("default")],
6913
- 2
6914
- )
6496
+ },
6497
+ "el-table-column",
6498
+ _vm.config,
6499
+ false
6500
+ ),
6501
+ [_vm._t("default")],
6502
+ 2
6503
+ )
6915
6504
  }
6916
- var columnvue_type_template_id_00ff0a77_staticRenderFns = []
6917
- columnvue_type_template_id_00ff0a77_render._withStripped = true
6505
+ var columnvue_type_template_id_7363f6a6_staticRenderFns = []
6506
+ columnvue_type_template_id_7363f6a6_render._withStripped = true
6918
6507
 
6919
6508
 
6920
- // CONCATENATED MODULE: ./packages/data-table/src/column.vue?vue&type=template&id=00ff0a77&
6509
+ // CONCATENATED MODULE: ./packages/data-table/src/column.vue?vue&type=template&id=7363f6a6&
6921
6510
 
6922
6511
  // EXTERNAL MODULE: external "babel-runtime/regenerator"
6923
6512
  var regenerator_ = __webpack_require__(2);
6924
6513
  var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator_);
6925
6514
 
6926
- // CONCATENATED MODULE: ./packages/data-table/src/mixins/table.js
6927
- /* harmony default export */ var mixins_table = ({
6928
- methods: {
6929
- showTemplate: function showTemplate(item) {
6930
- if (item.type) {
6931
- item.type.toLowerCase();
6932
- }
6933
- 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;
6934
- }
6935
- }
6936
- });
6937
6515
  // 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&
6938
6516
 
6939
6517
 
6518
+ 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; };
6519
+
6940
6520
  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"); }); }; }
6941
6521
 
6942
6522
  //
@@ -7345,158 +6925,6 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
7345
6925
  //
7346
6926
  //
7347
6927
  //
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
- //
7489
- //
7490
- //
7491
- //
7492
- //
7493
- //
7494
- //
7495
- //
7496
- //
7497
- //
7498
- //
7499
-
7500
6928
 
7501
6929
 
7502
6930
 
@@ -7539,38 +6967,52 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
7539
6967
  },
7540
6968
  tableReload: {
7541
6969
  default: ''
6970
+ },
6971
+ table: {
6972
+ default: ''
7542
6973
  }
7543
6974
  },
7544
- mixins: [mixins_table],
7545
6975
  props: {
6976
+ form: Boolean,
7546
6977
  readonly: Boolean,
7547
6978
  name: String,
7548
6979
  filterIcon: [Boolean, String],
7549
- item: {
7550
- type: Object,
7551
- default: function _default() {
7552
- return {};
7553
- }
7554
- },
7555
- index: {
6980
+ title: String,
6981
+ label: String,
6982
+ labelKey: String,
6983
+ valueKey: String,
6984
+ field: String,
6985
+ prop: String,
6986
+ sortable: [Boolean, String],
6987
+ sort: [Boolean, String],
6988
+ className: String,
6989
+ labelClassName: String,
6990
+ type: String,
6991
+ required: Boolean,
6992
+ width: String,
6993
+ minWidth: String,
6994
+ hide: Boolean,
6995
+ showOverflowTooltip: Boolean,
6996
+ render: [Function, String],
6997
+ contents: Array,
6998
+ events: [Array, Object],
6999
+ dateFormat: String,
7000
+ styles: [Array, Object],
7001
+ sysCode: String,
7002
+ valueToString: Boolean,
7003
+ symbol: String,
7004
+ rules: [Array, Object],
7005
+ method: String,
7006
+ indexs: {
7556
7007
  type: Number,
7557
7008
  default: null
7558
7009
  },
7559
- minWidth: {
7560
- type: String,
7561
- default: function _default() {
7562
- return this.form ? '180px' : undefined;
7563
- }
7564
- },
7010
+ data: Object,
7565
7011
  optionData: {
7566
7012
  type: Object,
7567
7013
  default: function _default() {
7568
7014
  return {};
7569
7015
  }
7570
- },
7571
- form: {
7572
- type: Boolean,
7573
- default: false
7574
7016
  }
7575
7017
  },
7576
7018
  watch: {
@@ -7579,12 +7021,66 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
7579
7021
  handler: function handler(val) {
7580
7022
  this.optionDatas = val;
7581
7023
  }
7024
+ },
7025
+ width: {
7026
+ immediate: true,
7027
+ handler: function handler(val) {
7028
+ if (val) {
7029
+ this.btnWidth = parseInt(val, 10) + 'px';
7030
+ }
7031
+ }
7032
+ }
7033
+ },
7034
+ computed: {
7035
+ config: function config() {
7036
+ var config = {
7037
+ label: this.label || this.title,
7038
+ width: this.btnWidth || this.width
7039
+ };
7040
+
7041
+ if (this.type === 'expand') {
7042
+ config = columnvue_type_script_lang_js_extends({ type: this.type }, config, this.$attrs);
7043
+ return config;
7044
+ }
7045
+ var minWidth = this.label || this.title ? (this.label || this.title).length * 14 + 20 : this.width ? '' : '180px';
7046
+ config = columnvue_type_script_lang_js_extends({}, config, {
7047
+ filterIcon: this.icon,
7048
+ sortable: this.sortable || this.sort,
7049
+ minWidth: this.minWidth || this.table.minWidth || minWidth,
7050
+ className: [this.className ? this.className : '', this.type ? ' es-table-' + this.type + '-box' : '', this.showOverflowTooltip ? ' es-text-ellipsis' : ''].join(' '),
7051
+ labelClassName: [this.labelClassName ? this.labelClassName : '', this.required ? 'es-required' : ''].join(' ')
7052
+ }, this.$attrs);
7053
+ return columnvue_type_script_lang_js_extends({}, config, { prop: this.field || this.prop, field: this.field });
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];
7582
7079
  }
7583
7080
  },
7584
- computed: {},
7585
7081
  data: function data() {
7586
7082
  return {
7587
- width: Object.prototype.hasOwnProperty.call(this.item, 'width') ? parseInt(this.item.width, 10) + 'px' : undefined,
7083
+ btnWidth: '',
7588
7084
  searchs: [],
7589
7085
  optionDatas: this.optionData
7590
7086
  };
@@ -7597,7 +7093,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
7597
7093
 
7598
7094
  if (data && value) {
7599
7095
  if (Array.isArray(value) && value.length) {
7600
- if (item.url || item.sysCode) {
7096
+ if (item.url || this.sysCode) {
7601
7097
  value.forEach(function () {
7602
7098
  var _ref = _asyncToGenerator( /*#__PURE__*/regenerator_default.a.mark(function _callee(val, index) {
7603
7099
  var option, lists, v, queryKey, param, i, params;
@@ -7605,7 +7101,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
7605
7101
  while (1) {
7606
7102
  switch (_context.prev = _context.next) {
7607
7103
  case 0:
7608
- 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)) {
7609
7105
  _context.next = 2;
7610
7106
  break;
7611
7107
  }
@@ -7613,7 +7109,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
7613
7109
  return _context.abrupt('return');
7614
7110
 
7615
7111
  case 2:
7616
- _this.searchs.push(val[item.valueKey] || val.value);
7112
+ _this.searchs.push(val[_this.valueKey] || val.value);
7617
7113
 
7618
7114
  if (!(item.ganged && index < item.ganged - 1 || val.hasSub)) {
7619
7115
  _context.next = 14;
@@ -7624,7 +7120,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
7624
7120
  lists = [];
7625
7121
 
7626
7122
  if (option) {
7627
- v = val[item.valueKey] || val.value;
7123
+ v = val[_this.valueKey] || val.value;
7628
7124
 
7629
7125
  lists = option.filter(function (list) {
7630
7126
  return list[item.filtrateKey] == v;
@@ -7644,10 +7140,10 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
7644
7140
  param[i] = val[queryKey[i]];
7645
7141
  }
7646
7142
  }
7647
- 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);
7648
7144
  _context.next = 14;
7649
7145
  return utils_util["a" /* default */].ajax({
7650
- url: item.sysCode ? api["u" /* findSysCode */] : item.url,
7146
+ url: _this.sysCode ? api["u" /* findSysCode */] : item.url,
7651
7147
  method: _this.method,
7652
7148
  params: params,
7653
7149
  data: params
@@ -7692,73 +7188,69 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
7692
7188
 
7693
7189
  return utils_util["a" /* default */].exclAttribute({ data: data, attrs: attrs });
7694
7190
  },
7695
- format: function format(rows, col) {
7191
+ format: function format(rows) {
7696
7192
  var _this2 = this;
7697
7193
 
7698
- var field = col.field || col.prop;
7699
- 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;
7700
7196
  if (utils_util["a" /* default */].isObject(rows[field])) {
7701
- 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'];
7702
7198
  } else if (Array.isArray(rows[field])) {
7703
7199
  var vals = rows[field].map(function (item) {
7704
7200
  if (utils_util["a" /* default */].isObject(item)) {
7705
- return item[col.labelKey] || item['name'] || item['label'] || item['shortName'];
7201
+ return item[_this2.labelKey] || item['name'] || item['label'] || item['shortName'];
7706
7202
  } else {
7707
7203
  if (data && data.length && utils_util["a" /* default */].isObject(data[0])) {
7708
- return _this2.getLabel(data, item, col);
7204
+ return _this2.getLabel(data, item);
7709
7205
  }
7710
7206
  return item;
7711
7207
  }
7712
7208
  });
7713
- return vals.join(col.symbol ? col.symbol : '-');
7209
+ return vals.join(this.symbol ? this.symbol : '-');
7714
7210
  } else {
7715
- if (col.valueToString || col['value-to-string']) {
7211
+ if (this.valueToString) {
7716
7212
  var _vals = rows[field].split(',').map(function (item) {
7717
7213
  if (data && data.length && utils_util["a" /* default */].isObject(data[0])) {
7718
- return _this2.getLabel(data, item, col);
7214
+ return _this2.getLabel(data, item);
7719
7215
  }
7720
7216
  return item;
7721
7217
  });
7722
- return _vals.join(col.symbol ? col.symbol : '-');
7218
+ return _vals.join(this.symbol ? this.symbol : '-');
7723
7219
  } else {
7724
7220
  if (data && data.length && utils_util["a" /* default */].isObject(data[0])) {
7725
- return this.getLabel(data, rows[field], col);
7221
+ return this.getLabel(data, rows[field]);
7726
7222
  }
7727
7223
  return rows[field];
7728
7224
  }
7729
7225
  }
7730
7226
  },
7731
- getLabel: function getLabel(obj, val, col) {
7227
+ getLabel: function getLabel(obj, val) {
7732
7228
  for (var i = 0; i < obj.length; i++) {
7733
7229
  var item = obj[i];
7734
- var value = item[col.valueKey || 'cciValue'] || item['value'];
7230
+ var value = item[this.valueKey || 'cciValue'] || item['value'];
7735
7231
  if (value == val) {
7736
- return item[col.labelKey] || item['name'] || item['label'] || item['shortName'];
7232
+ return item[this.labelKey] || item['name'] || item['label'] || item['shortName'];
7737
7233
  } else if (item.children && item.children.length) {
7738
- return this.getLabel(item.children, val, col);
7234
+ return this.getLabel(item.children, val);
7739
7235
  }
7740
7236
  }
7741
7237
  },
7742
- isReadOnly: function isReadOnly(item, scope) {
7743
- 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;
7744
7240
  },
7745
- isNotRule: function isNotRule(item, scope) {
7746
- if (scope.row.canRule === false || scope.row.notRules && scope.row.notRules.indexOf(item.field || item.prop) > -1) {
7747
- 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);
7748
7244
  return true;
7749
7245
  }
7750
7246
  return false;
7751
7247
  },
7752
7248
  handleBlur: function handleBlur(data) {
7753
- var item = data.item;
7754
-
7755
- item.events && item.events.blur && item.events.blur(data);
7249
+ this.events && this.events.blur && this.events.blur(data);
7756
7250
  this.$emit('formBlur', data);
7757
7251
  },
7758
7252
  handleFocus: function handleFocus(data) {
7759
- var item = data.item;
7760
-
7761
- item.events && item.events.focus && item.events.focus(data);
7253
+ this.events && this.events.focus && this.events.focus(data);
7762
7254
  this.$emit('formFocus', data);
7763
7255
  },
7764
7256
  handleChange: function handleChange(data) {
@@ -7766,16 +7258,16 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
7766
7258
 
7767
7259
  var item = data.item;
7768
7260
 
7769
- if (item && item.type == 'ganged') {
7261
+ if (item && this.type == 'ganged') {
7770
7262
  var _data$value = data.value,
7771
7263
  index = _data$value.index,
7772
7264
  value = _data$value.value;
7773
7265
 
7774
- if ((item.url || item.sysCode) && (item.ganged && index > item.ganged - 1 || value.hasSub)) {
7775
- 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;
7776
7268
  var datas = [];
7777
- if (this.optionDatas[item.field || item.prop][index + 1]) {
7778
- 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) {
7779
7271
  return filte == items[item.filtrateKey];
7780
7272
  });
7781
7273
  }
@@ -7787,21 +7279,21 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
7787
7279
  param[i] = value[queryKey[i]];
7788
7280
  }
7789
7281
  }
7790
- 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);
7791
7283
  utils_util["a" /* default */].ajax({
7792
- url: item.sysCode ? api["u" /* findSysCode */] : item.url,
7284
+ url: this.sysCode ? api["u" /* findSysCode */] : item.url,
7793
7285
  method: this.method,
7794
7286
  params: params,
7795
7287
  data: params
7796
7288
  }).then(function (res) {
7797
7289
  if (res.rCode === 0) {
7798
- var options = JSON.parse(JSON.stringify(_this3.optionDatas[item.field || item.prop]));
7290
+ var options = JSON.parse(JSON.stringify(_this3.optionDatas[_this3.sysCode]));
7799
7291
  if (options[index + 1]) {
7800
7292
  options[index + 1] = options[index + 1].concat(JSON.parse(JSON.stringify(res.results)));
7801
7293
  } else {
7802
7294
  options.push(JSON.parse(JSON.stringify(res.results)));
7803
7295
  }
7804
- _this3.$set(_this3.optionDatas, item.field || item.prop, options);
7296
+ _this3.$set(_this3.optionDatas, _this3.sysCode, options);
7805
7297
  } else {
7806
7298
  var msg = res.msg || '系统错误,请联系管理员!';
7807
7299
  _this3.$message.error(msg);
@@ -7814,7 +7306,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
7814
7306
  }
7815
7307
  }
7816
7308
  }
7817
- item.events && item.events.change && item.events.change(data);
7309
+ this.events && this.events.change && this.events.change(data);
7818
7310
  this.$emit('formChange', data);
7819
7311
  },
7820
7312
  handleClick: function handleClick(data) {
@@ -7837,8 +7329,8 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
7837
7329
 
7838
7330
  var column_component = normalizeComponent(
7839
7331
  src_columnvue_type_script_lang_js_,
7840
- columnvue_type_template_id_00ff0a77_render,
7841
- columnvue_type_template_id_00ff0a77_staticRenderFns,
7332
+ columnvue_type_template_id_7363f6a6_render,
7333
+ columnvue_type_template_id_7363f6a6_staticRenderFns,
7842
7334
  false,
7843
7335
  null,
7844
7336
  null,
@@ -7868,10 +7360,6 @@ var _components;
7868
7360
  //
7869
7361
  //
7870
7362
  //
7871
- //
7872
- //
7873
- //
7874
- //
7875
7363
 
7876
7364
 
7877
7365
  /* harmony default export */ var childrenvue_type_script_lang_js_ = ({
@@ -7883,7 +7371,7 @@ var _components;
7883
7371
  },
7884
7372
  computed: {
7885
7373
  childrens: function childrens() {
7886
- return this.children || this.childHead;
7374
+ return this.children || this.childHead || [];
7887
7375
  }
7888
7376
  }
7889
7377
  });
@@ -7899,8 +7387,8 @@ var _components;
7899
7387
 
7900
7388
  var children_component = normalizeComponent(
7901
7389
  src_childrenvue_type_script_lang_js_,
7902
- childrenvue_type_template_id_796433ee_render,
7903
- childrenvue_type_template_id_796433ee_staticRenderFns,
7390
+ childrenvue_type_template_id_29bcbc72_render,
7391
+ childrenvue_type_template_id_29bcbc72_staticRenderFns,
7904
7392
  false,
7905
7393
  null,
7906
7394
  null,
@@ -8145,23 +7633,43 @@ var sizer_component = normalizeComponent(
8145
7633
  )
8146
7634
 
8147
7635
  /* harmony default export */ var sizer = (sizer_component.exports);
8148
- // EXTERNAL MODULE: external "vue"
8149
- var external_vue_ = __webpack_require__(12);
8150
- var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
8151
-
8152
- // CONCATENATED MODULE: ./src/utils/bus.js
8153
-
8154
-
8155
- /* harmony default export */ var bus = (new external_vue_default.a());
8156
7636
  // EXTERNAL MODULE: external "qs"
8157
7637
  var external_qs_ = __webpack_require__(3);
8158
7638
  var external_qs_default = /*#__PURE__*/__webpack_require__.n(external_qs_);
8159
7639
 
8160
- // 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&
8161
- 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
8162
7664
 
8163
- var mainvue_type_script_lang_js_components;
8164
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&
8165
7673
  //
8166
7674
  //
8167
7675
  //
@@ -8175,6 +7683,172 @@ var mainvue_type_script_lang_js_components;
8175
7683
  //
8176
7684
  //
8177
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
+
8178
7852
  //
8179
7853
  //
8180
7854
  //
@@ -8310,57 +7984,7 @@ var mainvue_type_script_lang_js_components;
8310
7984
  //
8311
7985
  //
8312
7986
  //
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
- //
8352
- //
8353
- //
8354
- //
8355
- //
8356
- //
8357
- //
8358
- //
8359
- //
8360
- //
8361
- //
8362
- //
8363
- //
7987
+
8364
7988
 
8365
7989
 
8366
7990
 
@@ -8473,10 +8097,6 @@ var mainvue_type_script_lang_js_components;
8473
8097
  type: String,
8474
8098
  default: 'id'
8475
8099
  },
8476
- sizer: {
8477
- type: Boolean,
8478
- default: true
8479
- },
8480
8100
  // 无数据时显示的文本
8481
8101
  emptyText: {
8482
8102
  type: String,
@@ -8577,7 +8197,13 @@ var mainvue_type_script_lang_js_components;
8577
8197
  type: Boolean,
8578
8198
  default: true
8579
8199
  },
8580
- zoom: false
8200
+ zoom: false,
8201
+ exportExcludeLabel: {
8202
+ type: Array,
8203
+ default: function _default() {
8204
+ return [];
8205
+ }
8206
+ }
8581
8207
  },
8582
8208
  data: function data() {
8583
8209
  return {
@@ -8604,7 +8230,8 @@ var mainvue_type_script_lang_js_components;
8604
8230
  selected: null,
8605
8231
  options: {},
8606
8232
  icon: true,
8607
- show: true
8233
+ show: true,
8234
+ sysCodes: []
8608
8235
  };
8609
8236
  },
8610
8237
 
@@ -8615,12 +8242,33 @@ var mainvue_type_script_lang_js_components;
8615
8242
 
8616
8243
  theads: {
8617
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
+ }
8618
8266
  if (this.theadData.length) {
8619
- this.setMinWidth(this.theadData);
8620
- return this.theadData;
8267
+ thead = [].concat(thead, this.theadData);
8268
+ } else {
8269
+ thead = [].concat(thead, this.thead);
8621
8270
  }
8622
- this.setMinWidth(this.thead);
8623
- return this.thead;
8271
+ return thead;
8624
8272
  },
8625
8273
  set: function set(val) {
8626
8274
  return val;
@@ -8669,7 +8317,8 @@ var mainvue_type_script_lang_js_components;
8669
8317
 
8670
8318
  optionDatas: {
8671
8319
  get: function get() {
8672
- 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;
8673
8322
  },
8674
8323
  set: function set(val) {
8675
8324
  return val;
@@ -8724,9 +8373,23 @@ var mainvue_type_script_lang_js_components;
8724
8373
  immediate: true,
8725
8374
  deep: true,
8726
8375
  handler: function handler(val) {
8727
- 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
+ }
8385
+ }
8386
+ },
8387
+ 'config.pageNum': function configPageNum() {
8388
+ if (this.data.length) {
8389
+ this.$refs.oaTable && this.$refs.oaTable.resetScroll && this.$refs.oaTable.resetScroll(0, 0);
8728
8390
  }
8729
8391
  },
8392
+
8730
8393
  height: {
8731
8394
  immediate: true,
8732
8395
  handler: function handler(val) {
@@ -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;
@@ -8959,10 +8610,10 @@ var mainvue_type_script_lang_js_components;
8959
8610
  this.config.pageNum = 1;
8960
8611
  }
8961
8612
  this.tableLoadingText = '加载中...';
8962
- var reqData = utils_util["a" /* default */].extend({}, this.param, {
8613
+ var reqData = utils_util["a" /* default */].extend({}, this.param, this.page ? {
8963
8614
  pageNum: this.config.pageNum,
8964
8615
  pageSize: this.config.pageSize
8965
- });
8616
+ } : {});
8966
8617
  if (where) {
8967
8618
  reqData = utils_util["a" /* default */].extend({}, reqData, where);
8968
8619
  }
@@ -8974,27 +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
- var results = _this7.parseData !== undefined ? _this7.parseData(res.results || res.data || res) : res.results || res.data;
8980
- _this7.list = results.data || results.records || results.list || [];
8981
- _this7.config.totalCount = results.count || results.total || results.totalCount;
8982
- _this7.checked && _this7.$nextTick(function () {
8983
- _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);
8984
8636
  });
8985
8637
  } else {
8986
- _this7.list = [];
8638
+ _this6.list = [];
8987
8639
  //this.tableHeight = false;
8988
8640
  var msg = res.msg || '系统错误,请联系管理员!';
8989
- _this7.$message.error(msg);
8641
+ _this6.$message.error(msg);
8990
8642
  }
8991
- _this7.$emit('success', res);
8643
+ _this6.$emit('success', res);
8992
8644
  }).catch(function (err) {
8993
8645
  //this.tableHeight = false;
8994
8646
  if (err.message && err.message !== 'canceled') {
8995
- _this7.$message.error(err.message);
8647
+ _this6.$message.error(err.message);
8996
8648
  }
8997
- _this7.tableLoading = false;
8649
+ _this6.tableLoading = false;
8998
8650
  });
8999
8651
  },
9000
8652
  selectionChange: function selectionChange(data) {
@@ -9039,7 +8691,7 @@ var mainvue_type_script_lang_js_components;
9039
8691
  this.$emit('change', data, this.datas);
9040
8692
  },
9041
8693
  handleAjax: function handleAjax(handle, row) {
9042
- var _this8 = this;
8694
+ var _this7 = this;
9043
8695
 
9044
8696
  this.changeLoading(true, handle.text + '\u4E2D...');
9045
8697
  var params = handle.param || {};
@@ -9095,9 +8747,9 @@ var mainvue_type_script_lang_js_components;
9095
8747
  method: handle.method,
9096
8748
  format: handle.format
9097
8749
  }).then(function (res) {
9098
- _this8.changeLoading(false);
8750
+ _this7.changeLoading(false);
9099
8751
  if (res.rCode === 0) {
9100
- _this8.$message({
8752
+ _this7.$message({
9101
8753
  message: handle.text + '\u6210\u529F',
9102
8754
  duration: 2000,
9103
8755
  type: 'success',
@@ -9105,17 +8757,17 @@ var mainvue_type_script_lang_js_components;
9105
8757
  var first = Object.prototype.hasOwnProperty.call(handle, 'first') ? handle.first : false;
9106
8758
  var reload = handle.reload || true;
9107
8759
  if (reload) {
9108
- _this8.reload({}, first);
8760
+ _this7.reload({}, first);
9109
8761
  }
9110
8762
  }
9111
8763
  });
9112
8764
  } else {
9113
- _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');
9114
8766
  }
9115
8767
  }).catch(function (err) {
9116
- _this8.changeLoading(false);
8768
+ _this7.changeLoading(false);
9117
8769
  if (err.message && err.message !== 'canceled') {
9118
- _this8.$message.error(err.message);
8770
+ _this7.$message.error(err.message);
9119
8771
  }
9120
8772
  });
9121
8773
  },
@@ -9140,7 +8792,7 @@ var mainvue_type_script_lang_js_components;
9140
8792
  return data_table_src_mainvue_type_script_lang_js_extends({}, obj, item);
9141
8793
  },
9142
8794
  handleClick: function handleClick(res) {
9143
- var _this9 = this;
8795
+ var _this8 = this;
9144
8796
 
9145
8797
  var row = res.row,
9146
8798
  handle = res.handle;
@@ -9176,7 +8828,7 @@ var mainvue_type_script_lang_js_components;
9176
8828
  cancelButtonText: '取消',
9177
8829
  type: 'warning'
9178
8830
  }).then(function () {
9179
- _this9.handleAjax(handle, rows);
8831
+ _this8.handleAjax(handle, rows);
9180
8832
  }).catch(function () {});
9181
8833
  } else {
9182
8834
  this.handleAjax(handle, rows);
@@ -9261,9 +8913,10 @@ var mainvue_type_script_lang_js_components;
9261
8913
  if (this.theads[this.theads.length - 1] && this.theads[this.theads.length - 1].type === 'handle') {
9262
8914
  text = this.theads[this.theads.length - 1].title;
9263
8915
  }
8916
+ var type = ['selection', 'index', 'expand'];
9264
8917
  thead = thead.map(function (item) {
9265
8918
  return item.filter(function (ele) {
9266
- return ele.label !== text && ele.label;
8919
+ return !type.includes(ele.type) && ele.label !== text && !_this8.exportExcludeLabel.includes(ele.label);
9267
8920
  });
9268
8921
  });
9269
8922
  utils_util["a" /* default */].exportXls({
@@ -9369,47 +9022,47 @@ var mainvue_type_script_lang_js_components;
9369
9022
  }
9370
9023
  },
9371
9024
  resetHeight: function resetHeight(warn) {
9372
- var _this10 = this;
9025
+ var _this9 = this;
9373
9026
 
9374
9027
  this.$nextTick(function () {
9375
- if (_this10.full && !_this10.height && !_this10.maxHeight) {
9376
- var height = _this10.$el.parentNode.offsetHeight;
9028
+ if (_this9.full && !_this9.height && !_this9.maxHeight) {
9029
+ var height = _this9.$el.parentNode.offsetHeight;
9377
9030
  if (height) {
9378
- height = parseInt(utils_util["a" /* default */].getStyle(_this10.$el.parentNode, 'height', '%'), 10);
9379
- 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);
9380
- for (var i = 0; i < _this10.$el.parentNode.childNodes.length; i++) {
9381
- var ele = _this10.$el.parentNode.childNodes[i];
9382
- 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) {
9383
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);
9384
9037
  }
9385
9038
  }
9386
- height -= _this10.showToolbar ? 45 : 0;
9387
- height -= _this10.page === false ? 0 : 46;
9388
- height -= _this10.title ? _this10.$refs.title.offsetHeight : 0;
9389
- height -= parseInt(utils_util["a" /* default */].getStyle(_this10.$refs.esTableContent, 'padding-top'), 10);
9390
- height -= parseInt(utils_util["a" /* default */].getStyle(_this10.$refs.esTableContent, 'padding-bottom'), 10);
9391
- 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');
9392
9045
  var eht = 0;
9393
9046
  if (emptyText) {
9394
9047
  eht = emptyText.offsetHeight;
9395
- var thead = _this10.$refs.esTableContent.querySelector('.el-table__header');
9048
+ var thead = _this9.$refs.esTableContent.querySelector('.el-table__header');
9396
9049
  thead && (eht += thead.offsetHeight);
9397
9050
  }
9398
9051
  if (height > 1 && height - eht > 1) {
9399
- _this10.tableHeight = height;
9052
+ _this9.tableHeight = height;
9400
9053
  } else {
9401
- 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');
9402
9055
  }
9403
9056
  } else if (!warn) {
9404
9057
  setTimeout(function () {
9405
- _this10.resetHeight(true);
9058
+ _this9.resetHeight(true);
9406
9059
  }, 1000);
9407
9060
  }
9408
9061
  }
9409
9062
  });
9410
9063
  },
9411
9064
  validate: function validate(callback) {
9412
- var form = this.elForm || this.$refs.esTableForm;
9065
+ var form = this.elForm || this.$el;
9413
9066
  form.validate(function (valid) {
9414
9067
  callback(valid);
9415
9068
  });
@@ -9430,13 +9083,32 @@ var mainvue_type_script_lang_js_components;
9430
9083
  this.$emit('sort-change', res);
9431
9084
  },
9432
9085
  mergeThead: function mergeThead(res) {
9433
- var _this11 = this;
9086
+ var _this10 = this;
9434
9087
 
9435
9088
  this.theadData = res;
9436
9089
  this.icon = true;
9437
9090
  setTimeout(function () {
9438
- _this11.show = true;
9091
+ _this10.show = true;
9439
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
+ });
9440
9112
  }
9441
9113
  }
9442
9114
  });
@@ -9452,8 +9124,8 @@ var mainvue_type_script_lang_js_components;
9452
9124
 
9453
9125
  var data_table_src_main_component = normalizeComponent(
9454
9126
  packages_data_table_src_mainvue_type_script_lang_js_,
9455
- mainvue_type_template_id_094be154_render,
9456
- mainvue_type_template_id_094be154_staticRenderFns,
9127
+ mainvue_type_template_id_2d512d7f_render,
9128
+ mainvue_type_template_id_2d512d7f_staticRenderFns,
9457
9129
  false,
9458
9130
  null,
9459
9131
  null,
@@ -12851,8 +12523,8 @@ error_page_src_main.install = function (Vue) {
12851
12523
  };
12852
12524
 
12853
12525
  /* harmony default export */ var error_page = (error_page_src_main);
12854
- // 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&
12855
- 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 () {
12856
12528
  var _vm = this
12857
12529
  var _h = _vm.$createElement
12858
12530
  var _c = _vm._self._c || _h
@@ -23766,11 +23438,11 @@ var mainvue_type_template_id_2fd814fb_render = function () {
23766
23438
  )
23767
23439
  : _vm._e()
23768
23440
  }
23769
- var mainvue_type_template_id_2fd814fb_staticRenderFns = []
23770
- 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
23771
23443
 
23772
23444
 
23773
- // 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&
23774
23446
 
23775
23447
  // CONCATENATED MODULE: ./src/utils/rules.js
23776
23448
  // 手机号
@@ -23794,7 +23466,7 @@ var bankCard = { pattern: new RegExp('^([1-9]{1})(\\d{14}|\\d{18})$'), message:
23794
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&
23795
23467
 
23796
23468
 
23797
- 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; };
23798
23470
 
23799
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; };
23800
23472
 
@@ -27678,8 +27350,7 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
27678
27350
  inheritAttrs: false,
27679
27351
  provide: function provide() {
27680
27352
  return {
27681
- esForm: this,
27682
- sysCodes: this.sysCodes
27353
+ esForm: this
27683
27354
  };
27684
27355
  },
27685
27356
 
@@ -27854,8 +27525,7 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
27854
27525
  newHeight: null,
27855
27526
  uuid: utils_util["a" /* default */].uuid(32),
27856
27527
  dialog: false,
27857
- refresh: true,
27858
- sysCodes: {}
27528
+ refresh: true
27859
27529
  };
27860
27530
  },
27861
27531
 
@@ -28456,7 +28126,7 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
28456
28126
  if (obj) {
28457
28127
  if (Array.isArray(a.idCard)) {
28458
28128
  a.idCard.forEach(function (item) {
28459
- 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') {
28460
28130
  for (var i in item) {
28461
28131
  if (typeof item[i] === 'string') {
28462
28132
  _this8.$set(_this8.models, i, obj[item[i]]);
@@ -28478,7 +28148,7 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
28478
28148
  var adjunctId = b[0].response.adjunctId;
28479
28149
  this.$set(this.models, a.name, a.previewUrl ? a.previewUrl + adjunctId : adjunctId);
28480
28150
  }
28481
- 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') {
28482
28152
  if (Array.isArray(a.setValues)) {
28483
28153
  a.setValues.forEach(function (item) {
28484
28154
  _this8.$set(_this8.models, item, b[item]);
@@ -28602,7 +28272,7 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
28602
28272
  }
28603
28273
  _context3.next = 8;
28604
28274
  return utils_util["a" /* default */].ajax({
28605
- 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,
28606
28276
  format: handle.format || _this11.format,
28607
28277
  data: form_src_mainvue_type_script_lang_js_extends({}, models, param),
28608
28278
  method: _this11.method,
@@ -28675,7 +28345,7 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
28675
28345
  }
28676
28346
  _context4.next = 7;
28677
28347
  return utils_util["a" /* default */].ajax({
28678
- 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,
28679
28349
  format: handle.format || _this11.format,
28680
28350
  data: form_src_mainvue_type_script_lang_js_extends({}, models, param),
28681
28351
  method: _this11.method,
@@ -28753,7 +28423,7 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
28753
28423
  for (var i in keys) {
28754
28424
  var _ret = _loop(i);
28755
28425
 
28756
- 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;
28757
28427
  }
28758
28428
  }
28759
28429
  return null;
@@ -28864,9 +28534,6 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
28864
28534
  data: data,
28865
28535
  attrs: attrs
28866
28536
  });
28867
- },
28868
- setSysCodes: function setSysCodes(name, value) {
28869
- this.$set(this.sysCodes, name, value);
28870
28537
  }
28871
28538
  }
28872
28539
  });
@@ -28882,8 +28549,8 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
28882
28549
 
28883
28550
  var form_src_main_component = normalizeComponent(
28884
28551
  packages_form_src_mainvue_type_script_lang_js_,
28885
- mainvue_type_template_id_2fd814fb_render,
28886
- mainvue_type_template_id_2fd814fb_staticRenderFns,
28552
+ mainvue_type_template_id_14ee5f2f_render,
28553
+ mainvue_type_template_id_14ee5f2f_staticRenderFns,
28887
28554
  false,
28888
28555
  null,
28889
28556
  null,
@@ -28900,8 +28567,8 @@ form_src_main.install = function (Vue) {
28900
28567
  };
28901
28568
 
28902
28569
  /* harmony default export */ var packages_form = (form_src_main);
28903
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/main.vue?vue&type=template&id=57a9df9a&
28904
- var mainvue_type_template_id_57a9df9a_render = function () {
28570
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/main.vue?vue&type=template&id=13cc8c3c&
28571
+ var mainvue_type_template_id_13cc8c3c_render = function () {
28905
28572
  var _vm = this
28906
28573
  var _h = _vm.$createElement
28907
28574
  var _c = _vm._self._c || _h
@@ -30533,11 +30200,11 @@ var mainvue_type_template_id_57a9df9a_render = function () {
30533
30200
  )
30534
30201
  : _vm._e()
30535
30202
  }
30536
- var mainvue_type_template_id_57a9df9a_staticRenderFns = []
30537
- mainvue_type_template_id_57a9df9a_render._withStripped = true
30203
+ var mainvue_type_template_id_13cc8c3c_staticRenderFns = []
30204
+ mainvue_type_template_id_13cc8c3c_render._withStripped = true
30538
30205
 
30539
30206
 
30540
- // CONCATENATED MODULE: ./packages/flow/src/main.vue?vue&type=template&id=57a9df9a&
30207
+ // CONCATENATED MODULE: ./packages/flow/src/main.vue?vue&type=template&id=13cc8c3c&
30541
30208
 
30542
30209
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/component/CommonOpinions.vue?vue&type=template&id=4e1f4030&
30543
30210
  var CommonOpinionsvue_type_template_id_4e1f4030_render = function () {
@@ -31477,8 +31144,8 @@ var CommonOpinions_component = normalizeComponent(
31477
31144
  )
31478
31145
 
31479
31146
  /* harmony default export */ var CommonOpinions = (CommonOpinions_component.exports);
31480
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/processForm.vue?vue&type=template&id=d47486b0&
31481
- var processFormvue_type_template_id_d47486b0_render = function () {
31147
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/processForm.vue?vue&type=template&id=b6491348&
31148
+ var processFormvue_type_template_id_b6491348_render = function () {
31482
31149
  var _vm = this
31483
31150
  var _h = _vm.$createElement
31484
31151
  var _c = _vm._self._c || _h
@@ -31944,11 +31611,11 @@ var processFormvue_type_template_id_d47486b0_render = function () {
31944
31611
  1
31945
31612
  )
31946
31613
  }
31947
- var processFormvue_type_template_id_d47486b0_staticRenderFns = []
31948
- processFormvue_type_template_id_d47486b0_render._withStripped = true
31614
+ var processFormvue_type_template_id_b6491348_staticRenderFns = []
31615
+ processFormvue_type_template_id_b6491348_render._withStripped = true
31949
31616
 
31950
31617
 
31951
- // CONCATENATED MODULE: ./packages/flow/src/processForm.vue?vue&type=template&id=d47486b0&
31618
+ // CONCATENATED MODULE: ./packages/flow/src/processForm.vue?vue&type=template&id=b6491348&
31952
31619
 
31953
31620
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/selectUser.vue?vue&type=template&id=db651118&
31954
31621
  var selectUservue_type_template_id_db651118_render = function () {
@@ -33860,7 +33527,7 @@ var processFormvue_type_script_lang_js_components;
33860
33527
 
33861
33528
  utils_util["a" /* default */].ajax({
33862
33529
  url: api["t" /* findCodeValues */],
33863
- params: { ccCode: 'notification_type' }
33530
+ params: { ccCode: 'notification_type', userId: utils_util["a" /* default */].getStorage('userId') }
33864
33531
  }).then(function (res) {
33865
33532
  var status = res.status,
33866
33533
  data = res.data;
@@ -34238,8 +33905,8 @@ var processFormvue_type_script_lang_js_components;
34238
33905
 
34239
33906
  var processForm_component = normalizeComponent(
34240
33907
  src_processFormvue_type_script_lang_js_,
34241
- processFormvue_type_template_id_d47486b0_render,
34242
- processFormvue_type_template_id_d47486b0_staticRenderFns,
33908
+ processFormvue_type_template_id_b6491348_render,
33909
+ processFormvue_type_template_id_b6491348_staticRenderFns,
34243
33910
  false,
34244
33911
  null,
34245
33912
  null,
@@ -35252,8 +34919,8 @@ var TimeLimit_component = normalizeComponent(
35252
34919
  )
35253
34920
 
35254
34921
  /* harmony default export */ var TimeLimit = (TimeLimit_component.exports);
35255
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/processReject.vue?vue&type=template&id=4de07824&
35256
- var processRejectvue_type_template_id_4de07824_render = function () {
34922
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/processReject.vue?vue&type=template&id=b5a52fc0&
34923
+ var processRejectvue_type_template_id_b5a52fc0_render = function () {
35257
34924
  var _vm = this
35258
34925
  var _h = _vm.$createElement
35259
34926
  var _c = _vm._self._c || _h
@@ -35444,11 +35111,11 @@ var processRejectvue_type_template_id_4de07824_render = function () {
35444
35111
  1
35445
35112
  )
35446
35113
  }
35447
- var processRejectvue_type_template_id_4de07824_staticRenderFns = []
35448
- processRejectvue_type_template_id_4de07824_render._withStripped = true
35114
+ var processRejectvue_type_template_id_b5a52fc0_staticRenderFns = []
35115
+ processRejectvue_type_template_id_b5a52fc0_render._withStripped = true
35449
35116
 
35450
35117
 
35451
- // CONCATENATED MODULE: ./packages/flow/src/processReject.vue?vue&type=template&id=4de07824&
35118
+ // CONCATENATED MODULE: ./packages/flow/src/processReject.vue?vue&type=template&id=b5a52fc0&
35452
35119
 
35453
35120
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/processReject.vue?vue&type=script&lang=js&
35454
35121
  //
@@ -35582,7 +35249,7 @@ processRejectvue_type_template_id_4de07824_render._withStripped = true
35582
35249
 
35583
35250
  utils_util["a" /* default */].ajax({
35584
35251
  url: api["t" /* findCodeValues */],
35585
- params: { ccCode: 'notification_type' }
35252
+ params: { ccCode: 'notification_type', userId: utils_util["a" /* default */].getStorage('userId') }
35586
35253
  }).then(function (res) {
35587
35254
  var status = res.status,
35588
35255
  data = res.data;
@@ -35726,8 +35393,8 @@ processRejectvue_type_template_id_4de07824_render._withStripped = true
35726
35393
 
35727
35394
  var processReject_component = normalizeComponent(
35728
35395
  src_processRejectvue_type_script_lang_js_,
35729
- processRejectvue_type_template_id_4de07824_render,
35730
- processRejectvue_type_template_id_4de07824_staticRenderFns,
35396
+ processRejectvue_type_template_id_b5a52fc0_render,
35397
+ processRejectvue_type_template_id_b5a52fc0_staticRenderFns,
35731
35398
  false,
35732
35399
  null,
35733
35400
  null,
@@ -35736,8 +35403,8 @@ var processReject_component = normalizeComponent(
35736
35403
  )
35737
35404
 
35738
35405
  /* harmony default export */ var processReject = (processReject_component.exports);
35739
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/startTaskRead.vue?vue&type=template&id=44f07b3f&
35740
- var startTaskReadvue_type_template_id_44f07b3f_render = function () {
35406
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/startTaskRead.vue?vue&type=template&id=02be1571&
35407
+ var startTaskReadvue_type_template_id_02be1571_render = function () {
35741
35408
  var _vm = this
35742
35409
  var _h = _vm.$createElement
35743
35410
  var _c = _vm._self._c || _h
@@ -36112,11 +35779,11 @@ var startTaskReadvue_type_template_id_44f07b3f_render = function () {
36112
35779
  1
36113
35780
  )
36114
35781
  }
36115
- var startTaskReadvue_type_template_id_44f07b3f_staticRenderFns = []
36116
- startTaskReadvue_type_template_id_44f07b3f_render._withStripped = true
35782
+ var startTaskReadvue_type_template_id_02be1571_staticRenderFns = []
35783
+ startTaskReadvue_type_template_id_02be1571_render._withStripped = true
36117
35784
 
36118
35785
 
36119
- // CONCATENATED MODULE: ./packages/flow/src/startTaskRead.vue?vue&type=template&id=44f07b3f&
35786
+ // CONCATENATED MODULE: ./packages/flow/src/startTaskRead.vue?vue&type=template&id=02be1571&
36120
35787
 
36121
35788
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/startTaskRead.vue?vue&type=script&lang=js&
36122
35789
  var startTaskReadvue_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; };
@@ -36513,7 +36180,7 @@ var startTaskReadvue_type_script_lang_js_components;
36513
36180
 
36514
36181
  utils_util["a" /* default */].ajax({
36515
36182
  url: api["t" /* findCodeValues */],
36516
- params: { ccCode: 'notification_type' }
36183
+ params: { ccCode: 'notification_type', userId: utils_util["a" /* default */].getStorage('userId') }
36517
36184
  }).then(function (res) {
36518
36185
  var status = res.status,
36519
36186
  data = res.data;
@@ -36717,8 +36384,8 @@ var startTaskReadvue_type_script_lang_js_components;
36717
36384
 
36718
36385
  var startTaskRead_component = normalizeComponent(
36719
36386
  src_startTaskReadvue_type_script_lang_js_,
36720
- startTaskReadvue_type_template_id_44f07b3f_render,
36721
- startTaskReadvue_type_template_id_44f07b3f_staticRenderFns,
36387
+ startTaskReadvue_type_template_id_02be1571_render,
36388
+ startTaskReadvue_type_template_id_02be1571_staticRenderFns,
36722
36389
  false,
36723
36390
  null,
36724
36391
  null,
@@ -36727,8 +36394,8 @@ var startTaskRead_component = normalizeComponent(
36727
36394
  )
36728
36395
 
36729
36396
  /* harmony default export */ var startTaskRead = (startTaskRead_component.exports);
36730
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/component/taskUnionExamine.vue?vue&type=template&id=47986272&
36731
- var taskUnionExaminevue_type_template_id_47986272_render = function () {
36397
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/component/taskUnionExamine.vue?vue&type=template&id=2e0435c4&
36398
+ var taskUnionExaminevue_type_template_id_2e0435c4_render = function () {
36732
36399
  var _vm = this
36733
36400
  var _h = _vm.$createElement
36734
36401
  var _c = _vm._self._c || _h
@@ -36943,11 +36610,11 @@ var taskUnionExaminevue_type_template_id_47986272_render = function () {
36943
36610
  1
36944
36611
  )
36945
36612
  }
36946
- var taskUnionExaminevue_type_template_id_47986272_staticRenderFns = []
36947
- taskUnionExaminevue_type_template_id_47986272_render._withStripped = true
36613
+ var taskUnionExaminevue_type_template_id_2e0435c4_staticRenderFns = []
36614
+ taskUnionExaminevue_type_template_id_2e0435c4_render._withStripped = true
36948
36615
 
36949
36616
 
36950
- // CONCATENATED MODULE: ./packages/flow/src/component/taskUnionExamine.vue?vue&type=template&id=47986272&
36617
+ // CONCATENATED MODULE: ./packages/flow/src/component/taskUnionExamine.vue?vue&type=template&id=2e0435c4&
36951
36618
 
36952
36619
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/component/taskUnionExamine.vue?vue&type=script&lang=js&
36953
36620
  var taskUnionExaminevue_type_script_lang_js_components;
@@ -37354,7 +37021,7 @@ var taskUnionExaminevue_type_script_lang_js_components;
37354
37021
 
37355
37022
  utils_util["a" /* default */].ajax({
37356
37023
  url: api["t" /* findCodeValues */],
37357
- params: { ccCode: 'notification_type' }
37024
+ params: { ccCode: 'notification_type', userId: utils_util["a" /* default */].getStorage('userId') }
37358
37025
  }).then(function (res) {
37359
37026
  var status = res.status,
37360
37027
  data = res.data;
@@ -37425,8 +37092,8 @@ var taskUnionExaminevue_type_script_lang_js_components;
37425
37092
 
37426
37093
  var taskUnionExamine_component = normalizeComponent(
37427
37094
  component_taskUnionExaminevue_type_script_lang_js_,
37428
- taskUnionExaminevue_type_template_id_47986272_render,
37429
- taskUnionExaminevue_type_template_id_47986272_staticRenderFns,
37095
+ taskUnionExaminevue_type_template_id_2e0435c4_render,
37096
+ taskUnionExaminevue_type_template_id_2e0435c4_staticRenderFns,
37430
37097
  false,
37431
37098
  null,
37432
37099
  null,
@@ -38583,7 +38250,7 @@ function flow_src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return func
38583
38250
 
38584
38251
  utils_util["a" /* default */].ajax({
38585
38252
  url: api["t" /* findCodeValues */],
38586
- params: { ccCode: 'notification_type' }
38253
+ params: { ccCode: 'notification_type', userId: utils_util["a" /* default */].getStorage('userId') }
38587
38254
  }).then(function (res) {
38588
38255
  var status = res.status,
38589
38256
  data = res.data;
@@ -39834,8 +39501,8 @@ function flow_src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return func
39834
39501
 
39835
39502
  var flow_src_main_component = normalizeComponent(
39836
39503
  packages_flow_src_mainvue_type_script_lang_js_,
39837
- mainvue_type_template_id_57a9df9a_render,
39838
- mainvue_type_template_id_57a9df9a_staticRenderFns,
39504
+ mainvue_type_template_id_13cc8c3c_render,
39505
+ mainvue_type_template_id_13cc8c3c_staticRenderFns,
39839
39506
  false,
39840
39507
  null,
39841
39508
  null,
@@ -43965,7 +43632,7 @@ icons_src_main.install = function (Vue) {
43965
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&
43966
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; };
43967
43634
 
43968
- 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; };
43969
43636
 
43970
43637
 
43971
43638
 
@@ -44093,7 +43760,7 @@ var src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function" && typ
44093
43760
  getData: function getData(query, callback, isChange) {
44094
43761
  var _this2 = this;
44095
43762
 
44096
- 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) {
44097
43764
  utils_util["a" /* default */].ajax({
44098
43765
  method: this.method,
44099
43766
  url: this.url,
@@ -44145,7 +43812,7 @@ var src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function" && typ
44145
43812
  doms.push(h('template', { slot: type }, this.$attrs.render(h, this)));
44146
43813
  }
44147
43814
  }
44148
- } 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') {
44149
43816
  doms.push(h('es-button', {
44150
43817
  slot: type,
44151
43818
  class: ['el-primeval', this.$attrs[type].class],
@@ -44395,6 +44062,7 @@ var label_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
44395
44062
  return '';
44396
44063
  }
44397
44064
  },
44065
+ text: String,
44398
44066
  rules: {
44399
44067
  type: [Array, Object],
44400
44068
  default: function _default() {
@@ -44523,8 +44191,8 @@ var label_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
44523
44191
  doms.push(this.$slots.prepend);
44524
44192
  }
44525
44193
  if (typeof this.contents === 'string') {
44526
- if (this.contents) {
44527
- doms.push(this.contents);
44194
+ if (this.contents || this.text) {
44195
+ doms.push(this.contents || this.text);
44528
44196
  }
44529
44197
  if (this.icon) {
44530
44198
  if (this.icon.indexOf('es-icon-') > -1 || this.icon.indexOf('el-icon-') > -1) {
@@ -44815,211 +44483,6 @@ mainvue_type_template_id_3f931032_render._withStripped = true
44815
44483
 
44816
44484
  // CONCATENATED MODULE: ./packages/layout/src/main.vue?vue&type=template&id=3f931032&
44817
44485
 
44818
- // 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&
44819
- var itemvue_type_template_id_124bb300_render = function () {
44820
- var _vm = this
44821
- var _h = _vm.$createElement
44822
- var _c = _vm._self._c || _h
44823
- return _c(
44824
- "div",
44825
- {
44826
- ref: "move",
44827
- staticClass: "es-layout-item",
44828
- class: _vm.defaultClasss,
44829
- style: _vm.defaultaStyle,
44830
- },
44831
- [
44832
- _c("es-card"),
44833
- _c("div", { staticClass: "es-layout-resizable-width" }),
44834
- _c("div", { staticClass: "es-layout-resizable-height" }),
44835
- _c("div", { staticClass: "es-layout-resizable" }),
44836
- ],
44837
- 1
44838
- )
44839
- }
44840
- var itemvue_type_template_id_124bb300_staticRenderFns = []
44841
- itemvue_type_template_id_124bb300_render._withStripped = true
44842
-
44843
-
44844
- // CONCATENATED MODULE: ./packages/layout/src/item.vue?vue&type=template&id=124bb300&
44845
-
44846
- // EXTERNAL MODULE: external "interactjs"
44847
- var external_interactjs_ = __webpack_require__(4);
44848
- var external_interactjs_default = /*#__PURE__*/__webpack_require__.n(external_interactjs_);
44849
-
44850
- // 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&
44851
- //
44852
- //
44853
- //
44854
- //
44855
- //
44856
- //
44857
- //
44858
- //
44859
- //
44860
- //
44861
- //
44862
- //
44863
- //
44864
-
44865
- // import '@interactjs/auto-start';
44866
- // import '@interactjs/auto-scroll';
44867
- // import '@interactjs/actions/drag';
44868
- // import '@interactjs/actions/resize';
44869
- // import '@interactjs/modifiers';
44870
- // import '@interactjs/dev-tools';
44871
-
44872
- /* harmony default export */ var itemvue_type_script_lang_js_ = ({
44873
- name: 'LayoutItem',
44874
- components: {},
44875
- props: {
44876
- redact: {
44877
- type: Boolean,
44878
- default: true
44879
- },
44880
- width: {
44881
- type: String,
44882
- default: '100%'
44883
- },
44884
- height: {
44885
- type: String,
44886
- default: '100px'
44887
- },
44888
- left: String,
44889
- top: String,
44890
- index: Number
44891
- },
44892
- computed: {
44893
- defaultClasss: function defaultClasss() {
44894
- return {
44895
- 'es-dragging': this.dragging
44896
- };
44897
- },
44898
- defaultaStyle: function defaultaStyle() {
44899
- return {
44900
- width: this.width,
44901
- height: this.height,
44902
- left: this.left,
44903
- top: this.top
44904
- };
44905
- },
44906
- cardStyle: function cardStyle() {
44907
- return {
44908
- width: this.width,
44909
- height: this.height
44910
- };
44911
- }
44912
- },
44913
- watch: {},
44914
- data: function data() {
44915
- return {
44916
- position: { x: 0, y: 0 },
44917
- interaction: null,
44918
- dragging: false
44919
- };
44920
- },
44921
- created: function created() {
44922
- this.position = {
44923
- x: parseInt(this.left) || 0,
44924
- y: parseInt(this.top) || 0
44925
- };
44926
- console.log(this.position);
44927
- },
44928
- mounted: function mounted() {
44929
- console.log(external_interactjs_default.a.feedback);
44930
- this.interaction = external_interactjs_default()(this.$refs.move);
44931
- this.interaction.draggable({
44932
- // modifiers: [
44933
- // interact.modifiers.restrictRect({
44934
- // restriction: 'parent',
44935
- // endOnly: false
44936
- // })
44937
- // ],
44938
- // listeners: {
44939
- // start: (event) => {
44940
- // this.dragging = true;
44941
- // console.log(event.type, event.target, 111);
44942
- // },
44943
- // move: (event) => {
44944
- // this.position.x += event.dx;
44945
- // this.position.y += event.dy;
44946
- // event.target.style.transform = `translate(${this.position.x}px, ${this.position.y}px)`;
44947
- // },
44948
- // end: (event) => {
44949
- // this.dragging = false;
44950
- // console.log(event.type, event.target, 222);
44951
- // }
44952
- // }
44953
- inertia: true,
44954
- //autoScroll: { container: '.container' },
44955
- listeners: [external_interactjs_default.a.feedback.pointers()],
44956
- modifiers: [external_interactjs_default.a.modifiers.restrict({
44957
- restriction: 'html',
44958
- elementRect: { left: 0, top: 0, right: 1, bottom: 1 }
44959
- }), external_interactjs_default.a.modifiers.transform(), external_interactjs_default.a.modifiers.spring()]
44960
- });
44961
- this.interaction.resizable({
44962
- modifiers: [
44963
- // keep the edges inside the parent
44964
- external_interactjs_default.a.modifiers.restrictEdges({
44965
- outer: 'parent'
44966
- }),
44967
-
44968
- // minimum size
44969
- external_interactjs_default.a.modifiers.restrictSize({
44970
- min: { width: 100, height: 100 }
44971
- })],
44972
-
44973
- //inertia: true,
44974
- edges: { top: true, left: true, bottom: true, right: true },
44975
- listeners: {
44976
- move: function move(event) {
44977
- console.log(1212);
44978
- var _event$target$dataset = event.target.dataset,
44979
- x = _event$target$dataset.x,
44980
- y = _event$target$dataset.y;
44981
-
44982
-
44983
- x = (parseFloat(x) || 0) + event.deltaRect.left;
44984
- y = (parseFloat(y) || 0) + event.deltaRect.top;
44985
-
44986
- Object.assign(event.target.style, {
44987
- width: event.rect.width + 'px',
44988
- height: event.rect.height + 'px',
44989
- transform: 'translate(' + x + 'px, ' + y + 'px)'
44990
- });
44991
-
44992
- Object.assign(event.target.dataset, { x: x, y: y });
44993
- }
44994
- }
44995
- });
44996
- },
44997
-
44998
- methods: {},
44999
- beforeDestroy: function beforeDestroy() {}
45000
- });
45001
- // CONCATENATED MODULE: ./packages/layout/src/item.vue?vue&type=script&lang=js&
45002
- /* harmony default export */ var src_itemvue_type_script_lang_js_ = (itemvue_type_script_lang_js_);
45003
- // CONCATENATED MODULE: ./packages/layout/src/item.vue
45004
-
45005
-
45006
-
45007
-
45008
-
45009
- /* normalize component */
45010
-
45011
- var item_component = normalizeComponent(
45012
- src_itemvue_type_script_lang_js_,
45013
- itemvue_type_template_id_124bb300_render,
45014
- itemvue_type_template_id_124bb300_staticRenderFns,
45015
- false,
45016
- null,
45017
- null,
45018
- null
45019
-
45020
- )
45021
-
45022
- /* harmony default export */ var src_item = (item_component.exports);
45023
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&
45024
44487
  //
45025
44488
  //
@@ -47695,8 +47158,8 @@ login_src_main.install = function (Vue) {
47695
47158
  };
47696
47159
 
47697
47160
  /* harmony default export */ var login = (login_src_main);
47698
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=6a19317b&
47699
- var mainvue_type_template_id_6a19317b_render = function () {
47161
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=314bc538&
47162
+ var mainvue_type_template_id_314bc538_render = function () {
47700
47163
  var _vm = this
47701
47164
  var _h = _vm.$createElement
47702
47165
  var _c = _vm._self._c || _h
@@ -48121,11 +47584,11 @@ var mainvue_type_template_id_6a19317b_render = function () {
48121
47584
  1
48122
47585
  )
48123
47586
  }
48124
- var mainvue_type_template_id_6a19317b_staticRenderFns = []
48125
- mainvue_type_template_id_6a19317b_render._withStripped = true
47587
+ var mainvue_type_template_id_314bc538_staticRenderFns = []
47588
+ mainvue_type_template_id_314bc538_render._withStripped = true
48126
47589
 
48127
47590
 
48128
- // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=6a19317b&
47591
+ // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=314bc538&
48129
47592
 
48130
47593
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/userinfo.vue?vue&type=template&id=799780ee&
48131
47594
  var userinfovue_type_template_id_799780ee_render = function () {
@@ -50713,6 +50176,9 @@ var log = utils_util["a" /* default */].getParams('console');
50713
50176
  this.showSet = !this.showSet;
50714
50177
  },
50715
50178
  setConfig: function setConfig(results, flag) {
50179
+ if (this.socket) {
50180
+ this.initWebSocket();
50181
+ }
50716
50182
  if (flag) {
50717
50183
  sessionStorage.setItem('mainConfig', JSON.stringify(results));
50718
50184
  utils_util["a" /* default */].setStorage({
@@ -50810,9 +50276,6 @@ var log = utils_util["a" /* default */].getParams('console');
50810
50276
  utils_util["a" /* default */].ajax({ url: this.mainConfig }).then(function (res) {
50811
50277
  if (res && res.rCode === 0) {
50812
50278
  _this3.setConfig(res.results, 1);
50813
- if (_this3.socket) {
50814
- _this3.initWebSocket();
50815
- }
50816
50279
  if (_this3.remote) {
50817
50280
  _this3.getMenu();
50818
50281
  } else {
@@ -51718,7 +51181,9 @@ var log = utils_util["a" /* default */].getParams('console');
51718
51181
  }
51719
51182
  }
51720
51183
  if (_this11.$store) {
51721
- _this11.$store.commit('websocket', data);
51184
+ try {
51185
+ _this11.$store.commit('websocket', data);
51186
+ } catch (error) {}
51722
51187
  }
51723
51188
  if (_this11.$eventBus) {
51724
51189
  _this11.$eventBus.$emit('websocket', data);
@@ -51863,8 +51328,8 @@ var log = utils_util["a" /* default */].getParams('console');
51863
51328
 
51864
51329
  var main_src_main_component = normalizeComponent(
51865
51330
  packages_main_src_mainvue_type_script_lang_js_,
51866
- mainvue_type_template_id_6a19317b_render,
51867
- mainvue_type_template_id_6a19317b_staticRenderFns,
51331
+ mainvue_type_template_id_314bc538_render,
51332
+ mainvue_type_template_id_314bc538_staticRenderFns,
51868
51333
  false,
51869
51334
  null,
51870
51335
  null,
@@ -54230,8 +53695,8 @@ qr_code_src_main.install = function (Vue) {
54230
53695
  };
54231
53696
 
54232
53697
  /* harmony default export */ var qr_code = (qr_code_src_main);
54233
- // 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&
54234
- 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 () {
54235
53700
  var _vm = this
54236
53701
  var _h = _vm.$createElement
54237
53702
  var _c = _vm._self._c || _h
@@ -54360,11 +53825,11 @@ var mainvue_type_template_id_a0afa96c_render = function () {
54360
53825
  )
54361
53826
  : _vm._e()
54362
53827
  }
54363
- var mainvue_type_template_id_a0afa96c_staticRenderFns = []
54364
- 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
54365
53830
 
54366
53831
 
54367
- // 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&
54368
53833
 
54369
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&
54370
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; };
@@ -54431,15 +53896,13 @@ var radio_group_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "func
54431
53896
 
54432
53897
 
54433
53898
 
53899
+
54434
53900
  /* harmony default export */ var radio_group_src_mainvue_type_script_lang_js_ = ({
54435
53901
  name: 'EsRadioGroup',
54436
53902
  inheritAttrs: false,
54437
53903
  inject: {
54438
53904
  esForm: {
54439
53905
  default: ''
54440
- },
54441
- sysCodes: {
54442
- default: ''
54443
53906
  }
54444
53907
  },
54445
53908
  props: {
@@ -54598,21 +54061,11 @@ var radio_group_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "func
54598
54061
  handler: function handler() {
54599
54062
  this.url && this.getData(this.url);
54600
54063
  }
54601
- },
54602
- sysCodes: {
54603
- deep: true,
54604
- handler: function handler(val) {
54605
- if (this.canceled && val && (this.sysCode && val[this.sysCode] || this.dataKey && val[this.dataKey])) {
54606
- if (this.parseData) {
54607
- this.options = this.parseData(JSON.parse(JSON.stringify(val[this.sysCode || this.dataKey])));
54608
- } else {
54609
- this.options = JSON.parse(JSON.stringify(val[this.sysCode || this.dataKey]));
54610
- }
54611
- }
54612
- }
54613
54064
  }
54614
54065
  },
54615
- created: function created() {},
54066
+ created: function created() {
54067
+ this.bindEventBus();
54068
+ },
54616
54069
  mounted: function mounted() {},
54617
54070
 
54618
54071
  methods: {
@@ -54640,7 +54093,7 @@ var radio_group_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "func
54640
54093
  if (res.rCode === 0) {
54641
54094
  _this2.options = JSON.parse(JSON.stringify(res.results));
54642
54095
  if (sysCode || _this2.dataKey) {
54643
- _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)));
54644
54097
  utils_store.set(sysCode, JSON.parse(JSON.stringify(res.results)));
54645
54098
  }
54646
54099
  }
@@ -54661,7 +54114,19 @@ var radio_group_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "func
54661
54114
  this.$emit('input', this.valueType === 'object' ? res : res[this.valKey]);
54662
54115
  }
54663
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);
54664
54126
  }
54127
+ },
54128
+ beforeDestroy: function beforeDestroy() {
54129
+ this.unbindEventBus();
54665
54130
  }
54666
54131
  });
54667
54132
  // CONCATENATED MODULE: ./packages/radio-group/src/main.vue?vue&type=script&lang=js&
@@ -54676,8 +54141,8 @@ var radio_group_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "func
54676
54141
 
54677
54142
  var radio_group_src_main_component = normalizeComponent(
54678
54143
  packages_radio_group_src_mainvue_type_script_lang_js_,
54679
- mainvue_type_template_id_a0afa96c_render,
54680
- mainvue_type_template_id_a0afa96c_staticRenderFns,
54144
+ mainvue_type_template_id_4b2ba50e_render,
54145
+ mainvue_type_template_id_4b2ba50e_staticRenderFns,
54681
54146
  false,
54682
54147
  null,
54683
54148
  null,
@@ -55159,6 +54624,7 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
55159
54624
 
55160
54625
 
55161
54626
 
54627
+
55162
54628
  /* harmony default export */ var select_src_mainvue_type_script_lang_js_ = ({
55163
54629
  name: 'EsSelect',
55164
54630
  componentName: 'EsSelect',
@@ -55172,9 +54638,6 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
55172
54638
  inject: {
55173
54639
  esForm: {
55174
54640
  default: ''
55175
- },
55176
- sysCodes: {
55177
- default: ''
55178
54641
  }
55179
54642
  },
55180
54643
  props: {
@@ -55378,20 +54841,11 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
55378
54841
  this.getData(this.sysCode);
55379
54842
  }
55380
54843
  }
55381
- },
55382
- sysCodes: {
55383
- deep: true,
55384
- handler: function handler(val) {
55385
- if (this.canceled && val && (this.sysCode && val[this.sysCode] || this.dataKey && val[this.dataKey])) {
55386
- if (this.parseData) {
55387
- this.options = this.parseData(JSON.parse(JSON.stringify(val[this.sysCode || this.dataKey])));
55388
- } else {
55389
- this.options = JSON.parse(JSON.stringify(val[this.sysCode || this.dataKey]));
55390
- }
55391
- }
55392
- }
55393
54844
  }
55394
54845
  },
54846
+ created: function created() {
54847
+ this.bindEventBus();
54848
+ },
55395
54849
  mounted: function mounted() {
55396
54850
  if (this.wait) {
55397
54851
  this.getData();
@@ -55480,7 +54934,7 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
55480
54934
  _this3.options = JSON.parse(JSON.stringify(res.results));
55481
54935
  }
55482
54936
  if (sysCode || _this3.dataKey) {
55483
- _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)));
55484
54938
  utils_store.set(sysCode, JSON.parse(JSON.stringify(_this3.options)));
55485
54939
  }
55486
54940
  } else {
@@ -55672,8 +55126,20 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
55672
55126
  },
55673
55127
  toggleMenu: function toggleMenu() {
55674
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);
55675
55138
  }
55676
55139
  },
55140
+ beforeDestroy: function beforeDestroy() {
55141
+ this.unbindEventBus();
55142
+ },
55677
55143
  render: function render(h) {
55678
55144
  var _this7 = this;
55679
55145
 
@@ -55828,6 +55294,7 @@ select_src_main.install = function (Vue) {
55828
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; };
55829
55295
 
55830
55296
 
55297
+
55831
55298
  /* harmony default export */ var select_ganged_src_mainvue_type_script_lang_js_ = ({
55832
55299
  name: 'EsSelectGanged',
55833
55300
  componentName: 'EsSelectGanged',
@@ -55841,9 +55308,6 @@ var select_ganged_src_mainvue_type_script_lang_js_extends = Object.assign || fun
55841
55308
  inject: {
55842
55309
  esForm: {
55843
55310
  default: ''
55844
- },
55845
- sysCodes: {
55846
- default: ''
55847
55311
  }
55848
55312
  },
55849
55313
  props: {
@@ -71125,7 +70589,7 @@ if (typeof window !== 'undefined' && window.Vue) {
71125
70589
  }
71126
70590
 
71127
70591
  /* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
71128
- version: '0.5.12',
70592
+ version: '0.5.14',
71129
70593
  install: install,
71130
70594
  Button: packages_button,
71131
70595
  ButtonGroup: button_group,