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.
@@ -12723,6 +12723,324 @@ module.exports = _default;
12723
12723
 
12724
12724
  /***/ }),
12725
12725
 
12726
+ /***/ "1a2f":
12727
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
12728
+
12729
+ "use strict";
12730
+ __webpack_require__.r(__webpack_exports__);
12731
+ /* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6aaa");
12732
+ /* 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__);
12733
+ /* harmony import */ var _components_AformItem__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("2234");
12734
+ /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("ebb9");
12735
+ /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_2__);
12736
+
12737
+
12738
+
12739
+ /* harmony default export */ __webpack_exports__["default"] = ({
12740
+ name: 'CfSearch',
12741
+ components: {
12742
+ AformItem: _components_AformItem__WEBPACK_IMPORTED_MODULE_1__["default"]
12743
+ },
12744
+ props: {
12745
+ margin: {
12746
+ type: String,
12747
+ default: () => '0'
12748
+ },
12749
+ size: {
12750
+ type: String,
12751
+ default: () => 'small'
12752
+ },
12753
+ inline: {
12754
+ type: Boolean,
12755
+ default: () => false
12756
+ },
12757
+ cols: {
12758
+ type: String,
12759
+ default: () => '6'
12760
+ },
12761
+ gutter: {
12762
+ type: String,
12763
+ default: () => '10'
12764
+ },
12765
+ labelWidth: {
12766
+ type: String,
12767
+ default: () => 'auto'
12768
+ },
12769
+ labelPosition: {
12770
+ type: String,
12771
+ default: () => 'top'
12772
+ },
12773
+ config: {
12774
+ type: Object,
12775
+ default: () => ({})
12776
+ },
12777
+ values: {
12778
+ type: Object,
12779
+ default: () => ({})
12780
+ },
12781
+ label: {
12782
+ type: Boolean,
12783
+ default: () => true
12784
+ },
12785
+ check: {
12786
+ type: Boolean,
12787
+ default: () => false
12788
+ },
12789
+ loading: {
12790
+ type: Boolean,
12791
+ default: () => false
12792
+ },
12793
+ submitText: {
12794
+ type: String,
12795
+ default: () => '搜索'
12796
+ },
12797
+ cancelText: {
12798
+ type: String,
12799
+ default: () => '重置'
12800
+ }
12801
+ },
12802
+ data() {
12803
+ return {
12804
+ form: {},
12805
+ height: 0,
12806
+ opened: false
12807
+ };
12808
+ },
12809
+ created() {
12810
+ this.create();
12811
+ },
12812
+ mounted() {
12813
+ this.update();
12814
+ },
12815
+ destroyed() {
12816
+ this.create = null;
12817
+ this.update = null;
12818
+ this.submit = null;
12819
+ this.cancel = null;
12820
+ this.filter = null;
12821
+ this.result = null;
12822
+ this.switch = null;
12823
+ this.prompt = null;
12824
+ this.format = null;
12825
+ this.output = null;
12826
+ },
12827
+ watch: {
12828
+ values() {
12829
+ this.create();
12830
+ }
12831
+ },
12832
+ methods: {
12833
+ create() {
12834
+ // 创建表单
12835
+ if (this.config && Object.keys(this.config).length > 0) {
12836
+ // 格式化表单配置对象(this.config)为数据双向绑定对象
12837
+ let data = {};
12838
+ for (let a in this.config) data[a] = this.config[a].default ? this.config[a].default : '';
12839
+ this.form = data;
12840
+ }
12841
+ },
12842
+ update() {
12843
+ let rows = Math.ceil(Object.keys(this.config).length / this.cols);
12844
+ this.height = this.$el.clientHeight * (rows - 1);
12845
+ },
12846
+ submit(e) {
12847
+ // 提交表单
12848
+ e && e.preventDefault();
12849
+ let pass = !this.check; // 判断是否是空表单
12850
+ for (let a in this.form) if (this.form[a] != '') pass = true;
12851
+ let data = {};
12852
+ if (Object.keys(this.config).length > 0) {
12853
+ // 格式化属性为模糊查询属性
12854
+ for (let a in this.config) {
12855
+ if (this.config[a] != '' && this.config[a].like && this.form[a].trim() != '' && this.form[a].trim() != null && this.form[a].trim() != undefined) {
12856
+ if (this.config[a].like == 'left') data[a] = '%' + this.form[a].trim();
12857
+ if (this.config[a].like == 'right') data[a] = this.form[a].trim() + '%';else data[a] = '%' + this.form[a].trim() + '%';
12858
+ } else {
12859
+ if (this.config[a] != '' && (this.config[a].than || this.config[a].range || this.config[a].scope)) {
12860
+ data[`${a}LE`] = this.form[`${a}LE`].trim();
12861
+ data[`${a}GE`] = this.form[`${a}GE`].trim();
12862
+ } 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();
12863
+ }
12864
+ }
12865
+ }
12866
+ if (pass) {
12867
+ let result = this.filter(data);
12868
+ this.$nextTick(() => {
12869
+ this.$emit('submit', {
12870
+ ...result,
12871
+ page: 1
12872
+ }); // 派发事件并重置当前分页
12873
+ return result;
12874
+ });
12875
+ }
12876
+ },
12877
+ cancel(e) {
12878
+ // 重置表单
12879
+ e && e.preventDefault();
12880
+ let pass = !this.check; // 判断是否是空表单
12881
+ for (let a in this.form) if (this.form[a] != '') pass = true;
12882
+ if (pass) {
12883
+ this.$nextTick(() => {
12884
+ for (let a in this.form) this.form[a] = '';
12885
+ this.$nextTick(() => this.$emit('cancel', this.form));
12886
+ });
12887
+ }
12888
+ },
12889
+ filter(form = {}) {
12890
+ const data = {};
12891
+ for (let a in form) {
12892
+ if (form[a] != '' && form[a] != '%%' && form[a] != 'null' && form[a] != 'undefined' && form[a] != null && form[a] != undefined) data[a] = form[a];
12893
+ }
12894
+ return data;
12895
+ },
12896
+ result() {
12897
+ return this.filter(this.form);
12898
+ },
12899
+ switch() {
12900
+ this.opened = !this.opened;
12901
+ },
12902
+ prompt(a = {}, index = 0, placeholder = '') {
12903
+ if (Object.keys(a).length > 0 && a.placeholder && a.placeholder.length && a.placeholder.length > 0) return a.placeholder[index];
12904
+ return placeholder;
12905
+ },
12906
+ format(a = {}, field = '', placeholder = '') {
12907
+ const h = this.$createElement;
12908
+ if (Object.keys(a).length > 0) {
12909
+ let config = {
12910
+ size: this.config[a].size ? this.config[a].size : this.size,
12911
+ field: field != '' ? field : `${a}`,
12912
+ disabled: this.loading,
12913
+ form: this.form,
12914
+ ...this.config[a]
12915
+ };
12916
+ if (placeholder != '') return h(_components_AformItem__WEBPACK_IMPORTED_MODULE_1__["default"], {
12917
+ "attrs": {
12918
+ "config": {
12919
+ ...config,
12920
+ placeholder
12921
+ }
12922
+ }
12923
+ });
12924
+ return h(_components_AformItem__WEBPACK_IMPORTED_MODULE_1__["default"], {
12925
+ "attrs": {
12926
+ "config": config
12927
+ }
12928
+ });
12929
+ }
12930
+ },
12931
+ output(a, b) {
12932
+ const h = this.$createElement;
12933
+ let style = this.cols != '' ? {
12934
+ width: `${100 / this.cols}%`
12935
+ } : {};
12936
+ return h("el-col", {
12937
+ "key": b,
12938
+ "style": style
12939
+ }, [h("el-form-item", {
12940
+ "attrs": {
12941
+ "prop": `${a}`,
12942
+ "label": this.label ? this.config[a]['text'] : ''
12943
+ }
12944
+ }, [this.config[a].than || this.config[a].range || this.config[a].scope ? h("el-col", {
12945
+ "class": "range-cols"
12946
+ }, [h("el-col", {
12947
+ "attrs": {
12948
+ "span": 12
12949
+ }
12950
+ }, [this.format(a, `${a}LE`, this.prompt(this.config[a], 0, '最高'))]), h("el-col", {
12951
+ "attrs": {
12952
+ "span": 12
12953
+ }
12954
+ }, [this.format(a, `${a}GE`, this.prompt(this.config[a], 1, '最低'))])]) : this.format(a)])]);
12955
+ }
12956
+ },
12957
+ render() {
12958
+ const h = arguments[0];
12959
+ const {
12960
+ ...props
12961
+ } = this.$attrs;
12962
+ const {
12963
+ submit = null,
12964
+ cancel = null
12965
+ } = this.$listeners;
12966
+ return h("div", {
12967
+ "class": "c-f-search",
12968
+ "style": {
12969
+ padding: this.margin
12970
+ }
12971
+ }, [h("el-form", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
12972
+ "ref": "form",
12973
+ "attrs": {
12974
+ "size": this.size,
12975
+ "inline": this.inline
12976
+ }
12977
+ }, {
12978
+ "props": {
12979
+ model: this.form,
12980
+ ...props
12981
+ }
12982
+ }, {
12983
+ "attrs": {
12984
+ "labelWidth": this.labelWidth,
12985
+ "labelPosition": this.labelPosition
12986
+ }
12987
+ }]), [h("div", {
12988
+ "class": "column"
12989
+ }, [h("el-row", {
12990
+ "attrs": {
12991
+ "gutter": Number(this.gutter)
12992
+ },
12993
+ "class": "main-row"
12994
+ }, [Object.keys(this.config).map((a, b) => b < this.cols && this.output(a, b))]), h("el-row", {
12995
+ "attrs": {
12996
+ "gutter": Number(this.gutter)
12997
+ },
12998
+ "class": "fold-row",
12999
+ "style": {
13000
+ height: this.opened ? `${this.height}px` : '0'
13001
+ }
13002
+ }, [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", {
13003
+ "class": "action",
13004
+ "style": {
13005
+ paddingLeft: `${this.gutter}px`
13006
+ }
13007
+ }, [h("el-form-item", {
13008
+ "attrs": {
13009
+ "label": "action"
13010
+ }
13011
+ }, [Object.keys(this.config).length > this.cols && h("el-button", {
13012
+ "attrs": {
13013
+ "disabled": this.loading,
13014
+ "type": "text"
13015
+ },
13016
+ "class": "collapse-button",
13017
+ "on": {
13018
+ "click": this.switch
13019
+ }
13020
+ }, [h("i", {
13021
+ "class": `el-icon-arrow-${this.opened ? 'up' : 'down'}`
13022
+ }), this.opened ? '收起' : '展开']), submit && h("el-button", {
13023
+ "attrs": {
13024
+ "disabled": this.loading,
13025
+ "type": "primary"
13026
+ },
13027
+ "on": {
13028
+ "click": this.submit
13029
+ }
13030
+ }, [this.submitText]), cancel && h("el-button", {
13031
+ "attrs": {
13032
+ "disabled": this.loading,
13033
+ "type": "default"
13034
+ },
13035
+ "on": {
13036
+ "click": this.cancel
13037
+ }
13038
+ }, [this.cancelText])])])])]);
13039
+ }
13040
+ });
13041
+
13042
+ /***/ }),
13043
+
12726
13044
  /***/ "1aa8":
12727
13045
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
12728
13046
 
@@ -13004,6 +13322,11 @@ var map = {
13004
13322
  "./Aform/BfSearch/index": "fc0d",
13005
13323
  "./Aform/BfSearch/index.css": "a261",
13006
13324
  "./Aform/BfSearch/index.js": "fc0d",
13325
+ "./Aform/CfSearch": "1a2f",
13326
+ "./Aform/CfSearch/": "1a2f",
13327
+ "./Aform/CfSearch/index": "1a2f",
13328
+ "./Aform/CfSearch/index.css": "ebb9",
13329
+ "./Aform/CfSearch/index.js": "1a2f",
13007
13330
  "./Aform/index": "aff6",
13008
13331
  "./Aform/index.css": "d397",
13009
13332
  "./Aform/index.js": "aff6",
@@ -13095,16 +13418,9 @@ var map = {
13095
13418
  "./Aswitch/index.js": "02e1",
13096
13419
  "./Atable": "bd9e",
13097
13420
  "./Atable/": "bd9e",
13098
- "./Atable/Actions": "e611",
13099
- "./Atable/Actions/": "e611",
13100
- "./Atable/Actions/index": "e611",
13101
- "./Atable/Actions/index.vue": "e611",
13102
13421
  "./Atable/index": "bd9e",
13103
- "./Atable/index copy": "5e12",
13104
- "./Atable/index copy.js": "5e12",
13105
13422
  "./Atable/index.css": "c089",
13106
13423
  "./Atable/index.js": "bd9e",
13107
- "./Atable/index.vue": "ffd4",
13108
13424
  "./Atabs": "3766",
13109
13425
  "./Atabs/": "3766",
13110
13426
  "./Atabs/index": "3766",
@@ -13194,7 +13510,12 @@ var map = {
13194
13510
  "./Btree/": "9d92",
13195
13511
  "./Btree/index": "9d92",
13196
13512
  "./Btree/index.css": "353a",
13197
- "./Btree/index.vue": "9d92"
13513
+ "./Btree/index.vue": "9d92",
13514
+ "./Ctable": "78ab",
13515
+ "./Ctable/": "78ab",
13516
+ "./Ctable/index": "78ab",
13517
+ "./Ctable/index.css": "e6e6",
13518
+ "./Ctable/index.js": "78ab"
13198
13519
  };
13199
13520
 
13200
13521
 
@@ -13414,7 +13735,7 @@ __webpack_require__.r(__webpack_exports__);
13414
13735
  },
13415
13736
  inline: {
13416
13737
  type: Boolean,
13417
- default: () => true
13738
+ default: () => false
13418
13739
  },
13419
13740
  cols: {
13420
13741
  type: String,
@@ -13463,21 +13784,28 @@ __webpack_require__.r(__webpack_exports__);
13463
13784
  },
13464
13785
  data() {
13465
13786
  return {
13466
- form: {}
13787
+ form: {},
13788
+ height: 0,
13789
+ opened: false
13467
13790
  };
13468
13791
  },
13469
13792
  created() {
13470
13793
  this.create();
13471
13794
  },
13472
- mounted() {},
13795
+ mounted() {
13796
+ this.update();
13797
+ },
13473
13798
  destroyed() {
13474
13799
  this.create = null;
13800
+ this.update = null;
13475
13801
  this.submit = null;
13476
13802
  this.cancel = null;
13477
13803
  this.filter = null;
13478
13804
  this.result = null;
13805
+ this.switch = null;
13479
13806
  this.prompt = null;
13480
13807
  this.format = null;
13808
+ this.output = null;
13481
13809
  },
13482
13810
  watch: {
13483
13811
  values() {
@@ -13494,11 +13822,15 @@ __webpack_require__.r(__webpack_exports__);
13494
13822
  this.form = data;
13495
13823
  }
13496
13824
  },
13825
+ update() {
13826
+ let rows = Math.ceil(Object.keys(this.config).length / this.cols);
13827
+ this.height = this.$el.clientHeight * (rows - 1);
13828
+ },
13497
13829
  submit(e) {
13498
13830
  // 提交表单
13499
13831
  e && e.preventDefault();
13500
13832
  let pass = !this.check; // 判断是否是空表单
13501
- for (let a in this.form) if (this.form[a].trim() != '') pass = true;
13833
+ for (let a in this.form) if (this.form[a] != '') pass = true;
13502
13834
  let data = {};
13503
13835
  if (Object.keys(this.config).length > 0) {
13504
13836
  // 格式化属性为模糊查询属性
@@ -13559,19 +13891,18 @@ __webpack_require__.r(__webpack_exports__);
13559
13891
  }
13560
13892
  },
13561
13893
  filter(form = {}) {
13562
- // 过滤空值属性
13563
13894
  const data = {};
13564
13895
  for (let a in form) {
13565
- if (a != undefined && a != 'undefined' && form[a] != '' && form[a] != '%%' && form[a] != 'null' && form[a] != 'undefined' && form[a] != null && form[a] != undefined) {
13566
- data[a] = form[a];
13567
- }
13896
+ if (form[a] != '' && form[a] != '%%' && form[a] != 'null' && form[a] != 'undefined' && form[a] != null && form[a] != undefined) data[a] = form[a];
13568
13897
  }
13569
13898
  return data;
13570
13899
  },
13571
13900
  result() {
13572
- // 返回验证后的表单数据
13573
13901
  return this.filter(this.form);
13574
13902
  },
13903
+ switch() {
13904
+ this.opened = !this.opened;
13905
+ },
13575
13906
  prompt(a = {}, index = 0, placeholder = '') {
13576
13907
  if (Object.keys(a).length > 0 && a.placeholder && a.placeholder.length && a.placeholder.length > 0) return a.placeholder[index];
13577
13908
  return placeholder;
@@ -13600,6 +13931,31 @@ __webpack_require__.r(__webpack_exports__);
13600
13931
  }
13601
13932
  });
13602
13933
  }
13934
+ },
13935
+ output(a, b) {
13936
+ const h = this.$createElement;
13937
+ let style = this.cols != '' ? {
13938
+ width: `${100 / this.cols}%`
13939
+ } : {};
13940
+ return h("el-col", {
13941
+ "key": b,
13942
+ "style": style
13943
+ }, [h("el-form-item", {
13944
+ "attrs": {
13945
+ "prop": `${a}`,
13946
+ "label": this.label ? this.config[a]['text'] : ''
13947
+ }
13948
+ }, [this.config[a].than || this.config[a].range || this.config[a].scope ? h("el-col", {
13949
+ "class": "range-cols"
13950
+ }, [h("el-col", {
13951
+ "attrs": {
13952
+ "span": 12
13953
+ }
13954
+ }, [this.format(a, `${a}LE`, this.prompt(this.config[a], 0, '最高'))]), h("el-col", {
13955
+ "attrs": {
13956
+ "span": 12
13957
+ }
13958
+ }, [this.format(a, `${a}GE`, this.prompt(this.config[a], 1, '最低'))])]) : this.format(a)])]);
13603
13959
  }
13604
13960
  },
13605
13961
  render() {
@@ -13611,11 +13967,7 @@ __webpack_require__.r(__webpack_exports__);
13611
13967
  submit = null,
13612
13968
  cancel = null
13613
13969
  } = this.$listeners;
13614
- let style = this.cols != '' ? {
13615
- width: `${100 / this.cols}%`
13616
- } : {};
13617
- let label = a => this.label ? this.config[a].text || this.config[a].label || this.config[a].title : '';
13618
- return h("keep-alive", [h("div", {
13970
+ return h("div", {
13619
13971
  "class": "a-f-search",
13620
13972
  "style": {
13621
13973
  padding: this.margin
@@ -13623,7 +13975,8 @@ __webpack_require__.r(__webpack_exports__);
13623
13975
  }, [h("el-form", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
13624
13976
  "ref": "form",
13625
13977
  "attrs": {
13626
- "size": this.size
13978
+ "size": this.size,
13979
+ "inline": this.inline
13627
13980
  }
13628
13981
  }, {
13629
13982
  "props": {
@@ -13635,38 +13988,42 @@ __webpack_require__.r(__webpack_exports__);
13635
13988
  "labelWidth": this.labelWidth,
13636
13989
  "labelPosition": this.labelPosition
13637
13990
  }
13638
- }]), [h("el-row", {
13991
+ }]), [h("div", {
13992
+ "class": "column"
13993
+ }, [h("el-row", {
13639
13994
  "attrs": {
13640
13995
  "gutter": Number(this.gutter)
13641
- }
13642
- }, [Object.keys(this.config).map((a, b) => h("el-col", {
13643
- "key": b,
13644
- "class": "column",
13645
- "style": style
13646
- }, [h("el-form-item", {
13996
+ },
13997
+ "class": "main-row"
13998
+ }, [Object.keys(this.config).map((a, b) => b < this.cols && this.output(a, b))]), h("el-row", {
13647
13999
  "attrs": {
13648
- "prop": `${a}`,
13649
- "label": label(a)
14000
+ "gutter": Number(this.gutter)
14001
+ },
14002
+ "class": "fold-row",
14003
+ "style": {
14004
+ height: this.opened ? `${this.height}px` : '0'
13650
14005
  }
13651
- }, [this.config[a].than || this.config[a].range || this.config[a].scope ? h("el-col", {
13652
- "class": "range-cols"
13653
- }, [h("el-col", {
13654
- "attrs": {
13655
- "span": 12
14006
+ }, [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", {
14007
+ "class": "action",
14008
+ "style": {
14009
+ paddingLeft: `${this.gutter}px`
13656
14010
  }
13657
- }, [this.format(a, `${a}LE`, this.prompt(this.config[a], 0, '最高'))]), h("el-col", {
14011
+ }, [h("el-form-item", {
13658
14012
  "attrs": {
13659
- "span": 12
14013
+ "label": "action"
13660
14014
  }
13661
- }, [this.format(a, `${a}GE`, this.prompt(this.config[a], 1, '最低'))])]) : this.format(a)])])), this.$slots.default, (submit || cancel) && h("el-col", {
13662
- "key": "action",
13663
- "class": "action",
13664
- "style": style
13665
- }, [h("el-form-item", {
14015
+ }, [Object.keys(this.config).length > this.cols && h("el-button", {
13666
14016
  "attrs": {
13667
- "label": this.label ? 'action' : ''
14017
+ "disabled": this.loading,
14018
+ "type": "text"
14019
+ },
14020
+ "class": "collapse-button",
14021
+ "on": {
14022
+ "click": this.switch
13668
14023
  }
13669
- }, [submit && h("el-button", {
14024
+ }, [h("i", {
14025
+ "class": `el-icon-arrow-${this.opened ? 'up' : 'down'}`
14026
+ }), this.opened ? '收起' : '展开']), submit && h("el-button", {
13670
14027
  "attrs": {
13671
14028
  "disabled": this.loading,
13672
14029
  "type": "primary"
@@ -13682,7 +14039,7 @@ __webpack_require__.r(__webpack_exports__);
13682
14039
  "on": {
13683
14040
  "click": this.cancel
13684
14041
  }
13685
- }, [this.cancelText])])])])])])]);
14042
+ }, [this.cancelText])])])])]);
13686
14043
  }
13687
14044
  });
13688
14045
 
@@ -16114,11 +16471,8 @@ __webpack_require__.r(__webpack_exports__);
16114
16471
  };
16115
16472
  },
16116
16473
  watch: {
16117
- page(page) {
16118
- this.config.page = page;
16119
- },
16120
- size(size) {
16121
- this.config.size = size;
16474
+ pages(pages = this.pages) {
16475
+ this.config = pages;
16122
16476
  }
16123
16477
  },
16124
16478
  methods: {
@@ -16136,8 +16490,6 @@ __webpack_require__.r(__webpack_exports__);
16136
16490
  render() {
16137
16491
  const h = arguments[0];
16138
16492
  const {
16139
- page = null,
16140
- size = null,
16141
16493
  ...props
16142
16494
  } = this.$attrs;
16143
16495
  return h("div", {
@@ -16145,8 +16497,8 @@ __webpack_require__.r(__webpack_exports__);
16145
16497
  }, [h("el-pagination", {
16146
16498
  "attrs": {
16147
16499
  "small": this.small,
16148
- "current-page": page || this.config.page,
16149
- "page-size": size || this.config.size,
16500
+ "current-page": this.config.page,
16501
+ "page-size": this.config.size,
16150
16502
  "page-sizes": this.pageSizes,
16151
16503
  "layout": this.complete ? 'total, sizes, prev, pager, next, jumper' : 'prev, pager, next',
16152
16504
  "total": this.total,
@@ -35738,6 +36090,7 @@ var map = {
35738
36090
  "./Aform/AfEditor/index.js": "b550",
35739
36091
  "./Aform/AfSearch/index.js": "1b78",
35740
36092
  "./Aform/BfSearch/index.js": "fc0d",
36093
+ "./Aform/CfSearch/index.js": "1a2f",
35741
36094
  "./Aform/index.js": "aff6",
35742
36095
  "./AformItem/index.js": "2234",
35743
36096
  "./AiconSelect/index.js": "db3d",
@@ -35767,7 +36120,8 @@ var map = {
35767
36120
  "./Bcard/index.js": "4df8",
35768
36121
  "./BformItem/index.js": "5c61",
35769
36122
  "./Bmap/index.js": "e579",
35770
- "./Btable/index.js": "98ee"
36123
+ "./Btable/index.js": "98ee",
36124
+ "./Ctable/index.js": "78ab"
35771
36125
  };
35772
36126
 
35773
36127
 
@@ -38968,494 +39322,6 @@ exports.count = count;
38968
39322
 
38969
39323
  /***/ }),
38970
39324
 
38971
- /***/ "5e12":
38972
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
38973
-
38974
- "use strict";
38975
- __webpack_require__.r(__webpack_exports__);
38976
- /* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6aaa");
38977
- /* 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__);
38978
- /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("c089");
38979
- /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_1__);
38980
-
38981
-
38982
-
38983
- 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);
38984
- 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);
38985
- 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);
38986
- 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);
38987
- 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);
38988
- 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);
38989
- 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);
38990
- /* harmony default export */ __webpack_exports__["default"] = ({
38991
- name: 'AtableBakup',
38992
- props: {
38993
- margin: {
38994
- type: String,
38995
- default: () => '0'
38996
- },
38997
- rowKey: {
38998
- type: String,
38999
- default: () => 'id'
39000
- },
39001
- size: {
39002
- type: String,
39003
- default: () => 'medium'
39004
- },
39005
- selectionWidth: {
39006
- type: String,
39007
- default: () => '50'
39008
- },
39009
- sort: {
39010
- type: Boolean,
39011
- default: () => true
39012
- },
39013
- sortTitle: {
39014
- type: String,
39015
- default: () => '#'
39016
- },
39017
- sortWidth: {
39018
- type: String,
39019
- default: () => '50'
39020
- },
39021
- border: {
39022
- type: Boolean,
39023
- default: () => false
39024
- },
39025
- stripe: {
39026
- type: Boolean,
39027
- default: () => false
39028
- },
39029
- loading: {
39030
- type: Boolean,
39031
- default: () => false
39032
- },
39033
- column: {
39034
- type: Array,
39035
- default: () => []
39036
- },
39037
- record: {
39038
- type: Object,
39039
- default: () => ({})
39040
- },
39041
- maxHeight: {
39042
- type: String,
39043
- default: () => '480'
39044
- },
39045
- elementLoadingText: {
39046
- type: String,
39047
- default: () => ''
39048
- },
39049
- elementLoadingSpinner: {
39050
- type: String,
39051
- default: () => 'el-icon-loading'
39052
- },
39053
- elementLoadingBackground: {
39054
- type: String,
39055
- default: () => 'rgba(0, 0, 0, 0.04)'
39056
- },
39057
- emptyText: {
39058
- type: String,
39059
- default: () => ''
39060
- },
39061
- showHeader: {
39062
- type: Boolean,
39063
- default: () => true
39064
- },
39065
- selection: {
39066
- type: Boolean,
39067
- default: () => false
39068
- },
39069
- showOverflowTooltip: {
39070
- type: Boolean,
39071
- default: () => true
39072
- },
39073
- tooltipEffect: {
39074
- type: String,
39075
- default: () => 'light'
39076
- },
39077
- showSummary: {
39078
- type: Boolean,
39079
- default: () => false
39080
- },
39081
- sumText: {
39082
- type: String,
39083
- default: () => '合计'
39084
- },
39085
- sortable: {
39086
- type: Boolean,
39087
- default: () => false
39088
- },
39089
- defaultSort: {
39090
- type: Object,
39091
- default: () => ({
39092
- prop: 'date',
39093
- order: 'descending'
39094
- })
39095
- },
39096
- tree: {
39097
- type: Boolean,
39098
- default: () => false
39099
- },
39100
- defaultExpandAll: {
39101
- type: Boolean,
39102
- default: () => true
39103
- },
39104
- treeProps: {
39105
- type: Object,
39106
- default: () => ({
39107
- children: 'children',
39108
- hasChildren: 'hasChildren'
39109
- })
39110
- },
39111
- highlightCurrentRow: {
39112
- type: Boolean,
39113
- default: () => false
39114
- },
39115
- actionWidth: {
39116
- type: String,
39117
- default: () => '180px'
39118
- },
39119
- actionTitle: {
39120
- type: String,
39121
- default: () => '操作'
39122
- },
39123
- page: {
39124
- type: Boolean,
39125
- default: () => true
39126
- }
39127
- },
39128
- mounted() {
39129
- this.$refs['a-table'].bodyWrapper.addEventListener('wheel', this.scroll);
39130
- },
39131
- beforeDestroy() {
39132
- this.$refs['a-table'].bodyWrapper.removeEventListener('wheel', this.scroll);
39133
- },
39134
- destroyed() {
39135
- this.create = null;
39136
- this.search = null;
39137
- this.select = null;
39138
- this.choose = null;
39139
- this.change = null;
39140
- this.format = null;
39141
- this.scroll = null;
39142
- },
39143
- methods: {
39144
- create(column = []) {
39145
- const h = this.$createElement;
39146
- const actionColumn = () => {
39147
- let data = [];
39148
- const {
39149
- review = null,
39150
- modify = null,
39151
- update = null,
39152
- handle = null,
39153
- remove = null
39154
- } = this.$listeners;
39155
- if (review || modify || update || handle || remove || this.$listeners.delete || this.$listeners.export) {
39156
- data = [{
39157
- label: this.actionTitle,
39158
- fixed: 'right',
39159
- align: 'center',
39160
- width: this.actionWidth,
39161
- render: item => h("div", {
39162
- "class": "action"
39163
- }, [review && h("i", {
39164
- "class": "el-icon-view",
39165
- "on": {
39166
- "click": () => review(item)
39167
- }
39168
- }), modify && h("i", {
39169
- "class": "el-icon-edit",
39170
- "on": {
39171
- "click": () => modify(item)
39172
- }
39173
- }), update && h("i", {
39174
- "class": "el-icon-edit",
39175
- "on": {
39176
- "click": () => update(item)
39177
- }
39178
- }), handle && h("i", {
39179
- "class": "el-icon-edit",
39180
- "on": {
39181
- "click": () => handle(item)
39182
- }
39183
- }), remove && h("Apopconfirm", {
39184
- "on": {
39185
- "submit": () => remove(item)
39186
- }
39187
- }), this.$listeners.delete && h("Apopconfirm", {
39188
- "on": {
39189
- "submit": () => this.$listeners.delete(item)
39190
- }
39191
- }), this.$listeners.export && h("i", {
39192
- "class": "el-icon-download",
39193
- "on": {
39194
- "click": () => this.$listeners.export(item)
39195
- }
39196
- })])
39197
- }];
39198
- }
39199
- return data;
39200
- };
39201
- const columnConfig = [...column, ...actionColumn()];
39202
- return columnConfig.map((a, b) => {
39203
- if (a && Object.keys(a).length > 0) {
39204
- let {
39205
- header = null,
39206
- ...item
39207
- } = a;
39208
- let label = a.text || a.label || a.title;
39209
- return h("el-table-column", {
39210
- "key": b,
39211
- "attrs": {
39212
- "scoped-slot": true,
39213
- "prop": a.field,
39214
- "sortable": a.field ? a.sortable ? a.sortable : this.sortable : false,
39215
- "showOverflowTooltip": a.showOverflowTooltip ? a.showOverflowTooltip : this.showOverflowTooltip,
39216
- "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
39217
- },
39218
- "props": {
39219
- ...a
39220
- }
39221
- }, [h("template", {
39222
- "slot": "header"
39223
- }, [header ? () => header(item) : label && label != '' && label.length && label.length > 8 ? h("el-tooltip", {
39224
- "attrs": {
39225
- "content": label,
39226
- "placement": "top"
39227
- }
39228
- }, [h("span", {
39229
- "attrs": {
39230
- "title": label
39231
- }
39232
- }, [label])]) : h("span", {
39233
- "attrs": {
39234
- "title": label
39235
- }
39236
- }, [label])])]);
39237
- }
39238
- });
39239
- },
39240
- search(params = {}) {
39241
- const {
39242
- pageParams = {},
39243
- formParams = {}
39244
- } = this.$store.state;
39245
- const formatParams = Object.assign({}, pageParams, formParams, params);
39246
- this.$emit('search', formatParams);
39247
- },
39248
- select(items = []) {
39249
- this.$store.commit('changeSelectedRows', items);
39250
- this.$store.commit('changeSelectedKeys', items.map(a => a[this.rowKey]));
39251
- this.$emit('select', {
39252
- rows: items,
39253
- keys: items.map(a => a[this.rowKey])
39254
- });
39255
- },
39256
- choose(row, column, event) {
39257
- this.$emit('choose', {
39258
- row,
39259
- column,
39260
- event
39261
- });
39262
- },
39263
- change(pages = {
39264
- page: 1,
39265
- size: 10
39266
- }) {
39267
- this.$store.commit('changePageParams', pages);
39268
- this.$emit('change', pages);
39269
- this.search(pages);
39270
- },
39271
- format({
39272
- type = '',
39273
- name = '',
39274
- data = [],
39275
- text = '',
39276
- label = '',
39277
- title = '',
39278
- field = '',
39279
- dicts = [],
39280
- ...props
39281
- }, colIndex, item, rowIndex) {
39282
- const h = this.$createElement;
39283
- if (type == 'enume' || type == 'enumerate') {
39284
- if (field != '') return h(Aenume, _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
39285
- "key": colIndex + '-' + rowIndex,
39286
- "attrs": {
39287
- "field": field,
39288
- "data": dicts.length > 0 ? dicts : data
39289
- }
39290
- }, props, {
39291
- "model": {
39292
- value: item[field],
39293
- callback: $$v => {
39294
- this.$set(item, field, $$v);
39295
- }
39296
- }
39297
- }]));
39298
- return h(Aenume, _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
39299
- "key": colIndex + '-' + rowIndex,
39300
- "attrs": {
39301
- "field": name,
39302
- "data": dicts.length > 0 ? dicts : data
39303
- }
39304
- }, props, {
39305
- "model": {
39306
- value: item[name],
39307
- callback: $$v => {
39308
- this.$set(item, name, $$v);
39309
- }
39310
- }
39311
- }]));
39312
- }
39313
- return h(AformItem, {
39314
- "key": colIndex + '-' + rowIndex,
39315
- "attrs": {
39316
- "config": {
39317
- type,
39318
- form: item,
39319
- dicts: dicts.length > 0 ? dicts : data,
39320
- field: field != '' ? field : name != '' ? name : '',
39321
- label: text != '' ? text : label != '' ? label : title != '' ? title : '无栏目名称',
39322
- ...props
39323
- }
39324
- }
39325
- });
39326
- },
39327
- scroll(a) {
39328
- let container = this.$refs['a-table'].bodyWrapper;
39329
- if (container) {
39330
- if (container.scrollHeight > container.clientHeight) {
39331
- a.preventDefault();
39332
- container.scrollTop += a.deltaY;
39333
- } else {
39334
- if (container.scrollWidth > container.clientWidth) {
39335
- a.preventDefault();
39336
- container.scrollLeft += a.deltaY;
39337
- }
39338
- }
39339
- this.$emit('scroll', a);
39340
- }
39341
- }
39342
- },
39343
- render() {
39344
- const h = arguments[0];
39345
- const {
39346
- formCols = '6',
39347
- searchVerify = true,
39348
- searchConfig = {},
39349
- actionConfig = []
39350
- } = this.$attrs;
39351
- const {
39352
- ...r
39353
- } = this.record;
39354
- const data = r.data ? r.data : r.list ? r.list : r.rows ? r.rows : r.record ? r.record : r.records ? r.records : [];
39355
- const size = r.size ? r.size : r.total ? r.total : r.count ? r.count : 0;
39356
- const {
39357
- pageParams = {}
39358
- } = this.$store.state;
39359
- const {
39360
- loading = false,
39361
- search = null
39362
- } = this;
39363
- const condition = data.length > 0;
39364
- return h("keep-alive", [h("div", {
39365
- "style": {
39366
- padding: this.margin
39367
- }
39368
- }, [Object.keys(searchConfig).length > 0 && (Object.keys(searchConfig).length < 5 ? h(AfSearch, {
39369
- "attrs": {
39370
- "cols": formCols,
39371
- "verify": searchVerify,
39372
- "config": searchConfig,
39373
- "loading": loading
39374
- },
39375
- "on": {
39376
- "submit": search,
39377
- "cancel": search
39378
- }
39379
- }) : h(BfSearch, {
39380
- "attrs": {
39381
- "cols": formCols,
39382
- "verify": searchVerify,
39383
- "config": searchConfig,
39384
- "loading": loading
39385
- },
39386
- "on": {
39387
- "submit": search,
39388
- "cancel": search
39389
- }
39390
- })), actionConfig.length > 0 && h(Aactions, {
39391
- "attrs": {
39392
- "config": actionConfig,
39393
- "disabled": loading
39394
- }
39395
- }), h("div", {
39396
- "class": this.border ? 'a-table' : 'a-table border'
39397
- }, [h("el-table", {
39398
- "ref": "a-table",
39399
- "attrs": {
39400
- "data": data,
39401
- "size": this.size,
39402
- "border": this.border,
39403
- "stripe": this.stripe,
39404
- "row-key": this.rowKey,
39405
- "max-height": this.maxHeight,
39406
- "element-loading-text": this.elementLoadingText,
39407
- "element-loading-spinner": this.elementLoadingSpinner,
39408
- "element-loading-background": this.elementLoadingBackground,
39409
- "show-header": this.showHeader,
39410
- "default-sort": this.defaultSort,
39411
- "show-summary": this.showSummary,
39412
- "tooltip-effect": this.tooltipEffect,
39413
- "default-expand-all": this.defaultExpandAll,
39414
- "tree-props": this.tree ? this.treeProps : {},
39415
- "highlight-current-row": this.highlightCurrentRow
39416
- },
39417
- "directives": [{
39418
- name: "loading",
39419
- value: loading
39420
- }],
39421
- "on": {
39422
- "row-click": this.choose,
39423
- "selection-change": this.select
39424
- }
39425
- }, [condition && (this.selection || this.$listeners.select) && h("el-table-column", {
39426
- "attrs": {
39427
- "fixed": "left",
39428
- "type": "selection",
39429
- "width": this.selectionWidth
39430
- }
39431
- }), condition && this.sort && h("el-table-column", {
39432
- "attrs": {
39433
- "fixed": "left",
39434
- "type": "index",
39435
- "width": this.sortWidth,
39436
- "label": this.sortTitle
39437
- }
39438
- }), condition && this.create(this.column), h("div", {
39439
- "slot": "empty",
39440
- "class": "empty"
39441
- }, [loading ? '' : h(Aempty, {
39442
- "attrs": {
39443
- "description": this.emptyText
39444
- }
39445
- })])]), !this.tree && this.page && condition && h(Apages, {
39446
- "attrs": {
39447
- "total": Number(size),
39448
- "pages": pageParams
39449
- },
39450
- "on": {
39451
- "change": this.change
39452
- }
39453
- })])])]);
39454
- }
39455
- });
39456
-
39457
- /***/ }),
39458
-
39459
39325
  /***/ "5eae":
39460
39326
  /***/ (function(module, exports, __webpack_require__) {
39461
39327
 
@@ -39862,7 +39728,7 @@ __webpack_require__.r(__webpack_exports__);
39862
39728
  } = this.$attrs;
39863
39729
  return h("div", {
39864
39730
  "class": this.mode != 'horizontal' ? 'a-menu' : 'a-menu horizontal'
39865
- }, [h("keep-alive", [h("el-menu", {
39731
+ }, [h("el-menu", {
39866
39732
  "attrs": {
39867
39733
  "mode": this.mode,
39868
39734
  "default-active": this.active,
@@ -39884,7 +39750,7 @@ __webpack_require__.r(__webpack_exports__);
39884
39750
  "props": {
39885
39751
  ...props
39886
39752
  }
39887
- }, [this.data && this.data.length > 0 && this.data.map((a, b) => this.format(a, b))])])]);
39753
+ }, [this.data && this.data.length > 0 && this.data.map((a, b) => this.format(a, b))])]);
39888
39754
  }
39889
39755
  });
39890
39756
 
@@ -40653,10 +40519,13 @@ __webpack_require__.r(__webpack_exports__);
40653
40519
  keys: items.map(a => a[this.rowKey])
40654
40520
  });
40655
40521
  },
40656
- change(pages) {
40522
+ change(pages = {
40523
+ page: 1,
40524
+ size: 10
40525
+ }) {
40657
40526
  this.$store.commit('changePageParams', pages);
40658
40527
  this.$emit('change', pages);
40659
- this.search();
40528
+ this.search(pages);
40660
40529
  },
40661
40530
  format({
40662
40531
  label,
@@ -51037,6 +50906,543 @@ module.exports = _default;
51037
50906
 
51038
50907
  /***/ }),
51039
50908
 
50909
+ /***/ "78ab":
50910
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
50911
+
50912
+ "use strict";
50913
+ __webpack_require__.r(__webpack_exports__);
50914
+ /* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6aaa");
50915
+ /* 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__);
50916
+ /* harmony import */ var _components_Aactions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("e94c");
50917
+ /* harmony import */ var _components_Aempty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("bd5e");
50918
+ /* harmony import */ var _components_Aenume__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("6cc8");
50919
+ /* harmony import */ var _components_Aform_AfSearch__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("1b78");
50920
+ /* harmony import */ var _components_Aform_BfSearch__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("fc0d");
50921
+ /* harmony import */ var _components_AformItem__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("2234");
50922
+ /* harmony import */ var _components_Apages__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("1d0c");
50923
+ /* harmony import */ var _components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("2ee7");
50924
+ /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("e6e6");
50925
+ /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_9__);
50926
+
50927
+
50928
+
50929
+
50930
+
50931
+
50932
+
50933
+
50934
+
50935
+
50936
+
50937
+ /* harmony default export */ __webpack_exports__["default"] = ({
50938
+ name: 'Ctable',
50939
+ components: {
50940
+ Aactions: _components_Aactions__WEBPACK_IMPORTED_MODULE_1__["default"],
50941
+ Aempty: _components_Aempty__WEBPACK_IMPORTED_MODULE_2__["default"],
50942
+ Aenume: _components_Aenume__WEBPACK_IMPORTED_MODULE_3__["default"],
50943
+ AfSearch: _components_Aform_AfSearch__WEBPACK_IMPORTED_MODULE_4__["default"],
50944
+ BfSearch: _components_Aform_BfSearch__WEBPACK_IMPORTED_MODULE_5__["default"],
50945
+ AformItem: _components_AformItem__WEBPACK_IMPORTED_MODULE_6__["default"],
50946
+ Apages: _components_Apages__WEBPACK_IMPORTED_MODULE_7__["default"],
50947
+ Apopconfirm: _components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__["default"]
50948
+ },
50949
+ props: {
50950
+ margin: {
50951
+ type: String,
50952
+ default: () => '0'
50953
+ },
50954
+ rowKey: {
50955
+ type: String,
50956
+ default: () => 'id'
50957
+ },
50958
+ size: {
50959
+ type: String,
50960
+ default: () => 'medium'
50961
+ },
50962
+ selectionWidth: {
50963
+ type: String,
50964
+ default: () => '50'
50965
+ },
50966
+ sort: {
50967
+ type: Boolean,
50968
+ default: () => true
50969
+ },
50970
+ sortTitle: {
50971
+ type: String,
50972
+ default: () => '#'
50973
+ },
50974
+ sortWidth: {
50975
+ type: String,
50976
+ default: () => '50'
50977
+ },
50978
+ border: {
50979
+ type: Boolean,
50980
+ default: () => false
50981
+ },
50982
+ stripe: {
50983
+ type: Boolean,
50984
+ default: () => false
50985
+ },
50986
+ loading: {
50987
+ type: Boolean,
50988
+ default: () => false
50989
+ },
50990
+ column: {
50991
+ type: Array,
50992
+ default: () => []
50993
+ },
50994
+ record: {
50995
+ type: Object,
50996
+ default: () => ({})
50997
+ },
50998
+ maxHeight: {
50999
+ type: String,
51000
+ default: () => '480'
51001
+ },
51002
+ elementLoadingText: {
51003
+ type: String,
51004
+ default: () => ''
51005
+ },
51006
+ elementLoadingSpinner: {
51007
+ type: String,
51008
+ default: () => 'el-icon-loading'
51009
+ },
51010
+ elementLoadingBackground: {
51011
+ type: String,
51012
+ default: () => 'rgba(0, 0, 0, 0.04)'
51013
+ },
51014
+ emptyText: {
51015
+ type: String,
51016
+ default: () => ''
51017
+ },
51018
+ showHeader: {
51019
+ type: Boolean,
51020
+ default: () => true
51021
+ },
51022
+ selection: {
51023
+ type: Boolean,
51024
+ default: () => true
51025
+ },
51026
+ showOverflowTooltip: {
51027
+ type: Boolean,
51028
+ default: () => true
51029
+ },
51030
+ tooltipEffect: {
51031
+ type: String,
51032
+ default: () => 'light'
51033
+ },
51034
+ showSummary: {
51035
+ type: Boolean,
51036
+ default: () => false
51037
+ },
51038
+ sumText: {
51039
+ type: String,
51040
+ default: () => '合计'
51041
+ },
51042
+ sortable: {
51043
+ type: Boolean,
51044
+ default: () => false
51045
+ },
51046
+ defaultSort: {
51047
+ type: Object,
51048
+ default: () => ({
51049
+ prop: 'date',
51050
+ order: 'descending'
51051
+ })
51052
+ },
51053
+ tree: {
51054
+ type: Boolean,
51055
+ default: () => false
51056
+ },
51057
+ defaultExpandAll: {
51058
+ type: Boolean,
51059
+ default: () => true
51060
+ },
51061
+ treeProps: {
51062
+ type: Object,
51063
+ default: () => ({
51064
+ children: 'children',
51065
+ hasChildren: 'hasChildren'
51066
+ })
51067
+ },
51068
+ highlightCurrentRow: {
51069
+ type: Boolean,
51070
+ default: () => false
51071
+ },
51072
+ action: {
51073
+ type: Object,
51074
+ default: () => ({
51075
+ review: null,
51076
+ modify: null,
51077
+ update: null,
51078
+ handle: null,
51079
+ remove: null,
51080
+ delete: null,
51081
+ export: null
51082
+ })
51083
+ },
51084
+ actionWidth: {
51085
+ type: String,
51086
+ default: () => '180px'
51087
+ },
51088
+ actionTitle: {
51089
+ type: String,
51090
+ default: () => '操作'
51091
+ },
51092
+ page: {
51093
+ type: Boolean,
51094
+ default: () => false
51095
+ }
51096
+ },
51097
+ mounted() {
51098
+ this.$refs['c-table'].bodyWrapper.addEventListener('wheel', this.scroll);
51099
+ },
51100
+ beforeDestroy() {
51101
+ this.$refs['c-table'].bodyWrapper.removeEventListener('wheel', this.scroll);
51102
+ },
51103
+ destroyed() {
51104
+ this.create = null;
51105
+ this.search = null;
51106
+ this.select = null;
51107
+ this.choose = null;
51108
+ this.change = null;
51109
+ this.format = null;
51110
+ this.scroll = null;
51111
+ },
51112
+ methods: {
51113
+ create() {
51114
+ const h = this.$createElement;
51115
+ let column = [...this.column, this.suffix()];
51116
+ return column.map((a, b) => {
51117
+ if (a && Object.keys(a).length > 0) {
51118
+ let {
51119
+ type = null,
51120
+ render = null,
51121
+ header = null,
51122
+ ...r
51123
+ } = a;
51124
+ let field = a.field || a.index || a.name || a.prop;
51125
+ let label = a.label || a.title || a.text;
51126
+ let props = {
51127
+ key: b,
51128
+ prop: field,
51129
+ scopedSlot: field,
51130
+ sortable: field ? a.sortable ? a.sortable : this.sortable : false,
51131
+ formatter: render ? render : type ? (e, f, g, h) => this.format(a, b, e, h) : null,
51132
+ showOverflowTooltip: a.showOverflowTooltip ? a.showOverflowTooltip : this.showOverflowTooltip,
51133
+ ...r
51134
+ };
51135
+ return h("el-table-column", {
51136
+ "props": {
51137
+ ...props
51138
+ }
51139
+ }, [h("template", {
51140
+ "slot": "header"
51141
+ }, [header ? () => header(r) : label && label != '' && label.length && label.length > 8 ? h("el-tooltip", {
51142
+ "attrs": {
51143
+ "content": label,
51144
+ "placement": "top"
51145
+ }
51146
+ }, [h("span", {
51147
+ "attrs": {
51148
+ "title": label
51149
+ }
51150
+ }, [label])]) : h("span", {
51151
+ "attrs": {
51152
+ "title": label
51153
+ }
51154
+ }, [label])])]);
51155
+ }
51156
+ });
51157
+ },
51158
+ suffix() {
51159
+ const h = this.$createElement;
51160
+ 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) {
51161
+ return {
51162
+ fixed: 'right',
51163
+ align: 'center',
51164
+ width: this.actionWidth,
51165
+ label: this.actionTitle,
51166
+ formatter: item => h("div", {
51167
+ "class": "action"
51168
+ }, [this.action.review && h("i", {
51169
+ "class": "el-icon-view",
51170
+ "on": {
51171
+ "click": () => this.action.review(item)
51172
+ }
51173
+ }), this.action.modify && h("i", {
51174
+ "class": "el-icon-edit",
51175
+ "on": {
51176
+ "click": () => this.action.modify(item)
51177
+ }
51178
+ }), this.action.update && h("i", {
51179
+ "class": "el-icon-edit",
51180
+ "on": {
51181
+ "click": () => this.action.update(item)
51182
+ }
51183
+ }), this.action.handle && h("i", {
51184
+ "class": "el-icon-edit",
51185
+ "on": {
51186
+ "click": () => this.action.handle(item)
51187
+ }
51188
+ }), this.action.remove && h(_components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__["default"], {
51189
+ "on": {
51190
+ "submit": () => this.action.remove(item)
51191
+ }
51192
+ }), this.action.delete && h(_components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__["default"], {
51193
+ "on": {
51194
+ "submit": () => this.action.delete(item)
51195
+ }
51196
+ }), this.action.export && h("i", {
51197
+ "class": "el-icon-download",
51198
+ "on": {
51199
+ "click": () => this.action.export(item)
51200
+ }
51201
+ }), this.$listeners.review && h("i", {
51202
+ "class": "el-icon-view",
51203
+ "on": {
51204
+ "click": () => this.$listeners.review(item)
51205
+ }
51206
+ }), this.$listeners.modify && h("i", {
51207
+ "class": "el-icon-edit",
51208
+ "on": {
51209
+ "click": () => this.$listeners.modify(item)
51210
+ }
51211
+ }), this.$listeners.update && h("i", {
51212
+ "class": "el-icon-edit",
51213
+ "on": {
51214
+ "click": () => this.$listeners.update(item)
51215
+ }
51216
+ }), this.$listeners.handle && h("i", {
51217
+ "class": "el-icon-edit",
51218
+ "on": {
51219
+ "click": () => this.$listeners.handle(item)
51220
+ }
51221
+ }), this.$listeners.remove && h(_components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__["default"], {
51222
+ "on": {
51223
+ "submit": () => this.$listeners.remove(item)
51224
+ }
51225
+ }), this.$listeners.delete && h(_components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__["default"], {
51226
+ "on": {
51227
+ "submit": () => this.$listeners.delete(item)
51228
+ }
51229
+ }), this.$listeners.export && h("i", {
51230
+ "class": "el-icon-download",
51231
+ "on": {
51232
+ "click": () => this.$listeners.export(item)
51233
+ }
51234
+ })])
51235
+ };
51236
+ }
51237
+ },
51238
+ search(params = {}) {
51239
+ this.$emit('search', params);
51240
+ },
51241
+ select(items = []) {
51242
+ this.$emit('select', items);
51243
+ },
51244
+ choose(row, column, event) {
51245
+ this.$emit('choose', {
51246
+ row,
51247
+ column,
51248
+ event
51249
+ });
51250
+ },
51251
+ change(pages = {
51252
+ page: 1,
51253
+ size: 10
51254
+ }) {
51255
+ this.$emit('change', pages);
51256
+ this.search(pages);
51257
+ },
51258
+ format({
51259
+ type = '',
51260
+ name = '',
51261
+ data = [],
51262
+ text = '',
51263
+ label = '',
51264
+ title = '',
51265
+ field = '',
51266
+ dicts = [],
51267
+ ...props
51268
+ }, colIndex, item, rowIndex) {
51269
+ const h = this.$createElement;
51270
+ if (type == 'enume' || type == 'enumerate') {
51271
+ if (field != '') return h(_components_Aenume__WEBPACK_IMPORTED_MODULE_3__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
51272
+ "key": colIndex + '-' + rowIndex,
51273
+ "attrs": {
51274
+ "field": field,
51275
+ "data": dicts.length > 0 ? dicts : data
51276
+ }
51277
+ }, props, {
51278
+ "model": {
51279
+ value: item[field],
51280
+ callback: $$v => {
51281
+ this.$set(item, field, $$v);
51282
+ }
51283
+ }
51284
+ }]));
51285
+ return h(_components_Aenume__WEBPACK_IMPORTED_MODULE_3__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
51286
+ "key": colIndex + '-' + rowIndex,
51287
+ "attrs": {
51288
+ "field": name,
51289
+ "data": dicts.length > 0 ? dicts : data
51290
+ }
51291
+ }, props, {
51292
+ "model": {
51293
+ value: item[name],
51294
+ callback: $$v => {
51295
+ this.$set(item, name, $$v);
51296
+ }
51297
+ }
51298
+ }]));
51299
+ }
51300
+ return h(_components_AformItem__WEBPACK_IMPORTED_MODULE_6__["default"], {
51301
+ "key": colIndex + '-' + rowIndex,
51302
+ "attrs": {
51303
+ "config": {
51304
+ type,
51305
+ form: item,
51306
+ dicts: dicts.length > 0 ? dicts : data,
51307
+ field: field != '' ? field : name != '' ? name : '',
51308
+ label: text != '' ? text : label != '' ? label : title != '' ? title : '无栏目名称',
51309
+ ...props
51310
+ }
51311
+ }
51312
+ });
51313
+ },
51314
+ scroll(a) {
51315
+ let container = this.$refs['c-table'].bodyWrapper;
51316
+ if (container) {
51317
+ if (container.scrollHeight > container.clientHeight) {
51318
+ a.preventDefault();
51319
+ container.scrollTop += a.deltaY;
51320
+ } else {
51321
+ if (container.scrollWidth > container.clientWidth) {
51322
+ a.preventDefault();
51323
+ container.scrollLeft += a.deltaY;
51324
+ }
51325
+ }
51326
+ this.$emit('scroll', a);
51327
+ }
51328
+ }
51329
+ },
51330
+ render() {
51331
+ const h = arguments[0];
51332
+ const {
51333
+ formCols = '6',
51334
+ searchVerify = true,
51335
+ searchConfig = {},
51336
+ actionConfig = [],
51337
+ ...props
51338
+ } = this.$attrs;
51339
+ const {
51340
+ ...r
51341
+ } = this.record;
51342
+ const data = r.data ? r.data : r.list ? r.list : r.rows ? r.rows : r.record ? r.record : r.records ? r.records : [];
51343
+ const size = r.size ? r.size : r.total ? r.total : r.count ? r.count : 0;
51344
+ const {
51345
+ loading = false,
51346
+ search = null
51347
+ } = this;
51348
+ const condition = data.length > 0;
51349
+ return h("div", {
51350
+ "style": {
51351
+ padding: this.margin
51352
+ }
51353
+ }, [Object.keys(searchConfig).length > 0 && (Object.keys(searchConfig).length < 5 ? h(_components_Aform_AfSearch__WEBPACK_IMPORTED_MODULE_4__["default"], {
51354
+ "attrs": {
51355
+ "cols": formCols,
51356
+ "verify": searchVerify,
51357
+ "config": searchConfig,
51358
+ "loading": loading
51359
+ },
51360
+ "on": {
51361
+ "submit": search,
51362
+ "cancel": search
51363
+ }
51364
+ }) : h(_components_Aform_BfSearch__WEBPACK_IMPORTED_MODULE_5__["default"], {
51365
+ "attrs": {
51366
+ "cols": formCols,
51367
+ "verify": searchVerify,
51368
+ "config": searchConfig,
51369
+ "loading": loading
51370
+ },
51371
+ "on": {
51372
+ "submit": search,
51373
+ "cancel": search
51374
+ }
51375
+ })), actionConfig.length > 0 && h(_components_Aactions__WEBPACK_IMPORTED_MODULE_1__["default"], {
51376
+ "attrs": {
51377
+ "config": actionConfig,
51378
+ "disabled": loading
51379
+ }
51380
+ }), h("div", {
51381
+ "class": this.border ? 'c-table' : 'c-table border'
51382
+ }, [h("el-table", {
51383
+ "ref": "c-table",
51384
+ "attrs": {
51385
+ "data": data,
51386
+ "size": this.size,
51387
+ "border": this.border,
51388
+ "stripe": this.stripe,
51389
+ "row-key": this.rowKey,
51390
+ "max-height": this.maxHeight,
51391
+ "element-loading-text": this.elementLoadingText,
51392
+ "element-loading-spinner": this.elementLoadingSpinner,
51393
+ "element-loading-background": this.elementLoadingBackground,
51394
+ "show-header": this.showHeader,
51395
+ "default-sort": this.defaultSort,
51396
+ "show-summary": this.showSummary,
51397
+ "tooltip-effect": this.tooltipEffect,
51398
+ "default-expand-all": this.defaultExpandAll,
51399
+ "tree-props": this.tree ? this.treeProps : {},
51400
+ "highlight-current-row": this.highlightCurrentRow
51401
+ },
51402
+ "directives": [{
51403
+ name: "loading",
51404
+ value: loading
51405
+ }],
51406
+ "on": {
51407
+ "row-click": this.choose,
51408
+ "selection-change": this.select
51409
+ },
51410
+ "props": {
51411
+ ...props
51412
+ }
51413
+ }, [condition && (this.selection || this.$listeners.select) && h("el-table-column", {
51414
+ "attrs": {
51415
+ "fixed": "left",
51416
+ "type": "selection",
51417
+ "width": this.selectionWidth
51418
+ }
51419
+ }), condition && this.sort && h("el-table-column", {
51420
+ "attrs": {
51421
+ "fixed": "left",
51422
+ "type": "index",
51423
+ "width": this.sortWidth,
51424
+ "label": this.sortTitle
51425
+ }
51426
+ }), condition && this.create(), condition && this.$slots.default, h("div", {
51427
+ "slot": "empty",
51428
+ "class": "empty"
51429
+ }, [!loading && h(_components_Aempty__WEBPACK_IMPORTED_MODULE_2__["default"], {
51430
+ "attrs": {
51431
+ "description": this.emptyText
51432
+ }
51433
+ })])]), !this.tree && this.page && condition && h(_components_Apages__WEBPACK_IMPORTED_MODULE_7__["default"], {
51434
+ "attrs": {
51435
+ "total": Number(size)
51436
+ },
51437
+ "on": {
51438
+ "change": this.change
51439
+ }
51440
+ })])]);
51441
+ }
51442
+ });
51443
+
51444
+ /***/ }),
51445
+
51040
51446
  /***/ "78f0":
51041
51447
  /***/ (function(module, exports, __webpack_require__) {
51042
51448
 
@@ -61510,10 +61916,13 @@ __webpack_require__.r(__webpack_exports__);
61510
61916
  event
61511
61917
  });
61512
61918
  },
61513
- change(pages) {
61919
+ change(pages = {
61920
+ page: 1,
61921
+ size: 10
61922
+ }) {
61514
61923
  this.$store.commit('changePageParams', pages);
61515
61924
  this.$emit('change', pages);
61516
- this.search();
61925
+ this.search(pages);
61517
61926
  },
61518
61927
  switch(name = '', symbol = '_') {
61519
61928
  return name.replace(/([A-Z])/g, `${symbol}$1`).toLowerCase();
@@ -131216,7 +131625,7 @@ __webpack_require__.r(__webpack_exports__);
131216
131625
  submit = null,
131217
131626
  cancel = null
131218
131627
  } = this.$listeners;
131219
- return h("keep-alive", [h("div", {
131628
+ return h("div", {
131220
131629
  "class": !this.inline ? this.search ? 'a-form' : 'a-from vertical' : 'a-form',
131221
131630
  "style": {
131222
131631
  padding: this.margin
@@ -131306,7 +131715,7 @@ __webpack_require__.r(__webpack_exports__);
131306
131715
  "on": {
131307
131716
  "click": this.cancel
131308
131717
  }
131309
- }, [this.cancelText])])])])])]);
131718
+ }, [this.cancelText])])])])]);
131310
131719
  }
131311
131720
  });
131312
131721
 
@@ -132488,14 +132897,15 @@ __webpack_require__.r(__webpack_exports__);
132488
132897
  cache: {
132489
132898
  type: Boolean,
132490
132899
  default: () => false
132491
- },
132492
- cacheNumber: {
132493
- type: Number,
132494
- default: () => 100
132495
132900
  }
132496
132901
  },
132497
132902
  render() {
132498
132903
  const h = arguments[0];
132904
+ const {
132905
+ include = null,
132906
+ exclude = null,
132907
+ max = 1000
132908
+ } = this.$props;
132499
132909
  return h("div", {
132500
132910
  "class": "a-router-view"
132501
132911
  }, [this.transition ? h("transition", {
@@ -132506,21 +132916,17 @@ __webpack_require__.r(__webpack_exports__);
132506
132916
  }
132507
132917
  }, [this.cache ? h("keep-alive", {
132508
132918
  "attrs": {
132509
- "max": this.cacheNumber
132919
+ "include": include,
132920
+ "exclude": exclude,
132921
+ "max": max
132510
132922
  }
132511
- }, [h("router-view", {
132512
- "key": this.key
132513
- })]) : h("router-view", {
132514
- "key": this.key
132515
- })]) : h("div", [this.cache ? h("keep-alive", {
132923
+ }, [h("router-view")]) : h("router-view")]) : h("div", [this.cache ? h("keep-alive", {
132516
132924
  "attrs": {
132517
- "max": this.cacheNumber
132925
+ "include": include,
132926
+ "exclude": exclude,
132927
+ "max": max
132518
132928
  }
132519
- }, [h("router-view", {
132520
- "key": this.key
132521
- })]) : h("router-view", {
132522
- "key": this.key
132523
- })])]);
132929
+ }, [h("router-view")]) : h("router-view")])]);
132524
132930
  }
132525
132931
  });
132526
132932
 
@@ -133380,7 +133786,7 @@ __webpack_require__.r(__webpack_exports__);
133380
133786
  reject,
133381
133787
  cancel
133382
133788
  } = this.$listeners;
133383
- return h("keep-alive", [h("div", {
133789
+ return h("div", {
133384
133790
  "class": !this.inline ? 'a-f-editor vertical' : 'a-f-editor',
133385
133791
  "style": {
133386
133792
  padding: this.margin
@@ -133443,7 +133849,7 @@ __webpack_require__.r(__webpack_exports__);
133443
133849
  "on": {
133444
133850
  "click": this.cancel
133445
133851
  }
133446
- }, [this.cancelText])])])])])])]);
133852
+ }, [this.cancelText])])])])])]);
133447
133853
  }
133448
133854
  });
133449
133855
 
@@ -135971,7 +136377,7 @@ __webpack_require__.r(__webpack_exports__);
135971
136377
  search = null
135972
136378
  } = this;
135973
136379
  const condition = data.length > 0;
135974
- return h("keep-alive", [h("div", {
136380
+ return h("div", {
135975
136381
  "style": {
135976
136382
  padding: this.margin
135977
136383
  }
@@ -136063,7 +136469,7 @@ __webpack_require__.r(__webpack_exports__);
136063
136469
  "on": {
136064
136470
  "change": this.change
136065
136471
  }
136066
- })])])]);
136472
+ })])]);
136067
136473
  }
136068
136474
  });
136069
136475
 
@@ -147277,7 +147683,7 @@ __webpack_require__.r(__webpack_exports__);
147277
147683
  const {
147278
147684
  ...props
147279
147685
  } = this.$attrs;
147280
- return this.list.length > 0 && h("keep-alive", [h("div", {
147686
+ return this.list.length > 0 && h("div", {
147281
147687
  "class": "a-tags"
147282
147688
  }, [h("AscrollBox", [h("div", {
147283
147689
  "attrs": {
@@ -147300,7 +147706,7 @@ __webpack_require__.r(__webpack_exports__);
147300
147706
  "props": {
147301
147707
  ...props
147302
147708
  }
147303
- }, [a.rander ? () => a.rander(a) : a.text]))])])])]);
147709
+ }, [a.rander ? () => a.rander(a) : a.text]))])])]);
147304
147710
  }
147305
147711
  });
147306
147712
 
@@ -150397,13 +150803,6 @@ exports.circularLayout = circularLayout;
150397
150803
 
150398
150804
  /***/ }),
150399
150805
 
150400
- /***/ "d63c":
150401
- /***/ (function(module, exports, __webpack_require__) {
150402
-
150403
- // extracted by mini-css-extract-plugin
150404
-
150405
- /***/ }),
150406
-
150407
150806
  /***/ "d67c":
150408
150807
  /***/ (function(module, exports, __webpack_require__) {
150409
150808
 
@@ -156096,17 +156495,6 @@ const Aecharts = a => Promise.resolve(/* AMD require */).then(function() { var _
156096
156495
  }
156097
156496
  });
156098
156497
 
156099
- /***/ }),
156100
-
156101
- /***/ "deea":
156102
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
156103
-
156104
- "use strict";
156105
- /* 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");
156106
- /* 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__);
156107
- /* unused harmony reexport * */
156108
-
156109
-
156110
156498
  /***/ }),
156111
156499
 
156112
156500
  /***/ "dff3":
@@ -157425,190 +157813,6 @@ function normalizeComponent(
157425
157813
  }
157426
157814
 
157427
157815
 
157428
- /***/ }),
157429
-
157430
- /***/ "e611":
157431
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
157432
-
157433
- "use strict";
157434
- // ESM COMPAT FLAG
157435
- __webpack_require__.r(__webpack_exports__);
157436
-
157437
- // 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&
157438
- var render = function render() {
157439
- var _vm = this,
157440
- _c = _vm._self._c;
157441
- return _vm.create(_vm.config) || _vm.create(_vm.$listeners) ? _c('el-table-column', {
157442
- attrs: {
157443
- "fixed": _vm.fixed,
157444
- "align": _vm.align,
157445
- "width": _vm.width,
157446
- "label": _vm.title
157447
- },
157448
- scopedSlots: _vm._u([{
157449
- key: "default",
157450
- fn: function ({
157451
- row,
157452
- $index
157453
- }) {
157454
- return [_c('div', {
157455
- staticClass: "action"
157456
- }, [_vm.config.review ? _c('i', {
157457
- staticClass: "el-icon-view",
157458
- on: {
157459
- "click": () => _vm.config.review(row, $index)
157460
- }
157461
- }) : _vm._e(), _vm.config.modify ? _c('i', {
157462
- staticClass: "el-icon-edit",
157463
- on: {
157464
- "click": () => _vm.config.modify(row, $index)
157465
- }
157466
- }) : _vm._e(), _vm.config.update ? _c('i', {
157467
- staticClass: "el-icon-edit",
157468
- on: {
157469
- "click": () => _vm.config.update(row, $index)
157470
- }
157471
- }) : _vm._e(), _vm.config.handle ? _c('i', {
157472
- staticClass: "el-icon-edit",
157473
- on: {
157474
- "click": () => _vm.config.handle(row, $index)
157475
- }
157476
- }) : _vm._e(), _vm.config.remove ? _c('Apopconfirm', {
157477
- on: {
157478
- "submit": () => _vm.config.remove(row, $index)
157479
- }
157480
- }) : _vm._e(), _vm.config.delete ? _c('Apopconfirm', {
157481
- on: {
157482
- "submit": () => _vm.config.delete(row, $index)
157483
- }
157484
- }) : _vm._e(), _vm.config.export ? _c('i', {
157485
- staticClass: "el-icon-download",
157486
- on: {
157487
- "click": () => _vm.config.export(row, $index)
157488
- }
157489
- }) : _vm._e(), _vm.$listeners.review ? _c('i', {
157490
- staticClass: "el-icon-view",
157491
- on: {
157492
- "click": () => _vm.$listeners.review(row, $index)
157493
- }
157494
- }) : _vm._e(), _vm.$listeners.modify ? _c('i', {
157495
- staticClass: "el-icon-edit",
157496
- on: {
157497
- "click": () => _vm.$listeners.modify(row, $index)
157498
- }
157499
- }) : _vm._e(), _vm.$listeners.update ? _c('i', {
157500
- staticClass: "el-icon-edit",
157501
- on: {
157502
- "click": () => _vm.$listeners.update(row, $index)
157503
- }
157504
- }) : _vm._e(), _vm.$listeners.handle ? _c('i', {
157505
- staticClass: "el-icon-edit",
157506
- on: {
157507
- "click": () => _vm.$listeners.handle(row, $index)
157508
- }
157509
- }) : _vm._e(), _vm.$listeners.remove ? _c('Apopconfirm', {
157510
- on: {
157511
- "submit": () => _vm.$listeners.remove(row, $index)
157512
- }
157513
- }) : _vm._e(), _vm.$listeners.delete ? _c('Apopconfirm', {
157514
- on: {
157515
- "submit": () => _vm.$listeners.delete(row, $index)
157516
- }
157517
- }) : _vm._e(), _vm.$listeners.export ? _c('i', {
157518
- staticClass: "el-icon-download",
157519
- on: {
157520
- "click": () => _vm.$listeners.export(row, $index)
157521
- }
157522
- }) : _vm._e()], 1)];
157523
- }
157524
- }], null, false, 2826007373)
157525
- }) : _vm._e();
157526
- };
157527
- var staticRenderFns = [];
157528
-
157529
- // CONCATENATED MODULE: ./src/components/Atable/Actions/index.vue?vue&type=template&id=4111a5a8&
157530
-
157531
- // EXTERNAL MODULE: ./src/components/Apopconfirm/index.js
157532
- var Apopconfirm = __webpack_require__("2ee7");
157533
-
157534
- // 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&
157535
-
157536
- /* harmony default export */ var Actionsvue_type_script_lang_js_ = ({
157537
- name: 'AtableActions',
157538
- components: {
157539
- Apopconfirm: Apopconfirm["default"]
157540
- },
157541
- props: {
157542
- fixed: {
157543
- type: String,
157544
- default: () => 'right'
157545
- },
157546
- align: {
157547
- type: String,
157548
- default: () => 'center'
157549
- },
157550
- title: {
157551
- type: String,
157552
- default: () => '操作'
157553
- },
157554
- width: {
157555
- type: String,
157556
- default: () => '180px'
157557
- },
157558
- config: {
157559
- type: Object,
157560
- default: () => ({
157561
- review: null,
157562
- modify: null,
157563
- update: null,
157564
- handle: null,
157565
- remove: null,
157566
- delete: null,
157567
- export: null
157568
- })
157569
- }
157570
- },
157571
- methods: {
157572
- create({
157573
- review = null,
157574
- modify = null,
157575
- update = null,
157576
- handle = null,
157577
- remove = null,
157578
- ...r
157579
- }) {
157580
- if (review || modify || update || handle || remove || r.delete || r.export) {
157581
- return true;
157582
- } else return false;
157583
- }
157584
- }
157585
- });
157586
- // CONCATENATED MODULE: ./src/components/Atable/Actions/index.vue?vue&type=script&lang=js&
157587
- /* harmony default export */ var Atable_Actionsvue_type_script_lang_js_ = (Actionsvue_type_script_lang_js_);
157588
- // EXTERNAL MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/runtime/componentNormalizer.js
157589
- var componentNormalizer = __webpack_require__("e607");
157590
-
157591
- // CONCATENATED MODULE: ./src/components/Atable/Actions/index.vue
157592
-
157593
-
157594
-
157595
-
157596
-
157597
- /* normalize component */
157598
-
157599
- var component = Object(componentNormalizer["a" /* default */])(
157600
- Atable_Actionsvue_type_script_lang_js_,
157601
- render,
157602
- staticRenderFns,
157603
- false,
157604
- null,
157605
- null,
157606
- null
157607
-
157608
- )
157609
-
157610
- /* harmony default export */ var Actions = __webpack_exports__["default"] = (component.exports);
157611
-
157612
157816
  /***/ }),
157613
157817
 
157614
157818
  /***/ "e615":
@@ -158073,6 +158277,13 @@ module.exports = _default;
158073
158277
 
158074
158278
  /***/ }),
158075
158279
 
158280
+ /***/ "e6e6":
158281
+ /***/ (function(module, exports, __webpack_require__) {
158282
+
158283
+ // extracted by mini-css-extract-plugin
158284
+
158285
+ /***/ }),
158286
+
158076
158287
  /***/ "e720":
158077
158288
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
158078
158289
 
@@ -158095,14 +158306,14 @@ __webpack_require__.r(__webpack_exports__);
158095
158306
  type: String,
158096
158307
  default: () => '600px'
158097
158308
  },
158309
+ check: {
158310
+ type: Boolean,
158311
+ default: () => true
158312
+ },
158098
158313
  height: {
158099
158314
  type: String,
158100
158315
  default: () => '72vh'
158101
158316
  },
158102
- verify: {
158103
- type: Boolean,
158104
- default: () => true
158105
- },
158106
158317
  loading: {
158107
158318
  type: Boolean,
158108
158319
  default: () => false
@@ -158145,6 +158356,7 @@ __webpack_require__.r(__webpack_exports__);
158145
158356
  },
158146
158357
  methods: {
158147
158358
  format() {
158359
+ if (this.check == false) return true;
158148
158360
  let data = [];
158149
158361
  let pass = true;
158150
158362
  let elements = this.$slots.default;
@@ -158161,7 +158373,7 @@ __webpack_require__.r(__webpack_exports__);
158161
158373
  }
158162
158374
  });
158163
158375
  })(elements);
158164
- if (this.verify && pass == false) return false;
158376
+ if (pass == false) return false;
158165
158377
  let params = data.length && data.length > 0 ? data.length && data.length > 1 ? data : data[0] : null;
158166
158378
  return params;
158167
158379
  },
@@ -160299,6 +160511,13 @@ module.exports = _default;
160299
160511
 
160300
160512
  /***/ }),
160301
160513
 
160514
+ /***/ "ebb9":
160515
+ /***/ (function(module, exports, __webpack_require__) {
160516
+
160517
+ // extracted by mini-css-extract-plugin
160518
+
160519
+ /***/ }),
160520
+
160302
160521
  /***/ "ec73":
160303
160522
  /***/ (function(module, exports, __webpack_require__) {
160304
160523
 
@@ -163676,8 +163895,6 @@ var map = {
163676
163895
  "./Aeditor/QuillEditor/index.vue": "8958",
163677
163896
  "./Aeditor/WangEditor/index.vue": "3302",
163678
163897
  "./Aplayer/index.vue": "1c4e",
163679
- "./Atable/Actions/index.vue": "e611",
163680
- "./Atable/index.vue": "ffd4",
163681
163898
  "./Atree/index.vue": "ce34",
163682
163899
  "./Aupload/File/index.vue": "3a9a",
163683
163900
  "./Aupload/Icon/index.vue": "7d0e",
@@ -166777,7 +166994,7 @@ __webpack_require__.r(__webpack_exports__);
166777
166994
  },
166778
166995
  inline: {
166779
166996
  type: Boolean,
166780
- default: () => false
166997
+ default: () => true
166781
166998
  },
166782
166999
  cols: {
166783
167000
  type: String,
@@ -166826,28 +167043,21 @@ __webpack_require__.r(__webpack_exports__);
166826
167043
  },
166827
167044
  data() {
166828
167045
  return {
166829
- form: {},
166830
- height: 0,
166831
- opened: false
167046
+ form: {}
166832
167047
  };
166833
167048
  },
166834
167049
  created() {
166835
167050
  this.create();
166836
167051
  },
166837
- mounted() {
166838
- this.update();
166839
- },
167052
+ mounted() {},
166840
167053
  destroyed() {
166841
167054
  this.create = null;
166842
- this.update = null;
166843
167055
  this.submit = null;
166844
167056
  this.cancel = null;
166845
167057
  this.filter = null;
166846
167058
  this.result = null;
166847
- this.switch = null;
166848
167059
  this.prompt = null;
166849
167060
  this.format = null;
166850
- this.output = null;
166851
167061
  },
166852
167062
  watch: {
166853
167063
  values() {
@@ -166864,15 +167074,11 @@ __webpack_require__.r(__webpack_exports__);
166864
167074
  this.form = data;
166865
167075
  }
166866
167076
  },
166867
- update() {
166868
- let rows = Math.ceil(Object.keys(this.config).length / this.cols);
166869
- this.height = this.$el.clientHeight * (rows - 1);
166870
- },
166871
167077
  submit(e) {
166872
167078
  // 提交表单
166873
167079
  e && e.preventDefault();
166874
167080
  let pass = !this.check; // 判断是否是空表单
166875
- for (let a in this.form) if (this.form[a] != '') pass = true;
167081
+ for (let a in this.form) if (this.form[a].trim() != '') pass = true;
166876
167082
  let data = {};
166877
167083
  if (Object.keys(this.config).length > 0) {
166878
167084
  // 格式化属性为模糊查询属性
@@ -166933,18 +167139,19 @@ __webpack_require__.r(__webpack_exports__);
166933
167139
  }
166934
167140
  },
166935
167141
  filter(form = {}) {
167142
+ // 过滤空值属性
166936
167143
  const data = {};
166937
167144
  for (let a in form) {
166938
- if (form[a] != '' && form[a] != '%%' && form[a] != 'null' && form[a] != 'undefined' && form[a] != null && form[a] != undefined) data[a] = form[a];
167145
+ if (a != undefined && a != 'undefined' && form[a] != '' && form[a] != '%%' && form[a] != 'null' && form[a] != 'undefined' && form[a] != null && form[a] != undefined) {
167146
+ data[a] = form[a];
167147
+ }
166939
167148
  }
166940
167149
  return data;
166941
167150
  },
166942
167151
  result() {
167152
+ // 返回验证后的表单数据
166943
167153
  return this.filter(this.form);
166944
167154
  },
166945
- switch() {
166946
- this.opened = !this.opened;
166947
- },
166948
167155
  prompt(a = {}, index = 0, placeholder = '') {
166949
167156
  if (Object.keys(a).length > 0 && a.placeholder && a.placeholder.length && a.placeholder.length > 0) return a.placeholder[index];
166950
167157
  return placeholder;
@@ -166973,31 +167180,6 @@ __webpack_require__.r(__webpack_exports__);
166973
167180
  }
166974
167181
  });
166975
167182
  }
166976
- },
166977
- output(a, b) {
166978
- const h = this.$createElement;
166979
- let style = this.cols != '' ? {
166980
- width: `${100 / this.cols}%`
166981
- } : {};
166982
- return h("el-col", {
166983
- "key": b,
166984
- "style": style
166985
- }, [h("el-form-item", {
166986
- "attrs": {
166987
- "prop": `${a}`,
166988
- "label": this.label ? this.config[a]['text'] : ''
166989
- }
166990
- }, [this.config[a].than || this.config[a].range || this.config[a].scope ? h("el-col", {
166991
- "class": "range-cols"
166992
- }, [h("el-col", {
166993
- "attrs": {
166994
- "span": 12
166995
- }
166996
- }, [this.format(a, `${a}LE`, this.prompt(this.config[a], 0, '最高'))]), h("el-col", {
166997
- "attrs": {
166998
- "span": 12
166999
- }
167000
- }, [this.format(a, `${a}GE`, this.prompt(this.config[a], 1, '最低'))])]) : this.format(a)])]);
167001
167183
  }
167002
167184
  },
167003
167185
  render() {
@@ -167009,7 +167191,11 @@ __webpack_require__.r(__webpack_exports__);
167009
167191
  submit = null,
167010
167192
  cancel = null
167011
167193
  } = this.$listeners;
167012
- return h("keep-alive", [h("div", {
167194
+ let style = this.cols != '' ? {
167195
+ width: `${100 / this.cols}%`
167196
+ } : {};
167197
+ let label = a => this.label ? this.config[a].text || this.config[a].label || this.config[a].title : '';
167198
+ return h("div", {
167013
167199
  "class": "b-f-search",
167014
167200
  "style": {
167015
167201
  padding: this.margin
@@ -167017,8 +167203,7 @@ __webpack_require__.r(__webpack_exports__);
167017
167203
  }, [h("el-form", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
167018
167204
  "ref": "form",
167019
167205
  "attrs": {
167020
- "size": this.size,
167021
- "inline": this.inline
167206
+ "size": this.size
167022
167207
  }
167023
167208
  }, {
167024
167209
  "props": {
@@ -167030,42 +167215,38 @@ __webpack_require__.r(__webpack_exports__);
167030
167215
  "labelWidth": this.labelWidth,
167031
167216
  "labelPosition": this.labelPosition
167032
167217
  }
167033
- }]), [h("div", {
167034
- "class": "column"
167035
- }, [h("el-row", {
167218
+ }]), [h("el-row", {
167036
167219
  "attrs": {
167037
167220
  "gutter": Number(this.gutter)
167038
- },
167039
- "class": "main-row"
167040
- }, [Object.keys(this.config).map((a, b) => b < this.cols && this.output(a, b))]), h("el-row", {
167221
+ }
167222
+ }, [Object.keys(this.config).map((a, b) => h("el-col", {
167223
+ "key": b,
167224
+ "class": "column",
167225
+ "style": style
167226
+ }, [h("el-form-item", {
167041
167227
  "attrs": {
167042
- "gutter": Number(this.gutter)
167043
- },
167044
- "class": "fold-row",
167045
- "style": {
167046
- height: this.opened ? `${this.height}px` : '0'
167228
+ "prop": `${a}`,
167229
+ "label": label(a)
167047
167230
  }
167048
- }, [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", {
167049
- "class": "action",
167050
- "style": {
167051
- paddingLeft: `${this.gutter}px`
167231
+ }, [this.config[a].than || this.config[a].range || this.config[a].scope ? h("el-col", {
167232
+ "class": "range-cols"
167233
+ }, [h("el-col", {
167234
+ "attrs": {
167235
+ "span": 12
167052
167236
  }
167053
- }, [h("el-form-item", {
167237
+ }, [this.format(a, `${a}LE`, this.prompt(this.config[a], 0, '最高'))]), h("el-col", {
167054
167238
  "attrs": {
167055
- "label": "action"
167239
+ "span": 12
167056
167240
  }
167057
- }, [Object.keys(this.config).length > this.cols && h("el-button", {
167241
+ }, [this.format(a, `${a}GE`, this.prompt(this.config[a], 1, '最低'))])]) : this.format(a)])])), this.$slots.default, (submit || cancel) && h("el-col", {
167242
+ "key": "action",
167243
+ "class": "action",
167244
+ "style": style
167245
+ }, [h("el-form-item", {
167058
167246
  "attrs": {
167059
- "disabled": this.loading,
167060
- "type": "text"
167061
- },
167062
- "class": "collapse-button",
167063
- "on": {
167064
- "click": this.switch
167247
+ "label": this.label ? 'action' : ''
167065
167248
  }
167066
- }, [h("i", {
167067
- "class": `el-icon-arrow-${this.opened ? 'up' : 'down'}`
167068
- }), this.opened ? '收起' : '展开']), submit && h("el-button", {
167249
+ }, [submit && h("el-button", {
167069
167250
  "attrs": {
167070
167251
  "disabled": this.loading,
167071
167252
  "type": "primary"
@@ -168884,438 +169065,6 @@ exports.getStroke = getStroke;
168884
169065
  exports.getFill = getFill;
168885
169066
  exports.needDrawText = needDrawText;
168886
169067
 
168887
- /***/ }),
168888
-
168889
- /***/ "ffd4":
168890
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
168891
-
168892
- "use strict";
168893
- // ESM COMPAT FLAG
168894
- __webpack_require__.r(__webpack_exports__);
168895
-
168896
- // 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&
168897
- var render = function render() {
168898
- var _vm = this,
168899
- _c = _vm._self._c;
168900
- return _c('div', {
168901
- class: _vm.border ? 'a-table' : 'a-table border'
168902
- }, [_c('el-table', {
168903
- directives: [{
168904
- name: "loading",
168905
- rawName: "v-loading",
168906
- value: _vm.loading,
168907
- expression: "loading"
168908
- }],
168909
- ref: "a-table",
168910
- attrs: {
168911
- "data": _vm.format(_vm.record).data,
168912
- "size": _vm.size,
168913
- "border": _vm.border,
168914
- "stripe": _vm.stripe,
168915
- "row-key": _vm.rowKey,
168916
- "max-height": _vm.maxHeight,
168917
- "element-loading-text": _vm.elementLoadingText,
168918
- "element-loading-spinner": _vm.elementLoadingSpinner,
168919
- "element-loading-background": _vm.elementLoadingBackground,
168920
- "show-header": _vm.showHeader,
168921
- "default-sort": _vm.defaultSort,
168922
- "show-summary": _vm.showSummary,
168923
- "tooltip-effect": _vm.tooltipEffect,
168924
- "default-expand-all": _vm.defaultExpandAll,
168925
- "tree-props": _vm.tree ? _vm.treeProps : {},
168926
- "highlight-current-row": _vm.highlightCurrentRow
168927
- },
168928
- on: {
168929
- "row-click": _vm.choose,
168930
- "selection-change": _vm.select
168931
- }
168932
- }, [_vm.format(_vm.record).data.length > 0 ? [_vm.selection || _vm.$listeners.select ? _c('el-table-column', {
168933
- attrs: {
168934
- "fixed": "left",
168935
- "type": "selection",
168936
- "width": _vm.selectionWidth
168937
- }
168938
- }) : _vm._e(), _vm.sort ? _c('el-table-column', {
168939
- attrs: {
168940
- "fixed": "left",
168941
- "type": "index",
168942
- "width": _vm.sortWidth,
168943
- "label": _vm.sortTitle
168944
- }
168945
- }) : _vm._e(), _vm._l(_vm.column, function (a, b) {
168946
- return _c('el-table-column', {
168947
- key: b,
168948
- attrs: {
168949
- "prop": a.field || a.index || a.name || a.prop || `${a}`,
168950
- "label": a.label || a.title || a.text,
168951
- "sortable": a.field || a.index || a.name || a.prop ? a.sortable ? a.sortable : _vm.sortable : false,
168952
- "showOverflowTooltip": a.showOverflowTooltip ? a.showOverflowTooltip : _vm.showOverflowTooltip
168953
- },
168954
- scopedSlots: _vm._u([{
168955
- key: "default",
168956
- fn: function (scope) {
168957
- return [_vm._t(a.field || a.index || a.name || a.prop || `${a}`, function () {
168958
- return [_vm._v(_vm._s(scope.row[_vm.item.prop]))];
168959
- }, {
168960
- "row": scope.row
168961
- })];
168962
- }
168963
- }], null, true)
168964
- });
168965
- }), _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', {
168966
- attrs: {
168967
- "fixed": "right",
168968
- "align": "center",
168969
- "width": _vm.actionWidth,
168970
- "label": _vm.actionTitle
168971
- },
168972
- scopedSlots: _vm._u([{
168973
- key: "default",
168974
- fn: function ({
168975
- row,
168976
- $index
168977
- }) {
168978
- return [_c('div', {
168979
- staticClass: "action"
168980
- }, [_vm.$listeners.review ? _c('i', {
168981
- staticClass: "el-icon-view",
168982
- on: {
168983
- "click": () => _vm.$listeners.review(row, $index)
168984
- }
168985
- }) : _vm._e(), _vm.$listeners.modify ? _c('i', {
168986
- staticClass: "el-icon-edit",
168987
- on: {
168988
- "click": () => _vm.$listeners.modify(row, $index)
168989
- }
168990
- }) : _vm._e(), _vm.$listeners.update ? _c('i', {
168991
- staticClass: "el-icon-edit",
168992
- on: {
168993
- "click": () => _vm.$listeners.update(row, $index)
168994
- }
168995
- }) : _vm._e(), _vm.$listeners.handle ? _c('i', {
168996
- staticClass: "el-icon-edit",
168997
- on: {
168998
- "click": () => _vm.$listeners.handle(row, $index)
168999
- }
169000
- }) : _vm._e(), _vm.$listeners.remove ? _c('Apopconfirm', {
169001
- on: {
169002
- "submit": () => _vm.$listeners.remove(row, $index)
169003
- }
169004
- }) : _vm._e(), _vm.$listeners.delete ? _c('Apopconfirm', {
169005
- on: {
169006
- "submit": () => _vm.$listeners.delete(row, $index)
169007
- }
169008
- }) : _vm._e(), _vm.$listeners.export ? _c('i', {
169009
- staticClass: "el-icon-download",
169010
- on: {
169011
- "click": () => _vm.$listeners.export(row, $index)
169012
- }
169013
- }) : _vm._e()], 1)];
169014
- }
169015
- }], null, false, 2786542129)
169016
- }) : _vm._e()] : _vm._e(), _c('div', {
169017
- staticClass: "empty",
169018
- attrs: {
169019
- "slot": "empty"
169020
- },
169021
- slot: "empty"
169022
- }, [!_vm.loading ? _c('Aempty', {
169023
- attrs: {
169024
- "description": _vm.emptyText
169025
- }
169026
- }) : _vm._e()], 1)], 2), !_vm.tree && _vm.page && _vm.format(_vm.record).data.length > 0 ? _c('Apages', {
169027
- attrs: {
169028
- "total": _vm.format(_vm.record).size,
169029
- "pages": _vm.pageParams
169030
- },
169031
- on: {
169032
- "change": _vm.change
169033
- }
169034
- }) : _vm._e()], 1);
169035
- };
169036
- var staticRenderFns = [];
169037
-
169038
- // CONCATENATED MODULE: ./src/components/Atable/index.vue?vue&type=template&id=3e164ca6&scoped=true&
169039
-
169040
- // EXTERNAL MODULE: ./src/components/Aactions/index.js
169041
- var Aactions = __webpack_require__("e94c");
169042
-
169043
- // EXTERNAL MODULE: ./src/components/Aempty/index.js
169044
- var Aempty = __webpack_require__("bd5e");
169045
-
169046
- // EXTERNAL MODULE: ./src/components/Aenume/index.js
169047
- var Aenume = __webpack_require__("6cc8");
169048
-
169049
- // EXTERNAL MODULE: ./src/components/Aform/AfSearch/index.js
169050
- var AfSearch = __webpack_require__("1b78");
169051
-
169052
- // EXTERNAL MODULE: ./src/components/Aform/BfSearch/index.js
169053
- var BfSearch = __webpack_require__("fc0d");
169054
-
169055
- // EXTERNAL MODULE: ./src/components/AformItem/index.js
169056
- var AformItem = __webpack_require__("2234");
169057
-
169058
- // EXTERNAL MODULE: ./src/components/Apages/index.js
169059
- var Apages = __webpack_require__("1d0c");
169060
-
169061
- // EXTERNAL MODULE: ./src/components/Apopconfirm/index.js
169062
- var Apopconfirm = __webpack_require__("2ee7");
169063
-
169064
- // 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&
169065
-
169066
-
169067
-
169068
-
169069
-
169070
-
169071
-
169072
-
169073
- /* harmony default export */ var Atablevue_type_script_lang_js_ = ({
169074
- components: {
169075
- Aactions: Aactions["default"],
169076
- Aempty: Aempty["default"],
169077
- Aenume: Aenume["default"],
169078
- AfSearch: AfSearch["default"],
169079
- BfSearch: BfSearch["default"],
169080
- AformItem: AformItem["default"],
169081
- Apages: Apages["default"],
169082
- Apopconfirm: Apopconfirm["default"]
169083
- },
169084
- props: {
169085
- margin: {
169086
- type: String,
169087
- default: () => '0'
169088
- },
169089
- rowKey: {
169090
- type: String,
169091
- default: () => 'id'
169092
- },
169093
- size: {
169094
- type: String,
169095
- default: () => 'medium'
169096
- },
169097
- selectionWidth: {
169098
- type: String,
169099
- default: () => '50'
169100
- },
169101
- sort: {
169102
- type: Boolean,
169103
- default: () => true
169104
- },
169105
- sortTitle: {
169106
- type: String,
169107
- default: () => '#'
169108
- },
169109
- sortWidth: {
169110
- type: String,
169111
- default: () => '50'
169112
- },
169113
- border: {
169114
- type: Boolean,
169115
- default: () => false
169116
- },
169117
- stripe: {
169118
- type: Boolean,
169119
- default: () => false
169120
- },
169121
- loading: {
169122
- type: Boolean,
169123
- default: () => false
169124
- },
169125
- column: {
169126
- type: Array,
169127
- default: () => []
169128
- },
169129
- record: {
169130
- type: Object,
169131
- default: () => ({})
169132
- },
169133
- maxHeight: {
169134
- type: String,
169135
- default: () => '480'
169136
- },
169137
- elementLoadingText: {
169138
- type: String,
169139
- default: () => ''
169140
- },
169141
- elementLoadingSpinner: {
169142
- type: String,
169143
- default: () => 'el-icon-loading'
169144
- },
169145
- elementLoadingBackground: {
169146
- type: String,
169147
- default: () => 'rgba(0, 0, 0, 0.04)'
169148
- },
169149
- emptyText: {
169150
- type: String,
169151
- default: () => ''
169152
- },
169153
- showHeader: {
169154
- type: Boolean,
169155
- default: () => true
169156
- },
169157
- selection: {
169158
- type: Boolean,
169159
- default: () => false
169160
- },
169161
- showOverflowTooltip: {
169162
- type: Boolean,
169163
- default: () => true
169164
- },
169165
- tooltipEffect: {
169166
- type: String,
169167
- default: () => 'light'
169168
- },
169169
- showSummary: {
169170
- type: Boolean,
169171
- default: () => false
169172
- },
169173
- sumText: {
169174
- type: String,
169175
- default: () => '合计'
169176
- },
169177
- sortable: {
169178
- type: Boolean,
169179
- default: () => false
169180
- },
169181
- defaultSort: {
169182
- type: Object,
169183
- default: () => ({
169184
- prop: 'date',
169185
- order: 'descending'
169186
- })
169187
- },
169188
- tree: {
169189
- type: Boolean,
169190
- default: () => false
169191
- },
169192
- defaultExpandAll: {
169193
- type: Boolean,
169194
- default: () => true
169195
- },
169196
- treeProps: {
169197
- type: Object,
169198
- default: () => ({
169199
- children: 'children',
169200
- hasChildren: 'hasChildren'
169201
- })
169202
- },
169203
- highlightCurrentRow: {
169204
- type: Boolean,
169205
- default: () => false
169206
- },
169207
- actionWidth: {
169208
- type: String,
169209
- default: () => '180px'
169210
- },
169211
- actionTitle: {
169212
- type: String,
169213
- default: () => '操作'
169214
- },
169215
- page: {
169216
- type: Boolean,
169217
- default: () => true
169218
- }
169219
- },
169220
- mounted() {
169221
- this.$refs['a-table'].bodyWrapper.addEventListener('wheel', this.scroll);
169222
- },
169223
- beforeDestroy() {
169224
- this.$refs['a-table'].bodyWrapper.removeEventListener('wheel', this.scroll);
169225
- },
169226
- data() {
169227
- const {
169228
- pageParams = {}
169229
- } = this.$store.state;
169230
- return {
169231
- pageParams
169232
- };
169233
- },
169234
- methods: {
169235
- format(a = {}) {
169236
- return {
169237
- data: a.data ? a.data : a.list ? a.list : a.rows ? a.rows : a.record ? a.record : a.records ? a.records : [],
169238
- size: a.size ? a.size : a.total ? a.total : a.count ? a.count : 0
169239
- };
169240
- },
169241
- search(params = {}) {
169242
- const {
169243
- pageParams = {},
169244
- formParams = {}
169245
- } = this.$store.state;
169246
- const formatParams = Object.assign({}, pageParams, formParams, params);
169247
- this.$emit('search', formatParams);
169248
- },
169249
- select(items = []) {
169250
- this.$store.commit('changeSelectedRows', items);
169251
- this.$store.commit('changeSelectedKeys', items.map(a => a[this.rowKey]));
169252
- this.$emit('select', {
169253
- rows: items,
169254
- keys: items.map(a => a[this.rowKey])
169255
- });
169256
- },
169257
- choose(row, column, event) {
169258
- this.$emit('choose', {
169259
- row,
169260
- column,
169261
- event
169262
- });
169263
- },
169264
- change(pages = {
169265
- page: 1,
169266
- size: 10
169267
- }) {
169268
- this.$store.commit('changePageParams', pages);
169269
- this.$emit('change', pages);
169270
- this.search(pages);
169271
- },
169272
- scroll(a) {
169273
- let container = this.$refs['a-table'].bodyWrapper;
169274
- if (container) {
169275
- if (container.scrollHeight > container.clientHeight) {
169276
- a.preventDefault();
169277
- container.scrollTop += a.deltaY;
169278
- } else {
169279
- if (container.scrollWidth > container.clientWidth) {
169280
- a.preventDefault();
169281
- container.scrollLeft += a.deltaY;
169282
- }
169283
- }
169284
- this.$emit('scroll', a);
169285
- }
169286
- }
169287
- }
169288
- });
169289
- // CONCATENATED MODULE: ./src/components/Atable/index.vue?vue&type=script&lang=js&
169290
- /* harmony default export */ var components_Atablevue_type_script_lang_js_ = (Atablevue_type_script_lang_js_);
169291
- // EXTERNAL MODULE: ./src/components/Atable/index.vue?vue&type=style&index=0&id=3e164ca6&prod&scoped=true&lang=css&
169292
- var Atablevue_type_style_index_0_id_3e164ca6_prod_scoped_true_lang_css_ = __webpack_require__("deea");
169293
-
169294
- // EXTERNAL MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/runtime/componentNormalizer.js
169295
- var componentNormalizer = __webpack_require__("e607");
169296
-
169297
- // CONCATENATED MODULE: ./src/components/Atable/index.vue
169298
-
169299
-
169300
-
169301
-
169302
-
169303
-
169304
- /* normalize component */
169305
-
169306
- var component = Object(componentNormalizer["a" /* default */])(
169307
- components_Atablevue_type_script_lang_js_,
169308
- render,
169309
- staticRenderFns,
169310
- false,
169311
- null,
169312
- "3e164ca6",
169313
- null
169314
-
169315
- )
169316
-
169317
- /* harmony default export */ var Atable = __webpack_exports__["default"] = (component.exports);
169318
-
169319
169068
  /***/ })
169320
169069
 
169321
169070
  /******/ });