element-ui-root 3.0.7 → 3.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -6858,17 +6858,17 @@ __webpack_require__.r(__webpack_exports__);
6858
6858
  /* harmony default export */ __webpack_exports__["default"] = ({
6859
6859
  name: 'Aauthority',
6860
6860
  props: {
6861
- role: {
6861
+ route: {
6862
6862
  type: String,
6863
6863
  default: () => ''
6864
6864
  },
6865
- roles: {
6865
+ routes: {
6866
6866
  type: String,
6867
6867
  default: () => ''
6868
6868
  }
6869
6869
  },
6870
6870
  render() {
6871
- return this.roles.includes(this.role) && this.$slots.default;
6871
+ return this.routes.includes(this.route) && this.$slots.default;
6872
6872
  }
6873
6873
  });
6874
6874
 
@@ -13084,6 +13084,7 @@ var map = {
13084
13084
  "./AformItem": "2234",
13085
13085
  "./AformItem/": "2234",
13086
13086
  "./AformItem/index": "2234",
13087
+ "./AformItem/index.css": "de00",
13087
13088
  "./AformItem/index.js": "2234",
13088
13089
  "./AiconSelect": "db3d",
13089
13090
  "./AiconSelect/": "db3d",
@@ -13111,6 +13112,11 @@ var map = {
13111
13112
  "./Apages/index": "1d0c",
13112
13113
  "./Apages/index.css": "18da",
13113
13114
  "./Apages/index.js": "1d0c",
13115
+ "./ApasswordInput": "e4ec",
13116
+ "./ApasswordInput/": "e4ec",
13117
+ "./ApasswordInput/index": "e4ec",
13118
+ "./ApasswordInput/index.css": "ba86",
13119
+ "./ApasswordInput/index.js": "e4ec",
13114
13120
  "./Aplayer": "1c4e",
13115
13121
  "./Aplayer/": "1c4e",
13116
13122
  "./Aplayer/index": "1c4e",
@@ -13205,8 +13211,8 @@ var map = {
13205
13211
  "./Atree/index": "ce34",
13206
13212
  "./Atree/index.css": "158a",
13207
13213
  "./Atree/index.vue": "ce34",
13208
- "./Aupload": "a61e",
13209
- "./Aupload/": "a61e",
13214
+ "./Aupload": "fafd",
13215
+ "./Aupload/": "fafd",
13210
13216
  "./Aupload/File": "3a9a",
13211
13217
  "./Aupload/File/": "3a9a",
13212
13218
  "./Aupload/File/index": "3a9a",
@@ -13217,11 +13223,12 @@ var map = {
13217
13223
  "./Aupload/Icon/index": "7d0e",
13218
13224
  "./Aupload/Icon/index.css": "6c6f",
13219
13225
  "./Aupload/Icon/index.vue": "7d0e",
13220
- "./Aupload/index": "a61e",
13226
+ "./Aupload/index": "fafd",
13221
13227
  "./Aupload/index.bak": "5b90",
13222
13228
  "./Aupload/index.bak.js": "5b90",
13229
+ "./Aupload/index.bak.vue": "d98d",
13223
13230
  "./Aupload/index.css": "0673",
13224
- "./Aupload/index.vue": "a61e",
13231
+ "./Aupload/index.js": "fafd",
13225
13232
  "./AwebSocket": "5209",
13226
13233
  "./AwebSocket/": "5209",
13227
13234
  "./AwebSocket/index": "5209",
@@ -13483,6 +13490,10 @@ __webpack_require__.r(__webpack_exports__);
13483
13490
  /* harmony default export */ __webpack_exports__["default"] = ({
13484
13491
  name: 'AfSearch',
13485
13492
  props: {
13493
+ id: {
13494
+ type: String,
13495
+ default: () => `a-f-search-id-${Math.random()}`
13496
+ },
13486
13497
  value: {
13487
13498
  type: Object,
13488
13499
  default: () => ({})
@@ -13511,6 +13522,10 @@ __webpack_require__.r(__webpack_exports__);
13511
13522
  type: Boolean,
13512
13523
  default: () => true
13513
13524
  },
13525
+ prompt: {
13526
+ type: Boolean,
13527
+ default: () => false
13528
+ },
13514
13529
  disabled: {
13515
13530
  type: Boolean,
13516
13531
  default: () => false
@@ -13529,11 +13544,9 @@ __webpack_require__.r(__webpack_exports__);
13529
13544
  this.relate(this.config);
13530
13545
  }
13531
13546
  },
13532
- created() {
13533
- this.relate(this.config);
13534
- },
13535
13547
  mounted() {
13536
13548
  this.resize();
13549
+ this.relate(this.config);
13537
13550
  },
13538
13551
  methods: {
13539
13552
  input() {
@@ -13542,6 +13555,14 @@ __webpack_require__.r(__webpack_exports__);
13542
13555
  change() {
13543
13556
  this.$emit('change', this.filter(), this.form, this.option);
13544
13557
  },
13558
+ resize() {
13559
+ if (this.inline == false) {
13560
+ if (Object.keys(this.config).length > 0) {
13561
+ let rows = Math.ceil(Object.keys(this.config).length / this.cols);
13562
+ this.height = this.$el.clientHeight * (rows - 1);
13563
+ }
13564
+ }
13565
+ },
13545
13566
  relate(config = {}) {
13546
13567
  Object.keys(config).forEach(a => {
13547
13568
  let {
@@ -13567,7 +13588,14 @@ __webpack_require__.r(__webpack_exports__);
13567
13588
  message: `${label}不能为空`
13568
13589
  }];
13569
13590
  let valid = r.rule ? r.rule : r.must || this.must ? judge : [];
13570
- let rules = this.disabled || r.disabled ? [] : (r.must || this.must) && r.rule ? [...judge, ...r.rule] : valid;
13591
+ let limit = [{
13592
+ min: r.minLength,
13593
+ message: `最少${r.min}个字符`
13594
+ }, {
13595
+ min: r.maxLength,
13596
+ message: `最多${r.min}个字符`
13597
+ }];
13598
+ let rules = this.disabled || r.disabled ? [] : (r.must || this.must) && r.rule ? [...judge, ...limit, ...r.rule] : valid;
13571
13599
  let props = {
13572
13600
  name: a,
13573
13601
  prop: a,
@@ -13648,10 +13676,10 @@ __webpack_require__.r(__webpack_exports__);
13648
13676
  });
13649
13677
  } else {
13650
13678
  let config = {
13679
+ disabled: a.disabled || this.disabled,
13651
13680
  change: () => this.change(),
13652
13681
  form: this.form,
13653
13682
  field: b,
13654
- clearable: !a.default,
13655
13683
  ...a
13656
13684
  };
13657
13685
  return h(_components_AformItem__WEBPACK_IMPORTED_MODULE_1__["default"], {
@@ -13664,12 +13692,6 @@ __webpack_require__.r(__webpack_exports__);
13664
13692
  });
13665
13693
  }
13666
13694
  },
13667
- resize() {
13668
- if (Object.keys(this.config).length > 0) {
13669
- let rows = Math.ceil(Object.keys(this.config).length / this.cols);
13670
- this.height = this.$el.clientHeight * (rows - 1);
13671
- }
13672
- },
13673
13695
  filter() {
13674
13696
  let data = {};
13675
13697
  Object.keys(this.form).length > 0 && Object.keys(this.form).forEach(a => {
@@ -13677,14 +13699,19 @@ __webpack_require__.r(__webpack_exports__);
13677
13699
  let {
13678
13700
  ...r
13679
13701
  } = this.option[a];
13680
- if (r.split && r.split.length > 0) {
13681
- r.split.forEach((b, c) => data[b] = this.form[a][c]);
13682
- } else {
13683
- if (r.like) {
13684
- if (r.like == 'L' || r.like == 'l' || r.like == 'left') data[a] = `%${this.form[a]}`;
13685
- if (r.like == 'R' || r.like == 'r' || r.like == 'right') data[a] = `${this.form[a]}%`;
13686
- if (this.form[a] && this.form[a].includes(' 00:00:00')) data[a] = `%${this.form[a].replace(' 00:00:00', '')}%`;else data[a] = `%${this.form[a]}%`;
13687
- } else data[a] = this.form[a];
13702
+ let ignore = r.ignore || r.empty || r.blank || r.omit;
13703
+ if (!ignore) {
13704
+ if (r.split && r.split.length > 0) {
13705
+ r.split.forEach((b, c) => data[b] = this.form[a][c]);
13706
+ } else {
13707
+ if (r.join && r.join != '') data[a] = this.form[a].join(r.join);
13708
+ if (r.multiple && this.form[a] != '') data[a] = this.form[a].join();
13709
+ if (r.like) {
13710
+ if (r.like == 'L' || r.like == 'l' || r.like == 'left' || r.like == 'Left' || r.like == 'LEFT') data[a] = `%${this.form[a]}`;
13711
+ if (r.like == 'R' || r.like == 'r' || r.like == 'right' || r.like == 'Right' || r.like == 'RIGHT') data[a] = `${this.form[a]}%`;
13712
+ if (this.form[a] && this.form[a].includes(' 00:00:00')) data[a] = `%${this.form[a].replace(' 00:00:00', '')}%`;else data[a] = `%${this.form[a]}%`;
13713
+ } else data[a] = this.form[a];
13714
+ }
13688
13715
  }
13689
13716
  }
13690
13717
  });
@@ -13705,7 +13732,13 @@ __webpack_require__.r(__webpack_exports__);
13705
13732
  page: 1
13706
13733
  });
13707
13734
  }
13708
- this.$refs.form.validate(valid => valid && this.$emit('submit', this.filter(), this.form, this.option));
13735
+ this.$refs.form.validate((valid, items) => {
13736
+ if (valid) {
13737
+ this.$emit('submit', this.filter(), this.form, this.option);
13738
+ } else if (this.prompt) {
13739
+ Object.keys(items).forEach(a => items[a].forEach(b => this.$message.error(b.message)));
13740
+ }
13741
+ });
13709
13742
  },
13710
13743
  cancel() {
13711
13744
  this.$refs.form && this.$refs.form.resetFields && this.$refs.form.resetFields();
@@ -13756,7 +13789,6 @@ __webpack_require__.r(__webpack_exports__);
13756
13789
  inline: this.inline,
13757
13790
  labelWidth,
13758
13791
  labelPosition,
13759
- style,
13760
13792
  ...rest
13761
13793
  };
13762
13794
  return h("div", {
@@ -13766,13 +13798,17 @@ __webpack_require__.r(__webpack_exports__);
13766
13798
  padding
13767
13799
  }
13768
13800
  }, [h("el-form", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
13769
- "ref": "form"
13801
+ "ref": "form",
13802
+ "attrs": {
13803
+ "id": this.id
13804
+ },
13805
+ "style": style
13770
13806
  }, {
13771
13807
  "props": {
13772
13808
  model: this.form,
13773
13809
  ...props
13774
13810
  }
13775
- }]), [this.inline ? Object.keys(this.config).map((a, b) => this.create(a, b)) : h("div", {
13811
+ }]), [this.inline ? Object.keys(this.config).map((a, b) => this.config[a] && this.create(a, b)) : h("div", {
13776
13812
  "class": "column"
13777
13813
  }, [h("el-row", {
13778
13814
  "attrs": {
@@ -13788,16 +13824,17 @@ __webpack_require__.r(__webpack_exports__);
13788
13824
  height: this.opened ? `${this.height}px` : '0'
13789
13825
  }
13790
13826
  }, [Object.keys(this.config).map((a, b) => b > this.cols - 1 && this.create(a, b))])]), (submit || cancel || action.length > 0) && h("div", {
13791
- "class": "action",
13792
- "style": {
13793
- paddingLeft: `${this.gutter}px`
13794
- }
13827
+ "class": `action ${this.inline && Object.keys(this.config).length % this.cols == 0 ? 'anonymous' : ''}`
13795
13828
  }, [h("el-form-item", {
13796
13829
  "attrs": {
13797
13830
  "name": "action",
13798
- "label": "action"
13831
+ "label": "action",
13832
+ "label-width": "0"
13833
+ },
13834
+ "style": {
13835
+ paddingLeft: `${this.inline ? this.gutter / 2 : this.gutter}px`
13799
13836
  }
13800
- }, [Object.keys(this.config).length > this.cols && !this.inline && h("el-button", {
13837
+ }, [!this.inline && Object.keys(this.config).length > this.cols && h("el-button", {
13801
13838
  "attrs": {
13802
13839
  "disabled": loading,
13803
13840
  "type": "text"
@@ -15683,6 +15720,17 @@ var component = Object(componentNormalizer["a" /* default */])(
15683
15720
 
15684
15721
  /* harmony default export */ var Aplayer = __webpack_exports__["default"] = (component.exports);
15685
15722
 
15723
+ /***/ }),
15724
+
15725
+ /***/ "1c70":
15726
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
15727
+
15728
+ "use strict";
15729
+ /* 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_bak_vue_vue_type_style_index_0_id_6b1bf5c4_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("b1f4");
15730
+ /* 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_bak_vue_vue_type_style_index_0_id_6b1bf5c4_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_bak_vue_vue_type_style_index_0_id_6b1bf5c4_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
15731
+ /* unused harmony reexport * */
15732
+
15733
+
15686
15734
  /***/ }),
15687
15735
 
15688
15736
  /***/ "1c80":
@@ -16269,12 +16317,12 @@ __webpack_require__.r(__webpack_exports__);
16269
16317
  }
16270
16318
  },
16271
16319
  methods: {
16272
- currentChange(page) {
16320
+ changePage(page) {
16273
16321
  this.config.page = page;
16274
16322
  this.$emit('change', this.config);
16275
16323
  this.$emit('changePage', this.config);
16276
16324
  },
16277
- sizeChange(size) {
16325
+ changeSize(size) {
16278
16326
  this.config.size = size;
16279
16327
  this.$emit('change', this.config);
16280
16328
  this.$emit('changeSize', this.config);
@@ -16300,8 +16348,8 @@ __webpack_require__.r(__webpack_exports__);
16300
16348
  "background": this.background
16301
16349
  },
16302
16350
  "on": {
16303
- "current-change": this.currentChange,
16304
- "size-change": this.sizeChange
16351
+ "current-change": this.changePage,
16352
+ "size-change": this.changeSize
16305
16353
  },
16306
16354
  "props": {
16307
16355
  ...props
@@ -16912,6 +16960,13 @@ module.exports = _default;
16912
16960
 
16913
16961
  /***/ }),
16914
16962
 
16963
+ /***/ "1eae":
16964
+ /***/ (function(module, exports, __webpack_require__) {
16965
+
16966
+ // extracted by mini-css-extract-plugin
16967
+
16968
+ /***/ }),
16969
+
16915
16970
  /***/ "1f03":
16916
16971
  /***/ (function(module, exports, __webpack_require__) {
16917
16972
 
@@ -18787,8 +18842,16 @@ module.exports = _default;
18787
18842
  __webpack_require__.r(__webpack_exports__);
18788
18843
  /* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6aaa");
18789
18844
  /* 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__);
18790
- /* harmony import */ var _components_AiconSelect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("db3d");
18791
- /* harmony import */ var _components_Aupload_Icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("7d0e");
18845
+ /* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("be09");
18846
+ /* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1__);
18847
+ /* harmony import */ var _components_AiconSelect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("db3d");
18848
+ /* harmony import */ var _components_Aupload_Icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("7d0e");
18849
+ /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("de00");
18850
+ /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_4__);
18851
+
18852
+
18853
+
18854
+
18792
18855
 
18793
18856
 
18794
18857
 
@@ -18814,8 +18877,8 @@ __webpack_require__.r(__webpack_exports__);
18814
18877
  /* harmony default export */ __webpack_exports__["default"] = ({
18815
18878
  name: 'AformItem',
18816
18879
  components: {
18817
- AiconSelect: _components_AiconSelect__WEBPACK_IMPORTED_MODULE_1__["default"],
18818
- Aupload: _components_Aupload_Icon__WEBPACK_IMPORTED_MODULE_2__["default"]
18880
+ AiconSelect: _components_AiconSelect__WEBPACK_IMPORTED_MODULE_2__["default"],
18881
+ Aupload: _components_Aupload_Icon__WEBPACK_IMPORTED_MODULE_3__["default"]
18819
18882
  },
18820
18883
  props: {
18821
18884
  config: {
@@ -18825,46 +18888,55 @@ __webpack_require__.r(__webpack_exports__);
18825
18888
  },
18826
18889
  data() {
18827
18890
  return {
18828
- random: Math.random()
18891
+ checked: false
18829
18892
  };
18830
18893
  },
18831
- watch: {
18832
- config: {
18833
- immediate: true,
18834
- handler() {
18835
- this.update();
18836
- }
18837
- }
18838
- },
18839
- created() {
18840
- this.update();
18841
- },
18842
18894
  destroyed() {
18843
- this.input = null;
18895
+ this.choose = null;
18844
18896
  this.change = null;
18845
18897
  this.filter = null;
18846
18898
  this.create = null;
18847
18899
  },
18848
18900
  methods: {
18849
- input(a) {
18850
- this.$emit('input', a);
18901
+ choose(a) {
18902
+ let {
18903
+ form,
18904
+ field,
18905
+ data = [],
18906
+ ...r
18907
+ } = this.config;
18908
+ let list = [];
18909
+ if (a) {
18910
+ data.forEach(a => list.push(`${a.value || a.code || a.id}`));
18911
+ form[field] = list;
18912
+ this.change(list);
18913
+ } else form[field] = undefined;
18914
+ r.choose && r.choose(a, form[field]);
18851
18915
  },
18852
18916
  change(a) {
18853
- const {
18854
- data = []
18917
+ let {
18918
+ form,
18919
+ field,
18920
+ data = [],
18921
+ ...r
18855
18922
  } = this.config;
18856
- this.config.change && this.config.change(a, data.length > 0 ? this.filter(data, a) : null);
18857
- },
18858
- update() {
18859
- this.random = Math.random();
18923
+ if (data && data.length > 0) {
18924
+ if (a.length == data.length) this.checked = true;else this.checked = false;
18925
+ this.$forceUpdate();
18926
+ }
18927
+ r.change && r.change(a, this.filter(a, data));
18860
18928
  },
18861
- filter(array = [], value = '') {
18862
- let data = {};
18863
- if (value != '') array.length > 0 && array.forEach(a => {
18864
- let index = a.value || a.code || a.id;
18865
- if (value == index) data = a;
18866
- });
18867
- return data;
18929
+ filter(value = '', array = []) {
18930
+ if (value != '') {
18931
+ if (array && array.length > 0) {
18932
+ let data = {};
18933
+ array.forEach(a => {
18934
+ let index = a.value || a.code || a.id;
18935
+ if (value == index) data = a;
18936
+ });
18937
+ return data;
18938
+ }
18939
+ }
18868
18940
  },
18869
18941
  create({
18870
18942
  form,
@@ -18872,29 +18944,63 @@ __webpack_require__.r(__webpack_exports__);
18872
18944
  ...r
18873
18945
  }) {
18874
18946
  const h = this.$createElement;
18875
- const style = {
18947
+ let on = {
18948
+ input: a => this.$emit('input', a),
18949
+ ...r,
18950
+ change: a => this.change(a)
18951
+ };
18952
+ let style = {
18876
18953
  width: '100%',
18877
18954
  ...r.style
18878
18955
  };
18879
- const label = r.text || r.label || r.title || '';
18880
- const values = (a = {}) => typeof a == 'string' ? a : `${a.value || a.code || a.id}`;
18881
- const labels = (a = {}) => typeof a == 'string' ? a : a.label || a.title || a.text || a.name;
18956
+ let label = r.text || r.label || r.title || '';
18957
+ let props = {
18958
+ clearable: true,
18959
+ filterable: true,
18960
+ collapseTags: true,
18961
+ ...r
18962
+ };
18963
+ let values = (a = {}) => typeof a == 'string' ? a : `${a.value || a.code || a.id}`;
18964
+ let labels = (a = {}) => typeof a == 'string' ? a : a.label || a.title || a.text || a.name;
18882
18965
  if (r.render) return r.render(form, this.config);
18883
18966
  switch (r.type) {
18884
- case 'input':
18967
+ case 'text':
18885
18968
  return h("el-input", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
18969
+ "attrs": {
18970
+ "maxlength": r.maxlength,
18971
+ "placeholder": r.placeholder || `请输入${label}`
18972
+ },
18886
18973
  "on": {
18887
- "input": this.input,
18888
- "change": this.change
18974
+ ...on
18975
+ }
18976
+ }, {
18977
+ style
18978
+ }, {
18979
+ "props": {
18980
+ ...props
18889
18981
  },
18982
+ "model": {
18983
+ value: form[field],
18984
+ callback: $$v => {
18985
+ this.$set(form, field, $$v);
18986
+ }
18987
+ }
18988
+ }]));
18989
+ case 'input':
18990
+ return h("el-input", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
18890
18991
  "attrs": {
18891
- "clearable": true,
18992
+ "maxlength": r.maxlength,
18892
18993
  "placeholder": r.placeholder || `请输入${label}`
18893
18994
  },
18894
- "style": style
18995
+ "on": {
18996
+ ...on
18997
+ }
18895
18998
  }, {
18896
- "props": r
18999
+ style
18897
19000
  }, {
19001
+ "props": {
19002
+ ...props
19003
+ },
18898
19004
  "model": {
18899
19005
  value: form[field],
18900
19006
  callback: $$v => {
@@ -18902,21 +19008,46 @@ __webpack_require__.r(__webpack_exports__);
18902
19008
  }
18903
19009
  }
18904
19010
  }]));
18905
- case 'password':
19011
+ case 'textarea':
18906
19012
  return h("el-input", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19013
+ "attrs": {
19014
+ "maxlength": r.maxlength,
19015
+ "rows": "6",
19016
+ "resize": "none",
19017
+ "placeholder": r.placeholder || `请输入${label}`
19018
+ },
18907
19019
  "on": {
18908
- "input": this.input,
18909
- "change": this.change
19020
+ ...on
19021
+ }
19022
+ }, {
19023
+ style
19024
+ }, {
19025
+ "props": {
19026
+ ...props
18910
19027
  },
19028
+ "model": {
19029
+ value: form[field],
19030
+ callback: $$v => {
19031
+ this.$set(form, field, $$v);
19032
+ }
19033
+ }
19034
+ }]));
19035
+ case 'password':
19036
+ return h("el-input", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
18911
19037
  "attrs": {
18912
- "clearable": true,
19038
+ "maxlength": r.maxlength,
18913
19039
  "placeholder": r.placeholder || `请输入${label}`,
18914
19040
  "show-password": true
18915
19041
  },
18916
- "style": style
19042
+ "on": {
19043
+ ...on
19044
+ }
18917
19045
  }, {
18918
- "props": r
19046
+ style
18919
19047
  }, {
19048
+ "props": {
19049
+ ...props
19050
+ },
18920
19051
  "model": {
18921
19052
  value: form[field],
18922
19053
  callback: $$v => {
@@ -18926,22 +19057,23 @@ __webpack_require__.r(__webpack_exports__);
18926
19057
  }]));
18927
19058
  case 'number':
18928
19059
  return h("el-input-number", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
18929
- "on": {
18930
- "input": this.input,
18931
- "change": this.change
18932
- },
18933
19060
  "attrs": {
18934
- "clearable": true,
18935
19061
  "min": 0,
18936
19062
  "max": 100000000,
19063
+ "maxlength": r.maxlength,
18937
19064
  "controls": false,
18938
19065
  "controls-position": "right",
18939
19066
  "placeholder": r.placeholder || `请输入${label}`
18940
19067
  },
18941
- "style": style
19068
+ "on": {
19069
+ ...on
19070
+ }
18942
19071
  }, {
18943
- "props": r
19072
+ style
18944
19073
  }, {
19074
+ "props": {
19075
+ ...props
19076
+ },
18945
19077
  "model": {
18946
19078
  value: form[field],
18947
19079
  callback: $$v => {
@@ -18951,27 +19083,38 @@ __webpack_require__.r(__webpack_exports__);
18951
19083
  }]));
18952
19084
  case 'select':
18953
19085
  return h("el-select", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
18954
- "on": {
18955
- "input": this.input,
18956
- "change": this.change
18957
- },
18958
19086
  "attrs": {
18959
- "clearable": true,
18960
- "filterable": true,
18961
- "collapse-tags": true,
18962
19087
  "placeholder": r.placeholder || `请选择${label}`
18963
19088
  },
18964
- "style": style
19089
+ "on": {
19090
+ ...on
19091
+ }
18965
19092
  }, {
18966
- "props": r
19093
+ style
18967
19094
  }, {
19095
+ "props": {
19096
+ ...props
19097
+ },
18968
19098
  "model": {
18969
19099
  value: form[field],
18970
19100
  callback: $$v => {
18971
19101
  this.$set(form, field, $$v);
18972
19102
  }
18973
19103
  }
18974
- }]), [r.data && r.data.length > 0 ? r.data.map((a, b) => h("el-option", {
19104
+ }]), [r.quick && r.multiple && h("li", {
19105
+ "key": "all",
19106
+ "class": `a-form-item select el-select-dropdown__item ${this.checked ? 'selected' : ''}`
19107
+ }, [h("el-checkbox", {
19108
+ "on": {
19109
+ "change": this.choose
19110
+ },
19111
+ "model": {
19112
+ value: this.checked,
19113
+ callback: $$v => {
19114
+ this.checked = $$v;
19115
+ }
19116
+ }
19117
+ }, ["\u5168\u90E8"])]), r.data && r.data.length > 0 ? r.data.map((a, b) => h("el-option", {
18975
19118
  "key": b,
18976
19119
  "attrs": {
18977
19120
  "label": labels(a),
@@ -18980,20 +19123,19 @@ __webpack_require__.r(__webpack_exports__);
18980
19123
  })) : []]);
18981
19124
  case 'cascader':
18982
19125
  return h("el-cascader", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
18983
- "on": {
18984
- "input": this.input,
18985
- "change": this.change
18986
- },
18987
19126
  "attrs": {
18988
19127
  "options": r.data || [],
18989
- "clearable": true,
18990
- "filterable": true,
18991
19128
  "placeholder": r.placeholder || `请选择${label}`
18992
19129
  },
18993
- "style": style
19130
+ "on": {
19131
+ ...on
19132
+ }
18994
19133
  }, {
18995
- "props": r
19134
+ style
18996
19135
  }, {
19136
+ "props": {
19137
+ ...props
19138
+ },
18997
19139
  "model": {
18998
19140
  value: form[field],
18999
19141
  callback: $$v => {
@@ -19004,13 +19146,14 @@ __webpack_require__.r(__webpack_exports__);
19004
19146
  case 'checkbox':
19005
19147
  return h("el-checkbox", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19006
19148
  "on": {
19007
- "input": this.input,
19008
- "change": this.change
19009
- },
19010
- "style": style
19149
+ ...on
19150
+ }
19011
19151
  }, {
19012
- "props": r
19152
+ style
19013
19153
  }, {
19154
+ "props": {
19155
+ ...props
19156
+ },
19014
19157
  "model": {
19015
19158
  value: form[field],
19016
19159
  callback: $$v => {
@@ -19021,13 +19164,14 @@ __webpack_require__.r(__webpack_exports__);
19021
19164
  case 'checkboxGroup':
19022
19165
  return h("el-checkbox-group", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19023
19166
  "on": {
19024
- "input": this.input,
19025
- "change": this.change
19026
- },
19027
- "style": style
19167
+ ...on
19168
+ }
19028
19169
  }, {
19029
- "props": r
19170
+ style
19030
19171
  }, {
19172
+ "props": {
19173
+ ...props
19174
+ },
19031
19175
  "model": {
19032
19176
  value: form[field],
19033
19177
  callback: $$v => {
@@ -19043,13 +19187,14 @@ __webpack_require__.r(__webpack_exports__);
19043
19187
  case 'radio':
19044
19188
  return h("el-radio-group", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19045
19189
  "on": {
19046
- "input": this.input,
19047
- "change": this.change
19048
- },
19049
- "style": style
19190
+ ...on
19191
+ }
19050
19192
  }, {
19051
- "props": r
19193
+ style
19052
19194
  }, {
19195
+ "props": {
19196
+ ...props
19197
+ },
19053
19198
  "model": {
19054
19199
  value: form[field],
19055
19200
  callback: $$v => {
@@ -19064,10 +19209,6 @@ __webpack_require__.r(__webpack_exports__);
19064
19209
  }, [labels(a)])) : []]);
19065
19210
  case 'switch':
19066
19211
  return h("el-switch", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19067
- "on": {
19068
- "input": this.input,
19069
- "change": this.change
19070
- },
19071
19212
  "attrs": {
19072
19213
  "active-value": "1",
19073
19214
  "inactive-value": "0" || false,
@@ -19075,10 +19216,15 @@ __webpack_require__.r(__webpack_exports__);
19075
19216
  "inactive-text": "禁用",
19076
19217
  "active-color": "#13ce66"
19077
19218
  },
19078
- "style": style
19219
+ "on": {
19220
+ ...on
19221
+ }
19079
19222
  }, {
19080
- "props": r
19223
+ style
19081
19224
  }, {
19225
+ "props": {
19226
+ ...props
19227
+ },
19082
19228
  "model": {
19083
19229
  value: form[field],
19084
19230
  callback: $$v => {
@@ -19088,24 +19234,23 @@ __webpack_require__.r(__webpack_exports__);
19088
19234
  }]));
19089
19235
  case 'daterange':
19090
19236
  return h("el-date-picker", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19091
- "on": {
19092
- "input": this.input,
19093
- "change": this.change
19094
- },
19095
19237
  "attrs": {
19096
19238
  "align": "center",
19097
19239
  "format": "yyyy-MM-dd",
19098
19240
  "value-format": "yyyy-MM-dd HH:mm:ss",
19099
- "type": r.type,
19100
- "clearable": true,
19101
19241
  "placeholder": r.placeholder || `请选择${label}`,
19102
19242
  "start-placeholder": "开始",
19103
19243
  "end-placeholder": "结束"
19104
19244
  },
19105
- "style": style
19245
+ "on": {
19246
+ ...on
19247
+ }
19106
19248
  }, {
19107
- "props": r
19249
+ style
19108
19250
  }, {
19251
+ "props": {
19252
+ ...props
19253
+ },
19109
19254
  "model": {
19110
19255
  value: form[field],
19111
19256
  callback: $$v => {
@@ -19115,22 +19260,21 @@ __webpack_require__.r(__webpack_exports__);
19115
19260
  }]));
19116
19261
  case 'date':
19117
19262
  return h("el-date-picker", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19118
- "on": {
19119
- "input": this.input,
19120
- "change": this.change
19121
- },
19122
19263
  "attrs": {
19123
19264
  "align": "center",
19124
19265
  "format": "yyyy-MM-dd",
19125
19266
  "value-format": "yyyy-MM-dd HH:mm:ss",
19126
- "type": r.type,
19127
- "clearable": true,
19128
19267
  "placeholder": r.placeholder || `请选择${label}`
19129
19268
  },
19130
- "style": style
19269
+ "on": {
19270
+ ...on
19271
+ }
19131
19272
  }, {
19132
- "props": r
19273
+ style
19133
19274
  }, {
19275
+ "props": {
19276
+ ...props
19277
+ },
19134
19278
  "model": {
19135
19279
  value: form[field],
19136
19280
  callback: $$v => {
@@ -19140,20 +19284,19 @@ __webpack_require__.r(__webpack_exports__);
19140
19284
  }]));
19141
19285
  case 'time':
19142
19286
  return h("el-time-picker", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19143
- "on": {
19144
- "input": this.input,
19145
- "change": this.change
19146
- },
19147
19287
  "attrs": {
19148
19288
  "align": "center",
19149
- "type": r.type,
19150
- "clearable": true,
19151
19289
  "placeholder": r.placeholder || `请选择${label}`
19152
19290
  },
19153
- "style": style
19291
+ "on": {
19292
+ ...on
19293
+ }
19154
19294
  }, {
19155
- "props": r
19295
+ style
19156
19296
  }, {
19297
+ "props": {
19298
+ ...props
19299
+ },
19157
19300
  "model": {
19158
19301
  value: form[field],
19159
19302
  callback: $$v => {
@@ -19163,20 +19306,19 @@ __webpack_require__.r(__webpack_exports__);
19163
19306
  }]));
19164
19307
  case 'year':
19165
19308
  return h("el-date-picker", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19166
- "on": {
19167
- "input": this.input,
19168
- "change": this.change
19169
- },
19170
19309
  "attrs": {
19171
19310
  "align": "center",
19172
- "type": r.type,
19173
- "clearable": true,
19174
19311
  "placeholder": r.placeholder || `请选择${label}`
19175
19312
  },
19176
- "style": style
19313
+ "on": {
19314
+ ...on
19315
+ }
19177
19316
  }, {
19178
- "props": r
19317
+ style
19179
19318
  }, {
19319
+ "props": {
19320
+ ...props
19321
+ },
19180
19322
  "model": {
19181
19323
  value: form[field],
19182
19324
  callback: $$v => {
@@ -19186,20 +19328,19 @@ __webpack_require__.r(__webpack_exports__);
19186
19328
  }]));
19187
19329
  case 'month':
19188
19330
  return h("el-date-picker", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19189
- "on": {
19190
- "input": this.input,
19191
- "change": this.change
19192
- },
19193
19331
  "attrs": {
19194
19332
  "align": "center",
19195
- "type": r.type,
19196
- "clearable": true,
19197
19333
  "placeholder": r.placeholder || `请选择${label}`
19198
19334
  },
19199
- "style": style
19335
+ "on": {
19336
+ ...on
19337
+ }
19200
19338
  }, {
19201
- "props": r
19339
+ style
19202
19340
  }, {
19341
+ "props": {
19342
+ ...props
19343
+ },
19203
19344
  "model": {
19204
19345
  value: form[field],
19205
19346
  callback: $$v => {
@@ -19209,18 +19350,19 @@ __webpack_require__.r(__webpack_exports__);
19209
19350
  }]));
19210
19351
  case 'color':
19211
19352
  return h("el-color-picker", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19212
- "on": {
19213
- "input": this.input,
19214
- "change": this.change
19215
- },
19216
19353
  "attrs": {
19217
19354
  "size": this.size,
19218
19355
  "placeholder": r.placeholder || `请选择${label}`
19219
19356
  },
19220
- "style": style
19357
+ "on": {
19358
+ ...on
19359
+ }
19221
19360
  }, {
19222
- "props": r
19361
+ style
19223
19362
  }, {
19363
+ "props": {
19364
+ ...props
19365
+ },
19224
19366
  "model": {
19225
19367
  value: form[field],
19226
19368
  callback: $$v => {
@@ -19229,20 +19371,20 @@ __webpack_require__.r(__webpack_exports__);
19229
19371
  }
19230
19372
  }]));
19231
19373
  case 'image':
19232
- return h(_components_Aupload_Icon__WEBPACK_IMPORTED_MODULE_2__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19233
- "key": this.random,
19234
- "on": {
19235
- "input": this.input,
19236
- "change": this.change
19237
- },
19374
+ return h(_components_Aupload_Icon__WEBPACK_IMPORTED_MODULE_3__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19238
19375
  "attrs": {
19239
19376
  "src": form[field],
19240
19377
  "placeholder": r.placeholder || `请选择${label}`
19241
19378
  },
19242
- "style": style
19379
+ "on": {
19380
+ ...on
19381
+ }
19243
19382
  }, {
19244
- "props": r
19383
+ style
19245
19384
  }, {
19385
+ "props": {
19386
+ ...props
19387
+ },
19246
19388
  "model": {
19247
19389
  value: form[field],
19248
19390
  callback: $$v => {
@@ -19251,20 +19393,20 @@ __webpack_require__.r(__webpack_exports__);
19251
19393
  }
19252
19394
  }]));
19253
19395
  case 'upload':
19254
- return h(_components_Aupload_Icon__WEBPACK_IMPORTED_MODULE_2__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19255
- "key": this.random,
19256
- "on": {
19257
- "input": this.input,
19258
- "change": this.change
19259
- },
19396
+ return h(_components_Aupload_Icon__WEBPACK_IMPORTED_MODULE_3__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19260
19397
  "attrs": {
19261
19398
  "src": form[field],
19262
19399
  "placeholder": r.placeholder || `请选择${label}`
19263
19400
  },
19264
- "style": style
19401
+ "on": {
19402
+ ...on
19403
+ }
19265
19404
  }, {
19266
- "props": r
19405
+ style
19267
19406
  }, {
19407
+ "props": {
19408
+ ...props
19409
+ },
19268
19410
  "model": {
19269
19411
  value: form[field],
19270
19412
  callback: $$v => {
@@ -19273,19 +19415,19 @@ __webpack_require__.r(__webpack_exports__);
19273
19415
  }
19274
19416
  }]));
19275
19417
  case 'icon':
19276
- return h(_components_AiconSelect__WEBPACK_IMPORTED_MODULE_1__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19277
- "key": this.random,
19278
- "on": {
19279
- "input": this.input,
19280
- "change": this.change
19281
- },
19418
+ return h(_components_AiconSelect__WEBPACK_IMPORTED_MODULE_2__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19282
19419
  "attrs": {
19283
19420
  "placeholder": r.placeholder || `请选择${label}`
19284
19421
  },
19285
- "style": style
19422
+ "on": {
19423
+ ...on
19424
+ }
19286
19425
  }, {
19287
- "props": r
19426
+ style
19288
19427
  }, {
19428
+ "props": {
19429
+ ...props
19430
+ },
19289
19431
  "model": {
19290
19432
  value: form[field],
19291
19433
  callback: $$v => {
@@ -19294,19 +19436,19 @@ __webpack_require__.r(__webpack_exports__);
19294
19436
  }
19295
19437
  }]));
19296
19438
  case 'iconSelect':
19297
- return h(_components_AiconSelect__WEBPACK_IMPORTED_MODULE_1__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19298
- "key": this.random,
19299
- "on": {
19300
- "input": this.input,
19301
- "change": this.change
19302
- },
19439
+ return h(_components_AiconSelect__WEBPACK_IMPORTED_MODULE_2__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19303
19440
  "attrs": {
19304
19441
  "placeholder": r.placeholder || `请选择${label}`
19305
19442
  },
19306
- "style": style
19443
+ "on": {
19444
+ ...on
19445
+ }
19307
19446
  }, {
19308
- "props": r
19447
+ style
19309
19448
  }, {
19449
+ "props": {
19450
+ ...props
19451
+ },
19310
19452
  "model": {
19311
19453
  value: form[field],
19312
19454
  callback: $$v => {
@@ -19316,18 +19458,19 @@ __webpack_require__.r(__webpack_exports__);
19316
19458
  }]));
19317
19459
  default:
19318
19460
  return h("el-input", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19319
- "on": {
19320
- "input": this.input,
19321
- "change": this.change
19322
- },
19323
19461
  "attrs": {
19324
- "clearable": true,
19462
+ "maxlength": r.maxlength,
19325
19463
  "placeholder": r.placeholder || `请输入${label}`
19326
19464
  },
19327
- "style": style
19465
+ "on": {
19466
+ ...on
19467
+ }
19328
19468
  }, {
19329
- "props": r
19469
+ style
19330
19470
  }, {
19471
+ "props": {
19472
+ ...props
19473
+ },
19331
19474
  "model": {
19332
19475
  value: form[field],
19333
19476
  callback: $$v => {
@@ -24510,6 +24653,9 @@ module.exports = _default;
24510
24653
 
24511
24654
  "use strict";
24512
24655
  __webpack_require__.r(__webpack_exports__);
24656
+ /* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6aaa");
24657
+ /* 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__);
24658
+
24513
24659
  /* harmony default export */ __webpack_exports__["default"] = ({
24514
24660
  name: 'Atabs',
24515
24661
  props: {
@@ -24545,13 +24691,16 @@ __webpack_require__.r(__webpack_exports__);
24545
24691
  ...props
24546
24692
  } = this.$attrs;
24547
24693
  const data = this.option.length > 0 ? this.option : this.config.length > 0 ? this.config : this.data.length > 0 ? this.data : [];
24548
- return h("el-tabs", {
24694
+ return h("el-tabs", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
24549
24695
  "attrs": {
24550
24696
  "type": type
24551
24697
  },
24552
24698
  "on": {
24553
24699
  "tab-click": this.change
24554
- },
24700
+ }
24701
+ }, {
24702
+ "on": props
24703
+ }, {
24555
24704
  "props": {
24556
24705
  ...props
24557
24706
  },
@@ -24561,7 +24710,7 @@ __webpack_require__.r(__webpack_exports__);
24561
24710
  this.active = $$v;
24562
24711
  }
24563
24712
  }
24564
- }, [data.length > 0 && data.map((a, b) => {
24713
+ }]), [data.length > 0 && data.map((a, b) => {
24565
24714
  let label = a.text || a.name || a.label || a.title || `${a}`;
24566
24715
  let value = a.value || a.code || a.id || `${b}`;
24567
24716
  return h("el-tab-pane", {
@@ -24570,9 +24719,9 @@ __webpack_require__.r(__webpack_exports__);
24570
24719
  "label": label,
24571
24720
  "name": value
24572
24721
  }
24573
- }, [a.render ? a.render() : h("div", {
24722
+ }, [this.active == value && (a.render ? a.render(a) : h("div", {
24574
24723
  "key": b
24575
- }, [this.$slots[label]])]);
24724
+ }, [this.$slots[label]]))]);
24576
24725
  }), this.$slots.default]);
24577
24726
  },
24578
24727
  click({
@@ -25001,7 +25150,7 @@ __webpack_require__.r(__webpack_exports__);
25001
25150
  type: Array,
25002
25151
  default: () => []
25003
25152
  },
25004
- roles: {
25153
+ routes: {
25005
25154
  type: String,
25006
25155
  default: () => ''
25007
25156
  },
@@ -25026,11 +25175,11 @@ __webpack_require__.r(__webpack_exports__);
25026
25175
  "gutter": 40
25027
25176
  }
25028
25177
  }, [this.data && this.data.length > 0 && this.data.map((a, b) => {
25029
- if (this.roles && this.roles != '') {
25178
+ if (this.routes && this.routes != '') {
25030
25179
  return h(_components_Aauthority__WEBPACK_IMPORTED_MODULE_0__["default"], {
25031
25180
  "attrs": {
25032
- "role": `${a.id}`,
25033
- "roles": this.roles
25181
+ "route": `${a.id}`,
25182
+ "routes": this.routes
25034
25183
  }
25035
25184
  }, [h("el-col", {
25036
25185
  "attrs": {
@@ -34390,75 +34539,91 @@ __webpack_require__.r(__webpack_exports__);
34390
34539
  props: {
34391
34540
  ip: {
34392
34541
  type: String,
34393
- default: () => '127.0.0.1'
34542
+ default: () => '127.0.0.1:8000'
34394
34543
  },
34395
- port: {
34544
+ type: {
34396
34545
  type: String,
34397
- default: () => '8000'
34546
+ default: () => 'ws'
34398
34547
  },
34399
- domain: {
34548
+ ping: {
34400
34549
  type: String,
34401
- default: () => ''
34550
+ default: () => 'ping'
34402
34551
  },
34403
- type: {
34404
- type: String,
34405
- default: () => 'ws'
34552
+ delay: {
34553
+ type: Number,
34554
+ default: () => 3000
34406
34555
  },
34407
34556
  enable: {
34408
34557
  type: Boolean,
34409
- default: () => false
34558
+ default: () => true
34559
+ },
34560
+ prompt: {
34561
+ type: Boolean,
34562
+ default: () => true
34410
34563
  }
34411
34564
  },
34412
34565
  data() {
34413
34566
  return {
34414
- status: false,
34415
- session: null
34567
+ host: this.ip.includes('://') ? this.ip : `${this.type}://${this.ip}`,
34568
+ status: this.enable,
34569
+ session: null,
34570
+ interval: null
34416
34571
  };
34417
34572
  },
34418
34573
  created() {
34419
34574
  this.create();
34420
34575
  },
34421
- beforeDestory() {
34576
+ beforeDestroy() {
34422
34577
  this.cancel();
34423
34578
  },
34424
34579
  methods: {
34425
34580
  create() {
34426
- this.status = this.enable;
34427
34581
  if (this.status) {
34428
- let domain = this.domain != '' ? this.domain : this.ip.includes(':') ? this.ip : `${this.ip}:${this.port}`;
34429
- this.session = new WebSocket(`${this.type}://${domain}`);
34430
- if (this.session && this.session.readyState == 1) {
34431
- this.session.open = a => this.open(a);
34432
- this.session.message = a => this.message(a);
34433
- this.session.error = a => this.error(a);
34434
- this.session.close = a => this.close(a);
34582
+ this.session = new WebSocket(this.host);
34583
+ if (this.session) {
34584
+ this.session.onopen = a => {
34585
+ this.interval = setInterval(() => this.session.send(this.ping), this.delay); // 心跳检测WS
34586
+ this.$emit('open', a);
34587
+ };
34588
+ this.session.onmessage = ({
34589
+ data = ''
34590
+ }) => {
34591
+ if (data && data != '') {
34592
+ let info = JSON.parse(data);
34593
+ this.prompt && this.$notify.info({
34594
+ title: '新消息提示',
34595
+ message: `收到来自${info.sendName}的消息.`,
34596
+ position: 'bottom-right',
34597
+ onClick: () => {
34598
+ this.$emit('click', info);
34599
+ this.$emit('select', info);
34600
+ }
34601
+ });
34602
+ this.$emit('message', data);
34603
+ }
34604
+ };
34605
+ this.session.onerror = a => {
34606
+ this.cancel();
34607
+ this.$emit('error', a);
34608
+ };
34609
+ this.session.onclose = a => {
34610
+ this.cancel();
34611
+ this.$emit('close', a);
34612
+ };
34435
34613
  this.$emit('create', this.session);
34436
- } else this.cancel(this.session);
34437
- }
34438
- },
34439
- open(a) {
34440
- console.log('open', a);
34441
- this.$emit('open', a);
34442
- },
34443
- message({
34444
- data,
34445
- ...a
34446
- }) {
34447
- console.log('message', a);
34448
- if (data) this.$emit('message', JSON.parse(data));
34449
- },
34450
- error(a) {
34451
- console.log('error', a);
34452
- this.$emit('error', a);
34453
- },
34454
- close(a) {
34455
- console.log('close', a);
34456
- this.$emit('close', a);
34614
+ }
34615
+ } else this.cancel();
34457
34616
  },
34458
- cancel(a) {
34459
- this.$emit('cancel', a);
34460
- this.session = null;
34461
- this.status = false;
34617
+ cancel() {
34618
+ this.$emit('cancel', this.status);
34619
+ this.$nextTick(() => {
34620
+ clearInterval(this.interval);
34621
+ this.$nextTick(() => {
34622
+ this.interval = null;
34623
+ this.session = null;
34624
+ this.status = false;
34625
+ });
34626
+ });
34462
34627
  }
34463
34628
  },
34464
34629
  render() {
@@ -36228,6 +36393,7 @@ var map = {
36228
36393
  "./Amodal/index.js": "9295",
36229
36394
  "./Aoption/index.js": "1aa8",
36230
36395
  "./Apages/index.js": "1d0c",
36396
+ "./ApasswordInput/index.js": "e4ec",
36231
36397
  "./Apopconfirm/index.js": "2ee7",
36232
36398
  "./Apopover/index.js": "1398",
36233
36399
  "./Areminder/index.js": "e241",
@@ -36246,6 +36412,7 @@ var map = {
36246
36412
  "./Atitle/index.js": "8848",
36247
36413
  "./Atooltip/index.js": "fbc2",
36248
36414
  "./Atransfer/index.js": "6bde",
36415
+ "./Aupload/index.js": "fafd",
36249
36416
  "./AwebSocket/index.js": "5209",
36250
36417
  "./Bcard/index.js": "4df8",
36251
36418
  "./BformItem/index.js": "5c61",
@@ -36627,17 +36794,6 @@ exports.scale = scale;
36627
36794
  exports.invert = invert;
36628
36795
  exports.clone = clone;
36629
36796
 
36630
- /***/ }),
36631
-
36632
- /***/ "5934":
36633
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
36634
-
36635
- "use strict";
36636
- /* 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");
36637
- /* 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__);
36638
- /* unused harmony reexport * */
36639
-
36640
-
36641
36797
  /***/ }),
36642
36798
 
36643
36799
  /***/ "5974":
@@ -37781,6 +37937,7 @@ __webpack_require__.r(__webpack_exports__);
37781
37937
  /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_0__);
37782
37938
 
37783
37939
  /* harmony default export */ __webpack_exports__["default"] = ({
37940
+ name: 'Aupload',
37784
37941
  props: {
37785
37942
  type: {
37786
37943
  type: String,
@@ -37792,8 +37949,9 @@ __webpack_require__.r(__webpack_exports__);
37792
37949
  },
37793
37950
  listType: {
37794
37951
  type: String,
37795
- default: () => 'picture-card'
37952
+ default: () => ''
37796
37953
  },
37954
+ // picture-card
37797
37955
  autoUpload: {
37798
37956
  type: Boolean,
37799
37957
  default: () => false
@@ -37842,8 +38000,8 @@ __webpack_require__.r(__webpack_exports__);
37842
38000
  "attrs": {
37843
38001
  "action": this.action,
37844
38002
  "list-type": this.listType,
37845
- "auto-upload": this.autoUpload,
37846
38003
  "http-request": this.upload,
38004
+ "auto-upload": this.autoUpload,
37847
38005
  "show-file-list": this.showFileList,
37848
38006
  "file-list": this.list
37849
38007
  },
@@ -60634,17 +60792,6 @@ __webpack_require__.r(__webpack_exports__);
60634
60792
  }
60635
60793
  });
60636
60794
 
60637
- /***/ }),
60638
-
60639
- /***/ "9211":
60640
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
60641
-
60642
- "use strict";
60643
- /* 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_002e4876_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("ba6c");
60644
- /* 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_002e4876_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_002e4876_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
60645
- /* unused harmony reexport * */
60646
-
60647
-
60648
60795
  /***/ }),
60649
60796
 
60650
60797
  /***/ "9226":
@@ -127422,143 +127569,6 @@ module.exports = function (it) {
127422
127569
  };
127423
127570
 
127424
127571
 
127425
- /***/ }),
127426
-
127427
- /***/ "a61e":
127428
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
127429
-
127430
- "use strict";
127431
- // ESM COMPAT FLAG
127432
- __webpack_require__.r(__webpack_exports__);
127433
-
127434
- // 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/Aupload/index.vue?vue&type=template&id=002e4876&scoped=true&
127435
- var render = function render() {
127436
- var _vm = this,
127437
- _c = _vm._self._c;
127438
- return _c('div', {
127439
- staticClass: "a-upload"
127440
- }, [_c('el-upload', {
127441
- attrs: {
127442
- "action": _vm.action,
127443
- "multiple": _vm.multiple,
127444
- "limit": Number(_vm.limit),
127445
- "list-type": "picture-card",
127446
- "auto-upload": false,
127447
- "http-request": _vm.upload,
127448
- "on-change": e => _vm.upload(e),
127449
- "before-remove": e => _vm.upload(e),
127450
- "file-list": _vm.list
127451
- }
127452
- }, [_vm.src ? _c('img', {
127453
- attrs: {
127454
- "src": _vm.src
127455
- }
127456
- }) : _c('i', {
127457
- staticClass: "el-icon-plus"
127458
- })])], 1);
127459
- };
127460
- var staticRenderFns = [];
127461
-
127462
- // CONCATENATED MODULE: ./src/components/Aupload/index.vue?vue&type=template&id=002e4876&scoped=true&
127463
-
127464
- // 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/Aupload/index.vue?vue&type=script&lang=js&
127465
- /* harmony default export */ var Auploadvue_type_script_lang_js_ = ({
127466
- name: 'Aupload',
127467
- props: {
127468
- previewUrl: {
127469
- type: String,
127470
- default: () => '/api/file/detail/path='
127471
- },
127472
- type: {
127473
- type: String,
127474
- default: () => 'image'
127475
- },
127476
- action: {
127477
- type: String,
127478
- default: () => '#'
127479
- },
127480
- multiple: {
127481
- type: Boolean,
127482
- default: () => false
127483
- },
127484
- limit: {
127485
- type: String,
127486
- default: () => '10'
127487
- },
127488
- listType: {
127489
- type: String,
127490
- default: () => 'picture-card'
127491
- },
127492
- autoUpload: {
127493
- type: Boolean,
127494
- default: () => false
127495
- },
127496
- fileList: {
127497
- type: Array,
127498
- default: () => []
127499
- },
127500
- showFileList: {
127501
- type: Boolean,
127502
- default: () => false
127503
- }
127504
- },
127505
- data() {
127506
- return {
127507
- list: [],
127508
- src: ''
127509
- };
127510
- },
127511
- created() {
127512
- this.create();
127513
- },
127514
- methods: {
127515
- create() {
127516
- this.list = this.fileList.concat(this.list);
127517
- },
127518
- change(e) {
127519
- this.$emit('change', e);
127520
- },
127521
- finish(e) {
127522
- this.$emit('finish', e);
127523
- },
127524
- upload(e) {
127525
- this.$emit('upload', e);
127526
- },
127527
- remove(e) {
127528
- this.$emit('remove', e);
127529
- }
127530
- }
127531
- });
127532
- // CONCATENATED MODULE: ./src/components/Aupload/index.vue?vue&type=script&lang=js&
127533
- /* harmony default export */ var components_Auploadvue_type_script_lang_js_ = (Auploadvue_type_script_lang_js_);
127534
- // EXTERNAL MODULE: ./src/components/Aupload/index.vue?vue&type=style&index=0&id=002e4876&prod&scoped=true&lang=css&
127535
- var Auploadvue_type_style_index_0_id_002e4876_prod_scoped_true_lang_css_ = __webpack_require__("9211");
127536
-
127537
- // EXTERNAL MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/runtime/componentNormalizer.js
127538
- var componentNormalizer = __webpack_require__("e607");
127539
-
127540
- // CONCATENATED MODULE: ./src/components/Aupload/index.vue
127541
-
127542
-
127543
-
127544
-
127545
-
127546
-
127547
- /* normalize component */
127548
-
127549
- var component = Object(componentNormalizer["a" /* default */])(
127550
- components_Auploadvue_type_script_lang_js_,
127551
- render,
127552
- staticRenderFns,
127553
- false,
127554
- null,
127555
- "002e4876",
127556
- null
127557
-
127558
- )
127559
-
127560
- /* harmony default export */ var Aupload = __webpack_exports__["default"] = (component.exports);
127561
-
127562
127572
  /***/ }),
127563
127573
 
127564
127574
  /***/ "a624":
@@ -132316,371 +132326,31 @@ module.exports = _default;
132316
132326
  __webpack_require__.r(__webpack_exports__);
132317
132327
  /* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6aaa");
132318
132328
  /* 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__);
132319
- /* harmony import */ var _components_AformItem__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("2234");
132329
+ /* harmony import */ var _components_Aform_AfEditor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("b550");
132320
132330
  /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("d397");
132321
132331
  /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_2__);
132322
132332
 
132323
132333
 
132324
132334
 
132325
-
132326
132335
  /* harmony default export */ __webpack_exports__["default"] = ({
132327
132336
  name: 'Aform',
132328
- props: {
132329
- value: {
132330
- type: Object,
132331
- default: () => ({})
132332
- },
132333
- must: {
132334
- type: Boolean,
132335
- default: () => false
132336
- },
132337
- inline: {
132338
- type: Boolean,
132339
- default: () => false
132340
- },
132341
- cols: {
132342
- type: String,
132343
- default: () => '4'
132344
- },
132345
- gutter: {
132346
- type: String,
132347
- default: () => '16'
132348
- },
132349
- config: {
132350
- type: Object,
132351
- default: () => ({})
132352
- },
132353
- values: {
132354
- type: Object,
132355
- default: () => ({})
132356
- },
132357
- global: {
132358
- type: Boolean,
132359
- default: () => false
132360
- },
132361
- disabled: {
132362
- type: Boolean,
132363
- default: () => false
132364
- }
132365
- },
132366
- data() {
132367
- return {
132368
- form: this.value,
132369
- option: {}
132370
- };
132371
- },
132372
- watch: {
132373
- config: {
132374
- immediate: true,
132375
- deep: true,
132376
- handler() {
132377
- this.relate(this.config);
132378
- }
132379
- },
132380
- values: {
132381
- immediate: true,
132382
- deep: true,
132383
- handler() {
132384
- this.relate(this.config);
132385
- }
132386
- }
132387
- },
132388
- created() {
132389
- this.relate(this.config);
132390
- },
132391
- methods: {
132392
- input() {
132393
- this.$emit('input', this.filter());
132394
- },
132395
- change() {
132396
- this.$emit('change', this.filter(), this.form, this.option);
132397
- },
132398
- relate(config = {}) {
132399
- let data = {};
132400
- Object.keys(config).forEach(a => {
132401
- let {
132402
- ...r
132403
- } = config[a];
132404
- let child = r.children || r.child || r.node || null;
132405
- if (child && Object.keys(child).length > 0) {
132406
- this.relate(child);
132407
- } else {
132408
- if (r.type == 'password') {
132409
- data[a] = '';
132410
- } else {
132411
- if (this.values[a] != undefined) {
132412
- data[a] = `${this.values[a]}`;
132413
- } else if (r.default) {
132414
- data[a] = r.default;
132415
- }
132416
- }
132417
- }
132418
- });
132419
- this.form = data;
132420
- },
132421
- create(a, b) {
132422
- const h = this.$createElement;
132423
- let {
132424
- ...r
132425
- } = this.config[a];
132426
- let label = r.text || r.label || r.title || '';
132427
- let width = r.width ? r.width : `${100 / this.cols}%`;
132428
- let judge = [{
132429
- required: true,
132430
- message: `${label}不能为空`
132431
- }];
132432
- let valid = r.rule ? r.rule : r.must || this.must ? judge : [];
132433
- let rules = this.disabled || r.disabled ? [] : (r.must || this.must) && r.rule ? [...judge, ...r.rule] : valid;
132434
- let props = {
132435
- name: a,
132436
- prop: a,
132437
- label,
132438
- rules,
132439
- disabled: r.disabled || this.disabled,
132440
- ...r
132441
- };
132442
- if (this.inline) {
132443
- let style = {
132444
- padding: `0 ${this.gutter / 2}px`,
132445
- width
132446
- };
132447
- return h("el-form-item", {
132448
- "style": style,
132449
- "props": {
132450
- ...props
132451
- }
132452
- }, [this.format(r, a)]);
132453
- } else {
132454
- if (r.span) {
132455
- return h("el-col", {
132456
- "key": b,
132457
- "attrs": {
132458
- "span": Number(r.span)
132459
- }
132460
- }, [h("el-form-item", {
132461
- "props": {
132462
- ...props
132463
- }
132464
- }, [this.format(r, a)])]);
132465
- } else {
132466
- return h("el-col", {
132467
- "key": b,
132468
- "style": {
132469
- width
132470
- }
132471
- }, [h("el-form-item", {
132472
- "props": {
132473
- ...props
132474
- }
132475
- }, [this.format(r, a)])]);
132476
- }
132477
- }
132478
- },
132479
- format(a, b) {
132480
- const h = this.$createElement;
132481
- this.option[b] = a;
132482
- let child = a.children || a.child || a.node || null;
132483
- if (child && Object.keys(child).length > 0) {
132484
- return Object.keys(child).map((c, d) => {
132485
- let {
132486
- ...r
132487
- } = child[c];
132488
- let space = a.gutter ? a.gutter / 2 : this.gutter / 4;
132489
- let style = {
132490
- padding: `0 ${space}px`
132491
- };
132492
- r.type = r.type ? r.type : a.type;
132493
- if (r.span) {
132494
- return h("el-col", {
132495
- "key": d,
132496
- "style": style,
132497
- "attrs": {
132498
- "span": Number(r.span)
132499
- }
132500
- }, [this.format(r, c)]);
132501
- } else {
132502
- let width = r.width ? r.width : `${100 / Object.keys(child).length}%`;
132503
- return h("el-col", {
132504
- "key": d,
132505
- "style": {
132506
- width,
132507
- ...style
132508
- }
132509
- }, [this.format(r, c)]);
132510
- }
132511
- });
132512
- } else {
132513
- let config = {
132514
- change: () => this.change(),
132515
- form: this.form,
132516
- field: b,
132517
- clearable: !a.default,
132518
- ...a
132519
- };
132520
- return h(_components_AformItem__WEBPACK_IMPORTED_MODULE_1__["default"], {
132521
- "on": {
132522
- "input": this.input
132523
- },
132524
- "attrs": {
132525
- "config": config
132526
- }
132527
- });
132528
- }
132529
- },
132530
- filter() {
132531
- let data = {};
132532
- Object.keys(this.form).length > 0 && Object.keys(this.form).forEach(a => {
132533
- if (this.option[a]) {
132534
- let {
132535
- ...r
132536
- } = this.option[a];
132537
- if (r.split && r.split.length > 0) {
132538
- r.split.forEach((b, c) => data[b] = this.form[a][c]);
132539
- } else data[a] = this.form[a];
132540
- }
132541
- });
132542
- return data;
132543
- },
132544
- submit() {
132545
- if (this.global) {
132546
- const {
132547
- pageParams
132548
- } = this.$store.state;
132549
- this.$store.commit('setFormParams', this.filter());
132550
- this.$store.commit('setPageParams', {
132551
- ...pageParams,
132552
- page: 1
132553
- });
132554
- }
132555
- this.$nextTick(() => this.$emit('submit', this.filter(), this.form, this.option));
132556
- },
132557
- cancel() {
132558
- this.$refs.form && this.$refs.form.resetFields && this.$refs.form.resetFields();
132559
- this.$nextTick(() => {
132560
- this.form = {};
132561
- this.$nextTick(() => {
132562
- this.relate(this.config);
132563
- this.$nextTick(() => {
132564
- if (this.global) {
132565
- const {
132566
- pageParams
132567
- } = this.$store.state;
132568
- this.$store.commit('setFormParams', this.filter());
132569
- this.$store.commit('setPageParams', {
132570
- ...pageParams,
132571
- page: 1
132572
- });
132573
- }
132574
- this.$nextTick(() => this.$emit('cancel', this.filter(), this.form, this.option));
132575
- });
132576
- });
132577
- });
132578
- }
132579
- },
132580
132337
  render() {
132581
132338
  const h = arguments[0];
132582
132339
  let {
132583
- margin = '0',
132584
- padding = '0',
132585
- size = 'small',
132586
- loading = false,
132587
- labelWidth = 'auto',
132588
- labelPosition = 'top',
132589
- finishText = '保存',
132590
- submitText = '提交',
132591
- rejectText = '驳回',
132592
- cancelText = '取消',
132593
- action = [],
132594
- ...rest
132340
+ ...props
132595
132341
  } = this.$attrs;
132596
- let style = this.inline ? {
132597
- margin: `0 -${this.gutter / 2}px`
132598
- } : {};
132599
- let {
132600
- finish = null,
132601
- submit = null,
132602
- reject = null,
132603
- cancel = null
132604
- } = this.$listeners;
132605
- let props = {
132606
- size,
132607
- inline: this.inline,
132608
- labelWidth,
132609
- labelPosition,
132610
- style,
132611
- ...rest
132612
- };
132613
132342
  return h("div", {
132614
- "class": "a-form",
132615
- "style": {
132616
- margin,
132617
- padding
132618
- }
132619
- }, [h("el-form", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
132620
- "ref": "form"
132621
- }, {
132622
- "props": {
132623
- model: this.form,
132624
- ...props
132625
- }
132626
- }]), [this.inline ? Object.keys(this.config).map((a, b) => this.create(a, b)) : h("div", {
132627
- "class": "column"
132628
- }, [h("el-row", {
132629
- "attrs": {
132630
- "gutter": Number(this.gutter)
132631
- },
132632
- "class": "main-rows"
132633
- }, [Object.keys(this.config).map((a, b) => this.create(a, b))])]), (finish || submit || reject || cancel || action.length > 0) && h("div", {
132634
- "class": "action",
132635
- "style": {
132636
- paddingLeft: `${this.gutter}px`
132637
- }
132638
- }, [h("el-form-item", {
132639
- "attrs": {
132640
- "name": "action",
132641
- "label": "action"
132642
- }
132643
- }, [finish && h("el-button", {
132644
- "attrs": {
132645
- "disabled": loading,
132646
- "type": "success"
132647
- },
132648
- "on": {
132649
- "click": this.submit
132650
- }
132651
- }, [finishText]), submit && h("el-button", {
132652
- "attrs": {
132653
- "disabled": loading,
132654
- "type": "primary"
132655
- },
132656
- "on": {
132657
- "click": this.submit
132658
- }
132659
- }, [submitText]), reject && h("el-button", {
132660
- "attrs": {
132661
- "disabled": loading,
132662
- "type": "warning"
132663
- },
132664
- "on": {
132665
- "click": this.submit
132666
- }
132667
- }, [rejectText]), cancel && h("el-button", {
132668
- "attrs": {
132669
- "disabled": loading,
132670
- "type": "default"
132671
- },
132672
- "on": {
132673
- "click": this.cancel
132674
- }
132675
- }, [cancelText]), action.map((a, b) => h("el-button", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
132676
- "key": b,
132343
+ "class": "a-form"
132344
+ }, [h(_components_Aform_AfEditor__WEBPACK_IMPORTED_MODULE_1__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
132677
132345
  "attrs": {
132678
- "disabled": loading
132679
- },
132680
- "on": {
132681
- "click": e => a.click(this.filter(), this.form, this.option, e)
132346
+ "inline": true,
132347
+ "global": false
132682
132348
  }
132683
- }, a]), [a.label || a.title || a.text || '']))])])])]);
132349
+ }, {
132350
+ "on": props
132351
+ }, {}, {
132352
+ "props": props
132353
+ }]))]);
132684
132354
  }
132685
132355
  });
132686
132356
 
@@ -133374,6 +133044,13 @@ module.exports = _default;
133374
133044
 
133375
133045
  /***/ }),
133376
133046
 
133047
+ /***/ "b1f4":
133048
+ /***/ (function(module, exports, __webpack_require__) {
133049
+
133050
+ // extracted by mini-css-extract-plugin
133051
+
133052
+ /***/ }),
133053
+
133377
133054
  /***/ "b224":
133378
133055
  /***/ (function(module, exports, __webpack_require__) {
133379
133056
 
@@ -134428,6 +134105,10 @@ __webpack_require__.r(__webpack_exports__);
134428
134105
  /* harmony default export */ __webpack_exports__["default"] = ({
134429
134106
  name: 'AfEditor',
134430
134107
  props: {
134108
+ id: {
134109
+ type: String,
134110
+ default: () => `a-f-editor-id-${Math.random()}`
134111
+ },
134431
134112
  value: {
134432
134113
  type: Object,
134433
134114
  default: () => ({})
@@ -134460,6 +134141,14 @@ __webpack_require__.r(__webpack_exports__);
134460
134141
  type: Boolean,
134461
134142
  default: () => false
134462
134143
  },
134144
+ prompt: {
134145
+ type: Boolean,
134146
+ default: () => false
134147
+ },
134148
+ review: {
134149
+ type: Boolean,
134150
+ default: () => false
134151
+ },
134463
134152
  disabled: {
134464
134153
  type: Boolean,
134465
134154
  default: () => false
@@ -134468,11 +134157,12 @@ __webpack_require__.r(__webpack_exports__);
134468
134157
  data() {
134469
134158
  return {
134470
134159
  form: this.value,
134471
- option: {}
134160
+ option: {},
134161
+ width: 'auto'
134472
134162
  };
134473
134163
  },
134474
134164
  watch: {
134475
- config: {
134165
+ values: {
134476
134166
  immediate: true,
134477
134167
  deep: true,
134478
134168
  handler() {
@@ -134480,39 +134170,42 @@ __webpack_require__.r(__webpack_exports__);
134480
134170
  }
134481
134171
  }
134482
134172
  },
134483
- created() {
134173
+ mounted() {
134174
+ this.resize();
134484
134175
  this.relate(this.config);
134485
134176
  },
134486
- mounted() {},
134487
134177
  methods: {
134488
- input() {
134178
+ input(a) {
134489
134179
  this.$emit('input', this.filter());
134490
134180
  },
134491
134181
  change() {
134492
134182
  this.$emit('change', this.filter(), this.form, this.option);
134493
134183
  },
134184
+ resize() {
134185
+ let width = 0;
134186
+ let items = document.getElementsByClassName(`${this.id}-item`);
134187
+ if (items) for (let a = 0; a < items.length; a++) {
134188
+ items[a].firstChild.clientWidth > width && (width = items[a].firstChild.clientWidth);
134189
+ }
134190
+ this.width = `${width}px`;
134191
+ },
134494
134192
  relate(config = {}) {
134495
134193
  let data = {};
134496
- Object.keys(config).forEach(a => {
134194
+ if (this.values) Object.keys(config).forEach(a => {
134497
134195
  let {
134498
134196
  ...r
134499
134197
  } = config[a];
134500
134198
  let child = r.children || r.child || r.node || null;
134501
- if (child && Object.keys(child).length > 0) {
134502
- this.relate(child);
134503
- } else {
134504
- if (r.type == 'password') {
134505
- data[a] = '';
134506
- } else {
134507
- if (this.values[a] != undefined) {
134508
- data[a] = `${this.values[a]}`;
134509
- } else if (r.default) {
134510
- data[a] = r.default;
134511
- }
134512
- }
134513
- }
134199
+ if (child && Object.keys(child).length > 0) this.relate(child);
134200
+ if (this.values[a] != undefined) {
134201
+ if (r.multiple) this.values[a] != '' && (data[a] = this.values[a].split(','));else data[a] = `${this.values[a]}`;
134202
+ } else r.default && (data[a] = r.default);
134203
+ if (r.type == 'password') data[a] = '';
134514
134204
  });
134515
- this.form = data;
134205
+ this.form = {
134206
+ ...data,
134207
+ ...this.value
134208
+ };
134516
134209
  },
134517
134210
  create(a, b) {
134518
134211
  const h = this.$createElement;
@@ -134521,18 +134214,26 @@ __webpack_require__.r(__webpack_exports__);
134521
134214
  } = this.config[a];
134522
134215
  let label = r.text || r.label || r.title || '';
134523
134216
  let width = r.width ? r.width : `${100 / this.cols}%`;
134217
+ let least = r.minlength ? [{
134218
+ min: r.minlength,
134219
+ message: `最少${r.minlength}个字符`
134220
+ }] : [];
134221
+ let limit = r.maxlength ? [{
134222
+ max: r.maxlength,
134223
+ message: `最多${r.maxlength}个字符`
134224
+ }] : [];
134524
134225
  let judge = [{
134525
134226
  required: true,
134526
134227
  message: `${label}不能为空`
134527
- }];
134228
+ }, ...least, ...limit];
134528
134229
  let valid = r.rule ? r.rule : r.must || this.must ? judge : [];
134529
134230
  let rules = this.disabled || r.disabled ? [] : (r.must || this.must) && r.rule ? [...judge, ...r.rule] : valid;
134530
134231
  let props = {
134531
134232
  name: a,
134532
134233
  prop: a,
134533
- label,
134234
+ label: this.review ? `${label}:` : label,
134235
+ labelWidth: this.width,
134534
134236
  rules,
134535
- disabled: r.disabled || this.disabled,
134536
134237
  ...r
134537
134238
  };
134538
134239
  if (this.inline) {
@@ -134540,12 +134241,13 @@ __webpack_require__.r(__webpack_exports__);
134540
134241
  padding: `0 ${this.gutter / 2}px`,
134541
134242
  width
134542
134243
  };
134543
- return h("el-form-item", {
134244
+ return h("div", [h("el-form-item", {
134245
+ "class": `${this.id}-item`,
134544
134246
  "style": style,
134545
134247
  "props": {
134546
134248
  ...props
134547
134249
  }
134548
- }, [this.format(r, a)]);
134250
+ }, [this.format(r, a)]), this.$slots.default]);
134549
134251
  } else {
134550
134252
  if (r.span) {
134551
134253
  return h("el-col", {
@@ -134554,6 +134256,7 @@ __webpack_require__.r(__webpack_exports__);
134554
134256
  "span": Number(r.span)
134555
134257
  }
134556
134258
  }, [h("el-form-item", {
134259
+ "class": `${this.id}-item`,
134557
134260
  "props": {
134558
134261
  ...props
134559
134262
  }
@@ -134565,6 +134268,7 @@ __webpack_require__.r(__webpack_exports__);
134565
134268
  width
134566
134269
  }
134567
134270
  }, [h("el-form-item", {
134271
+ "class": `${this.id}-item`,
134568
134272
  "props": {
134569
134273
  ...props
134570
134274
  }
@@ -134607,13 +134311,18 @@ __webpack_require__.r(__webpack_exports__);
134607
134311
  });
134608
134312
  } else {
134609
134313
  let config = {
134314
+ disabled: a.disabled || this.disabled,
134610
134315
  change: () => this.change(),
134611
134316
  form: this.form,
134317
+ quick: true,
134612
134318
  field: b,
134613
- clearable: !a.default,
134614
134319
  ...a
134615
134320
  };
134616
- return h(_components_AformItem__WEBPACK_IMPORTED_MODULE_1__["default"], {
134321
+ if (this.review && !a.data) {
134322
+ return h("div", {
134323
+ "class": "form-value"
134324
+ }, [this.form[b]]);
134325
+ } else return h(_components_AformItem__WEBPACK_IMPORTED_MODULE_1__["default"], {
134617
134326
  "on": {
134618
134327
  "input": this.input
134619
134328
  },
@@ -134625,14 +134334,16 @@ __webpack_require__.r(__webpack_exports__);
134625
134334
  },
134626
134335
  filter() {
134627
134336
  let data = {};
134628
- Object.keys(this.form).length > 0 && Object.keys(this.form).forEach(a => {
134337
+ Object.keys(this.form).forEach(a => {
134629
134338
  if (this.option[a]) {
134630
134339
  let {
134631
134340
  ...r
134632
134341
  } = this.option[a];
134633
- if (r.split && r.split.length > 0) {
134634
- r.split.forEach((b, c) => data[b] = this.form[a][c]);
134635
- } else data[a] = this.form[a];
134342
+ let ignore = r.ignore || r.empty || r.blank || r.omit;
134343
+ if (!ignore) {
134344
+ if (r.split && r.split.length > 0) r.split.forEach((b, c) => data[b] = this.form[a][c]);
134345
+ if (r.multiple && this.form[a] != '') data[a] = this.form[a].join();else data[a] = this.form[a];
134346
+ }
134636
134347
  }
134637
134348
  });
134638
134349
  return data;
@@ -134648,7 +134359,13 @@ __webpack_require__.r(__webpack_exports__);
134648
134359
  page: 1
134649
134360
  });
134650
134361
  }
134651
- this.$refs.form.validate(valid => valid && this.$emit('submit', this.filter(), this.form, this.option));
134362
+ this.$refs.form.validate((valid, items) => {
134363
+ if (valid) {
134364
+ this.$emit('submit', this.filter(), this.form, this.option);
134365
+ } else if (this.prompt) {
134366
+ Object.keys(items).forEach(a => items[a].forEach(b => this.$message.error(b.message)));
134367
+ }
134368
+ });
134652
134369
  },
134653
134370
  cancel() {
134654
134371
  this.$refs.form && this.$refs.form.resetFields && this.$refs.form.resetFields();
@@ -134676,12 +134393,13 @@ __webpack_require__.r(__webpack_exports__);
134676
134393
  render() {
134677
134394
  const h = arguments[0];
134678
134395
  let {
134396
+ width = '100%',
134679
134397
  margin = '0',
134680
134398
  padding = '0',
134681
134399
  size = 'small',
134682
134400
  loading = false,
134683
134401
  labelWidth = 'auto',
134684
- labelPosition = 'top',
134402
+ labelPosition = this.review ? 'right' : 'top',
134685
134403
  finishText = '保存',
134686
134404
  submitText = '提交',
134687
134405
  rejectText = '驳回',
@@ -134692,48 +134410,54 @@ __webpack_require__.r(__webpack_exports__);
134692
134410
  let style = this.inline ? {
134693
134411
  margin: `0 -${this.gutter / 2}px`
134694
134412
  } : {};
134695
- let {
134696
- finish = null,
134697
- submit = null,
134698
- reject = null,
134699
- cancel = null
134700
- } = this.$listeners;
134701
134413
  let props = {
134702
134414
  size,
134703
134415
  inline: this.inline,
134704
134416
  labelWidth,
134705
134417
  labelPosition,
134706
- style,
134707
134418
  ...rest
134708
134419
  };
134420
+ let {
134421
+ finish = null,
134422
+ submit = null,
134423
+ reject = null,
134424
+ cancel = null
134425
+ } = this.$listeners;
134709
134426
  return h("div", {
134710
134427
  "class": "a-f-editor",
134711
134428
  "style": {
134429
+ width,
134712
134430
  margin,
134713
134431
  padding
134714
134432
  }
134715
134433
  }, [h("el-form", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
134716
- "ref": "form"
134434
+ "ref": "form",
134435
+ "attrs": {
134436
+ "id": this.id
134437
+ },
134438
+ "style": style
134717
134439
  }, {
134718
134440
  "props": {
134719
134441
  model: this.form,
134720
134442
  ...props
134721
134443
  }
134722
- }]), [this.inline ? Object.keys(this.config).map((a, b) => this.create(a, b)) : h("el-row", {
134444
+ }]), [this.inline ? Object.keys(this.config).map((a, b) => this.config[a] && this.create(a, b)) : h("el-row", {
134723
134445
  "attrs": {
134724
134446
  "gutter": Number(this.gutter)
134725
134447
  },
134726
134448
  "class": "main-rows"
134727
- }, [Object.keys(this.config).map((a, b) => this.create(a, b)), this.$slots.default]), (finish || submit || reject || cancel || action.length > 0) && h("div", {
134449
+ }, [Object.keys(this.config).map((a, b) => this.config[a] && this.create(a, b)), h("el-col", [this.$slots.default])]), (finish || submit || reject || cancel || action.length > 0) && h("div", {
134728
134450
  "class": "action"
134729
134451
  }, [h("el-form-item", {
134730
134452
  "attrs": {
134731
134453
  "name": "action",
134732
- "label": "action"
134454
+ "label": "action",
134455
+ "label-width": "0"
134733
134456
  }
134734
134457
  }, [finish && h("el-button", {
134735
134458
  "attrs": {
134736
134459
  "disabled": loading,
134460
+ "loading": loading,
134737
134461
  "type": "success"
134738
134462
  },
134739
134463
  "on": {
@@ -134742,6 +134466,7 @@ __webpack_require__.r(__webpack_exports__);
134742
134466
  }, [finishText]), submit && h("el-button", {
134743
134467
  "attrs": {
134744
134468
  "disabled": loading,
134469
+ "loading": loading,
134745
134470
  "type": "primary"
134746
134471
  },
134747
134472
  "on": {
@@ -134750,6 +134475,7 @@ __webpack_require__.r(__webpack_exports__);
134750
134475
  }, [submitText]), reject && h("el-button", {
134751
134476
  "attrs": {
134752
134477
  "disabled": loading,
134478
+ "loading": loading,
134753
134479
  "type": "warning"
134754
134480
  },
134755
134481
  "on": {
@@ -134758,12 +134484,12 @@ __webpack_require__.r(__webpack_exports__);
134758
134484
  }, [rejectText]), cancel && h("el-button", {
134759
134485
  "attrs": {
134760
134486
  "disabled": loading,
134761
- "type": "default"
134487
+ "type": !finish && !submit && !reject ? 'primary' : 'default'
134762
134488
  },
134763
134489
  "on": {
134764
134490
  "click": this.cancel
134765
134491
  }
134766
- }, [cancelText]), action.map((a, b) => h("el-button", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
134492
+ }, [!finish && !submit && !reject ? '确定' : cancelText]), action.map((a, b) => h("el-button", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
134767
134493
  "key": b,
134768
134494
  "attrs": {
134769
134495
  "disabled": loading
@@ -135823,7 +135549,7 @@ exports.onIrrelevantElement = onIrrelevantElement;
135823
135549
 
135824
135550
  /***/ }),
135825
135551
 
135826
- /***/ "ba6c":
135552
+ /***/ "ba86":
135827
135553
  /***/ (function(module, exports, __webpack_require__) {
135828
135554
 
135829
135555
  // extracted by mini-css-extract-plugin
@@ -136873,6 +136599,7 @@ __webpack_require__.r(__webpack_exports__);
136873
136599
 
136874
136600
 
136875
136601
 
136602
+
136876
136603
  /* harmony default export */ __webpack_exports__["default"] = ({
136877
136604
  name: 'Atable',
136878
136605
  components: {
@@ -136940,7 +136667,7 @@ __webpack_require__.r(__webpack_exports__);
136940
136667
  },
136941
136668
  height: {
136942
136669
  type: String,
136943
- default: () => '480'
136670
+ default: () => '520'
136944
136671
  },
136945
136672
  elementLoadingText: {
136946
136673
  type: String,
@@ -137060,14 +136787,14 @@ __webpack_require__.r(__webpack_exports__);
137060
136787
  } = a;
137061
136788
  let child = a.children || a.child || a.node || a.list || [];
137062
136789
  let field = a.field || a.index || a.name || a.prop;
137063
- let label = a.label || a.title || a.text;
136790
+ let label = a.label || a.title || a.text || '';
137064
136791
  let props = {
137065
136792
  key: b,
137066
136793
  prop: field,
137067
136794
  scopedSlot: field,
137068
136795
  sortable: field ? a.sortable ? a.sortable : this.sortable : false,
137069
136796
  formatter: render ? render : type ? (e, f, g, h) => this.format(a, b, e, h) : null,
137070
- showOverflowTooltip: a.showOverflowTooltip ? a.showOverflowTooltip : this.showOverflowTooltip,
136797
+ showOverflowTooltip: render ? false : type ? false : a.showOverflowTooltip ? a.showOverflowTooltip : this.showOverflowTooltip,
137071
136798
  ...r
137072
136799
  };
137073
136800
  return h("el-table-column", {
@@ -137108,47 +136835,47 @@ __webpack_require__.r(__webpack_exports__);
137108
136835
  width: this.actionWidth,
137109
136836
  label: this.actionTitle,
137110
136837
  showOverflowTooltip: false,
137111
- formatter: item => h("div", {
136838
+ formatter: (a, b, c, d) => h("div", {
137112
136839
  "class": "action"
137113
136840
  }, [review && h("i", {
137114
136841
  "class": "el-icon-view",
137115
136842
  "on": {
137116
- "click": () => review(item)
136843
+ "click": () => review(a, b, c, d)
137117
136844
  }
137118
136845
  }), modify && h("i", {
137119
136846
  "class": "el-icon-edit",
137120
136847
  "on": {
137121
- "click": () => modify(item)
136848
+ "click": () => modify(a, b, c, d)
137122
136849
  }
137123
136850
  }), update && h("i", {
137124
136851
  "class": "el-icon-edit",
137125
136852
  "on": {
137126
- "click": () => update(item)
136853
+ "click": () => update(a, b, c, d)
137127
136854
  }
137128
136855
  }), handle && h("i", {
137129
136856
  "class": "el-icon-edit",
137130
136857
  "on": {
137131
- "click": () => handle(item)
136858
+ "click": () => handle(a, b, c, d)
137132
136859
  }
137133
136860
  }), remove && h(_components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__["default"], {
137134
136861
  "on": {
137135
- "submit": () => remove(item)
136862
+ "submit": () => remove(a, b, c, d)
137136
136863
  }
137137
136864
  }), this.$listeners.delete && h(_components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__["default"], {
137138
136865
  "on": {
137139
- "submit": () => this.$listeners.delete(item)
136866
+ "submit": () => this.$listeners.delete(a, b, c, d)
137140
136867
  }
137141
136868
  }), this.$listeners.export && h("i", {
137142
136869
  "class": "el-icon-download",
137143
136870
  "on": {
137144
- "click": () => this.$listeners.export(item)
136871
+ "click": () => this.$listeners.export(a, b, c, d)
137145
136872
  }
137146
136873
  }), this.action.map((a, b) => h("el-button", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
137147
136874
  "key": b,
137148
136875
  "on": {
137149
- "click": e => a.click(item, e)
136876
+ "click": e => a.click(a, b, c, d, e)
137150
136877
  }
137151
- }, a]), [a.label || a.title || a.text]))])
136878
+ }, a]), [a.label || a.title || a.text || '']))])
137152
136879
  };
137153
136880
  }
137154
136881
  },
@@ -137224,8 +136951,8 @@ __webpack_require__.r(__webpack_exports__);
137224
136951
  const {
137225
136952
  ...r
137226
136953
  } = this.record;
137227
- const data = r.data ? r.data : r.list ? r.list : r.rows ? r.rows : r.record ? r.record : r.records ? r.records : [];
137228
- const size = r.total ? r.total : r.count ? r.count : r.size ? r.size : 0;
136954
+ const data = r.data || r.list || r.rows || r.record || r.records || [];
136955
+ const size = r.total || r.count || r.size || 0;
137229
136956
  const {
137230
136957
  pageParams = {}
137231
136958
  } = this.$store.state;
@@ -137234,7 +136961,7 @@ __webpack_require__.r(__webpack_exports__);
137234
136961
  } = this.$attrs;
137235
136962
  return h("div", {
137236
136963
  "class": this.border ? 'a-table' : 'a-table border'
137237
- }, [h("el-table", {
136964
+ }, [h("el-table", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
137238
136965
  "ref": "a-table",
137239
136966
  "attrs": {
137240
136967
  "id": this.id,
@@ -137262,11 +136989,14 @@ __webpack_require__.r(__webpack_exports__);
137262
136989
  "on": {
137263
136990
  "row-click": this.choose,
137264
136991
  "selection-change": this.select
137265
- },
137266
- "props": {
137267
- ...props
137268
136992
  }
137269
- }, [(this.selection || this.$listeners.select) && h("el-table-column", {
136993
+ }, {
136994
+ "props": props
136995
+ }, {
136996
+ "attrs": {
136997
+ "no": props
136998
+ }
136999
+ }]), [(this.selection || this.$listeners.select) && h("el-table-column", {
137270
137000
  "attrs": {
137271
137001
  "fixed": "left",
137272
137002
  "type": "selection",
@@ -137286,16 +137016,18 @@ __webpack_require__.r(__webpack_exports__);
137286
137016
  "attrs": {
137287
137017
  "description": this.emptyText
137288
137018
  }
137289
- })])]), !this.tree && this.page && data.length > 0 && h(_components_Apages__WEBPACK_IMPORTED_MODULE_7__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
137019
+ })])]), !this.tree && this.page && this.global && data.length > 0 && h(_components_Apages__WEBPACK_IMPORTED_MODULE_7__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
137290
137020
  "attrs": {
137291
- "total": Number(size),
137292
- "pages": pageParams
137021
+ "pages": Object.keys(this.pages).length > 0 ? this.pages : pageParams,
137022
+ "total": Number(size)
137293
137023
  },
137294
137024
  "on": {
137295
137025
  "change": this.change
137296
137026
  }
137297
137027
  }, {
137298
137028
  "props": this.pages
137029
+ }, {}, {
137030
+ "on": this.pages
137299
137031
  }]))]);
137300
137032
  }
137301
137033
  });
@@ -140486,6 +140218,17 @@ module.exports = function (argument) {
140486
140218
  };
140487
140219
 
140488
140220
 
140221
+ /***/ }),
140222
+
140223
+ /***/ "c352":
140224
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
140225
+
140226
+ "use strict";
140227
+ /* 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_47c24b82_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("1eae");
140228
+ /* 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_47c24b82_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_47c24b82_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
140229
+ /* unused harmony reexport * */
140230
+
140231
+
140489
140232
  /***/ }),
140490
140233
 
140491
140234
  /***/ "c363":
@@ -148808,7 +148551,7 @@ module.exports = _default;
148808
148551
  // ESM COMPAT FLAG
148809
148552
  __webpack_require__.r(__webpack_exports__);
148810
148553
 
148811
- // 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&
148554
+ // 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=47c24b82&scoped=true&
148812
148555
  var render = function render() {
148813
148556
  var _vm = this,
148814
148557
  _c = _vm._self._c;
@@ -148886,7 +148629,7 @@ var render = function render() {
148886
148629
  };
148887
148630
  var staticRenderFns = [];
148888
148631
 
148889
- // CONCATENATED MODULE: ./src/components/Atree/index.vue?vue&type=template&id=446b4709&scoped=true&
148632
+ // CONCATENATED MODULE: ./src/components/Atree/index.vue?vue&type=template&id=47c24b82&scoped=true&
148890
148633
 
148891
148634
  // 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&
148892
148635
  /* harmony default export */ var Atreevue_type_script_lang_js_ = ({
@@ -149012,7 +148755,9 @@ var staticRenderFns = [];
149012
148755
  if (this.horizontal) return h("span", {
149013
148756
  "class": children && children.length > 0 || type && type != 2 ? '' : 'last-leaf'
149014
148757
  }, [name]);
149015
- return h("span", [name]);
148758
+ return h("span", {
148759
+ "class": "a-tree-item-label"
148760
+ }, [name]);
149016
148761
  },
149017
148762
  create() {
149018
148763
  this.checkedKeys = this.defaultCheckedKeys.filter(a => a != 0);
@@ -149037,8 +148782,10 @@ var staticRenderFns = [];
149037
148782
  this.checkedRows = this.$refs['aTree'].getCheckedNodes();
149038
148783
  this.checkedKeys = this.$refs['aTree'].getCheckedKeys();
149039
148784
  this.halfCheckedKeys = this.$refs['aTree'].getHalfCheckedKeys();
149040
- this.$emit('check', [...this.checkedKeys, ...this.halfCheckedKeys]);
149041
- this.$emit('choose', [...this.checkedKeys, ...this.halfCheckedKeys]);
148785
+ let params = [...this.checkedKeys, ...this.halfCheckedKeys];
148786
+ this.$emit('input', params);
148787
+ this.$emit('check', params);
148788
+ this.$emit('choose', params);
149042
148789
  },
149043
148790
  nodeClick(e) {
149044
148791
  this.selectedRow = e;
@@ -149059,8 +148806,8 @@ var staticRenderFns = [];
149059
148806
  });
149060
148807
  // CONCATENATED MODULE: ./src/components/Atree/index.vue?vue&type=script&lang=js&
149061
148808
  /* harmony default export */ var components_Atreevue_type_script_lang_js_ = (Atreevue_type_script_lang_js_);
149062
- // EXTERNAL MODULE: ./src/components/Atree/index.vue?vue&type=style&index=0&id=446b4709&prod&scoped=true&lang=css&
149063
- var Atreevue_type_style_index_0_id_446b4709_prod_scoped_true_lang_css_ = __webpack_require__("5934");
148809
+ // EXTERNAL MODULE: ./src/components/Atree/index.vue?vue&type=style&index=0&id=47c24b82&prod&scoped=true&lang=css&
148810
+ var Atreevue_type_style_index_0_id_47c24b82_prod_scoped_true_lang_css_ = __webpack_require__("c352");
149064
148811
 
149065
148812
  // EXTERNAL MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/runtime/componentNormalizer.js
149066
148813
  var componentNormalizer = __webpack_require__("e607");
@@ -149080,7 +148827,7 @@ var component = Object(componentNormalizer["a" /* default */])(
149080
148827
  staticRenderFns,
149081
148828
  false,
149082
148829
  null,
149083
- "446b4709",
148830
+ "47c24b82",
149084
148831
  null
149085
148832
 
149086
148833
  )
@@ -152115,6 +151862,154 @@ module.exports = _default;
152115
151862
 
152116
151863
  /***/ }),
152117
151864
 
151865
+ /***/ "d98d":
151866
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
151867
+
151868
+ "use strict";
151869
+ // ESM COMPAT FLAG
151870
+ __webpack_require__.r(__webpack_exports__);
151871
+
151872
+ // 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/Aupload/index.bak.vue?vue&type=template&id=6b1bf5c4&scoped=true&
151873
+ var render = function render() {
151874
+ var _vm = this,
151875
+ _c = _vm._self._c;
151876
+ return _c('div', {
151877
+ staticClass: "a-upload"
151878
+ }, [_c('el-upload', {
151879
+ attrs: {
151880
+ "action": _vm.action,
151881
+ "on-remove": _vm.remove,
151882
+ "on-exceed": _vm.exceed,
151883
+ "multiple": _vm.multiple,
151884
+ "on-preview": _vm.review,
151885
+ "http-request": _vm.upload,
151886
+ "before-remove": _vm.remove,
151887
+ "limit": parseInt(_vm.limit),
151888
+ "auto-upload": _vm.autoUpload,
151889
+ "show-file-list": _vm.showFileList,
151890
+ "list-type": _vm.listType,
151891
+ "file-list": _vm.list
151892
+ }
151893
+ }, [_c('el-button', {
151894
+ attrs: {
151895
+ "size": "small",
151896
+ "type": "primary"
151897
+ }
151898
+ }, [_vm._v("点击上传")]), _c('div', {
151899
+ staticClass: "el-upload__tip",
151900
+ attrs: {
151901
+ "slot": "tip"
151902
+ },
151903
+ slot: "tip"
151904
+ }, [_vm._v(" 只能上传jpg/png文件,且不超过500kb ")])], 1)], 1);
151905
+ };
151906
+ var staticRenderFns = [];
151907
+
151908
+ // CONCATENATED MODULE: ./src/components/Aupload/index.bak.vue?vue&type=template&id=6b1bf5c4&scoped=true&
151909
+
151910
+ // 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/Aupload/index.bak.vue?vue&type=script&lang=js&
151911
+ /* harmony default export */ var index_bakvue_type_script_lang_js_ = ({
151912
+ name: 'Aupload',
151913
+ props: {
151914
+ type: {
151915
+ type: String,
151916
+ default: () => 'image'
151917
+ },
151918
+ action: {
151919
+ type: String,
151920
+ default: () => '#'
151921
+ },
151922
+ multiple: {
151923
+ type: Boolean,
151924
+ default: () => true
151925
+ },
151926
+ limit: {
151927
+ type: String,
151928
+ default: () => '10'
151929
+ },
151930
+ listType: {
151931
+ type: String,
151932
+ default: () => ''
151933
+ },
151934
+ // picture-card
151935
+ autoUpload: {
151936
+ type: Boolean,
151937
+ default: () => false
151938
+ },
151939
+ showFileList: {
151940
+ type: Boolean,
151941
+ default: () => true
151942
+ },
151943
+ fileList: {
151944
+ type: Array,
151945
+ default: () => []
151946
+ }
151947
+ },
151948
+ data() {
151949
+ return {
151950
+ list: [],
151951
+ src: ''
151952
+ };
151953
+ },
151954
+ created() {
151955
+ this.create();
151956
+ },
151957
+ methods: {
151958
+ create() {
151959
+ this.list = [...this.fileList, ...this.list];
151960
+ },
151961
+ change(a) {
151962
+ this.$emit('change', a);
151963
+ },
151964
+ exceed(a) {
151965
+ this.$emit('exceed', a);
151966
+ },
151967
+ finish(a) {
151968
+ this.$emit('finish', a);
151969
+ },
151970
+ upload(a) {
151971
+ this.$emit('upload', a);
151972
+ },
151973
+ review(a) {
151974
+ this.$emit('review', a);
151975
+ },
151976
+ remove(a) {
151977
+ this.$emit('remove', a);
151978
+ }
151979
+ }
151980
+ });
151981
+ // CONCATENATED MODULE: ./src/components/Aupload/index.bak.vue?vue&type=script&lang=js&
151982
+ /* harmony default export */ var Aupload_index_bakvue_type_script_lang_js_ = (index_bakvue_type_script_lang_js_);
151983
+ // EXTERNAL MODULE: ./src/components/Aupload/index.bak.vue?vue&type=style&index=0&id=6b1bf5c4&prod&scoped=true&lang=css&
151984
+ var index_bakvue_type_style_index_0_id_6b1bf5c4_prod_scoped_true_lang_css_ = __webpack_require__("1c70");
151985
+
151986
+ // EXTERNAL MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/runtime/componentNormalizer.js
151987
+ var componentNormalizer = __webpack_require__("e607");
151988
+
151989
+ // CONCATENATED MODULE: ./src/components/Aupload/index.bak.vue
151990
+
151991
+
151992
+
151993
+
151994
+
151995
+
151996
+ /* normalize component */
151997
+
151998
+ var component = Object(componentNormalizer["a" /* default */])(
151999
+ Aupload_index_bakvue_type_script_lang_js_,
152000
+ render,
152001
+ staticRenderFns,
152002
+ false,
152003
+ null,
152004
+ "6b1bf5c4",
152005
+ null
152006
+
152007
+ )
152008
+
152009
+ /* harmony default export */ var index_bak = __webpack_exports__["default"] = (component.exports);
152010
+
152011
+ /***/ }),
152012
+
152118
152013
  /***/ "d9af":
152119
152014
  /***/ (function(module, exports, __webpack_require__) {
152120
152015
 
@@ -155028,7 +154923,6 @@ __webpack_require__.r(__webpack_exports__);
155028
154923
  },
155029
154924
  change(content) {
155030
154925
  this.content = content;
155031
- console.log(this.content);
155032
154926
  this.$nextTick(() => this.$emit('input', this.content));
155033
154927
  }
155034
154928
  },
@@ -156975,6 +156869,13 @@ module.exports = _default;
156975
156869
 
156976
156870
  /***/ }),
156977
156871
 
156872
+ /***/ "de00":
156873
+ /***/ (function(module, exports, __webpack_require__) {
156874
+
156875
+ // extracted by mini-css-extract-plugin
156876
+
156877
+ /***/ }),
156878
+
156978
156879
  /***/ "de10":
156979
156880
  /***/ (function(module, exports, __webpack_require__) {
156980
156881
 
@@ -158134,6 +158035,109 @@ module.exports = _default;
158134
158035
 
158135
158036
  /***/ }),
158136
158037
 
158038
+ /***/ "e4ec":
158039
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
158040
+
158041
+ "use strict";
158042
+ __webpack_require__.r(__webpack_exports__);
158043
+ /* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6aaa");
158044
+ /* 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__);
158045
+ /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("ba86");
158046
+ /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_1__);
158047
+
158048
+
158049
+ /* harmony default export */ __webpack_exports__["default"] = ({
158050
+ name: 'ApasswordInput',
158051
+ props: {
158052
+ value: {
158053
+ type: String,
158054
+ default: () => ''
158055
+ }
158056
+ },
158057
+ data() {
158058
+ return {
158059
+ active: 0,
158060
+ content: this.value
158061
+ };
158062
+ },
158063
+ methods: {
158064
+ input(value) {
158065
+ let {
158066
+ min = 6
158067
+ } = this.$attrs;
158068
+ this.content = value;
158069
+ let mode = 0;
158070
+ if (/\d/.test(value)) mode++; //数字
158071
+ if (/\W/.test(value)) mode++; //字符
158072
+ if (/[a-z]/.test(value)) mode++; //小写
158073
+ if (/[A-Z]/.test(value)) mode++; //大写
158074
+ if (value.length < min) this.active = 0;
158075
+ if (value.length > min && mode < 2) this.active = 1;
158076
+ if (value.length > min && mode > 2) this.active = 2;
158077
+ if (value.length > min && mode > 3) this.active = 3;
158078
+ this.$emit('input', this.content);
158079
+ }
158080
+ },
158081
+ render() {
158082
+ const h = arguments[0];
158083
+ let {
158084
+ min = 6,
158085
+ max = 20,
158086
+ hint = true,
158087
+ type = 'password',
158088
+ showPassword = true,
158089
+ placeholder = '请输入密码',
158090
+ option = [{
158091
+ label: '低',
158092
+ color: ''
158093
+ }, {
158094
+ label: '中',
158095
+ color: ''
158096
+ }, {
158097
+ label: '高',
158098
+ color: ''
158099
+ }],
158100
+ ...props
158101
+ } = this.$attrs;
158102
+ return h("div", {
158103
+ "class": "a-password-input"
158104
+ }, [h("el-input", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
158105
+ "on": {
158106
+ "input": a => a.length <= max && this.input(a)
158107
+ },
158108
+ "attrs": {
158109
+ "show-password": showPassword,
158110
+ "placeholder": placeholder,
158111
+ "minlength": min,
158112
+ "maxlength": max,
158113
+ "type": type
158114
+ }
158115
+ }, {
158116
+ "on": props
158117
+ }, {}, {
158118
+ "props": props
158119
+ }, {
158120
+ "model": {
158121
+ value: this.content,
158122
+ callback: $$v => {
158123
+ this.content = $$v;
158124
+ }
158125
+ }
158126
+ }])), hint && h("div", {
158127
+ "class": "a-password-input-hint"
158128
+ }, [option.map((a, b) => {
158129
+ // let label = a.label || a.title || a.text || `${a}`;
158130
+ // return (<div key={b} class={`a-password-input-hint-item ${this.active == (b + 1) ? 'active' : ''}`}>{label}</div>);
158131
+ return h("div", {
158132
+ "key": b,
158133
+ "class": `a-password-input-hint-item ${this.active == b + 1 ? 'active' : ''}`
158134
+ });
158135
+ })])]);
158136
+ }
158137
+ });
158138
+
158139
+ /***/ }),
158140
+
158137
158141
  /***/ "e509":
158138
158142
  /***/ (function(module, exports, __webpack_require__) {
158139
158143
 
@@ -159149,34 +159153,22 @@ module.exports = _default;
159149
159153
 
159150
159154
  "use strict";
159151
159155
  __webpack_require__.r(__webpack_exports__);
159152
- /* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("be09");
159153
- /* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__);
159154
- /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("d8af");
159155
- /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_1__);
159156
+ /* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6aaa");
159157
+ /* 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__);
159158
+ /* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("be09");
159159
+ /* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1__);
159160
+ /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("d8af");
159161
+ /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_2__);
159162
+
159163
+
159156
159164
 
159157
159165
 
159158
159166
  /* harmony default export */ __webpack_exports__["default"] = ({
159159
159167
  name: 'Adialog',
159160
159168
  props: {
159161
- title: {
159162
- type: String,
159163
- default: () => '编辑'
159164
- },
159165
- width: {
159166
- type: String,
159167
- default: () => '600px'
159168
- },
159169
159169
  check: {
159170
159170
  type: Boolean,
159171
- default: () => true
159172
- },
159173
- padding: {
159174
- type: String,
159175
- default: () => '16px'
159176
- },
159177
- height: {
159178
- type: String,
159179
- default: () => '68vh'
159171
+ default: () => false
159180
159172
  },
159181
159173
  loading: {
159182
159174
  type: Boolean,
@@ -159215,9 +159207,6 @@ __webpack_require__.r(__webpack_exports__);
159215
159207
  default: () => '取消'
159216
159208
  }
159217
159209
  },
159218
- destroyed() {
159219
- this.format = null;
159220
- },
159221
159210
  methods: {
159222
159211
  format() {
159223
159212
  if (this.check == false) return true;
@@ -159261,6 +159250,13 @@ __webpack_require__.r(__webpack_exports__);
159261
159250
  render() {
159262
159251
  const h = arguments[0];
159263
159252
  const {
159253
+ title = '编辑',
159254
+ width = '600px',
159255
+ padding = '16px',
159256
+ height = 'auto',
159257
+ maxHeight = '64vh',
159258
+ style = {},
159259
+ action = [],
159264
159260
  ...props
159265
159261
  } = this.$attrs;
159266
159262
  const {
@@ -159276,32 +159272,37 @@ __webpack_require__.r(__webpack_exports__);
159276
159272
  name: "loading",
159277
159273
  value: this.loading
159278
159274
  }]
159279
- }, [h("el-dialog", {
159275
+ }, [h("el-dialog", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
159280
159276
  "attrs": {
159281
- "title": this.title,
159282
- "width": this.width,
159277
+ "title": title,
159278
+ "width": width,
159283
159279
  "visible": this.visible,
159284
159280
  "lock-scroll": this.lockScroll,
159285
159281
  "destroy-on-close": this.destroyOnClose,
159286
159282
  "close-on-click-modal": this.closeOnClickModal
159287
159283
  },
159288
159284
  "on": {
159289
- "close": close ? () => close() : cancel ? () => cancel() : () => false
159285
+ "close": close ? () => close() : cancel ? () => cancel() : finish ? () => this.finish() : submit ? () => this.submit() : reject ? () => this.reject() : () => false
159290
159286
  },
159291
159287
  "props": {
159292
159288
  ...props
159293
159289
  }
159294
- }, [h("div", {
159290
+ }, {
159291
+ "on": props
159292
+ }]), [h("div", {
159295
159293
  "key": this.visible,
159296
159294
  "class": "a-dialog-body",
159297
159295
  "style": {
159298
- padding: this.padding,
159299
- maxHeight: this.height
159296
+ padding,
159297
+ height,
159298
+ maxHeight,
159299
+ ...style
159300
159300
  }
159301
159301
  }, [this.$slots.default]), h("div", {
159302
- "class": finish || submit || cancel ? 'a-dialog-foot' : 'a-dialog-foot custom'
159303
- }, [(finish || submit || cancel) && h("div", [finish && h("el-button", {
159302
+ "class": finish || submit || reject || cancel || action.length > 0 ? 'a-dialog-foot' : 'a-dialog-foot custom'
159303
+ }, [(finish || submit || cancel || reject || action.length > 0) && h("div", [finish && h("el-button", {
159304
159304
  "attrs": {
159305
+ "disabled": this.loading,
159305
159306
  "loading": this.loading,
159306
159307
  "type": "success"
159307
159308
  },
@@ -159310,6 +159311,7 @@ __webpack_require__.r(__webpack_exports__);
159310
159311
  }
159311
159312
  }, [this.finishText]), submit && h("el-button", {
159312
159313
  "attrs": {
159314
+ "disabled": this.loading,
159313
159315
  "loading": this.loading,
159314
159316
  "type": "primary"
159315
159317
  },
@@ -159318,6 +159320,7 @@ __webpack_require__.r(__webpack_exports__);
159318
159320
  }
159319
159321
  }, [this.submitText]), reject && h("el-button", {
159320
159322
  "attrs": {
159323
+ "disabled": this.loading,
159321
159324
  "loading": this.loading,
159322
159325
  "type": "danger"
159323
159326
  },
@@ -159331,7 +159334,15 @@ __webpack_require__.r(__webpack_exports__);
159331
159334
  "on": {
159332
159335
  "click": this.cancel
159333
159336
  }
159334
- }, [this.cancelText])])])])]);
159337
+ }, [this.cancelText]), action.map((a, b) => h("el-button", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
159338
+ "key": b,
159339
+ "attrs": {
159340
+ "disabled": this.loading
159341
+ },
159342
+ "on": {
159343
+ "click": e => a.click(this.format(), e)
159344
+ }
159345
+ }, a]), [a.label || a.title || a.text || '']))])])])]);
159335
159346
  }
159336
159347
  });
159337
159348
 
@@ -160546,10 +160557,10 @@ __webpack_require__.r(__webpack_exports__);
160546
160557
  },
160547
160558
  data() {
160548
160559
  const {
160549
- roles
160560
+ routes
160550
160561
  } = this.$store.state;
160551
160562
  return {
160552
- roles
160563
+ routes
160553
160564
  };
160554
160565
  },
160555
160566
  methods: {
@@ -160562,8 +160573,8 @@ __webpack_require__.r(__webpack_exports__);
160562
160573
  const text = a.text || a.label || a.title;
160563
160574
  return text != '' && (a.id ? h(_components_Aauthority__WEBPACK_IMPORTED_MODULE_0__["default"], {
160564
160575
  "attrs": {
160565
- "role": a.id,
160566
- "roles": this.roles
160576
+ "routes": a.id,
160577
+ "routes": this.routes
160567
160578
  }
160568
160579
  }, [this.format(a, b)]) : this.format(a, b));
160569
160580
  }), this.$slots.default]);
@@ -160707,13 +160718,6 @@ __webpack_require__.r(__webpack_exports__);
160707
160718
 
160708
160719
  /***/ }),
160709
160720
 
160710
- /***/ "e95a":
160711
- /***/ (function(module, exports, __webpack_require__) {
160712
-
160713
- // extracted by mini-css-extract-plugin
160714
-
160715
- /***/ }),
160716
-
160717
160721
  /***/ "e9e0":
160718
160722
  /***/ (function(module, exports, __webpack_require__) {
160719
160723
 
@@ -164849,7 +164853,6 @@ var map = {
164849
164853
  "./Atree/index.vue": "ce34",
164850
164854
  "./Aupload/File/index.vue": "3a9a",
164851
164855
  "./Aupload/Icon/index.vue": "7d0e",
164852
- "./Aupload/index.vue": "a61e",
164853
164856
  "./Bdialog/index.vue": "a6bc",
164854
164857
  "./Bplayer/index.vue": "2c3e",
164855
164858
  "./Btree/index.vue": "9d92"
@@ -167575,6 +167578,141 @@ __webpack_require__.r(__webpack_exports__);
167575
167578
 
167576
167579
  /***/ }),
167577
167580
 
167581
+ /***/ "fafd":
167582
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
167583
+
167584
+ "use strict";
167585
+ __webpack_require__.r(__webpack_exports__);
167586
+ /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("0673");
167587
+ /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_0__);
167588
+
167589
+ /* harmony default export */ __webpack_exports__["default"] = ({
167590
+ name: 'Aupload',
167591
+ props: {
167592
+ loading: {
167593
+ type: Boolean,
167594
+ default: () => false
167595
+ },
167596
+ size: {
167597
+ type: String,
167598
+ default: () => '2m'
167599
+ },
167600
+ action: {
167601
+ type: String,
167602
+ default: () => '#'
167603
+ },
167604
+ multiple: {
167605
+ type: Boolean,
167606
+ default: () => true
167607
+ },
167608
+ limit: {
167609
+ type: String,
167610
+ default: () => '10'
167611
+ },
167612
+ listType: {
167613
+ type: String,
167614
+ default: () => ''
167615
+ },
167616
+ // picture-card
167617
+ autoUpload: {
167618
+ type: Boolean,
167619
+ default: () => false
167620
+ },
167621
+ showFileList: {
167622
+ type: Boolean,
167623
+ default: () => true
167624
+ },
167625
+ fileList: {
167626
+ type: Array,
167627
+ default: () => []
167628
+ }
167629
+ },
167630
+ data() {
167631
+ return {
167632
+ list: []
167633
+ };
167634
+ },
167635
+ created() {
167636
+ this.create();
167637
+ },
167638
+ methods: {
167639
+ create() {
167640
+ this.list = [...this.fileList, ...this.list];
167641
+ },
167642
+ change(a, b) {
167643
+ if (this.multiple) {
167644
+ this.$emit('change', b);
167645
+ } else {
167646
+ if (a.size / 1024 > parseInt(this.size) * 1024) {
167647
+ this.$message.info(`上传文件超过了${this.size}限制`);
167648
+ return false;
167649
+ } else {
167650
+ this.$emit('change', a);
167651
+ }
167652
+ }
167653
+ },
167654
+ exceed(a) {
167655
+ this.$emit('exceed', a);
167656
+ },
167657
+ finish(a) {
167658
+ this.$emit('finish', a);
167659
+ },
167660
+ upload(a) {
167661
+ this.$emit('upload', a);
167662
+ },
167663
+ review(a) {
167664
+ this.$emit('review', a);
167665
+ },
167666
+ remove(a) {
167667
+ this.$emit('remove', a);
167668
+ }
167669
+ },
167670
+ render() {
167671
+ const h = arguments[0];
167672
+ let {
167673
+ ...rest
167674
+ } = this.$attrs;
167675
+ let props = {
167676
+ disabled: this.loading,
167677
+ 'http-request': this.upload,
167678
+ 'on-change': this.change,
167679
+ 'on-exceed': this.exceed,
167680
+ 'on-success': this.finish,
167681
+ 'on-before-upload': this.upload,
167682
+ 'on-before-remove': this.remove,
167683
+ ...rest
167684
+ };
167685
+ let on = {
167686
+ ...rest
167687
+ };
167688
+ return h("div", {
167689
+ "class": "a-upload"
167690
+ }, [h("el-upload", {
167691
+ "attrs": {
167692
+ "action": this.action,
167693
+ "file-list": this.list,
167694
+ "multiple": this.multiple,
167695
+ "list-type": this.listType,
167696
+ "limit": parseInt(this.limit),
167697
+ "auto-upload": this.autoUpload,
167698
+ "show-file-list": this.showFileList
167699
+ },
167700
+ "props": {
167701
+ ...props
167702
+ },
167703
+ "on": {
167704
+ ...on
167705
+ }
167706
+ }, [h("el-button", {
167707
+ "attrs": {
167708
+ "type": "primary"
167709
+ }
167710
+ }, ["\u70B9\u51FB\u4E0A\u4F20"]), this.$slots.default])]);
167711
+ }
167712
+ });
167713
+
167714
+ /***/ }),
167715
+
167578
167716
  /***/ "fb4f":
167579
167717
  /***/ (function(module, exports, __webpack_require__) {
167580
167718