element-ui-root 2.9.6 → 2.9.8

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.
package/dist/index.umd.js CHANGED
@@ -12732,6 +12732,324 @@ module.exports = _default;
12732
12732
 
12733
12733
  /***/ }),
12734
12734
 
12735
+ /***/ "1a2f":
12736
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
12737
+
12738
+ "use strict";
12739
+ __webpack_require__.r(__webpack_exports__);
12740
+ /* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6aaa");
12741
+ /* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
12742
+ /* harmony import */ var _components_AformItem__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("2234");
12743
+ /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("ebb9");
12744
+ /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_2__);
12745
+
12746
+
12747
+
12748
+ /* harmony default export */ __webpack_exports__["default"] = ({
12749
+ name: 'CfSearch',
12750
+ components: {
12751
+ AformItem: _components_AformItem__WEBPACK_IMPORTED_MODULE_1__["default"]
12752
+ },
12753
+ props: {
12754
+ margin: {
12755
+ type: String,
12756
+ default: () => '0'
12757
+ },
12758
+ size: {
12759
+ type: String,
12760
+ default: () => 'small'
12761
+ },
12762
+ inline: {
12763
+ type: Boolean,
12764
+ default: () => false
12765
+ },
12766
+ cols: {
12767
+ type: String,
12768
+ default: () => '6'
12769
+ },
12770
+ gutter: {
12771
+ type: String,
12772
+ default: () => '10'
12773
+ },
12774
+ labelWidth: {
12775
+ type: String,
12776
+ default: () => 'auto'
12777
+ },
12778
+ labelPosition: {
12779
+ type: String,
12780
+ default: () => 'top'
12781
+ },
12782
+ config: {
12783
+ type: Object,
12784
+ default: () => ({})
12785
+ },
12786
+ values: {
12787
+ type: Object,
12788
+ default: () => ({})
12789
+ },
12790
+ label: {
12791
+ type: Boolean,
12792
+ default: () => true
12793
+ },
12794
+ check: {
12795
+ type: Boolean,
12796
+ default: () => false
12797
+ },
12798
+ loading: {
12799
+ type: Boolean,
12800
+ default: () => false
12801
+ },
12802
+ submitText: {
12803
+ type: String,
12804
+ default: () => '搜索'
12805
+ },
12806
+ cancelText: {
12807
+ type: String,
12808
+ default: () => '重置'
12809
+ }
12810
+ },
12811
+ data() {
12812
+ return {
12813
+ form: {},
12814
+ height: 0,
12815
+ opened: false
12816
+ };
12817
+ },
12818
+ created() {
12819
+ this.create();
12820
+ },
12821
+ mounted() {
12822
+ this.update();
12823
+ },
12824
+ destroyed() {
12825
+ this.create = null;
12826
+ this.update = null;
12827
+ this.submit = null;
12828
+ this.cancel = null;
12829
+ this.filter = null;
12830
+ this.result = null;
12831
+ this.switch = null;
12832
+ this.prompt = null;
12833
+ this.format = null;
12834
+ this.output = null;
12835
+ },
12836
+ watch: {
12837
+ values() {
12838
+ this.create();
12839
+ }
12840
+ },
12841
+ methods: {
12842
+ create() {
12843
+ // 创建表单
12844
+ if (this.config && Object.keys(this.config).length > 0) {
12845
+ // 格式化表单配置对象(this.config)为数据双向绑定对象
12846
+ let data = {};
12847
+ for (let a in this.config) data[a] = this.config[a].default ? this.config[a].default : '';
12848
+ this.form = data;
12849
+ }
12850
+ },
12851
+ update() {
12852
+ let rows = Math.ceil(Object.keys(this.config).length / this.cols);
12853
+ this.height = this.$el.clientHeight * (rows - 1);
12854
+ },
12855
+ submit(e) {
12856
+ // 提交表单
12857
+ e && e.preventDefault();
12858
+ let pass = !this.check; // 判断是否是空表单
12859
+ for (let a in this.form) if (this.form[a] != '') pass = true;
12860
+ let data = {};
12861
+ if (Object.keys(this.config).length > 0) {
12862
+ // 格式化属性为模糊查询属性
12863
+ for (let a in this.config) {
12864
+ if (this.config[a] != '' && this.config[a].like && this.form[a].trim() != '' && this.form[a].trim() != null && this.form[a].trim() != undefined) {
12865
+ if (this.config[a].like == 'left') data[a] = '%' + this.form[a].trim();
12866
+ if (this.config[a].like == 'right') data[a] = this.form[a].trim() + '%';else data[a] = '%' + this.form[a].trim() + '%';
12867
+ } else {
12868
+ if (this.config[a] != '' && (this.config[a].than || this.config[a].range || this.config[a].scope)) {
12869
+ data[`${a}LE`] = this.form[`${a}LE`].trim();
12870
+ data[`${a}GE`] = this.form[`${a}GE`].trim();
12871
+ } else if (this.form[a].trim().includes(' 00:00:00')) data[a] = '%' + this.form[a].trim().split(' 00:00:00')[0] + '%';else data[a] = this.form[a].trim();
12872
+ }
12873
+ }
12874
+ }
12875
+ if (pass) {
12876
+ let result = this.filter(data);
12877
+ this.$nextTick(() => {
12878
+ this.$emit('submit', {
12879
+ ...result,
12880
+ page: 1
12881
+ }); // 派发事件并重置当前分页
12882
+ return result;
12883
+ });
12884
+ }
12885
+ },
12886
+ cancel(e) {
12887
+ // 重置表单
12888
+ e && e.preventDefault();
12889
+ let pass = !this.check; // 判断是否是空表单
12890
+ for (let a in this.form) if (this.form[a] != '') pass = true;
12891
+ if (pass) {
12892
+ this.$nextTick(() => {
12893
+ for (let a in this.form) this.form[a] = '';
12894
+ this.$nextTick(() => this.$emit('cancel', this.form));
12895
+ });
12896
+ }
12897
+ },
12898
+ filter(form = {}) {
12899
+ const data = {};
12900
+ for (let a in form) {
12901
+ if (form[a] != '' && form[a] != '%%' && form[a] != 'null' && form[a] != 'undefined' && form[a] != null && form[a] != undefined) data[a] = form[a];
12902
+ }
12903
+ return data;
12904
+ },
12905
+ result() {
12906
+ return this.filter(this.form);
12907
+ },
12908
+ switch() {
12909
+ this.opened = !this.opened;
12910
+ },
12911
+ prompt(a = {}, index = 0, placeholder = '') {
12912
+ if (Object.keys(a).length > 0 && a.placeholder && a.placeholder.length && a.placeholder.length > 0) return a.placeholder[index];
12913
+ return placeholder;
12914
+ },
12915
+ format(a = {}, field = '', placeholder = '') {
12916
+ const h = this.$createElement;
12917
+ if (Object.keys(a).length > 0) {
12918
+ let config = {
12919
+ size: this.config[a].size ? this.config[a].size : this.size,
12920
+ field: field != '' ? field : `${a}`,
12921
+ disabled: this.loading,
12922
+ form: this.form,
12923
+ ...this.config[a]
12924
+ };
12925
+ if (placeholder != '') return h(_components_AformItem__WEBPACK_IMPORTED_MODULE_1__["default"], {
12926
+ "attrs": {
12927
+ "config": {
12928
+ ...config,
12929
+ placeholder
12930
+ }
12931
+ }
12932
+ });
12933
+ return h(_components_AformItem__WEBPACK_IMPORTED_MODULE_1__["default"], {
12934
+ "attrs": {
12935
+ "config": config
12936
+ }
12937
+ });
12938
+ }
12939
+ },
12940
+ output(a, b) {
12941
+ const h = this.$createElement;
12942
+ let style = this.cols != '' ? {
12943
+ width: `${100 / this.cols}%`
12944
+ } : {};
12945
+ return h("el-col", {
12946
+ "key": b,
12947
+ "style": style
12948
+ }, [h("el-form-item", {
12949
+ "attrs": {
12950
+ "prop": `${a}`,
12951
+ "label": this.label ? this.config[a]['text'] : ''
12952
+ }
12953
+ }, [this.config[a].than || this.config[a].range || this.config[a].scope ? h("el-col", {
12954
+ "class": "range-cols"
12955
+ }, [h("el-col", {
12956
+ "attrs": {
12957
+ "span": 12
12958
+ }
12959
+ }, [this.format(a, `${a}LE`, this.prompt(this.config[a], 0, '最高'))]), h("el-col", {
12960
+ "attrs": {
12961
+ "span": 12
12962
+ }
12963
+ }, [this.format(a, `${a}GE`, this.prompt(this.config[a], 1, '最低'))])]) : this.format(a)])]);
12964
+ }
12965
+ },
12966
+ render() {
12967
+ const h = arguments[0];
12968
+ const {
12969
+ ...props
12970
+ } = this.$attrs;
12971
+ const {
12972
+ submit = null,
12973
+ cancel = null
12974
+ } = this.$listeners;
12975
+ return h("div", {
12976
+ "class": "c-f-search",
12977
+ "style": {
12978
+ padding: this.margin
12979
+ }
12980
+ }, [h("el-form", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
12981
+ "ref": "form",
12982
+ "attrs": {
12983
+ "size": this.size,
12984
+ "inline": this.inline
12985
+ }
12986
+ }, {
12987
+ "props": {
12988
+ model: this.form,
12989
+ ...props
12990
+ }
12991
+ }, {
12992
+ "attrs": {
12993
+ "labelWidth": this.labelWidth,
12994
+ "labelPosition": this.labelPosition
12995
+ }
12996
+ }]), [h("div", {
12997
+ "class": "column"
12998
+ }, [h("el-row", {
12999
+ "attrs": {
13000
+ "gutter": Number(this.gutter)
13001
+ },
13002
+ "class": "main-row"
13003
+ }, [Object.keys(this.config).map((a, b) => b < this.cols && this.output(a, b))]), h("el-row", {
13004
+ "attrs": {
13005
+ "gutter": Number(this.gutter)
13006
+ },
13007
+ "class": "fold-row",
13008
+ "style": {
13009
+ height: this.opened ? `${this.height}px` : '0'
13010
+ }
13011
+ }, [Object.keys(this.config).map((a, b) => b > this.cols - 1 && this.output(a, b))])]), (Object.keys(this.config).length > this.cols || submit || cancel) && h("div", {
13012
+ "class": "action",
13013
+ "style": {
13014
+ paddingLeft: `${this.gutter}px`
13015
+ }
13016
+ }, [h("el-form-item", {
13017
+ "attrs": {
13018
+ "label": "action"
13019
+ }
13020
+ }, [Object.keys(this.config).length > this.cols && h("el-button", {
13021
+ "attrs": {
13022
+ "disabled": this.loading,
13023
+ "type": "text"
13024
+ },
13025
+ "class": "collapse-button",
13026
+ "on": {
13027
+ "click": this.switch
13028
+ }
13029
+ }, [h("i", {
13030
+ "class": `el-icon-arrow-${this.opened ? 'up' : 'down'}`
13031
+ }), this.opened ? '收起' : '展开']), submit && h("el-button", {
13032
+ "attrs": {
13033
+ "disabled": this.loading,
13034
+ "type": "primary"
13035
+ },
13036
+ "on": {
13037
+ "click": this.submit
13038
+ }
13039
+ }, [this.submitText]), cancel && h("el-button", {
13040
+ "attrs": {
13041
+ "disabled": this.loading,
13042
+ "type": "default"
13043
+ },
13044
+ "on": {
13045
+ "click": this.cancel
13046
+ }
13047
+ }, [this.cancelText])])])])]);
13048
+ }
13049
+ });
13050
+
13051
+ /***/ }),
13052
+
12735
13053
  /***/ "1aa8":
12736
13054
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
12737
13055
 
@@ -13013,6 +13331,11 @@ var map = {
13013
13331
  "./Aform/BfSearch/index": "fc0d",
13014
13332
  "./Aform/BfSearch/index.css": "a261",
13015
13333
  "./Aform/BfSearch/index.js": "fc0d",
13334
+ "./Aform/CfSearch": "1a2f",
13335
+ "./Aform/CfSearch/": "1a2f",
13336
+ "./Aform/CfSearch/index": "1a2f",
13337
+ "./Aform/CfSearch/index.css": "ebb9",
13338
+ "./Aform/CfSearch/index.js": "1a2f",
13016
13339
  "./Aform/index": "aff6",
13017
13340
  "./Aform/index.css": "d397",
13018
13341
  "./Aform/index.js": "aff6",
@@ -13104,16 +13427,9 @@ var map = {
13104
13427
  "./Aswitch/index.js": "02e1",
13105
13428
  "./Atable": "bd9e",
13106
13429
  "./Atable/": "bd9e",
13107
- "./Atable/Actions": "e611",
13108
- "./Atable/Actions/": "e611",
13109
- "./Atable/Actions/index": "e611",
13110
- "./Atable/Actions/index.vue": "e611",
13111
13430
  "./Atable/index": "bd9e",
13112
- "./Atable/index copy": "5e12",
13113
- "./Atable/index copy.js": "5e12",
13114
13431
  "./Atable/index.css": "c089",
13115
13432
  "./Atable/index.js": "bd9e",
13116
- "./Atable/index.vue": "ffd4",
13117
13433
  "./Atabs": "3766",
13118
13434
  "./Atabs/": "3766",
13119
13435
  "./Atabs/index": "3766",
@@ -13203,7 +13519,12 @@ var map = {
13203
13519
  "./Btree/": "9d92",
13204
13520
  "./Btree/index": "9d92",
13205
13521
  "./Btree/index.css": "353a",
13206
- "./Btree/index.vue": "9d92"
13522
+ "./Btree/index.vue": "9d92",
13523
+ "./Ctable": "78ab",
13524
+ "./Ctable/": "78ab",
13525
+ "./Ctable/index": "78ab",
13526
+ "./Ctable/index.css": "e6e6",
13527
+ "./Ctable/index.js": "78ab"
13207
13528
  };
13208
13529
 
13209
13530
 
@@ -13423,7 +13744,7 @@ __webpack_require__.r(__webpack_exports__);
13423
13744
  },
13424
13745
  inline: {
13425
13746
  type: Boolean,
13426
- default: () => true
13747
+ default: () => false
13427
13748
  },
13428
13749
  cols: {
13429
13750
  type: String,
@@ -13472,21 +13793,28 @@ __webpack_require__.r(__webpack_exports__);
13472
13793
  },
13473
13794
  data() {
13474
13795
  return {
13475
- form: {}
13796
+ form: {},
13797
+ height: 0,
13798
+ opened: false
13476
13799
  };
13477
13800
  },
13478
13801
  created() {
13479
13802
  this.create();
13480
13803
  },
13481
- mounted() {},
13804
+ mounted() {
13805
+ this.update();
13806
+ },
13482
13807
  destroyed() {
13483
13808
  this.create = null;
13809
+ this.update = null;
13484
13810
  this.submit = null;
13485
13811
  this.cancel = null;
13486
13812
  this.filter = null;
13487
13813
  this.result = null;
13814
+ this.switch = null;
13488
13815
  this.prompt = null;
13489
13816
  this.format = null;
13817
+ this.output = null;
13490
13818
  },
13491
13819
  watch: {
13492
13820
  values() {
@@ -13503,11 +13831,15 @@ __webpack_require__.r(__webpack_exports__);
13503
13831
  this.form = data;
13504
13832
  }
13505
13833
  },
13834
+ update() {
13835
+ let rows = Math.ceil(Object.keys(this.config).length / this.cols);
13836
+ this.height = this.$el.clientHeight * (rows - 1);
13837
+ },
13506
13838
  submit(e) {
13507
13839
  // 提交表单
13508
13840
  e && e.preventDefault();
13509
13841
  let pass = !this.check; // 判断是否是空表单
13510
- for (let a in this.form) if (this.form[a].trim() != '') pass = true;
13842
+ for (let a in this.form) if (this.form[a] != '') pass = true;
13511
13843
  let data = {};
13512
13844
  if (Object.keys(this.config).length > 0) {
13513
13845
  // 格式化属性为模糊查询属性
@@ -13568,19 +13900,18 @@ __webpack_require__.r(__webpack_exports__);
13568
13900
  }
13569
13901
  },
13570
13902
  filter(form = {}) {
13571
- // 过滤空值属性
13572
13903
  const data = {};
13573
13904
  for (let a in form) {
13574
- if (a != undefined && a != 'undefined' && form[a] != '' && form[a] != '%%' && form[a] != 'null' && form[a] != 'undefined' && form[a] != null && form[a] != undefined) {
13575
- data[a] = form[a];
13576
- }
13905
+ if (form[a] != '' && form[a] != '%%' && form[a] != 'null' && form[a] != 'undefined' && form[a] != null && form[a] != undefined) data[a] = form[a];
13577
13906
  }
13578
13907
  return data;
13579
13908
  },
13580
13909
  result() {
13581
- // 返回验证后的表单数据
13582
13910
  return this.filter(this.form);
13583
13911
  },
13912
+ switch() {
13913
+ this.opened = !this.opened;
13914
+ },
13584
13915
  prompt(a = {}, index = 0, placeholder = '') {
13585
13916
  if (Object.keys(a).length > 0 && a.placeholder && a.placeholder.length && a.placeholder.length > 0) return a.placeholder[index];
13586
13917
  return placeholder;
@@ -13609,6 +13940,31 @@ __webpack_require__.r(__webpack_exports__);
13609
13940
  }
13610
13941
  });
13611
13942
  }
13943
+ },
13944
+ output(a, b) {
13945
+ const h = this.$createElement;
13946
+ let style = this.cols != '' ? {
13947
+ width: `${100 / this.cols}%`
13948
+ } : {};
13949
+ return h("el-col", {
13950
+ "key": b,
13951
+ "style": style
13952
+ }, [h("el-form-item", {
13953
+ "attrs": {
13954
+ "prop": `${a}`,
13955
+ "label": this.label ? this.config[a]['text'] : ''
13956
+ }
13957
+ }, [this.config[a].than || this.config[a].range || this.config[a].scope ? h("el-col", {
13958
+ "class": "range-cols"
13959
+ }, [h("el-col", {
13960
+ "attrs": {
13961
+ "span": 12
13962
+ }
13963
+ }, [this.format(a, `${a}LE`, this.prompt(this.config[a], 0, '最高'))]), h("el-col", {
13964
+ "attrs": {
13965
+ "span": 12
13966
+ }
13967
+ }, [this.format(a, `${a}GE`, this.prompt(this.config[a], 1, '最低'))])]) : this.format(a)])]);
13612
13968
  }
13613
13969
  },
13614
13970
  render() {
@@ -13620,11 +13976,7 @@ __webpack_require__.r(__webpack_exports__);
13620
13976
  submit = null,
13621
13977
  cancel = null
13622
13978
  } = this.$listeners;
13623
- let style = this.cols != '' ? {
13624
- width: `${100 / this.cols}%`
13625
- } : {};
13626
- let label = a => this.label ? this.config[a].text || this.config[a].label || this.config[a].title : '';
13627
- return h("keep-alive", [h("div", {
13979
+ return h("div", {
13628
13980
  "class": "a-f-search",
13629
13981
  "style": {
13630
13982
  padding: this.margin
@@ -13632,7 +13984,8 @@ __webpack_require__.r(__webpack_exports__);
13632
13984
  }, [h("el-form", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
13633
13985
  "ref": "form",
13634
13986
  "attrs": {
13635
- "size": this.size
13987
+ "size": this.size,
13988
+ "inline": this.inline
13636
13989
  }
13637
13990
  }, {
13638
13991
  "props": {
@@ -13644,38 +13997,42 @@ __webpack_require__.r(__webpack_exports__);
13644
13997
  "labelWidth": this.labelWidth,
13645
13998
  "labelPosition": this.labelPosition
13646
13999
  }
13647
- }]), [h("el-row", {
14000
+ }]), [h("div", {
14001
+ "class": "column"
14002
+ }, [h("el-row", {
13648
14003
  "attrs": {
13649
14004
  "gutter": Number(this.gutter)
13650
- }
13651
- }, [Object.keys(this.config).map((a, b) => h("el-col", {
13652
- "key": b,
13653
- "class": "column",
13654
- "style": style
13655
- }, [h("el-form-item", {
14005
+ },
14006
+ "class": "main-row"
14007
+ }, [Object.keys(this.config).map((a, b) => b < this.cols && this.output(a, b))]), h("el-row", {
13656
14008
  "attrs": {
13657
- "prop": `${a}`,
13658
- "label": label(a)
14009
+ "gutter": Number(this.gutter)
14010
+ },
14011
+ "class": "fold-row",
14012
+ "style": {
14013
+ height: this.opened ? `${this.height}px` : '0'
13659
14014
  }
13660
- }, [this.config[a].than || this.config[a].range || this.config[a].scope ? h("el-col", {
13661
- "class": "range-cols"
13662
- }, [h("el-col", {
13663
- "attrs": {
13664
- "span": 12
14015
+ }, [Object.keys(this.config).map((a, b) => b > this.cols - 1 && this.output(a, b))])]), (Object.keys(this.config).length > this.cols || submit || cancel) && h("div", {
14016
+ "class": "action",
14017
+ "style": {
14018
+ paddingLeft: `${this.gutter}px`
13665
14019
  }
13666
- }, [this.format(a, `${a}LE`, this.prompt(this.config[a], 0, '最高'))]), h("el-col", {
14020
+ }, [h("el-form-item", {
13667
14021
  "attrs": {
13668
- "span": 12
14022
+ "label": "action"
13669
14023
  }
13670
- }, [this.format(a, `${a}GE`, this.prompt(this.config[a], 1, '最低'))])]) : this.format(a)])])), this.$slots.default, (submit || cancel) && h("el-col", {
13671
- "key": "action",
13672
- "class": "action",
13673
- "style": style
13674
- }, [h("el-form-item", {
14024
+ }, [Object.keys(this.config).length > this.cols && h("el-button", {
13675
14025
  "attrs": {
13676
- "label": this.label ? 'action' : ''
14026
+ "disabled": this.loading,
14027
+ "type": "text"
14028
+ },
14029
+ "class": "collapse-button",
14030
+ "on": {
14031
+ "click": this.switch
13677
14032
  }
13678
- }, [submit && h("el-button", {
14033
+ }, [h("i", {
14034
+ "class": `el-icon-arrow-${this.opened ? 'up' : 'down'}`
14035
+ }), this.opened ? '收起' : '展开']), submit && h("el-button", {
13679
14036
  "attrs": {
13680
14037
  "disabled": this.loading,
13681
14038
  "type": "primary"
@@ -13691,7 +14048,7 @@ __webpack_require__.r(__webpack_exports__);
13691
14048
  "on": {
13692
14049
  "click": this.cancel
13693
14050
  }
13694
- }, [this.cancelText])])])])])])]);
14051
+ }, [this.cancelText])])])])]);
13695
14052
  }
13696
14053
  });
13697
14054
 
@@ -16123,11 +16480,8 @@ __webpack_require__.r(__webpack_exports__);
16123
16480
  };
16124
16481
  },
16125
16482
  watch: {
16126
- page(page) {
16127
- this.config.page = page;
16128
- },
16129
- size(size) {
16130
- this.config.size = size;
16483
+ pages(pages = this.pages) {
16484
+ this.config = pages;
16131
16485
  }
16132
16486
  },
16133
16487
  methods: {
@@ -16145,8 +16499,6 @@ __webpack_require__.r(__webpack_exports__);
16145
16499
  render() {
16146
16500
  const h = arguments[0];
16147
16501
  const {
16148
- page = null,
16149
- size = null,
16150
16502
  ...props
16151
16503
  } = this.$attrs;
16152
16504
  return h("div", {
@@ -16154,8 +16506,8 @@ __webpack_require__.r(__webpack_exports__);
16154
16506
  }, [h("el-pagination", {
16155
16507
  "attrs": {
16156
16508
  "small": this.small,
16157
- "current-page": page || this.config.page,
16158
- "page-size": size || this.config.size,
16509
+ "current-page": this.config.page,
16510
+ "page-size": this.config.size,
16159
16511
  "page-sizes": this.pageSizes,
16160
16512
  "layout": this.complete ? 'total, sizes, prev, pager, next, jumper' : 'prev, pager, next',
16161
16513
  "total": this.total,
@@ -35747,6 +36099,7 @@ var map = {
35747
36099
  "./Aform/AfEditor/index.js": "b550",
35748
36100
  "./Aform/AfSearch/index.js": "1b78",
35749
36101
  "./Aform/BfSearch/index.js": "fc0d",
36102
+ "./Aform/CfSearch/index.js": "1a2f",
35750
36103
  "./Aform/index.js": "aff6",
35751
36104
  "./AformItem/index.js": "2234",
35752
36105
  "./AiconSelect/index.js": "db3d",
@@ -35776,7 +36129,8 @@ var map = {
35776
36129
  "./Bcard/index.js": "4df8",
35777
36130
  "./BformItem/index.js": "5c61",
35778
36131
  "./Bmap/index.js": "e579",
35779
- "./Btable/index.js": "98ee"
36132
+ "./Btable/index.js": "98ee",
36133
+ "./Ctable/index.js": "78ab"
35780
36134
  };
35781
36135
 
35782
36136
 
@@ -38977,494 +39331,6 @@ exports.count = count;
38977
39331
 
38978
39332
  /***/ }),
38979
39333
 
38980
- /***/ "5e12":
38981
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
38982
-
38983
- "use strict";
38984
- __webpack_require__.r(__webpack_exports__);
38985
- /* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6aaa");
38986
- /* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
38987
- /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("c089");
38988
- /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_1__);
38989
-
38990
-
38991
-
38992
- const AfSearch = a => Promise.resolve(/* AMD require */).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__("1b78")]; (a).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(__webpack_require__.oe);
38993
- const BfSearch = a => Promise.resolve(/* AMD require */).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__("fc0d")]; (a).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(__webpack_require__.oe);
38994
- const Aactions = a => Promise.resolve(/* AMD require */).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__("e94c")]; (a).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(__webpack_require__.oe);
38995
- const Aenume = a => Promise.resolve(/* AMD require */).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__("6cc8")]; (a).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(__webpack_require__.oe);
38996
- const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__("2234")]; (a).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(__webpack_require__.oe);
38997
- const Apages = a => Promise.resolve(/* AMD require */).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__("1d0c")]; (a).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(__webpack_require__.oe);
38998
- const Aempty = a => Promise.resolve(/* AMD require */).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__("bd5e")]; (a).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(__webpack_require__.oe);
38999
- /* harmony default export */ __webpack_exports__["default"] = ({
39000
- name: 'AtableBakup',
39001
- props: {
39002
- margin: {
39003
- type: String,
39004
- default: () => '0'
39005
- },
39006
- rowKey: {
39007
- type: String,
39008
- default: () => 'id'
39009
- },
39010
- size: {
39011
- type: String,
39012
- default: () => 'medium'
39013
- },
39014
- selectionWidth: {
39015
- type: String,
39016
- default: () => '50'
39017
- },
39018
- sort: {
39019
- type: Boolean,
39020
- default: () => true
39021
- },
39022
- sortTitle: {
39023
- type: String,
39024
- default: () => '#'
39025
- },
39026
- sortWidth: {
39027
- type: String,
39028
- default: () => '50'
39029
- },
39030
- border: {
39031
- type: Boolean,
39032
- default: () => false
39033
- },
39034
- stripe: {
39035
- type: Boolean,
39036
- default: () => false
39037
- },
39038
- loading: {
39039
- type: Boolean,
39040
- default: () => false
39041
- },
39042
- column: {
39043
- type: Array,
39044
- default: () => []
39045
- },
39046
- record: {
39047
- type: Object,
39048
- default: () => ({})
39049
- },
39050
- maxHeight: {
39051
- type: String,
39052
- default: () => '480'
39053
- },
39054
- elementLoadingText: {
39055
- type: String,
39056
- default: () => ''
39057
- },
39058
- elementLoadingSpinner: {
39059
- type: String,
39060
- default: () => 'el-icon-loading'
39061
- },
39062
- elementLoadingBackground: {
39063
- type: String,
39064
- default: () => 'rgba(0, 0, 0, 0.04)'
39065
- },
39066
- emptyText: {
39067
- type: String,
39068
- default: () => ''
39069
- },
39070
- showHeader: {
39071
- type: Boolean,
39072
- default: () => true
39073
- },
39074
- selection: {
39075
- type: Boolean,
39076
- default: () => false
39077
- },
39078
- showOverflowTooltip: {
39079
- type: Boolean,
39080
- default: () => true
39081
- },
39082
- tooltipEffect: {
39083
- type: String,
39084
- default: () => 'light'
39085
- },
39086
- showSummary: {
39087
- type: Boolean,
39088
- default: () => false
39089
- },
39090
- sumText: {
39091
- type: String,
39092
- default: () => '合计'
39093
- },
39094
- sortable: {
39095
- type: Boolean,
39096
- default: () => false
39097
- },
39098
- defaultSort: {
39099
- type: Object,
39100
- default: () => ({
39101
- prop: 'date',
39102
- order: 'descending'
39103
- })
39104
- },
39105
- tree: {
39106
- type: Boolean,
39107
- default: () => false
39108
- },
39109
- defaultExpandAll: {
39110
- type: Boolean,
39111
- default: () => true
39112
- },
39113
- treeProps: {
39114
- type: Object,
39115
- default: () => ({
39116
- children: 'children',
39117
- hasChildren: 'hasChildren'
39118
- })
39119
- },
39120
- highlightCurrentRow: {
39121
- type: Boolean,
39122
- default: () => false
39123
- },
39124
- actionWidth: {
39125
- type: String,
39126
- default: () => '180px'
39127
- },
39128
- actionTitle: {
39129
- type: String,
39130
- default: () => '操作'
39131
- },
39132
- page: {
39133
- type: Boolean,
39134
- default: () => true
39135
- }
39136
- },
39137
- mounted() {
39138
- this.$refs['a-table'].bodyWrapper.addEventListener('wheel', this.scroll);
39139
- },
39140
- beforeDestroy() {
39141
- this.$refs['a-table'].bodyWrapper.removeEventListener('wheel', this.scroll);
39142
- },
39143
- destroyed() {
39144
- this.create = null;
39145
- this.search = null;
39146
- this.select = null;
39147
- this.choose = null;
39148
- this.change = null;
39149
- this.format = null;
39150
- this.scroll = null;
39151
- },
39152
- methods: {
39153
- create(column = []) {
39154
- const h = this.$createElement;
39155
- const actionColumn = () => {
39156
- let data = [];
39157
- const {
39158
- review = null,
39159
- modify = null,
39160
- update = null,
39161
- handle = null,
39162
- remove = null
39163
- } = this.$listeners;
39164
- if (review || modify || update || handle || remove || this.$listeners.delete || this.$listeners.export) {
39165
- data = [{
39166
- label: this.actionTitle,
39167
- fixed: 'right',
39168
- align: 'center',
39169
- width: this.actionWidth,
39170
- render: item => h("div", {
39171
- "class": "action"
39172
- }, [review && h("i", {
39173
- "class": "el-icon-view",
39174
- "on": {
39175
- "click": () => review(item)
39176
- }
39177
- }), modify && h("i", {
39178
- "class": "el-icon-edit",
39179
- "on": {
39180
- "click": () => modify(item)
39181
- }
39182
- }), update && h("i", {
39183
- "class": "el-icon-edit",
39184
- "on": {
39185
- "click": () => update(item)
39186
- }
39187
- }), handle && h("i", {
39188
- "class": "el-icon-edit",
39189
- "on": {
39190
- "click": () => handle(item)
39191
- }
39192
- }), remove && h("Apopconfirm", {
39193
- "on": {
39194
- "submit": () => remove(item)
39195
- }
39196
- }), this.$listeners.delete && h("Apopconfirm", {
39197
- "on": {
39198
- "submit": () => this.$listeners.delete(item)
39199
- }
39200
- }), this.$listeners.export && h("i", {
39201
- "class": "el-icon-download",
39202
- "on": {
39203
- "click": () => this.$listeners.export(item)
39204
- }
39205
- })])
39206
- }];
39207
- }
39208
- return data;
39209
- };
39210
- const columnConfig = [...column, ...actionColumn()];
39211
- return columnConfig.map((a, b) => {
39212
- if (a && Object.keys(a).length > 0) {
39213
- let {
39214
- header = null,
39215
- ...item
39216
- } = a;
39217
- let label = a.text || a.label || a.title;
39218
- return h("el-table-column", {
39219
- "key": b,
39220
- "attrs": {
39221
- "scoped-slot": true,
39222
- "prop": a.field,
39223
- "sortable": a.field ? a.sortable ? a.sortable : this.sortable : false,
39224
- "showOverflowTooltip": a.showOverflowTooltip ? a.showOverflowTooltip : this.showOverflowTooltip,
39225
- "formatter": a.formatter ? (e, f, g, h) => a.formatter(e, h) : a.render ? (e, f, g, h) => a.render(e, h) : a.type ? (e, f, g, h) => this.format(a, b, e, h) : null
39226
- },
39227
- "props": {
39228
- ...a
39229
- }
39230
- }, [h("template", {
39231
- "slot": "header"
39232
- }, [header ? () => header(item) : label && label != '' && label.length && label.length > 8 ? h("el-tooltip", {
39233
- "attrs": {
39234
- "content": label,
39235
- "placement": "top"
39236
- }
39237
- }, [h("span", {
39238
- "attrs": {
39239
- "title": label
39240
- }
39241
- }, [label])]) : h("span", {
39242
- "attrs": {
39243
- "title": label
39244
- }
39245
- }, [label])])]);
39246
- }
39247
- });
39248
- },
39249
- search(params = {}) {
39250
- const {
39251
- pageParams = {},
39252
- formParams = {}
39253
- } = this.$store.state;
39254
- const formatParams = Object.assign({}, pageParams, formParams, params);
39255
- this.$emit('search', formatParams);
39256
- },
39257
- select(items = []) {
39258
- this.$store.commit('changeSelectedRows', items);
39259
- this.$store.commit('changeSelectedKeys', items.map(a => a[this.rowKey]));
39260
- this.$emit('select', {
39261
- rows: items,
39262
- keys: items.map(a => a[this.rowKey])
39263
- });
39264
- },
39265
- choose(row, column, event) {
39266
- this.$emit('choose', {
39267
- row,
39268
- column,
39269
- event
39270
- });
39271
- },
39272
- change(pages = {
39273
- page: 1,
39274
- size: 10
39275
- }) {
39276
- this.$store.commit('changePageParams', pages);
39277
- this.$emit('change', pages);
39278
- this.search(pages);
39279
- },
39280
- format({
39281
- type = '',
39282
- name = '',
39283
- data = [],
39284
- text = '',
39285
- label = '',
39286
- title = '',
39287
- field = '',
39288
- dicts = [],
39289
- ...props
39290
- }, colIndex, item, rowIndex) {
39291
- const h = this.$createElement;
39292
- if (type == 'enume' || type == 'enumerate') {
39293
- if (field != '') return h(Aenume, _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
39294
- "key": colIndex + '-' + rowIndex,
39295
- "attrs": {
39296
- "field": field,
39297
- "data": dicts.length > 0 ? dicts : data
39298
- }
39299
- }, props, {
39300
- "model": {
39301
- value: item[field],
39302
- callback: $$v => {
39303
- this.$set(item, field, $$v);
39304
- }
39305
- }
39306
- }]));
39307
- return h(Aenume, _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
39308
- "key": colIndex + '-' + rowIndex,
39309
- "attrs": {
39310
- "field": name,
39311
- "data": dicts.length > 0 ? dicts : data
39312
- }
39313
- }, props, {
39314
- "model": {
39315
- value: item[name],
39316
- callback: $$v => {
39317
- this.$set(item, name, $$v);
39318
- }
39319
- }
39320
- }]));
39321
- }
39322
- return h(AformItem, {
39323
- "key": colIndex + '-' + rowIndex,
39324
- "attrs": {
39325
- "config": {
39326
- type,
39327
- form: item,
39328
- dicts: dicts.length > 0 ? dicts : data,
39329
- field: field != '' ? field : name != '' ? name : '',
39330
- label: text != '' ? text : label != '' ? label : title != '' ? title : '无栏目名称',
39331
- ...props
39332
- }
39333
- }
39334
- });
39335
- },
39336
- scroll(a) {
39337
- let container = this.$refs['a-table'].bodyWrapper;
39338
- if (container) {
39339
- if (container.scrollHeight > container.clientHeight) {
39340
- a.preventDefault();
39341
- container.scrollTop += a.deltaY;
39342
- } else {
39343
- if (container.scrollWidth > container.clientWidth) {
39344
- a.preventDefault();
39345
- container.scrollLeft += a.deltaY;
39346
- }
39347
- }
39348
- this.$emit('scroll', a);
39349
- }
39350
- }
39351
- },
39352
- render() {
39353
- const h = arguments[0];
39354
- const {
39355
- formCols = '6',
39356
- searchVerify = true,
39357
- searchConfig = {},
39358
- actionConfig = []
39359
- } = this.$attrs;
39360
- const {
39361
- ...r
39362
- } = this.record;
39363
- const data = r.data ? r.data : r.list ? r.list : r.rows ? r.rows : r.record ? r.record : r.records ? r.records : [];
39364
- const size = r.size ? r.size : r.total ? r.total : r.count ? r.count : 0;
39365
- const {
39366
- pageParams = {}
39367
- } = this.$store.state;
39368
- const {
39369
- loading = false,
39370
- search = null
39371
- } = this;
39372
- const condition = data.length > 0;
39373
- return h("keep-alive", [h("div", {
39374
- "style": {
39375
- padding: this.margin
39376
- }
39377
- }, [Object.keys(searchConfig).length > 0 && (Object.keys(searchConfig).length < 5 ? h(AfSearch, {
39378
- "attrs": {
39379
- "cols": formCols,
39380
- "verify": searchVerify,
39381
- "config": searchConfig,
39382
- "loading": loading
39383
- },
39384
- "on": {
39385
- "submit": search,
39386
- "cancel": search
39387
- }
39388
- }) : h(BfSearch, {
39389
- "attrs": {
39390
- "cols": formCols,
39391
- "verify": searchVerify,
39392
- "config": searchConfig,
39393
- "loading": loading
39394
- },
39395
- "on": {
39396
- "submit": search,
39397
- "cancel": search
39398
- }
39399
- })), actionConfig.length > 0 && h(Aactions, {
39400
- "attrs": {
39401
- "config": actionConfig,
39402
- "disabled": loading
39403
- }
39404
- }), h("div", {
39405
- "class": this.border ? 'a-table' : 'a-table border'
39406
- }, [h("el-table", {
39407
- "ref": "a-table",
39408
- "attrs": {
39409
- "data": data,
39410
- "size": this.size,
39411
- "border": this.border,
39412
- "stripe": this.stripe,
39413
- "row-key": this.rowKey,
39414
- "max-height": this.maxHeight,
39415
- "element-loading-text": this.elementLoadingText,
39416
- "element-loading-spinner": this.elementLoadingSpinner,
39417
- "element-loading-background": this.elementLoadingBackground,
39418
- "show-header": this.showHeader,
39419
- "default-sort": this.defaultSort,
39420
- "show-summary": this.showSummary,
39421
- "tooltip-effect": this.tooltipEffect,
39422
- "default-expand-all": this.defaultExpandAll,
39423
- "tree-props": this.tree ? this.treeProps : {},
39424
- "highlight-current-row": this.highlightCurrentRow
39425
- },
39426
- "directives": [{
39427
- name: "loading",
39428
- value: loading
39429
- }],
39430
- "on": {
39431
- "row-click": this.choose,
39432
- "selection-change": this.select
39433
- }
39434
- }, [condition && (this.selection || this.$listeners.select) && h("el-table-column", {
39435
- "attrs": {
39436
- "fixed": "left",
39437
- "type": "selection",
39438
- "width": this.selectionWidth
39439
- }
39440
- }), condition && this.sort && h("el-table-column", {
39441
- "attrs": {
39442
- "fixed": "left",
39443
- "type": "index",
39444
- "width": this.sortWidth,
39445
- "label": this.sortTitle
39446
- }
39447
- }), condition && this.create(this.column), h("div", {
39448
- "slot": "empty",
39449
- "class": "empty"
39450
- }, [loading ? '' : h(Aempty, {
39451
- "attrs": {
39452
- "description": this.emptyText
39453
- }
39454
- })])]), !this.tree && this.page && condition && h(Apages, {
39455
- "attrs": {
39456
- "total": Number(size),
39457
- "pages": pageParams
39458
- },
39459
- "on": {
39460
- "change": this.change
39461
- }
39462
- })])])]);
39463
- }
39464
- });
39465
-
39466
- /***/ }),
39467
-
39468
39334
  /***/ "5eae":
39469
39335
  /***/ (function(module, exports, __webpack_require__) {
39470
39336
 
@@ -39871,7 +39737,7 @@ __webpack_require__.r(__webpack_exports__);
39871
39737
  } = this.$attrs;
39872
39738
  return h("div", {
39873
39739
  "class": this.mode != 'horizontal' ? 'a-menu' : 'a-menu horizontal'
39874
- }, [h("keep-alive", [h("el-menu", {
39740
+ }, [h("el-menu", {
39875
39741
  "attrs": {
39876
39742
  "mode": this.mode,
39877
39743
  "default-active": this.active,
@@ -39893,7 +39759,7 @@ __webpack_require__.r(__webpack_exports__);
39893
39759
  "props": {
39894
39760
  ...props
39895
39761
  }
39896
- }, [this.data && this.data.length > 0 && this.data.map((a, b) => this.format(a, b))])])]);
39762
+ }, [this.data && this.data.length > 0 && this.data.map((a, b) => this.format(a, b))])]);
39897
39763
  }
39898
39764
  });
39899
39765
 
@@ -40662,10 +40528,13 @@ __webpack_require__.r(__webpack_exports__);
40662
40528
  keys: items.map(a => a[this.rowKey])
40663
40529
  });
40664
40530
  },
40665
- change(pages) {
40531
+ change(pages = {
40532
+ page: 1,
40533
+ size: 10
40534
+ }) {
40666
40535
  this.$store.commit('changePageParams', pages);
40667
40536
  this.$emit('change', pages);
40668
- this.search();
40537
+ this.search(pages);
40669
40538
  },
40670
40539
  format({
40671
40540
  label,
@@ -51046,6 +50915,543 @@ module.exports = _default;
51046
50915
 
51047
50916
  /***/ }),
51048
50917
 
50918
+ /***/ "78ab":
50919
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
50920
+
50921
+ "use strict";
50922
+ __webpack_require__.r(__webpack_exports__);
50923
+ /* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6aaa");
50924
+ /* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
50925
+ /* harmony import */ var _components_Aactions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("e94c");
50926
+ /* harmony import */ var _components_Aempty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("bd5e");
50927
+ /* harmony import */ var _components_Aenume__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("6cc8");
50928
+ /* harmony import */ var _components_Aform_AfSearch__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("1b78");
50929
+ /* harmony import */ var _components_Aform_BfSearch__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("fc0d");
50930
+ /* harmony import */ var _components_AformItem__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("2234");
50931
+ /* harmony import */ var _components_Apages__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("1d0c");
50932
+ /* harmony import */ var _components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("2ee7");
50933
+ /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("e6e6");
50934
+ /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_9__);
50935
+
50936
+
50937
+
50938
+
50939
+
50940
+
50941
+
50942
+
50943
+
50944
+
50945
+
50946
+ /* harmony default export */ __webpack_exports__["default"] = ({
50947
+ name: 'Ctable',
50948
+ components: {
50949
+ Aactions: _components_Aactions__WEBPACK_IMPORTED_MODULE_1__["default"],
50950
+ Aempty: _components_Aempty__WEBPACK_IMPORTED_MODULE_2__["default"],
50951
+ Aenume: _components_Aenume__WEBPACK_IMPORTED_MODULE_3__["default"],
50952
+ AfSearch: _components_Aform_AfSearch__WEBPACK_IMPORTED_MODULE_4__["default"],
50953
+ BfSearch: _components_Aform_BfSearch__WEBPACK_IMPORTED_MODULE_5__["default"],
50954
+ AformItem: _components_AformItem__WEBPACK_IMPORTED_MODULE_6__["default"],
50955
+ Apages: _components_Apages__WEBPACK_IMPORTED_MODULE_7__["default"],
50956
+ Apopconfirm: _components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__["default"]
50957
+ },
50958
+ props: {
50959
+ margin: {
50960
+ type: String,
50961
+ default: () => '0'
50962
+ },
50963
+ rowKey: {
50964
+ type: String,
50965
+ default: () => 'id'
50966
+ },
50967
+ size: {
50968
+ type: String,
50969
+ default: () => 'medium'
50970
+ },
50971
+ selectionWidth: {
50972
+ type: String,
50973
+ default: () => '50'
50974
+ },
50975
+ sort: {
50976
+ type: Boolean,
50977
+ default: () => true
50978
+ },
50979
+ sortTitle: {
50980
+ type: String,
50981
+ default: () => '#'
50982
+ },
50983
+ sortWidth: {
50984
+ type: String,
50985
+ default: () => '50'
50986
+ },
50987
+ border: {
50988
+ type: Boolean,
50989
+ default: () => false
50990
+ },
50991
+ stripe: {
50992
+ type: Boolean,
50993
+ default: () => false
50994
+ },
50995
+ loading: {
50996
+ type: Boolean,
50997
+ default: () => false
50998
+ },
50999
+ column: {
51000
+ type: Array,
51001
+ default: () => []
51002
+ },
51003
+ record: {
51004
+ type: Object,
51005
+ default: () => ({})
51006
+ },
51007
+ maxHeight: {
51008
+ type: String,
51009
+ default: () => '480'
51010
+ },
51011
+ elementLoadingText: {
51012
+ type: String,
51013
+ default: () => ''
51014
+ },
51015
+ elementLoadingSpinner: {
51016
+ type: String,
51017
+ default: () => 'el-icon-loading'
51018
+ },
51019
+ elementLoadingBackground: {
51020
+ type: String,
51021
+ default: () => 'rgba(0, 0, 0, 0.04)'
51022
+ },
51023
+ emptyText: {
51024
+ type: String,
51025
+ default: () => ''
51026
+ },
51027
+ showHeader: {
51028
+ type: Boolean,
51029
+ default: () => true
51030
+ },
51031
+ selection: {
51032
+ type: Boolean,
51033
+ default: () => true
51034
+ },
51035
+ showOverflowTooltip: {
51036
+ type: Boolean,
51037
+ default: () => true
51038
+ },
51039
+ tooltipEffect: {
51040
+ type: String,
51041
+ default: () => 'light'
51042
+ },
51043
+ showSummary: {
51044
+ type: Boolean,
51045
+ default: () => false
51046
+ },
51047
+ sumText: {
51048
+ type: String,
51049
+ default: () => '合计'
51050
+ },
51051
+ sortable: {
51052
+ type: Boolean,
51053
+ default: () => false
51054
+ },
51055
+ defaultSort: {
51056
+ type: Object,
51057
+ default: () => ({
51058
+ prop: 'date',
51059
+ order: 'descending'
51060
+ })
51061
+ },
51062
+ tree: {
51063
+ type: Boolean,
51064
+ default: () => false
51065
+ },
51066
+ defaultExpandAll: {
51067
+ type: Boolean,
51068
+ default: () => true
51069
+ },
51070
+ treeProps: {
51071
+ type: Object,
51072
+ default: () => ({
51073
+ children: 'children',
51074
+ hasChildren: 'hasChildren'
51075
+ })
51076
+ },
51077
+ highlightCurrentRow: {
51078
+ type: Boolean,
51079
+ default: () => false
51080
+ },
51081
+ action: {
51082
+ type: Object,
51083
+ default: () => ({
51084
+ review: null,
51085
+ modify: null,
51086
+ update: null,
51087
+ handle: null,
51088
+ remove: null,
51089
+ delete: null,
51090
+ export: null
51091
+ })
51092
+ },
51093
+ actionWidth: {
51094
+ type: String,
51095
+ default: () => '180px'
51096
+ },
51097
+ actionTitle: {
51098
+ type: String,
51099
+ default: () => '操作'
51100
+ },
51101
+ page: {
51102
+ type: Boolean,
51103
+ default: () => false
51104
+ }
51105
+ },
51106
+ mounted() {
51107
+ this.$refs['c-table'].bodyWrapper.addEventListener('wheel', this.scroll);
51108
+ },
51109
+ beforeDestroy() {
51110
+ this.$refs['c-table'].bodyWrapper.removeEventListener('wheel', this.scroll);
51111
+ },
51112
+ destroyed() {
51113
+ this.create = null;
51114
+ this.search = null;
51115
+ this.select = null;
51116
+ this.choose = null;
51117
+ this.change = null;
51118
+ this.format = null;
51119
+ this.scroll = null;
51120
+ },
51121
+ methods: {
51122
+ create() {
51123
+ const h = this.$createElement;
51124
+ let column = [...this.column, this.suffix()];
51125
+ return column.map((a, b) => {
51126
+ if (a && Object.keys(a).length > 0) {
51127
+ let {
51128
+ type = null,
51129
+ render = null,
51130
+ header = null,
51131
+ ...r
51132
+ } = a;
51133
+ let field = a.field || a.index || a.name || a.prop;
51134
+ let label = a.label || a.title || a.text;
51135
+ let props = {
51136
+ key: b,
51137
+ prop: field,
51138
+ scopedSlot: field,
51139
+ sortable: field ? a.sortable ? a.sortable : this.sortable : false,
51140
+ formatter: render ? render : type ? (e, f, g, h) => this.format(a, b, e, h) : null,
51141
+ showOverflowTooltip: a.showOverflowTooltip ? a.showOverflowTooltip : this.showOverflowTooltip,
51142
+ ...r
51143
+ };
51144
+ return h("el-table-column", {
51145
+ "props": {
51146
+ ...props
51147
+ }
51148
+ }, [h("template", {
51149
+ "slot": "header"
51150
+ }, [header ? () => header(r) : label && label != '' && label.length && label.length > 8 ? h("el-tooltip", {
51151
+ "attrs": {
51152
+ "content": label,
51153
+ "placement": "top"
51154
+ }
51155
+ }, [h("span", {
51156
+ "attrs": {
51157
+ "title": label
51158
+ }
51159
+ }, [label])]) : h("span", {
51160
+ "attrs": {
51161
+ "title": label
51162
+ }
51163
+ }, [label])])]);
51164
+ }
51165
+ });
51166
+ },
51167
+ suffix() {
51168
+ const h = this.$createElement;
51169
+ if (this.action.review || this.action.modify || this.action.update || this.action.handle || this.action.remove || this.action.delete || this.action.export || this.$listeners.review || this.$listeners.modify || this.$listeners.update || this.$listeners.handle || this.$listeners.remove || this.$listeners.delete || this.$listeners.export) {
51170
+ return {
51171
+ fixed: 'right',
51172
+ align: 'center',
51173
+ width: this.actionWidth,
51174
+ label: this.actionTitle,
51175
+ formatter: item => h("div", {
51176
+ "class": "action"
51177
+ }, [this.action.review && h("i", {
51178
+ "class": "el-icon-view",
51179
+ "on": {
51180
+ "click": () => this.action.review(item)
51181
+ }
51182
+ }), this.action.modify && h("i", {
51183
+ "class": "el-icon-edit",
51184
+ "on": {
51185
+ "click": () => this.action.modify(item)
51186
+ }
51187
+ }), this.action.update && h("i", {
51188
+ "class": "el-icon-edit",
51189
+ "on": {
51190
+ "click": () => this.action.update(item)
51191
+ }
51192
+ }), this.action.handle && h("i", {
51193
+ "class": "el-icon-edit",
51194
+ "on": {
51195
+ "click": () => this.action.handle(item)
51196
+ }
51197
+ }), this.action.remove && h(_components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__["default"], {
51198
+ "on": {
51199
+ "submit": () => this.action.remove(item)
51200
+ }
51201
+ }), this.action.delete && h(_components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__["default"], {
51202
+ "on": {
51203
+ "submit": () => this.action.delete(item)
51204
+ }
51205
+ }), this.action.export && h("i", {
51206
+ "class": "el-icon-download",
51207
+ "on": {
51208
+ "click": () => this.action.export(item)
51209
+ }
51210
+ }), this.$listeners.review && h("i", {
51211
+ "class": "el-icon-view",
51212
+ "on": {
51213
+ "click": () => this.$listeners.review(item)
51214
+ }
51215
+ }), this.$listeners.modify && h("i", {
51216
+ "class": "el-icon-edit",
51217
+ "on": {
51218
+ "click": () => this.$listeners.modify(item)
51219
+ }
51220
+ }), this.$listeners.update && h("i", {
51221
+ "class": "el-icon-edit",
51222
+ "on": {
51223
+ "click": () => this.$listeners.update(item)
51224
+ }
51225
+ }), this.$listeners.handle && h("i", {
51226
+ "class": "el-icon-edit",
51227
+ "on": {
51228
+ "click": () => this.$listeners.handle(item)
51229
+ }
51230
+ }), this.$listeners.remove && h(_components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__["default"], {
51231
+ "on": {
51232
+ "submit": () => this.$listeners.remove(item)
51233
+ }
51234
+ }), this.$listeners.delete && h(_components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__["default"], {
51235
+ "on": {
51236
+ "submit": () => this.$listeners.delete(item)
51237
+ }
51238
+ }), this.$listeners.export && h("i", {
51239
+ "class": "el-icon-download",
51240
+ "on": {
51241
+ "click": () => this.$listeners.export(item)
51242
+ }
51243
+ })])
51244
+ };
51245
+ }
51246
+ },
51247
+ search(params = {}) {
51248
+ this.$emit('search', params);
51249
+ },
51250
+ select(items = []) {
51251
+ this.$emit('select', items);
51252
+ },
51253
+ choose(row, column, event) {
51254
+ this.$emit('choose', {
51255
+ row,
51256
+ column,
51257
+ event
51258
+ });
51259
+ },
51260
+ change(pages = {
51261
+ page: 1,
51262
+ size: 10
51263
+ }) {
51264
+ this.$emit('change', pages);
51265
+ this.search(pages);
51266
+ },
51267
+ format({
51268
+ type = '',
51269
+ name = '',
51270
+ data = [],
51271
+ text = '',
51272
+ label = '',
51273
+ title = '',
51274
+ field = '',
51275
+ dicts = [],
51276
+ ...props
51277
+ }, colIndex, item, rowIndex) {
51278
+ const h = this.$createElement;
51279
+ if (type == 'enume' || type == 'enumerate') {
51280
+ if (field != '') return h(_components_Aenume__WEBPACK_IMPORTED_MODULE_3__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
51281
+ "key": colIndex + '-' + rowIndex,
51282
+ "attrs": {
51283
+ "field": field,
51284
+ "data": dicts.length > 0 ? dicts : data
51285
+ }
51286
+ }, props, {
51287
+ "model": {
51288
+ value: item[field],
51289
+ callback: $$v => {
51290
+ this.$set(item, field, $$v);
51291
+ }
51292
+ }
51293
+ }]));
51294
+ return h(_components_Aenume__WEBPACK_IMPORTED_MODULE_3__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
51295
+ "key": colIndex + '-' + rowIndex,
51296
+ "attrs": {
51297
+ "field": name,
51298
+ "data": dicts.length > 0 ? dicts : data
51299
+ }
51300
+ }, props, {
51301
+ "model": {
51302
+ value: item[name],
51303
+ callback: $$v => {
51304
+ this.$set(item, name, $$v);
51305
+ }
51306
+ }
51307
+ }]));
51308
+ }
51309
+ return h(_components_AformItem__WEBPACK_IMPORTED_MODULE_6__["default"], {
51310
+ "key": colIndex + '-' + rowIndex,
51311
+ "attrs": {
51312
+ "config": {
51313
+ type,
51314
+ form: item,
51315
+ dicts: dicts.length > 0 ? dicts : data,
51316
+ field: field != '' ? field : name != '' ? name : '',
51317
+ label: text != '' ? text : label != '' ? label : title != '' ? title : '无栏目名称',
51318
+ ...props
51319
+ }
51320
+ }
51321
+ });
51322
+ },
51323
+ scroll(a) {
51324
+ let container = this.$refs['c-table'].bodyWrapper;
51325
+ if (container) {
51326
+ if (container.scrollHeight > container.clientHeight) {
51327
+ a.preventDefault();
51328
+ container.scrollTop += a.deltaY;
51329
+ } else {
51330
+ if (container.scrollWidth > container.clientWidth) {
51331
+ a.preventDefault();
51332
+ container.scrollLeft += a.deltaY;
51333
+ }
51334
+ }
51335
+ this.$emit('scroll', a);
51336
+ }
51337
+ }
51338
+ },
51339
+ render() {
51340
+ const h = arguments[0];
51341
+ const {
51342
+ formCols = '6',
51343
+ searchVerify = true,
51344
+ searchConfig = {},
51345
+ actionConfig = [],
51346
+ ...props
51347
+ } = this.$attrs;
51348
+ const {
51349
+ ...r
51350
+ } = this.record;
51351
+ const data = r.data ? r.data : r.list ? r.list : r.rows ? r.rows : r.record ? r.record : r.records ? r.records : [];
51352
+ const size = r.size ? r.size : r.total ? r.total : r.count ? r.count : 0;
51353
+ const {
51354
+ loading = false,
51355
+ search = null
51356
+ } = this;
51357
+ const condition = data.length > 0;
51358
+ return h("div", {
51359
+ "style": {
51360
+ padding: this.margin
51361
+ }
51362
+ }, [Object.keys(searchConfig).length > 0 && (Object.keys(searchConfig).length < 5 ? h(_components_Aform_AfSearch__WEBPACK_IMPORTED_MODULE_4__["default"], {
51363
+ "attrs": {
51364
+ "cols": formCols,
51365
+ "verify": searchVerify,
51366
+ "config": searchConfig,
51367
+ "loading": loading
51368
+ },
51369
+ "on": {
51370
+ "submit": search,
51371
+ "cancel": search
51372
+ }
51373
+ }) : h(_components_Aform_BfSearch__WEBPACK_IMPORTED_MODULE_5__["default"], {
51374
+ "attrs": {
51375
+ "cols": formCols,
51376
+ "verify": searchVerify,
51377
+ "config": searchConfig,
51378
+ "loading": loading
51379
+ },
51380
+ "on": {
51381
+ "submit": search,
51382
+ "cancel": search
51383
+ }
51384
+ })), actionConfig.length > 0 && h(_components_Aactions__WEBPACK_IMPORTED_MODULE_1__["default"], {
51385
+ "attrs": {
51386
+ "config": actionConfig,
51387
+ "disabled": loading
51388
+ }
51389
+ }), h("div", {
51390
+ "class": this.border ? 'c-table' : 'c-table border'
51391
+ }, [h("el-table", {
51392
+ "ref": "c-table",
51393
+ "attrs": {
51394
+ "data": data,
51395
+ "size": this.size,
51396
+ "border": this.border,
51397
+ "stripe": this.stripe,
51398
+ "row-key": this.rowKey,
51399
+ "max-height": this.maxHeight,
51400
+ "element-loading-text": this.elementLoadingText,
51401
+ "element-loading-spinner": this.elementLoadingSpinner,
51402
+ "element-loading-background": this.elementLoadingBackground,
51403
+ "show-header": this.showHeader,
51404
+ "default-sort": this.defaultSort,
51405
+ "show-summary": this.showSummary,
51406
+ "tooltip-effect": this.tooltipEffect,
51407
+ "default-expand-all": this.defaultExpandAll,
51408
+ "tree-props": this.tree ? this.treeProps : {},
51409
+ "highlight-current-row": this.highlightCurrentRow
51410
+ },
51411
+ "directives": [{
51412
+ name: "loading",
51413
+ value: loading
51414
+ }],
51415
+ "on": {
51416
+ "row-click": this.choose,
51417
+ "selection-change": this.select
51418
+ },
51419
+ "props": {
51420
+ ...props
51421
+ }
51422
+ }, [condition && (this.selection || this.$listeners.select) && h("el-table-column", {
51423
+ "attrs": {
51424
+ "fixed": "left",
51425
+ "type": "selection",
51426
+ "width": this.selectionWidth
51427
+ }
51428
+ }), condition && this.sort && h("el-table-column", {
51429
+ "attrs": {
51430
+ "fixed": "left",
51431
+ "type": "index",
51432
+ "width": this.sortWidth,
51433
+ "label": this.sortTitle
51434
+ }
51435
+ }), condition && this.create(), condition && this.$slots.default, h("div", {
51436
+ "slot": "empty",
51437
+ "class": "empty"
51438
+ }, [!loading && h(_components_Aempty__WEBPACK_IMPORTED_MODULE_2__["default"], {
51439
+ "attrs": {
51440
+ "description": this.emptyText
51441
+ }
51442
+ })])]), !this.tree && this.page && condition && h(_components_Apages__WEBPACK_IMPORTED_MODULE_7__["default"], {
51443
+ "attrs": {
51444
+ "total": Number(size)
51445
+ },
51446
+ "on": {
51447
+ "change": this.change
51448
+ }
51449
+ })])]);
51450
+ }
51451
+ });
51452
+
51453
+ /***/ }),
51454
+
51049
51455
  /***/ "78f0":
51050
51456
  /***/ (function(module, exports, __webpack_require__) {
51051
51457
 
@@ -61519,10 +61925,13 @@ __webpack_require__.r(__webpack_exports__);
61519
61925
  event
61520
61926
  });
61521
61927
  },
61522
- change(pages) {
61928
+ change(pages = {
61929
+ page: 1,
61930
+ size: 10
61931
+ }) {
61523
61932
  this.$store.commit('changePageParams', pages);
61524
61933
  this.$emit('change', pages);
61525
- this.search();
61934
+ this.search(pages);
61526
61935
  },
61527
61936
  switch(name = '', symbol = '_') {
61528
61937
  return name.replace(/([A-Z])/g, `${symbol}$1`).toLowerCase();
@@ -131225,7 +131634,7 @@ __webpack_require__.r(__webpack_exports__);
131225
131634
  submit = null,
131226
131635
  cancel = null
131227
131636
  } = this.$listeners;
131228
- return h("keep-alive", [h("div", {
131637
+ return h("div", {
131229
131638
  "class": !this.inline ? this.search ? 'a-form' : 'a-from vertical' : 'a-form',
131230
131639
  "style": {
131231
131640
  padding: this.margin
@@ -131315,7 +131724,7 @@ __webpack_require__.r(__webpack_exports__);
131315
131724
  "on": {
131316
131725
  "click": this.cancel
131317
131726
  }
131318
- }, [this.cancelText])])])])])]);
131727
+ }, [this.cancelText])])])])]);
131319
131728
  }
131320
131729
  });
131321
131730
 
@@ -132497,14 +132906,15 @@ __webpack_require__.r(__webpack_exports__);
132497
132906
  cache: {
132498
132907
  type: Boolean,
132499
132908
  default: () => false
132500
- },
132501
- cacheNumber: {
132502
- type: Number,
132503
- default: () => 100
132504
132909
  }
132505
132910
  },
132506
132911
  render() {
132507
132912
  const h = arguments[0];
132913
+ const {
132914
+ include = null,
132915
+ exclude = null,
132916
+ max = 1000
132917
+ } = this.$props;
132508
132918
  return h("div", {
132509
132919
  "class": "a-router-view"
132510
132920
  }, [this.transition ? h("transition", {
@@ -132515,21 +132925,17 @@ __webpack_require__.r(__webpack_exports__);
132515
132925
  }
132516
132926
  }, [this.cache ? h("keep-alive", {
132517
132927
  "attrs": {
132518
- "max": this.cacheNumber
132928
+ "include": include,
132929
+ "exclude": exclude,
132930
+ "max": max
132519
132931
  }
132520
- }, [h("router-view", {
132521
- "key": this.key
132522
- })]) : h("router-view", {
132523
- "key": this.key
132524
- })]) : h("div", [this.cache ? h("keep-alive", {
132932
+ }, [h("router-view")]) : h("router-view")]) : h("div", [this.cache ? h("keep-alive", {
132525
132933
  "attrs": {
132526
- "max": this.cacheNumber
132934
+ "include": include,
132935
+ "exclude": exclude,
132936
+ "max": max
132527
132937
  }
132528
- }, [h("router-view", {
132529
- "key": this.key
132530
- })]) : h("router-view", {
132531
- "key": this.key
132532
- })])]);
132938
+ }, [h("router-view")]) : h("router-view")])]);
132533
132939
  }
132534
132940
  });
132535
132941
 
@@ -133389,7 +133795,7 @@ __webpack_require__.r(__webpack_exports__);
133389
133795
  reject,
133390
133796
  cancel
133391
133797
  } = this.$listeners;
133392
- return h("keep-alive", [h("div", {
133798
+ return h("div", {
133393
133799
  "class": !this.inline ? 'a-f-editor vertical' : 'a-f-editor',
133394
133800
  "style": {
133395
133801
  padding: this.margin
@@ -133452,7 +133858,7 @@ __webpack_require__.r(__webpack_exports__);
133452
133858
  "on": {
133453
133859
  "click": this.cancel
133454
133860
  }
133455
- }, [this.cancelText])])])])])])]);
133861
+ }, [this.cancelText])])])])])]);
133456
133862
  }
133457
133863
  });
133458
133864
 
@@ -135980,7 +136386,7 @@ __webpack_require__.r(__webpack_exports__);
135980
136386
  search = null
135981
136387
  } = this;
135982
136388
  const condition = data.length > 0;
135983
- return h("keep-alive", [h("div", {
136389
+ return h("div", {
135984
136390
  "style": {
135985
136391
  padding: this.margin
135986
136392
  }
@@ -136072,7 +136478,7 @@ __webpack_require__.r(__webpack_exports__);
136072
136478
  "on": {
136073
136479
  "change": this.change
136074
136480
  }
136075
- })])])]);
136481
+ })])]);
136076
136482
  }
136077
136483
  });
136078
136484
 
@@ -147286,7 +147692,7 @@ __webpack_require__.r(__webpack_exports__);
147286
147692
  const {
147287
147693
  ...props
147288
147694
  } = this.$attrs;
147289
- return this.list.length > 0 && h("keep-alive", [h("div", {
147695
+ return this.list.length > 0 && h("div", {
147290
147696
  "class": "a-tags"
147291
147697
  }, [h("AscrollBox", [h("div", {
147292
147698
  "attrs": {
@@ -147309,7 +147715,7 @@ __webpack_require__.r(__webpack_exports__);
147309
147715
  "props": {
147310
147716
  ...props
147311
147717
  }
147312
- }, [a.rander ? () => a.rander(a) : a.text]))])])])]);
147718
+ }, [a.rander ? () => a.rander(a) : a.text]))])])]);
147313
147719
  }
147314
147720
  });
147315
147721
 
@@ -150406,13 +150812,6 @@ exports.circularLayout = circularLayout;
150406
150812
 
150407
150813
  /***/ }),
150408
150814
 
150409
- /***/ "d63c":
150410
- /***/ (function(module, exports, __webpack_require__) {
150411
-
150412
- // extracted by mini-css-extract-plugin
150413
-
150414
- /***/ }),
150415
-
150416
150815
  /***/ "d67c":
150417
150816
  /***/ (function(module, exports, __webpack_require__) {
150418
150817
 
@@ -156105,17 +156504,6 @@ const Aecharts = a => Promise.resolve(/* AMD require */).then(function() { var _
156105
156504
  }
156106
156505
  });
156107
156506
 
156108
- /***/ }),
156109
-
156110
- /***/ "deea":
156111
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
156112
-
156113
- "use strict";
156114
- /* harmony import */ var _node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_15_10_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_15_10_1_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_3e164ca6_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("d63c");
156115
- /* harmony import */ var _node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_15_10_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_15_10_1_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_3e164ca6_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_15_10_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_15_10_1_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_3e164ca6_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
156116
- /* unused harmony reexport * */
156117
-
156118
-
156119
156507
  /***/ }),
156120
156508
 
156121
156509
  /***/ "dff3":
@@ -157434,190 +157822,6 @@ function normalizeComponent(
157434
157822
  }
157435
157823
 
157436
157824
 
157437
- /***/ }),
157438
-
157439
- /***/ "e611":
157440
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
157441
-
157442
- "use strict";
157443
- // ESM COMPAT FLAG
157444
- __webpack_require__.r(__webpack_exports__);
157445
-
157446
- // CONCATENATED MODULE: ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7125891e-vue-loader-template"}!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--13-0!./node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.3.0@babel-loader/lib!./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--1-0!./node_modules/_vue-loader@15.10.1@vue-loader/lib??vue-loader-options!./src/components/Atable/Actions/index.vue?vue&type=template&id=4111a5a8&
157447
- var render = function render() {
157448
- var _vm = this,
157449
- _c = _vm._self._c;
157450
- return _vm.create(_vm.config) || _vm.create(_vm.$listeners) ? _c('el-table-column', {
157451
- attrs: {
157452
- "fixed": _vm.fixed,
157453
- "align": _vm.align,
157454
- "width": _vm.width,
157455
- "label": _vm.title
157456
- },
157457
- scopedSlots: _vm._u([{
157458
- key: "default",
157459
- fn: function ({
157460
- row,
157461
- $index
157462
- }) {
157463
- return [_c('div', {
157464
- staticClass: "action"
157465
- }, [_vm.config.review ? _c('i', {
157466
- staticClass: "el-icon-view",
157467
- on: {
157468
- "click": () => _vm.config.review(row, $index)
157469
- }
157470
- }) : _vm._e(), _vm.config.modify ? _c('i', {
157471
- staticClass: "el-icon-edit",
157472
- on: {
157473
- "click": () => _vm.config.modify(row, $index)
157474
- }
157475
- }) : _vm._e(), _vm.config.update ? _c('i', {
157476
- staticClass: "el-icon-edit",
157477
- on: {
157478
- "click": () => _vm.config.update(row, $index)
157479
- }
157480
- }) : _vm._e(), _vm.config.handle ? _c('i', {
157481
- staticClass: "el-icon-edit",
157482
- on: {
157483
- "click": () => _vm.config.handle(row, $index)
157484
- }
157485
- }) : _vm._e(), _vm.config.remove ? _c('Apopconfirm', {
157486
- on: {
157487
- "submit": () => _vm.config.remove(row, $index)
157488
- }
157489
- }) : _vm._e(), _vm.config.delete ? _c('Apopconfirm', {
157490
- on: {
157491
- "submit": () => _vm.config.delete(row, $index)
157492
- }
157493
- }) : _vm._e(), _vm.config.export ? _c('i', {
157494
- staticClass: "el-icon-download",
157495
- on: {
157496
- "click": () => _vm.config.export(row, $index)
157497
- }
157498
- }) : _vm._e(), _vm.$listeners.review ? _c('i', {
157499
- staticClass: "el-icon-view",
157500
- on: {
157501
- "click": () => _vm.$listeners.review(row, $index)
157502
- }
157503
- }) : _vm._e(), _vm.$listeners.modify ? _c('i', {
157504
- staticClass: "el-icon-edit",
157505
- on: {
157506
- "click": () => _vm.$listeners.modify(row, $index)
157507
- }
157508
- }) : _vm._e(), _vm.$listeners.update ? _c('i', {
157509
- staticClass: "el-icon-edit",
157510
- on: {
157511
- "click": () => _vm.$listeners.update(row, $index)
157512
- }
157513
- }) : _vm._e(), _vm.$listeners.handle ? _c('i', {
157514
- staticClass: "el-icon-edit",
157515
- on: {
157516
- "click": () => _vm.$listeners.handle(row, $index)
157517
- }
157518
- }) : _vm._e(), _vm.$listeners.remove ? _c('Apopconfirm', {
157519
- on: {
157520
- "submit": () => _vm.$listeners.remove(row, $index)
157521
- }
157522
- }) : _vm._e(), _vm.$listeners.delete ? _c('Apopconfirm', {
157523
- on: {
157524
- "submit": () => _vm.$listeners.delete(row, $index)
157525
- }
157526
- }) : _vm._e(), _vm.$listeners.export ? _c('i', {
157527
- staticClass: "el-icon-download",
157528
- on: {
157529
- "click": () => _vm.$listeners.export(row, $index)
157530
- }
157531
- }) : _vm._e()], 1)];
157532
- }
157533
- }], null, false, 2826007373)
157534
- }) : _vm._e();
157535
- };
157536
- var staticRenderFns = [];
157537
-
157538
- // CONCATENATED MODULE: ./src/components/Atable/Actions/index.vue?vue&type=template&id=4111a5a8&
157539
-
157540
- // EXTERNAL MODULE: ./src/components/Apopconfirm/index.js
157541
- var Apopconfirm = __webpack_require__("2ee7");
157542
-
157543
- // CONCATENATED MODULE: ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--13-0!./node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.3.0@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--1-0!./node_modules/_vue-loader@15.10.1@vue-loader/lib??vue-loader-options!./src/components/Atable/Actions/index.vue?vue&type=script&lang=js&
157544
-
157545
- /* harmony default export */ var Actionsvue_type_script_lang_js_ = ({
157546
- name: 'AtableActions',
157547
- components: {
157548
- Apopconfirm: Apopconfirm["default"]
157549
- },
157550
- props: {
157551
- fixed: {
157552
- type: String,
157553
- default: () => 'right'
157554
- },
157555
- align: {
157556
- type: String,
157557
- default: () => 'center'
157558
- },
157559
- title: {
157560
- type: String,
157561
- default: () => '操作'
157562
- },
157563
- width: {
157564
- type: String,
157565
- default: () => '180px'
157566
- },
157567
- config: {
157568
- type: Object,
157569
- default: () => ({
157570
- review: null,
157571
- modify: null,
157572
- update: null,
157573
- handle: null,
157574
- remove: null,
157575
- delete: null,
157576
- export: null
157577
- })
157578
- }
157579
- },
157580
- methods: {
157581
- create({
157582
- review = null,
157583
- modify = null,
157584
- update = null,
157585
- handle = null,
157586
- remove = null,
157587
- ...r
157588
- }) {
157589
- if (review || modify || update || handle || remove || r.delete || r.export) {
157590
- return true;
157591
- } else return false;
157592
- }
157593
- }
157594
- });
157595
- // CONCATENATED MODULE: ./src/components/Atable/Actions/index.vue?vue&type=script&lang=js&
157596
- /* harmony default export */ var Atable_Actionsvue_type_script_lang_js_ = (Actionsvue_type_script_lang_js_);
157597
- // EXTERNAL MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/runtime/componentNormalizer.js
157598
- var componentNormalizer = __webpack_require__("e607");
157599
-
157600
- // CONCATENATED MODULE: ./src/components/Atable/Actions/index.vue
157601
-
157602
-
157603
-
157604
-
157605
-
157606
- /* normalize component */
157607
-
157608
- var component = Object(componentNormalizer["a" /* default */])(
157609
- Atable_Actionsvue_type_script_lang_js_,
157610
- render,
157611
- staticRenderFns,
157612
- false,
157613
- null,
157614
- null,
157615
- null
157616
-
157617
- )
157618
-
157619
- /* harmony default export */ var Actions = __webpack_exports__["default"] = (component.exports);
157620
-
157621
157825
  /***/ }),
157622
157826
 
157623
157827
  /***/ "e615":
@@ -158082,6 +158286,13 @@ module.exports = _default;
158082
158286
 
158083
158287
  /***/ }),
158084
158288
 
158289
+ /***/ "e6e6":
158290
+ /***/ (function(module, exports, __webpack_require__) {
158291
+
158292
+ // extracted by mini-css-extract-plugin
158293
+
158294
+ /***/ }),
158295
+
158085
158296
  /***/ "e720":
158086
158297
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
158087
158298
 
@@ -158104,14 +158315,14 @@ __webpack_require__.r(__webpack_exports__);
158104
158315
  type: String,
158105
158316
  default: () => '600px'
158106
158317
  },
158318
+ check: {
158319
+ type: Boolean,
158320
+ default: () => true
158321
+ },
158107
158322
  height: {
158108
158323
  type: String,
158109
158324
  default: () => '72vh'
158110
158325
  },
158111
- verify: {
158112
- type: Boolean,
158113
- default: () => true
158114
- },
158115
158326
  loading: {
158116
158327
  type: Boolean,
158117
158328
  default: () => false
@@ -158154,6 +158365,7 @@ __webpack_require__.r(__webpack_exports__);
158154
158365
  },
158155
158366
  methods: {
158156
158367
  format() {
158368
+ if (this.check == false) return true;
158157
158369
  let data = [];
158158
158370
  let pass = true;
158159
158371
  let elements = this.$slots.default;
@@ -158170,7 +158382,7 @@ __webpack_require__.r(__webpack_exports__);
158170
158382
  }
158171
158383
  });
158172
158384
  })(elements);
158173
- if (this.verify && pass == false) return false;
158385
+ if (pass == false) return false;
158174
158386
  let params = data.length && data.length > 0 ? data.length && data.length > 1 ? data : data[0] : null;
158175
158387
  return params;
158176
158388
  },
@@ -160308,6 +160520,13 @@ module.exports = _default;
160308
160520
 
160309
160521
  /***/ }),
160310
160522
 
160523
+ /***/ "ebb9":
160524
+ /***/ (function(module, exports, __webpack_require__) {
160525
+
160526
+ // extracted by mini-css-extract-plugin
160527
+
160528
+ /***/ }),
160529
+
160311
160530
  /***/ "ec73":
160312
160531
  /***/ (function(module, exports, __webpack_require__) {
160313
160532
 
@@ -163685,8 +163904,6 @@ var map = {
163685
163904
  "./Aeditor/QuillEditor/index.vue": "8958",
163686
163905
  "./Aeditor/WangEditor/index.vue": "3302",
163687
163906
  "./Aplayer/index.vue": "1c4e",
163688
- "./Atable/Actions/index.vue": "e611",
163689
- "./Atable/index.vue": "ffd4",
163690
163907
  "./Atree/index.vue": "ce34",
163691
163908
  "./Aupload/File/index.vue": "3a9a",
163692
163909
  "./Aupload/Icon/index.vue": "7d0e",
@@ -166786,7 +167003,7 @@ __webpack_require__.r(__webpack_exports__);
166786
167003
  },
166787
167004
  inline: {
166788
167005
  type: Boolean,
166789
- default: () => false
167006
+ default: () => true
166790
167007
  },
166791
167008
  cols: {
166792
167009
  type: String,
@@ -166835,28 +167052,21 @@ __webpack_require__.r(__webpack_exports__);
166835
167052
  },
166836
167053
  data() {
166837
167054
  return {
166838
- form: {},
166839
- height: 0,
166840
- opened: false
167055
+ form: {}
166841
167056
  };
166842
167057
  },
166843
167058
  created() {
166844
167059
  this.create();
166845
167060
  },
166846
- mounted() {
166847
- this.update();
166848
- },
167061
+ mounted() {},
166849
167062
  destroyed() {
166850
167063
  this.create = null;
166851
- this.update = null;
166852
167064
  this.submit = null;
166853
167065
  this.cancel = null;
166854
167066
  this.filter = null;
166855
167067
  this.result = null;
166856
- this.switch = null;
166857
167068
  this.prompt = null;
166858
167069
  this.format = null;
166859
- this.output = null;
166860
167070
  },
166861
167071
  watch: {
166862
167072
  values() {
@@ -166873,15 +167083,11 @@ __webpack_require__.r(__webpack_exports__);
166873
167083
  this.form = data;
166874
167084
  }
166875
167085
  },
166876
- update() {
166877
- let rows = Math.ceil(Object.keys(this.config).length / this.cols);
166878
- this.height = this.$el.clientHeight * (rows - 1);
166879
- },
166880
167086
  submit(e) {
166881
167087
  // 提交表单
166882
167088
  e && e.preventDefault();
166883
167089
  let pass = !this.check; // 判断是否是空表单
166884
- for (let a in this.form) if (this.form[a] != '') pass = true;
167090
+ for (let a in this.form) if (this.form[a].trim() != '') pass = true;
166885
167091
  let data = {};
166886
167092
  if (Object.keys(this.config).length > 0) {
166887
167093
  // 格式化属性为模糊查询属性
@@ -166942,18 +167148,19 @@ __webpack_require__.r(__webpack_exports__);
166942
167148
  }
166943
167149
  },
166944
167150
  filter(form = {}) {
167151
+ // 过滤空值属性
166945
167152
  const data = {};
166946
167153
  for (let a in form) {
166947
- if (form[a] != '' && form[a] != '%%' && form[a] != 'null' && form[a] != 'undefined' && form[a] != null && form[a] != undefined) data[a] = form[a];
167154
+ if (a != undefined && a != 'undefined' && form[a] != '' && form[a] != '%%' && form[a] != 'null' && form[a] != 'undefined' && form[a] != null && form[a] != undefined) {
167155
+ data[a] = form[a];
167156
+ }
166948
167157
  }
166949
167158
  return data;
166950
167159
  },
166951
167160
  result() {
167161
+ // 返回验证后的表单数据
166952
167162
  return this.filter(this.form);
166953
167163
  },
166954
- switch() {
166955
- this.opened = !this.opened;
166956
- },
166957
167164
  prompt(a = {}, index = 0, placeholder = '') {
166958
167165
  if (Object.keys(a).length > 0 && a.placeholder && a.placeholder.length && a.placeholder.length > 0) return a.placeholder[index];
166959
167166
  return placeholder;
@@ -166982,31 +167189,6 @@ __webpack_require__.r(__webpack_exports__);
166982
167189
  }
166983
167190
  });
166984
167191
  }
166985
- },
166986
- output(a, b) {
166987
- const h = this.$createElement;
166988
- let style = this.cols != '' ? {
166989
- width: `${100 / this.cols}%`
166990
- } : {};
166991
- return h("el-col", {
166992
- "key": b,
166993
- "style": style
166994
- }, [h("el-form-item", {
166995
- "attrs": {
166996
- "prop": `${a}`,
166997
- "label": this.label ? this.config[a]['text'] : ''
166998
- }
166999
- }, [this.config[a].than || this.config[a].range || this.config[a].scope ? h("el-col", {
167000
- "class": "range-cols"
167001
- }, [h("el-col", {
167002
- "attrs": {
167003
- "span": 12
167004
- }
167005
- }, [this.format(a, `${a}LE`, this.prompt(this.config[a], 0, '最高'))]), h("el-col", {
167006
- "attrs": {
167007
- "span": 12
167008
- }
167009
- }, [this.format(a, `${a}GE`, this.prompt(this.config[a], 1, '最低'))])]) : this.format(a)])]);
167010
167192
  }
167011
167193
  },
167012
167194
  render() {
@@ -167018,7 +167200,11 @@ __webpack_require__.r(__webpack_exports__);
167018
167200
  submit = null,
167019
167201
  cancel = null
167020
167202
  } = this.$listeners;
167021
- return h("keep-alive", [h("div", {
167203
+ let style = this.cols != '' ? {
167204
+ width: `${100 / this.cols}%`
167205
+ } : {};
167206
+ let label = a => this.label ? this.config[a].text || this.config[a].label || this.config[a].title : '';
167207
+ return h("div", {
167022
167208
  "class": "b-f-search",
167023
167209
  "style": {
167024
167210
  padding: this.margin
@@ -167026,8 +167212,7 @@ __webpack_require__.r(__webpack_exports__);
167026
167212
  }, [h("el-form", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
167027
167213
  "ref": "form",
167028
167214
  "attrs": {
167029
- "size": this.size,
167030
- "inline": this.inline
167215
+ "size": this.size
167031
167216
  }
167032
167217
  }, {
167033
167218
  "props": {
@@ -167039,42 +167224,38 @@ __webpack_require__.r(__webpack_exports__);
167039
167224
  "labelWidth": this.labelWidth,
167040
167225
  "labelPosition": this.labelPosition
167041
167226
  }
167042
- }]), [h("div", {
167043
- "class": "column"
167044
- }, [h("el-row", {
167227
+ }]), [h("el-row", {
167045
167228
  "attrs": {
167046
167229
  "gutter": Number(this.gutter)
167047
- },
167048
- "class": "main-row"
167049
- }, [Object.keys(this.config).map((a, b) => b < this.cols && this.output(a, b))]), h("el-row", {
167230
+ }
167231
+ }, [Object.keys(this.config).map((a, b) => h("el-col", {
167232
+ "key": b,
167233
+ "class": "column",
167234
+ "style": style
167235
+ }, [h("el-form-item", {
167050
167236
  "attrs": {
167051
- "gutter": Number(this.gutter)
167052
- },
167053
- "class": "fold-row",
167054
- "style": {
167055
- height: this.opened ? `${this.height}px` : '0'
167237
+ "prop": `${a}`,
167238
+ "label": label(a)
167056
167239
  }
167057
- }, [Object.keys(this.config).map((a, b) => b > this.cols - 1 && this.output(a, b))])]), (Object.keys(this.config).length > this.cols || submit || cancel) && h("div", {
167058
- "class": "action",
167059
- "style": {
167060
- paddingLeft: `${this.gutter}px`
167240
+ }, [this.config[a].than || this.config[a].range || this.config[a].scope ? h("el-col", {
167241
+ "class": "range-cols"
167242
+ }, [h("el-col", {
167243
+ "attrs": {
167244
+ "span": 12
167061
167245
  }
167062
- }, [h("el-form-item", {
167246
+ }, [this.format(a, `${a}LE`, this.prompt(this.config[a], 0, '最高'))]), h("el-col", {
167063
167247
  "attrs": {
167064
- "label": "action"
167248
+ "span": 12
167065
167249
  }
167066
- }, [Object.keys(this.config).length > this.cols && h("el-button", {
167250
+ }, [this.format(a, `${a}GE`, this.prompt(this.config[a], 1, '最低'))])]) : this.format(a)])])), this.$slots.default, (submit || cancel) && h("el-col", {
167251
+ "key": "action",
167252
+ "class": "action",
167253
+ "style": style
167254
+ }, [h("el-form-item", {
167067
167255
  "attrs": {
167068
- "disabled": this.loading,
167069
- "type": "text"
167070
- },
167071
- "class": "collapse-button",
167072
- "on": {
167073
- "click": this.switch
167256
+ "label": this.label ? 'action' : ''
167074
167257
  }
167075
- }, [h("i", {
167076
- "class": `el-icon-arrow-${this.opened ? 'up' : 'down'}`
167077
- }), this.opened ? '收起' : '展开']), submit && h("el-button", {
167258
+ }, [submit && h("el-button", {
167078
167259
  "attrs": {
167079
167260
  "disabled": this.loading,
167080
167261
  "type": "primary"
@@ -168893,438 +169074,6 @@ exports.getStroke = getStroke;
168893
169074
  exports.getFill = getFill;
168894
169075
  exports.needDrawText = needDrawText;
168895
169076
 
168896
- /***/ }),
168897
-
168898
- /***/ "ffd4":
168899
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
168900
-
168901
- "use strict";
168902
- // ESM COMPAT FLAG
168903
- __webpack_require__.r(__webpack_exports__);
168904
-
168905
- // CONCATENATED MODULE: ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7125891e-vue-loader-template"}!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--13-0!./node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.3.0@babel-loader/lib!./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--1-0!./node_modules/_vue-loader@15.10.1@vue-loader/lib??vue-loader-options!./src/components/Atable/index.vue?vue&type=template&id=3e164ca6&scoped=true&
168906
- var render = function render() {
168907
- var _vm = this,
168908
- _c = _vm._self._c;
168909
- return _c('div', {
168910
- class: _vm.border ? 'a-table' : 'a-table border'
168911
- }, [_c('el-table', {
168912
- directives: [{
168913
- name: "loading",
168914
- rawName: "v-loading",
168915
- value: _vm.loading,
168916
- expression: "loading"
168917
- }],
168918
- ref: "a-table",
168919
- attrs: {
168920
- "data": _vm.format(_vm.record).data,
168921
- "size": _vm.size,
168922
- "border": _vm.border,
168923
- "stripe": _vm.stripe,
168924
- "row-key": _vm.rowKey,
168925
- "max-height": _vm.maxHeight,
168926
- "element-loading-text": _vm.elementLoadingText,
168927
- "element-loading-spinner": _vm.elementLoadingSpinner,
168928
- "element-loading-background": _vm.elementLoadingBackground,
168929
- "show-header": _vm.showHeader,
168930
- "default-sort": _vm.defaultSort,
168931
- "show-summary": _vm.showSummary,
168932
- "tooltip-effect": _vm.tooltipEffect,
168933
- "default-expand-all": _vm.defaultExpandAll,
168934
- "tree-props": _vm.tree ? _vm.treeProps : {},
168935
- "highlight-current-row": _vm.highlightCurrentRow
168936
- },
168937
- on: {
168938
- "row-click": _vm.choose,
168939
- "selection-change": _vm.select
168940
- }
168941
- }, [_vm.format(_vm.record).data.length > 0 ? [_vm.selection || _vm.$listeners.select ? _c('el-table-column', {
168942
- attrs: {
168943
- "fixed": "left",
168944
- "type": "selection",
168945
- "width": _vm.selectionWidth
168946
- }
168947
- }) : _vm._e(), _vm.sort ? _c('el-table-column', {
168948
- attrs: {
168949
- "fixed": "left",
168950
- "type": "index",
168951
- "width": _vm.sortWidth,
168952
- "label": _vm.sortTitle
168953
- }
168954
- }) : _vm._e(), _vm._l(_vm.column, function (a, b) {
168955
- return _c('el-table-column', {
168956
- key: b,
168957
- attrs: {
168958
- "prop": a.field || a.index || a.name || a.prop || `${a}`,
168959
- "label": a.label || a.title || a.text,
168960
- "sortable": a.field || a.index || a.name || a.prop ? a.sortable ? a.sortable : _vm.sortable : false,
168961
- "showOverflowTooltip": a.showOverflowTooltip ? a.showOverflowTooltip : _vm.showOverflowTooltip
168962
- },
168963
- scopedSlots: _vm._u([{
168964
- key: "default",
168965
- fn: function (scope) {
168966
- return [_vm._t(a.field || a.index || a.name || a.prop || `${a}`, function () {
168967
- return [_vm._v(_vm._s(scope.row[_vm.item.prop]))];
168968
- }, {
168969
- "row": scope.row
168970
- })];
168971
- }
168972
- }], null, true)
168973
- });
168974
- }), _vm._t("default"), _vm.$listeners.review || _vm.$listeners.modify || _vm.$listeners.update || _vm.$listeners.handle || _vm.$listeners.remove || _vm.$listeners.delete || _vm.$listeners.export ? _c('el-table-column', {
168975
- attrs: {
168976
- "fixed": "right",
168977
- "align": "center",
168978
- "width": _vm.actionWidth,
168979
- "label": _vm.actionTitle
168980
- },
168981
- scopedSlots: _vm._u([{
168982
- key: "default",
168983
- fn: function ({
168984
- row,
168985
- $index
168986
- }) {
168987
- return [_c('div', {
168988
- staticClass: "action"
168989
- }, [_vm.$listeners.review ? _c('i', {
168990
- staticClass: "el-icon-view",
168991
- on: {
168992
- "click": () => _vm.$listeners.review(row, $index)
168993
- }
168994
- }) : _vm._e(), _vm.$listeners.modify ? _c('i', {
168995
- staticClass: "el-icon-edit",
168996
- on: {
168997
- "click": () => _vm.$listeners.modify(row, $index)
168998
- }
168999
- }) : _vm._e(), _vm.$listeners.update ? _c('i', {
169000
- staticClass: "el-icon-edit",
169001
- on: {
169002
- "click": () => _vm.$listeners.update(row, $index)
169003
- }
169004
- }) : _vm._e(), _vm.$listeners.handle ? _c('i', {
169005
- staticClass: "el-icon-edit",
169006
- on: {
169007
- "click": () => _vm.$listeners.handle(row, $index)
169008
- }
169009
- }) : _vm._e(), _vm.$listeners.remove ? _c('Apopconfirm', {
169010
- on: {
169011
- "submit": () => _vm.$listeners.remove(row, $index)
169012
- }
169013
- }) : _vm._e(), _vm.$listeners.delete ? _c('Apopconfirm', {
169014
- on: {
169015
- "submit": () => _vm.$listeners.delete(row, $index)
169016
- }
169017
- }) : _vm._e(), _vm.$listeners.export ? _c('i', {
169018
- staticClass: "el-icon-download",
169019
- on: {
169020
- "click": () => _vm.$listeners.export(row, $index)
169021
- }
169022
- }) : _vm._e()], 1)];
169023
- }
169024
- }], null, false, 2786542129)
169025
- }) : _vm._e()] : _vm._e(), _c('div', {
169026
- staticClass: "empty",
169027
- attrs: {
169028
- "slot": "empty"
169029
- },
169030
- slot: "empty"
169031
- }, [!_vm.loading ? _c('Aempty', {
169032
- attrs: {
169033
- "description": _vm.emptyText
169034
- }
169035
- }) : _vm._e()], 1)], 2), !_vm.tree && _vm.page && _vm.format(_vm.record).data.length > 0 ? _c('Apages', {
169036
- attrs: {
169037
- "total": _vm.format(_vm.record).size,
169038
- "pages": _vm.pageParams
169039
- },
169040
- on: {
169041
- "change": _vm.change
169042
- }
169043
- }) : _vm._e()], 1);
169044
- };
169045
- var staticRenderFns = [];
169046
-
169047
- // CONCATENATED MODULE: ./src/components/Atable/index.vue?vue&type=template&id=3e164ca6&scoped=true&
169048
-
169049
- // EXTERNAL MODULE: ./src/components/Aactions/index.js
169050
- var Aactions = __webpack_require__("e94c");
169051
-
169052
- // EXTERNAL MODULE: ./src/components/Aempty/index.js
169053
- var Aempty = __webpack_require__("bd5e");
169054
-
169055
- // EXTERNAL MODULE: ./src/components/Aenume/index.js
169056
- var Aenume = __webpack_require__("6cc8");
169057
-
169058
- // EXTERNAL MODULE: ./src/components/Aform/AfSearch/index.js
169059
- var AfSearch = __webpack_require__("1b78");
169060
-
169061
- // EXTERNAL MODULE: ./src/components/Aform/BfSearch/index.js
169062
- var BfSearch = __webpack_require__("fc0d");
169063
-
169064
- // EXTERNAL MODULE: ./src/components/AformItem/index.js
169065
- var AformItem = __webpack_require__("2234");
169066
-
169067
- // EXTERNAL MODULE: ./src/components/Apages/index.js
169068
- var Apages = __webpack_require__("1d0c");
169069
-
169070
- // EXTERNAL MODULE: ./src/components/Apopconfirm/index.js
169071
- var Apopconfirm = __webpack_require__("2ee7");
169072
-
169073
- // CONCATENATED MODULE: ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--13-0!./node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.3.0@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--1-0!./node_modules/_vue-loader@15.10.1@vue-loader/lib??vue-loader-options!./src/components/Atable/index.vue?vue&type=script&lang=js&
169074
-
169075
-
169076
-
169077
-
169078
-
169079
-
169080
-
169081
-
169082
- /* harmony default export */ var Atablevue_type_script_lang_js_ = ({
169083
- components: {
169084
- Aactions: Aactions["default"],
169085
- Aempty: Aempty["default"],
169086
- Aenume: Aenume["default"],
169087
- AfSearch: AfSearch["default"],
169088
- BfSearch: BfSearch["default"],
169089
- AformItem: AformItem["default"],
169090
- Apages: Apages["default"],
169091
- Apopconfirm: Apopconfirm["default"]
169092
- },
169093
- props: {
169094
- margin: {
169095
- type: String,
169096
- default: () => '0'
169097
- },
169098
- rowKey: {
169099
- type: String,
169100
- default: () => 'id'
169101
- },
169102
- size: {
169103
- type: String,
169104
- default: () => 'medium'
169105
- },
169106
- selectionWidth: {
169107
- type: String,
169108
- default: () => '50'
169109
- },
169110
- sort: {
169111
- type: Boolean,
169112
- default: () => true
169113
- },
169114
- sortTitle: {
169115
- type: String,
169116
- default: () => '#'
169117
- },
169118
- sortWidth: {
169119
- type: String,
169120
- default: () => '50'
169121
- },
169122
- border: {
169123
- type: Boolean,
169124
- default: () => false
169125
- },
169126
- stripe: {
169127
- type: Boolean,
169128
- default: () => false
169129
- },
169130
- loading: {
169131
- type: Boolean,
169132
- default: () => false
169133
- },
169134
- column: {
169135
- type: Array,
169136
- default: () => []
169137
- },
169138
- record: {
169139
- type: Object,
169140
- default: () => ({})
169141
- },
169142
- maxHeight: {
169143
- type: String,
169144
- default: () => '480'
169145
- },
169146
- elementLoadingText: {
169147
- type: String,
169148
- default: () => ''
169149
- },
169150
- elementLoadingSpinner: {
169151
- type: String,
169152
- default: () => 'el-icon-loading'
169153
- },
169154
- elementLoadingBackground: {
169155
- type: String,
169156
- default: () => 'rgba(0, 0, 0, 0.04)'
169157
- },
169158
- emptyText: {
169159
- type: String,
169160
- default: () => ''
169161
- },
169162
- showHeader: {
169163
- type: Boolean,
169164
- default: () => true
169165
- },
169166
- selection: {
169167
- type: Boolean,
169168
- default: () => false
169169
- },
169170
- showOverflowTooltip: {
169171
- type: Boolean,
169172
- default: () => true
169173
- },
169174
- tooltipEffect: {
169175
- type: String,
169176
- default: () => 'light'
169177
- },
169178
- showSummary: {
169179
- type: Boolean,
169180
- default: () => false
169181
- },
169182
- sumText: {
169183
- type: String,
169184
- default: () => '合计'
169185
- },
169186
- sortable: {
169187
- type: Boolean,
169188
- default: () => false
169189
- },
169190
- defaultSort: {
169191
- type: Object,
169192
- default: () => ({
169193
- prop: 'date',
169194
- order: 'descending'
169195
- })
169196
- },
169197
- tree: {
169198
- type: Boolean,
169199
- default: () => false
169200
- },
169201
- defaultExpandAll: {
169202
- type: Boolean,
169203
- default: () => true
169204
- },
169205
- treeProps: {
169206
- type: Object,
169207
- default: () => ({
169208
- children: 'children',
169209
- hasChildren: 'hasChildren'
169210
- })
169211
- },
169212
- highlightCurrentRow: {
169213
- type: Boolean,
169214
- default: () => false
169215
- },
169216
- actionWidth: {
169217
- type: String,
169218
- default: () => '180px'
169219
- },
169220
- actionTitle: {
169221
- type: String,
169222
- default: () => '操作'
169223
- },
169224
- page: {
169225
- type: Boolean,
169226
- default: () => true
169227
- }
169228
- },
169229
- mounted() {
169230
- this.$refs['a-table'].bodyWrapper.addEventListener('wheel', this.scroll);
169231
- },
169232
- beforeDestroy() {
169233
- this.$refs['a-table'].bodyWrapper.removeEventListener('wheel', this.scroll);
169234
- },
169235
- data() {
169236
- const {
169237
- pageParams = {}
169238
- } = this.$store.state;
169239
- return {
169240
- pageParams
169241
- };
169242
- },
169243
- methods: {
169244
- format(a = {}) {
169245
- return {
169246
- data: a.data ? a.data : a.list ? a.list : a.rows ? a.rows : a.record ? a.record : a.records ? a.records : [],
169247
- size: a.size ? a.size : a.total ? a.total : a.count ? a.count : 0
169248
- };
169249
- },
169250
- search(params = {}) {
169251
- const {
169252
- pageParams = {},
169253
- formParams = {}
169254
- } = this.$store.state;
169255
- const formatParams = Object.assign({}, pageParams, formParams, params);
169256
- this.$emit('search', formatParams);
169257
- },
169258
- select(items = []) {
169259
- this.$store.commit('changeSelectedRows', items);
169260
- this.$store.commit('changeSelectedKeys', items.map(a => a[this.rowKey]));
169261
- this.$emit('select', {
169262
- rows: items,
169263
- keys: items.map(a => a[this.rowKey])
169264
- });
169265
- },
169266
- choose(row, column, event) {
169267
- this.$emit('choose', {
169268
- row,
169269
- column,
169270
- event
169271
- });
169272
- },
169273
- change(pages = {
169274
- page: 1,
169275
- size: 10
169276
- }) {
169277
- this.$store.commit('changePageParams', pages);
169278
- this.$emit('change', pages);
169279
- this.search(pages);
169280
- },
169281
- scroll(a) {
169282
- let container = this.$refs['a-table'].bodyWrapper;
169283
- if (container) {
169284
- if (container.scrollHeight > container.clientHeight) {
169285
- a.preventDefault();
169286
- container.scrollTop += a.deltaY;
169287
- } else {
169288
- if (container.scrollWidth > container.clientWidth) {
169289
- a.preventDefault();
169290
- container.scrollLeft += a.deltaY;
169291
- }
169292
- }
169293
- this.$emit('scroll', a);
169294
- }
169295
- }
169296
- }
169297
- });
169298
- // CONCATENATED MODULE: ./src/components/Atable/index.vue?vue&type=script&lang=js&
169299
- /* harmony default export */ var components_Atablevue_type_script_lang_js_ = (Atablevue_type_script_lang_js_);
169300
- // EXTERNAL MODULE: ./src/components/Atable/index.vue?vue&type=style&index=0&id=3e164ca6&prod&scoped=true&lang=css&
169301
- var Atablevue_type_style_index_0_id_3e164ca6_prod_scoped_true_lang_css_ = __webpack_require__("deea");
169302
-
169303
- // EXTERNAL MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/runtime/componentNormalizer.js
169304
- var componentNormalizer = __webpack_require__("e607");
169305
-
169306
- // CONCATENATED MODULE: ./src/components/Atable/index.vue
169307
-
169308
-
169309
-
169310
-
169311
-
169312
-
169313
- /* normalize component */
169314
-
169315
- var component = Object(componentNormalizer["a" /* default */])(
169316
- components_Atablevue_type_script_lang_js_,
169317
- render,
169318
- staticRenderFns,
169319
- false,
169320
- null,
169321
- "3e164ca6",
169322
- null
169323
-
169324
- )
169325
-
169326
- /* harmony default export */ var Atable = __webpack_exports__["default"] = (component.exports);
169327
-
169328
169077
  /***/ })
169329
169078
 
169330
169079
  /******/ });