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.
@@ -6849,17 +6849,17 @@ __webpack_require__.r(__webpack_exports__);
6849
6849
  /* harmony default export */ __webpack_exports__["default"] = ({
6850
6850
  name: 'Aauthority',
6851
6851
  props: {
6852
- role: {
6852
+ route: {
6853
6853
  type: String,
6854
6854
  default: () => ''
6855
6855
  },
6856
- roles: {
6856
+ routes: {
6857
6857
  type: String,
6858
6858
  default: () => ''
6859
6859
  }
6860
6860
  },
6861
6861
  render() {
6862
- return this.roles.includes(this.role) && this.$slots.default;
6862
+ return this.routes.includes(this.route) && this.$slots.default;
6863
6863
  }
6864
6864
  });
6865
6865
 
@@ -13075,6 +13075,7 @@ var map = {
13075
13075
  "./AformItem": "2234",
13076
13076
  "./AformItem/": "2234",
13077
13077
  "./AformItem/index": "2234",
13078
+ "./AformItem/index.css": "de00",
13078
13079
  "./AformItem/index.js": "2234",
13079
13080
  "./AiconSelect": "db3d",
13080
13081
  "./AiconSelect/": "db3d",
@@ -13102,6 +13103,11 @@ var map = {
13102
13103
  "./Apages/index": "1d0c",
13103
13104
  "./Apages/index.css": "18da",
13104
13105
  "./Apages/index.js": "1d0c",
13106
+ "./ApasswordInput": "e4ec",
13107
+ "./ApasswordInput/": "e4ec",
13108
+ "./ApasswordInput/index": "e4ec",
13109
+ "./ApasswordInput/index.css": "ba86",
13110
+ "./ApasswordInput/index.js": "e4ec",
13105
13111
  "./Aplayer": "1c4e",
13106
13112
  "./Aplayer/": "1c4e",
13107
13113
  "./Aplayer/index": "1c4e",
@@ -13196,8 +13202,8 @@ var map = {
13196
13202
  "./Atree/index": "ce34",
13197
13203
  "./Atree/index.css": "158a",
13198
13204
  "./Atree/index.vue": "ce34",
13199
- "./Aupload": "a61e",
13200
- "./Aupload/": "a61e",
13205
+ "./Aupload": "fafd",
13206
+ "./Aupload/": "fafd",
13201
13207
  "./Aupload/File": "3a9a",
13202
13208
  "./Aupload/File/": "3a9a",
13203
13209
  "./Aupload/File/index": "3a9a",
@@ -13208,11 +13214,12 @@ var map = {
13208
13214
  "./Aupload/Icon/index": "7d0e",
13209
13215
  "./Aupload/Icon/index.css": "6c6f",
13210
13216
  "./Aupload/Icon/index.vue": "7d0e",
13211
- "./Aupload/index": "a61e",
13217
+ "./Aupload/index": "fafd",
13212
13218
  "./Aupload/index.bak": "5b90",
13213
13219
  "./Aupload/index.bak.js": "5b90",
13220
+ "./Aupload/index.bak.vue": "d98d",
13214
13221
  "./Aupload/index.css": "0673",
13215
- "./Aupload/index.vue": "a61e",
13222
+ "./Aupload/index.js": "fafd",
13216
13223
  "./AwebSocket": "5209",
13217
13224
  "./AwebSocket/": "5209",
13218
13225
  "./AwebSocket/index": "5209",
@@ -13474,6 +13481,10 @@ __webpack_require__.r(__webpack_exports__);
13474
13481
  /* harmony default export */ __webpack_exports__["default"] = ({
13475
13482
  name: 'AfSearch',
13476
13483
  props: {
13484
+ id: {
13485
+ type: String,
13486
+ default: () => `a-f-search-id-${Math.random()}`
13487
+ },
13477
13488
  value: {
13478
13489
  type: Object,
13479
13490
  default: () => ({})
@@ -13502,6 +13513,10 @@ __webpack_require__.r(__webpack_exports__);
13502
13513
  type: Boolean,
13503
13514
  default: () => true
13504
13515
  },
13516
+ prompt: {
13517
+ type: Boolean,
13518
+ default: () => false
13519
+ },
13505
13520
  disabled: {
13506
13521
  type: Boolean,
13507
13522
  default: () => false
@@ -13520,11 +13535,9 @@ __webpack_require__.r(__webpack_exports__);
13520
13535
  this.relate(this.config);
13521
13536
  }
13522
13537
  },
13523
- created() {
13524
- this.relate(this.config);
13525
- },
13526
13538
  mounted() {
13527
13539
  this.resize();
13540
+ this.relate(this.config);
13528
13541
  },
13529
13542
  methods: {
13530
13543
  input() {
@@ -13533,6 +13546,14 @@ __webpack_require__.r(__webpack_exports__);
13533
13546
  change() {
13534
13547
  this.$emit('change', this.filter(), this.form, this.option);
13535
13548
  },
13549
+ resize() {
13550
+ if (this.inline == false) {
13551
+ if (Object.keys(this.config).length > 0) {
13552
+ let rows = Math.ceil(Object.keys(this.config).length / this.cols);
13553
+ this.height = this.$el.clientHeight * (rows - 1);
13554
+ }
13555
+ }
13556
+ },
13536
13557
  relate(config = {}) {
13537
13558
  Object.keys(config).forEach(a => {
13538
13559
  let {
@@ -13558,7 +13579,14 @@ __webpack_require__.r(__webpack_exports__);
13558
13579
  message: `${label}不能为空`
13559
13580
  }];
13560
13581
  let valid = r.rule ? r.rule : r.must || this.must ? judge : [];
13561
- let rules = this.disabled || r.disabled ? [] : (r.must || this.must) && r.rule ? [...judge, ...r.rule] : valid;
13582
+ let limit = [{
13583
+ min: r.minLength,
13584
+ message: `最少${r.min}个字符`
13585
+ }, {
13586
+ min: r.maxLength,
13587
+ message: `最多${r.min}个字符`
13588
+ }];
13589
+ let rules = this.disabled || r.disabled ? [] : (r.must || this.must) && r.rule ? [...judge, ...limit, ...r.rule] : valid;
13562
13590
  let props = {
13563
13591
  name: a,
13564
13592
  prop: a,
@@ -13639,10 +13667,10 @@ __webpack_require__.r(__webpack_exports__);
13639
13667
  });
13640
13668
  } else {
13641
13669
  let config = {
13670
+ disabled: a.disabled || this.disabled,
13642
13671
  change: () => this.change(),
13643
13672
  form: this.form,
13644
13673
  field: b,
13645
- clearable: !a.default,
13646
13674
  ...a
13647
13675
  };
13648
13676
  return h(_components_AformItem__WEBPACK_IMPORTED_MODULE_1__["default"], {
@@ -13655,12 +13683,6 @@ __webpack_require__.r(__webpack_exports__);
13655
13683
  });
13656
13684
  }
13657
13685
  },
13658
- resize() {
13659
- if (Object.keys(this.config).length > 0) {
13660
- let rows = Math.ceil(Object.keys(this.config).length / this.cols);
13661
- this.height = this.$el.clientHeight * (rows - 1);
13662
- }
13663
- },
13664
13686
  filter() {
13665
13687
  let data = {};
13666
13688
  Object.keys(this.form).length > 0 && Object.keys(this.form).forEach(a => {
@@ -13668,14 +13690,19 @@ __webpack_require__.r(__webpack_exports__);
13668
13690
  let {
13669
13691
  ...r
13670
13692
  } = this.option[a];
13671
- if (r.split && r.split.length > 0) {
13672
- r.split.forEach((b, c) => data[b] = this.form[a][c]);
13673
- } else {
13674
- if (r.like) {
13675
- if (r.like == 'L' || r.like == 'l' || r.like == 'left') data[a] = `%${this.form[a]}`;
13676
- if (r.like == 'R' || r.like == 'r' || r.like == 'right') data[a] = `${this.form[a]}%`;
13677
- 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]}%`;
13678
- } else data[a] = this.form[a];
13693
+ let ignore = r.ignore || r.empty || r.blank || r.omit;
13694
+ if (!ignore) {
13695
+ if (r.split && r.split.length > 0) {
13696
+ r.split.forEach((b, c) => data[b] = this.form[a][c]);
13697
+ } else {
13698
+ if (r.join && r.join != '') data[a] = this.form[a].join(r.join);
13699
+ if (r.multiple && this.form[a] != '') data[a] = this.form[a].join();
13700
+ if (r.like) {
13701
+ if (r.like == 'L' || r.like == 'l' || r.like == 'left' || r.like == 'Left' || r.like == 'LEFT') data[a] = `%${this.form[a]}`;
13702
+ if (r.like == 'R' || r.like == 'r' || r.like == 'right' || r.like == 'Right' || r.like == 'RIGHT') data[a] = `${this.form[a]}%`;
13703
+ 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]}%`;
13704
+ } else data[a] = this.form[a];
13705
+ }
13679
13706
  }
13680
13707
  }
13681
13708
  });
@@ -13696,7 +13723,13 @@ __webpack_require__.r(__webpack_exports__);
13696
13723
  page: 1
13697
13724
  });
13698
13725
  }
13699
- this.$refs.form.validate(valid => valid && this.$emit('submit', this.filter(), this.form, this.option));
13726
+ this.$refs.form.validate((valid, items) => {
13727
+ if (valid) {
13728
+ this.$emit('submit', this.filter(), this.form, this.option);
13729
+ } else if (this.prompt) {
13730
+ Object.keys(items).forEach(a => items[a].forEach(b => this.$message.error(b.message)));
13731
+ }
13732
+ });
13700
13733
  },
13701
13734
  cancel() {
13702
13735
  this.$refs.form && this.$refs.form.resetFields && this.$refs.form.resetFields();
@@ -13747,7 +13780,6 @@ __webpack_require__.r(__webpack_exports__);
13747
13780
  inline: this.inline,
13748
13781
  labelWidth,
13749
13782
  labelPosition,
13750
- style,
13751
13783
  ...rest
13752
13784
  };
13753
13785
  return h("div", {
@@ -13757,13 +13789,17 @@ __webpack_require__.r(__webpack_exports__);
13757
13789
  padding
13758
13790
  }
13759
13791
  }, [h("el-form", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
13760
- "ref": "form"
13792
+ "ref": "form",
13793
+ "attrs": {
13794
+ "id": this.id
13795
+ },
13796
+ "style": style
13761
13797
  }, {
13762
13798
  "props": {
13763
13799
  model: this.form,
13764
13800
  ...props
13765
13801
  }
13766
- }]), [this.inline ? Object.keys(this.config).map((a, b) => this.create(a, b)) : h("div", {
13802
+ }]), [this.inline ? Object.keys(this.config).map((a, b) => this.config[a] && this.create(a, b)) : h("div", {
13767
13803
  "class": "column"
13768
13804
  }, [h("el-row", {
13769
13805
  "attrs": {
@@ -13779,16 +13815,17 @@ __webpack_require__.r(__webpack_exports__);
13779
13815
  height: this.opened ? `${this.height}px` : '0'
13780
13816
  }
13781
13817
  }, [Object.keys(this.config).map((a, b) => b > this.cols - 1 && this.create(a, b))])]), (submit || cancel || action.length > 0) && h("div", {
13782
- "class": "action",
13783
- "style": {
13784
- paddingLeft: `${this.gutter}px`
13785
- }
13818
+ "class": `action ${this.inline && Object.keys(this.config).length % this.cols == 0 ? 'anonymous' : ''}`
13786
13819
  }, [h("el-form-item", {
13787
13820
  "attrs": {
13788
13821
  "name": "action",
13789
- "label": "action"
13822
+ "label": "action",
13823
+ "label-width": "0"
13824
+ },
13825
+ "style": {
13826
+ paddingLeft: `${this.inline ? this.gutter / 2 : this.gutter}px`
13790
13827
  }
13791
- }, [Object.keys(this.config).length > this.cols && !this.inline && h("el-button", {
13828
+ }, [!this.inline && Object.keys(this.config).length > this.cols && h("el-button", {
13792
13829
  "attrs": {
13793
13830
  "disabled": loading,
13794
13831
  "type": "text"
@@ -15674,6 +15711,17 @@ var component = Object(componentNormalizer["a" /* default */])(
15674
15711
 
15675
15712
  /* harmony default export */ var Aplayer = __webpack_exports__["default"] = (component.exports);
15676
15713
 
15714
+ /***/ }),
15715
+
15716
+ /***/ "1c70":
15717
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
15718
+
15719
+ "use strict";
15720
+ /* 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");
15721
+ /* 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__);
15722
+ /* unused harmony reexport * */
15723
+
15724
+
15677
15725
  /***/ }),
15678
15726
 
15679
15727
  /***/ "1c80":
@@ -16260,12 +16308,12 @@ __webpack_require__.r(__webpack_exports__);
16260
16308
  }
16261
16309
  },
16262
16310
  methods: {
16263
- currentChange(page) {
16311
+ changePage(page) {
16264
16312
  this.config.page = page;
16265
16313
  this.$emit('change', this.config);
16266
16314
  this.$emit('changePage', this.config);
16267
16315
  },
16268
- sizeChange(size) {
16316
+ changeSize(size) {
16269
16317
  this.config.size = size;
16270
16318
  this.$emit('change', this.config);
16271
16319
  this.$emit('changeSize', this.config);
@@ -16291,8 +16339,8 @@ __webpack_require__.r(__webpack_exports__);
16291
16339
  "background": this.background
16292
16340
  },
16293
16341
  "on": {
16294
- "current-change": this.currentChange,
16295
- "size-change": this.sizeChange
16342
+ "current-change": this.changePage,
16343
+ "size-change": this.changeSize
16296
16344
  },
16297
16345
  "props": {
16298
16346
  ...props
@@ -16903,6 +16951,13 @@ module.exports = _default;
16903
16951
 
16904
16952
  /***/ }),
16905
16953
 
16954
+ /***/ "1eae":
16955
+ /***/ (function(module, exports, __webpack_require__) {
16956
+
16957
+ // extracted by mini-css-extract-plugin
16958
+
16959
+ /***/ }),
16960
+
16906
16961
  /***/ "1f03":
16907
16962
  /***/ (function(module, exports, __webpack_require__) {
16908
16963
 
@@ -18778,8 +18833,16 @@ module.exports = _default;
18778
18833
  __webpack_require__.r(__webpack_exports__);
18779
18834
  /* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6aaa");
18780
18835
  /* 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__);
18781
- /* harmony import */ var _components_AiconSelect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("db3d");
18782
- /* harmony import */ var _components_Aupload_Icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("7d0e");
18836
+ /* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("be09");
18837
+ /* 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__);
18838
+ /* harmony import */ var _components_AiconSelect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("db3d");
18839
+ /* harmony import */ var _components_Aupload_Icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("7d0e");
18840
+ /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("de00");
18841
+ /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_4__);
18842
+
18843
+
18844
+
18845
+
18783
18846
 
18784
18847
 
18785
18848
 
@@ -18805,8 +18868,8 @@ __webpack_require__.r(__webpack_exports__);
18805
18868
  /* harmony default export */ __webpack_exports__["default"] = ({
18806
18869
  name: 'AformItem',
18807
18870
  components: {
18808
- AiconSelect: _components_AiconSelect__WEBPACK_IMPORTED_MODULE_1__["default"],
18809
- Aupload: _components_Aupload_Icon__WEBPACK_IMPORTED_MODULE_2__["default"]
18871
+ AiconSelect: _components_AiconSelect__WEBPACK_IMPORTED_MODULE_2__["default"],
18872
+ Aupload: _components_Aupload_Icon__WEBPACK_IMPORTED_MODULE_3__["default"]
18810
18873
  },
18811
18874
  props: {
18812
18875
  config: {
@@ -18816,46 +18879,55 @@ __webpack_require__.r(__webpack_exports__);
18816
18879
  },
18817
18880
  data() {
18818
18881
  return {
18819
- random: Math.random()
18882
+ checked: false
18820
18883
  };
18821
18884
  },
18822
- watch: {
18823
- config: {
18824
- immediate: true,
18825
- handler() {
18826
- this.update();
18827
- }
18828
- }
18829
- },
18830
- created() {
18831
- this.update();
18832
- },
18833
18885
  destroyed() {
18834
- this.input = null;
18886
+ this.choose = null;
18835
18887
  this.change = null;
18836
18888
  this.filter = null;
18837
18889
  this.create = null;
18838
18890
  },
18839
18891
  methods: {
18840
- input(a) {
18841
- this.$emit('input', a);
18892
+ choose(a) {
18893
+ let {
18894
+ form,
18895
+ field,
18896
+ data = [],
18897
+ ...r
18898
+ } = this.config;
18899
+ let list = [];
18900
+ if (a) {
18901
+ data.forEach(a => list.push(`${a.value || a.code || a.id}`));
18902
+ form[field] = list;
18903
+ this.change(list);
18904
+ } else form[field] = undefined;
18905
+ r.choose && r.choose(a, form[field]);
18842
18906
  },
18843
18907
  change(a) {
18844
- const {
18845
- data = []
18908
+ let {
18909
+ form,
18910
+ field,
18911
+ data = [],
18912
+ ...r
18846
18913
  } = this.config;
18847
- this.config.change && this.config.change(a, data.length > 0 ? this.filter(data, a) : null);
18848
- },
18849
- update() {
18850
- this.random = Math.random();
18914
+ if (data && data.length > 0) {
18915
+ if (a.length == data.length) this.checked = true;else this.checked = false;
18916
+ this.$forceUpdate();
18917
+ }
18918
+ r.change && r.change(a, this.filter(a, data));
18851
18919
  },
18852
- filter(array = [], value = '') {
18853
- let data = {};
18854
- if (value != '') array.length > 0 && array.forEach(a => {
18855
- let index = a.value || a.code || a.id;
18856
- if (value == index) data = a;
18857
- });
18858
- return data;
18920
+ filter(value = '', array = []) {
18921
+ if (value != '') {
18922
+ if (array && array.length > 0) {
18923
+ let data = {};
18924
+ array.forEach(a => {
18925
+ let index = a.value || a.code || a.id;
18926
+ if (value == index) data = a;
18927
+ });
18928
+ return data;
18929
+ }
18930
+ }
18859
18931
  },
18860
18932
  create({
18861
18933
  form,
@@ -18863,29 +18935,63 @@ __webpack_require__.r(__webpack_exports__);
18863
18935
  ...r
18864
18936
  }) {
18865
18937
  const h = this.$createElement;
18866
- const style = {
18938
+ let on = {
18939
+ input: a => this.$emit('input', a),
18940
+ ...r,
18941
+ change: a => this.change(a)
18942
+ };
18943
+ let style = {
18867
18944
  width: '100%',
18868
18945
  ...r.style
18869
18946
  };
18870
- const label = r.text || r.label || r.title || '';
18871
- const values = (a = {}) => typeof a == 'string' ? a : `${a.value || a.code || a.id}`;
18872
- const labels = (a = {}) => typeof a == 'string' ? a : a.label || a.title || a.text || a.name;
18947
+ let label = r.text || r.label || r.title || '';
18948
+ let props = {
18949
+ clearable: true,
18950
+ filterable: true,
18951
+ collapseTags: true,
18952
+ ...r
18953
+ };
18954
+ let values = (a = {}) => typeof a == 'string' ? a : `${a.value || a.code || a.id}`;
18955
+ let labels = (a = {}) => typeof a == 'string' ? a : a.label || a.title || a.text || a.name;
18873
18956
  if (r.render) return r.render(form, this.config);
18874
18957
  switch (r.type) {
18875
- case 'input':
18958
+ case 'text':
18876
18959
  return h("el-input", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
18960
+ "attrs": {
18961
+ "maxlength": r.maxlength,
18962
+ "placeholder": r.placeholder || `请输入${label}`
18963
+ },
18877
18964
  "on": {
18878
- "input": this.input,
18879
- "change": this.change
18965
+ ...on
18966
+ }
18967
+ }, {
18968
+ style
18969
+ }, {
18970
+ "props": {
18971
+ ...props
18880
18972
  },
18973
+ "model": {
18974
+ value: form[field],
18975
+ callback: $$v => {
18976
+ this.$set(form, field, $$v);
18977
+ }
18978
+ }
18979
+ }]));
18980
+ case 'input':
18981
+ return h("el-input", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
18881
18982
  "attrs": {
18882
- "clearable": true,
18983
+ "maxlength": r.maxlength,
18883
18984
  "placeholder": r.placeholder || `请输入${label}`
18884
18985
  },
18885
- "style": style
18986
+ "on": {
18987
+ ...on
18988
+ }
18886
18989
  }, {
18887
- "props": r
18990
+ style
18888
18991
  }, {
18992
+ "props": {
18993
+ ...props
18994
+ },
18889
18995
  "model": {
18890
18996
  value: form[field],
18891
18997
  callback: $$v => {
@@ -18893,21 +18999,46 @@ __webpack_require__.r(__webpack_exports__);
18893
18999
  }
18894
19000
  }
18895
19001
  }]));
18896
- case 'password':
19002
+ case 'textarea':
18897
19003
  return h("el-input", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19004
+ "attrs": {
19005
+ "maxlength": r.maxlength,
19006
+ "rows": "6",
19007
+ "resize": "none",
19008
+ "placeholder": r.placeholder || `请输入${label}`
19009
+ },
18898
19010
  "on": {
18899
- "input": this.input,
18900
- "change": this.change
19011
+ ...on
19012
+ }
19013
+ }, {
19014
+ style
19015
+ }, {
19016
+ "props": {
19017
+ ...props
18901
19018
  },
19019
+ "model": {
19020
+ value: form[field],
19021
+ callback: $$v => {
19022
+ this.$set(form, field, $$v);
19023
+ }
19024
+ }
19025
+ }]));
19026
+ case 'password':
19027
+ return h("el-input", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
18902
19028
  "attrs": {
18903
- "clearable": true,
19029
+ "maxlength": r.maxlength,
18904
19030
  "placeholder": r.placeholder || `请输入${label}`,
18905
19031
  "show-password": true
18906
19032
  },
18907
- "style": style
19033
+ "on": {
19034
+ ...on
19035
+ }
18908
19036
  }, {
18909
- "props": r
19037
+ style
18910
19038
  }, {
19039
+ "props": {
19040
+ ...props
19041
+ },
18911
19042
  "model": {
18912
19043
  value: form[field],
18913
19044
  callback: $$v => {
@@ -18917,22 +19048,23 @@ __webpack_require__.r(__webpack_exports__);
18917
19048
  }]));
18918
19049
  case 'number':
18919
19050
  return h("el-input-number", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
18920
- "on": {
18921
- "input": this.input,
18922
- "change": this.change
18923
- },
18924
19051
  "attrs": {
18925
- "clearable": true,
18926
19052
  "min": 0,
18927
19053
  "max": 100000000,
19054
+ "maxlength": r.maxlength,
18928
19055
  "controls": false,
18929
19056
  "controls-position": "right",
18930
19057
  "placeholder": r.placeholder || `请输入${label}`
18931
19058
  },
18932
- "style": style
19059
+ "on": {
19060
+ ...on
19061
+ }
18933
19062
  }, {
18934
- "props": r
19063
+ style
18935
19064
  }, {
19065
+ "props": {
19066
+ ...props
19067
+ },
18936
19068
  "model": {
18937
19069
  value: form[field],
18938
19070
  callback: $$v => {
@@ -18942,27 +19074,38 @@ __webpack_require__.r(__webpack_exports__);
18942
19074
  }]));
18943
19075
  case 'select':
18944
19076
  return h("el-select", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
18945
- "on": {
18946
- "input": this.input,
18947
- "change": this.change
18948
- },
18949
19077
  "attrs": {
18950
- "clearable": true,
18951
- "filterable": true,
18952
- "collapse-tags": true,
18953
19078
  "placeholder": r.placeholder || `请选择${label}`
18954
19079
  },
18955
- "style": style
19080
+ "on": {
19081
+ ...on
19082
+ }
18956
19083
  }, {
18957
- "props": r
19084
+ style
18958
19085
  }, {
19086
+ "props": {
19087
+ ...props
19088
+ },
18959
19089
  "model": {
18960
19090
  value: form[field],
18961
19091
  callback: $$v => {
18962
19092
  this.$set(form, field, $$v);
18963
19093
  }
18964
19094
  }
18965
- }]), [r.data && r.data.length > 0 ? r.data.map((a, b) => h("el-option", {
19095
+ }]), [r.quick && r.multiple && h("li", {
19096
+ "key": "all",
19097
+ "class": `a-form-item select el-select-dropdown__item ${this.checked ? 'selected' : ''}`
19098
+ }, [h("el-checkbox", {
19099
+ "on": {
19100
+ "change": this.choose
19101
+ },
19102
+ "model": {
19103
+ value: this.checked,
19104
+ callback: $$v => {
19105
+ this.checked = $$v;
19106
+ }
19107
+ }
19108
+ }, ["\u5168\u90E8"])]), r.data && r.data.length > 0 ? r.data.map((a, b) => h("el-option", {
18966
19109
  "key": b,
18967
19110
  "attrs": {
18968
19111
  "label": labels(a),
@@ -18971,20 +19114,19 @@ __webpack_require__.r(__webpack_exports__);
18971
19114
  })) : []]);
18972
19115
  case 'cascader':
18973
19116
  return h("el-cascader", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
18974
- "on": {
18975
- "input": this.input,
18976
- "change": this.change
18977
- },
18978
19117
  "attrs": {
18979
19118
  "options": r.data || [],
18980
- "clearable": true,
18981
- "filterable": true,
18982
19119
  "placeholder": r.placeholder || `请选择${label}`
18983
19120
  },
18984
- "style": style
19121
+ "on": {
19122
+ ...on
19123
+ }
18985
19124
  }, {
18986
- "props": r
19125
+ style
18987
19126
  }, {
19127
+ "props": {
19128
+ ...props
19129
+ },
18988
19130
  "model": {
18989
19131
  value: form[field],
18990
19132
  callback: $$v => {
@@ -18995,13 +19137,14 @@ __webpack_require__.r(__webpack_exports__);
18995
19137
  case 'checkbox':
18996
19138
  return h("el-checkbox", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
18997
19139
  "on": {
18998
- "input": this.input,
18999
- "change": this.change
19000
- },
19001
- "style": style
19140
+ ...on
19141
+ }
19002
19142
  }, {
19003
- "props": r
19143
+ style
19004
19144
  }, {
19145
+ "props": {
19146
+ ...props
19147
+ },
19005
19148
  "model": {
19006
19149
  value: form[field],
19007
19150
  callback: $$v => {
@@ -19012,13 +19155,14 @@ __webpack_require__.r(__webpack_exports__);
19012
19155
  case 'checkboxGroup':
19013
19156
  return h("el-checkbox-group", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19014
19157
  "on": {
19015
- "input": this.input,
19016
- "change": this.change
19017
- },
19018
- "style": style
19158
+ ...on
19159
+ }
19019
19160
  }, {
19020
- "props": r
19161
+ style
19021
19162
  }, {
19163
+ "props": {
19164
+ ...props
19165
+ },
19022
19166
  "model": {
19023
19167
  value: form[field],
19024
19168
  callback: $$v => {
@@ -19034,13 +19178,14 @@ __webpack_require__.r(__webpack_exports__);
19034
19178
  case 'radio':
19035
19179
  return h("el-radio-group", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19036
19180
  "on": {
19037
- "input": this.input,
19038
- "change": this.change
19039
- },
19040
- "style": style
19181
+ ...on
19182
+ }
19041
19183
  }, {
19042
- "props": r
19184
+ style
19043
19185
  }, {
19186
+ "props": {
19187
+ ...props
19188
+ },
19044
19189
  "model": {
19045
19190
  value: form[field],
19046
19191
  callback: $$v => {
@@ -19055,10 +19200,6 @@ __webpack_require__.r(__webpack_exports__);
19055
19200
  }, [labels(a)])) : []]);
19056
19201
  case 'switch':
19057
19202
  return h("el-switch", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19058
- "on": {
19059
- "input": this.input,
19060
- "change": this.change
19061
- },
19062
19203
  "attrs": {
19063
19204
  "active-value": "1",
19064
19205
  "inactive-value": "0" || false,
@@ -19066,10 +19207,15 @@ __webpack_require__.r(__webpack_exports__);
19066
19207
  "inactive-text": "禁用",
19067
19208
  "active-color": "#13ce66"
19068
19209
  },
19069
- "style": style
19210
+ "on": {
19211
+ ...on
19212
+ }
19070
19213
  }, {
19071
- "props": r
19214
+ style
19072
19215
  }, {
19216
+ "props": {
19217
+ ...props
19218
+ },
19073
19219
  "model": {
19074
19220
  value: form[field],
19075
19221
  callback: $$v => {
@@ -19079,24 +19225,23 @@ __webpack_require__.r(__webpack_exports__);
19079
19225
  }]));
19080
19226
  case 'daterange':
19081
19227
  return h("el-date-picker", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19082
- "on": {
19083
- "input": this.input,
19084
- "change": this.change
19085
- },
19086
19228
  "attrs": {
19087
19229
  "align": "center",
19088
19230
  "format": "yyyy-MM-dd",
19089
19231
  "value-format": "yyyy-MM-dd HH:mm:ss",
19090
- "type": r.type,
19091
- "clearable": true,
19092
19232
  "placeholder": r.placeholder || `请选择${label}`,
19093
19233
  "start-placeholder": "开始",
19094
19234
  "end-placeholder": "结束"
19095
19235
  },
19096
- "style": style
19236
+ "on": {
19237
+ ...on
19238
+ }
19097
19239
  }, {
19098
- "props": r
19240
+ style
19099
19241
  }, {
19242
+ "props": {
19243
+ ...props
19244
+ },
19100
19245
  "model": {
19101
19246
  value: form[field],
19102
19247
  callback: $$v => {
@@ -19106,22 +19251,21 @@ __webpack_require__.r(__webpack_exports__);
19106
19251
  }]));
19107
19252
  case 'date':
19108
19253
  return h("el-date-picker", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19109
- "on": {
19110
- "input": this.input,
19111
- "change": this.change
19112
- },
19113
19254
  "attrs": {
19114
19255
  "align": "center",
19115
19256
  "format": "yyyy-MM-dd",
19116
19257
  "value-format": "yyyy-MM-dd HH:mm:ss",
19117
- "type": r.type,
19118
- "clearable": true,
19119
19258
  "placeholder": r.placeholder || `请选择${label}`
19120
19259
  },
19121
- "style": style
19260
+ "on": {
19261
+ ...on
19262
+ }
19122
19263
  }, {
19123
- "props": r
19264
+ style
19124
19265
  }, {
19266
+ "props": {
19267
+ ...props
19268
+ },
19125
19269
  "model": {
19126
19270
  value: form[field],
19127
19271
  callback: $$v => {
@@ -19131,20 +19275,19 @@ __webpack_require__.r(__webpack_exports__);
19131
19275
  }]));
19132
19276
  case 'time':
19133
19277
  return h("el-time-picker", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19134
- "on": {
19135
- "input": this.input,
19136
- "change": this.change
19137
- },
19138
19278
  "attrs": {
19139
19279
  "align": "center",
19140
- "type": r.type,
19141
- "clearable": true,
19142
19280
  "placeholder": r.placeholder || `请选择${label}`
19143
19281
  },
19144
- "style": style
19282
+ "on": {
19283
+ ...on
19284
+ }
19145
19285
  }, {
19146
- "props": r
19286
+ style
19147
19287
  }, {
19288
+ "props": {
19289
+ ...props
19290
+ },
19148
19291
  "model": {
19149
19292
  value: form[field],
19150
19293
  callback: $$v => {
@@ -19154,20 +19297,19 @@ __webpack_require__.r(__webpack_exports__);
19154
19297
  }]));
19155
19298
  case 'year':
19156
19299
  return h("el-date-picker", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19157
- "on": {
19158
- "input": this.input,
19159
- "change": this.change
19160
- },
19161
19300
  "attrs": {
19162
19301
  "align": "center",
19163
- "type": r.type,
19164
- "clearable": true,
19165
19302
  "placeholder": r.placeholder || `请选择${label}`
19166
19303
  },
19167
- "style": style
19304
+ "on": {
19305
+ ...on
19306
+ }
19168
19307
  }, {
19169
- "props": r
19308
+ style
19170
19309
  }, {
19310
+ "props": {
19311
+ ...props
19312
+ },
19171
19313
  "model": {
19172
19314
  value: form[field],
19173
19315
  callback: $$v => {
@@ -19177,20 +19319,19 @@ __webpack_require__.r(__webpack_exports__);
19177
19319
  }]));
19178
19320
  case 'month':
19179
19321
  return h("el-date-picker", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19180
- "on": {
19181
- "input": this.input,
19182
- "change": this.change
19183
- },
19184
19322
  "attrs": {
19185
19323
  "align": "center",
19186
- "type": r.type,
19187
- "clearable": true,
19188
19324
  "placeholder": r.placeholder || `请选择${label}`
19189
19325
  },
19190
- "style": style
19326
+ "on": {
19327
+ ...on
19328
+ }
19191
19329
  }, {
19192
- "props": r
19330
+ style
19193
19331
  }, {
19332
+ "props": {
19333
+ ...props
19334
+ },
19194
19335
  "model": {
19195
19336
  value: form[field],
19196
19337
  callback: $$v => {
@@ -19200,18 +19341,19 @@ __webpack_require__.r(__webpack_exports__);
19200
19341
  }]));
19201
19342
  case 'color':
19202
19343
  return h("el-color-picker", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19203
- "on": {
19204
- "input": this.input,
19205
- "change": this.change
19206
- },
19207
19344
  "attrs": {
19208
19345
  "size": this.size,
19209
19346
  "placeholder": r.placeholder || `请选择${label}`
19210
19347
  },
19211
- "style": style
19348
+ "on": {
19349
+ ...on
19350
+ }
19212
19351
  }, {
19213
- "props": r
19352
+ style
19214
19353
  }, {
19354
+ "props": {
19355
+ ...props
19356
+ },
19215
19357
  "model": {
19216
19358
  value: form[field],
19217
19359
  callback: $$v => {
@@ -19220,20 +19362,20 @@ __webpack_require__.r(__webpack_exports__);
19220
19362
  }
19221
19363
  }]));
19222
19364
  case 'image':
19223
- return h(_components_Aupload_Icon__WEBPACK_IMPORTED_MODULE_2__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19224
- "key": this.random,
19225
- "on": {
19226
- "input": this.input,
19227
- "change": this.change
19228
- },
19365
+ return h(_components_Aupload_Icon__WEBPACK_IMPORTED_MODULE_3__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19229
19366
  "attrs": {
19230
19367
  "src": form[field],
19231
19368
  "placeholder": r.placeholder || `请选择${label}`
19232
19369
  },
19233
- "style": style
19370
+ "on": {
19371
+ ...on
19372
+ }
19234
19373
  }, {
19235
- "props": r
19374
+ style
19236
19375
  }, {
19376
+ "props": {
19377
+ ...props
19378
+ },
19237
19379
  "model": {
19238
19380
  value: form[field],
19239
19381
  callback: $$v => {
@@ -19242,20 +19384,20 @@ __webpack_require__.r(__webpack_exports__);
19242
19384
  }
19243
19385
  }]));
19244
19386
  case 'upload':
19245
- return h(_components_Aupload_Icon__WEBPACK_IMPORTED_MODULE_2__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19246
- "key": this.random,
19247
- "on": {
19248
- "input": this.input,
19249
- "change": this.change
19250
- },
19387
+ return h(_components_Aupload_Icon__WEBPACK_IMPORTED_MODULE_3__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19251
19388
  "attrs": {
19252
19389
  "src": form[field],
19253
19390
  "placeholder": r.placeholder || `请选择${label}`
19254
19391
  },
19255
- "style": style
19392
+ "on": {
19393
+ ...on
19394
+ }
19256
19395
  }, {
19257
- "props": r
19396
+ style
19258
19397
  }, {
19398
+ "props": {
19399
+ ...props
19400
+ },
19259
19401
  "model": {
19260
19402
  value: form[field],
19261
19403
  callback: $$v => {
@@ -19264,19 +19406,19 @@ __webpack_require__.r(__webpack_exports__);
19264
19406
  }
19265
19407
  }]));
19266
19408
  case 'icon':
19267
- return h(_components_AiconSelect__WEBPACK_IMPORTED_MODULE_1__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19268
- "key": this.random,
19269
- "on": {
19270
- "input": this.input,
19271
- "change": this.change
19272
- },
19409
+ return h(_components_AiconSelect__WEBPACK_IMPORTED_MODULE_2__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19273
19410
  "attrs": {
19274
19411
  "placeholder": r.placeholder || `请选择${label}`
19275
19412
  },
19276
- "style": style
19413
+ "on": {
19414
+ ...on
19415
+ }
19277
19416
  }, {
19278
- "props": r
19417
+ style
19279
19418
  }, {
19419
+ "props": {
19420
+ ...props
19421
+ },
19280
19422
  "model": {
19281
19423
  value: form[field],
19282
19424
  callback: $$v => {
@@ -19285,19 +19427,19 @@ __webpack_require__.r(__webpack_exports__);
19285
19427
  }
19286
19428
  }]));
19287
19429
  case 'iconSelect':
19288
- return h(_components_AiconSelect__WEBPACK_IMPORTED_MODULE_1__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19289
- "key": this.random,
19290
- "on": {
19291
- "input": this.input,
19292
- "change": this.change
19293
- },
19430
+ return h(_components_AiconSelect__WEBPACK_IMPORTED_MODULE_2__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19294
19431
  "attrs": {
19295
19432
  "placeholder": r.placeholder || `请选择${label}`
19296
19433
  },
19297
- "style": style
19434
+ "on": {
19435
+ ...on
19436
+ }
19298
19437
  }, {
19299
- "props": r
19438
+ style
19300
19439
  }, {
19440
+ "props": {
19441
+ ...props
19442
+ },
19301
19443
  "model": {
19302
19444
  value: form[field],
19303
19445
  callback: $$v => {
@@ -19307,18 +19449,19 @@ __webpack_require__.r(__webpack_exports__);
19307
19449
  }]));
19308
19450
  default:
19309
19451
  return h("el-input", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19310
- "on": {
19311
- "input": this.input,
19312
- "change": this.change
19313
- },
19314
19452
  "attrs": {
19315
- "clearable": true,
19453
+ "maxlength": r.maxlength,
19316
19454
  "placeholder": r.placeholder || `请输入${label}`
19317
19455
  },
19318
- "style": style
19456
+ "on": {
19457
+ ...on
19458
+ }
19319
19459
  }, {
19320
- "props": r
19460
+ style
19321
19461
  }, {
19462
+ "props": {
19463
+ ...props
19464
+ },
19322
19465
  "model": {
19323
19466
  value: form[field],
19324
19467
  callback: $$v => {
@@ -24501,6 +24644,9 @@ module.exports = _default;
24501
24644
 
24502
24645
  "use strict";
24503
24646
  __webpack_require__.r(__webpack_exports__);
24647
+ /* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6aaa");
24648
+ /* 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__);
24649
+
24504
24650
  /* harmony default export */ __webpack_exports__["default"] = ({
24505
24651
  name: 'Atabs',
24506
24652
  props: {
@@ -24536,13 +24682,16 @@ __webpack_require__.r(__webpack_exports__);
24536
24682
  ...props
24537
24683
  } = this.$attrs;
24538
24684
  const data = this.option.length > 0 ? this.option : this.config.length > 0 ? this.config : this.data.length > 0 ? this.data : [];
24539
- return h("el-tabs", {
24685
+ return h("el-tabs", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
24540
24686
  "attrs": {
24541
24687
  "type": type
24542
24688
  },
24543
24689
  "on": {
24544
24690
  "tab-click": this.change
24545
- },
24691
+ }
24692
+ }, {
24693
+ "on": props
24694
+ }, {
24546
24695
  "props": {
24547
24696
  ...props
24548
24697
  },
@@ -24552,7 +24701,7 @@ __webpack_require__.r(__webpack_exports__);
24552
24701
  this.active = $$v;
24553
24702
  }
24554
24703
  }
24555
- }, [data.length > 0 && data.map((a, b) => {
24704
+ }]), [data.length > 0 && data.map((a, b) => {
24556
24705
  let label = a.text || a.name || a.label || a.title || `${a}`;
24557
24706
  let value = a.value || a.code || a.id || `${b}`;
24558
24707
  return h("el-tab-pane", {
@@ -24561,9 +24710,9 @@ __webpack_require__.r(__webpack_exports__);
24561
24710
  "label": label,
24562
24711
  "name": value
24563
24712
  }
24564
- }, [a.render ? a.render() : h("div", {
24713
+ }, [this.active == value && (a.render ? a.render(a) : h("div", {
24565
24714
  "key": b
24566
- }, [this.$slots[label]])]);
24715
+ }, [this.$slots[label]]))]);
24567
24716
  }), this.$slots.default]);
24568
24717
  },
24569
24718
  click({
@@ -24992,7 +25141,7 @@ __webpack_require__.r(__webpack_exports__);
24992
25141
  type: Array,
24993
25142
  default: () => []
24994
25143
  },
24995
- roles: {
25144
+ routes: {
24996
25145
  type: String,
24997
25146
  default: () => ''
24998
25147
  },
@@ -25017,11 +25166,11 @@ __webpack_require__.r(__webpack_exports__);
25017
25166
  "gutter": 40
25018
25167
  }
25019
25168
  }, [this.data && this.data.length > 0 && this.data.map((a, b) => {
25020
- if (this.roles && this.roles != '') {
25169
+ if (this.routes && this.routes != '') {
25021
25170
  return h(_components_Aauthority__WEBPACK_IMPORTED_MODULE_0__["default"], {
25022
25171
  "attrs": {
25023
- "role": `${a.id}`,
25024
- "roles": this.roles
25172
+ "route": `${a.id}`,
25173
+ "routes": this.routes
25025
25174
  }
25026
25175
  }, [h("el-col", {
25027
25176
  "attrs": {
@@ -34381,75 +34530,91 @@ __webpack_require__.r(__webpack_exports__);
34381
34530
  props: {
34382
34531
  ip: {
34383
34532
  type: String,
34384
- default: () => '127.0.0.1'
34533
+ default: () => '127.0.0.1:8000'
34385
34534
  },
34386
- port: {
34535
+ type: {
34387
34536
  type: String,
34388
- default: () => '8000'
34537
+ default: () => 'ws'
34389
34538
  },
34390
- domain: {
34539
+ ping: {
34391
34540
  type: String,
34392
- default: () => ''
34541
+ default: () => 'ping'
34393
34542
  },
34394
- type: {
34395
- type: String,
34396
- default: () => 'ws'
34543
+ delay: {
34544
+ type: Number,
34545
+ default: () => 3000
34397
34546
  },
34398
34547
  enable: {
34399
34548
  type: Boolean,
34400
- default: () => false
34549
+ default: () => true
34550
+ },
34551
+ prompt: {
34552
+ type: Boolean,
34553
+ default: () => true
34401
34554
  }
34402
34555
  },
34403
34556
  data() {
34404
34557
  return {
34405
- status: false,
34406
- session: null
34558
+ host: this.ip.includes('://') ? this.ip : `${this.type}://${this.ip}`,
34559
+ status: this.enable,
34560
+ session: null,
34561
+ interval: null
34407
34562
  };
34408
34563
  },
34409
34564
  created() {
34410
34565
  this.create();
34411
34566
  },
34412
- beforeDestory() {
34567
+ beforeDestroy() {
34413
34568
  this.cancel();
34414
34569
  },
34415
34570
  methods: {
34416
34571
  create() {
34417
- this.status = this.enable;
34418
34572
  if (this.status) {
34419
- let domain = this.domain != '' ? this.domain : this.ip.includes(':') ? this.ip : `${this.ip}:${this.port}`;
34420
- this.session = new WebSocket(`${this.type}://${domain}`);
34421
- if (this.session && this.session.readyState == 1) {
34422
- this.session.open = a => this.open(a);
34423
- this.session.message = a => this.message(a);
34424
- this.session.error = a => this.error(a);
34425
- this.session.close = a => this.close(a);
34573
+ this.session = new WebSocket(this.host);
34574
+ if (this.session) {
34575
+ this.session.onopen = a => {
34576
+ this.interval = setInterval(() => this.session.send(this.ping), this.delay); // 心跳检测WS
34577
+ this.$emit('open', a);
34578
+ };
34579
+ this.session.onmessage = ({
34580
+ data = ''
34581
+ }) => {
34582
+ if (data && data != '') {
34583
+ let info = JSON.parse(data);
34584
+ this.prompt && this.$notify.info({
34585
+ title: '新消息提示',
34586
+ message: `收到来自${info.sendName}的消息.`,
34587
+ position: 'bottom-right',
34588
+ onClick: () => {
34589
+ this.$emit('click', info);
34590
+ this.$emit('select', info);
34591
+ }
34592
+ });
34593
+ this.$emit('message', data);
34594
+ }
34595
+ };
34596
+ this.session.onerror = a => {
34597
+ this.cancel();
34598
+ this.$emit('error', a);
34599
+ };
34600
+ this.session.onclose = a => {
34601
+ this.cancel();
34602
+ this.$emit('close', a);
34603
+ };
34426
34604
  this.$emit('create', this.session);
34427
- } else this.cancel(this.session);
34428
- }
34429
- },
34430
- open(a) {
34431
- console.log('open', a);
34432
- this.$emit('open', a);
34433
- },
34434
- message({
34435
- data,
34436
- ...a
34437
- }) {
34438
- console.log('message', a);
34439
- if (data) this.$emit('message', JSON.parse(data));
34440
- },
34441
- error(a) {
34442
- console.log('error', a);
34443
- this.$emit('error', a);
34444
- },
34445
- close(a) {
34446
- console.log('close', a);
34447
- this.$emit('close', a);
34605
+ }
34606
+ } else this.cancel();
34448
34607
  },
34449
- cancel(a) {
34450
- this.$emit('cancel', a);
34451
- this.session = null;
34452
- this.status = false;
34608
+ cancel() {
34609
+ this.$emit('cancel', this.status);
34610
+ this.$nextTick(() => {
34611
+ clearInterval(this.interval);
34612
+ this.$nextTick(() => {
34613
+ this.interval = null;
34614
+ this.session = null;
34615
+ this.status = false;
34616
+ });
34617
+ });
34453
34618
  }
34454
34619
  },
34455
34620
  render() {
@@ -36219,6 +36384,7 @@ var map = {
36219
36384
  "./Amodal/index.js": "9295",
36220
36385
  "./Aoption/index.js": "1aa8",
36221
36386
  "./Apages/index.js": "1d0c",
36387
+ "./ApasswordInput/index.js": "e4ec",
36222
36388
  "./Apopconfirm/index.js": "2ee7",
36223
36389
  "./Apopover/index.js": "1398",
36224
36390
  "./Areminder/index.js": "e241",
@@ -36237,6 +36403,7 @@ var map = {
36237
36403
  "./Atitle/index.js": "8848",
36238
36404
  "./Atooltip/index.js": "fbc2",
36239
36405
  "./Atransfer/index.js": "6bde",
36406
+ "./Aupload/index.js": "fafd",
36240
36407
  "./AwebSocket/index.js": "5209",
36241
36408
  "./Bcard/index.js": "4df8",
36242
36409
  "./BformItem/index.js": "5c61",
@@ -36618,17 +36785,6 @@ exports.scale = scale;
36618
36785
  exports.invert = invert;
36619
36786
  exports.clone = clone;
36620
36787
 
36621
- /***/ }),
36622
-
36623
- /***/ "5934":
36624
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
36625
-
36626
- "use strict";
36627
- /* 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");
36628
- /* 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__);
36629
- /* unused harmony reexport * */
36630
-
36631
-
36632
36788
  /***/ }),
36633
36789
 
36634
36790
  /***/ "5974":
@@ -37772,6 +37928,7 @@ __webpack_require__.r(__webpack_exports__);
37772
37928
  /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_0__);
37773
37929
 
37774
37930
  /* harmony default export */ __webpack_exports__["default"] = ({
37931
+ name: 'Aupload',
37775
37932
  props: {
37776
37933
  type: {
37777
37934
  type: String,
@@ -37783,8 +37940,9 @@ __webpack_require__.r(__webpack_exports__);
37783
37940
  },
37784
37941
  listType: {
37785
37942
  type: String,
37786
- default: () => 'picture-card'
37943
+ default: () => ''
37787
37944
  },
37945
+ // picture-card
37788
37946
  autoUpload: {
37789
37947
  type: Boolean,
37790
37948
  default: () => false
@@ -37833,8 +37991,8 @@ __webpack_require__.r(__webpack_exports__);
37833
37991
  "attrs": {
37834
37992
  "action": this.action,
37835
37993
  "list-type": this.listType,
37836
- "auto-upload": this.autoUpload,
37837
37994
  "http-request": this.upload,
37995
+ "auto-upload": this.autoUpload,
37838
37996
  "show-file-list": this.showFileList,
37839
37997
  "file-list": this.list
37840
37998
  },
@@ -60625,17 +60783,6 @@ __webpack_require__.r(__webpack_exports__);
60625
60783
  }
60626
60784
  });
60627
60785
 
60628
- /***/ }),
60629
-
60630
- /***/ "9211":
60631
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
60632
-
60633
- "use strict";
60634
- /* 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");
60635
- /* 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__);
60636
- /* unused harmony reexport * */
60637
-
60638
-
60639
60786
  /***/ }),
60640
60787
 
60641
60788
  /***/ "9226":
@@ -127413,143 +127560,6 @@ module.exports = function (it) {
127413
127560
  };
127414
127561
 
127415
127562
 
127416
- /***/ }),
127417
-
127418
- /***/ "a61e":
127419
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
127420
-
127421
- "use strict";
127422
- // ESM COMPAT FLAG
127423
- __webpack_require__.r(__webpack_exports__);
127424
-
127425
- // 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&
127426
- var render = function render() {
127427
- var _vm = this,
127428
- _c = _vm._self._c;
127429
- return _c('div', {
127430
- staticClass: "a-upload"
127431
- }, [_c('el-upload', {
127432
- attrs: {
127433
- "action": _vm.action,
127434
- "multiple": _vm.multiple,
127435
- "limit": Number(_vm.limit),
127436
- "list-type": "picture-card",
127437
- "auto-upload": false,
127438
- "http-request": _vm.upload,
127439
- "on-change": e => _vm.upload(e),
127440
- "before-remove": e => _vm.upload(e),
127441
- "file-list": _vm.list
127442
- }
127443
- }, [_vm.src ? _c('img', {
127444
- attrs: {
127445
- "src": _vm.src
127446
- }
127447
- }) : _c('i', {
127448
- staticClass: "el-icon-plus"
127449
- })])], 1);
127450
- };
127451
- var staticRenderFns = [];
127452
-
127453
- // CONCATENATED MODULE: ./src/components/Aupload/index.vue?vue&type=template&id=002e4876&scoped=true&
127454
-
127455
- // 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&
127456
- /* harmony default export */ var Auploadvue_type_script_lang_js_ = ({
127457
- name: 'Aupload',
127458
- props: {
127459
- previewUrl: {
127460
- type: String,
127461
- default: () => '/api/file/detail/path='
127462
- },
127463
- type: {
127464
- type: String,
127465
- default: () => 'image'
127466
- },
127467
- action: {
127468
- type: String,
127469
- default: () => '#'
127470
- },
127471
- multiple: {
127472
- type: Boolean,
127473
- default: () => false
127474
- },
127475
- limit: {
127476
- type: String,
127477
- default: () => '10'
127478
- },
127479
- listType: {
127480
- type: String,
127481
- default: () => 'picture-card'
127482
- },
127483
- autoUpload: {
127484
- type: Boolean,
127485
- default: () => false
127486
- },
127487
- fileList: {
127488
- type: Array,
127489
- default: () => []
127490
- },
127491
- showFileList: {
127492
- type: Boolean,
127493
- default: () => false
127494
- }
127495
- },
127496
- data() {
127497
- return {
127498
- list: [],
127499
- src: ''
127500
- };
127501
- },
127502
- created() {
127503
- this.create();
127504
- },
127505
- methods: {
127506
- create() {
127507
- this.list = this.fileList.concat(this.list);
127508
- },
127509
- change(e) {
127510
- this.$emit('change', e);
127511
- },
127512
- finish(e) {
127513
- this.$emit('finish', e);
127514
- },
127515
- upload(e) {
127516
- this.$emit('upload', e);
127517
- },
127518
- remove(e) {
127519
- this.$emit('remove', e);
127520
- }
127521
- }
127522
- });
127523
- // CONCATENATED MODULE: ./src/components/Aupload/index.vue?vue&type=script&lang=js&
127524
- /* harmony default export */ var components_Auploadvue_type_script_lang_js_ = (Auploadvue_type_script_lang_js_);
127525
- // EXTERNAL MODULE: ./src/components/Aupload/index.vue?vue&type=style&index=0&id=002e4876&prod&scoped=true&lang=css&
127526
- var Auploadvue_type_style_index_0_id_002e4876_prod_scoped_true_lang_css_ = __webpack_require__("9211");
127527
-
127528
- // EXTERNAL MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/runtime/componentNormalizer.js
127529
- var componentNormalizer = __webpack_require__("e607");
127530
-
127531
- // CONCATENATED MODULE: ./src/components/Aupload/index.vue
127532
-
127533
-
127534
-
127535
-
127536
-
127537
-
127538
- /* normalize component */
127539
-
127540
- var component = Object(componentNormalizer["a" /* default */])(
127541
- components_Auploadvue_type_script_lang_js_,
127542
- render,
127543
- staticRenderFns,
127544
- false,
127545
- null,
127546
- "002e4876",
127547
- null
127548
-
127549
- )
127550
-
127551
- /* harmony default export */ var Aupload = __webpack_exports__["default"] = (component.exports);
127552
-
127553
127563
  /***/ }),
127554
127564
 
127555
127565
  /***/ "a624":
@@ -132307,371 +132317,31 @@ module.exports = _default;
132307
132317
  __webpack_require__.r(__webpack_exports__);
132308
132318
  /* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6aaa");
132309
132319
  /* 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__);
132310
- /* harmony import */ var _components_AformItem__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("2234");
132320
+ /* harmony import */ var _components_Aform_AfEditor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("b550");
132311
132321
  /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("d397");
132312
132322
  /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_2__);
132313
132323
 
132314
132324
 
132315
132325
 
132316
-
132317
132326
  /* harmony default export */ __webpack_exports__["default"] = ({
132318
132327
  name: 'Aform',
132319
- props: {
132320
- value: {
132321
- type: Object,
132322
- default: () => ({})
132323
- },
132324
- must: {
132325
- type: Boolean,
132326
- default: () => false
132327
- },
132328
- inline: {
132329
- type: Boolean,
132330
- default: () => false
132331
- },
132332
- cols: {
132333
- type: String,
132334
- default: () => '4'
132335
- },
132336
- gutter: {
132337
- type: String,
132338
- default: () => '16'
132339
- },
132340
- config: {
132341
- type: Object,
132342
- default: () => ({})
132343
- },
132344
- values: {
132345
- type: Object,
132346
- default: () => ({})
132347
- },
132348
- global: {
132349
- type: Boolean,
132350
- default: () => false
132351
- },
132352
- disabled: {
132353
- type: Boolean,
132354
- default: () => false
132355
- }
132356
- },
132357
- data() {
132358
- return {
132359
- form: this.value,
132360
- option: {}
132361
- };
132362
- },
132363
- watch: {
132364
- config: {
132365
- immediate: true,
132366
- deep: true,
132367
- handler() {
132368
- this.relate(this.config);
132369
- }
132370
- },
132371
- values: {
132372
- immediate: true,
132373
- deep: true,
132374
- handler() {
132375
- this.relate(this.config);
132376
- }
132377
- }
132378
- },
132379
- created() {
132380
- this.relate(this.config);
132381
- },
132382
- methods: {
132383
- input() {
132384
- this.$emit('input', this.filter());
132385
- },
132386
- change() {
132387
- this.$emit('change', this.filter(), this.form, this.option);
132388
- },
132389
- relate(config = {}) {
132390
- let data = {};
132391
- Object.keys(config).forEach(a => {
132392
- let {
132393
- ...r
132394
- } = config[a];
132395
- let child = r.children || r.child || r.node || null;
132396
- if (child && Object.keys(child).length > 0) {
132397
- this.relate(child);
132398
- } else {
132399
- if (r.type == 'password') {
132400
- data[a] = '';
132401
- } else {
132402
- if (this.values[a] != undefined) {
132403
- data[a] = `${this.values[a]}`;
132404
- } else if (r.default) {
132405
- data[a] = r.default;
132406
- }
132407
- }
132408
- }
132409
- });
132410
- this.form = data;
132411
- },
132412
- create(a, b) {
132413
- const h = this.$createElement;
132414
- let {
132415
- ...r
132416
- } = this.config[a];
132417
- let label = r.text || r.label || r.title || '';
132418
- let width = r.width ? r.width : `${100 / this.cols}%`;
132419
- let judge = [{
132420
- required: true,
132421
- message: `${label}不能为空`
132422
- }];
132423
- let valid = r.rule ? r.rule : r.must || this.must ? judge : [];
132424
- let rules = this.disabled || r.disabled ? [] : (r.must || this.must) && r.rule ? [...judge, ...r.rule] : valid;
132425
- let props = {
132426
- name: a,
132427
- prop: a,
132428
- label,
132429
- rules,
132430
- disabled: r.disabled || this.disabled,
132431
- ...r
132432
- };
132433
- if (this.inline) {
132434
- let style = {
132435
- padding: `0 ${this.gutter / 2}px`,
132436
- width
132437
- };
132438
- return h("el-form-item", {
132439
- "style": style,
132440
- "props": {
132441
- ...props
132442
- }
132443
- }, [this.format(r, a)]);
132444
- } else {
132445
- if (r.span) {
132446
- return h("el-col", {
132447
- "key": b,
132448
- "attrs": {
132449
- "span": Number(r.span)
132450
- }
132451
- }, [h("el-form-item", {
132452
- "props": {
132453
- ...props
132454
- }
132455
- }, [this.format(r, a)])]);
132456
- } else {
132457
- return h("el-col", {
132458
- "key": b,
132459
- "style": {
132460
- width
132461
- }
132462
- }, [h("el-form-item", {
132463
- "props": {
132464
- ...props
132465
- }
132466
- }, [this.format(r, a)])]);
132467
- }
132468
- }
132469
- },
132470
- format(a, b) {
132471
- const h = this.$createElement;
132472
- this.option[b] = a;
132473
- let child = a.children || a.child || a.node || null;
132474
- if (child && Object.keys(child).length > 0) {
132475
- return Object.keys(child).map((c, d) => {
132476
- let {
132477
- ...r
132478
- } = child[c];
132479
- let space = a.gutter ? a.gutter / 2 : this.gutter / 4;
132480
- let style = {
132481
- padding: `0 ${space}px`
132482
- };
132483
- r.type = r.type ? r.type : a.type;
132484
- if (r.span) {
132485
- return h("el-col", {
132486
- "key": d,
132487
- "style": style,
132488
- "attrs": {
132489
- "span": Number(r.span)
132490
- }
132491
- }, [this.format(r, c)]);
132492
- } else {
132493
- let width = r.width ? r.width : `${100 / Object.keys(child).length}%`;
132494
- return h("el-col", {
132495
- "key": d,
132496
- "style": {
132497
- width,
132498
- ...style
132499
- }
132500
- }, [this.format(r, c)]);
132501
- }
132502
- });
132503
- } else {
132504
- let config = {
132505
- change: () => this.change(),
132506
- form: this.form,
132507
- field: b,
132508
- clearable: !a.default,
132509
- ...a
132510
- };
132511
- return h(_components_AformItem__WEBPACK_IMPORTED_MODULE_1__["default"], {
132512
- "on": {
132513
- "input": this.input
132514
- },
132515
- "attrs": {
132516
- "config": config
132517
- }
132518
- });
132519
- }
132520
- },
132521
- filter() {
132522
- let data = {};
132523
- Object.keys(this.form).length > 0 && Object.keys(this.form).forEach(a => {
132524
- if (this.option[a]) {
132525
- let {
132526
- ...r
132527
- } = this.option[a];
132528
- if (r.split && r.split.length > 0) {
132529
- r.split.forEach((b, c) => data[b] = this.form[a][c]);
132530
- } else data[a] = this.form[a];
132531
- }
132532
- });
132533
- return data;
132534
- },
132535
- submit() {
132536
- if (this.global) {
132537
- const {
132538
- pageParams
132539
- } = this.$store.state;
132540
- this.$store.commit('setFormParams', this.filter());
132541
- this.$store.commit('setPageParams', {
132542
- ...pageParams,
132543
- page: 1
132544
- });
132545
- }
132546
- this.$nextTick(() => this.$emit('submit', this.filter(), this.form, this.option));
132547
- },
132548
- cancel() {
132549
- this.$refs.form && this.$refs.form.resetFields && this.$refs.form.resetFields();
132550
- this.$nextTick(() => {
132551
- this.form = {};
132552
- this.$nextTick(() => {
132553
- this.relate(this.config);
132554
- this.$nextTick(() => {
132555
- if (this.global) {
132556
- const {
132557
- pageParams
132558
- } = this.$store.state;
132559
- this.$store.commit('setFormParams', this.filter());
132560
- this.$store.commit('setPageParams', {
132561
- ...pageParams,
132562
- page: 1
132563
- });
132564
- }
132565
- this.$nextTick(() => this.$emit('cancel', this.filter(), this.form, this.option));
132566
- });
132567
- });
132568
- });
132569
- }
132570
- },
132571
132328
  render() {
132572
132329
  const h = arguments[0];
132573
132330
  let {
132574
- margin = '0',
132575
- padding = '0',
132576
- size = 'small',
132577
- loading = false,
132578
- labelWidth = 'auto',
132579
- labelPosition = 'top',
132580
- finishText = '保存',
132581
- submitText = '提交',
132582
- rejectText = '驳回',
132583
- cancelText = '取消',
132584
- action = [],
132585
- ...rest
132331
+ ...props
132586
132332
  } = this.$attrs;
132587
- let style = this.inline ? {
132588
- margin: `0 -${this.gutter / 2}px`
132589
- } : {};
132590
- let {
132591
- finish = null,
132592
- submit = null,
132593
- reject = null,
132594
- cancel = null
132595
- } = this.$listeners;
132596
- let props = {
132597
- size,
132598
- inline: this.inline,
132599
- labelWidth,
132600
- labelPosition,
132601
- style,
132602
- ...rest
132603
- };
132604
132333
  return h("div", {
132605
- "class": "a-form",
132606
- "style": {
132607
- margin,
132608
- padding
132609
- }
132610
- }, [h("el-form", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
132611
- "ref": "form"
132612
- }, {
132613
- "props": {
132614
- model: this.form,
132615
- ...props
132616
- }
132617
- }]), [this.inline ? Object.keys(this.config).map((a, b) => this.create(a, b)) : h("div", {
132618
- "class": "column"
132619
- }, [h("el-row", {
132620
- "attrs": {
132621
- "gutter": Number(this.gutter)
132622
- },
132623
- "class": "main-rows"
132624
- }, [Object.keys(this.config).map((a, b) => this.create(a, b))])]), (finish || submit || reject || cancel || action.length > 0) && h("div", {
132625
- "class": "action",
132626
- "style": {
132627
- paddingLeft: `${this.gutter}px`
132628
- }
132629
- }, [h("el-form-item", {
132630
- "attrs": {
132631
- "name": "action",
132632
- "label": "action"
132633
- }
132634
- }, [finish && h("el-button", {
132635
- "attrs": {
132636
- "disabled": loading,
132637
- "type": "success"
132638
- },
132639
- "on": {
132640
- "click": this.submit
132641
- }
132642
- }, [finishText]), submit && h("el-button", {
132643
- "attrs": {
132644
- "disabled": loading,
132645
- "type": "primary"
132646
- },
132647
- "on": {
132648
- "click": this.submit
132649
- }
132650
- }, [submitText]), reject && h("el-button", {
132651
- "attrs": {
132652
- "disabled": loading,
132653
- "type": "warning"
132654
- },
132655
- "on": {
132656
- "click": this.submit
132657
- }
132658
- }, [rejectText]), cancel && h("el-button", {
132659
- "attrs": {
132660
- "disabled": loading,
132661
- "type": "default"
132662
- },
132663
- "on": {
132664
- "click": this.cancel
132665
- }
132666
- }, [cancelText]), action.map((a, b) => h("el-button", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
132667
- "key": b,
132334
+ "class": "a-form"
132335
+ }, [h(_components_Aform_AfEditor__WEBPACK_IMPORTED_MODULE_1__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
132668
132336
  "attrs": {
132669
- "disabled": loading
132670
- },
132671
- "on": {
132672
- "click": e => a.click(this.filter(), this.form, this.option, e)
132337
+ "inline": true,
132338
+ "global": false
132673
132339
  }
132674
- }, a]), [a.label || a.title || a.text || '']))])])])]);
132340
+ }, {
132341
+ "on": props
132342
+ }, {}, {
132343
+ "props": props
132344
+ }]))]);
132675
132345
  }
132676
132346
  });
132677
132347
 
@@ -133365,6 +133035,13 @@ module.exports = _default;
133365
133035
 
133366
133036
  /***/ }),
133367
133037
 
133038
+ /***/ "b1f4":
133039
+ /***/ (function(module, exports, __webpack_require__) {
133040
+
133041
+ // extracted by mini-css-extract-plugin
133042
+
133043
+ /***/ }),
133044
+
133368
133045
  /***/ "b224":
133369
133046
  /***/ (function(module, exports, __webpack_require__) {
133370
133047
 
@@ -134419,6 +134096,10 @@ __webpack_require__.r(__webpack_exports__);
134419
134096
  /* harmony default export */ __webpack_exports__["default"] = ({
134420
134097
  name: 'AfEditor',
134421
134098
  props: {
134099
+ id: {
134100
+ type: String,
134101
+ default: () => `a-f-editor-id-${Math.random()}`
134102
+ },
134422
134103
  value: {
134423
134104
  type: Object,
134424
134105
  default: () => ({})
@@ -134451,6 +134132,14 @@ __webpack_require__.r(__webpack_exports__);
134451
134132
  type: Boolean,
134452
134133
  default: () => false
134453
134134
  },
134135
+ prompt: {
134136
+ type: Boolean,
134137
+ default: () => false
134138
+ },
134139
+ review: {
134140
+ type: Boolean,
134141
+ default: () => false
134142
+ },
134454
134143
  disabled: {
134455
134144
  type: Boolean,
134456
134145
  default: () => false
@@ -134459,11 +134148,12 @@ __webpack_require__.r(__webpack_exports__);
134459
134148
  data() {
134460
134149
  return {
134461
134150
  form: this.value,
134462
- option: {}
134151
+ option: {},
134152
+ width: 'auto'
134463
134153
  };
134464
134154
  },
134465
134155
  watch: {
134466
- config: {
134156
+ values: {
134467
134157
  immediate: true,
134468
134158
  deep: true,
134469
134159
  handler() {
@@ -134471,39 +134161,42 @@ __webpack_require__.r(__webpack_exports__);
134471
134161
  }
134472
134162
  }
134473
134163
  },
134474
- created() {
134164
+ mounted() {
134165
+ this.resize();
134475
134166
  this.relate(this.config);
134476
134167
  },
134477
- mounted() {},
134478
134168
  methods: {
134479
- input() {
134169
+ input(a) {
134480
134170
  this.$emit('input', this.filter());
134481
134171
  },
134482
134172
  change() {
134483
134173
  this.$emit('change', this.filter(), this.form, this.option);
134484
134174
  },
134175
+ resize() {
134176
+ let width = 0;
134177
+ let items = document.getElementsByClassName(`${this.id}-item`);
134178
+ if (items) for (let a = 0; a < items.length; a++) {
134179
+ items[a].firstChild.clientWidth > width && (width = items[a].firstChild.clientWidth);
134180
+ }
134181
+ this.width = `${width}px`;
134182
+ },
134485
134183
  relate(config = {}) {
134486
134184
  let data = {};
134487
- Object.keys(config).forEach(a => {
134185
+ if (this.values) Object.keys(config).forEach(a => {
134488
134186
  let {
134489
134187
  ...r
134490
134188
  } = config[a];
134491
134189
  let child = r.children || r.child || r.node || null;
134492
- if (child && Object.keys(child).length > 0) {
134493
- this.relate(child);
134494
- } else {
134495
- if (r.type == 'password') {
134496
- data[a] = '';
134497
- } else {
134498
- if (this.values[a] != undefined) {
134499
- data[a] = `${this.values[a]}`;
134500
- } else if (r.default) {
134501
- data[a] = r.default;
134502
- }
134503
- }
134504
- }
134190
+ if (child && Object.keys(child).length > 0) this.relate(child);
134191
+ if (this.values[a] != undefined) {
134192
+ if (r.multiple) this.values[a] != '' && (data[a] = this.values[a].split(','));else data[a] = `${this.values[a]}`;
134193
+ } else r.default && (data[a] = r.default);
134194
+ if (r.type == 'password') data[a] = '';
134505
134195
  });
134506
- this.form = data;
134196
+ this.form = {
134197
+ ...data,
134198
+ ...this.value
134199
+ };
134507
134200
  },
134508
134201
  create(a, b) {
134509
134202
  const h = this.$createElement;
@@ -134512,18 +134205,26 @@ __webpack_require__.r(__webpack_exports__);
134512
134205
  } = this.config[a];
134513
134206
  let label = r.text || r.label || r.title || '';
134514
134207
  let width = r.width ? r.width : `${100 / this.cols}%`;
134208
+ let least = r.minlength ? [{
134209
+ min: r.minlength,
134210
+ message: `最少${r.minlength}个字符`
134211
+ }] : [];
134212
+ let limit = r.maxlength ? [{
134213
+ max: r.maxlength,
134214
+ message: `最多${r.maxlength}个字符`
134215
+ }] : [];
134515
134216
  let judge = [{
134516
134217
  required: true,
134517
134218
  message: `${label}不能为空`
134518
- }];
134219
+ }, ...least, ...limit];
134519
134220
  let valid = r.rule ? r.rule : r.must || this.must ? judge : [];
134520
134221
  let rules = this.disabled || r.disabled ? [] : (r.must || this.must) && r.rule ? [...judge, ...r.rule] : valid;
134521
134222
  let props = {
134522
134223
  name: a,
134523
134224
  prop: a,
134524
- label,
134225
+ label: this.review ? `${label}:` : label,
134226
+ labelWidth: this.width,
134525
134227
  rules,
134526
- disabled: r.disabled || this.disabled,
134527
134228
  ...r
134528
134229
  };
134529
134230
  if (this.inline) {
@@ -134531,12 +134232,13 @@ __webpack_require__.r(__webpack_exports__);
134531
134232
  padding: `0 ${this.gutter / 2}px`,
134532
134233
  width
134533
134234
  };
134534
- return h("el-form-item", {
134235
+ return h("div", [h("el-form-item", {
134236
+ "class": `${this.id}-item`,
134535
134237
  "style": style,
134536
134238
  "props": {
134537
134239
  ...props
134538
134240
  }
134539
- }, [this.format(r, a)]);
134241
+ }, [this.format(r, a)]), this.$slots.default]);
134540
134242
  } else {
134541
134243
  if (r.span) {
134542
134244
  return h("el-col", {
@@ -134545,6 +134247,7 @@ __webpack_require__.r(__webpack_exports__);
134545
134247
  "span": Number(r.span)
134546
134248
  }
134547
134249
  }, [h("el-form-item", {
134250
+ "class": `${this.id}-item`,
134548
134251
  "props": {
134549
134252
  ...props
134550
134253
  }
@@ -134556,6 +134259,7 @@ __webpack_require__.r(__webpack_exports__);
134556
134259
  width
134557
134260
  }
134558
134261
  }, [h("el-form-item", {
134262
+ "class": `${this.id}-item`,
134559
134263
  "props": {
134560
134264
  ...props
134561
134265
  }
@@ -134598,13 +134302,18 @@ __webpack_require__.r(__webpack_exports__);
134598
134302
  });
134599
134303
  } else {
134600
134304
  let config = {
134305
+ disabled: a.disabled || this.disabled,
134601
134306
  change: () => this.change(),
134602
134307
  form: this.form,
134308
+ quick: true,
134603
134309
  field: b,
134604
- clearable: !a.default,
134605
134310
  ...a
134606
134311
  };
134607
- return h(_components_AformItem__WEBPACK_IMPORTED_MODULE_1__["default"], {
134312
+ if (this.review && !a.data) {
134313
+ return h("div", {
134314
+ "class": "form-value"
134315
+ }, [this.form[b]]);
134316
+ } else return h(_components_AformItem__WEBPACK_IMPORTED_MODULE_1__["default"], {
134608
134317
  "on": {
134609
134318
  "input": this.input
134610
134319
  },
@@ -134616,14 +134325,16 @@ __webpack_require__.r(__webpack_exports__);
134616
134325
  },
134617
134326
  filter() {
134618
134327
  let data = {};
134619
- Object.keys(this.form).length > 0 && Object.keys(this.form).forEach(a => {
134328
+ Object.keys(this.form).forEach(a => {
134620
134329
  if (this.option[a]) {
134621
134330
  let {
134622
134331
  ...r
134623
134332
  } = this.option[a];
134624
- if (r.split && r.split.length > 0) {
134625
- r.split.forEach((b, c) => data[b] = this.form[a][c]);
134626
- } else data[a] = this.form[a];
134333
+ let ignore = r.ignore || r.empty || r.blank || r.omit;
134334
+ if (!ignore) {
134335
+ if (r.split && r.split.length > 0) r.split.forEach((b, c) => data[b] = this.form[a][c]);
134336
+ if (r.multiple && this.form[a] != '') data[a] = this.form[a].join();else data[a] = this.form[a];
134337
+ }
134627
134338
  }
134628
134339
  });
134629
134340
  return data;
@@ -134639,7 +134350,13 @@ __webpack_require__.r(__webpack_exports__);
134639
134350
  page: 1
134640
134351
  });
134641
134352
  }
134642
- this.$refs.form.validate(valid => valid && this.$emit('submit', this.filter(), this.form, this.option));
134353
+ this.$refs.form.validate((valid, items) => {
134354
+ if (valid) {
134355
+ this.$emit('submit', this.filter(), this.form, this.option);
134356
+ } else if (this.prompt) {
134357
+ Object.keys(items).forEach(a => items[a].forEach(b => this.$message.error(b.message)));
134358
+ }
134359
+ });
134643
134360
  },
134644
134361
  cancel() {
134645
134362
  this.$refs.form && this.$refs.form.resetFields && this.$refs.form.resetFields();
@@ -134667,12 +134384,13 @@ __webpack_require__.r(__webpack_exports__);
134667
134384
  render() {
134668
134385
  const h = arguments[0];
134669
134386
  let {
134387
+ width = '100%',
134670
134388
  margin = '0',
134671
134389
  padding = '0',
134672
134390
  size = 'small',
134673
134391
  loading = false,
134674
134392
  labelWidth = 'auto',
134675
- labelPosition = 'top',
134393
+ labelPosition = this.review ? 'right' : 'top',
134676
134394
  finishText = '保存',
134677
134395
  submitText = '提交',
134678
134396
  rejectText = '驳回',
@@ -134683,48 +134401,54 @@ __webpack_require__.r(__webpack_exports__);
134683
134401
  let style = this.inline ? {
134684
134402
  margin: `0 -${this.gutter / 2}px`
134685
134403
  } : {};
134686
- let {
134687
- finish = null,
134688
- submit = null,
134689
- reject = null,
134690
- cancel = null
134691
- } = this.$listeners;
134692
134404
  let props = {
134693
134405
  size,
134694
134406
  inline: this.inline,
134695
134407
  labelWidth,
134696
134408
  labelPosition,
134697
- style,
134698
134409
  ...rest
134699
134410
  };
134411
+ let {
134412
+ finish = null,
134413
+ submit = null,
134414
+ reject = null,
134415
+ cancel = null
134416
+ } = this.$listeners;
134700
134417
  return h("div", {
134701
134418
  "class": "a-f-editor",
134702
134419
  "style": {
134420
+ width,
134703
134421
  margin,
134704
134422
  padding
134705
134423
  }
134706
134424
  }, [h("el-form", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
134707
- "ref": "form"
134425
+ "ref": "form",
134426
+ "attrs": {
134427
+ "id": this.id
134428
+ },
134429
+ "style": style
134708
134430
  }, {
134709
134431
  "props": {
134710
134432
  model: this.form,
134711
134433
  ...props
134712
134434
  }
134713
- }]), [this.inline ? Object.keys(this.config).map((a, b) => this.create(a, b)) : h("el-row", {
134435
+ }]), [this.inline ? Object.keys(this.config).map((a, b) => this.config[a] && this.create(a, b)) : h("el-row", {
134714
134436
  "attrs": {
134715
134437
  "gutter": Number(this.gutter)
134716
134438
  },
134717
134439
  "class": "main-rows"
134718
- }, [Object.keys(this.config).map((a, b) => this.create(a, b)), this.$slots.default]), (finish || submit || reject || cancel || action.length > 0) && h("div", {
134440
+ }, [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", {
134719
134441
  "class": "action"
134720
134442
  }, [h("el-form-item", {
134721
134443
  "attrs": {
134722
134444
  "name": "action",
134723
- "label": "action"
134445
+ "label": "action",
134446
+ "label-width": "0"
134724
134447
  }
134725
134448
  }, [finish && h("el-button", {
134726
134449
  "attrs": {
134727
134450
  "disabled": loading,
134451
+ "loading": loading,
134728
134452
  "type": "success"
134729
134453
  },
134730
134454
  "on": {
@@ -134733,6 +134457,7 @@ __webpack_require__.r(__webpack_exports__);
134733
134457
  }, [finishText]), submit && h("el-button", {
134734
134458
  "attrs": {
134735
134459
  "disabled": loading,
134460
+ "loading": loading,
134736
134461
  "type": "primary"
134737
134462
  },
134738
134463
  "on": {
@@ -134741,6 +134466,7 @@ __webpack_require__.r(__webpack_exports__);
134741
134466
  }, [submitText]), reject && h("el-button", {
134742
134467
  "attrs": {
134743
134468
  "disabled": loading,
134469
+ "loading": loading,
134744
134470
  "type": "warning"
134745
134471
  },
134746
134472
  "on": {
@@ -134749,12 +134475,12 @@ __webpack_require__.r(__webpack_exports__);
134749
134475
  }, [rejectText]), cancel && h("el-button", {
134750
134476
  "attrs": {
134751
134477
  "disabled": loading,
134752
- "type": "default"
134478
+ "type": !finish && !submit && !reject ? 'primary' : 'default'
134753
134479
  },
134754
134480
  "on": {
134755
134481
  "click": this.cancel
134756
134482
  }
134757
- }, [cancelText]), action.map((a, b) => h("el-button", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
134483
+ }, [!finish && !submit && !reject ? '确定' : cancelText]), action.map((a, b) => h("el-button", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
134758
134484
  "key": b,
134759
134485
  "attrs": {
134760
134486
  "disabled": loading
@@ -135814,7 +135540,7 @@ exports.onIrrelevantElement = onIrrelevantElement;
135814
135540
 
135815
135541
  /***/ }),
135816
135542
 
135817
- /***/ "ba6c":
135543
+ /***/ "ba86":
135818
135544
  /***/ (function(module, exports, __webpack_require__) {
135819
135545
 
135820
135546
  // extracted by mini-css-extract-plugin
@@ -136864,6 +136590,7 @@ __webpack_require__.r(__webpack_exports__);
136864
136590
 
136865
136591
 
136866
136592
 
136593
+
136867
136594
  /* harmony default export */ __webpack_exports__["default"] = ({
136868
136595
  name: 'Atable',
136869
136596
  components: {
@@ -136931,7 +136658,7 @@ __webpack_require__.r(__webpack_exports__);
136931
136658
  },
136932
136659
  height: {
136933
136660
  type: String,
136934
- default: () => '480'
136661
+ default: () => '520'
136935
136662
  },
136936
136663
  elementLoadingText: {
136937
136664
  type: String,
@@ -137051,14 +136778,14 @@ __webpack_require__.r(__webpack_exports__);
137051
136778
  } = a;
137052
136779
  let child = a.children || a.child || a.node || a.list || [];
137053
136780
  let field = a.field || a.index || a.name || a.prop;
137054
- let label = a.label || a.title || a.text;
136781
+ let label = a.label || a.title || a.text || '';
137055
136782
  let props = {
137056
136783
  key: b,
137057
136784
  prop: field,
137058
136785
  scopedSlot: field,
137059
136786
  sortable: field ? a.sortable ? a.sortable : this.sortable : false,
137060
136787
  formatter: render ? render : type ? (e, f, g, h) => this.format(a, b, e, h) : null,
137061
- showOverflowTooltip: a.showOverflowTooltip ? a.showOverflowTooltip : this.showOverflowTooltip,
136788
+ showOverflowTooltip: render ? false : type ? false : a.showOverflowTooltip ? a.showOverflowTooltip : this.showOverflowTooltip,
137062
136789
  ...r
137063
136790
  };
137064
136791
  return h("el-table-column", {
@@ -137099,47 +136826,47 @@ __webpack_require__.r(__webpack_exports__);
137099
136826
  width: this.actionWidth,
137100
136827
  label: this.actionTitle,
137101
136828
  showOverflowTooltip: false,
137102
- formatter: item => h("div", {
136829
+ formatter: (a, b, c, d) => h("div", {
137103
136830
  "class": "action"
137104
136831
  }, [review && h("i", {
137105
136832
  "class": "el-icon-view",
137106
136833
  "on": {
137107
- "click": () => review(item)
136834
+ "click": () => review(a, b, c, d)
137108
136835
  }
137109
136836
  }), modify && h("i", {
137110
136837
  "class": "el-icon-edit",
137111
136838
  "on": {
137112
- "click": () => modify(item)
136839
+ "click": () => modify(a, b, c, d)
137113
136840
  }
137114
136841
  }), update && h("i", {
137115
136842
  "class": "el-icon-edit",
137116
136843
  "on": {
137117
- "click": () => update(item)
136844
+ "click": () => update(a, b, c, d)
137118
136845
  }
137119
136846
  }), handle && h("i", {
137120
136847
  "class": "el-icon-edit",
137121
136848
  "on": {
137122
- "click": () => handle(item)
136849
+ "click": () => handle(a, b, c, d)
137123
136850
  }
137124
136851
  }), remove && h(_components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__["default"], {
137125
136852
  "on": {
137126
- "submit": () => remove(item)
136853
+ "submit": () => remove(a, b, c, d)
137127
136854
  }
137128
136855
  }), this.$listeners.delete && h(_components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__["default"], {
137129
136856
  "on": {
137130
- "submit": () => this.$listeners.delete(item)
136857
+ "submit": () => this.$listeners.delete(a, b, c, d)
137131
136858
  }
137132
136859
  }), this.$listeners.export && h("i", {
137133
136860
  "class": "el-icon-download",
137134
136861
  "on": {
137135
- "click": () => this.$listeners.export(item)
136862
+ "click": () => this.$listeners.export(a, b, c, d)
137136
136863
  }
137137
136864
  }), this.action.map((a, b) => h("el-button", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
137138
136865
  "key": b,
137139
136866
  "on": {
137140
- "click": e => a.click(item, e)
136867
+ "click": e => a.click(a, b, c, d, e)
137141
136868
  }
137142
- }, a]), [a.label || a.title || a.text]))])
136869
+ }, a]), [a.label || a.title || a.text || '']))])
137143
136870
  };
137144
136871
  }
137145
136872
  },
@@ -137215,8 +136942,8 @@ __webpack_require__.r(__webpack_exports__);
137215
136942
  const {
137216
136943
  ...r
137217
136944
  } = this.record;
137218
- const data = r.data ? r.data : r.list ? r.list : r.rows ? r.rows : r.record ? r.record : r.records ? r.records : [];
137219
- const size = r.total ? r.total : r.count ? r.count : r.size ? r.size : 0;
136945
+ const data = r.data || r.list || r.rows || r.record || r.records || [];
136946
+ const size = r.total || r.count || r.size || 0;
137220
136947
  const {
137221
136948
  pageParams = {}
137222
136949
  } = this.$store.state;
@@ -137225,7 +136952,7 @@ __webpack_require__.r(__webpack_exports__);
137225
136952
  } = this.$attrs;
137226
136953
  return h("div", {
137227
136954
  "class": this.border ? 'a-table' : 'a-table border'
137228
- }, [h("el-table", {
136955
+ }, [h("el-table", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
137229
136956
  "ref": "a-table",
137230
136957
  "attrs": {
137231
136958
  "id": this.id,
@@ -137253,11 +136980,14 @@ __webpack_require__.r(__webpack_exports__);
137253
136980
  "on": {
137254
136981
  "row-click": this.choose,
137255
136982
  "selection-change": this.select
137256
- },
137257
- "props": {
137258
- ...props
137259
136983
  }
137260
- }, [(this.selection || this.$listeners.select) && h("el-table-column", {
136984
+ }, {
136985
+ "props": props
136986
+ }, {
136987
+ "attrs": {
136988
+ "no": props
136989
+ }
136990
+ }]), [(this.selection || this.$listeners.select) && h("el-table-column", {
137261
136991
  "attrs": {
137262
136992
  "fixed": "left",
137263
136993
  "type": "selection",
@@ -137277,16 +137007,18 @@ __webpack_require__.r(__webpack_exports__);
137277
137007
  "attrs": {
137278
137008
  "description": this.emptyText
137279
137009
  }
137280
- })])]), !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()([{
137010
+ })])]), !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()([{
137281
137011
  "attrs": {
137282
- "total": Number(size),
137283
- "pages": pageParams
137012
+ "pages": Object.keys(this.pages).length > 0 ? this.pages : pageParams,
137013
+ "total": Number(size)
137284
137014
  },
137285
137015
  "on": {
137286
137016
  "change": this.change
137287
137017
  }
137288
137018
  }, {
137289
137019
  "props": this.pages
137020
+ }, {}, {
137021
+ "on": this.pages
137290
137022
  }]))]);
137291
137023
  }
137292
137024
  });
@@ -140477,6 +140209,17 @@ module.exports = function (argument) {
140477
140209
  };
140478
140210
 
140479
140211
 
140212
+ /***/ }),
140213
+
140214
+ /***/ "c352":
140215
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
140216
+
140217
+ "use strict";
140218
+ /* 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");
140219
+ /* 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__);
140220
+ /* unused harmony reexport * */
140221
+
140222
+
140480
140223
  /***/ }),
140481
140224
 
140482
140225
  /***/ "c363":
@@ -148799,7 +148542,7 @@ module.exports = _default;
148799
148542
  // ESM COMPAT FLAG
148800
148543
  __webpack_require__.r(__webpack_exports__);
148801
148544
 
148802
- // 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&
148545
+ // 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&
148803
148546
  var render = function render() {
148804
148547
  var _vm = this,
148805
148548
  _c = _vm._self._c;
@@ -148877,7 +148620,7 @@ var render = function render() {
148877
148620
  };
148878
148621
  var staticRenderFns = [];
148879
148622
 
148880
- // CONCATENATED MODULE: ./src/components/Atree/index.vue?vue&type=template&id=446b4709&scoped=true&
148623
+ // CONCATENATED MODULE: ./src/components/Atree/index.vue?vue&type=template&id=47c24b82&scoped=true&
148881
148624
 
148882
148625
  // 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&
148883
148626
  /* harmony default export */ var Atreevue_type_script_lang_js_ = ({
@@ -149003,7 +148746,9 @@ var staticRenderFns = [];
149003
148746
  if (this.horizontal) return h("span", {
149004
148747
  "class": children && children.length > 0 || type && type != 2 ? '' : 'last-leaf'
149005
148748
  }, [name]);
149006
- return h("span", [name]);
148749
+ return h("span", {
148750
+ "class": "a-tree-item-label"
148751
+ }, [name]);
149007
148752
  },
149008
148753
  create() {
149009
148754
  this.checkedKeys = this.defaultCheckedKeys.filter(a => a != 0);
@@ -149028,8 +148773,10 @@ var staticRenderFns = [];
149028
148773
  this.checkedRows = this.$refs['aTree'].getCheckedNodes();
149029
148774
  this.checkedKeys = this.$refs['aTree'].getCheckedKeys();
149030
148775
  this.halfCheckedKeys = this.$refs['aTree'].getHalfCheckedKeys();
149031
- this.$emit('check', [...this.checkedKeys, ...this.halfCheckedKeys]);
149032
- this.$emit('choose', [...this.checkedKeys, ...this.halfCheckedKeys]);
148776
+ let params = [...this.checkedKeys, ...this.halfCheckedKeys];
148777
+ this.$emit('input', params);
148778
+ this.$emit('check', params);
148779
+ this.$emit('choose', params);
149033
148780
  },
149034
148781
  nodeClick(e) {
149035
148782
  this.selectedRow = e;
@@ -149050,8 +148797,8 @@ var staticRenderFns = [];
149050
148797
  });
149051
148798
  // CONCATENATED MODULE: ./src/components/Atree/index.vue?vue&type=script&lang=js&
149052
148799
  /* harmony default export */ var components_Atreevue_type_script_lang_js_ = (Atreevue_type_script_lang_js_);
149053
- // EXTERNAL MODULE: ./src/components/Atree/index.vue?vue&type=style&index=0&id=446b4709&prod&scoped=true&lang=css&
149054
- var Atreevue_type_style_index_0_id_446b4709_prod_scoped_true_lang_css_ = __webpack_require__("5934");
148800
+ // EXTERNAL MODULE: ./src/components/Atree/index.vue?vue&type=style&index=0&id=47c24b82&prod&scoped=true&lang=css&
148801
+ var Atreevue_type_style_index_0_id_47c24b82_prod_scoped_true_lang_css_ = __webpack_require__("c352");
149055
148802
 
149056
148803
  // EXTERNAL MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/runtime/componentNormalizer.js
149057
148804
  var componentNormalizer = __webpack_require__("e607");
@@ -149071,7 +148818,7 @@ var component = Object(componentNormalizer["a" /* default */])(
149071
148818
  staticRenderFns,
149072
148819
  false,
149073
148820
  null,
149074
- "446b4709",
148821
+ "47c24b82",
149075
148822
  null
149076
148823
 
149077
148824
  )
@@ -152106,6 +151853,154 @@ module.exports = _default;
152106
151853
 
152107
151854
  /***/ }),
152108
151855
 
151856
+ /***/ "d98d":
151857
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
151858
+
151859
+ "use strict";
151860
+ // ESM COMPAT FLAG
151861
+ __webpack_require__.r(__webpack_exports__);
151862
+
151863
+ // 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&
151864
+ var render = function render() {
151865
+ var _vm = this,
151866
+ _c = _vm._self._c;
151867
+ return _c('div', {
151868
+ staticClass: "a-upload"
151869
+ }, [_c('el-upload', {
151870
+ attrs: {
151871
+ "action": _vm.action,
151872
+ "on-remove": _vm.remove,
151873
+ "on-exceed": _vm.exceed,
151874
+ "multiple": _vm.multiple,
151875
+ "on-preview": _vm.review,
151876
+ "http-request": _vm.upload,
151877
+ "before-remove": _vm.remove,
151878
+ "limit": parseInt(_vm.limit),
151879
+ "auto-upload": _vm.autoUpload,
151880
+ "show-file-list": _vm.showFileList,
151881
+ "list-type": _vm.listType,
151882
+ "file-list": _vm.list
151883
+ }
151884
+ }, [_c('el-button', {
151885
+ attrs: {
151886
+ "size": "small",
151887
+ "type": "primary"
151888
+ }
151889
+ }, [_vm._v("点击上传")]), _c('div', {
151890
+ staticClass: "el-upload__tip",
151891
+ attrs: {
151892
+ "slot": "tip"
151893
+ },
151894
+ slot: "tip"
151895
+ }, [_vm._v(" 只能上传jpg/png文件,且不超过500kb ")])], 1)], 1);
151896
+ };
151897
+ var staticRenderFns = [];
151898
+
151899
+ // CONCATENATED MODULE: ./src/components/Aupload/index.bak.vue?vue&type=template&id=6b1bf5c4&scoped=true&
151900
+
151901
+ // 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&
151902
+ /* harmony default export */ var index_bakvue_type_script_lang_js_ = ({
151903
+ name: 'Aupload',
151904
+ props: {
151905
+ type: {
151906
+ type: String,
151907
+ default: () => 'image'
151908
+ },
151909
+ action: {
151910
+ type: String,
151911
+ default: () => '#'
151912
+ },
151913
+ multiple: {
151914
+ type: Boolean,
151915
+ default: () => true
151916
+ },
151917
+ limit: {
151918
+ type: String,
151919
+ default: () => '10'
151920
+ },
151921
+ listType: {
151922
+ type: String,
151923
+ default: () => ''
151924
+ },
151925
+ // picture-card
151926
+ autoUpload: {
151927
+ type: Boolean,
151928
+ default: () => false
151929
+ },
151930
+ showFileList: {
151931
+ type: Boolean,
151932
+ default: () => true
151933
+ },
151934
+ fileList: {
151935
+ type: Array,
151936
+ default: () => []
151937
+ }
151938
+ },
151939
+ data() {
151940
+ return {
151941
+ list: [],
151942
+ src: ''
151943
+ };
151944
+ },
151945
+ created() {
151946
+ this.create();
151947
+ },
151948
+ methods: {
151949
+ create() {
151950
+ this.list = [...this.fileList, ...this.list];
151951
+ },
151952
+ change(a) {
151953
+ this.$emit('change', a);
151954
+ },
151955
+ exceed(a) {
151956
+ this.$emit('exceed', a);
151957
+ },
151958
+ finish(a) {
151959
+ this.$emit('finish', a);
151960
+ },
151961
+ upload(a) {
151962
+ this.$emit('upload', a);
151963
+ },
151964
+ review(a) {
151965
+ this.$emit('review', a);
151966
+ },
151967
+ remove(a) {
151968
+ this.$emit('remove', a);
151969
+ }
151970
+ }
151971
+ });
151972
+ // CONCATENATED MODULE: ./src/components/Aupload/index.bak.vue?vue&type=script&lang=js&
151973
+ /* harmony default export */ var Aupload_index_bakvue_type_script_lang_js_ = (index_bakvue_type_script_lang_js_);
151974
+ // EXTERNAL MODULE: ./src/components/Aupload/index.bak.vue?vue&type=style&index=0&id=6b1bf5c4&prod&scoped=true&lang=css&
151975
+ var index_bakvue_type_style_index_0_id_6b1bf5c4_prod_scoped_true_lang_css_ = __webpack_require__("1c70");
151976
+
151977
+ // EXTERNAL MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/runtime/componentNormalizer.js
151978
+ var componentNormalizer = __webpack_require__("e607");
151979
+
151980
+ // CONCATENATED MODULE: ./src/components/Aupload/index.bak.vue
151981
+
151982
+
151983
+
151984
+
151985
+
151986
+
151987
+ /* normalize component */
151988
+
151989
+ var component = Object(componentNormalizer["a" /* default */])(
151990
+ Aupload_index_bakvue_type_script_lang_js_,
151991
+ render,
151992
+ staticRenderFns,
151993
+ false,
151994
+ null,
151995
+ "6b1bf5c4",
151996
+ null
151997
+
151998
+ )
151999
+
152000
+ /* harmony default export */ var index_bak = __webpack_exports__["default"] = (component.exports);
152001
+
152002
+ /***/ }),
152003
+
152109
152004
  /***/ "d9af":
152110
152005
  /***/ (function(module, exports, __webpack_require__) {
152111
152006
 
@@ -155019,7 +154914,6 @@ __webpack_require__.r(__webpack_exports__);
155019
154914
  },
155020
154915
  change(content) {
155021
154916
  this.content = content;
155022
- console.log(this.content);
155023
154917
  this.$nextTick(() => this.$emit('input', this.content));
155024
154918
  }
155025
154919
  },
@@ -156966,6 +156860,13 @@ module.exports = _default;
156966
156860
 
156967
156861
  /***/ }),
156968
156862
 
156863
+ /***/ "de00":
156864
+ /***/ (function(module, exports, __webpack_require__) {
156865
+
156866
+ // extracted by mini-css-extract-plugin
156867
+
156868
+ /***/ }),
156869
+
156969
156870
  /***/ "de10":
156970
156871
  /***/ (function(module, exports, __webpack_require__) {
156971
156872
 
@@ -158125,6 +158026,109 @@ module.exports = _default;
158125
158026
 
158126
158027
  /***/ }),
158127
158028
 
158029
+ /***/ "e4ec":
158030
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
158031
+
158032
+ "use strict";
158033
+ __webpack_require__.r(__webpack_exports__);
158034
+ /* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6aaa");
158035
+ /* 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__);
158036
+ /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("ba86");
158037
+ /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_1__);
158038
+
158039
+
158040
+ /* harmony default export */ __webpack_exports__["default"] = ({
158041
+ name: 'ApasswordInput',
158042
+ props: {
158043
+ value: {
158044
+ type: String,
158045
+ default: () => ''
158046
+ }
158047
+ },
158048
+ data() {
158049
+ return {
158050
+ active: 0,
158051
+ content: this.value
158052
+ };
158053
+ },
158054
+ methods: {
158055
+ input(value) {
158056
+ let {
158057
+ min = 6
158058
+ } = this.$attrs;
158059
+ this.content = value;
158060
+ let mode = 0;
158061
+ if (/\d/.test(value)) mode++; //数字
158062
+ if (/\W/.test(value)) mode++; //字符
158063
+ if (/[a-z]/.test(value)) mode++; //小写
158064
+ if (/[A-Z]/.test(value)) mode++; //大写
158065
+ if (value.length < min) this.active = 0;
158066
+ if (value.length > min && mode < 2) this.active = 1;
158067
+ if (value.length > min && mode > 2) this.active = 2;
158068
+ if (value.length > min && mode > 3) this.active = 3;
158069
+ this.$emit('input', this.content);
158070
+ }
158071
+ },
158072
+ render() {
158073
+ const h = arguments[0];
158074
+ let {
158075
+ min = 6,
158076
+ max = 20,
158077
+ hint = true,
158078
+ type = 'password',
158079
+ showPassword = true,
158080
+ placeholder = '请输入密码',
158081
+ option = [{
158082
+ label: '低',
158083
+ color: ''
158084
+ }, {
158085
+ label: '中',
158086
+ color: ''
158087
+ }, {
158088
+ label: '高',
158089
+ color: ''
158090
+ }],
158091
+ ...props
158092
+ } = this.$attrs;
158093
+ return h("div", {
158094
+ "class": "a-password-input"
158095
+ }, [h("el-input", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
158096
+ "on": {
158097
+ "input": a => a.length <= max && this.input(a)
158098
+ },
158099
+ "attrs": {
158100
+ "show-password": showPassword,
158101
+ "placeholder": placeholder,
158102
+ "minlength": min,
158103
+ "maxlength": max,
158104
+ "type": type
158105
+ }
158106
+ }, {
158107
+ "on": props
158108
+ }, {}, {
158109
+ "props": props
158110
+ }, {
158111
+ "model": {
158112
+ value: this.content,
158113
+ callback: $$v => {
158114
+ this.content = $$v;
158115
+ }
158116
+ }
158117
+ }])), hint && h("div", {
158118
+ "class": "a-password-input-hint"
158119
+ }, [option.map((a, b) => {
158120
+ // let label = a.label || a.title || a.text || `${a}`;
158121
+ // return (<div key={b} class={`a-password-input-hint-item ${this.active == (b + 1) ? 'active' : ''}`}>{label}</div>);
158122
+ return h("div", {
158123
+ "key": b,
158124
+ "class": `a-password-input-hint-item ${this.active == b + 1 ? 'active' : ''}`
158125
+ });
158126
+ })])]);
158127
+ }
158128
+ });
158129
+
158130
+ /***/ }),
158131
+
158128
158132
  /***/ "e509":
158129
158133
  /***/ (function(module, exports, __webpack_require__) {
158130
158134
 
@@ -159140,34 +159144,22 @@ module.exports = _default;
159140
159144
 
159141
159145
  "use strict";
159142
159146
  __webpack_require__.r(__webpack_exports__);
159143
- /* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("be09");
159144
- /* 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__);
159145
- /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("d8af");
159146
- /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_1__);
159147
+ /* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6aaa");
159148
+ /* 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__);
159149
+ /* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("be09");
159150
+ /* 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__);
159151
+ /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("d8af");
159152
+ /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_2__);
159153
+
159154
+
159147
159155
 
159148
159156
 
159149
159157
  /* harmony default export */ __webpack_exports__["default"] = ({
159150
159158
  name: 'Adialog',
159151
159159
  props: {
159152
- title: {
159153
- type: String,
159154
- default: () => '编辑'
159155
- },
159156
- width: {
159157
- type: String,
159158
- default: () => '600px'
159159
- },
159160
159160
  check: {
159161
159161
  type: Boolean,
159162
- default: () => true
159163
- },
159164
- padding: {
159165
- type: String,
159166
- default: () => '16px'
159167
- },
159168
- height: {
159169
- type: String,
159170
- default: () => '68vh'
159162
+ default: () => false
159171
159163
  },
159172
159164
  loading: {
159173
159165
  type: Boolean,
@@ -159206,9 +159198,6 @@ __webpack_require__.r(__webpack_exports__);
159206
159198
  default: () => '取消'
159207
159199
  }
159208
159200
  },
159209
- destroyed() {
159210
- this.format = null;
159211
- },
159212
159201
  methods: {
159213
159202
  format() {
159214
159203
  if (this.check == false) return true;
@@ -159252,6 +159241,13 @@ __webpack_require__.r(__webpack_exports__);
159252
159241
  render() {
159253
159242
  const h = arguments[0];
159254
159243
  const {
159244
+ title = '编辑',
159245
+ width = '600px',
159246
+ padding = '16px',
159247
+ height = 'auto',
159248
+ maxHeight = '64vh',
159249
+ style = {},
159250
+ action = [],
159255
159251
  ...props
159256
159252
  } = this.$attrs;
159257
159253
  const {
@@ -159267,32 +159263,37 @@ __webpack_require__.r(__webpack_exports__);
159267
159263
  name: "loading",
159268
159264
  value: this.loading
159269
159265
  }]
159270
- }, [h("el-dialog", {
159266
+ }, [h("el-dialog", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
159271
159267
  "attrs": {
159272
- "title": this.title,
159273
- "width": this.width,
159268
+ "title": title,
159269
+ "width": width,
159274
159270
  "visible": this.visible,
159275
159271
  "lock-scroll": this.lockScroll,
159276
159272
  "destroy-on-close": this.destroyOnClose,
159277
159273
  "close-on-click-modal": this.closeOnClickModal
159278
159274
  },
159279
159275
  "on": {
159280
- "close": close ? () => close() : cancel ? () => cancel() : () => false
159276
+ "close": close ? () => close() : cancel ? () => cancel() : finish ? () => this.finish() : submit ? () => this.submit() : reject ? () => this.reject() : () => false
159281
159277
  },
159282
159278
  "props": {
159283
159279
  ...props
159284
159280
  }
159285
- }, [h("div", {
159281
+ }, {
159282
+ "on": props
159283
+ }]), [h("div", {
159286
159284
  "key": this.visible,
159287
159285
  "class": "a-dialog-body",
159288
159286
  "style": {
159289
- padding: this.padding,
159290
- maxHeight: this.height
159287
+ padding,
159288
+ height,
159289
+ maxHeight,
159290
+ ...style
159291
159291
  }
159292
159292
  }, [this.$slots.default]), h("div", {
159293
- "class": finish || submit || cancel ? 'a-dialog-foot' : 'a-dialog-foot custom'
159294
- }, [(finish || submit || cancel) && h("div", [finish && h("el-button", {
159293
+ "class": finish || submit || reject || cancel || action.length > 0 ? 'a-dialog-foot' : 'a-dialog-foot custom'
159294
+ }, [(finish || submit || cancel || reject || action.length > 0) && h("div", [finish && h("el-button", {
159295
159295
  "attrs": {
159296
+ "disabled": this.loading,
159296
159297
  "loading": this.loading,
159297
159298
  "type": "success"
159298
159299
  },
@@ -159301,6 +159302,7 @@ __webpack_require__.r(__webpack_exports__);
159301
159302
  }
159302
159303
  }, [this.finishText]), submit && h("el-button", {
159303
159304
  "attrs": {
159305
+ "disabled": this.loading,
159304
159306
  "loading": this.loading,
159305
159307
  "type": "primary"
159306
159308
  },
@@ -159309,6 +159311,7 @@ __webpack_require__.r(__webpack_exports__);
159309
159311
  }
159310
159312
  }, [this.submitText]), reject && h("el-button", {
159311
159313
  "attrs": {
159314
+ "disabled": this.loading,
159312
159315
  "loading": this.loading,
159313
159316
  "type": "danger"
159314
159317
  },
@@ -159322,7 +159325,15 @@ __webpack_require__.r(__webpack_exports__);
159322
159325
  "on": {
159323
159326
  "click": this.cancel
159324
159327
  }
159325
- }, [this.cancelText])])])])]);
159328
+ }, [this.cancelText]), action.map((a, b) => h("el-button", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
159329
+ "key": b,
159330
+ "attrs": {
159331
+ "disabled": this.loading
159332
+ },
159333
+ "on": {
159334
+ "click": e => a.click(this.format(), e)
159335
+ }
159336
+ }, a]), [a.label || a.title || a.text || '']))])])])]);
159326
159337
  }
159327
159338
  });
159328
159339
 
@@ -160537,10 +160548,10 @@ __webpack_require__.r(__webpack_exports__);
160537
160548
  },
160538
160549
  data() {
160539
160550
  const {
160540
- roles
160551
+ routes
160541
160552
  } = this.$store.state;
160542
160553
  return {
160543
- roles
160554
+ routes
160544
160555
  };
160545
160556
  },
160546
160557
  methods: {
@@ -160553,8 +160564,8 @@ __webpack_require__.r(__webpack_exports__);
160553
160564
  const text = a.text || a.label || a.title;
160554
160565
  return text != '' && (a.id ? h(_components_Aauthority__WEBPACK_IMPORTED_MODULE_0__["default"], {
160555
160566
  "attrs": {
160556
- "role": a.id,
160557
- "roles": this.roles
160567
+ "routes": a.id,
160568
+ "routes": this.routes
160558
160569
  }
160559
160570
  }, [this.format(a, b)]) : this.format(a, b));
160560
160571
  }), this.$slots.default]);
@@ -160698,13 +160709,6 @@ __webpack_require__.r(__webpack_exports__);
160698
160709
 
160699
160710
  /***/ }),
160700
160711
 
160701
- /***/ "e95a":
160702
- /***/ (function(module, exports, __webpack_require__) {
160703
-
160704
- // extracted by mini-css-extract-plugin
160705
-
160706
- /***/ }),
160707
-
160708
160712
  /***/ "e9e0":
160709
160713
  /***/ (function(module, exports, __webpack_require__) {
160710
160714
 
@@ -164840,7 +164844,6 @@ var map = {
164840
164844
  "./Atree/index.vue": "ce34",
164841
164845
  "./Aupload/File/index.vue": "3a9a",
164842
164846
  "./Aupload/Icon/index.vue": "7d0e",
164843
- "./Aupload/index.vue": "a61e",
164844
164847
  "./Bdialog/index.vue": "a6bc",
164845
164848
  "./Bplayer/index.vue": "2c3e",
164846
164849
  "./Btree/index.vue": "9d92"
@@ -167566,6 +167569,141 @@ __webpack_require__.r(__webpack_exports__);
167566
167569
 
167567
167570
  /***/ }),
167568
167571
 
167572
+ /***/ "fafd":
167573
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
167574
+
167575
+ "use strict";
167576
+ __webpack_require__.r(__webpack_exports__);
167577
+ /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("0673");
167578
+ /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_0__);
167579
+
167580
+ /* harmony default export */ __webpack_exports__["default"] = ({
167581
+ name: 'Aupload',
167582
+ props: {
167583
+ loading: {
167584
+ type: Boolean,
167585
+ default: () => false
167586
+ },
167587
+ size: {
167588
+ type: String,
167589
+ default: () => '2m'
167590
+ },
167591
+ action: {
167592
+ type: String,
167593
+ default: () => '#'
167594
+ },
167595
+ multiple: {
167596
+ type: Boolean,
167597
+ default: () => true
167598
+ },
167599
+ limit: {
167600
+ type: String,
167601
+ default: () => '10'
167602
+ },
167603
+ listType: {
167604
+ type: String,
167605
+ default: () => ''
167606
+ },
167607
+ // picture-card
167608
+ autoUpload: {
167609
+ type: Boolean,
167610
+ default: () => false
167611
+ },
167612
+ showFileList: {
167613
+ type: Boolean,
167614
+ default: () => true
167615
+ },
167616
+ fileList: {
167617
+ type: Array,
167618
+ default: () => []
167619
+ }
167620
+ },
167621
+ data() {
167622
+ return {
167623
+ list: []
167624
+ };
167625
+ },
167626
+ created() {
167627
+ this.create();
167628
+ },
167629
+ methods: {
167630
+ create() {
167631
+ this.list = [...this.fileList, ...this.list];
167632
+ },
167633
+ change(a, b) {
167634
+ if (this.multiple) {
167635
+ this.$emit('change', b);
167636
+ } else {
167637
+ if (a.size / 1024 > parseInt(this.size) * 1024) {
167638
+ this.$message.info(`上传文件超过了${this.size}限制`);
167639
+ return false;
167640
+ } else {
167641
+ this.$emit('change', a);
167642
+ }
167643
+ }
167644
+ },
167645
+ exceed(a) {
167646
+ this.$emit('exceed', a);
167647
+ },
167648
+ finish(a) {
167649
+ this.$emit('finish', a);
167650
+ },
167651
+ upload(a) {
167652
+ this.$emit('upload', a);
167653
+ },
167654
+ review(a) {
167655
+ this.$emit('review', a);
167656
+ },
167657
+ remove(a) {
167658
+ this.$emit('remove', a);
167659
+ }
167660
+ },
167661
+ render() {
167662
+ const h = arguments[0];
167663
+ let {
167664
+ ...rest
167665
+ } = this.$attrs;
167666
+ let props = {
167667
+ disabled: this.loading,
167668
+ 'http-request': this.upload,
167669
+ 'on-change': this.change,
167670
+ 'on-exceed': this.exceed,
167671
+ 'on-success': this.finish,
167672
+ 'on-before-upload': this.upload,
167673
+ 'on-before-remove': this.remove,
167674
+ ...rest
167675
+ };
167676
+ let on = {
167677
+ ...rest
167678
+ };
167679
+ return h("div", {
167680
+ "class": "a-upload"
167681
+ }, [h("el-upload", {
167682
+ "attrs": {
167683
+ "action": this.action,
167684
+ "file-list": this.list,
167685
+ "multiple": this.multiple,
167686
+ "list-type": this.listType,
167687
+ "limit": parseInt(this.limit),
167688
+ "auto-upload": this.autoUpload,
167689
+ "show-file-list": this.showFileList
167690
+ },
167691
+ "props": {
167692
+ ...props
167693
+ },
167694
+ "on": {
167695
+ ...on
167696
+ }
167697
+ }, [h("el-button", {
167698
+ "attrs": {
167699
+ "type": "primary"
167700
+ }
167701
+ }, ["\u70B9\u51FB\u4E0A\u4F20"]), this.$slots.default])]);
167702
+ }
167703
+ });
167704
+
167705
+ /***/ }),
167706
+
167569
167707
  /***/ "fb4f":
167570
167708
  /***/ (function(module, exports, __webpack_require__) {
167571
167709