element-ui-root 2.9.6 → 2.9.9

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.
@@ -4282,17 +4282,6 @@ if (!isCallable(store.inspectSource)) {
4282
4282
  module.exports = store.inspectSource;
4283
4283
 
4284
4284
 
4285
- /***/ }),
4286
-
4287
- /***/ "0634":
4288
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
4289
-
4290
- "use strict";
4291
- /* 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_ed84b344_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("b33c");
4292
- /* 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_ed84b344_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_ed84b344_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
4293
- /* unused harmony reexport * */
4294
-
4295
-
4296
4285
  /***/ }),
4297
4286
 
4298
4287
  /***/ "066e":
@@ -5212,6 +5201,9 @@ __webpack_require__.r(__webpack_exports__);
5212
5201
 
5213
5202
  "use strict";
5214
5203
  __webpack_require__.r(__webpack_exports__);
5204
+ /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("5a1c");
5205
+ /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_0__);
5206
+
5215
5207
  /* harmony default export */ __webpack_exports__["default"] = ({
5216
5208
  name: 'AdragBox',
5217
5209
  props: {
@@ -5219,6 +5211,10 @@ __webpack_require__.r(__webpack_exports__);
5219
5211
  type: String,
5220
5212
  default: () => `id-a-drag-box-${Math.random()}`
5221
5213
  },
5214
+ prompt: {
5215
+ type: String,
5216
+ default: () => '按住进行拖放'
5217
+ },
5222
5218
  dragType: {
5223
5219
  type: String,
5224
5220
  default: () => 'text/plain'
@@ -5226,19 +5222,41 @@ __webpack_require__.r(__webpack_exports__);
5226
5222
  draggable: {
5227
5223
  type: Boolean,
5228
5224
  default: () => true
5225
+ },
5226
+ insert: {
5227
+ type: Boolean,
5228
+ default: () => false
5229
+ },
5230
+ color: {
5231
+ type: String,
5232
+ default: () => ''
5233
+ },
5234
+ padding: {
5235
+ type: String,
5236
+ default: () => '0'
5237
+ },
5238
+ height: {
5239
+ type: String,
5240
+ default: () => '100%'
5241
+ },
5242
+ background: {
5243
+ type: String,
5244
+ default: () => ''
5245
+ },
5246
+ styles: {
5247
+ type: Object,
5248
+ default: () => ({})
5249
+ },
5250
+ loading: {
5251
+ type: Boolean,
5252
+ default: () => false
5229
5253
  }
5230
5254
  },
5231
- created() {
5232
- this.create();
5233
- },
5234
5255
  methods: {
5235
- create() {
5236
- // TODO
5237
- },
5238
5256
  dragstart(a) {
5239
5257
  if (this.draggable) {
5240
5258
  a.dataTransfer.setData(this.dragType, this.id);
5241
- this.$store.commit('changeDragId', this.id);
5259
+ this.$store.commit('setDragId', this.id);
5242
5260
  this.$emit('dragstart', a);
5243
5261
  }
5244
5262
  },
@@ -5264,41 +5282,62 @@ __webpack_require__.r(__webpack_exports__);
5264
5282
  },
5265
5283
  drop(a) {
5266
5284
  a.preventDefault();
5267
- const {
5268
- dragId,
5269
- dropId
5270
- } = this.$store.state;
5271
- this.$emit('drop', {
5272
- dragId,
5273
- dropId
5274
- });
5275
- a.dataTransfer.clearData();
5276
- },
5277
- mousedown(a, b) {
5278
- // TODO
5279
- return;
5285
+ if (this.draggable) {
5286
+ const id = a.dataTransfer.getData(this.dragType);
5287
+ const draging = document.getElementById(id);
5288
+ const droping = document.getElementById(this.id);
5289
+ if (draging !== droping) {
5290
+ let dragPostion = draging.getBoundingClientRect();
5291
+ let dropPostion = droping.getBoundingClientRect();
5292
+ if (this.insert) {
5293
+ if (this.getIndex(draging) > this.getIndex(droping)) {
5294
+ this.$el.parentNode.insertBefore(draging, droping);
5295
+ } else {
5296
+ this.$el.parentNode.insertBefore(draging, droping.nextSibling);
5297
+ }
5298
+ }
5299
+ this.animate(draging, dragPostion);
5300
+ this.animate(droping, dropPostion);
5301
+ }
5302
+ this.$store.commit('setDropId', this.id);
5303
+ this.$emit('drop', a);
5304
+ }
5280
5305
  },
5281
- mouseup(a, b) {
5282
- // TODO
5283
- return;
5306
+ getIndex(element = null) {
5307
+ let index = 0;
5308
+ if (!element) return -1;
5309
+ while (element = element.previousSibling) index++;
5310
+ return index;
5284
5311
  },
5285
- mouseover(a, b) {
5286
- // TODO
5287
- return;
5312
+ animate(element, postion, delay = 300) {
5313
+ let current = element.getBoundingClientRect();
5314
+ let action = (() => {
5315
+ element.style.transition = 'none';
5316
+ element.style.transform = `translate3d(${postion.left - current.left}px, ${postion.top - current.top}px, 0)`;
5317
+ element.offsetWidth;
5318
+ element.style.transition = `all ${delay}ms`;
5319
+ element.style.transform = 'translate3d(0, 0, 0)';
5320
+ })();
5321
+ setTimeout(() => action = null, delay);
5288
5322
  }
5289
5323
  },
5290
5324
  render() {
5291
5325
  const h = arguments[0];
5326
+ const {
5327
+ ...props
5328
+ } = this.$attrs;
5292
5329
  return h("div", {
5293
5330
  "attrs": {
5294
5331
  "id": this.id,
5332
+ "title": this.prompt,
5295
5333
  "draggable": this.draggable
5296
5334
  },
5297
5335
  "class": "a-drag-box",
5336
+ "directives": [{
5337
+ name: "loading",
5338
+ value: this.loading
5339
+ }],
5298
5340
  "on": {
5299
- "mousedown": a => this.mousedown(a, this.id),
5300
- "mouseover": a => this.mouseover(a, this.id),
5301
- "mouseup": a => this.mouseup(a, this.id),
5302
5341
  "dragstart": this.dragstart,
5303
5342
  "dragenter": this.dragenter,
5304
5343
  "dragleave": this.dragleave,
@@ -5306,8 +5345,24 @@ __webpack_require__.r(__webpack_exports__);
5306
5345
  "dragend": this.dragend,
5307
5346
  "drag": this.drag,
5308
5347
  "drop": this.drop
5348
+ },
5349
+ "style": {
5350
+ color: this.color,
5351
+ minHeight: this.height,
5352
+ background: this.background,
5353
+ ...this.styles
5354
+ },
5355
+ "props": {
5356
+ ...props
5309
5357
  }
5310
- }, [this.$slots.default]);
5358
+ }, [h("div", {
5359
+ "class": "a-drag-box-body",
5360
+ "style": {
5361
+ padding: this.padding
5362
+ }
5363
+ }, [h("div", {
5364
+ "class": "custom-body"
5365
+ }, [this.$slots.default])])]);
5311
5366
  }
5312
5367
  });
5313
5368
 
@@ -12723,6 +12778,309 @@ module.exports = _default;
12723
12778
 
12724
12779
  /***/ }),
12725
12780
 
12781
+ /***/ "1a2f":
12782
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
12783
+
12784
+ "use strict";
12785
+ __webpack_require__.r(__webpack_exports__);
12786
+ /* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6aaa");
12787
+ /* 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__);
12788
+ /* harmony import */ var _components_AformItem__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("2234");
12789
+ /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("ebb9");
12790
+ /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_2__);
12791
+
12792
+
12793
+
12794
+ /* harmony default export */ __webpack_exports__["default"] = ({
12795
+ name: 'CfSearch',
12796
+ components: {
12797
+ AformItem: _components_AformItem__WEBPACK_IMPORTED_MODULE_1__["default"]
12798
+ },
12799
+ props: {
12800
+ margin: {
12801
+ type: String,
12802
+ default: () => '0'
12803
+ },
12804
+ size: {
12805
+ type: String,
12806
+ default: () => 'small'
12807
+ },
12808
+ inline: {
12809
+ type: Boolean,
12810
+ default: () => true
12811
+ },
12812
+ cols: {
12813
+ type: String,
12814
+ default: () => '6'
12815
+ },
12816
+ gutter: {
12817
+ type: String,
12818
+ default: () => '10'
12819
+ },
12820
+ labelWidth: {
12821
+ type: String,
12822
+ default: () => 'auto'
12823
+ },
12824
+ labelPosition: {
12825
+ type: String,
12826
+ default: () => 'top'
12827
+ },
12828
+ config: {
12829
+ type: Object,
12830
+ default: () => ({})
12831
+ },
12832
+ values: {
12833
+ type: Object,
12834
+ default: () => ({})
12835
+ },
12836
+ label: {
12837
+ type: Boolean,
12838
+ default: () => true
12839
+ },
12840
+ check: {
12841
+ type: Boolean,
12842
+ default: () => false
12843
+ },
12844
+ loading: {
12845
+ type: Boolean,
12846
+ default: () => false
12847
+ },
12848
+ submitText: {
12849
+ type: String,
12850
+ default: () => '搜索'
12851
+ },
12852
+ cancelText: {
12853
+ type: String,
12854
+ default: () => '重置'
12855
+ }
12856
+ },
12857
+ data() {
12858
+ return {
12859
+ form: {}
12860
+ };
12861
+ },
12862
+ created() {
12863
+ this.create();
12864
+ },
12865
+ mounted() {},
12866
+ destroyed() {
12867
+ this.create = null;
12868
+ this.submit = null;
12869
+ this.cancel = null;
12870
+ this.filter = null;
12871
+ this.result = null;
12872
+ this.prompt = null;
12873
+ this.format = null;
12874
+ },
12875
+ watch: {
12876
+ values() {
12877
+ this.create();
12878
+ }
12879
+ },
12880
+ methods: {
12881
+ create() {
12882
+ // 创建表单
12883
+ if (this.config && Object.keys(this.config).length > 0) {
12884
+ // 格式化表单配置对象(this.config)为数据双向绑定对象
12885
+ let data = {};
12886
+ for (let a in this.config) data[a] = this.config[a].default ? this.config[a].default : '';
12887
+ this.form = data;
12888
+ }
12889
+ },
12890
+ submit(e) {
12891
+ // 提交表单
12892
+ e && e.preventDefault();
12893
+ let pass = !this.check; // 判断是否是空表单
12894
+ for (let a in this.form) if (this.form[a] != '') pass = true;
12895
+ let data = {};
12896
+ if (Object.keys(this.config).length > 0) {
12897
+ // 格式化属性为模糊查询属性
12898
+ for (let a in this.config) {
12899
+ if (this.config[a] != '' && this.config[a].like && this.form[a] != '' && this.form[a] != null && this.form[a] != undefined) {
12900
+ if (this.config[a].like == 'left') data[a] = '%' + this.form[a];
12901
+ if (this.config[a].like == 'right') data[a] = this.form[a] + '%';else data[a] = '%' + this.form[a] + '%';
12902
+ } else {
12903
+ if (this.config[a] != '' && (this.config[a].than || this.config[a].range || this.config[a].scope)) {
12904
+ data[`${a}LE`] = this.form[`${a}LE`];
12905
+ data[`${a}GE`] = this.form[`${a}GE`];
12906
+ } else if (this.form[a].includes(' 00:00:00')) data[a] = '%' + this.form[a].split(' 00:00:00')[0] + '%';else data[a] = this.form[a];
12907
+ }
12908
+ }
12909
+ }
12910
+ if (pass) {
12911
+ let result = this.filter(data);
12912
+ const {
12913
+ formParams,
12914
+ pageParams
12915
+ } = this.$store.state;
12916
+ this.$store.commit('setFormParams', result); // 添加查询参数
12917
+ this.$store.commit('setPageParams', {
12918
+ ...pageParams,
12919
+ page: 1
12920
+ }); // 重置分页参数
12921
+ this.$nextTick(() => {
12922
+ let change = false;
12923
+ Object.keys(result).forEach(a => result[a] != formParams[a] && (change = true));
12924
+ if (change) this.$emit('submit', {
12925
+ ...result,
12926
+ ...pageParams,
12927
+ page: 1
12928
+ }); // 派发事件并重置当前分页
12929
+ return result;
12930
+ });
12931
+ }
12932
+ },
12933
+ cancel(e) {
12934
+ // 重置表单
12935
+ e && e.preventDefault();
12936
+ let pass = !this.check; // 判断是否是空表单
12937
+ for (let a in this.form) if (this.form[a] != '') pass = true;
12938
+ if (pass) {
12939
+ const {
12940
+ pageParams
12941
+ } = this.$store.state;
12942
+ this.$store.commit('setPageParams', {
12943
+ ...pageParams,
12944
+ page: 1,
12945
+ size: 10
12946
+ }); // 重置分页参数
12947
+ this.$store.commit('setFormParams', {}); // 重置查询参数
12948
+ this.$nextTick(() => {
12949
+ for (let a in this.form) this.form[a] = '';
12950
+ this.$nextTick(() => this.$emit('cancel', this.form));
12951
+ });
12952
+ }
12953
+ },
12954
+ filter(form = {}) {
12955
+ // 过滤空值属性
12956
+ const data = {};
12957
+ for (let a in form) {
12958
+ if (a != undefined && a != 'undefined' && form[a] != '' && form[a] != '%%' && form[a] != 'null' && form[a] != 'undefined' && form[a] != null && form[a] != undefined) {
12959
+ data[a] = form[a];
12960
+ }
12961
+ }
12962
+ return data;
12963
+ },
12964
+ result() {
12965
+ // 返回验证后的表单数据
12966
+ return this.filter(this.form);
12967
+ },
12968
+ prompt(a = {}, index = 0, placeholder = '') {
12969
+ if (Object.keys(a).length > 0 && a.placeholder && a.placeholder.length && a.placeholder.length > 0) return a.placeholder[index];
12970
+ return placeholder;
12971
+ },
12972
+ format(a = {}, field = '', placeholder = '') {
12973
+ const h = this.$createElement;
12974
+ if (Object.keys(a).length > 0) {
12975
+ let config = {
12976
+ size: this.config[a].size ? this.config[a].size : this.size,
12977
+ field: field != '' ? field : `${a}`,
12978
+ disabled: this.loading,
12979
+ form: this.form,
12980
+ ...this.config[a]
12981
+ };
12982
+ if (placeholder != '') return h(_components_AformItem__WEBPACK_IMPORTED_MODULE_1__["default"], {
12983
+ "attrs": {
12984
+ "config": {
12985
+ ...config,
12986
+ placeholder
12987
+ }
12988
+ }
12989
+ });
12990
+ return h(_components_AformItem__WEBPACK_IMPORTED_MODULE_1__["default"], {
12991
+ "attrs": {
12992
+ "config": config
12993
+ }
12994
+ });
12995
+ }
12996
+ }
12997
+ },
12998
+ render() {
12999
+ const h = arguments[0];
13000
+ const {
13001
+ ...props
13002
+ } = this.$attrs;
13003
+ const {
13004
+ submit = null,
13005
+ cancel = null
13006
+ } = this.$listeners;
13007
+ let style = this.cols != '' ? {
13008
+ width: `${100 / this.cols}%`
13009
+ } : {};
13010
+ let label = a => this.label ? this.config[a].text || this.config[a].label || this.config[a].title : '';
13011
+ return h("div", {
13012
+ "class": "c-f-search",
13013
+ "style": {
13014
+ padding: this.margin
13015
+ }
13016
+ }, [h("el-form", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
13017
+ "ref": "form",
13018
+ "attrs": {
13019
+ "size": this.size
13020
+ }
13021
+ }, {
13022
+ "props": {
13023
+ model: this.form,
13024
+ ...props
13025
+ }
13026
+ }, {
13027
+ "attrs": {
13028
+ "labelWidth": this.labelWidth,
13029
+ "labelPosition": this.labelPosition
13030
+ }
13031
+ }]), [h("el-row", {
13032
+ "attrs": {
13033
+ "gutter": Number(this.gutter)
13034
+ }
13035
+ }, [Object.keys(this.config).map((a, b) => h("el-col", {
13036
+ "key": b,
13037
+ "class": "column",
13038
+ "style": style
13039
+ }, [h("el-form-item", {
13040
+ "attrs": {
13041
+ "prop": `${a}`,
13042
+ "label": label(a)
13043
+ }
13044
+ }, [this.config[a].than || this.config[a].range || this.config[a].scope ? h("el-col", {
13045
+ "class": "range-cols"
13046
+ }, [h("el-col", {
13047
+ "attrs": {
13048
+ "span": 12
13049
+ }
13050
+ }, [this.format(a, `${a}LE`, this.prompt(this.config[a], 0, '最高'))]), h("el-col", {
13051
+ "attrs": {
13052
+ "span": 12
13053
+ }
13054
+ }, [this.format(a, `${a}GE`, this.prompt(this.config[a], 1, '最低'))])]) : this.format(a)])])), this.$slots.default, (submit || cancel) && h("el-col", {
13055
+ "key": "action",
13056
+ "class": "action",
13057
+ "style": style
13058
+ }, [h("el-form-item", {
13059
+ "attrs": {
13060
+ "label": this.label ? 'action' : ''
13061
+ }
13062
+ }, [submit && h("el-button", {
13063
+ "attrs": {
13064
+ "disabled": this.loading,
13065
+ "type": "primary"
13066
+ },
13067
+ "on": {
13068
+ "click": this.submit
13069
+ }
13070
+ }, [this.submitText]), cancel && h("el-button", {
13071
+ "attrs": {
13072
+ "disabled": this.loading,
13073
+ "type": "default"
13074
+ },
13075
+ "on": {
13076
+ "click": this.cancel
13077
+ }
13078
+ }, [this.cancelText])])])])])]);
13079
+ }
13080
+ });
13081
+
13082
+ /***/ }),
13083
+
12726
13084
  /***/ "1aa8":
12727
13085
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
12728
13086
 
@@ -12858,6 +13216,7 @@ var map = {
12858
13216
  "./AdragBox": "0a59",
12859
13217
  "./AdragBox/": "0a59",
12860
13218
  "./AdragBox/index": "0a59",
13219
+ "./AdragBox/index.css": "5a1c",
12861
13220
  "./AdragBox/index.js": "0a59",
12862
13221
  "./AdropBox": "b7dd",
12863
13222
  "./AdropBox/": "b7dd",
@@ -13004,6 +13363,11 @@ var map = {
13004
13363
  "./Aform/BfSearch/index": "fc0d",
13005
13364
  "./Aform/BfSearch/index.css": "a261",
13006
13365
  "./Aform/BfSearch/index.js": "fc0d",
13366
+ "./Aform/CfSearch": "1a2f",
13367
+ "./Aform/CfSearch/": "1a2f",
13368
+ "./Aform/CfSearch/index": "1a2f",
13369
+ "./Aform/CfSearch/index.css": "ebb9",
13370
+ "./Aform/CfSearch/index.js": "1a2f",
13007
13371
  "./Aform/index": "aff6",
13008
13372
  "./Aform/index.css": "d397",
13009
13373
  "./Aform/index.js": "aff6",
@@ -13095,16 +13459,9 @@ var map = {
13095
13459
  "./Aswitch/index.js": "02e1",
13096
13460
  "./Atable": "bd9e",
13097
13461
  "./Atable/": "bd9e",
13098
- "./Atable/Actions": "e611",
13099
- "./Atable/Actions/": "e611",
13100
- "./Atable/Actions/index": "e611",
13101
- "./Atable/Actions/index.vue": "e611",
13102
13462
  "./Atable/index": "bd9e",
13103
- "./Atable/index copy": "5e12",
13104
- "./Atable/index copy.js": "5e12",
13105
13463
  "./Atable/index.css": "c089",
13106
13464
  "./Atable/index.js": "bd9e",
13107
- "./Atable/index.vue": "ffd4",
13108
13465
  "./Atabs": "3766",
13109
13466
  "./Atabs/": "3766",
13110
13467
  "./Atabs/index": "3766",
@@ -13194,7 +13551,12 @@ var map = {
13194
13551
  "./Btree/": "9d92",
13195
13552
  "./Btree/index": "9d92",
13196
13553
  "./Btree/index.css": "353a",
13197
- "./Btree/index.vue": "9d92"
13554
+ "./Btree/index.vue": "9d92",
13555
+ "./Ctable": "78ab",
13556
+ "./Ctable/": "78ab",
13557
+ "./Ctable/index": "78ab",
13558
+ "./Ctable/index.css": "e6e6",
13559
+ "./Ctable/index.js": "78ab"
13198
13560
  };
13199
13561
 
13200
13562
 
@@ -13414,7 +13776,7 @@ __webpack_require__.r(__webpack_exports__);
13414
13776
  },
13415
13777
  inline: {
13416
13778
  type: Boolean,
13417
- default: () => true
13779
+ default: () => false
13418
13780
  },
13419
13781
  cols: {
13420
13782
  type: String,
@@ -13463,21 +13825,28 @@ __webpack_require__.r(__webpack_exports__);
13463
13825
  },
13464
13826
  data() {
13465
13827
  return {
13466
- form: {}
13828
+ form: {},
13829
+ height: 0,
13830
+ opened: false
13467
13831
  };
13468
13832
  },
13469
13833
  created() {
13470
13834
  this.create();
13471
13835
  },
13472
- mounted() {},
13836
+ mounted() {
13837
+ this.update();
13838
+ },
13473
13839
  destroyed() {
13474
13840
  this.create = null;
13841
+ this.update = null;
13475
13842
  this.submit = null;
13476
13843
  this.cancel = null;
13477
13844
  this.filter = null;
13478
13845
  this.result = null;
13846
+ this.switch = null;
13479
13847
  this.prompt = null;
13480
13848
  this.format = null;
13849
+ this.output = null;
13481
13850
  },
13482
13851
  watch: {
13483
13852
  values() {
@@ -13494,23 +13863,27 @@ __webpack_require__.r(__webpack_exports__);
13494
13863
  this.form = data;
13495
13864
  }
13496
13865
  },
13866
+ update() {
13867
+ let rows = Math.ceil(Object.keys(this.config).length / this.cols);
13868
+ this.height = this.$el.clientHeight * (rows - 1);
13869
+ },
13497
13870
  submit(e) {
13498
13871
  // 提交表单
13499
13872
  e && e.preventDefault();
13500
13873
  let pass = !this.check; // 判断是否是空表单
13501
- for (let a in this.form) if (this.form[a].trim() != '') pass = true;
13874
+ for (let a in this.form) if (this.form[a] != '') pass = true;
13502
13875
  let data = {};
13503
13876
  if (Object.keys(this.config).length > 0) {
13504
13877
  // 格式化属性为模糊查询属性
13505
13878
  for (let a in this.config) {
13506
- if (this.config[a] != '' && this.config[a].like && this.form[a].trim() != '' && this.form[a].trim() != null && this.form[a].trim() != undefined) {
13507
- if (this.config[a].like == 'left') data[a] = '%' + this.form[a].trim();
13508
- if (this.config[a].like == 'right') data[a] = this.form[a].trim() + '%';else data[a] = '%' + this.form[a].trim() + '%';
13879
+ if (this.config[a] != '' && this.config[a].like && this.form[a] != '' && this.form[a] != null && this.form[a] != undefined) {
13880
+ if (this.config[a].like == 'left') data[a] = '%' + this.form[a];
13881
+ if (this.config[a].like == 'right') data[a] = this.form[a] + '%';else data[a] = '%' + this.form[a] + '%';
13509
13882
  } else {
13510
13883
  if (this.config[a] != '' && (this.config[a].than || this.config[a].range || this.config[a].scope)) {
13511
- data[`${a}LE`] = this.form[`${a}LE`].trim();
13512
- data[`${a}GE`] = this.form[`${a}GE`].trim();
13513
- } 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();
13884
+ data[`${a}LE`] = this.form[`${a}LE`];
13885
+ data[`${a}GE`] = this.form[`${a}GE`];
13886
+ } else if (this.form[a].includes(' 00:00:00')) data[a] = '%' + this.form[a].split(' 00:00:00')[0] + '%';else data[a] = this.form[a];
13514
13887
  }
13515
13888
  }
13516
13889
  }
@@ -13520,8 +13893,8 @@ __webpack_require__.r(__webpack_exports__);
13520
13893
  formParams,
13521
13894
  pageParams
13522
13895
  } = this.$store.state;
13523
- this.$store.commit('changeFormParams', result); // 添加查询参数
13524
- this.$store.commit('changePageParams', {
13896
+ this.$store.commit('setFormParams', result); // 添加查询参数
13897
+ this.$store.commit('setPageParams', {
13525
13898
  ...pageParams,
13526
13899
  page: 1
13527
13900
  }); // 重置分页参数
@@ -13546,12 +13919,12 @@ __webpack_require__.r(__webpack_exports__);
13546
13919
  const {
13547
13920
  pageParams
13548
13921
  } = this.$store.state;
13549
- this.$store.commit('changePageParams', {
13922
+ this.$store.commit('setPageParams', {
13550
13923
  ...pageParams,
13551
13924
  page: 1,
13552
13925
  size: 10
13553
13926
  }); // 重置分页参数
13554
- this.$store.commit('changeFormParams', {}); // 重置查询参数
13927
+ this.$store.commit('setFormParams', {}); // 重置查询参数
13555
13928
  this.$nextTick(() => {
13556
13929
  for (let a in this.form) this.form[a] = '';
13557
13930
  this.$nextTick(() => this.$emit('cancel', this.form));
@@ -13559,19 +13932,18 @@ __webpack_require__.r(__webpack_exports__);
13559
13932
  }
13560
13933
  },
13561
13934
  filter(form = {}) {
13562
- // 过滤空值属性
13563
13935
  const data = {};
13564
13936
  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
- }
13937
+ if (form[a] != '' && form[a] != '%%' && form[a] != 'null' && form[a] != 'undefined' && form[a] != null && form[a] != undefined) data[a] = form[a];
13568
13938
  }
13569
13939
  return data;
13570
13940
  },
13571
13941
  result() {
13572
- // 返回验证后的表单数据
13573
13942
  return this.filter(this.form);
13574
13943
  },
13944
+ switch() {
13945
+ this.opened = !this.opened;
13946
+ },
13575
13947
  prompt(a = {}, index = 0, placeholder = '') {
13576
13948
  if (Object.keys(a).length > 0 && a.placeholder && a.placeholder.length && a.placeholder.length > 0) return a.placeholder[index];
13577
13949
  return placeholder;
@@ -13600,6 +13972,31 @@ __webpack_require__.r(__webpack_exports__);
13600
13972
  }
13601
13973
  });
13602
13974
  }
13975
+ },
13976
+ output(a, b) {
13977
+ const h = this.$createElement;
13978
+ let style = this.cols != '' ? {
13979
+ width: `${100 / this.cols}%`
13980
+ } : {};
13981
+ return h("el-col", {
13982
+ "key": b,
13983
+ "style": style
13984
+ }, [h("el-form-item", {
13985
+ "attrs": {
13986
+ "prop": `${a}`,
13987
+ "label": this.label ? this.config[a]['text'] : ''
13988
+ }
13989
+ }, [this.config[a].than || this.config[a].range || this.config[a].scope ? h("el-col", {
13990
+ "class": "range-cols"
13991
+ }, [h("el-col", {
13992
+ "attrs": {
13993
+ "span": 12
13994
+ }
13995
+ }, [this.format(a, `${a}LE`, this.prompt(this.config[a], 0, '最高'))]), h("el-col", {
13996
+ "attrs": {
13997
+ "span": 12
13998
+ }
13999
+ }, [this.format(a, `${a}GE`, this.prompt(this.config[a], 1, '最低'))])]) : this.format(a)])]);
13603
14000
  }
13604
14001
  },
13605
14002
  render() {
@@ -13611,11 +14008,7 @@ __webpack_require__.r(__webpack_exports__);
13611
14008
  submit = null,
13612
14009
  cancel = null
13613
14010
  } = 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", {
14011
+ return h("div", {
13619
14012
  "class": "a-f-search",
13620
14013
  "style": {
13621
14014
  padding: this.margin
@@ -13623,7 +14016,8 @@ __webpack_require__.r(__webpack_exports__);
13623
14016
  }, [h("el-form", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
13624
14017
  "ref": "form",
13625
14018
  "attrs": {
13626
- "size": this.size
14019
+ "size": this.size,
14020
+ "inline": this.inline
13627
14021
  }
13628
14022
  }, {
13629
14023
  "props": {
@@ -13635,38 +14029,42 @@ __webpack_require__.r(__webpack_exports__);
13635
14029
  "labelWidth": this.labelWidth,
13636
14030
  "labelPosition": this.labelPosition
13637
14031
  }
13638
- }]), [h("el-row", {
14032
+ }]), [h("div", {
14033
+ "class": "column"
14034
+ }, [h("el-row", {
13639
14035
  "attrs": {
13640
14036
  "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", {
14037
+ },
14038
+ "class": "main-row"
14039
+ }, [Object.keys(this.config).map((a, b) => b < this.cols && this.output(a, b))]), h("el-row", {
13647
14040
  "attrs": {
13648
- "prop": `${a}`,
13649
- "label": label(a)
14041
+ "gutter": Number(this.gutter)
14042
+ },
14043
+ "class": "fold-row",
14044
+ "style": {
14045
+ height: this.opened ? `${this.height}px` : '0'
13650
14046
  }
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
14047
+ }, [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", {
14048
+ "class": "action",
14049
+ "style": {
14050
+ paddingLeft: `${this.gutter}px`
13656
14051
  }
13657
- }, [this.format(a, `${a}LE`, this.prompt(this.config[a], 0, '最高'))]), h("el-col", {
14052
+ }, [h("el-form-item", {
13658
14053
  "attrs": {
13659
- "span": 12
14054
+ "label": "action"
13660
14055
  }
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", {
14056
+ }, [Object.keys(this.config).length > this.cols && h("el-button", {
13666
14057
  "attrs": {
13667
- "label": this.label ? 'action' : ''
14058
+ "disabled": this.loading,
14059
+ "type": "text"
14060
+ },
14061
+ "class": "collapse-button",
14062
+ "on": {
14063
+ "click": this.switch
13668
14064
  }
13669
- }, [submit && h("el-button", {
14065
+ }, [h("i", {
14066
+ "class": `el-icon-arrow-${this.opened ? 'up' : 'down'}`
14067
+ }), this.opened ? '收起' : '展开']), submit && h("el-button", {
13670
14068
  "attrs": {
13671
14069
  "disabled": this.loading,
13672
14070
  "type": "primary"
@@ -13682,7 +14080,7 @@ __webpack_require__.r(__webpack_exports__);
13682
14080
  "on": {
13683
14081
  "click": this.cancel
13684
14082
  }
13685
- }, [this.cancelText])])])])])])]);
14083
+ }, [this.cancelText])])])])]);
13686
14084
  }
13687
14085
  });
13688
14086
 
@@ -16114,11 +16512,8 @@ __webpack_require__.r(__webpack_exports__);
16114
16512
  };
16115
16513
  },
16116
16514
  watch: {
16117
- page(page) {
16118
- this.config.page = page;
16119
- },
16120
- size(size) {
16121
- this.config.size = size;
16515
+ pages(pages = this.pages) {
16516
+ this.config = pages;
16122
16517
  }
16123
16518
  },
16124
16519
  methods: {
@@ -16136,8 +16531,6 @@ __webpack_require__.r(__webpack_exports__);
16136
16531
  render() {
16137
16532
  const h = arguments[0];
16138
16533
  const {
16139
- page = null,
16140
- size = null,
16141
16534
  ...props
16142
16535
  } = this.$attrs;
16143
16536
  return h("div", {
@@ -16145,8 +16538,8 @@ __webpack_require__.r(__webpack_exports__);
16145
16538
  }, [h("el-pagination", {
16146
16539
  "attrs": {
16147
16540
  "small": this.small,
16148
- "current-page": page || this.config.page,
16149
- "page-size": size || this.config.size,
16541
+ "current-page": this.config.page,
16542
+ "page-size": this.config.size,
16150
16543
  "page-sizes": this.pageSizes,
16151
16544
  "layout": this.complete ? 'total, sizes, prev, pager, next, jumper' : 'prev, pager, next',
16152
16545
  "total": this.total,
@@ -35738,6 +36131,7 @@ var map = {
35738
36131
  "./Aform/AfEditor/index.js": "b550",
35739
36132
  "./Aform/AfSearch/index.js": "1b78",
35740
36133
  "./Aform/BfSearch/index.js": "fc0d",
36134
+ "./Aform/CfSearch/index.js": "1a2f",
35741
36135
  "./Aform/index.js": "aff6",
35742
36136
  "./AformItem/index.js": "2234",
35743
36137
  "./AiconSelect/index.js": "db3d",
@@ -35767,7 +36161,8 @@ var map = {
35767
36161
  "./Bcard/index.js": "4df8",
35768
36162
  "./BformItem/index.js": "5c61",
35769
36163
  "./Bmap/index.js": "e579",
35770
- "./Btable/index.js": "98ee"
36164
+ "./Btable/index.js": "98ee",
36165
+ "./Ctable/index.js": "78ab"
35771
36166
  };
35772
36167
 
35773
36168
 
@@ -36141,6 +36536,17 @@ exports.scale = scale;
36141
36536
  exports.invert = invert;
36142
36537
  exports.clone = clone;
36143
36538
 
36539
+ /***/ }),
36540
+
36541
+ /***/ "5934":
36542
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
36543
+
36544
+ "use strict";
36545
+ /* 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_446b4709_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("e95a");
36546
+ /* 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_446b4709_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_446b4709_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
36547
+ /* unused harmony reexport * */
36548
+
36549
+
36144
36550
  /***/ }),
36145
36551
 
36146
36552
  /***/ "5974":
@@ -36226,6 +36632,13 @@ module.exports = _default;
36226
36632
 
36227
36633
  /***/ }),
36228
36634
 
36635
+ /***/ "5a1c":
36636
+ /***/ (function(module, exports, __webpack_require__) {
36637
+
36638
+ // extracted by mini-css-extract-plugin
36639
+
36640
+ /***/ }),
36641
+
36229
36642
  /***/ "5aac":
36230
36643
  /***/ (function(module, exports) {
36231
36644
 
@@ -36747,6 +37160,13 @@ module.exports = _default;
36747
37160
 
36748
37161
  /***/ }),
36749
37162
 
37163
+ /***/ "5bf5":
37164
+ /***/ (function(module, exports, __webpack_require__) {
37165
+
37166
+ // extracted by mini-css-extract-plugin
37167
+
37168
+ /***/ }),
37169
+
36750
37170
  /***/ "5c61":
36751
37171
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
36752
37172
 
@@ -38968,494 +39388,6 @@ exports.count = count;
38968
39388
 
38969
39389
  /***/ }),
38970
39390
 
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
39391
  /***/ "5eae":
39460
39392
  /***/ (function(module, exports, __webpack_require__) {
39461
39393
 
@@ -39862,7 +39794,7 @@ __webpack_require__.r(__webpack_exports__);
39862
39794
  } = this.$attrs;
39863
39795
  return h("div", {
39864
39796
  "class": this.mode != 'horizontal' ? 'a-menu' : 'a-menu horizontal'
39865
- }, [h("keep-alive", [h("el-menu", {
39797
+ }, [h("el-menu", {
39866
39798
  "attrs": {
39867
39799
  "mode": this.mode,
39868
39800
  "default-active": this.active,
@@ -39884,7 +39816,7 @@ __webpack_require__.r(__webpack_exports__);
39884
39816
  "props": {
39885
39817
  ...props
39886
39818
  }
39887
- }, [this.data && this.data.length > 0 && this.data.map((a, b) => this.format(a, b))])])]);
39819
+ }, [this.data && this.data.length > 0 && this.data.map((a, b) => this.format(a, b))])]);
39888
39820
  }
39889
39821
  });
39890
39822
 
@@ -40646,17 +40578,20 @@ __webpack_require__.r(__webpack_exports__);
40646
40578
  return YYYY + '-' + MM + '-' + DD + ' ' + H + ':' + M + ':' + S;
40647
40579
  },
40648
40580
  select(items) {
40649
- this.$store.commit('changeSelectedRows', items);
40650
- this.$store.commit('changeSelectedKeys', items.map(a => a[this.rowKey]));
40581
+ this.$store.commit('setSelectedRows', items);
40582
+ this.$store.commit('setSelectedKeys', items.map(a => a[this.rowKey]));
40651
40583
  this.$emit('select', {
40652
40584
  rows: items,
40653
40585
  keys: items.map(a => a[this.rowKey])
40654
40586
  });
40655
40587
  },
40656
- change(pages) {
40657
- this.$store.commit('changePageParams', pages);
40588
+ change(pages = {
40589
+ page: 1,
40590
+ size: 10
40591
+ }) {
40592
+ this.$store.commit('setPageParams', pages);
40658
40593
  this.$emit('change', pages);
40659
- this.search();
40594
+ this.search(pages);
40660
40595
  },
40661
40596
  format({
40662
40597
  label,
@@ -47839,13 +47774,6 @@ module.exports = _default;
47839
47774
 
47840
47775
  /***/ }),
47841
47776
 
47842
- /***/ "731e":
47843
- /***/ (function(module, exports, __webpack_require__) {
47844
-
47845
- // extracted by mini-css-extract-plugin
47846
-
47847
- /***/ }),
47848
-
47849
47777
  /***/ "734e":
47850
47778
  /***/ (function(module, exports) {
47851
47779
 
@@ -51037,6 +50965,387 @@ module.exports = _default;
51037
50965
 
51038
50966
  /***/ }),
51039
50967
 
50968
+ /***/ "78ab":
50969
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
50970
+
50971
+ "use strict";
50972
+ __webpack_require__.r(__webpack_exports__);
50973
+ /* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6aaa");
50974
+ /* 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__);
50975
+ /* harmony import */ var _components_Aenume__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("6cc8");
50976
+ /* harmony import */ var _components_AformItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("2234");
50977
+ /* harmony import */ var _components_Apages__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("1d0c");
50978
+ /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("e6e6");
50979
+ /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_4__);
50980
+
50981
+
50982
+
50983
+
50984
+
50985
+ /* harmony default export */ __webpack_exports__["default"] = ({
50986
+ name: 'Ctable',
50987
+ components: {
50988
+ Aenume: _components_Aenume__WEBPACK_IMPORTED_MODULE_1__["default"],
50989
+ AformItem: _components_AformItem__WEBPACK_IMPORTED_MODULE_2__["default"],
50990
+ Apages: _components_Apages__WEBPACK_IMPORTED_MODULE_3__["default"]
50991
+ },
50992
+ props: {
50993
+ rowKey: {
50994
+ type: String,
50995
+ default: () => 'id'
50996
+ },
50997
+ size: {
50998
+ type: String,
50999
+ default: () => 'medium'
51000
+ },
51001
+ sort: {
51002
+ type: Boolean,
51003
+ default: () => true
51004
+ },
51005
+ border: {
51006
+ type: Boolean,
51007
+ default: () => false
51008
+ },
51009
+ stripe: {
51010
+ type: Boolean,
51011
+ default: () => false
51012
+ },
51013
+ column: {
51014
+ type: Array,
51015
+ default: () => []
51016
+ },
51017
+ record: {
51018
+ type: Object,
51019
+ default: () => ({})
51020
+ },
51021
+ params: {
51022
+ type: Object,
51023
+ default: () => ({})
51024
+ },
51025
+ selection: {
51026
+ type: Boolean,
51027
+ default: () => false
51028
+ },
51029
+ showOverflowTooltip: {
51030
+ type: Boolean,
51031
+ default: () => true
51032
+ },
51033
+ sortable: {
51034
+ type: Boolean,
51035
+ default: () => false
51036
+ },
51037
+ defaultSort: {
51038
+ type: Object,
51039
+ default: () => ({
51040
+ prop: 'date',
51041
+ order: 'descending'
51042
+ })
51043
+ },
51044
+ tree: {
51045
+ type: Boolean,
51046
+ default: () => false
51047
+ },
51048
+ defaultExpandAll: {
51049
+ type: Boolean,
51050
+ default: () => true
51051
+ },
51052
+ treeProps: {
51053
+ type: Object,
51054
+ default: () => ({
51055
+ children: 'children',
51056
+ hasChildren: 'hasChildren'
51057
+ })
51058
+ },
51059
+ actionWidth: {
51060
+ type: String,
51061
+ default: () => '180px'
51062
+ },
51063
+ actionTitle: {
51064
+ type: String,
51065
+ default: () => '操作'
51066
+ },
51067
+ formatTime: {
51068
+ type: Boolean,
51069
+ default: () => true
51070
+ },
51071
+ preview: {
51072
+ type: Boolean,
51073
+ default: () => false
51074
+ },
51075
+ page: {
51076
+ type: Boolean,
51077
+ default: () => true
51078
+ }
51079
+ },
51080
+ data() {
51081
+ return {
51082
+ loading: false
51083
+ };
51084
+ },
51085
+ created() {
51086
+ this.search();
51087
+ this.create();
51088
+ },
51089
+ mounted() {
51090
+ this.$refs['c-table'].bodyWrapper.addEventListener('scroll', this.scroll);
51091
+ },
51092
+ methods: {
51093
+ create(column = []) {
51094
+ const h = this.$createElement;
51095
+ if (this.formatTime && this.column.length > 0) {
51096
+ for (let a in this.column) {
51097
+ if (this.column[a].field && this.column[a].field.toLowerCase().includes('time')) {
51098
+ this.column[a].render = item => item[this.column[a].field] != '' && this.filter(item[this.column[a].field]);
51099
+ }
51100
+ }
51101
+ }
51102
+ const actionColumn = () => {
51103
+ let data = [];
51104
+ const {
51105
+ review,
51106
+ modify,
51107
+ update,
51108
+ handle,
51109
+ remove
51110
+ } = this.$listeners;
51111
+ if (review || modify || update || handle || remove || this.$listeners.delete || this.$listeners.export) {
51112
+ data = [{
51113
+ label: this.actionTitle,
51114
+ fixed: 'right',
51115
+ align: 'center',
51116
+ width: this.actionWidth,
51117
+ render: item => h("div", {
51118
+ "class": "action"
51119
+ }, [review && h("i", {
51120
+ "class": "el-icon-view",
51121
+ "on": {
51122
+ "click": () => review(item)
51123
+ }
51124
+ }), modify && h("i", {
51125
+ "class": "el-icon-edit",
51126
+ "on": {
51127
+ "click": () => modify(item)
51128
+ }
51129
+ }), update && h("i", {
51130
+ "class": "el-icon-edit",
51131
+ "on": {
51132
+ "click": () => update(item)
51133
+ }
51134
+ }), handle && h("i", {
51135
+ "class": "el-icon-edit",
51136
+ "on": {
51137
+ "click": () => handle(item)
51138
+ }
51139
+ }), remove && h("Apopconfirm", {
51140
+ "on": {
51141
+ "submit": () => remove(item)
51142
+ }
51143
+ }), this.$listeners.delete && h("Apopconfirm", {
51144
+ "on": {
51145
+ "submit": () => this.$listeners.delete(item)
51146
+ }
51147
+ }), this.$listeners.export && h("i", {
51148
+ "class": "el-icon-download",
51149
+ "on": {
51150
+ "click": () => this.$listeners.export(item)
51151
+ }
51152
+ })])
51153
+ }];
51154
+ }
51155
+ return data;
51156
+ };
51157
+ const columnConfig = [...column, ...actionColumn()];
51158
+ return columnConfig.map((a, b) => {
51159
+ if (a) return h("el-table-column", {
51160
+ "key": b,
51161
+ "attrs": {
51162
+ "prop": a.field,
51163
+ "showOverflowTooltip": this.showOverflowTooltip,
51164
+ "sortable": a.field ? a.sortable ? a.sortable : this.sortable : false,
51165
+ "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
51166
+ },
51167
+ "props": {
51168
+ ...a
51169
+ }
51170
+ });
51171
+ });
51172
+ },
51173
+ search() {
51174
+ const {
51175
+ pageParams,
51176
+ formParams
51177
+ } = this.$store.state;
51178
+ const params = Object.assign({}, pageParams, formParams, this.params);
51179
+ this.$emit('search', params);
51180
+ },
51181
+ filter(timeStamp) {
51182
+ if (!typeof timeStamp == Number) return '';
51183
+ let time = new Date(timeStamp);
51184
+ const YYYY = time.getFullYear();
51185
+ const MM = time.getMonth() + 1 < 10 ? '0' + (time.getMonth() + 1) : time.getMonth() + 1;
51186
+ const DD = time.getDate() < 10 ? '0' + time.getDate() : time.getDate();
51187
+ const H = time.getHours() < 10 ? '0' + time.getHours() : time.getHours();
51188
+ const M = time.getMinutes() < 10 ? '0' + time.getMinutes() : time.getMinutes();
51189
+ const S = time.getSeconds() < 10 ? '0' + time.getSeconds() : time.getSeconds();
51190
+ return YYYY + '-' + MM + '-' + DD + ' ' + H + ':' + M + ':' + S;
51191
+ },
51192
+ select(items) {
51193
+ this.$store.commit('setSelectedRows', items);
51194
+ this.$store.commit('setSelectedKeys', items.map(a => a[this.rowKey]));
51195
+ this.$emit('select', {
51196
+ rows: items,
51197
+ keys: items.map(a => a[this.rowKey])
51198
+ });
51199
+ },
51200
+ choose(row, column, event) {
51201
+ this.$emit('choose', {
51202
+ row,
51203
+ column,
51204
+ event
51205
+ });
51206
+ },
51207
+ change(pages = {
51208
+ page: 1,
51209
+ size: 10
51210
+ }) {
51211
+ this.$store.commit('setPageParams', pages);
51212
+ this.$emit('change', pages);
51213
+ this.search(pages);
51214
+ },
51215
+ switch(name = '', symbol = '_') {
51216
+ return name.replace(/([A-Z])/g, `${symbol}$1`).toLowerCase();
51217
+ },
51218
+ format({
51219
+ label,
51220
+ field,
51221
+ type,
51222
+ disabled,
51223
+ action = '',
51224
+ path = '',
51225
+ flag = '',
51226
+ ...props
51227
+ }, colIndex, item, rowIndex) {
51228
+ const h = this.$createElement;
51229
+ if (this.preview && (type != 'select' || type != 'enume' || type != 'enumerate')) return h("span", {
51230
+ "key": colIndex + '-' + rowIndex
51231
+ }, [item[field]]);
51232
+ if (type == 'select' || type == 'enume' || type == 'enumerate') {
51233
+ let dicts = [];
51234
+ if (this.optionApi != '' || action != '' || path != '') {
51235
+ let url = action != '' ? action : path != '' ? path : this.optionApi;
51236
+ let params = flag != '' ? {
51237
+ flag: this.switch(flag)
51238
+ } : {
51239
+ field: this.switch(field)
51240
+ };
51241
+ FN.get(url, params).then(({
51242
+ data
51243
+ }) => {
51244
+ if (data && data.length > 0) dicts = data;
51245
+ });
51246
+ }
51247
+ return h(_components_Aenume__WEBPACK_IMPORTED_MODULE_1__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
51248
+ "key": colIndex + '-' + rowIndex,
51249
+ "attrs": {
51250
+ "field": `${field}`,
51251
+ "data": dicts
51252
+ }
51253
+ }, props, {
51254
+ "model": {
51255
+ value: item[field],
51256
+ callback: $$v => {
51257
+ this.$set(item, field, $$v);
51258
+ }
51259
+ }
51260
+ }]));
51261
+ }
51262
+ return h(_components_AformItem__WEBPACK_IMPORTED_MODULE_2__["default"], {
51263
+ "key": colIndex + '-' + rowIndex,
51264
+ "attrs": {
51265
+ "config": {
51266
+ type,
51267
+ form: item,
51268
+ label,
51269
+ field: `${field}`,
51270
+ dicts,
51271
+ table: true,
51272
+ ...props
51273
+ }
51274
+ }
51275
+ });
51276
+ },
51277
+ scroll({
51278
+ target
51279
+ }) {
51280
+ this.$emit('scroll', target);
51281
+ }
51282
+ },
51283
+ render() {
51284
+ const h = arguments[0];
51285
+ const {
51286
+ data = [],
51287
+ size = 0
51288
+ } = this.record;
51289
+ const {
51290
+ pageParams
51291
+ } = this.$store.state;
51292
+ const condition = data && data.length > 0;
51293
+ const {
51294
+ ...props
51295
+ } = this.$attrs;
51296
+ return h("div", {
51297
+ "class": "c-table",
51298
+ "directives": [{
51299
+ name: "loading",
51300
+ value: this.loading
51301
+ }]
51302
+ }, [h("el-table", {
51303
+ "ref": "c-table",
51304
+ "attrs": {
51305
+ "data": data,
51306
+ "size": this.size,
51307
+ "border": this.border,
51308
+ "stripe": this.stripe,
51309
+ "column": this.column,
51310
+ "row-key": this.rowKey,
51311
+ "default-sort": this.defaultSort,
51312
+ "tree-props": this.tree ? this.treeProps : {},
51313
+ "default-expand-all": this.defaultExpandAll
51314
+ },
51315
+ "on": {
51316
+ "row-click": this.choose,
51317
+ "selection-change": this.select
51318
+ },
51319
+ "props": {
51320
+ ...props
51321
+ }
51322
+ }, [condition && this.selection && h("el-table-column", {
51323
+ "attrs": {
51324
+ "fixed": "left",
51325
+ "type": "selection",
51326
+ "width": "50"
51327
+ }
51328
+ }), condition && this.sort && h("el-table-column", {
51329
+ "attrs": {
51330
+ "fixed": "left",
51331
+ "type": "index",
51332
+ "width": "50",
51333
+ "label": "#"
51334
+ }
51335
+ }), condition && this.create(this.column)]), !this.tree && this.page && condition && h(_components_Apages__WEBPACK_IMPORTED_MODULE_3__["default"], {
51336
+ "attrs": {
51337
+ "total": Number(size),
51338
+ "pages": pageParams
51339
+ },
51340
+ "on": {
51341
+ "change": this.change
51342
+ }
51343
+ })]);
51344
+ }
51345
+ });
51346
+
51347
+ /***/ }),
51348
+
51040
51349
  /***/ "78f0":
51041
51350
  /***/ (function(module, exports, __webpack_require__) {
51042
51351
 
@@ -61278,11 +61587,22 @@ __webpack_require__.r(__webpack_exports__);
61278
61587
  __webpack_require__.r(__webpack_exports__);
61279
61588
  /* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6aaa");
61280
61589
  /* 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__);
61281
- /* harmony import */ var _components_Aenume__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("6cc8");
61282
- /* harmony import */ var _components_AformItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("2234");
61283
- /* harmony import */ var _components_Apages__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("1d0c");
61284
- /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("f4d2");
61285
- /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_4__);
61590
+ /* harmony import */ var _components_Aactions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("e94c");
61591
+ /* harmony import */ var _components_Aempty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("bd5e");
61592
+ /* harmony import */ var _components_Aenume__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("6cc8");
61593
+ /* harmony import */ var _components_Aform_AfSearch__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("1b78");
61594
+ /* harmony import */ var _components_Aform_BfSearch__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("fc0d");
61595
+ /* harmony import */ var _components_AformItem__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("2234");
61596
+ /* harmony import */ var _components_Apages__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("1d0c");
61597
+ /* harmony import */ var _components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("2ee7");
61598
+ /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("f4d2");
61599
+ /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_9__);
61600
+
61601
+
61602
+
61603
+
61604
+
61605
+
61286
61606
 
61287
61607
 
61288
61608
 
@@ -61291,11 +61611,20 @@ __webpack_require__.r(__webpack_exports__);
61291
61611
  /* harmony default export */ __webpack_exports__["default"] = ({
61292
61612
  name: 'Btable',
61293
61613
  components: {
61294
- Aenume: _components_Aenume__WEBPACK_IMPORTED_MODULE_1__["default"],
61295
- AformItem: _components_AformItem__WEBPACK_IMPORTED_MODULE_2__["default"],
61296
- Apages: _components_Apages__WEBPACK_IMPORTED_MODULE_3__["default"]
61614
+ Aactions: _components_Aactions__WEBPACK_IMPORTED_MODULE_1__["default"],
61615
+ Aempty: _components_Aempty__WEBPACK_IMPORTED_MODULE_2__["default"],
61616
+ Aenume: _components_Aenume__WEBPACK_IMPORTED_MODULE_3__["default"],
61617
+ AfSearch: _components_Aform_AfSearch__WEBPACK_IMPORTED_MODULE_4__["default"],
61618
+ BfSearch: _components_Aform_BfSearch__WEBPACK_IMPORTED_MODULE_5__["default"],
61619
+ AformItem: _components_AformItem__WEBPACK_IMPORTED_MODULE_6__["default"],
61620
+ Apages: _components_Apages__WEBPACK_IMPORTED_MODULE_7__["default"],
61621
+ Apopconfirm: _components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__["default"]
61297
61622
  },
61298
61623
  props: {
61624
+ margin: {
61625
+ type: String,
61626
+ default: () => '0'
61627
+ },
61299
61628
  rowKey: {
61300
61629
  type: String,
61301
61630
  default: () => 'id'
@@ -61304,10 +61633,22 @@ __webpack_require__.r(__webpack_exports__);
61304
61633
  type: String,
61305
61634
  default: () => 'medium'
61306
61635
  },
61636
+ selectionWidth: {
61637
+ type: String,
61638
+ default: () => '50'
61639
+ },
61307
61640
  sort: {
61308
61641
  type: Boolean,
61309
61642
  default: () => true
61310
61643
  },
61644
+ sortTitle: {
61645
+ type: String,
61646
+ default: () => '#'
61647
+ },
61648
+ sortWidth: {
61649
+ type: String,
61650
+ default: () => '50'
61651
+ },
61311
61652
  border: {
61312
61653
  type: Boolean,
61313
61654
  default: () => false
@@ -61316,6 +61657,10 @@ __webpack_require__.r(__webpack_exports__);
61316
61657
  type: Boolean,
61317
61658
  default: () => false
61318
61659
  },
61660
+ loading: {
61661
+ type: Boolean,
61662
+ default: () => false
61663
+ },
61319
61664
  column: {
61320
61665
  type: Array,
61321
61666
  default: () => []
@@ -61324,18 +61669,50 @@ __webpack_require__.r(__webpack_exports__);
61324
61669
  type: Object,
61325
61670
  default: () => ({})
61326
61671
  },
61327
- params: {
61328
- type: Object,
61329
- default: () => ({})
61672
+ maxHeight: {
61673
+ type: String,
61674
+ default: () => '480'
61675
+ },
61676
+ elementLoadingText: {
61677
+ type: String,
61678
+ default: () => ''
61679
+ },
61680
+ elementLoadingSpinner: {
61681
+ type: String,
61682
+ default: () => 'el-icon-loading'
61683
+ },
61684
+ elementLoadingBackground: {
61685
+ type: String,
61686
+ default: () => 'rgba(0, 0, 0, 0.04)'
61687
+ },
61688
+ emptyText: {
61689
+ type: String,
61690
+ default: () => ''
61691
+ },
61692
+ showHeader: {
61693
+ type: Boolean,
61694
+ default: () => true
61330
61695
  },
61331
61696
  selection: {
61332
61697
  type: Boolean,
61333
- default: () => false
61698
+ default: () => true
61334
61699
  },
61335
61700
  showOverflowTooltip: {
61336
61701
  type: Boolean,
61337
61702
  default: () => true
61338
61703
  },
61704
+ tooltipEffect: {
61705
+ type: String,
61706
+ default: () => 'light'
61707
+ },
61708
+ showSummary: {
61709
+ type: Boolean,
61710
+ default: () => false
61711
+ },
61712
+ sumText: {
61713
+ type: String,
61714
+ default: () => '合计'
61715
+ },
61339
61716
  sortable: {
61340
61717
  type: Boolean,
61341
61718
  default: () => false
@@ -61362,6 +61739,22 @@ __webpack_require__.r(__webpack_exports__);
61362
61739
  hasChildren: 'hasChildren'
61363
61740
  })
61364
61741
  },
61742
+ highlightCurrentRow: {
61743
+ type: Boolean,
61744
+ default: () => false
61745
+ },
61746
+ action: {
61747
+ type: Object,
61748
+ default: () => ({
61749
+ review: null,
61750
+ modify: null,
61751
+ update: null,
61752
+ handle: null,
61753
+ remove: null,
61754
+ delete: null,
61755
+ export: null
61756
+ })
61757
+ },
61365
61758
  actionWidth: {
61366
61759
  type: String,
61367
61760
  default: () => '180px'
@@ -61370,138 +61763,157 @@ __webpack_require__.r(__webpack_exports__);
61370
61763
  type: String,
61371
61764
  default: () => '操作'
61372
61765
  },
61373
- formatTime: {
61374
- type: Boolean,
61375
- default: () => true
61376
- },
61377
- preview: {
61378
- type: Boolean,
61379
- default: () => false
61380
- },
61381
61766
  page: {
61382
61767
  type: Boolean,
61383
- default: () => true
61768
+ default: () => false
61384
61769
  }
61385
61770
  },
61386
- data() {
61387
- return {
61388
- loading: false
61389
- };
61771
+ mounted() {
61772
+ this.$refs['b-table'].bodyWrapper.addEventListener('wheel', this.scroll);
61390
61773
  },
61391
- created() {
61392
- this.search();
61393
- this.create();
61774
+ beforeDestroy() {
61775
+ this.$refs['b-table'].bodyWrapper.removeEventListener('wheel', this.scroll);
61394
61776
  },
61395
- mounted() {
61396
- this.$refs['b-table'].bodyWrapper.addEventListener('scroll', this.scroll);
61777
+ destroyed() {
61778
+ this.create = null;
61779
+ this.search = null;
61780
+ this.select = null;
61781
+ this.choose = null;
61782
+ this.change = null;
61783
+ this.format = null;
61784
+ this.scroll = null;
61397
61785
  },
61398
61786
  methods: {
61399
- create(column = []) {
61787
+ create() {
61400
61788
  const h = this.$createElement;
61401
- if (this.formatTime && this.column.length > 0) {
61402
- for (let a in this.column) {
61403
- if (this.column[a].field && this.column[a].field.toLowerCase().includes('time')) {
61404
- this.column[a].render = item => item[this.column[a].field] != '' && this.filter(item[this.column[a].field]);
61405
- }
61406
- }
61407
- }
61408
- const actionColumn = () => {
61409
- let data = [];
61410
- const {
61411
- review,
61412
- modify,
61413
- update,
61414
- handle,
61415
- remove
61416
- } = this.$listeners;
61417
- if (review || modify || update || handle || remove || this.$listeners.delete || this.$listeners.export) {
61418
- data = [{
61419
- label: this.actionTitle,
61420
- fixed: 'right',
61421
- align: 'center',
61422
- width: this.actionWidth,
61423
- render: item => h("div", {
61424
- "class": "action"
61425
- }, [review && h("i", {
61426
- "class": "el-icon-view",
61427
- "on": {
61428
- "click": () => review(item)
61429
- }
61430
- }), modify && h("i", {
61431
- "class": "el-icon-edit",
61432
- "on": {
61433
- "click": () => modify(item)
61434
- }
61435
- }), update && h("i", {
61436
- "class": "el-icon-edit",
61437
- "on": {
61438
- "click": () => update(item)
61439
- }
61440
- }), handle && h("i", {
61441
- "class": "el-icon-edit",
61442
- "on": {
61443
- "click": () => handle(item)
61444
- }
61445
- }), remove && h("Apopconfirm", {
61446
- "on": {
61447
- "submit": () => remove(item)
61448
- }
61449
- }), this.$listeners.delete && h("Apopconfirm", {
61450
- "on": {
61451
- "submit": () => this.$listeners.delete(item)
61452
- }
61453
- }), this.$listeners.export && h("i", {
61454
- "class": "el-icon-download",
61455
- "on": {
61456
- "click": () => this.$listeners.export(item)
61457
- }
61458
- })])
61459
- }];
61789
+ let column = [...this.column, this.suffix()];
61790
+ return column.map((a, b) => {
61791
+ if (a && Object.keys(a).length > 0) {
61792
+ let {
61793
+ type = null,
61794
+ render = null,
61795
+ header = null,
61796
+ ...r
61797
+ } = a;
61798
+ let field = a.field || a.index || a.name || a.prop;
61799
+ let label = a.label || a.title || a.text;
61800
+ let props = {
61801
+ key: b,
61802
+ prop: field,
61803
+ scopedSlot: field,
61804
+ sortable: field ? a.sortable ? a.sortable : this.sortable : false,
61805
+ formatter: render ? render : type ? (e, f, g, h) => this.format(a, b, e, h) : null,
61806
+ showOverflowTooltip: a.showOverflowTooltip ? a.showOverflowTooltip : this.showOverflowTooltip,
61807
+ ...r
61808
+ };
61809
+ return h("el-table-column", {
61810
+ "props": {
61811
+ ...props
61812
+ }
61813
+ }, [h("template", {
61814
+ "slot": "header"
61815
+ }, [header ? () => header(r) : label && label != '' && label.length && label.length > 8 ? h("el-tooltip", {
61816
+ "attrs": {
61817
+ "content": label,
61818
+ "placement": "top"
61819
+ }
61820
+ }, [h("span", {
61821
+ "attrs": {
61822
+ "title": label
61823
+ }
61824
+ }, [label])]) : h("span", {
61825
+ "attrs": {
61826
+ "title": label
61827
+ }
61828
+ }, [label])])]);
61460
61829
  }
61461
- return data;
61462
- };
61463
- const columnConfig = [...column, ...actionColumn()];
61464
- return columnConfig.map((a, b) => {
61465
- if (a) return h("el-table-column", {
61466
- "key": b,
61467
- "attrs": {
61468
- "prop": a.field,
61469
- "showOverflowTooltip": this.showOverflowTooltip,
61470
- "sortable": a.field ? a.sortable ? a.sortable : this.sortable : false,
61471
- "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
61472
- },
61473
- "props": {
61474
- ...a
61475
- }
61476
- });
61477
61830
  });
61478
61831
  },
61479
- search() {
61480
- const {
61481
- pageParams,
61482
- formParams
61483
- } = this.$store.state;
61484
- const params = Object.assign({}, pageParams, formParams, this.params);
61485
- this.$emit('search', params);
61832
+ suffix() {
61833
+ const h = this.$createElement;
61834
+ 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) {
61835
+ return {
61836
+ fixed: 'right',
61837
+ align: 'center',
61838
+ width: this.actionWidth,
61839
+ label: this.actionTitle,
61840
+ formatter: item => h("div", {
61841
+ "class": "action"
61842
+ }, [this.action.review && h("i", {
61843
+ "class": "el-icon-view",
61844
+ "on": {
61845
+ "click": () => this.action.review(item)
61846
+ }
61847
+ }), this.action.modify && h("i", {
61848
+ "class": "el-icon-edit",
61849
+ "on": {
61850
+ "click": () => this.action.modify(item)
61851
+ }
61852
+ }), this.action.update && h("i", {
61853
+ "class": "el-icon-edit",
61854
+ "on": {
61855
+ "click": () => this.action.update(item)
61856
+ }
61857
+ }), this.action.handle && h("i", {
61858
+ "class": "el-icon-edit",
61859
+ "on": {
61860
+ "click": () => this.action.handle(item)
61861
+ }
61862
+ }), this.action.remove && h(_components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__["default"], {
61863
+ "on": {
61864
+ "submit": () => this.action.remove(item)
61865
+ }
61866
+ }), this.action.delete && h(_components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__["default"], {
61867
+ "on": {
61868
+ "submit": () => this.action.delete(item)
61869
+ }
61870
+ }), this.action.export && h("i", {
61871
+ "class": "el-icon-download",
61872
+ "on": {
61873
+ "click": () => this.action.export(item)
61874
+ }
61875
+ }), this.$listeners.review && h("i", {
61876
+ "class": "el-icon-view",
61877
+ "on": {
61878
+ "click": () => this.$listeners.review(item)
61879
+ }
61880
+ }), this.$listeners.modify && h("i", {
61881
+ "class": "el-icon-edit",
61882
+ "on": {
61883
+ "click": () => this.$listeners.modify(item)
61884
+ }
61885
+ }), this.$listeners.update && h("i", {
61886
+ "class": "el-icon-edit",
61887
+ "on": {
61888
+ "click": () => this.$listeners.update(item)
61889
+ }
61890
+ }), this.$listeners.handle && h("i", {
61891
+ "class": "el-icon-edit",
61892
+ "on": {
61893
+ "click": () => this.$listeners.handle(item)
61894
+ }
61895
+ }), this.$listeners.remove && h(_components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__["default"], {
61896
+ "on": {
61897
+ "submit": () => this.$listeners.remove(item)
61898
+ }
61899
+ }), this.$listeners.delete && h(_components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__["default"], {
61900
+ "on": {
61901
+ "submit": () => this.$listeners.delete(item)
61902
+ }
61903
+ }), this.$listeners.export && h("i", {
61904
+ "class": "el-icon-download",
61905
+ "on": {
61906
+ "click": () => this.$listeners.export(item)
61907
+ }
61908
+ })])
61909
+ };
61910
+ }
61486
61911
  },
61487
- filter(timeStamp) {
61488
- if (!typeof timeStamp == Number) return '';
61489
- let time = new Date(timeStamp);
61490
- const YYYY = time.getFullYear();
61491
- const MM = time.getMonth() + 1 < 10 ? '0' + (time.getMonth() + 1) : time.getMonth() + 1;
61492
- const DD = time.getDate() < 10 ? '0' + time.getDate() : time.getDate();
61493
- const H = time.getHours() < 10 ? '0' + time.getHours() : time.getHours();
61494
- const M = time.getMinutes() < 10 ? '0' + time.getMinutes() : time.getMinutes();
61495
- const S = time.getSeconds() < 10 ? '0' + time.getSeconds() : time.getSeconds();
61496
- return YYYY + '-' + MM + '-' + DD + ' ' + H + ':' + M + ':' + S;
61912
+ search(params = {}) {
61913
+ this.$emit('search', params);
61497
61914
  },
61498
- select(items) {
61499
- this.$store.commit('changeSelectedRows', items);
61500
- this.$store.commit('changeSelectedKeys', items.map(a => a[this.rowKey]));
61501
- this.$emit('select', {
61502
- rows: items,
61503
- keys: items.map(a => a[this.rowKey])
61504
- });
61915
+ select(items = []) {
61916
+ this.$emit('select', items);
61505
61917
  },
61506
61918
  choose(row, column, event) {
61507
61919
  this.$emit('choose', {
@@ -61510,48 +61922,31 @@ __webpack_require__.r(__webpack_exports__);
61510
61922
  event
61511
61923
  });
61512
61924
  },
61513
- change(pages) {
61514
- this.$store.commit('changePageParams', pages);
61925
+ change(pages = {
61926
+ page: 1,
61927
+ size: 10
61928
+ }) {
61515
61929
  this.$emit('change', pages);
61516
- this.search();
61517
- },
61518
- switch(name = '', symbol = '_') {
61519
- return name.replace(/([A-Z])/g, `${symbol}$1`).toLowerCase();
61930
+ this.search(pages);
61520
61931
  },
61521
61932
  format({
61522
- label,
61523
- field,
61524
- type,
61525
- disabled,
61526
- action = '',
61527
- path = '',
61528
- flag = '',
61933
+ type = '',
61934
+ name = '',
61935
+ data = [],
61936
+ text = '',
61937
+ label = '',
61938
+ title = '',
61939
+ field = '',
61940
+ dicts = [],
61529
61941
  ...props
61530
61942
  }, colIndex, item, rowIndex) {
61531
61943
  const h = this.$createElement;
61532
- if (this.preview && (type != 'select' || type != 'enume' || type != 'enumerate')) return h("span", {
61533
- "key": colIndex + '-' + rowIndex
61534
- }, [item[field]]);
61535
- if (type == 'select' || type == 'enume' || type == 'enumerate') {
61536
- let dicts = [];
61537
- if (this.optionApi != '' || action != '' || path != '') {
61538
- let url = action != '' ? action : path != '' ? path : this.optionApi;
61539
- let params = flag != '' ? {
61540
- flag: this.switch(flag)
61541
- } : {
61542
- field: this.switch(field)
61543
- };
61544
- FN.get(url, params).then(({
61545
- data
61546
- }) => {
61547
- if (data && data.length > 0) dicts = data;
61548
- });
61549
- }
61550
- return h(_components_Aenume__WEBPACK_IMPORTED_MODULE_1__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
61944
+ if (type == 'enume' || type == 'enumerate') {
61945
+ if (field != '') return h(_components_Aenume__WEBPACK_IMPORTED_MODULE_3__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
61551
61946
  "key": colIndex + '-' + rowIndex,
61552
61947
  "attrs": {
61553
- "field": `${field}`,
61554
- "data": dicts
61948
+ "field": field,
61949
+ "data": dicts.length > 0 ? dicts : data
61555
61950
  }
61556
61951
  }, props, {
61557
61952
  "model": {
@@ -61561,47 +61956,68 @@ __webpack_require__.r(__webpack_exports__);
61561
61956
  }
61562
61957
  }
61563
61958
  }]));
61959
+ return h(_components_Aenume__WEBPACK_IMPORTED_MODULE_3__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
61960
+ "key": colIndex + '-' + rowIndex,
61961
+ "attrs": {
61962
+ "field": name,
61963
+ "data": dicts.length > 0 ? dicts : data
61964
+ }
61965
+ }, props, {
61966
+ "model": {
61967
+ value: item[name],
61968
+ callback: $$v => {
61969
+ this.$set(item, name, $$v);
61970
+ }
61971
+ }
61972
+ }]));
61564
61973
  }
61565
- return h(_components_AformItem__WEBPACK_IMPORTED_MODULE_2__["default"], {
61974
+ return h(_components_AformItem__WEBPACK_IMPORTED_MODULE_6__["default"], {
61566
61975
  "key": colIndex + '-' + rowIndex,
61567
61976
  "attrs": {
61568
61977
  "config": {
61569
61978
  type,
61570
61979
  form: item,
61571
- label,
61572
- field: `${field}`,
61573
- dicts,
61574
- table: true,
61980
+ dicts: dicts.length > 0 ? dicts : data,
61981
+ field: field != '' ? field : name != '' ? name : '',
61982
+ label: text != '' ? text : label != '' ? label : title != '' ? title : '无栏目名称',
61575
61983
  ...props
61576
61984
  }
61577
61985
  }
61578
61986
  });
61579
61987
  },
61580
- scroll({
61581
- target
61582
- }) {
61583
- this.$emit('scroll', target);
61988
+ scroll(a) {
61989
+ let container = this.$refs['b-table'].bodyWrapper;
61990
+ if (container) {
61991
+ if (container.scrollHeight > container.clientHeight) {
61992
+ a.preventDefault();
61993
+ container.scrollTop += a.deltaY;
61994
+ } else {
61995
+ if (container.scrollWidth > container.clientWidth) {
61996
+ a.preventDefault();
61997
+ container.scrollLeft += a.deltaY;
61998
+ }
61999
+ }
62000
+ this.$emit('scroll', a);
62001
+ }
61584
62002
  }
61585
62003
  },
61586
62004
  render() {
61587
62005
  const h = arguments[0];
61588
- const {
61589
- data = [],
61590
- size = 0
61591
- } = this.record;
61592
- const {
61593
- pageParams
61594
- } = this.$store.state;
61595
- const condition = data && data.length > 0;
61596
62006
  const {
61597
62007
  ...props
61598
62008
  } = this.$attrs;
62009
+ const {
62010
+ ...r
62011
+ } = this.record;
62012
+ const data = r.data ? r.data : r.list ? r.list : r.rows ? r.rows : r.record ? r.record : r.records ? r.records : [];
62013
+ const size = r.size ? r.size : r.total ? r.total : r.count ? r.count : 0;
62014
+ const condition = data.length > 0;
61599
62015
  return h("div", {
61600
- "class": "b-table",
61601
- "directives": [{
61602
- name: "loading",
61603
- value: this.loading
61604
- }]
62016
+ "style": {
62017
+ padding: this.margin
62018
+ }
62019
+ }, [h("div", {
62020
+ "class": this.border ? 'b-table' : 'b-table border'
61605
62021
  }, [h("el-table", {
61606
62022
  "ref": "b-table",
61607
62023
  "attrs": {
@@ -61609,12 +62025,23 @@ __webpack_require__.r(__webpack_exports__);
61609
62025
  "size": this.size,
61610
62026
  "border": this.border,
61611
62027
  "stripe": this.stripe,
61612
- "column": this.column,
61613
62028
  "row-key": this.rowKey,
62029
+ "max-height": this.maxHeight,
62030
+ "element-loading-text": this.elementLoadingText,
62031
+ "element-loading-spinner": this.elementLoadingSpinner,
62032
+ "element-loading-background": this.elementLoadingBackground,
62033
+ "show-header": this.showHeader,
61614
62034
  "default-sort": this.defaultSort,
62035
+ "show-summary": this.showSummary,
62036
+ "tooltip-effect": this.tooltipEffect,
62037
+ "default-expand-all": this.defaultExpandAll,
61615
62038
  "tree-props": this.tree ? this.treeProps : {},
61616
- "default-expand-all": this.defaultExpandAll
62039
+ "highlight-current-row": this.highlightCurrentRow
61617
62040
  },
62041
+ "directives": [{
62042
+ name: "loading",
62043
+ value: this.loading
62044
+ }],
61618
62045
  "on": {
61619
62046
  "row-click": this.choose,
61620
62047
  "selection-change": this.select
@@ -61622,28 +62049,34 @@ __webpack_require__.r(__webpack_exports__);
61622
62049
  "props": {
61623
62050
  ...props
61624
62051
  }
61625
- }, [condition && this.selection && h("el-table-column", {
62052
+ }, [condition && (this.selection || this.$listeners.select) && h("el-table-column", {
61626
62053
  "attrs": {
61627
62054
  "fixed": "left",
61628
62055
  "type": "selection",
61629
- "width": "50"
62056
+ "width": this.selectionWidth
61630
62057
  }
61631
62058
  }), condition && this.sort && h("el-table-column", {
61632
62059
  "attrs": {
61633
62060
  "fixed": "left",
61634
62061
  "type": "index",
61635
- "width": "50",
61636
- "label": "#"
62062
+ "width": this.sortWidth,
62063
+ "label": this.sortTitle
61637
62064
  }
61638
- }), condition && this.create(this.column)]), !this.tree && this.page && condition && h(_components_Apages__WEBPACK_IMPORTED_MODULE_3__["default"], {
62065
+ }), condition && this.create(), condition && this.$slots.default, h("div", {
62066
+ "slot": "empty",
62067
+ "class": "empty"
62068
+ }, [!this.loading && h(_components_Aempty__WEBPACK_IMPORTED_MODULE_2__["default"], {
61639
62069
  "attrs": {
61640
- "total": Number(size),
61641
- "pages": pageParams
62070
+ "description": this.emptyText
62071
+ }
62072
+ })])]), !this.tree && this.page && condition && h(_components_Apages__WEBPACK_IMPORTED_MODULE_7__["default"], {
62073
+ "attrs": {
62074
+ "total": Number(size)
61642
62075
  },
61643
62076
  "on": {
61644
62077
  "change": this.change
61645
62078
  }
61646
- })]);
62079
+ })])]);
61647
62080
  }
61648
62081
  });
61649
62082
 
@@ -63463,7 +63896,7 @@ exports.quadraticProjectPoint = quadraticProjectPoint;
63463
63896
  // ESM COMPAT FLAG
63464
63897
  __webpack_require__.r(__webpack_exports__);
63465
63898
 
63466
- // 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/Btree/index.vue?vue&type=template&id=8c6268f6&scoped=true&
63899
+ // 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/Btree/index.vue?vue&type=template&id=0981a61e&scoped=true&
63467
63900
  var render = function render() {
63468
63901
  var _vm = this,
63469
63902
  _c = _vm._self._c;
@@ -63475,9 +63908,23 @@ var render = function render() {
63475
63908
  expression: "loading"
63476
63909
  }],
63477
63910
  staticClass: "b-tree"
63478
- }, [_c('el-tree', {
63911
+ }, [_vm.filter ? _c('el-input', {
63912
+ staticClass: "filter",
63913
+ attrs: {
63914
+ "size": "small",
63915
+ "placeholder": "输入关键字进行过滤"
63916
+ },
63917
+ model: {
63918
+ value: _vm.context,
63919
+ callback: function ($$v) {
63920
+ _vm.context = $$v;
63921
+ },
63922
+ expression: "context"
63923
+ }
63924
+ }) : _vm._e(), _c('el-tree', {
63479
63925
  ref: "bTree",
63480
63926
  attrs: {
63927
+ "accordion": _vm.accordion,
63481
63928
  "show-checkbox": _vm.showCheckbox,
63482
63929
  "check-strictly": _vm.checkStrictly,
63483
63930
  "node-key": _vm.nodeKey,
@@ -63513,7 +63960,7 @@ var render = function render() {
63513
63960
  };
63514
63961
  var staticRenderFns = [];
63515
63962
 
63516
- // CONCATENATED MODULE: ./src/components/Btree/index.vue?vue&type=template&id=8c6268f6&scoped=true&
63963
+ // CONCATENATED MODULE: ./src/components/Btree/index.vue?vue&type=template&id=0981a61e&scoped=true&
63517
63964
 
63518
63965
  // 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/Btree/index.vue?vue&type=script&lang=js&
63519
63966
  /* harmony default export */ var Btreevue_type_script_lang_js_ = ({
@@ -63523,6 +63970,14 @@ var staticRenderFns = [];
63523
63970
  type: Boolean,
63524
63971
  default: () => false
63525
63972
  },
63973
+ accordion: {
63974
+ type: Boolean,
63975
+ default: () => false
63976
+ },
63977
+ filter: {
63978
+ type: Boolean,
63979
+ default: () => true
63980
+ },
63526
63981
  showCheckbox: {
63527
63982
  type: Boolean,
63528
63983
  default: () => true
@@ -63584,7 +64039,8 @@ var staticRenderFns = [];
63584
64039
  },
63585
64040
  halfCheckedKeys: [],
63586
64041
  checkedKeys: [],
63587
- selectedRow: {}
64042
+ selectedRow: {},
64043
+ context: ''
63588
64044
  };
63589
64045
  },
63590
64046
  watch: {
@@ -63593,6 +64049,9 @@ var staticRenderFns = [];
63593
64049
  },
63594
64050
  defaultCheckedKeys() {
63595
64051
  this.create();
64052
+ },
64053
+ context(value) {
64054
+ this.$refs['bTree'].filter(value);
63596
64055
  }
63597
64056
  },
63598
64057
  mounted() {
@@ -63602,6 +64061,10 @@ var staticRenderFns = [];
63602
64061
  this.update();
63603
64062
  },
63604
64063
  methods: {
64064
+ search(value, data) {
64065
+ if (!value) return true;
64066
+ return data[this.labelKey].indexOf(value) != -1;
64067
+ },
63605
64068
  create() {
63606
64069
  this.checkedKeys = this.defaultCheckedKeys.filter(a => a != 0);
63607
64070
  this.$nextTick(() => {
@@ -63647,8 +64110,8 @@ var staticRenderFns = [];
63647
64110
  });
63648
64111
  // CONCATENATED MODULE: ./src/components/Btree/index.vue?vue&type=script&lang=js&
63649
64112
  /* harmony default export */ var components_Btreevue_type_script_lang_js_ = (Btreevue_type_script_lang_js_);
63650
- // EXTERNAL MODULE: ./src/components/Btree/index.vue?vue&type=style&index=0&id=8c6268f6&prod&scoped=true&lang=css&
63651
- var Btreevue_type_style_index_0_id_8c6268f6_prod_scoped_true_lang_css_ = __webpack_require__("f8b1");
64113
+ // EXTERNAL MODULE: ./src/components/Btree/index.vue?vue&type=style&index=0&id=0981a61e&prod&scoped=true&lang=css&
64114
+ var Btreevue_type_style_index_0_id_0981a61e_prod_scoped_true_lang_css_ = __webpack_require__("a749");
63652
64115
 
63653
64116
  // EXTERNAL MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/runtime/componentNormalizer.js
63654
64117
  var componentNormalizer = __webpack_require__("e607");
@@ -63668,7 +64131,7 @@ var component = Object(componentNormalizer["a" /* default */])(
63668
64131
  staticRenderFns,
63669
64132
  false,
63670
64133
  null,
63671
- "8c6268f6",
64134
+ "0981a61e",
63672
64135
  null
63673
64136
 
63674
64137
  )
@@ -126939,6 +127402,17 @@ function layout(gridModel, axisModel, opt) {
126939
127402
 
126940
127403
  exports.layout = layout;
126941
127404
 
127405
+ /***/ }),
127406
+
127407
+ /***/ "a749":
127408
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
127409
+
127410
+ "use strict";
127411
+ /* 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_0981a61e_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("5bf5");
127412
+ /* 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_0981a61e_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_0981a61e_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
127413
+ /* unused harmony reexport * */
127414
+
127415
+
126942
127416
  /***/ }),
126943
127417
 
126944
127418
  /***/ "a777":
@@ -131216,7 +131690,7 @@ __webpack_require__.r(__webpack_exports__);
131216
131690
  submit = null,
131217
131691
  cancel = null
131218
131692
  } = this.$listeners;
131219
- return h("keep-alive", [h("div", {
131693
+ return h("div", {
131220
131694
  "class": !this.inline ? this.search ? 'a-form' : 'a-from vertical' : 'a-form',
131221
131695
  "style": {
131222
131696
  padding: this.margin
@@ -131306,7 +131780,7 @@ __webpack_require__.r(__webpack_exports__);
131306
131780
  "on": {
131307
131781
  "click": this.cancel
131308
131782
  }
131309
- }, [this.cancelText])])])])])]);
131783
+ }, [this.cancelText])])])])]);
131310
131784
  }
131311
131785
  });
131312
131786
 
@@ -132449,13 +132923,6 @@ exports.estimateLabelUnionRect = estimateLabelUnionRect;
132449
132923
 
132450
132924
  /***/ }),
132451
132925
 
132452
- /***/ "b33c":
132453
- /***/ (function(module, exports, __webpack_require__) {
132454
-
132455
- // extracted by mini-css-extract-plugin
132456
-
132457
- /***/ }),
132458
-
132459
132926
  /***/ "b349":
132460
132927
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
132461
132928
 
@@ -132488,14 +132955,15 @@ __webpack_require__.r(__webpack_exports__);
132488
132955
  cache: {
132489
132956
  type: Boolean,
132490
132957
  default: () => false
132491
- },
132492
- cacheNumber: {
132493
- type: Number,
132494
- default: () => 100
132495
132958
  }
132496
132959
  },
132497
132960
  render() {
132498
132961
  const h = arguments[0];
132962
+ const {
132963
+ include = null,
132964
+ exclude = null,
132965
+ max = 1000
132966
+ } = this.$props;
132499
132967
  return h("div", {
132500
132968
  "class": "a-router-view"
132501
132969
  }, [this.transition ? h("transition", {
@@ -132506,21 +132974,17 @@ __webpack_require__.r(__webpack_exports__);
132506
132974
  }
132507
132975
  }, [this.cache ? h("keep-alive", {
132508
132976
  "attrs": {
132509
- "max": this.cacheNumber
132977
+ "include": include,
132978
+ "exclude": exclude,
132979
+ "max": max
132510
132980
  }
132511
- }, [h("router-view", {
132512
- "key": this.key
132513
- })]) : h("router-view", {
132514
- "key": this.key
132515
- })]) : h("div", [this.cache ? h("keep-alive", {
132981
+ }, [h("router-view")]) : h("router-view")]) : h("div", [this.cache ? h("keep-alive", {
132516
132982
  "attrs": {
132517
- "max": this.cacheNumber
132983
+ "include": include,
132984
+ "exclude": exclude,
132985
+ "max": max
132518
132986
  }
132519
- }, [h("router-view", {
132520
- "key": this.key
132521
- })]) : h("router-view", {
132522
- "key": this.key
132523
- })])]);
132987
+ }, [h("router-view")]) : h("router-view")])]);
132524
132988
  }
132525
132989
  });
132526
132990
 
@@ -133380,7 +133844,7 @@ __webpack_require__.r(__webpack_exports__);
133380
133844
  reject,
133381
133845
  cancel
133382
133846
  } = this.$listeners;
133383
- return h("keep-alive", [h("div", {
133847
+ return h("div", {
133384
133848
  "class": !this.inline ? 'a-f-editor vertical' : 'a-f-editor',
133385
133849
  "style": {
133386
133850
  padding: this.margin
@@ -133443,7 +133907,7 @@ __webpack_require__.r(__webpack_exports__);
133443
133907
  "on": {
133444
133908
  "click": this.cancel
133445
133909
  }
133446
- }, [this.cancelText])])])])])])]);
133910
+ }, [this.cancelText])])])])])]);
133447
133911
  }
133448
133912
  });
133449
133913
 
@@ -133830,7 +134294,7 @@ __webpack_require__.r(__webpack_exports__);
133830
134294
  dragstart(a) {
133831
134295
  if (this.draggable) {
133832
134296
  a.dataTransfer.setData(this.dragType, this.id);
133833
- this.$store.commit('changeDragId', this.id);
134297
+ this.$store.commit('setDragId', this.id);
133834
134298
  this.$emit('dragstart', a);
133835
134299
  }
133836
134300
  },
@@ -135855,8 +136319,8 @@ __webpack_require__.r(__webpack_exports__);
135855
136319
  this.$emit('search', formatParams);
135856
136320
  },
135857
136321
  select(items = []) {
135858
- this.$store.commit('changeSelectedRows', items);
135859
- this.$store.commit('changeSelectedKeys', items.map(a => a[this.rowKey]));
136322
+ this.$store.commit('setSelectedRows', items);
136323
+ this.$store.commit('setSelectedKeys', items.map(a => a[this.rowKey]));
135860
136324
  this.$emit('select', {
135861
136325
  rows: items,
135862
136326
  keys: items.map(a => a[this.rowKey])
@@ -135873,7 +136337,7 @@ __webpack_require__.r(__webpack_exports__);
135873
136337
  page: 1,
135874
136338
  size: 10
135875
136339
  }) {
135876
- this.$store.commit('changePageParams', pages);
136340
+ this.$store.commit('setPageParams', pages);
135877
136341
  this.$emit('change', pages);
135878
136342
  this.search(pages);
135879
136343
  },
@@ -135971,7 +136435,7 @@ __webpack_require__.r(__webpack_exports__);
135971
136435
  search = null
135972
136436
  } = this;
135973
136437
  const condition = data.length > 0;
135974
- return h("keep-alive", [h("div", {
136438
+ return h("div", {
135975
136439
  "style": {
135976
136440
  padding: this.margin
135977
136441
  }
@@ -136063,7 +136527,7 @@ __webpack_require__.r(__webpack_exports__);
136063
136527
  "on": {
136064
136528
  "change": this.change
136065
136529
  }
136066
- })])])]);
136530
+ })])]);
136067
136531
  }
136068
136532
  });
136069
136533
 
@@ -147277,7 +147741,7 @@ __webpack_require__.r(__webpack_exports__);
147277
147741
  const {
147278
147742
  ...props
147279
147743
  } = this.$attrs;
147280
- return this.list.length > 0 && h("keep-alive", [h("div", {
147744
+ return this.list.length > 0 && h("div", {
147281
147745
  "class": "a-tags"
147282
147746
  }, [h("AscrollBox", [h("div", {
147283
147747
  "attrs": {
@@ -147300,7 +147764,7 @@ __webpack_require__.r(__webpack_exports__);
147300
147764
  "props": {
147301
147765
  ...props
147302
147766
  }
147303
- }, [a.rander ? () => a.rander(a) : a.text]))])])])]);
147767
+ }, [a.rander ? () => a.rander(a) : a.text]))])])]);
147304
147768
  }
147305
147769
  });
147306
147770
 
@@ -147575,7 +148039,7 @@ module.exports = _default;
147575
148039
  // ESM COMPAT FLAG
147576
148040
  __webpack_require__.r(__webpack_exports__);
147577
148041
 
147578
- // 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/Atree/index.vue?vue&type=template&id=ed84b344&scoped=true&
148042
+ // 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/Atree/index.vue?vue&type=template&id=446b4709&scoped=true&
147579
148043
  var render = function render() {
147580
148044
  var _vm = this,
147581
148045
  _c = _vm._self._c;
@@ -147587,9 +148051,23 @@ var render = function render() {
147587
148051
  expression: "loading"
147588
148052
  }],
147589
148053
  staticClass: "a-tree"
147590
- }, [_vm.horizontal ? _c('el-tree', {
148054
+ }, [_vm.filter ? _c('el-input', {
148055
+ staticClass: "filter",
148056
+ attrs: {
148057
+ "size": "small",
148058
+ "placeholder": "输入关键字进行过滤"
148059
+ },
148060
+ model: {
148061
+ value: _vm.context,
148062
+ callback: function ($$v) {
148063
+ _vm.context = $$v;
148064
+ },
148065
+ expression: "context"
148066
+ }
148067
+ }) : _vm._e(), _vm.horizontal ? _c('el-tree', {
147591
148068
  ref: "aTree",
147592
148069
  attrs: {
148070
+ "accordion": _vm.accordion,
147593
148071
  "show-checkbox": _vm.showCheckbox,
147594
148072
  "check-strictly": _vm.checkStrictly,
147595
148073
  "iconClass": _vm.iconClass != '' ? _vm.iconClass : '',
@@ -147602,7 +148080,8 @@ var render = function render() {
147602
148080
  "check-on-click-node": _vm.checkOnClickNode,
147603
148081
  "auto-expand-parent": _vm.autoExpandParent,
147604
148082
  "default-expanded-keys": _vm.checkedKeys,
147605
- "draggable": _vm.draggable
148083
+ "draggable": _vm.draggable,
148084
+ "filter-node-method": _vm.search
147606
148085
  },
147607
148086
  on: {
147608
148087
  "node-click": _vm.nodeClick,
@@ -147613,6 +148092,7 @@ var render = function render() {
147613
148092
  }) : _c('el-tree', {
147614
148093
  ref: "aTree",
147615
148094
  attrs: {
148095
+ "accordion": _vm.accordion,
147616
148096
  "show-checkbox": _vm.showCheckbox,
147617
148097
  "check-strictly": _vm.checkStrictly,
147618
148098
  "iconClass": _vm.iconClass != '' ? _vm.iconClass : '',
@@ -147624,7 +148104,8 @@ var render = function render() {
147624
148104
  "check-on-click-node": _vm.checkOnClickNode,
147625
148105
  "auto-expand-parent": _vm.autoExpandParent,
147626
148106
  "default-expanded-keys": _vm.checkedKeys,
147627
- "draggable": _vm.draggable
148107
+ "draggable": _vm.draggable,
148108
+ "filter-node-method": _vm.search
147628
148109
  },
147629
148110
  on: {
147630
148111
  "node-click": _vm.nodeClick,
@@ -147636,7 +148117,7 @@ var render = function render() {
147636
148117
  };
147637
148118
  var staticRenderFns = [];
147638
148119
 
147639
- // CONCATENATED MODULE: ./src/components/Atree/index.vue?vue&type=template&id=ed84b344&scoped=true&
148120
+ // CONCATENATED MODULE: ./src/components/Atree/index.vue?vue&type=template&id=446b4709&scoped=true&
147640
148121
 
147641
148122
  // 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/Atree/index.vue?vue&type=script&lang=js&
147642
148123
  /* harmony default export */ var Atreevue_type_script_lang_js_ = ({
@@ -147646,6 +148127,14 @@ var staticRenderFns = [];
147646
148127
  type: Boolean,
147647
148128
  default: () => false
147648
148129
  },
148130
+ accordion: {
148131
+ type: Boolean,
148132
+ default: () => false
148133
+ },
148134
+ filter: {
148135
+ type: Boolean,
148136
+ default: () => true
148137
+ },
147649
148138
  showCheckbox: {
147650
148139
  type: Boolean,
147651
148140
  default: () => true
@@ -147715,7 +148204,8 @@ var staticRenderFns = [];
147715
148204
  },
147716
148205
  halfCheckedKeys: [],
147717
148206
  checkedKeys: [],
147718
- selectedRow: {}
148207
+ selectedRow: {},
148208
+ context: ''
147719
148209
  };
147720
148210
  },
147721
148211
  watch: {
@@ -147724,6 +148214,9 @@ var staticRenderFns = [];
147724
148214
  },
147725
148215
  defaultCheckedKeys() {
147726
148216
  this.create();
148217
+ },
148218
+ context(value) {
148219
+ this.$refs['aTree'].filter(value);
147727
148220
  }
147728
148221
  },
147729
148222
  mounted() {
@@ -147733,6 +148226,10 @@ var staticRenderFns = [];
147733
148226
  this.update();
147734
148227
  },
147735
148228
  methods: {
148229
+ search(value, data) {
148230
+ if (!value) return true;
148231
+ return data[this.labelKey].indexOf(value) != -1;
148232
+ },
147736
148233
  format(h, {
147737
148234
  node,
147738
148235
  data,
@@ -147793,8 +148290,8 @@ var staticRenderFns = [];
147793
148290
  });
147794
148291
  // CONCATENATED MODULE: ./src/components/Atree/index.vue?vue&type=script&lang=js&
147795
148292
  /* harmony default export */ var components_Atreevue_type_script_lang_js_ = (Atreevue_type_script_lang_js_);
147796
- // EXTERNAL MODULE: ./src/components/Atree/index.vue?vue&type=style&index=0&id=ed84b344&prod&scoped=true&lang=css&
147797
- var Atreevue_type_style_index_0_id_ed84b344_prod_scoped_true_lang_css_ = __webpack_require__("0634");
148293
+ // EXTERNAL MODULE: ./src/components/Atree/index.vue?vue&type=style&index=0&id=446b4709&prod&scoped=true&lang=css&
148294
+ var Atreevue_type_style_index_0_id_446b4709_prod_scoped_true_lang_css_ = __webpack_require__("5934");
147798
148295
 
147799
148296
  // EXTERNAL MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/runtime/componentNormalizer.js
147800
148297
  var componentNormalizer = __webpack_require__("e607");
@@ -147814,7 +148311,7 @@ var component = Object(componentNormalizer["a" /* default */])(
147814
148311
  staticRenderFns,
147815
148312
  false,
147816
148313
  null,
147817
- "ed84b344",
148314
+ "446b4709",
147818
148315
  null
147819
148316
 
147820
148317
  )
@@ -150397,13 +150894,6 @@ exports.circularLayout = circularLayout;
150397
150894
 
150398
150895
  /***/ }),
150399
150896
 
150400
- /***/ "d63c":
150401
- /***/ (function(module, exports, __webpack_require__) {
150402
-
150403
- // extracted by mini-css-extract-plugin
150404
-
150405
- /***/ }),
150406
-
150407
150897
  /***/ "d67c":
150408
150898
  /***/ (function(module, exports, __webpack_require__) {
150409
150899
 
@@ -156096,17 +156586,6 @@ const Aecharts = a => Promise.resolve(/* AMD require */).then(function() { var _
156096
156586
  }
156097
156587
  });
156098
156588
 
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
156589
  /***/ }),
156111
156590
 
156112
156591
  /***/ "dff3":
@@ -157425,190 +157904,6 @@ function normalizeComponent(
157425
157904
  }
157426
157905
 
157427
157906
 
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
157907
  /***/ }),
157613
157908
 
157614
157909
  /***/ "e615":
@@ -158073,6 +158368,13 @@ module.exports = _default;
158073
158368
 
158074
158369
  /***/ }),
158075
158370
 
158371
+ /***/ "e6e6":
158372
+ /***/ (function(module, exports, __webpack_require__) {
158373
+
158374
+ // extracted by mini-css-extract-plugin
158375
+
158376
+ /***/ }),
158377
+
158076
158378
  /***/ "e720":
158077
158379
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
158078
158380
 
@@ -158095,14 +158397,14 @@ __webpack_require__.r(__webpack_exports__);
158095
158397
  type: String,
158096
158398
  default: () => '600px'
158097
158399
  },
158400
+ check: {
158401
+ type: Boolean,
158402
+ default: () => true
158403
+ },
158098
158404
  height: {
158099
158405
  type: String,
158100
158406
  default: () => '72vh'
158101
158407
  },
158102
- verify: {
158103
- type: Boolean,
158104
- default: () => true
158105
- },
158106
158408
  loading: {
158107
158409
  type: Boolean,
158108
158410
  default: () => false
@@ -158145,6 +158447,7 @@ __webpack_require__.r(__webpack_exports__);
158145
158447
  },
158146
158448
  methods: {
158147
158449
  format() {
158450
+ if (this.check == false) return true;
158148
158451
  let data = [];
158149
158452
  let pass = true;
158150
158453
  let elements = this.$slots.default;
@@ -158161,7 +158464,7 @@ __webpack_require__.r(__webpack_exports__);
158161
158464
  }
158162
158465
  });
158163
158466
  })(elements);
158164
- if (this.verify && pass == false) return false;
158467
+ if (pass == false) return false;
158165
158468
  let params = data.length && data.length > 0 ? data.length && data.length > 1 ? data : data[0] : null;
158166
158469
  return params;
158167
158470
  },
@@ -159522,7 +159825,7 @@ __webpack_require__.r(__webpack_exports__);
159522
159825
  "attrs": {
159523
159826
  "type": type,
159524
159827
  "size": size,
159525
- "disabled": disabled || selectedKeys == 0
159828
+ "disabled": disabled || selectedKeys.length == 0
159526
159829
  },
159527
159830
  "on": {
159528
159831
  "click": e => this.select(a, e)
@@ -159537,7 +159840,7 @@ __webpack_require__.r(__webpack_exports__);
159537
159840
  "attrs": {
159538
159841
  "type": "danger",
159539
159842
  "size": size,
159540
- "disabled": disabled || selectedKeys == 0
159843
+ "disabled": disabled || selectedKeys.length == 0
159541
159844
  },
159542
159845
  "on": {
159543
159846
  "click": e => this.select(a, e)
@@ -159552,7 +159855,7 @@ __webpack_require__.r(__webpack_exports__);
159552
159855
  "attrs": {
159553
159856
  "type": "danger",
159554
159857
  "size": size,
159555
- "disabled": disabled || selectedKeys == 0
159858
+ "disabled": disabled || selectedKeys.length == 0
159556
159859
  },
159557
159860
  "on": {
159558
159861
  "click": e => this.select(a, e)
@@ -159630,6 +159933,13 @@ __webpack_require__.r(__webpack_exports__);
159630
159933
 
159631
159934
  /***/ }),
159632
159935
 
159936
+ /***/ "e95a":
159937
+ /***/ (function(module, exports, __webpack_require__) {
159938
+
159939
+ // extracted by mini-css-extract-plugin
159940
+
159941
+ /***/ }),
159942
+
159633
159943
  /***/ "e9e0":
159634
159944
  /***/ (function(module, exports, __webpack_require__) {
159635
159945
 
@@ -160299,6 +160609,13 @@ module.exports = _default;
160299
160609
 
160300
160610
  /***/ }),
160301
160611
 
160612
+ /***/ "ebb9":
160613
+ /***/ (function(module, exports, __webpack_require__) {
160614
+
160615
+ // extracted by mini-css-extract-plugin
160616
+
160617
+ /***/ }),
160618
+
160302
160619
  /***/ "ec73":
160303
160620
  /***/ (function(module, exports, __webpack_require__) {
160304
160621
 
@@ -162166,7 +162483,7 @@ __webpack_require__.r(__webpack_exports__);
162166
162483
  dragstart(a) {
162167
162484
  if (this.draggable) {
162168
162485
  a.dataTransfer.setData(this.dragType, this.id);
162169
- this.$store.commit('changeDragId', this.id);
162486
+ this.$store.commit('setDragId', this.id);
162170
162487
  this.$emit('dragstart', a);
162171
162488
  }
162172
162489
  },
@@ -162209,7 +162526,7 @@ __webpack_require__.r(__webpack_exports__);
162209
162526
  this.animate(draging, dragPostion);
162210
162527
  this.animate(droping, dropPostion);
162211
162528
  }
162212
- this.$store.commit('changeDropId', this.id);
162529
+ this.$store.commit('setDropId', this.id);
162213
162530
  this.$emit('drop', a);
162214
162531
  }
162215
162532
  },
@@ -163676,8 +163993,6 @@ var map = {
163676
163993
  "./Aeditor/QuillEditor/index.vue": "8958",
163677
163994
  "./Aeditor/WangEditor/index.vue": "3302",
163678
163995
  "./Aplayer/index.vue": "1c4e",
163679
- "./Atable/Actions/index.vue": "e611",
163680
- "./Atable/index.vue": "ffd4",
163681
163996
  "./Atree/index.vue": "ce34",
163682
163997
  "./Aupload/File/index.vue": "3a9a",
163683
163998
  "./Aupload/Icon/index.vue": "7d0e",
@@ -165138,17 +165453,6 @@ Clip.prototype = {
165138
165453
  var _default = Clip;
165139
165454
  module.exports = _default;
165140
165455
 
165141
- /***/ }),
165142
-
165143
- /***/ "f8b1":
165144
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
165145
-
165146
- "use strict";
165147
- /* 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_8c6268f6_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("731e");
165148
- /* 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_8c6268f6_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_8c6268f6_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
165149
- /* unused harmony reexport * */
165150
-
165151
-
165152
165456
  /***/ }),
165153
165457
 
165154
165458
  /***/ "f8d0":
@@ -166877,34 +167181,22 @@ __webpack_require__.r(__webpack_exports__);
166877
167181
  if (Object.keys(this.config).length > 0) {
166878
167182
  // 格式化属性为模糊查询属性
166879
167183
  for (let a in this.config) {
166880
- if (this.config[a] != '' && this.config[a].like && this.form[a].trim() != '' && this.form[a].trim() != null && this.form[a].trim() != undefined) {
166881
- if (this.config[a].like == 'left') data[a] = '%' + this.form[a].trim();
166882
- if (this.config[a].like == 'right') data[a] = this.form[a].trim() + '%';else data[a] = '%' + this.form[a].trim() + '%';
167184
+ if (this.config[a] != '' && this.config[a].like && this.form[a] != '' && this.form[a] != null && this.form[a] != undefined) {
167185
+ if (this.config[a].like == 'left') data[a] = '%' + this.form[a];
167186
+ if (this.config[a].like == 'right') data[a] = this.form[a] + '%';else data[a] = '%' + this.form[a] + '%';
166883
167187
  } else {
166884
167188
  if (this.config[a] != '' && (this.config[a].than || this.config[a].range || this.config[a].scope)) {
166885
- data[`${a}LE`] = this.form[`${a}LE`].trim();
166886
- data[`${a}GE`] = this.form[`${a}GE`].trim();
166887
- } 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();
167189
+ data[`${a}LE`] = this.form[`${a}LE`];
167190
+ data[`${a}GE`] = this.form[`${a}GE`];
167191
+ } else if (this.form[a].includes(' 00:00:00')) data[a] = '%' + this.form[a].split(' 00:00:00')[0] + '%';else data[a] = this.form[a];
166888
167192
  }
166889
167193
  }
166890
167194
  }
166891
167195
  if (pass) {
166892
167196
  let result = this.filter(data);
166893
- const {
166894
- formParams,
166895
- pageParams
166896
- } = this.$store.state;
166897
- this.$store.commit('changeFormParams', result); // 添加查询参数
166898
- this.$store.commit('changePageParams', {
166899
- ...pageParams,
166900
- page: 1
166901
- }); // 重置分页参数
166902
167197
  this.$nextTick(() => {
166903
- let change = false;
166904
- Object.keys(result).forEach(a => result[a] != formParams[a] && (change = true));
166905
- if (change) this.$emit('submit', {
167198
+ this.$emit('submit', {
166906
167199
  ...result,
166907
- ...pageParams,
166908
167200
  page: 1
166909
167201
  }); // 派发事件并重置当前分页
166910
167202
  return result;
@@ -166917,15 +167209,6 @@ __webpack_require__.r(__webpack_exports__);
166917
167209
  let pass = !this.check; // 判断是否是空表单
166918
167210
  for (let a in this.form) if (this.form[a] != '') pass = true;
166919
167211
  if (pass) {
166920
- const {
166921
- pageParams
166922
- } = this.$store.state;
166923
- this.$store.commit('changePageParams', {
166924
- ...pageParams,
166925
- page: 1,
166926
- size: 10
166927
- }); // 重置分页参数
166928
- this.$store.commit('changeFormParams', {}); // 重置查询参数
166929
167212
  this.$nextTick(() => {
166930
167213
  for (let a in this.form) this.form[a] = '';
166931
167214
  this.$nextTick(() => this.$emit('cancel', this.form));
@@ -167009,7 +167292,7 @@ __webpack_require__.r(__webpack_exports__);
167009
167292
  submit = null,
167010
167293
  cancel = null
167011
167294
  } = this.$listeners;
167012
- return h("keep-alive", [h("div", {
167295
+ return h("div", {
167013
167296
  "class": "b-f-search",
167014
167297
  "style": {
167015
167298
  padding: this.margin
@@ -167081,7 +167364,7 @@ __webpack_require__.r(__webpack_exports__);
167081
167364
  "on": {
167082
167365
  "click": this.cancel
167083
167366
  }
167084
- }, [this.cancelText])])])])])]);
167367
+ }, [this.cancelText])])])])]);
167085
167368
  }
167086
167369
  });
167087
167370
 
@@ -168884,438 +169167,6 @@ exports.getStroke = getStroke;
168884
169167
  exports.getFill = getFill;
168885
169168
  exports.needDrawText = needDrawText;
168886
169169
 
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
169170
  /***/ })
169320
169171
 
169321
169172
  /******/ });