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.
package/dist/index.umd.js CHANGED
@@ -4291,17 +4291,6 @@ if (!isCallable(store.inspectSource)) {
4291
4291
  module.exports = store.inspectSource;
4292
4292
 
4293
4293
 
4294
- /***/ }),
4295
-
4296
- /***/ "0634":
4297
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
4298
-
4299
- "use strict";
4300
- /* 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");
4301
- /* 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__);
4302
- /* unused harmony reexport * */
4303
-
4304
-
4305
4294
  /***/ }),
4306
4295
 
4307
4296
  /***/ "066e":
@@ -5221,6 +5210,9 @@ __webpack_require__.r(__webpack_exports__);
5221
5210
 
5222
5211
  "use strict";
5223
5212
  __webpack_require__.r(__webpack_exports__);
5213
+ /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("5a1c");
5214
+ /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_0__);
5215
+
5224
5216
  /* harmony default export */ __webpack_exports__["default"] = ({
5225
5217
  name: 'AdragBox',
5226
5218
  props: {
@@ -5228,6 +5220,10 @@ __webpack_require__.r(__webpack_exports__);
5228
5220
  type: String,
5229
5221
  default: () => `id-a-drag-box-${Math.random()}`
5230
5222
  },
5223
+ prompt: {
5224
+ type: String,
5225
+ default: () => '按住进行拖放'
5226
+ },
5231
5227
  dragType: {
5232
5228
  type: String,
5233
5229
  default: () => 'text/plain'
@@ -5235,19 +5231,41 @@ __webpack_require__.r(__webpack_exports__);
5235
5231
  draggable: {
5236
5232
  type: Boolean,
5237
5233
  default: () => true
5234
+ },
5235
+ insert: {
5236
+ type: Boolean,
5237
+ default: () => false
5238
+ },
5239
+ color: {
5240
+ type: String,
5241
+ default: () => ''
5242
+ },
5243
+ padding: {
5244
+ type: String,
5245
+ default: () => '0'
5246
+ },
5247
+ height: {
5248
+ type: String,
5249
+ default: () => '100%'
5250
+ },
5251
+ background: {
5252
+ type: String,
5253
+ default: () => ''
5254
+ },
5255
+ styles: {
5256
+ type: Object,
5257
+ default: () => ({})
5258
+ },
5259
+ loading: {
5260
+ type: Boolean,
5261
+ default: () => false
5238
5262
  }
5239
5263
  },
5240
- created() {
5241
- this.create();
5242
- },
5243
5264
  methods: {
5244
- create() {
5245
- // TODO
5246
- },
5247
5265
  dragstart(a) {
5248
5266
  if (this.draggable) {
5249
5267
  a.dataTransfer.setData(this.dragType, this.id);
5250
- this.$store.commit('changeDragId', this.id);
5268
+ this.$store.commit('setDragId', this.id);
5251
5269
  this.$emit('dragstart', a);
5252
5270
  }
5253
5271
  },
@@ -5273,41 +5291,62 @@ __webpack_require__.r(__webpack_exports__);
5273
5291
  },
5274
5292
  drop(a) {
5275
5293
  a.preventDefault();
5276
- const {
5277
- dragId,
5278
- dropId
5279
- } = this.$store.state;
5280
- this.$emit('drop', {
5281
- dragId,
5282
- dropId
5283
- });
5284
- a.dataTransfer.clearData();
5285
- },
5286
- mousedown(a, b) {
5287
- // TODO
5288
- return;
5294
+ if (this.draggable) {
5295
+ const id = a.dataTransfer.getData(this.dragType);
5296
+ const draging = document.getElementById(id);
5297
+ const droping = document.getElementById(this.id);
5298
+ if (draging !== droping) {
5299
+ let dragPostion = draging.getBoundingClientRect();
5300
+ let dropPostion = droping.getBoundingClientRect();
5301
+ if (this.insert) {
5302
+ if (this.getIndex(draging) > this.getIndex(droping)) {
5303
+ this.$el.parentNode.insertBefore(draging, droping);
5304
+ } else {
5305
+ this.$el.parentNode.insertBefore(draging, droping.nextSibling);
5306
+ }
5307
+ }
5308
+ this.animate(draging, dragPostion);
5309
+ this.animate(droping, dropPostion);
5310
+ }
5311
+ this.$store.commit('setDropId', this.id);
5312
+ this.$emit('drop', a);
5313
+ }
5289
5314
  },
5290
- mouseup(a, b) {
5291
- // TODO
5292
- return;
5315
+ getIndex(element = null) {
5316
+ let index = 0;
5317
+ if (!element) return -1;
5318
+ while (element = element.previousSibling) index++;
5319
+ return index;
5293
5320
  },
5294
- mouseover(a, b) {
5295
- // TODO
5296
- return;
5321
+ animate(element, postion, delay = 300) {
5322
+ let current = element.getBoundingClientRect();
5323
+ let action = (() => {
5324
+ element.style.transition = 'none';
5325
+ element.style.transform = `translate3d(${postion.left - current.left}px, ${postion.top - current.top}px, 0)`;
5326
+ element.offsetWidth;
5327
+ element.style.transition = `all ${delay}ms`;
5328
+ element.style.transform = 'translate3d(0, 0, 0)';
5329
+ })();
5330
+ setTimeout(() => action = null, delay);
5297
5331
  }
5298
5332
  },
5299
5333
  render() {
5300
5334
  const h = arguments[0];
5335
+ const {
5336
+ ...props
5337
+ } = this.$attrs;
5301
5338
  return h("div", {
5302
5339
  "attrs": {
5303
5340
  "id": this.id,
5341
+ "title": this.prompt,
5304
5342
  "draggable": this.draggable
5305
5343
  },
5306
5344
  "class": "a-drag-box",
5345
+ "directives": [{
5346
+ name: "loading",
5347
+ value: this.loading
5348
+ }],
5307
5349
  "on": {
5308
- "mousedown": a => this.mousedown(a, this.id),
5309
- "mouseover": a => this.mouseover(a, this.id),
5310
- "mouseup": a => this.mouseup(a, this.id),
5311
5350
  "dragstart": this.dragstart,
5312
5351
  "dragenter": this.dragenter,
5313
5352
  "dragleave": this.dragleave,
@@ -5315,8 +5354,24 @@ __webpack_require__.r(__webpack_exports__);
5315
5354
  "dragend": this.dragend,
5316
5355
  "drag": this.drag,
5317
5356
  "drop": this.drop
5357
+ },
5358
+ "style": {
5359
+ color: this.color,
5360
+ minHeight: this.height,
5361
+ background: this.background,
5362
+ ...this.styles
5363
+ },
5364
+ "props": {
5365
+ ...props
5318
5366
  }
5319
- }, [this.$slots.default]);
5367
+ }, [h("div", {
5368
+ "class": "a-drag-box-body",
5369
+ "style": {
5370
+ padding: this.padding
5371
+ }
5372
+ }, [h("div", {
5373
+ "class": "custom-body"
5374
+ }, [this.$slots.default])])]);
5320
5375
  }
5321
5376
  });
5322
5377
 
@@ -12732,6 +12787,309 @@ module.exports = _default;
12732
12787
 
12733
12788
  /***/ }),
12734
12789
 
12790
+ /***/ "1a2f":
12791
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
12792
+
12793
+ "use strict";
12794
+ __webpack_require__.r(__webpack_exports__);
12795
+ /* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6aaa");
12796
+ /* 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__);
12797
+ /* harmony import */ var _components_AformItem__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("2234");
12798
+ /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("ebb9");
12799
+ /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_2__);
12800
+
12801
+
12802
+
12803
+ /* harmony default export */ __webpack_exports__["default"] = ({
12804
+ name: 'CfSearch',
12805
+ components: {
12806
+ AformItem: _components_AformItem__WEBPACK_IMPORTED_MODULE_1__["default"]
12807
+ },
12808
+ props: {
12809
+ margin: {
12810
+ type: String,
12811
+ default: () => '0'
12812
+ },
12813
+ size: {
12814
+ type: String,
12815
+ default: () => 'small'
12816
+ },
12817
+ inline: {
12818
+ type: Boolean,
12819
+ default: () => true
12820
+ },
12821
+ cols: {
12822
+ type: String,
12823
+ default: () => '6'
12824
+ },
12825
+ gutter: {
12826
+ type: String,
12827
+ default: () => '10'
12828
+ },
12829
+ labelWidth: {
12830
+ type: String,
12831
+ default: () => 'auto'
12832
+ },
12833
+ labelPosition: {
12834
+ type: String,
12835
+ default: () => 'top'
12836
+ },
12837
+ config: {
12838
+ type: Object,
12839
+ default: () => ({})
12840
+ },
12841
+ values: {
12842
+ type: Object,
12843
+ default: () => ({})
12844
+ },
12845
+ label: {
12846
+ type: Boolean,
12847
+ default: () => true
12848
+ },
12849
+ check: {
12850
+ type: Boolean,
12851
+ default: () => false
12852
+ },
12853
+ loading: {
12854
+ type: Boolean,
12855
+ default: () => false
12856
+ },
12857
+ submitText: {
12858
+ type: String,
12859
+ default: () => '搜索'
12860
+ },
12861
+ cancelText: {
12862
+ type: String,
12863
+ default: () => '重置'
12864
+ }
12865
+ },
12866
+ data() {
12867
+ return {
12868
+ form: {}
12869
+ };
12870
+ },
12871
+ created() {
12872
+ this.create();
12873
+ },
12874
+ mounted() {},
12875
+ destroyed() {
12876
+ this.create = null;
12877
+ this.submit = null;
12878
+ this.cancel = null;
12879
+ this.filter = null;
12880
+ this.result = null;
12881
+ this.prompt = null;
12882
+ this.format = null;
12883
+ },
12884
+ watch: {
12885
+ values() {
12886
+ this.create();
12887
+ }
12888
+ },
12889
+ methods: {
12890
+ create() {
12891
+ // 创建表单
12892
+ if (this.config && Object.keys(this.config).length > 0) {
12893
+ // 格式化表单配置对象(this.config)为数据双向绑定对象
12894
+ let data = {};
12895
+ for (let a in this.config) data[a] = this.config[a].default ? this.config[a].default : '';
12896
+ this.form = data;
12897
+ }
12898
+ },
12899
+ submit(e) {
12900
+ // 提交表单
12901
+ e && e.preventDefault();
12902
+ let pass = !this.check; // 判断是否是空表单
12903
+ for (let a in this.form) if (this.form[a] != '') pass = true;
12904
+ let data = {};
12905
+ if (Object.keys(this.config).length > 0) {
12906
+ // 格式化属性为模糊查询属性
12907
+ for (let a in this.config) {
12908
+ if (this.config[a] != '' && this.config[a].like && this.form[a] != '' && this.form[a] != null && this.form[a] != undefined) {
12909
+ if (this.config[a].like == 'left') data[a] = '%' + this.form[a];
12910
+ if (this.config[a].like == 'right') data[a] = this.form[a] + '%';else data[a] = '%' + this.form[a] + '%';
12911
+ } else {
12912
+ if (this.config[a] != '' && (this.config[a].than || this.config[a].range || this.config[a].scope)) {
12913
+ data[`${a}LE`] = this.form[`${a}LE`];
12914
+ data[`${a}GE`] = this.form[`${a}GE`];
12915
+ } 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];
12916
+ }
12917
+ }
12918
+ }
12919
+ if (pass) {
12920
+ let result = this.filter(data);
12921
+ const {
12922
+ formParams,
12923
+ pageParams
12924
+ } = this.$store.state;
12925
+ this.$store.commit('setFormParams', result); // 添加查询参数
12926
+ this.$store.commit('setPageParams', {
12927
+ ...pageParams,
12928
+ page: 1
12929
+ }); // 重置分页参数
12930
+ this.$nextTick(() => {
12931
+ let change = false;
12932
+ Object.keys(result).forEach(a => result[a] != formParams[a] && (change = true));
12933
+ if (change) this.$emit('submit', {
12934
+ ...result,
12935
+ ...pageParams,
12936
+ page: 1
12937
+ }); // 派发事件并重置当前分页
12938
+ return result;
12939
+ });
12940
+ }
12941
+ },
12942
+ cancel(e) {
12943
+ // 重置表单
12944
+ e && e.preventDefault();
12945
+ let pass = !this.check; // 判断是否是空表单
12946
+ for (let a in this.form) if (this.form[a] != '') pass = true;
12947
+ if (pass) {
12948
+ const {
12949
+ pageParams
12950
+ } = this.$store.state;
12951
+ this.$store.commit('setPageParams', {
12952
+ ...pageParams,
12953
+ page: 1,
12954
+ size: 10
12955
+ }); // 重置分页参数
12956
+ this.$store.commit('setFormParams', {}); // 重置查询参数
12957
+ this.$nextTick(() => {
12958
+ for (let a in this.form) this.form[a] = '';
12959
+ this.$nextTick(() => this.$emit('cancel', this.form));
12960
+ });
12961
+ }
12962
+ },
12963
+ filter(form = {}) {
12964
+ // 过滤空值属性
12965
+ const data = {};
12966
+ for (let a in form) {
12967
+ if (a != undefined && a != 'undefined' && form[a] != '' && form[a] != '%%' && form[a] != 'null' && form[a] != 'undefined' && form[a] != null && form[a] != undefined) {
12968
+ data[a] = form[a];
12969
+ }
12970
+ }
12971
+ return data;
12972
+ },
12973
+ result() {
12974
+ // 返回验证后的表单数据
12975
+ return this.filter(this.form);
12976
+ },
12977
+ prompt(a = {}, index = 0, placeholder = '') {
12978
+ if (Object.keys(a).length > 0 && a.placeholder && a.placeholder.length && a.placeholder.length > 0) return a.placeholder[index];
12979
+ return placeholder;
12980
+ },
12981
+ format(a = {}, field = '', placeholder = '') {
12982
+ const h = this.$createElement;
12983
+ if (Object.keys(a).length > 0) {
12984
+ let config = {
12985
+ size: this.config[a].size ? this.config[a].size : this.size,
12986
+ field: field != '' ? field : `${a}`,
12987
+ disabled: this.loading,
12988
+ form: this.form,
12989
+ ...this.config[a]
12990
+ };
12991
+ if (placeholder != '') return h(_components_AformItem__WEBPACK_IMPORTED_MODULE_1__["default"], {
12992
+ "attrs": {
12993
+ "config": {
12994
+ ...config,
12995
+ placeholder
12996
+ }
12997
+ }
12998
+ });
12999
+ return h(_components_AformItem__WEBPACK_IMPORTED_MODULE_1__["default"], {
13000
+ "attrs": {
13001
+ "config": config
13002
+ }
13003
+ });
13004
+ }
13005
+ }
13006
+ },
13007
+ render() {
13008
+ const h = arguments[0];
13009
+ const {
13010
+ ...props
13011
+ } = this.$attrs;
13012
+ const {
13013
+ submit = null,
13014
+ cancel = null
13015
+ } = this.$listeners;
13016
+ let style = this.cols != '' ? {
13017
+ width: `${100 / this.cols}%`
13018
+ } : {};
13019
+ let label = a => this.label ? this.config[a].text || this.config[a].label || this.config[a].title : '';
13020
+ return h("div", {
13021
+ "class": "c-f-search",
13022
+ "style": {
13023
+ padding: this.margin
13024
+ }
13025
+ }, [h("el-form", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
13026
+ "ref": "form",
13027
+ "attrs": {
13028
+ "size": this.size
13029
+ }
13030
+ }, {
13031
+ "props": {
13032
+ model: this.form,
13033
+ ...props
13034
+ }
13035
+ }, {
13036
+ "attrs": {
13037
+ "labelWidth": this.labelWidth,
13038
+ "labelPosition": this.labelPosition
13039
+ }
13040
+ }]), [h("el-row", {
13041
+ "attrs": {
13042
+ "gutter": Number(this.gutter)
13043
+ }
13044
+ }, [Object.keys(this.config).map((a, b) => h("el-col", {
13045
+ "key": b,
13046
+ "class": "column",
13047
+ "style": style
13048
+ }, [h("el-form-item", {
13049
+ "attrs": {
13050
+ "prop": `${a}`,
13051
+ "label": label(a)
13052
+ }
13053
+ }, [this.config[a].than || this.config[a].range || this.config[a].scope ? h("el-col", {
13054
+ "class": "range-cols"
13055
+ }, [h("el-col", {
13056
+ "attrs": {
13057
+ "span": 12
13058
+ }
13059
+ }, [this.format(a, `${a}LE`, this.prompt(this.config[a], 0, '最高'))]), h("el-col", {
13060
+ "attrs": {
13061
+ "span": 12
13062
+ }
13063
+ }, [this.format(a, `${a}GE`, this.prompt(this.config[a], 1, '最低'))])]) : this.format(a)])])), this.$slots.default, (submit || cancel) && h("el-col", {
13064
+ "key": "action",
13065
+ "class": "action",
13066
+ "style": style
13067
+ }, [h("el-form-item", {
13068
+ "attrs": {
13069
+ "label": this.label ? 'action' : ''
13070
+ }
13071
+ }, [submit && h("el-button", {
13072
+ "attrs": {
13073
+ "disabled": this.loading,
13074
+ "type": "primary"
13075
+ },
13076
+ "on": {
13077
+ "click": this.submit
13078
+ }
13079
+ }, [this.submitText]), cancel && h("el-button", {
13080
+ "attrs": {
13081
+ "disabled": this.loading,
13082
+ "type": "default"
13083
+ },
13084
+ "on": {
13085
+ "click": this.cancel
13086
+ }
13087
+ }, [this.cancelText])])])])])]);
13088
+ }
13089
+ });
13090
+
13091
+ /***/ }),
13092
+
12735
13093
  /***/ "1aa8":
12736
13094
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
12737
13095
 
@@ -12867,6 +13225,7 @@ var map = {
12867
13225
  "./AdragBox": "0a59",
12868
13226
  "./AdragBox/": "0a59",
12869
13227
  "./AdragBox/index": "0a59",
13228
+ "./AdragBox/index.css": "5a1c",
12870
13229
  "./AdragBox/index.js": "0a59",
12871
13230
  "./AdropBox": "b7dd",
12872
13231
  "./AdropBox/": "b7dd",
@@ -13013,6 +13372,11 @@ var map = {
13013
13372
  "./Aform/BfSearch/index": "fc0d",
13014
13373
  "./Aform/BfSearch/index.css": "a261",
13015
13374
  "./Aform/BfSearch/index.js": "fc0d",
13375
+ "./Aform/CfSearch": "1a2f",
13376
+ "./Aform/CfSearch/": "1a2f",
13377
+ "./Aform/CfSearch/index": "1a2f",
13378
+ "./Aform/CfSearch/index.css": "ebb9",
13379
+ "./Aform/CfSearch/index.js": "1a2f",
13016
13380
  "./Aform/index": "aff6",
13017
13381
  "./Aform/index.css": "d397",
13018
13382
  "./Aform/index.js": "aff6",
@@ -13104,16 +13468,9 @@ var map = {
13104
13468
  "./Aswitch/index.js": "02e1",
13105
13469
  "./Atable": "bd9e",
13106
13470
  "./Atable/": "bd9e",
13107
- "./Atable/Actions": "e611",
13108
- "./Atable/Actions/": "e611",
13109
- "./Atable/Actions/index": "e611",
13110
- "./Atable/Actions/index.vue": "e611",
13111
13471
  "./Atable/index": "bd9e",
13112
- "./Atable/index copy": "5e12",
13113
- "./Atable/index copy.js": "5e12",
13114
13472
  "./Atable/index.css": "c089",
13115
13473
  "./Atable/index.js": "bd9e",
13116
- "./Atable/index.vue": "ffd4",
13117
13474
  "./Atabs": "3766",
13118
13475
  "./Atabs/": "3766",
13119
13476
  "./Atabs/index": "3766",
@@ -13203,7 +13560,12 @@ var map = {
13203
13560
  "./Btree/": "9d92",
13204
13561
  "./Btree/index": "9d92",
13205
13562
  "./Btree/index.css": "353a",
13206
- "./Btree/index.vue": "9d92"
13563
+ "./Btree/index.vue": "9d92",
13564
+ "./Ctable": "78ab",
13565
+ "./Ctable/": "78ab",
13566
+ "./Ctable/index": "78ab",
13567
+ "./Ctable/index.css": "e6e6",
13568
+ "./Ctable/index.js": "78ab"
13207
13569
  };
13208
13570
 
13209
13571
 
@@ -13423,7 +13785,7 @@ __webpack_require__.r(__webpack_exports__);
13423
13785
  },
13424
13786
  inline: {
13425
13787
  type: Boolean,
13426
- default: () => true
13788
+ default: () => false
13427
13789
  },
13428
13790
  cols: {
13429
13791
  type: String,
@@ -13472,21 +13834,28 @@ __webpack_require__.r(__webpack_exports__);
13472
13834
  },
13473
13835
  data() {
13474
13836
  return {
13475
- form: {}
13837
+ form: {},
13838
+ height: 0,
13839
+ opened: false
13476
13840
  };
13477
13841
  },
13478
13842
  created() {
13479
13843
  this.create();
13480
13844
  },
13481
- mounted() {},
13845
+ mounted() {
13846
+ this.update();
13847
+ },
13482
13848
  destroyed() {
13483
13849
  this.create = null;
13850
+ this.update = null;
13484
13851
  this.submit = null;
13485
13852
  this.cancel = null;
13486
13853
  this.filter = null;
13487
13854
  this.result = null;
13855
+ this.switch = null;
13488
13856
  this.prompt = null;
13489
13857
  this.format = null;
13858
+ this.output = null;
13490
13859
  },
13491
13860
  watch: {
13492
13861
  values() {
@@ -13503,23 +13872,27 @@ __webpack_require__.r(__webpack_exports__);
13503
13872
  this.form = data;
13504
13873
  }
13505
13874
  },
13875
+ update() {
13876
+ let rows = Math.ceil(Object.keys(this.config).length / this.cols);
13877
+ this.height = this.$el.clientHeight * (rows - 1);
13878
+ },
13506
13879
  submit(e) {
13507
13880
  // 提交表单
13508
13881
  e && e.preventDefault();
13509
13882
  let pass = !this.check; // 判断是否是空表单
13510
- for (let a in this.form) if (this.form[a].trim() != '') pass = true;
13883
+ for (let a in this.form) if (this.form[a] != '') pass = true;
13511
13884
  let data = {};
13512
13885
  if (Object.keys(this.config).length > 0) {
13513
13886
  // 格式化属性为模糊查询属性
13514
13887
  for (let a in this.config) {
13515
- if (this.config[a] != '' && this.config[a].like && this.form[a].trim() != '' && this.form[a].trim() != null && this.form[a].trim() != undefined) {
13516
- if (this.config[a].like == 'left') data[a] = '%' + this.form[a].trim();
13517
- if (this.config[a].like == 'right') data[a] = this.form[a].trim() + '%';else data[a] = '%' + this.form[a].trim() + '%';
13888
+ if (this.config[a] != '' && this.config[a].like && this.form[a] != '' && this.form[a] != null && this.form[a] != undefined) {
13889
+ if (this.config[a].like == 'left') data[a] = '%' + this.form[a];
13890
+ if (this.config[a].like == 'right') data[a] = this.form[a] + '%';else data[a] = '%' + this.form[a] + '%';
13518
13891
  } else {
13519
13892
  if (this.config[a] != '' && (this.config[a].than || this.config[a].range || this.config[a].scope)) {
13520
- data[`${a}LE`] = this.form[`${a}LE`].trim();
13521
- data[`${a}GE`] = this.form[`${a}GE`].trim();
13522
- } 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();
13893
+ data[`${a}LE`] = this.form[`${a}LE`];
13894
+ data[`${a}GE`] = this.form[`${a}GE`];
13895
+ } 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];
13523
13896
  }
13524
13897
  }
13525
13898
  }
@@ -13529,8 +13902,8 @@ __webpack_require__.r(__webpack_exports__);
13529
13902
  formParams,
13530
13903
  pageParams
13531
13904
  } = this.$store.state;
13532
- this.$store.commit('changeFormParams', result); // 添加查询参数
13533
- this.$store.commit('changePageParams', {
13905
+ this.$store.commit('setFormParams', result); // 添加查询参数
13906
+ this.$store.commit('setPageParams', {
13534
13907
  ...pageParams,
13535
13908
  page: 1
13536
13909
  }); // 重置分页参数
@@ -13555,12 +13928,12 @@ __webpack_require__.r(__webpack_exports__);
13555
13928
  const {
13556
13929
  pageParams
13557
13930
  } = this.$store.state;
13558
- this.$store.commit('changePageParams', {
13931
+ this.$store.commit('setPageParams', {
13559
13932
  ...pageParams,
13560
13933
  page: 1,
13561
13934
  size: 10
13562
13935
  }); // 重置分页参数
13563
- this.$store.commit('changeFormParams', {}); // 重置查询参数
13936
+ this.$store.commit('setFormParams', {}); // 重置查询参数
13564
13937
  this.$nextTick(() => {
13565
13938
  for (let a in this.form) this.form[a] = '';
13566
13939
  this.$nextTick(() => this.$emit('cancel', this.form));
@@ -13568,19 +13941,18 @@ __webpack_require__.r(__webpack_exports__);
13568
13941
  }
13569
13942
  },
13570
13943
  filter(form = {}) {
13571
- // 过滤空值属性
13572
13944
  const data = {};
13573
13945
  for (let a in form) {
13574
- if (a != undefined && a != 'undefined' && form[a] != '' && form[a] != '%%' && form[a] != 'null' && form[a] != 'undefined' && form[a] != null && form[a] != undefined) {
13575
- data[a] = form[a];
13576
- }
13946
+ if (form[a] != '' && form[a] != '%%' && form[a] != 'null' && form[a] != 'undefined' && form[a] != null && form[a] != undefined) data[a] = form[a];
13577
13947
  }
13578
13948
  return data;
13579
13949
  },
13580
13950
  result() {
13581
- // 返回验证后的表单数据
13582
13951
  return this.filter(this.form);
13583
13952
  },
13953
+ switch() {
13954
+ this.opened = !this.opened;
13955
+ },
13584
13956
  prompt(a = {}, index = 0, placeholder = '') {
13585
13957
  if (Object.keys(a).length > 0 && a.placeholder && a.placeholder.length && a.placeholder.length > 0) return a.placeholder[index];
13586
13958
  return placeholder;
@@ -13609,6 +13981,31 @@ __webpack_require__.r(__webpack_exports__);
13609
13981
  }
13610
13982
  });
13611
13983
  }
13984
+ },
13985
+ output(a, b) {
13986
+ const h = this.$createElement;
13987
+ let style = this.cols != '' ? {
13988
+ width: `${100 / this.cols}%`
13989
+ } : {};
13990
+ return h("el-col", {
13991
+ "key": b,
13992
+ "style": style
13993
+ }, [h("el-form-item", {
13994
+ "attrs": {
13995
+ "prop": `${a}`,
13996
+ "label": this.label ? this.config[a]['text'] : ''
13997
+ }
13998
+ }, [this.config[a].than || this.config[a].range || this.config[a].scope ? h("el-col", {
13999
+ "class": "range-cols"
14000
+ }, [h("el-col", {
14001
+ "attrs": {
14002
+ "span": 12
14003
+ }
14004
+ }, [this.format(a, `${a}LE`, this.prompt(this.config[a], 0, '最高'))]), h("el-col", {
14005
+ "attrs": {
14006
+ "span": 12
14007
+ }
14008
+ }, [this.format(a, `${a}GE`, this.prompt(this.config[a], 1, '最低'))])]) : this.format(a)])]);
13612
14009
  }
13613
14010
  },
13614
14011
  render() {
@@ -13620,11 +14017,7 @@ __webpack_require__.r(__webpack_exports__);
13620
14017
  submit = null,
13621
14018
  cancel = null
13622
14019
  } = this.$listeners;
13623
- let style = this.cols != '' ? {
13624
- width: `${100 / this.cols}%`
13625
- } : {};
13626
- let label = a => this.label ? this.config[a].text || this.config[a].label || this.config[a].title : '';
13627
- return h("keep-alive", [h("div", {
14020
+ return h("div", {
13628
14021
  "class": "a-f-search",
13629
14022
  "style": {
13630
14023
  padding: this.margin
@@ -13632,7 +14025,8 @@ __webpack_require__.r(__webpack_exports__);
13632
14025
  }, [h("el-form", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
13633
14026
  "ref": "form",
13634
14027
  "attrs": {
13635
- "size": this.size
14028
+ "size": this.size,
14029
+ "inline": this.inline
13636
14030
  }
13637
14031
  }, {
13638
14032
  "props": {
@@ -13644,38 +14038,42 @@ __webpack_require__.r(__webpack_exports__);
13644
14038
  "labelWidth": this.labelWidth,
13645
14039
  "labelPosition": this.labelPosition
13646
14040
  }
13647
- }]), [h("el-row", {
14041
+ }]), [h("div", {
14042
+ "class": "column"
14043
+ }, [h("el-row", {
13648
14044
  "attrs": {
13649
14045
  "gutter": Number(this.gutter)
13650
- }
13651
- }, [Object.keys(this.config).map((a, b) => h("el-col", {
13652
- "key": b,
13653
- "class": "column",
13654
- "style": style
13655
- }, [h("el-form-item", {
14046
+ },
14047
+ "class": "main-row"
14048
+ }, [Object.keys(this.config).map((a, b) => b < this.cols && this.output(a, b))]), h("el-row", {
13656
14049
  "attrs": {
13657
- "prop": `${a}`,
13658
- "label": label(a)
14050
+ "gutter": Number(this.gutter)
14051
+ },
14052
+ "class": "fold-row",
14053
+ "style": {
14054
+ height: this.opened ? `${this.height}px` : '0'
13659
14055
  }
13660
- }, [this.config[a].than || this.config[a].range || this.config[a].scope ? h("el-col", {
13661
- "class": "range-cols"
13662
- }, [h("el-col", {
13663
- "attrs": {
13664
- "span": 12
14056
+ }, [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", {
14057
+ "class": "action",
14058
+ "style": {
14059
+ paddingLeft: `${this.gutter}px`
13665
14060
  }
13666
- }, [this.format(a, `${a}LE`, this.prompt(this.config[a], 0, '最高'))]), h("el-col", {
14061
+ }, [h("el-form-item", {
13667
14062
  "attrs": {
13668
- "span": 12
14063
+ "label": "action"
13669
14064
  }
13670
- }, [this.format(a, `${a}GE`, this.prompt(this.config[a], 1, '最低'))])]) : this.format(a)])])), this.$slots.default, (submit || cancel) && h("el-col", {
13671
- "key": "action",
13672
- "class": "action",
13673
- "style": style
13674
- }, [h("el-form-item", {
14065
+ }, [Object.keys(this.config).length > this.cols && h("el-button", {
13675
14066
  "attrs": {
13676
- "label": this.label ? 'action' : ''
14067
+ "disabled": this.loading,
14068
+ "type": "text"
14069
+ },
14070
+ "class": "collapse-button",
14071
+ "on": {
14072
+ "click": this.switch
13677
14073
  }
13678
- }, [submit && h("el-button", {
14074
+ }, [h("i", {
14075
+ "class": `el-icon-arrow-${this.opened ? 'up' : 'down'}`
14076
+ }), this.opened ? '收起' : '展开']), submit && h("el-button", {
13679
14077
  "attrs": {
13680
14078
  "disabled": this.loading,
13681
14079
  "type": "primary"
@@ -13691,7 +14089,7 @@ __webpack_require__.r(__webpack_exports__);
13691
14089
  "on": {
13692
14090
  "click": this.cancel
13693
14091
  }
13694
- }, [this.cancelText])])])])])])]);
14092
+ }, [this.cancelText])])])])]);
13695
14093
  }
13696
14094
  });
13697
14095
 
@@ -16123,11 +16521,8 @@ __webpack_require__.r(__webpack_exports__);
16123
16521
  };
16124
16522
  },
16125
16523
  watch: {
16126
- page(page) {
16127
- this.config.page = page;
16128
- },
16129
- size(size) {
16130
- this.config.size = size;
16524
+ pages(pages = this.pages) {
16525
+ this.config = pages;
16131
16526
  }
16132
16527
  },
16133
16528
  methods: {
@@ -16145,8 +16540,6 @@ __webpack_require__.r(__webpack_exports__);
16145
16540
  render() {
16146
16541
  const h = arguments[0];
16147
16542
  const {
16148
- page = null,
16149
- size = null,
16150
16543
  ...props
16151
16544
  } = this.$attrs;
16152
16545
  return h("div", {
@@ -16154,8 +16547,8 @@ __webpack_require__.r(__webpack_exports__);
16154
16547
  }, [h("el-pagination", {
16155
16548
  "attrs": {
16156
16549
  "small": this.small,
16157
- "current-page": page || this.config.page,
16158
- "page-size": size || this.config.size,
16550
+ "current-page": this.config.page,
16551
+ "page-size": this.config.size,
16159
16552
  "page-sizes": this.pageSizes,
16160
16553
  "layout": this.complete ? 'total, sizes, prev, pager, next, jumper' : 'prev, pager, next',
16161
16554
  "total": this.total,
@@ -35747,6 +36140,7 @@ var map = {
35747
36140
  "./Aform/AfEditor/index.js": "b550",
35748
36141
  "./Aform/AfSearch/index.js": "1b78",
35749
36142
  "./Aform/BfSearch/index.js": "fc0d",
36143
+ "./Aform/CfSearch/index.js": "1a2f",
35750
36144
  "./Aform/index.js": "aff6",
35751
36145
  "./AformItem/index.js": "2234",
35752
36146
  "./AiconSelect/index.js": "db3d",
@@ -35776,7 +36170,8 @@ var map = {
35776
36170
  "./Bcard/index.js": "4df8",
35777
36171
  "./BformItem/index.js": "5c61",
35778
36172
  "./Bmap/index.js": "e579",
35779
- "./Btable/index.js": "98ee"
36173
+ "./Btable/index.js": "98ee",
36174
+ "./Ctable/index.js": "78ab"
35780
36175
  };
35781
36176
 
35782
36177
 
@@ -36150,6 +36545,17 @@ exports.scale = scale;
36150
36545
  exports.invert = invert;
36151
36546
  exports.clone = clone;
36152
36547
 
36548
+ /***/ }),
36549
+
36550
+ /***/ "5934":
36551
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
36552
+
36553
+ "use strict";
36554
+ /* 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");
36555
+ /* 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__);
36556
+ /* unused harmony reexport * */
36557
+
36558
+
36153
36559
  /***/ }),
36154
36560
 
36155
36561
  /***/ "5974":
@@ -36235,6 +36641,13 @@ module.exports = _default;
36235
36641
 
36236
36642
  /***/ }),
36237
36643
 
36644
+ /***/ "5a1c":
36645
+ /***/ (function(module, exports, __webpack_require__) {
36646
+
36647
+ // extracted by mini-css-extract-plugin
36648
+
36649
+ /***/ }),
36650
+
36238
36651
  /***/ "5aac":
36239
36652
  /***/ (function(module, exports) {
36240
36653
 
@@ -36756,6 +37169,13 @@ module.exports = _default;
36756
37169
 
36757
37170
  /***/ }),
36758
37171
 
37172
+ /***/ "5bf5":
37173
+ /***/ (function(module, exports, __webpack_require__) {
37174
+
37175
+ // extracted by mini-css-extract-plugin
37176
+
37177
+ /***/ }),
37178
+
36759
37179
  /***/ "5c61":
36760
37180
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
36761
37181
 
@@ -38977,494 +39397,6 @@ exports.count = count;
38977
39397
 
38978
39398
  /***/ }),
38979
39399
 
38980
- /***/ "5e12":
38981
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
38982
-
38983
- "use strict";
38984
- __webpack_require__.r(__webpack_exports__);
38985
- /* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6aaa");
38986
- /* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
38987
- /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("c089");
38988
- /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_1__);
38989
-
38990
-
38991
-
38992
- const AfSearch = a => Promise.resolve(/* AMD require */).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__("1b78")]; (a).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(__webpack_require__.oe);
38993
- const BfSearch = a => Promise.resolve(/* AMD require */).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__("fc0d")]; (a).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(__webpack_require__.oe);
38994
- const Aactions = a => Promise.resolve(/* AMD require */).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__("e94c")]; (a).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(__webpack_require__.oe);
38995
- const Aenume = a => Promise.resolve(/* AMD require */).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__("6cc8")]; (a).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(__webpack_require__.oe);
38996
- const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__("2234")]; (a).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(__webpack_require__.oe);
38997
- const Apages = a => Promise.resolve(/* AMD require */).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__("1d0c")]; (a).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(__webpack_require__.oe);
38998
- const Aempty = a => Promise.resolve(/* AMD require */).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__("bd5e")]; (a).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(__webpack_require__.oe);
38999
- /* harmony default export */ __webpack_exports__["default"] = ({
39000
- name: 'AtableBakup',
39001
- props: {
39002
- margin: {
39003
- type: String,
39004
- default: () => '0'
39005
- },
39006
- rowKey: {
39007
- type: String,
39008
- default: () => 'id'
39009
- },
39010
- size: {
39011
- type: String,
39012
- default: () => 'medium'
39013
- },
39014
- selectionWidth: {
39015
- type: String,
39016
- default: () => '50'
39017
- },
39018
- sort: {
39019
- type: Boolean,
39020
- default: () => true
39021
- },
39022
- sortTitle: {
39023
- type: String,
39024
- default: () => '#'
39025
- },
39026
- sortWidth: {
39027
- type: String,
39028
- default: () => '50'
39029
- },
39030
- border: {
39031
- type: Boolean,
39032
- default: () => false
39033
- },
39034
- stripe: {
39035
- type: Boolean,
39036
- default: () => false
39037
- },
39038
- loading: {
39039
- type: Boolean,
39040
- default: () => false
39041
- },
39042
- column: {
39043
- type: Array,
39044
- default: () => []
39045
- },
39046
- record: {
39047
- type: Object,
39048
- default: () => ({})
39049
- },
39050
- maxHeight: {
39051
- type: String,
39052
- default: () => '480'
39053
- },
39054
- elementLoadingText: {
39055
- type: String,
39056
- default: () => ''
39057
- },
39058
- elementLoadingSpinner: {
39059
- type: String,
39060
- default: () => 'el-icon-loading'
39061
- },
39062
- elementLoadingBackground: {
39063
- type: String,
39064
- default: () => 'rgba(0, 0, 0, 0.04)'
39065
- },
39066
- emptyText: {
39067
- type: String,
39068
- default: () => ''
39069
- },
39070
- showHeader: {
39071
- type: Boolean,
39072
- default: () => true
39073
- },
39074
- selection: {
39075
- type: Boolean,
39076
- default: () => false
39077
- },
39078
- showOverflowTooltip: {
39079
- type: Boolean,
39080
- default: () => true
39081
- },
39082
- tooltipEffect: {
39083
- type: String,
39084
- default: () => 'light'
39085
- },
39086
- showSummary: {
39087
- type: Boolean,
39088
- default: () => false
39089
- },
39090
- sumText: {
39091
- type: String,
39092
- default: () => '合计'
39093
- },
39094
- sortable: {
39095
- type: Boolean,
39096
- default: () => false
39097
- },
39098
- defaultSort: {
39099
- type: Object,
39100
- default: () => ({
39101
- prop: 'date',
39102
- order: 'descending'
39103
- })
39104
- },
39105
- tree: {
39106
- type: Boolean,
39107
- default: () => false
39108
- },
39109
- defaultExpandAll: {
39110
- type: Boolean,
39111
- default: () => true
39112
- },
39113
- treeProps: {
39114
- type: Object,
39115
- default: () => ({
39116
- children: 'children',
39117
- hasChildren: 'hasChildren'
39118
- })
39119
- },
39120
- highlightCurrentRow: {
39121
- type: Boolean,
39122
- default: () => false
39123
- },
39124
- actionWidth: {
39125
- type: String,
39126
- default: () => '180px'
39127
- },
39128
- actionTitle: {
39129
- type: String,
39130
- default: () => '操作'
39131
- },
39132
- page: {
39133
- type: Boolean,
39134
- default: () => true
39135
- }
39136
- },
39137
- mounted() {
39138
- this.$refs['a-table'].bodyWrapper.addEventListener('wheel', this.scroll);
39139
- },
39140
- beforeDestroy() {
39141
- this.$refs['a-table'].bodyWrapper.removeEventListener('wheel', this.scroll);
39142
- },
39143
- destroyed() {
39144
- this.create = null;
39145
- this.search = null;
39146
- this.select = null;
39147
- this.choose = null;
39148
- this.change = null;
39149
- this.format = null;
39150
- this.scroll = null;
39151
- },
39152
- methods: {
39153
- create(column = []) {
39154
- const h = this.$createElement;
39155
- const actionColumn = () => {
39156
- let data = [];
39157
- const {
39158
- review = null,
39159
- modify = null,
39160
- update = null,
39161
- handle = null,
39162
- remove = null
39163
- } = this.$listeners;
39164
- if (review || modify || update || handle || remove || this.$listeners.delete || this.$listeners.export) {
39165
- data = [{
39166
- label: this.actionTitle,
39167
- fixed: 'right',
39168
- align: 'center',
39169
- width: this.actionWidth,
39170
- render: item => h("div", {
39171
- "class": "action"
39172
- }, [review && h("i", {
39173
- "class": "el-icon-view",
39174
- "on": {
39175
- "click": () => review(item)
39176
- }
39177
- }), modify && h("i", {
39178
- "class": "el-icon-edit",
39179
- "on": {
39180
- "click": () => modify(item)
39181
- }
39182
- }), update && h("i", {
39183
- "class": "el-icon-edit",
39184
- "on": {
39185
- "click": () => update(item)
39186
- }
39187
- }), handle && h("i", {
39188
- "class": "el-icon-edit",
39189
- "on": {
39190
- "click": () => handle(item)
39191
- }
39192
- }), remove && h("Apopconfirm", {
39193
- "on": {
39194
- "submit": () => remove(item)
39195
- }
39196
- }), this.$listeners.delete && h("Apopconfirm", {
39197
- "on": {
39198
- "submit": () => this.$listeners.delete(item)
39199
- }
39200
- }), this.$listeners.export && h("i", {
39201
- "class": "el-icon-download",
39202
- "on": {
39203
- "click": () => this.$listeners.export(item)
39204
- }
39205
- })])
39206
- }];
39207
- }
39208
- return data;
39209
- };
39210
- const columnConfig = [...column, ...actionColumn()];
39211
- return columnConfig.map((a, b) => {
39212
- if (a && Object.keys(a).length > 0) {
39213
- let {
39214
- header = null,
39215
- ...item
39216
- } = a;
39217
- let label = a.text || a.label || a.title;
39218
- return h("el-table-column", {
39219
- "key": b,
39220
- "attrs": {
39221
- "scoped-slot": true,
39222
- "prop": a.field,
39223
- "sortable": a.field ? a.sortable ? a.sortable : this.sortable : false,
39224
- "showOverflowTooltip": a.showOverflowTooltip ? a.showOverflowTooltip : this.showOverflowTooltip,
39225
- "formatter": a.formatter ? (e, f, g, h) => a.formatter(e, h) : a.render ? (e, f, g, h) => a.render(e, h) : a.type ? (e, f, g, h) => this.format(a, b, e, h) : null
39226
- },
39227
- "props": {
39228
- ...a
39229
- }
39230
- }, [h("template", {
39231
- "slot": "header"
39232
- }, [header ? () => header(item) : label && label != '' && label.length && label.length > 8 ? h("el-tooltip", {
39233
- "attrs": {
39234
- "content": label,
39235
- "placement": "top"
39236
- }
39237
- }, [h("span", {
39238
- "attrs": {
39239
- "title": label
39240
- }
39241
- }, [label])]) : h("span", {
39242
- "attrs": {
39243
- "title": label
39244
- }
39245
- }, [label])])]);
39246
- }
39247
- });
39248
- },
39249
- search(params = {}) {
39250
- const {
39251
- pageParams = {},
39252
- formParams = {}
39253
- } = this.$store.state;
39254
- const formatParams = Object.assign({}, pageParams, formParams, params);
39255
- this.$emit('search', formatParams);
39256
- },
39257
- select(items = []) {
39258
- this.$store.commit('changeSelectedRows', items);
39259
- this.$store.commit('changeSelectedKeys', items.map(a => a[this.rowKey]));
39260
- this.$emit('select', {
39261
- rows: items,
39262
- keys: items.map(a => a[this.rowKey])
39263
- });
39264
- },
39265
- choose(row, column, event) {
39266
- this.$emit('choose', {
39267
- row,
39268
- column,
39269
- event
39270
- });
39271
- },
39272
- change(pages = {
39273
- page: 1,
39274
- size: 10
39275
- }) {
39276
- this.$store.commit('changePageParams', pages);
39277
- this.$emit('change', pages);
39278
- this.search(pages);
39279
- },
39280
- format({
39281
- type = '',
39282
- name = '',
39283
- data = [],
39284
- text = '',
39285
- label = '',
39286
- title = '',
39287
- field = '',
39288
- dicts = [],
39289
- ...props
39290
- }, colIndex, item, rowIndex) {
39291
- const h = this.$createElement;
39292
- if (type == 'enume' || type == 'enumerate') {
39293
- if (field != '') return h(Aenume, _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
39294
- "key": colIndex + '-' + rowIndex,
39295
- "attrs": {
39296
- "field": field,
39297
- "data": dicts.length > 0 ? dicts : data
39298
- }
39299
- }, props, {
39300
- "model": {
39301
- value: item[field],
39302
- callback: $$v => {
39303
- this.$set(item, field, $$v);
39304
- }
39305
- }
39306
- }]));
39307
- return h(Aenume, _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
39308
- "key": colIndex + '-' + rowIndex,
39309
- "attrs": {
39310
- "field": name,
39311
- "data": dicts.length > 0 ? dicts : data
39312
- }
39313
- }, props, {
39314
- "model": {
39315
- value: item[name],
39316
- callback: $$v => {
39317
- this.$set(item, name, $$v);
39318
- }
39319
- }
39320
- }]));
39321
- }
39322
- return h(AformItem, {
39323
- "key": colIndex + '-' + rowIndex,
39324
- "attrs": {
39325
- "config": {
39326
- type,
39327
- form: item,
39328
- dicts: dicts.length > 0 ? dicts : data,
39329
- field: field != '' ? field : name != '' ? name : '',
39330
- label: text != '' ? text : label != '' ? label : title != '' ? title : '无栏目名称',
39331
- ...props
39332
- }
39333
- }
39334
- });
39335
- },
39336
- scroll(a) {
39337
- let container = this.$refs['a-table'].bodyWrapper;
39338
- if (container) {
39339
- if (container.scrollHeight > container.clientHeight) {
39340
- a.preventDefault();
39341
- container.scrollTop += a.deltaY;
39342
- } else {
39343
- if (container.scrollWidth > container.clientWidth) {
39344
- a.preventDefault();
39345
- container.scrollLeft += a.deltaY;
39346
- }
39347
- }
39348
- this.$emit('scroll', a);
39349
- }
39350
- }
39351
- },
39352
- render() {
39353
- const h = arguments[0];
39354
- const {
39355
- formCols = '6',
39356
- searchVerify = true,
39357
- searchConfig = {},
39358
- actionConfig = []
39359
- } = this.$attrs;
39360
- const {
39361
- ...r
39362
- } = this.record;
39363
- const data = r.data ? r.data : r.list ? r.list : r.rows ? r.rows : r.record ? r.record : r.records ? r.records : [];
39364
- const size = r.size ? r.size : r.total ? r.total : r.count ? r.count : 0;
39365
- const {
39366
- pageParams = {}
39367
- } = this.$store.state;
39368
- const {
39369
- loading = false,
39370
- search = null
39371
- } = this;
39372
- const condition = data.length > 0;
39373
- return h("keep-alive", [h("div", {
39374
- "style": {
39375
- padding: this.margin
39376
- }
39377
- }, [Object.keys(searchConfig).length > 0 && (Object.keys(searchConfig).length < 5 ? h(AfSearch, {
39378
- "attrs": {
39379
- "cols": formCols,
39380
- "verify": searchVerify,
39381
- "config": searchConfig,
39382
- "loading": loading
39383
- },
39384
- "on": {
39385
- "submit": search,
39386
- "cancel": search
39387
- }
39388
- }) : h(BfSearch, {
39389
- "attrs": {
39390
- "cols": formCols,
39391
- "verify": searchVerify,
39392
- "config": searchConfig,
39393
- "loading": loading
39394
- },
39395
- "on": {
39396
- "submit": search,
39397
- "cancel": search
39398
- }
39399
- })), actionConfig.length > 0 && h(Aactions, {
39400
- "attrs": {
39401
- "config": actionConfig,
39402
- "disabled": loading
39403
- }
39404
- }), h("div", {
39405
- "class": this.border ? 'a-table' : 'a-table border'
39406
- }, [h("el-table", {
39407
- "ref": "a-table",
39408
- "attrs": {
39409
- "data": data,
39410
- "size": this.size,
39411
- "border": this.border,
39412
- "stripe": this.stripe,
39413
- "row-key": this.rowKey,
39414
- "max-height": this.maxHeight,
39415
- "element-loading-text": this.elementLoadingText,
39416
- "element-loading-spinner": this.elementLoadingSpinner,
39417
- "element-loading-background": this.elementLoadingBackground,
39418
- "show-header": this.showHeader,
39419
- "default-sort": this.defaultSort,
39420
- "show-summary": this.showSummary,
39421
- "tooltip-effect": this.tooltipEffect,
39422
- "default-expand-all": this.defaultExpandAll,
39423
- "tree-props": this.tree ? this.treeProps : {},
39424
- "highlight-current-row": this.highlightCurrentRow
39425
- },
39426
- "directives": [{
39427
- name: "loading",
39428
- value: loading
39429
- }],
39430
- "on": {
39431
- "row-click": this.choose,
39432
- "selection-change": this.select
39433
- }
39434
- }, [condition && (this.selection || this.$listeners.select) && h("el-table-column", {
39435
- "attrs": {
39436
- "fixed": "left",
39437
- "type": "selection",
39438
- "width": this.selectionWidth
39439
- }
39440
- }), condition && this.sort && h("el-table-column", {
39441
- "attrs": {
39442
- "fixed": "left",
39443
- "type": "index",
39444
- "width": this.sortWidth,
39445
- "label": this.sortTitle
39446
- }
39447
- }), condition && this.create(this.column), h("div", {
39448
- "slot": "empty",
39449
- "class": "empty"
39450
- }, [loading ? '' : h(Aempty, {
39451
- "attrs": {
39452
- "description": this.emptyText
39453
- }
39454
- })])]), !this.tree && this.page && condition && h(Apages, {
39455
- "attrs": {
39456
- "total": Number(size),
39457
- "pages": pageParams
39458
- },
39459
- "on": {
39460
- "change": this.change
39461
- }
39462
- })])])]);
39463
- }
39464
- });
39465
-
39466
- /***/ }),
39467
-
39468
39400
  /***/ "5eae":
39469
39401
  /***/ (function(module, exports, __webpack_require__) {
39470
39402
 
@@ -39871,7 +39803,7 @@ __webpack_require__.r(__webpack_exports__);
39871
39803
  } = this.$attrs;
39872
39804
  return h("div", {
39873
39805
  "class": this.mode != 'horizontal' ? 'a-menu' : 'a-menu horizontal'
39874
- }, [h("keep-alive", [h("el-menu", {
39806
+ }, [h("el-menu", {
39875
39807
  "attrs": {
39876
39808
  "mode": this.mode,
39877
39809
  "default-active": this.active,
@@ -39893,7 +39825,7 @@ __webpack_require__.r(__webpack_exports__);
39893
39825
  "props": {
39894
39826
  ...props
39895
39827
  }
39896
- }, [this.data && this.data.length > 0 && this.data.map((a, b) => this.format(a, b))])])]);
39828
+ }, [this.data && this.data.length > 0 && this.data.map((a, b) => this.format(a, b))])]);
39897
39829
  }
39898
39830
  });
39899
39831
 
@@ -40655,17 +40587,20 @@ __webpack_require__.r(__webpack_exports__);
40655
40587
  return YYYY + '-' + MM + '-' + DD + ' ' + H + ':' + M + ':' + S;
40656
40588
  },
40657
40589
  select(items) {
40658
- this.$store.commit('changeSelectedRows', items);
40659
- this.$store.commit('changeSelectedKeys', items.map(a => a[this.rowKey]));
40590
+ this.$store.commit('setSelectedRows', items);
40591
+ this.$store.commit('setSelectedKeys', items.map(a => a[this.rowKey]));
40660
40592
  this.$emit('select', {
40661
40593
  rows: items,
40662
40594
  keys: items.map(a => a[this.rowKey])
40663
40595
  });
40664
40596
  },
40665
- change(pages) {
40666
- this.$store.commit('changePageParams', pages);
40597
+ change(pages = {
40598
+ page: 1,
40599
+ size: 10
40600
+ }) {
40601
+ this.$store.commit('setPageParams', pages);
40667
40602
  this.$emit('change', pages);
40668
- this.search();
40603
+ this.search(pages);
40669
40604
  },
40670
40605
  format({
40671
40606
  label,
@@ -47848,13 +47783,6 @@ module.exports = _default;
47848
47783
 
47849
47784
  /***/ }),
47850
47785
 
47851
- /***/ "731e":
47852
- /***/ (function(module, exports, __webpack_require__) {
47853
-
47854
- // extracted by mini-css-extract-plugin
47855
-
47856
- /***/ }),
47857
-
47858
47786
  /***/ "734e":
47859
47787
  /***/ (function(module, exports) {
47860
47788
 
@@ -51046,6 +50974,387 @@ module.exports = _default;
51046
50974
 
51047
50975
  /***/ }),
51048
50976
 
50977
+ /***/ "78ab":
50978
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
50979
+
50980
+ "use strict";
50981
+ __webpack_require__.r(__webpack_exports__);
50982
+ /* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6aaa");
50983
+ /* 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__);
50984
+ /* harmony import */ var _components_Aenume__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("6cc8");
50985
+ /* harmony import */ var _components_AformItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("2234");
50986
+ /* harmony import */ var _components_Apages__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("1d0c");
50987
+ /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("e6e6");
50988
+ /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_4__);
50989
+
50990
+
50991
+
50992
+
50993
+
50994
+ /* harmony default export */ __webpack_exports__["default"] = ({
50995
+ name: 'Ctable',
50996
+ components: {
50997
+ Aenume: _components_Aenume__WEBPACK_IMPORTED_MODULE_1__["default"],
50998
+ AformItem: _components_AformItem__WEBPACK_IMPORTED_MODULE_2__["default"],
50999
+ Apages: _components_Apages__WEBPACK_IMPORTED_MODULE_3__["default"]
51000
+ },
51001
+ props: {
51002
+ rowKey: {
51003
+ type: String,
51004
+ default: () => 'id'
51005
+ },
51006
+ size: {
51007
+ type: String,
51008
+ default: () => 'medium'
51009
+ },
51010
+ sort: {
51011
+ type: Boolean,
51012
+ default: () => true
51013
+ },
51014
+ border: {
51015
+ type: Boolean,
51016
+ default: () => false
51017
+ },
51018
+ stripe: {
51019
+ type: Boolean,
51020
+ default: () => false
51021
+ },
51022
+ column: {
51023
+ type: Array,
51024
+ default: () => []
51025
+ },
51026
+ record: {
51027
+ type: Object,
51028
+ default: () => ({})
51029
+ },
51030
+ params: {
51031
+ type: Object,
51032
+ default: () => ({})
51033
+ },
51034
+ selection: {
51035
+ type: Boolean,
51036
+ default: () => false
51037
+ },
51038
+ showOverflowTooltip: {
51039
+ type: Boolean,
51040
+ default: () => true
51041
+ },
51042
+ sortable: {
51043
+ type: Boolean,
51044
+ default: () => false
51045
+ },
51046
+ defaultSort: {
51047
+ type: Object,
51048
+ default: () => ({
51049
+ prop: 'date',
51050
+ order: 'descending'
51051
+ })
51052
+ },
51053
+ tree: {
51054
+ type: Boolean,
51055
+ default: () => false
51056
+ },
51057
+ defaultExpandAll: {
51058
+ type: Boolean,
51059
+ default: () => true
51060
+ },
51061
+ treeProps: {
51062
+ type: Object,
51063
+ default: () => ({
51064
+ children: 'children',
51065
+ hasChildren: 'hasChildren'
51066
+ })
51067
+ },
51068
+ actionWidth: {
51069
+ type: String,
51070
+ default: () => '180px'
51071
+ },
51072
+ actionTitle: {
51073
+ type: String,
51074
+ default: () => '操作'
51075
+ },
51076
+ formatTime: {
51077
+ type: Boolean,
51078
+ default: () => true
51079
+ },
51080
+ preview: {
51081
+ type: Boolean,
51082
+ default: () => false
51083
+ },
51084
+ page: {
51085
+ type: Boolean,
51086
+ default: () => true
51087
+ }
51088
+ },
51089
+ data() {
51090
+ return {
51091
+ loading: false
51092
+ };
51093
+ },
51094
+ created() {
51095
+ this.search();
51096
+ this.create();
51097
+ },
51098
+ mounted() {
51099
+ this.$refs['c-table'].bodyWrapper.addEventListener('scroll', this.scroll);
51100
+ },
51101
+ methods: {
51102
+ create(column = []) {
51103
+ const h = this.$createElement;
51104
+ if (this.formatTime && this.column.length > 0) {
51105
+ for (let a in this.column) {
51106
+ if (this.column[a].field && this.column[a].field.toLowerCase().includes('time')) {
51107
+ this.column[a].render = item => item[this.column[a].field] != '' && this.filter(item[this.column[a].field]);
51108
+ }
51109
+ }
51110
+ }
51111
+ const actionColumn = () => {
51112
+ let data = [];
51113
+ const {
51114
+ review,
51115
+ modify,
51116
+ update,
51117
+ handle,
51118
+ remove
51119
+ } = this.$listeners;
51120
+ if (review || modify || update || handle || remove || this.$listeners.delete || this.$listeners.export) {
51121
+ data = [{
51122
+ label: this.actionTitle,
51123
+ fixed: 'right',
51124
+ align: 'center',
51125
+ width: this.actionWidth,
51126
+ render: item => h("div", {
51127
+ "class": "action"
51128
+ }, [review && h("i", {
51129
+ "class": "el-icon-view",
51130
+ "on": {
51131
+ "click": () => review(item)
51132
+ }
51133
+ }), modify && h("i", {
51134
+ "class": "el-icon-edit",
51135
+ "on": {
51136
+ "click": () => modify(item)
51137
+ }
51138
+ }), update && h("i", {
51139
+ "class": "el-icon-edit",
51140
+ "on": {
51141
+ "click": () => update(item)
51142
+ }
51143
+ }), handle && h("i", {
51144
+ "class": "el-icon-edit",
51145
+ "on": {
51146
+ "click": () => handle(item)
51147
+ }
51148
+ }), remove && h("Apopconfirm", {
51149
+ "on": {
51150
+ "submit": () => remove(item)
51151
+ }
51152
+ }), this.$listeners.delete && h("Apopconfirm", {
51153
+ "on": {
51154
+ "submit": () => this.$listeners.delete(item)
51155
+ }
51156
+ }), this.$listeners.export && h("i", {
51157
+ "class": "el-icon-download",
51158
+ "on": {
51159
+ "click": () => this.$listeners.export(item)
51160
+ }
51161
+ })])
51162
+ }];
51163
+ }
51164
+ return data;
51165
+ };
51166
+ const columnConfig = [...column, ...actionColumn()];
51167
+ return columnConfig.map((a, b) => {
51168
+ if (a) return h("el-table-column", {
51169
+ "key": b,
51170
+ "attrs": {
51171
+ "prop": a.field,
51172
+ "showOverflowTooltip": this.showOverflowTooltip,
51173
+ "sortable": a.field ? a.sortable ? a.sortable : this.sortable : false,
51174
+ "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
51175
+ },
51176
+ "props": {
51177
+ ...a
51178
+ }
51179
+ });
51180
+ });
51181
+ },
51182
+ search() {
51183
+ const {
51184
+ pageParams,
51185
+ formParams
51186
+ } = this.$store.state;
51187
+ const params = Object.assign({}, pageParams, formParams, this.params);
51188
+ this.$emit('search', params);
51189
+ },
51190
+ filter(timeStamp) {
51191
+ if (!typeof timeStamp == Number) return '';
51192
+ let time = new Date(timeStamp);
51193
+ const YYYY = time.getFullYear();
51194
+ const MM = time.getMonth() + 1 < 10 ? '0' + (time.getMonth() + 1) : time.getMonth() + 1;
51195
+ const DD = time.getDate() < 10 ? '0' + time.getDate() : time.getDate();
51196
+ const H = time.getHours() < 10 ? '0' + time.getHours() : time.getHours();
51197
+ const M = time.getMinutes() < 10 ? '0' + time.getMinutes() : time.getMinutes();
51198
+ const S = time.getSeconds() < 10 ? '0' + time.getSeconds() : time.getSeconds();
51199
+ return YYYY + '-' + MM + '-' + DD + ' ' + H + ':' + M + ':' + S;
51200
+ },
51201
+ select(items) {
51202
+ this.$store.commit('setSelectedRows', items);
51203
+ this.$store.commit('setSelectedKeys', items.map(a => a[this.rowKey]));
51204
+ this.$emit('select', {
51205
+ rows: items,
51206
+ keys: items.map(a => a[this.rowKey])
51207
+ });
51208
+ },
51209
+ choose(row, column, event) {
51210
+ this.$emit('choose', {
51211
+ row,
51212
+ column,
51213
+ event
51214
+ });
51215
+ },
51216
+ change(pages = {
51217
+ page: 1,
51218
+ size: 10
51219
+ }) {
51220
+ this.$store.commit('setPageParams', pages);
51221
+ this.$emit('change', pages);
51222
+ this.search(pages);
51223
+ },
51224
+ switch(name = '', symbol = '_') {
51225
+ return name.replace(/([A-Z])/g, `${symbol}$1`).toLowerCase();
51226
+ },
51227
+ format({
51228
+ label,
51229
+ field,
51230
+ type,
51231
+ disabled,
51232
+ action = '',
51233
+ path = '',
51234
+ flag = '',
51235
+ ...props
51236
+ }, colIndex, item, rowIndex) {
51237
+ const h = this.$createElement;
51238
+ if (this.preview && (type != 'select' || type != 'enume' || type != 'enumerate')) return h("span", {
51239
+ "key": colIndex + '-' + rowIndex
51240
+ }, [item[field]]);
51241
+ if (type == 'select' || type == 'enume' || type == 'enumerate') {
51242
+ let dicts = [];
51243
+ if (this.optionApi != '' || action != '' || path != '') {
51244
+ let url = action != '' ? action : path != '' ? path : this.optionApi;
51245
+ let params = flag != '' ? {
51246
+ flag: this.switch(flag)
51247
+ } : {
51248
+ field: this.switch(field)
51249
+ };
51250
+ FN.get(url, params).then(({
51251
+ data
51252
+ }) => {
51253
+ if (data && data.length > 0) dicts = data;
51254
+ });
51255
+ }
51256
+ return h(_components_Aenume__WEBPACK_IMPORTED_MODULE_1__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
51257
+ "key": colIndex + '-' + rowIndex,
51258
+ "attrs": {
51259
+ "field": `${field}`,
51260
+ "data": dicts
51261
+ }
51262
+ }, props, {
51263
+ "model": {
51264
+ value: item[field],
51265
+ callback: $$v => {
51266
+ this.$set(item, field, $$v);
51267
+ }
51268
+ }
51269
+ }]));
51270
+ }
51271
+ return h(_components_AformItem__WEBPACK_IMPORTED_MODULE_2__["default"], {
51272
+ "key": colIndex + '-' + rowIndex,
51273
+ "attrs": {
51274
+ "config": {
51275
+ type,
51276
+ form: item,
51277
+ label,
51278
+ field: `${field}`,
51279
+ dicts,
51280
+ table: true,
51281
+ ...props
51282
+ }
51283
+ }
51284
+ });
51285
+ },
51286
+ scroll({
51287
+ target
51288
+ }) {
51289
+ this.$emit('scroll', target);
51290
+ }
51291
+ },
51292
+ render() {
51293
+ const h = arguments[0];
51294
+ const {
51295
+ data = [],
51296
+ size = 0
51297
+ } = this.record;
51298
+ const {
51299
+ pageParams
51300
+ } = this.$store.state;
51301
+ const condition = data && data.length > 0;
51302
+ const {
51303
+ ...props
51304
+ } = this.$attrs;
51305
+ return h("div", {
51306
+ "class": "c-table",
51307
+ "directives": [{
51308
+ name: "loading",
51309
+ value: this.loading
51310
+ }]
51311
+ }, [h("el-table", {
51312
+ "ref": "c-table",
51313
+ "attrs": {
51314
+ "data": data,
51315
+ "size": this.size,
51316
+ "border": this.border,
51317
+ "stripe": this.stripe,
51318
+ "column": this.column,
51319
+ "row-key": this.rowKey,
51320
+ "default-sort": this.defaultSort,
51321
+ "tree-props": this.tree ? this.treeProps : {},
51322
+ "default-expand-all": this.defaultExpandAll
51323
+ },
51324
+ "on": {
51325
+ "row-click": this.choose,
51326
+ "selection-change": this.select
51327
+ },
51328
+ "props": {
51329
+ ...props
51330
+ }
51331
+ }, [condition && this.selection && h("el-table-column", {
51332
+ "attrs": {
51333
+ "fixed": "left",
51334
+ "type": "selection",
51335
+ "width": "50"
51336
+ }
51337
+ }), condition && this.sort && h("el-table-column", {
51338
+ "attrs": {
51339
+ "fixed": "left",
51340
+ "type": "index",
51341
+ "width": "50",
51342
+ "label": "#"
51343
+ }
51344
+ }), condition && this.create(this.column)]), !this.tree && this.page && condition && h(_components_Apages__WEBPACK_IMPORTED_MODULE_3__["default"], {
51345
+ "attrs": {
51346
+ "total": Number(size),
51347
+ "pages": pageParams
51348
+ },
51349
+ "on": {
51350
+ "change": this.change
51351
+ }
51352
+ })]);
51353
+ }
51354
+ });
51355
+
51356
+ /***/ }),
51357
+
51049
51358
  /***/ "78f0":
51050
51359
  /***/ (function(module, exports, __webpack_require__) {
51051
51360
 
@@ -61287,11 +61596,22 @@ __webpack_require__.r(__webpack_exports__);
61287
61596
  __webpack_require__.r(__webpack_exports__);
61288
61597
  /* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6aaa");
61289
61598
  /* 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__);
61290
- /* harmony import */ var _components_Aenume__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("6cc8");
61291
- /* harmony import */ var _components_AformItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("2234");
61292
- /* harmony import */ var _components_Apages__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("1d0c");
61293
- /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("f4d2");
61294
- /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_4__);
61599
+ /* harmony import */ var _components_Aactions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("e94c");
61600
+ /* harmony import */ var _components_Aempty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("bd5e");
61601
+ /* harmony import */ var _components_Aenume__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("6cc8");
61602
+ /* harmony import */ var _components_Aform_AfSearch__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("1b78");
61603
+ /* harmony import */ var _components_Aform_BfSearch__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("fc0d");
61604
+ /* harmony import */ var _components_AformItem__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("2234");
61605
+ /* harmony import */ var _components_Apages__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("1d0c");
61606
+ /* harmony import */ var _components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("2ee7");
61607
+ /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("f4d2");
61608
+ /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_9__);
61609
+
61610
+
61611
+
61612
+
61613
+
61614
+
61295
61615
 
61296
61616
 
61297
61617
 
@@ -61300,11 +61620,20 @@ __webpack_require__.r(__webpack_exports__);
61300
61620
  /* harmony default export */ __webpack_exports__["default"] = ({
61301
61621
  name: 'Btable',
61302
61622
  components: {
61303
- Aenume: _components_Aenume__WEBPACK_IMPORTED_MODULE_1__["default"],
61304
- AformItem: _components_AformItem__WEBPACK_IMPORTED_MODULE_2__["default"],
61305
- Apages: _components_Apages__WEBPACK_IMPORTED_MODULE_3__["default"]
61623
+ Aactions: _components_Aactions__WEBPACK_IMPORTED_MODULE_1__["default"],
61624
+ Aempty: _components_Aempty__WEBPACK_IMPORTED_MODULE_2__["default"],
61625
+ Aenume: _components_Aenume__WEBPACK_IMPORTED_MODULE_3__["default"],
61626
+ AfSearch: _components_Aform_AfSearch__WEBPACK_IMPORTED_MODULE_4__["default"],
61627
+ BfSearch: _components_Aform_BfSearch__WEBPACK_IMPORTED_MODULE_5__["default"],
61628
+ AformItem: _components_AformItem__WEBPACK_IMPORTED_MODULE_6__["default"],
61629
+ Apages: _components_Apages__WEBPACK_IMPORTED_MODULE_7__["default"],
61630
+ Apopconfirm: _components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__["default"]
61306
61631
  },
61307
61632
  props: {
61633
+ margin: {
61634
+ type: String,
61635
+ default: () => '0'
61636
+ },
61308
61637
  rowKey: {
61309
61638
  type: String,
61310
61639
  default: () => 'id'
@@ -61313,10 +61642,22 @@ __webpack_require__.r(__webpack_exports__);
61313
61642
  type: String,
61314
61643
  default: () => 'medium'
61315
61644
  },
61645
+ selectionWidth: {
61646
+ type: String,
61647
+ default: () => '50'
61648
+ },
61316
61649
  sort: {
61317
61650
  type: Boolean,
61318
61651
  default: () => true
61319
61652
  },
61653
+ sortTitle: {
61654
+ type: String,
61655
+ default: () => '#'
61656
+ },
61657
+ sortWidth: {
61658
+ type: String,
61659
+ default: () => '50'
61660
+ },
61320
61661
  border: {
61321
61662
  type: Boolean,
61322
61663
  default: () => false
@@ -61325,6 +61666,10 @@ __webpack_require__.r(__webpack_exports__);
61325
61666
  type: Boolean,
61326
61667
  default: () => false
61327
61668
  },
61669
+ loading: {
61670
+ type: Boolean,
61671
+ default: () => false
61672
+ },
61328
61673
  column: {
61329
61674
  type: Array,
61330
61675
  default: () => []
@@ -61333,18 +61678,50 @@ __webpack_require__.r(__webpack_exports__);
61333
61678
  type: Object,
61334
61679
  default: () => ({})
61335
61680
  },
61336
- params: {
61337
- type: Object,
61338
- default: () => ({})
61681
+ maxHeight: {
61682
+ type: String,
61683
+ default: () => '480'
61684
+ },
61685
+ elementLoadingText: {
61686
+ type: String,
61687
+ default: () => ''
61688
+ },
61689
+ elementLoadingSpinner: {
61690
+ type: String,
61691
+ default: () => 'el-icon-loading'
61692
+ },
61693
+ elementLoadingBackground: {
61694
+ type: String,
61695
+ default: () => 'rgba(0, 0, 0, 0.04)'
61696
+ },
61697
+ emptyText: {
61698
+ type: String,
61699
+ default: () => ''
61700
+ },
61701
+ showHeader: {
61702
+ type: Boolean,
61703
+ default: () => true
61339
61704
  },
61340
61705
  selection: {
61341
61706
  type: Boolean,
61342
- default: () => false
61707
+ default: () => true
61343
61708
  },
61344
61709
  showOverflowTooltip: {
61345
61710
  type: Boolean,
61346
61711
  default: () => true
61347
61712
  },
61713
+ tooltipEffect: {
61714
+ type: String,
61715
+ default: () => 'light'
61716
+ },
61717
+ showSummary: {
61718
+ type: Boolean,
61719
+ default: () => false
61720
+ },
61721
+ sumText: {
61722
+ type: String,
61723
+ default: () => '合计'
61724
+ },
61348
61725
  sortable: {
61349
61726
  type: Boolean,
61350
61727
  default: () => false
@@ -61371,6 +61748,22 @@ __webpack_require__.r(__webpack_exports__);
61371
61748
  hasChildren: 'hasChildren'
61372
61749
  })
61373
61750
  },
61751
+ highlightCurrentRow: {
61752
+ type: Boolean,
61753
+ default: () => false
61754
+ },
61755
+ action: {
61756
+ type: Object,
61757
+ default: () => ({
61758
+ review: null,
61759
+ modify: null,
61760
+ update: null,
61761
+ handle: null,
61762
+ remove: null,
61763
+ delete: null,
61764
+ export: null
61765
+ })
61766
+ },
61374
61767
  actionWidth: {
61375
61768
  type: String,
61376
61769
  default: () => '180px'
@@ -61379,138 +61772,157 @@ __webpack_require__.r(__webpack_exports__);
61379
61772
  type: String,
61380
61773
  default: () => '操作'
61381
61774
  },
61382
- formatTime: {
61383
- type: Boolean,
61384
- default: () => true
61385
- },
61386
- preview: {
61387
- type: Boolean,
61388
- default: () => false
61389
- },
61390
61775
  page: {
61391
61776
  type: Boolean,
61392
- default: () => true
61777
+ default: () => false
61393
61778
  }
61394
61779
  },
61395
- data() {
61396
- return {
61397
- loading: false
61398
- };
61780
+ mounted() {
61781
+ this.$refs['b-table'].bodyWrapper.addEventListener('wheel', this.scroll);
61399
61782
  },
61400
- created() {
61401
- this.search();
61402
- this.create();
61783
+ beforeDestroy() {
61784
+ this.$refs['b-table'].bodyWrapper.removeEventListener('wheel', this.scroll);
61403
61785
  },
61404
- mounted() {
61405
- this.$refs['b-table'].bodyWrapper.addEventListener('scroll', this.scroll);
61786
+ destroyed() {
61787
+ this.create = null;
61788
+ this.search = null;
61789
+ this.select = null;
61790
+ this.choose = null;
61791
+ this.change = null;
61792
+ this.format = null;
61793
+ this.scroll = null;
61406
61794
  },
61407
61795
  methods: {
61408
- create(column = []) {
61796
+ create() {
61409
61797
  const h = this.$createElement;
61410
- if (this.formatTime && this.column.length > 0) {
61411
- for (let a in this.column) {
61412
- if (this.column[a].field && this.column[a].field.toLowerCase().includes('time')) {
61413
- this.column[a].render = item => item[this.column[a].field] != '' && this.filter(item[this.column[a].field]);
61414
- }
61415
- }
61416
- }
61417
- const actionColumn = () => {
61418
- let data = [];
61419
- const {
61420
- review,
61421
- modify,
61422
- update,
61423
- handle,
61424
- remove
61425
- } = this.$listeners;
61426
- if (review || modify || update || handle || remove || this.$listeners.delete || this.$listeners.export) {
61427
- data = [{
61428
- label: this.actionTitle,
61429
- fixed: 'right',
61430
- align: 'center',
61431
- width: this.actionWidth,
61432
- render: item => h("div", {
61433
- "class": "action"
61434
- }, [review && h("i", {
61435
- "class": "el-icon-view",
61436
- "on": {
61437
- "click": () => review(item)
61438
- }
61439
- }), modify && h("i", {
61440
- "class": "el-icon-edit",
61441
- "on": {
61442
- "click": () => modify(item)
61443
- }
61444
- }), update && h("i", {
61445
- "class": "el-icon-edit",
61446
- "on": {
61447
- "click": () => update(item)
61448
- }
61449
- }), handle && h("i", {
61450
- "class": "el-icon-edit",
61451
- "on": {
61452
- "click": () => handle(item)
61453
- }
61454
- }), remove && h("Apopconfirm", {
61455
- "on": {
61456
- "submit": () => remove(item)
61457
- }
61458
- }), this.$listeners.delete && h("Apopconfirm", {
61459
- "on": {
61460
- "submit": () => this.$listeners.delete(item)
61461
- }
61462
- }), this.$listeners.export && h("i", {
61463
- "class": "el-icon-download",
61464
- "on": {
61465
- "click": () => this.$listeners.export(item)
61466
- }
61467
- })])
61468
- }];
61798
+ let column = [...this.column, this.suffix()];
61799
+ return column.map((a, b) => {
61800
+ if (a && Object.keys(a).length > 0) {
61801
+ let {
61802
+ type = null,
61803
+ render = null,
61804
+ header = null,
61805
+ ...r
61806
+ } = a;
61807
+ let field = a.field || a.index || a.name || a.prop;
61808
+ let label = a.label || a.title || a.text;
61809
+ let props = {
61810
+ key: b,
61811
+ prop: field,
61812
+ scopedSlot: field,
61813
+ sortable: field ? a.sortable ? a.sortable : this.sortable : false,
61814
+ formatter: render ? render : type ? (e, f, g, h) => this.format(a, b, e, h) : null,
61815
+ showOverflowTooltip: a.showOverflowTooltip ? a.showOverflowTooltip : this.showOverflowTooltip,
61816
+ ...r
61817
+ };
61818
+ return h("el-table-column", {
61819
+ "props": {
61820
+ ...props
61821
+ }
61822
+ }, [h("template", {
61823
+ "slot": "header"
61824
+ }, [header ? () => header(r) : label && label != '' && label.length && label.length > 8 ? h("el-tooltip", {
61825
+ "attrs": {
61826
+ "content": label,
61827
+ "placement": "top"
61828
+ }
61829
+ }, [h("span", {
61830
+ "attrs": {
61831
+ "title": label
61832
+ }
61833
+ }, [label])]) : h("span", {
61834
+ "attrs": {
61835
+ "title": label
61836
+ }
61837
+ }, [label])])]);
61469
61838
  }
61470
- return data;
61471
- };
61472
- const columnConfig = [...column, ...actionColumn()];
61473
- return columnConfig.map((a, b) => {
61474
- if (a) return h("el-table-column", {
61475
- "key": b,
61476
- "attrs": {
61477
- "prop": a.field,
61478
- "showOverflowTooltip": this.showOverflowTooltip,
61479
- "sortable": a.field ? a.sortable ? a.sortable : this.sortable : false,
61480
- "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
61481
- },
61482
- "props": {
61483
- ...a
61484
- }
61485
- });
61486
61839
  });
61487
61840
  },
61488
- search() {
61489
- const {
61490
- pageParams,
61491
- formParams
61492
- } = this.$store.state;
61493
- const params = Object.assign({}, pageParams, formParams, this.params);
61494
- this.$emit('search', params);
61841
+ suffix() {
61842
+ const h = this.$createElement;
61843
+ 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) {
61844
+ return {
61845
+ fixed: 'right',
61846
+ align: 'center',
61847
+ width: this.actionWidth,
61848
+ label: this.actionTitle,
61849
+ formatter: item => h("div", {
61850
+ "class": "action"
61851
+ }, [this.action.review && h("i", {
61852
+ "class": "el-icon-view",
61853
+ "on": {
61854
+ "click": () => this.action.review(item)
61855
+ }
61856
+ }), this.action.modify && h("i", {
61857
+ "class": "el-icon-edit",
61858
+ "on": {
61859
+ "click": () => this.action.modify(item)
61860
+ }
61861
+ }), this.action.update && h("i", {
61862
+ "class": "el-icon-edit",
61863
+ "on": {
61864
+ "click": () => this.action.update(item)
61865
+ }
61866
+ }), this.action.handle && h("i", {
61867
+ "class": "el-icon-edit",
61868
+ "on": {
61869
+ "click": () => this.action.handle(item)
61870
+ }
61871
+ }), this.action.remove && h(_components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__["default"], {
61872
+ "on": {
61873
+ "submit": () => this.action.remove(item)
61874
+ }
61875
+ }), this.action.delete && h(_components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__["default"], {
61876
+ "on": {
61877
+ "submit": () => this.action.delete(item)
61878
+ }
61879
+ }), this.action.export && h("i", {
61880
+ "class": "el-icon-download",
61881
+ "on": {
61882
+ "click": () => this.action.export(item)
61883
+ }
61884
+ }), this.$listeners.review && h("i", {
61885
+ "class": "el-icon-view",
61886
+ "on": {
61887
+ "click": () => this.$listeners.review(item)
61888
+ }
61889
+ }), this.$listeners.modify && h("i", {
61890
+ "class": "el-icon-edit",
61891
+ "on": {
61892
+ "click": () => this.$listeners.modify(item)
61893
+ }
61894
+ }), this.$listeners.update && h("i", {
61895
+ "class": "el-icon-edit",
61896
+ "on": {
61897
+ "click": () => this.$listeners.update(item)
61898
+ }
61899
+ }), this.$listeners.handle && h("i", {
61900
+ "class": "el-icon-edit",
61901
+ "on": {
61902
+ "click": () => this.$listeners.handle(item)
61903
+ }
61904
+ }), this.$listeners.remove && h(_components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__["default"], {
61905
+ "on": {
61906
+ "submit": () => this.$listeners.remove(item)
61907
+ }
61908
+ }), this.$listeners.delete && h(_components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__["default"], {
61909
+ "on": {
61910
+ "submit": () => this.$listeners.delete(item)
61911
+ }
61912
+ }), this.$listeners.export && h("i", {
61913
+ "class": "el-icon-download",
61914
+ "on": {
61915
+ "click": () => this.$listeners.export(item)
61916
+ }
61917
+ })])
61918
+ };
61919
+ }
61495
61920
  },
61496
- filter(timeStamp) {
61497
- if (!typeof timeStamp == Number) return '';
61498
- let time = new Date(timeStamp);
61499
- const YYYY = time.getFullYear();
61500
- const MM = time.getMonth() + 1 < 10 ? '0' + (time.getMonth() + 1) : time.getMonth() + 1;
61501
- const DD = time.getDate() < 10 ? '0' + time.getDate() : time.getDate();
61502
- const H = time.getHours() < 10 ? '0' + time.getHours() : time.getHours();
61503
- const M = time.getMinutes() < 10 ? '0' + time.getMinutes() : time.getMinutes();
61504
- const S = time.getSeconds() < 10 ? '0' + time.getSeconds() : time.getSeconds();
61505
- return YYYY + '-' + MM + '-' + DD + ' ' + H + ':' + M + ':' + S;
61921
+ search(params = {}) {
61922
+ this.$emit('search', params);
61506
61923
  },
61507
- select(items) {
61508
- this.$store.commit('changeSelectedRows', items);
61509
- this.$store.commit('changeSelectedKeys', items.map(a => a[this.rowKey]));
61510
- this.$emit('select', {
61511
- rows: items,
61512
- keys: items.map(a => a[this.rowKey])
61513
- });
61924
+ select(items = []) {
61925
+ this.$emit('select', items);
61514
61926
  },
61515
61927
  choose(row, column, event) {
61516
61928
  this.$emit('choose', {
@@ -61519,48 +61931,31 @@ __webpack_require__.r(__webpack_exports__);
61519
61931
  event
61520
61932
  });
61521
61933
  },
61522
- change(pages) {
61523
- this.$store.commit('changePageParams', pages);
61934
+ change(pages = {
61935
+ page: 1,
61936
+ size: 10
61937
+ }) {
61524
61938
  this.$emit('change', pages);
61525
- this.search();
61526
- },
61527
- switch(name = '', symbol = '_') {
61528
- return name.replace(/([A-Z])/g, `${symbol}$1`).toLowerCase();
61939
+ this.search(pages);
61529
61940
  },
61530
61941
  format({
61531
- label,
61532
- field,
61533
- type,
61534
- disabled,
61535
- action = '',
61536
- path = '',
61537
- flag = '',
61942
+ type = '',
61943
+ name = '',
61944
+ data = [],
61945
+ text = '',
61946
+ label = '',
61947
+ title = '',
61948
+ field = '',
61949
+ dicts = [],
61538
61950
  ...props
61539
61951
  }, colIndex, item, rowIndex) {
61540
61952
  const h = this.$createElement;
61541
- if (this.preview && (type != 'select' || type != 'enume' || type != 'enumerate')) return h("span", {
61542
- "key": colIndex + '-' + rowIndex
61543
- }, [item[field]]);
61544
- if (type == 'select' || type == 'enume' || type == 'enumerate') {
61545
- let dicts = [];
61546
- if (this.optionApi != '' || action != '' || path != '') {
61547
- let url = action != '' ? action : path != '' ? path : this.optionApi;
61548
- let params = flag != '' ? {
61549
- flag: this.switch(flag)
61550
- } : {
61551
- field: this.switch(field)
61552
- };
61553
- FN.get(url, params).then(({
61554
- data
61555
- }) => {
61556
- if (data && data.length > 0) dicts = data;
61557
- });
61558
- }
61559
- return h(_components_Aenume__WEBPACK_IMPORTED_MODULE_1__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
61953
+ if (type == 'enume' || type == 'enumerate') {
61954
+ if (field != '') return h(_components_Aenume__WEBPACK_IMPORTED_MODULE_3__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
61560
61955
  "key": colIndex + '-' + rowIndex,
61561
61956
  "attrs": {
61562
- "field": `${field}`,
61563
- "data": dicts
61957
+ "field": field,
61958
+ "data": dicts.length > 0 ? dicts : data
61564
61959
  }
61565
61960
  }, props, {
61566
61961
  "model": {
@@ -61570,47 +61965,68 @@ __webpack_require__.r(__webpack_exports__);
61570
61965
  }
61571
61966
  }
61572
61967
  }]));
61968
+ return h(_components_Aenume__WEBPACK_IMPORTED_MODULE_3__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
61969
+ "key": colIndex + '-' + rowIndex,
61970
+ "attrs": {
61971
+ "field": name,
61972
+ "data": dicts.length > 0 ? dicts : data
61973
+ }
61974
+ }, props, {
61975
+ "model": {
61976
+ value: item[name],
61977
+ callback: $$v => {
61978
+ this.$set(item, name, $$v);
61979
+ }
61980
+ }
61981
+ }]));
61573
61982
  }
61574
- return h(_components_AformItem__WEBPACK_IMPORTED_MODULE_2__["default"], {
61983
+ return h(_components_AformItem__WEBPACK_IMPORTED_MODULE_6__["default"], {
61575
61984
  "key": colIndex + '-' + rowIndex,
61576
61985
  "attrs": {
61577
61986
  "config": {
61578
61987
  type,
61579
61988
  form: item,
61580
- label,
61581
- field: `${field}`,
61582
- dicts,
61583
- table: true,
61989
+ dicts: dicts.length > 0 ? dicts : data,
61990
+ field: field != '' ? field : name != '' ? name : '',
61991
+ label: text != '' ? text : label != '' ? label : title != '' ? title : '无栏目名称',
61584
61992
  ...props
61585
61993
  }
61586
61994
  }
61587
61995
  });
61588
61996
  },
61589
- scroll({
61590
- target
61591
- }) {
61592
- this.$emit('scroll', target);
61997
+ scroll(a) {
61998
+ let container = this.$refs['b-table'].bodyWrapper;
61999
+ if (container) {
62000
+ if (container.scrollHeight > container.clientHeight) {
62001
+ a.preventDefault();
62002
+ container.scrollTop += a.deltaY;
62003
+ } else {
62004
+ if (container.scrollWidth > container.clientWidth) {
62005
+ a.preventDefault();
62006
+ container.scrollLeft += a.deltaY;
62007
+ }
62008
+ }
62009
+ this.$emit('scroll', a);
62010
+ }
61593
62011
  }
61594
62012
  },
61595
62013
  render() {
61596
62014
  const h = arguments[0];
61597
- const {
61598
- data = [],
61599
- size = 0
61600
- } = this.record;
61601
- const {
61602
- pageParams
61603
- } = this.$store.state;
61604
- const condition = data && data.length > 0;
61605
62015
  const {
61606
62016
  ...props
61607
62017
  } = this.$attrs;
62018
+ const {
62019
+ ...r
62020
+ } = this.record;
62021
+ const data = r.data ? r.data : r.list ? r.list : r.rows ? r.rows : r.record ? r.record : r.records ? r.records : [];
62022
+ const size = r.size ? r.size : r.total ? r.total : r.count ? r.count : 0;
62023
+ const condition = data.length > 0;
61608
62024
  return h("div", {
61609
- "class": "b-table",
61610
- "directives": [{
61611
- name: "loading",
61612
- value: this.loading
61613
- }]
62025
+ "style": {
62026
+ padding: this.margin
62027
+ }
62028
+ }, [h("div", {
62029
+ "class": this.border ? 'b-table' : 'b-table border'
61614
62030
  }, [h("el-table", {
61615
62031
  "ref": "b-table",
61616
62032
  "attrs": {
@@ -61618,12 +62034,23 @@ __webpack_require__.r(__webpack_exports__);
61618
62034
  "size": this.size,
61619
62035
  "border": this.border,
61620
62036
  "stripe": this.stripe,
61621
- "column": this.column,
61622
62037
  "row-key": this.rowKey,
62038
+ "max-height": this.maxHeight,
62039
+ "element-loading-text": this.elementLoadingText,
62040
+ "element-loading-spinner": this.elementLoadingSpinner,
62041
+ "element-loading-background": this.elementLoadingBackground,
62042
+ "show-header": this.showHeader,
61623
62043
  "default-sort": this.defaultSort,
62044
+ "show-summary": this.showSummary,
62045
+ "tooltip-effect": this.tooltipEffect,
62046
+ "default-expand-all": this.defaultExpandAll,
61624
62047
  "tree-props": this.tree ? this.treeProps : {},
61625
- "default-expand-all": this.defaultExpandAll
62048
+ "highlight-current-row": this.highlightCurrentRow
61626
62049
  },
62050
+ "directives": [{
62051
+ name: "loading",
62052
+ value: this.loading
62053
+ }],
61627
62054
  "on": {
61628
62055
  "row-click": this.choose,
61629
62056
  "selection-change": this.select
@@ -61631,28 +62058,34 @@ __webpack_require__.r(__webpack_exports__);
61631
62058
  "props": {
61632
62059
  ...props
61633
62060
  }
61634
- }, [condition && this.selection && h("el-table-column", {
62061
+ }, [condition && (this.selection || this.$listeners.select) && h("el-table-column", {
61635
62062
  "attrs": {
61636
62063
  "fixed": "left",
61637
62064
  "type": "selection",
61638
- "width": "50"
62065
+ "width": this.selectionWidth
61639
62066
  }
61640
62067
  }), condition && this.sort && h("el-table-column", {
61641
62068
  "attrs": {
61642
62069
  "fixed": "left",
61643
62070
  "type": "index",
61644
- "width": "50",
61645
- "label": "#"
62071
+ "width": this.sortWidth,
62072
+ "label": this.sortTitle
61646
62073
  }
61647
- }), condition && this.create(this.column)]), !this.tree && this.page && condition && h(_components_Apages__WEBPACK_IMPORTED_MODULE_3__["default"], {
62074
+ }), condition && this.create(), condition && this.$slots.default, h("div", {
62075
+ "slot": "empty",
62076
+ "class": "empty"
62077
+ }, [!this.loading && h(_components_Aempty__WEBPACK_IMPORTED_MODULE_2__["default"], {
61648
62078
  "attrs": {
61649
- "total": Number(size),
61650
- "pages": pageParams
62079
+ "description": this.emptyText
62080
+ }
62081
+ })])]), !this.tree && this.page && condition && h(_components_Apages__WEBPACK_IMPORTED_MODULE_7__["default"], {
62082
+ "attrs": {
62083
+ "total": Number(size)
61651
62084
  },
61652
62085
  "on": {
61653
62086
  "change": this.change
61654
62087
  }
61655
- })]);
62088
+ })])]);
61656
62089
  }
61657
62090
  });
61658
62091
 
@@ -63472,7 +63905,7 @@ exports.quadraticProjectPoint = quadraticProjectPoint;
63472
63905
  // ESM COMPAT FLAG
63473
63906
  __webpack_require__.r(__webpack_exports__);
63474
63907
 
63475
- // 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&
63908
+ // 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&
63476
63909
  var render = function render() {
63477
63910
  var _vm = this,
63478
63911
  _c = _vm._self._c;
@@ -63484,9 +63917,23 @@ var render = function render() {
63484
63917
  expression: "loading"
63485
63918
  }],
63486
63919
  staticClass: "b-tree"
63487
- }, [_c('el-tree', {
63920
+ }, [_vm.filter ? _c('el-input', {
63921
+ staticClass: "filter",
63922
+ attrs: {
63923
+ "size": "small",
63924
+ "placeholder": "输入关键字进行过滤"
63925
+ },
63926
+ model: {
63927
+ value: _vm.context,
63928
+ callback: function ($$v) {
63929
+ _vm.context = $$v;
63930
+ },
63931
+ expression: "context"
63932
+ }
63933
+ }) : _vm._e(), _c('el-tree', {
63488
63934
  ref: "bTree",
63489
63935
  attrs: {
63936
+ "accordion": _vm.accordion,
63490
63937
  "show-checkbox": _vm.showCheckbox,
63491
63938
  "check-strictly": _vm.checkStrictly,
63492
63939
  "node-key": _vm.nodeKey,
@@ -63522,7 +63969,7 @@ var render = function render() {
63522
63969
  };
63523
63970
  var staticRenderFns = [];
63524
63971
 
63525
- // CONCATENATED MODULE: ./src/components/Btree/index.vue?vue&type=template&id=8c6268f6&scoped=true&
63972
+ // CONCATENATED MODULE: ./src/components/Btree/index.vue?vue&type=template&id=0981a61e&scoped=true&
63526
63973
 
63527
63974
  // 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&
63528
63975
  /* harmony default export */ var Btreevue_type_script_lang_js_ = ({
@@ -63532,6 +63979,14 @@ var staticRenderFns = [];
63532
63979
  type: Boolean,
63533
63980
  default: () => false
63534
63981
  },
63982
+ accordion: {
63983
+ type: Boolean,
63984
+ default: () => false
63985
+ },
63986
+ filter: {
63987
+ type: Boolean,
63988
+ default: () => true
63989
+ },
63535
63990
  showCheckbox: {
63536
63991
  type: Boolean,
63537
63992
  default: () => true
@@ -63593,7 +64048,8 @@ var staticRenderFns = [];
63593
64048
  },
63594
64049
  halfCheckedKeys: [],
63595
64050
  checkedKeys: [],
63596
- selectedRow: {}
64051
+ selectedRow: {},
64052
+ context: ''
63597
64053
  };
63598
64054
  },
63599
64055
  watch: {
@@ -63602,6 +64058,9 @@ var staticRenderFns = [];
63602
64058
  },
63603
64059
  defaultCheckedKeys() {
63604
64060
  this.create();
64061
+ },
64062
+ context(value) {
64063
+ this.$refs['bTree'].filter(value);
63605
64064
  }
63606
64065
  },
63607
64066
  mounted() {
@@ -63611,6 +64070,10 @@ var staticRenderFns = [];
63611
64070
  this.update();
63612
64071
  },
63613
64072
  methods: {
64073
+ search(value, data) {
64074
+ if (!value) return true;
64075
+ return data[this.labelKey].indexOf(value) != -1;
64076
+ },
63614
64077
  create() {
63615
64078
  this.checkedKeys = this.defaultCheckedKeys.filter(a => a != 0);
63616
64079
  this.$nextTick(() => {
@@ -63656,8 +64119,8 @@ var staticRenderFns = [];
63656
64119
  });
63657
64120
  // CONCATENATED MODULE: ./src/components/Btree/index.vue?vue&type=script&lang=js&
63658
64121
  /* harmony default export */ var components_Btreevue_type_script_lang_js_ = (Btreevue_type_script_lang_js_);
63659
- // EXTERNAL MODULE: ./src/components/Btree/index.vue?vue&type=style&index=0&id=8c6268f6&prod&scoped=true&lang=css&
63660
- var Btreevue_type_style_index_0_id_8c6268f6_prod_scoped_true_lang_css_ = __webpack_require__("f8b1");
64122
+ // EXTERNAL MODULE: ./src/components/Btree/index.vue?vue&type=style&index=0&id=0981a61e&prod&scoped=true&lang=css&
64123
+ var Btreevue_type_style_index_0_id_0981a61e_prod_scoped_true_lang_css_ = __webpack_require__("a749");
63661
64124
 
63662
64125
  // EXTERNAL MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/runtime/componentNormalizer.js
63663
64126
  var componentNormalizer = __webpack_require__("e607");
@@ -63677,7 +64140,7 @@ var component = Object(componentNormalizer["a" /* default */])(
63677
64140
  staticRenderFns,
63678
64141
  false,
63679
64142
  null,
63680
- "8c6268f6",
64143
+ "0981a61e",
63681
64144
  null
63682
64145
 
63683
64146
  )
@@ -126948,6 +127411,17 @@ function layout(gridModel, axisModel, opt) {
126948
127411
 
126949
127412
  exports.layout = layout;
126950
127413
 
127414
+ /***/ }),
127415
+
127416
+ /***/ "a749":
127417
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
127418
+
127419
+ "use strict";
127420
+ /* 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");
127421
+ /* 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__);
127422
+ /* unused harmony reexport * */
127423
+
127424
+
126951
127425
  /***/ }),
126952
127426
 
126953
127427
  /***/ "a777":
@@ -131225,7 +131699,7 @@ __webpack_require__.r(__webpack_exports__);
131225
131699
  submit = null,
131226
131700
  cancel = null
131227
131701
  } = this.$listeners;
131228
- return h("keep-alive", [h("div", {
131702
+ return h("div", {
131229
131703
  "class": !this.inline ? this.search ? 'a-form' : 'a-from vertical' : 'a-form',
131230
131704
  "style": {
131231
131705
  padding: this.margin
@@ -131315,7 +131789,7 @@ __webpack_require__.r(__webpack_exports__);
131315
131789
  "on": {
131316
131790
  "click": this.cancel
131317
131791
  }
131318
- }, [this.cancelText])])])])])]);
131792
+ }, [this.cancelText])])])])]);
131319
131793
  }
131320
131794
  });
131321
131795
 
@@ -132458,13 +132932,6 @@ exports.estimateLabelUnionRect = estimateLabelUnionRect;
132458
132932
 
132459
132933
  /***/ }),
132460
132934
 
132461
- /***/ "b33c":
132462
- /***/ (function(module, exports, __webpack_require__) {
132463
-
132464
- // extracted by mini-css-extract-plugin
132465
-
132466
- /***/ }),
132467
-
132468
132935
  /***/ "b349":
132469
132936
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
132470
132937
 
@@ -132497,14 +132964,15 @@ __webpack_require__.r(__webpack_exports__);
132497
132964
  cache: {
132498
132965
  type: Boolean,
132499
132966
  default: () => false
132500
- },
132501
- cacheNumber: {
132502
- type: Number,
132503
- default: () => 100
132504
132967
  }
132505
132968
  },
132506
132969
  render() {
132507
132970
  const h = arguments[0];
132971
+ const {
132972
+ include = null,
132973
+ exclude = null,
132974
+ max = 1000
132975
+ } = this.$props;
132508
132976
  return h("div", {
132509
132977
  "class": "a-router-view"
132510
132978
  }, [this.transition ? h("transition", {
@@ -132515,21 +132983,17 @@ __webpack_require__.r(__webpack_exports__);
132515
132983
  }
132516
132984
  }, [this.cache ? h("keep-alive", {
132517
132985
  "attrs": {
132518
- "max": this.cacheNumber
132986
+ "include": include,
132987
+ "exclude": exclude,
132988
+ "max": max
132519
132989
  }
132520
- }, [h("router-view", {
132521
- "key": this.key
132522
- })]) : h("router-view", {
132523
- "key": this.key
132524
- })]) : h("div", [this.cache ? h("keep-alive", {
132990
+ }, [h("router-view")]) : h("router-view")]) : h("div", [this.cache ? h("keep-alive", {
132525
132991
  "attrs": {
132526
- "max": this.cacheNumber
132992
+ "include": include,
132993
+ "exclude": exclude,
132994
+ "max": max
132527
132995
  }
132528
- }, [h("router-view", {
132529
- "key": this.key
132530
- })]) : h("router-view", {
132531
- "key": this.key
132532
- })])]);
132996
+ }, [h("router-view")]) : h("router-view")])]);
132533
132997
  }
132534
132998
  });
132535
132999
 
@@ -133389,7 +133853,7 @@ __webpack_require__.r(__webpack_exports__);
133389
133853
  reject,
133390
133854
  cancel
133391
133855
  } = this.$listeners;
133392
- return h("keep-alive", [h("div", {
133856
+ return h("div", {
133393
133857
  "class": !this.inline ? 'a-f-editor vertical' : 'a-f-editor',
133394
133858
  "style": {
133395
133859
  padding: this.margin
@@ -133452,7 +133916,7 @@ __webpack_require__.r(__webpack_exports__);
133452
133916
  "on": {
133453
133917
  "click": this.cancel
133454
133918
  }
133455
- }, [this.cancelText])])])])])])]);
133919
+ }, [this.cancelText])])])])])]);
133456
133920
  }
133457
133921
  });
133458
133922
 
@@ -133839,7 +134303,7 @@ __webpack_require__.r(__webpack_exports__);
133839
134303
  dragstart(a) {
133840
134304
  if (this.draggable) {
133841
134305
  a.dataTransfer.setData(this.dragType, this.id);
133842
- this.$store.commit('changeDragId', this.id);
134306
+ this.$store.commit('setDragId', this.id);
133843
134307
  this.$emit('dragstart', a);
133844
134308
  }
133845
134309
  },
@@ -135864,8 +136328,8 @@ __webpack_require__.r(__webpack_exports__);
135864
136328
  this.$emit('search', formatParams);
135865
136329
  },
135866
136330
  select(items = []) {
135867
- this.$store.commit('changeSelectedRows', items);
135868
- this.$store.commit('changeSelectedKeys', items.map(a => a[this.rowKey]));
136331
+ this.$store.commit('setSelectedRows', items);
136332
+ this.$store.commit('setSelectedKeys', items.map(a => a[this.rowKey]));
135869
136333
  this.$emit('select', {
135870
136334
  rows: items,
135871
136335
  keys: items.map(a => a[this.rowKey])
@@ -135882,7 +136346,7 @@ __webpack_require__.r(__webpack_exports__);
135882
136346
  page: 1,
135883
136347
  size: 10
135884
136348
  }) {
135885
- this.$store.commit('changePageParams', pages);
136349
+ this.$store.commit('setPageParams', pages);
135886
136350
  this.$emit('change', pages);
135887
136351
  this.search(pages);
135888
136352
  },
@@ -135980,7 +136444,7 @@ __webpack_require__.r(__webpack_exports__);
135980
136444
  search = null
135981
136445
  } = this;
135982
136446
  const condition = data.length > 0;
135983
- return h("keep-alive", [h("div", {
136447
+ return h("div", {
135984
136448
  "style": {
135985
136449
  padding: this.margin
135986
136450
  }
@@ -136072,7 +136536,7 @@ __webpack_require__.r(__webpack_exports__);
136072
136536
  "on": {
136073
136537
  "change": this.change
136074
136538
  }
136075
- })])])]);
136539
+ })])]);
136076
136540
  }
136077
136541
  });
136078
136542
 
@@ -147286,7 +147750,7 @@ __webpack_require__.r(__webpack_exports__);
147286
147750
  const {
147287
147751
  ...props
147288
147752
  } = this.$attrs;
147289
- return this.list.length > 0 && h("keep-alive", [h("div", {
147753
+ return this.list.length > 0 && h("div", {
147290
147754
  "class": "a-tags"
147291
147755
  }, [h("AscrollBox", [h("div", {
147292
147756
  "attrs": {
@@ -147309,7 +147773,7 @@ __webpack_require__.r(__webpack_exports__);
147309
147773
  "props": {
147310
147774
  ...props
147311
147775
  }
147312
- }, [a.rander ? () => a.rander(a) : a.text]))])])])]);
147776
+ }, [a.rander ? () => a.rander(a) : a.text]))])])]);
147313
147777
  }
147314
147778
  });
147315
147779
 
@@ -147584,7 +148048,7 @@ module.exports = _default;
147584
148048
  // ESM COMPAT FLAG
147585
148049
  __webpack_require__.r(__webpack_exports__);
147586
148050
 
147587
- // 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&
148051
+ // 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&
147588
148052
  var render = function render() {
147589
148053
  var _vm = this,
147590
148054
  _c = _vm._self._c;
@@ -147596,9 +148060,23 @@ var render = function render() {
147596
148060
  expression: "loading"
147597
148061
  }],
147598
148062
  staticClass: "a-tree"
147599
- }, [_vm.horizontal ? _c('el-tree', {
148063
+ }, [_vm.filter ? _c('el-input', {
148064
+ staticClass: "filter",
148065
+ attrs: {
148066
+ "size": "small",
148067
+ "placeholder": "输入关键字进行过滤"
148068
+ },
148069
+ model: {
148070
+ value: _vm.context,
148071
+ callback: function ($$v) {
148072
+ _vm.context = $$v;
148073
+ },
148074
+ expression: "context"
148075
+ }
148076
+ }) : _vm._e(), _vm.horizontal ? _c('el-tree', {
147600
148077
  ref: "aTree",
147601
148078
  attrs: {
148079
+ "accordion": _vm.accordion,
147602
148080
  "show-checkbox": _vm.showCheckbox,
147603
148081
  "check-strictly": _vm.checkStrictly,
147604
148082
  "iconClass": _vm.iconClass != '' ? _vm.iconClass : '',
@@ -147611,7 +148089,8 @@ var render = function render() {
147611
148089
  "check-on-click-node": _vm.checkOnClickNode,
147612
148090
  "auto-expand-parent": _vm.autoExpandParent,
147613
148091
  "default-expanded-keys": _vm.checkedKeys,
147614
- "draggable": _vm.draggable
148092
+ "draggable": _vm.draggable,
148093
+ "filter-node-method": _vm.search
147615
148094
  },
147616
148095
  on: {
147617
148096
  "node-click": _vm.nodeClick,
@@ -147622,6 +148101,7 @@ var render = function render() {
147622
148101
  }) : _c('el-tree', {
147623
148102
  ref: "aTree",
147624
148103
  attrs: {
148104
+ "accordion": _vm.accordion,
147625
148105
  "show-checkbox": _vm.showCheckbox,
147626
148106
  "check-strictly": _vm.checkStrictly,
147627
148107
  "iconClass": _vm.iconClass != '' ? _vm.iconClass : '',
@@ -147633,7 +148113,8 @@ var render = function render() {
147633
148113
  "check-on-click-node": _vm.checkOnClickNode,
147634
148114
  "auto-expand-parent": _vm.autoExpandParent,
147635
148115
  "default-expanded-keys": _vm.checkedKeys,
147636
- "draggable": _vm.draggable
148116
+ "draggable": _vm.draggable,
148117
+ "filter-node-method": _vm.search
147637
148118
  },
147638
148119
  on: {
147639
148120
  "node-click": _vm.nodeClick,
@@ -147645,7 +148126,7 @@ var render = function render() {
147645
148126
  };
147646
148127
  var staticRenderFns = [];
147647
148128
 
147648
- // CONCATENATED MODULE: ./src/components/Atree/index.vue?vue&type=template&id=ed84b344&scoped=true&
148129
+ // CONCATENATED MODULE: ./src/components/Atree/index.vue?vue&type=template&id=446b4709&scoped=true&
147649
148130
 
147650
148131
  // 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&
147651
148132
  /* harmony default export */ var Atreevue_type_script_lang_js_ = ({
@@ -147655,6 +148136,14 @@ var staticRenderFns = [];
147655
148136
  type: Boolean,
147656
148137
  default: () => false
147657
148138
  },
148139
+ accordion: {
148140
+ type: Boolean,
148141
+ default: () => false
148142
+ },
148143
+ filter: {
148144
+ type: Boolean,
148145
+ default: () => true
148146
+ },
147658
148147
  showCheckbox: {
147659
148148
  type: Boolean,
147660
148149
  default: () => true
@@ -147724,7 +148213,8 @@ var staticRenderFns = [];
147724
148213
  },
147725
148214
  halfCheckedKeys: [],
147726
148215
  checkedKeys: [],
147727
- selectedRow: {}
148216
+ selectedRow: {},
148217
+ context: ''
147728
148218
  };
147729
148219
  },
147730
148220
  watch: {
@@ -147733,6 +148223,9 @@ var staticRenderFns = [];
147733
148223
  },
147734
148224
  defaultCheckedKeys() {
147735
148225
  this.create();
148226
+ },
148227
+ context(value) {
148228
+ this.$refs['aTree'].filter(value);
147736
148229
  }
147737
148230
  },
147738
148231
  mounted() {
@@ -147742,6 +148235,10 @@ var staticRenderFns = [];
147742
148235
  this.update();
147743
148236
  },
147744
148237
  methods: {
148238
+ search(value, data) {
148239
+ if (!value) return true;
148240
+ return data[this.labelKey].indexOf(value) != -1;
148241
+ },
147745
148242
  format(h, {
147746
148243
  node,
147747
148244
  data,
@@ -147802,8 +148299,8 @@ var staticRenderFns = [];
147802
148299
  });
147803
148300
  // CONCATENATED MODULE: ./src/components/Atree/index.vue?vue&type=script&lang=js&
147804
148301
  /* harmony default export */ var components_Atreevue_type_script_lang_js_ = (Atreevue_type_script_lang_js_);
147805
- // EXTERNAL MODULE: ./src/components/Atree/index.vue?vue&type=style&index=0&id=ed84b344&prod&scoped=true&lang=css&
147806
- var Atreevue_type_style_index_0_id_ed84b344_prod_scoped_true_lang_css_ = __webpack_require__("0634");
148302
+ // EXTERNAL MODULE: ./src/components/Atree/index.vue?vue&type=style&index=0&id=446b4709&prod&scoped=true&lang=css&
148303
+ var Atreevue_type_style_index_0_id_446b4709_prod_scoped_true_lang_css_ = __webpack_require__("5934");
147807
148304
 
147808
148305
  // EXTERNAL MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/runtime/componentNormalizer.js
147809
148306
  var componentNormalizer = __webpack_require__("e607");
@@ -147823,7 +148320,7 @@ var component = Object(componentNormalizer["a" /* default */])(
147823
148320
  staticRenderFns,
147824
148321
  false,
147825
148322
  null,
147826
- "ed84b344",
148323
+ "446b4709",
147827
148324
  null
147828
148325
 
147829
148326
  )
@@ -150406,13 +150903,6 @@ exports.circularLayout = circularLayout;
150406
150903
 
150407
150904
  /***/ }),
150408
150905
 
150409
- /***/ "d63c":
150410
- /***/ (function(module, exports, __webpack_require__) {
150411
-
150412
- // extracted by mini-css-extract-plugin
150413
-
150414
- /***/ }),
150415
-
150416
150906
  /***/ "d67c":
150417
150907
  /***/ (function(module, exports, __webpack_require__) {
150418
150908
 
@@ -156105,17 +156595,6 @@ const Aecharts = a => Promise.resolve(/* AMD require */).then(function() { var _
156105
156595
  }
156106
156596
  });
156107
156597
 
156108
- /***/ }),
156109
-
156110
- /***/ "deea":
156111
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
156112
-
156113
- "use strict";
156114
- /* harmony import */ var _node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_15_10_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_15_10_1_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_3e164ca6_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("d63c");
156115
- /* harmony import */ var _node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_15_10_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_15_10_1_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_3e164ca6_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_15_10_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_15_10_1_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_3e164ca6_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
156116
- /* unused harmony reexport * */
156117
-
156118
-
156119
156598
  /***/ }),
156120
156599
 
156121
156600
  /***/ "dff3":
@@ -157434,190 +157913,6 @@ function normalizeComponent(
157434
157913
  }
157435
157914
 
157436
157915
 
157437
- /***/ }),
157438
-
157439
- /***/ "e611":
157440
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
157441
-
157442
- "use strict";
157443
- // ESM COMPAT FLAG
157444
- __webpack_require__.r(__webpack_exports__);
157445
-
157446
- // CONCATENATED MODULE: ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7125891e-vue-loader-template"}!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--13-0!./node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.3.0@babel-loader/lib!./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--1-0!./node_modules/_vue-loader@15.10.1@vue-loader/lib??vue-loader-options!./src/components/Atable/Actions/index.vue?vue&type=template&id=4111a5a8&
157447
- var render = function render() {
157448
- var _vm = this,
157449
- _c = _vm._self._c;
157450
- return _vm.create(_vm.config) || _vm.create(_vm.$listeners) ? _c('el-table-column', {
157451
- attrs: {
157452
- "fixed": _vm.fixed,
157453
- "align": _vm.align,
157454
- "width": _vm.width,
157455
- "label": _vm.title
157456
- },
157457
- scopedSlots: _vm._u([{
157458
- key: "default",
157459
- fn: function ({
157460
- row,
157461
- $index
157462
- }) {
157463
- return [_c('div', {
157464
- staticClass: "action"
157465
- }, [_vm.config.review ? _c('i', {
157466
- staticClass: "el-icon-view",
157467
- on: {
157468
- "click": () => _vm.config.review(row, $index)
157469
- }
157470
- }) : _vm._e(), _vm.config.modify ? _c('i', {
157471
- staticClass: "el-icon-edit",
157472
- on: {
157473
- "click": () => _vm.config.modify(row, $index)
157474
- }
157475
- }) : _vm._e(), _vm.config.update ? _c('i', {
157476
- staticClass: "el-icon-edit",
157477
- on: {
157478
- "click": () => _vm.config.update(row, $index)
157479
- }
157480
- }) : _vm._e(), _vm.config.handle ? _c('i', {
157481
- staticClass: "el-icon-edit",
157482
- on: {
157483
- "click": () => _vm.config.handle(row, $index)
157484
- }
157485
- }) : _vm._e(), _vm.config.remove ? _c('Apopconfirm', {
157486
- on: {
157487
- "submit": () => _vm.config.remove(row, $index)
157488
- }
157489
- }) : _vm._e(), _vm.config.delete ? _c('Apopconfirm', {
157490
- on: {
157491
- "submit": () => _vm.config.delete(row, $index)
157492
- }
157493
- }) : _vm._e(), _vm.config.export ? _c('i', {
157494
- staticClass: "el-icon-download",
157495
- on: {
157496
- "click": () => _vm.config.export(row, $index)
157497
- }
157498
- }) : _vm._e(), _vm.$listeners.review ? _c('i', {
157499
- staticClass: "el-icon-view",
157500
- on: {
157501
- "click": () => _vm.$listeners.review(row, $index)
157502
- }
157503
- }) : _vm._e(), _vm.$listeners.modify ? _c('i', {
157504
- staticClass: "el-icon-edit",
157505
- on: {
157506
- "click": () => _vm.$listeners.modify(row, $index)
157507
- }
157508
- }) : _vm._e(), _vm.$listeners.update ? _c('i', {
157509
- staticClass: "el-icon-edit",
157510
- on: {
157511
- "click": () => _vm.$listeners.update(row, $index)
157512
- }
157513
- }) : _vm._e(), _vm.$listeners.handle ? _c('i', {
157514
- staticClass: "el-icon-edit",
157515
- on: {
157516
- "click": () => _vm.$listeners.handle(row, $index)
157517
- }
157518
- }) : _vm._e(), _vm.$listeners.remove ? _c('Apopconfirm', {
157519
- on: {
157520
- "submit": () => _vm.$listeners.remove(row, $index)
157521
- }
157522
- }) : _vm._e(), _vm.$listeners.delete ? _c('Apopconfirm', {
157523
- on: {
157524
- "submit": () => _vm.$listeners.delete(row, $index)
157525
- }
157526
- }) : _vm._e(), _vm.$listeners.export ? _c('i', {
157527
- staticClass: "el-icon-download",
157528
- on: {
157529
- "click": () => _vm.$listeners.export(row, $index)
157530
- }
157531
- }) : _vm._e()], 1)];
157532
- }
157533
- }], null, false, 2826007373)
157534
- }) : _vm._e();
157535
- };
157536
- var staticRenderFns = [];
157537
-
157538
- // CONCATENATED MODULE: ./src/components/Atable/Actions/index.vue?vue&type=template&id=4111a5a8&
157539
-
157540
- // EXTERNAL MODULE: ./src/components/Apopconfirm/index.js
157541
- var Apopconfirm = __webpack_require__("2ee7");
157542
-
157543
- // CONCATENATED MODULE: ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--13-0!./node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.3.0@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--1-0!./node_modules/_vue-loader@15.10.1@vue-loader/lib??vue-loader-options!./src/components/Atable/Actions/index.vue?vue&type=script&lang=js&
157544
-
157545
- /* harmony default export */ var Actionsvue_type_script_lang_js_ = ({
157546
- name: 'AtableActions',
157547
- components: {
157548
- Apopconfirm: Apopconfirm["default"]
157549
- },
157550
- props: {
157551
- fixed: {
157552
- type: String,
157553
- default: () => 'right'
157554
- },
157555
- align: {
157556
- type: String,
157557
- default: () => 'center'
157558
- },
157559
- title: {
157560
- type: String,
157561
- default: () => '操作'
157562
- },
157563
- width: {
157564
- type: String,
157565
- default: () => '180px'
157566
- },
157567
- config: {
157568
- type: Object,
157569
- default: () => ({
157570
- review: null,
157571
- modify: null,
157572
- update: null,
157573
- handle: null,
157574
- remove: null,
157575
- delete: null,
157576
- export: null
157577
- })
157578
- }
157579
- },
157580
- methods: {
157581
- create({
157582
- review = null,
157583
- modify = null,
157584
- update = null,
157585
- handle = null,
157586
- remove = null,
157587
- ...r
157588
- }) {
157589
- if (review || modify || update || handle || remove || r.delete || r.export) {
157590
- return true;
157591
- } else return false;
157592
- }
157593
- }
157594
- });
157595
- // CONCATENATED MODULE: ./src/components/Atable/Actions/index.vue?vue&type=script&lang=js&
157596
- /* harmony default export */ var Atable_Actionsvue_type_script_lang_js_ = (Actionsvue_type_script_lang_js_);
157597
- // EXTERNAL MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/runtime/componentNormalizer.js
157598
- var componentNormalizer = __webpack_require__("e607");
157599
-
157600
- // CONCATENATED MODULE: ./src/components/Atable/Actions/index.vue
157601
-
157602
-
157603
-
157604
-
157605
-
157606
- /* normalize component */
157607
-
157608
- var component = Object(componentNormalizer["a" /* default */])(
157609
- Atable_Actionsvue_type_script_lang_js_,
157610
- render,
157611
- staticRenderFns,
157612
- false,
157613
- null,
157614
- null,
157615
- null
157616
-
157617
- )
157618
-
157619
- /* harmony default export */ var Actions = __webpack_exports__["default"] = (component.exports);
157620
-
157621
157916
  /***/ }),
157622
157917
 
157623
157918
  /***/ "e615":
@@ -158082,6 +158377,13 @@ module.exports = _default;
158082
158377
 
158083
158378
  /***/ }),
158084
158379
 
158380
+ /***/ "e6e6":
158381
+ /***/ (function(module, exports, __webpack_require__) {
158382
+
158383
+ // extracted by mini-css-extract-plugin
158384
+
158385
+ /***/ }),
158386
+
158085
158387
  /***/ "e720":
158086
158388
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
158087
158389
 
@@ -158104,14 +158406,14 @@ __webpack_require__.r(__webpack_exports__);
158104
158406
  type: String,
158105
158407
  default: () => '600px'
158106
158408
  },
158409
+ check: {
158410
+ type: Boolean,
158411
+ default: () => true
158412
+ },
158107
158413
  height: {
158108
158414
  type: String,
158109
158415
  default: () => '72vh'
158110
158416
  },
158111
- verify: {
158112
- type: Boolean,
158113
- default: () => true
158114
- },
158115
158417
  loading: {
158116
158418
  type: Boolean,
158117
158419
  default: () => false
@@ -158154,6 +158456,7 @@ __webpack_require__.r(__webpack_exports__);
158154
158456
  },
158155
158457
  methods: {
158156
158458
  format() {
158459
+ if (this.check == false) return true;
158157
158460
  let data = [];
158158
158461
  let pass = true;
158159
158462
  let elements = this.$slots.default;
@@ -158170,7 +158473,7 @@ __webpack_require__.r(__webpack_exports__);
158170
158473
  }
158171
158474
  });
158172
158475
  })(elements);
158173
- if (this.verify && pass == false) return false;
158476
+ if (pass == false) return false;
158174
158477
  let params = data.length && data.length > 0 ? data.length && data.length > 1 ? data : data[0] : null;
158175
158478
  return params;
158176
158479
  },
@@ -159531,7 +159834,7 @@ __webpack_require__.r(__webpack_exports__);
159531
159834
  "attrs": {
159532
159835
  "type": type,
159533
159836
  "size": size,
159534
- "disabled": disabled || selectedKeys == 0
159837
+ "disabled": disabled || selectedKeys.length == 0
159535
159838
  },
159536
159839
  "on": {
159537
159840
  "click": e => this.select(a, e)
@@ -159546,7 +159849,7 @@ __webpack_require__.r(__webpack_exports__);
159546
159849
  "attrs": {
159547
159850
  "type": "danger",
159548
159851
  "size": size,
159549
- "disabled": disabled || selectedKeys == 0
159852
+ "disabled": disabled || selectedKeys.length == 0
159550
159853
  },
159551
159854
  "on": {
159552
159855
  "click": e => this.select(a, e)
@@ -159561,7 +159864,7 @@ __webpack_require__.r(__webpack_exports__);
159561
159864
  "attrs": {
159562
159865
  "type": "danger",
159563
159866
  "size": size,
159564
- "disabled": disabled || selectedKeys == 0
159867
+ "disabled": disabled || selectedKeys.length == 0
159565
159868
  },
159566
159869
  "on": {
159567
159870
  "click": e => this.select(a, e)
@@ -159639,6 +159942,13 @@ __webpack_require__.r(__webpack_exports__);
159639
159942
 
159640
159943
  /***/ }),
159641
159944
 
159945
+ /***/ "e95a":
159946
+ /***/ (function(module, exports, __webpack_require__) {
159947
+
159948
+ // extracted by mini-css-extract-plugin
159949
+
159950
+ /***/ }),
159951
+
159642
159952
  /***/ "e9e0":
159643
159953
  /***/ (function(module, exports, __webpack_require__) {
159644
159954
 
@@ -160308,6 +160618,13 @@ module.exports = _default;
160308
160618
 
160309
160619
  /***/ }),
160310
160620
 
160621
+ /***/ "ebb9":
160622
+ /***/ (function(module, exports, __webpack_require__) {
160623
+
160624
+ // extracted by mini-css-extract-plugin
160625
+
160626
+ /***/ }),
160627
+
160311
160628
  /***/ "ec73":
160312
160629
  /***/ (function(module, exports, __webpack_require__) {
160313
160630
 
@@ -162175,7 +162492,7 @@ __webpack_require__.r(__webpack_exports__);
162175
162492
  dragstart(a) {
162176
162493
  if (this.draggable) {
162177
162494
  a.dataTransfer.setData(this.dragType, this.id);
162178
- this.$store.commit('changeDragId', this.id);
162495
+ this.$store.commit('setDragId', this.id);
162179
162496
  this.$emit('dragstart', a);
162180
162497
  }
162181
162498
  },
@@ -162218,7 +162535,7 @@ __webpack_require__.r(__webpack_exports__);
162218
162535
  this.animate(draging, dragPostion);
162219
162536
  this.animate(droping, dropPostion);
162220
162537
  }
162221
- this.$store.commit('changeDropId', this.id);
162538
+ this.$store.commit('setDropId', this.id);
162222
162539
  this.$emit('drop', a);
162223
162540
  }
162224
162541
  },
@@ -163685,8 +164002,6 @@ var map = {
163685
164002
  "./Aeditor/QuillEditor/index.vue": "8958",
163686
164003
  "./Aeditor/WangEditor/index.vue": "3302",
163687
164004
  "./Aplayer/index.vue": "1c4e",
163688
- "./Atable/Actions/index.vue": "e611",
163689
- "./Atable/index.vue": "ffd4",
163690
164005
  "./Atree/index.vue": "ce34",
163691
164006
  "./Aupload/File/index.vue": "3a9a",
163692
164007
  "./Aupload/Icon/index.vue": "7d0e",
@@ -165147,17 +165462,6 @@ Clip.prototype = {
165147
165462
  var _default = Clip;
165148
165463
  module.exports = _default;
165149
165464
 
165150
- /***/ }),
165151
-
165152
- /***/ "f8b1":
165153
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
165154
-
165155
- "use strict";
165156
- /* 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");
165157
- /* 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__);
165158
- /* unused harmony reexport * */
165159
-
165160
-
165161
165465
  /***/ }),
165162
165466
 
165163
165467
  /***/ "f8d0":
@@ -166886,34 +167190,22 @@ __webpack_require__.r(__webpack_exports__);
166886
167190
  if (Object.keys(this.config).length > 0) {
166887
167191
  // 格式化属性为模糊查询属性
166888
167192
  for (let a in this.config) {
166889
- if (this.config[a] != '' && this.config[a].like && this.form[a].trim() != '' && this.form[a].trim() != null && this.form[a].trim() != undefined) {
166890
- if (this.config[a].like == 'left') data[a] = '%' + this.form[a].trim();
166891
- if (this.config[a].like == 'right') data[a] = this.form[a].trim() + '%';else data[a] = '%' + this.form[a].trim() + '%';
167193
+ if (this.config[a] != '' && this.config[a].like && this.form[a] != '' && this.form[a] != null && this.form[a] != undefined) {
167194
+ if (this.config[a].like == 'left') data[a] = '%' + this.form[a];
167195
+ if (this.config[a].like == 'right') data[a] = this.form[a] + '%';else data[a] = '%' + this.form[a] + '%';
166892
167196
  } else {
166893
167197
  if (this.config[a] != '' && (this.config[a].than || this.config[a].range || this.config[a].scope)) {
166894
- data[`${a}LE`] = this.form[`${a}LE`].trim();
166895
- data[`${a}GE`] = this.form[`${a}GE`].trim();
166896
- } 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();
167198
+ data[`${a}LE`] = this.form[`${a}LE`];
167199
+ data[`${a}GE`] = this.form[`${a}GE`];
167200
+ } 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];
166897
167201
  }
166898
167202
  }
166899
167203
  }
166900
167204
  if (pass) {
166901
167205
  let result = this.filter(data);
166902
- const {
166903
- formParams,
166904
- pageParams
166905
- } = this.$store.state;
166906
- this.$store.commit('changeFormParams', result); // 添加查询参数
166907
- this.$store.commit('changePageParams', {
166908
- ...pageParams,
166909
- page: 1
166910
- }); // 重置分页参数
166911
167206
  this.$nextTick(() => {
166912
- let change = false;
166913
- Object.keys(result).forEach(a => result[a] != formParams[a] && (change = true));
166914
- if (change) this.$emit('submit', {
167207
+ this.$emit('submit', {
166915
167208
  ...result,
166916
- ...pageParams,
166917
167209
  page: 1
166918
167210
  }); // 派发事件并重置当前分页
166919
167211
  return result;
@@ -166926,15 +167218,6 @@ __webpack_require__.r(__webpack_exports__);
166926
167218
  let pass = !this.check; // 判断是否是空表单
166927
167219
  for (let a in this.form) if (this.form[a] != '') pass = true;
166928
167220
  if (pass) {
166929
- const {
166930
- pageParams
166931
- } = this.$store.state;
166932
- this.$store.commit('changePageParams', {
166933
- ...pageParams,
166934
- page: 1,
166935
- size: 10
166936
- }); // 重置分页参数
166937
- this.$store.commit('changeFormParams', {}); // 重置查询参数
166938
167221
  this.$nextTick(() => {
166939
167222
  for (let a in this.form) this.form[a] = '';
166940
167223
  this.$nextTick(() => this.$emit('cancel', this.form));
@@ -167018,7 +167301,7 @@ __webpack_require__.r(__webpack_exports__);
167018
167301
  submit = null,
167019
167302
  cancel = null
167020
167303
  } = this.$listeners;
167021
- return h("keep-alive", [h("div", {
167304
+ return h("div", {
167022
167305
  "class": "b-f-search",
167023
167306
  "style": {
167024
167307
  padding: this.margin
@@ -167090,7 +167373,7 @@ __webpack_require__.r(__webpack_exports__);
167090
167373
  "on": {
167091
167374
  "click": this.cancel
167092
167375
  }
167093
- }, [this.cancelText])])])])])]);
167376
+ }, [this.cancelText])])])])]);
167094
167377
  }
167095
167378
  });
167096
167379
 
@@ -168893,438 +169176,6 @@ exports.getStroke = getStroke;
168893
169176
  exports.getFill = getFill;
168894
169177
  exports.needDrawText = needDrawText;
168895
169178
 
168896
- /***/ }),
168897
-
168898
- /***/ "ffd4":
168899
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
168900
-
168901
- "use strict";
168902
- // ESM COMPAT FLAG
168903
- __webpack_require__.r(__webpack_exports__);
168904
-
168905
- // CONCATENATED MODULE: ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7125891e-vue-loader-template"}!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--13-0!./node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.3.0@babel-loader/lib!./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--1-0!./node_modules/_vue-loader@15.10.1@vue-loader/lib??vue-loader-options!./src/components/Atable/index.vue?vue&type=template&id=3e164ca6&scoped=true&
168906
- var render = function render() {
168907
- var _vm = this,
168908
- _c = _vm._self._c;
168909
- return _c('div', {
168910
- class: _vm.border ? 'a-table' : 'a-table border'
168911
- }, [_c('el-table', {
168912
- directives: [{
168913
- name: "loading",
168914
- rawName: "v-loading",
168915
- value: _vm.loading,
168916
- expression: "loading"
168917
- }],
168918
- ref: "a-table",
168919
- attrs: {
168920
- "data": _vm.format(_vm.record).data,
168921
- "size": _vm.size,
168922
- "border": _vm.border,
168923
- "stripe": _vm.stripe,
168924
- "row-key": _vm.rowKey,
168925
- "max-height": _vm.maxHeight,
168926
- "element-loading-text": _vm.elementLoadingText,
168927
- "element-loading-spinner": _vm.elementLoadingSpinner,
168928
- "element-loading-background": _vm.elementLoadingBackground,
168929
- "show-header": _vm.showHeader,
168930
- "default-sort": _vm.defaultSort,
168931
- "show-summary": _vm.showSummary,
168932
- "tooltip-effect": _vm.tooltipEffect,
168933
- "default-expand-all": _vm.defaultExpandAll,
168934
- "tree-props": _vm.tree ? _vm.treeProps : {},
168935
- "highlight-current-row": _vm.highlightCurrentRow
168936
- },
168937
- on: {
168938
- "row-click": _vm.choose,
168939
- "selection-change": _vm.select
168940
- }
168941
- }, [_vm.format(_vm.record).data.length > 0 ? [_vm.selection || _vm.$listeners.select ? _c('el-table-column', {
168942
- attrs: {
168943
- "fixed": "left",
168944
- "type": "selection",
168945
- "width": _vm.selectionWidth
168946
- }
168947
- }) : _vm._e(), _vm.sort ? _c('el-table-column', {
168948
- attrs: {
168949
- "fixed": "left",
168950
- "type": "index",
168951
- "width": _vm.sortWidth,
168952
- "label": _vm.sortTitle
168953
- }
168954
- }) : _vm._e(), _vm._l(_vm.column, function (a, b) {
168955
- return _c('el-table-column', {
168956
- key: b,
168957
- attrs: {
168958
- "prop": a.field || a.index || a.name || a.prop || `${a}`,
168959
- "label": a.label || a.title || a.text,
168960
- "sortable": a.field || a.index || a.name || a.prop ? a.sortable ? a.sortable : _vm.sortable : false,
168961
- "showOverflowTooltip": a.showOverflowTooltip ? a.showOverflowTooltip : _vm.showOverflowTooltip
168962
- },
168963
- scopedSlots: _vm._u([{
168964
- key: "default",
168965
- fn: function (scope) {
168966
- return [_vm._t(a.field || a.index || a.name || a.prop || `${a}`, function () {
168967
- return [_vm._v(_vm._s(scope.row[_vm.item.prop]))];
168968
- }, {
168969
- "row": scope.row
168970
- })];
168971
- }
168972
- }], null, true)
168973
- });
168974
- }), _vm._t("default"), _vm.$listeners.review || _vm.$listeners.modify || _vm.$listeners.update || _vm.$listeners.handle || _vm.$listeners.remove || _vm.$listeners.delete || _vm.$listeners.export ? _c('el-table-column', {
168975
- attrs: {
168976
- "fixed": "right",
168977
- "align": "center",
168978
- "width": _vm.actionWidth,
168979
- "label": _vm.actionTitle
168980
- },
168981
- scopedSlots: _vm._u([{
168982
- key: "default",
168983
- fn: function ({
168984
- row,
168985
- $index
168986
- }) {
168987
- return [_c('div', {
168988
- staticClass: "action"
168989
- }, [_vm.$listeners.review ? _c('i', {
168990
- staticClass: "el-icon-view",
168991
- on: {
168992
- "click": () => _vm.$listeners.review(row, $index)
168993
- }
168994
- }) : _vm._e(), _vm.$listeners.modify ? _c('i', {
168995
- staticClass: "el-icon-edit",
168996
- on: {
168997
- "click": () => _vm.$listeners.modify(row, $index)
168998
- }
168999
- }) : _vm._e(), _vm.$listeners.update ? _c('i', {
169000
- staticClass: "el-icon-edit",
169001
- on: {
169002
- "click": () => _vm.$listeners.update(row, $index)
169003
- }
169004
- }) : _vm._e(), _vm.$listeners.handle ? _c('i', {
169005
- staticClass: "el-icon-edit",
169006
- on: {
169007
- "click": () => _vm.$listeners.handle(row, $index)
169008
- }
169009
- }) : _vm._e(), _vm.$listeners.remove ? _c('Apopconfirm', {
169010
- on: {
169011
- "submit": () => _vm.$listeners.remove(row, $index)
169012
- }
169013
- }) : _vm._e(), _vm.$listeners.delete ? _c('Apopconfirm', {
169014
- on: {
169015
- "submit": () => _vm.$listeners.delete(row, $index)
169016
- }
169017
- }) : _vm._e(), _vm.$listeners.export ? _c('i', {
169018
- staticClass: "el-icon-download",
169019
- on: {
169020
- "click": () => _vm.$listeners.export(row, $index)
169021
- }
169022
- }) : _vm._e()], 1)];
169023
- }
169024
- }], null, false, 2786542129)
169025
- }) : _vm._e()] : _vm._e(), _c('div', {
169026
- staticClass: "empty",
169027
- attrs: {
169028
- "slot": "empty"
169029
- },
169030
- slot: "empty"
169031
- }, [!_vm.loading ? _c('Aempty', {
169032
- attrs: {
169033
- "description": _vm.emptyText
169034
- }
169035
- }) : _vm._e()], 1)], 2), !_vm.tree && _vm.page && _vm.format(_vm.record).data.length > 0 ? _c('Apages', {
169036
- attrs: {
169037
- "total": _vm.format(_vm.record).size,
169038
- "pages": _vm.pageParams
169039
- },
169040
- on: {
169041
- "change": _vm.change
169042
- }
169043
- }) : _vm._e()], 1);
169044
- };
169045
- var staticRenderFns = [];
169046
-
169047
- // CONCATENATED MODULE: ./src/components/Atable/index.vue?vue&type=template&id=3e164ca6&scoped=true&
169048
-
169049
- // EXTERNAL MODULE: ./src/components/Aactions/index.js
169050
- var Aactions = __webpack_require__("e94c");
169051
-
169052
- // EXTERNAL MODULE: ./src/components/Aempty/index.js
169053
- var Aempty = __webpack_require__("bd5e");
169054
-
169055
- // EXTERNAL MODULE: ./src/components/Aenume/index.js
169056
- var Aenume = __webpack_require__("6cc8");
169057
-
169058
- // EXTERNAL MODULE: ./src/components/Aform/AfSearch/index.js
169059
- var AfSearch = __webpack_require__("1b78");
169060
-
169061
- // EXTERNAL MODULE: ./src/components/Aform/BfSearch/index.js
169062
- var BfSearch = __webpack_require__("fc0d");
169063
-
169064
- // EXTERNAL MODULE: ./src/components/AformItem/index.js
169065
- var AformItem = __webpack_require__("2234");
169066
-
169067
- // EXTERNAL MODULE: ./src/components/Apages/index.js
169068
- var Apages = __webpack_require__("1d0c");
169069
-
169070
- // EXTERNAL MODULE: ./src/components/Apopconfirm/index.js
169071
- var Apopconfirm = __webpack_require__("2ee7");
169072
-
169073
- // CONCATENATED MODULE: ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--13-0!./node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.3.0@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--1-0!./node_modules/_vue-loader@15.10.1@vue-loader/lib??vue-loader-options!./src/components/Atable/index.vue?vue&type=script&lang=js&
169074
-
169075
-
169076
-
169077
-
169078
-
169079
-
169080
-
169081
-
169082
- /* harmony default export */ var Atablevue_type_script_lang_js_ = ({
169083
- components: {
169084
- Aactions: Aactions["default"],
169085
- Aempty: Aempty["default"],
169086
- Aenume: Aenume["default"],
169087
- AfSearch: AfSearch["default"],
169088
- BfSearch: BfSearch["default"],
169089
- AformItem: AformItem["default"],
169090
- Apages: Apages["default"],
169091
- Apopconfirm: Apopconfirm["default"]
169092
- },
169093
- props: {
169094
- margin: {
169095
- type: String,
169096
- default: () => '0'
169097
- },
169098
- rowKey: {
169099
- type: String,
169100
- default: () => 'id'
169101
- },
169102
- size: {
169103
- type: String,
169104
- default: () => 'medium'
169105
- },
169106
- selectionWidth: {
169107
- type: String,
169108
- default: () => '50'
169109
- },
169110
- sort: {
169111
- type: Boolean,
169112
- default: () => true
169113
- },
169114
- sortTitle: {
169115
- type: String,
169116
- default: () => '#'
169117
- },
169118
- sortWidth: {
169119
- type: String,
169120
- default: () => '50'
169121
- },
169122
- border: {
169123
- type: Boolean,
169124
- default: () => false
169125
- },
169126
- stripe: {
169127
- type: Boolean,
169128
- default: () => false
169129
- },
169130
- loading: {
169131
- type: Boolean,
169132
- default: () => false
169133
- },
169134
- column: {
169135
- type: Array,
169136
- default: () => []
169137
- },
169138
- record: {
169139
- type: Object,
169140
- default: () => ({})
169141
- },
169142
- maxHeight: {
169143
- type: String,
169144
- default: () => '480'
169145
- },
169146
- elementLoadingText: {
169147
- type: String,
169148
- default: () => ''
169149
- },
169150
- elementLoadingSpinner: {
169151
- type: String,
169152
- default: () => 'el-icon-loading'
169153
- },
169154
- elementLoadingBackground: {
169155
- type: String,
169156
- default: () => 'rgba(0, 0, 0, 0.04)'
169157
- },
169158
- emptyText: {
169159
- type: String,
169160
- default: () => ''
169161
- },
169162
- showHeader: {
169163
- type: Boolean,
169164
- default: () => true
169165
- },
169166
- selection: {
169167
- type: Boolean,
169168
- default: () => false
169169
- },
169170
- showOverflowTooltip: {
169171
- type: Boolean,
169172
- default: () => true
169173
- },
169174
- tooltipEffect: {
169175
- type: String,
169176
- default: () => 'light'
169177
- },
169178
- showSummary: {
169179
- type: Boolean,
169180
- default: () => false
169181
- },
169182
- sumText: {
169183
- type: String,
169184
- default: () => '合计'
169185
- },
169186
- sortable: {
169187
- type: Boolean,
169188
- default: () => false
169189
- },
169190
- defaultSort: {
169191
- type: Object,
169192
- default: () => ({
169193
- prop: 'date',
169194
- order: 'descending'
169195
- })
169196
- },
169197
- tree: {
169198
- type: Boolean,
169199
- default: () => false
169200
- },
169201
- defaultExpandAll: {
169202
- type: Boolean,
169203
- default: () => true
169204
- },
169205
- treeProps: {
169206
- type: Object,
169207
- default: () => ({
169208
- children: 'children',
169209
- hasChildren: 'hasChildren'
169210
- })
169211
- },
169212
- highlightCurrentRow: {
169213
- type: Boolean,
169214
- default: () => false
169215
- },
169216
- actionWidth: {
169217
- type: String,
169218
- default: () => '180px'
169219
- },
169220
- actionTitle: {
169221
- type: String,
169222
- default: () => '操作'
169223
- },
169224
- page: {
169225
- type: Boolean,
169226
- default: () => true
169227
- }
169228
- },
169229
- mounted() {
169230
- this.$refs['a-table'].bodyWrapper.addEventListener('wheel', this.scroll);
169231
- },
169232
- beforeDestroy() {
169233
- this.$refs['a-table'].bodyWrapper.removeEventListener('wheel', this.scroll);
169234
- },
169235
- data() {
169236
- const {
169237
- pageParams = {}
169238
- } = this.$store.state;
169239
- return {
169240
- pageParams
169241
- };
169242
- },
169243
- methods: {
169244
- format(a = {}) {
169245
- return {
169246
- data: a.data ? a.data : a.list ? a.list : a.rows ? a.rows : a.record ? a.record : a.records ? a.records : [],
169247
- size: a.size ? a.size : a.total ? a.total : a.count ? a.count : 0
169248
- };
169249
- },
169250
- search(params = {}) {
169251
- const {
169252
- pageParams = {},
169253
- formParams = {}
169254
- } = this.$store.state;
169255
- const formatParams = Object.assign({}, pageParams, formParams, params);
169256
- this.$emit('search', formatParams);
169257
- },
169258
- select(items = []) {
169259
- this.$store.commit('changeSelectedRows', items);
169260
- this.$store.commit('changeSelectedKeys', items.map(a => a[this.rowKey]));
169261
- this.$emit('select', {
169262
- rows: items,
169263
- keys: items.map(a => a[this.rowKey])
169264
- });
169265
- },
169266
- choose(row, column, event) {
169267
- this.$emit('choose', {
169268
- row,
169269
- column,
169270
- event
169271
- });
169272
- },
169273
- change(pages = {
169274
- page: 1,
169275
- size: 10
169276
- }) {
169277
- this.$store.commit('changePageParams', pages);
169278
- this.$emit('change', pages);
169279
- this.search(pages);
169280
- },
169281
- scroll(a) {
169282
- let container = this.$refs['a-table'].bodyWrapper;
169283
- if (container) {
169284
- if (container.scrollHeight > container.clientHeight) {
169285
- a.preventDefault();
169286
- container.scrollTop += a.deltaY;
169287
- } else {
169288
- if (container.scrollWidth > container.clientWidth) {
169289
- a.preventDefault();
169290
- container.scrollLeft += a.deltaY;
169291
- }
169292
- }
169293
- this.$emit('scroll', a);
169294
- }
169295
- }
169296
- }
169297
- });
169298
- // CONCATENATED MODULE: ./src/components/Atable/index.vue?vue&type=script&lang=js&
169299
- /* harmony default export */ var components_Atablevue_type_script_lang_js_ = (Atablevue_type_script_lang_js_);
169300
- // EXTERNAL MODULE: ./src/components/Atable/index.vue?vue&type=style&index=0&id=3e164ca6&prod&scoped=true&lang=css&
169301
- var Atablevue_type_style_index_0_id_3e164ca6_prod_scoped_true_lang_css_ = __webpack_require__("deea");
169302
-
169303
- // EXTERNAL MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/runtime/componentNormalizer.js
169304
- var componentNormalizer = __webpack_require__("e607");
169305
-
169306
- // CONCATENATED MODULE: ./src/components/Atable/index.vue
169307
-
169308
-
169309
-
169310
-
169311
-
169312
-
169313
- /* normalize component */
169314
-
169315
- var component = Object(componentNormalizer["a" /* default */])(
169316
- components_Atablevue_type_script_lang_js_,
169317
- render,
169318
- staticRenderFns,
169319
- false,
169320
- null,
169321
- "3e164ca6",
169322
- null
169323
-
169324
- )
169325
-
169326
- /* harmony default export */ var Atable = __webpack_exports__["default"] = (component.exports);
169327
-
169328
169179
  /***/ })
169329
169180
 
169330
169181
  /******/ });