element-ui-root 3.0.6 → 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: () => ({})
@@ -13492,7 +13503,7 @@ __webpack_require__.r(__webpack_exports__);
13492
13503
  },
13493
13504
  gutter: {
13494
13505
  type: String,
13495
- default: () => '8'
13506
+ default: () => '16'
13496
13507
  },
13497
13508
  config: {
13498
13509
  type: Object,
@@ -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 {
@@ -13545,9 +13566,6 @@ __webpack_require__.r(__webpack_exports__);
13545
13566
  r.default && (this.form[a] = r.default || '');
13546
13567
  }
13547
13568
  });
13548
- this.$nextTick(() => {
13549
- Object.keys(this.value).forEach(a => typeof this.value[a] == 'number' && (this.form[a] = `${this.value[a]}`));
13550
- });
13551
13569
  },
13552
13570
  create(a, b) {
13553
13571
  const h = this.$createElement;
@@ -13561,7 +13579,14 @@ __webpack_require__.r(__webpack_exports__);
13561
13579
  message: `${label}不能为空`
13562
13580
  }];
13563
13581
  let valid = r.rule ? r.rule : r.must || this.must ? judge : [];
13564
- 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;
13565
13590
  let props = {
13566
13591
  name: a,
13567
13592
  prop: a,
@@ -13616,9 +13641,15 @@ __webpack_require__.r(__webpack_exports__);
13616
13641
  let {
13617
13642
  ...r
13618
13643
  } = child[c];
13644
+ let space = a.gutter ? a.gutter / 2 : this.gutter / 4;
13645
+ let style = {
13646
+ padding: `0 ${space}px`
13647
+ };
13648
+ r.type = r.type ? r.type : a.type;
13619
13649
  if (r.span) {
13620
13650
  return h("el-col", {
13621
13651
  "key": d,
13652
+ "style": style,
13622
13653
  "attrs": {
13623
13654
  "span": Number(r.span)
13624
13655
  }
@@ -13628,13 +13659,15 @@ __webpack_require__.r(__webpack_exports__);
13628
13659
  return h("el-col", {
13629
13660
  "key": d,
13630
13661
  "style": {
13631
- width
13662
+ width,
13663
+ ...style
13632
13664
  }
13633
13665
  }, [this.format(r, c)]);
13634
13666
  }
13635
13667
  });
13636
13668
  } else {
13637
13669
  let config = {
13670
+ disabled: a.disabled || this.disabled,
13638
13671
  change: () => this.change(),
13639
13672
  form: this.form,
13640
13673
  field: b,
@@ -13650,12 +13683,6 @@ __webpack_require__.r(__webpack_exports__);
13650
13683
  });
13651
13684
  }
13652
13685
  },
13653
- resize() {
13654
- if (Object.keys(this.config).length > 0) {
13655
- let rows = Math.ceil(Object.keys(this.config).length / this.cols);
13656
- this.height = this.$el.clientHeight * (rows - 1);
13657
- }
13658
- },
13659
13686
  filter() {
13660
13687
  let data = {};
13661
13688
  Object.keys(this.form).length > 0 && Object.keys(this.form).forEach(a => {
@@ -13663,14 +13690,19 @@ __webpack_require__.r(__webpack_exports__);
13663
13690
  let {
13664
13691
  ...r
13665
13692
  } = this.option[a];
13666
- if (r.split && r.split.length > 0) {
13667
- r.split.forEach((b, c) => data[b] = this.form[a][c]);
13668
- } else {
13669
- if (r.like) {
13670
- if (r.like == 'L' || r.like == 'l' || r.like == 'left') data[a] = `%${this.form[a]}`;
13671
- if (r.like == 'R' || r.like == 'r' || r.like == 'right') data[a] = `${this.form[a]}%`;
13672
- 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]}%`;
13673
- } 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
+ }
13674
13706
  }
13675
13707
  }
13676
13708
  });
@@ -13691,7 +13723,13 @@ __webpack_require__.r(__webpack_exports__);
13691
13723
  page: 1
13692
13724
  });
13693
13725
  }
13694
- 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
+ });
13695
13733
  },
13696
13734
  cancel() {
13697
13735
  this.$refs.form && this.$refs.form.resetFields && this.$refs.form.resetFields();
@@ -13742,7 +13780,6 @@ __webpack_require__.r(__webpack_exports__);
13742
13780
  inline: this.inline,
13743
13781
  labelWidth,
13744
13782
  labelPosition,
13745
- style,
13746
13783
  ...rest
13747
13784
  };
13748
13785
  return h("div", {
@@ -13752,13 +13789,17 @@ __webpack_require__.r(__webpack_exports__);
13752
13789
  padding
13753
13790
  }
13754
13791
  }, [h("el-form", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
13755
- "ref": "form"
13792
+ "ref": "form",
13793
+ "attrs": {
13794
+ "id": this.id
13795
+ },
13796
+ "style": style
13756
13797
  }, {
13757
13798
  "props": {
13758
13799
  model: this.form,
13759
13800
  ...props
13760
13801
  }
13761
- }]), [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", {
13762
13803
  "class": "column"
13763
13804
  }, [h("el-row", {
13764
13805
  "attrs": {
@@ -13773,16 +13814,18 @@ __webpack_require__.r(__webpack_exports__);
13773
13814
  "style": {
13774
13815
  height: this.opened ? `${this.height}px` : '0'
13775
13816
  }
13776
- }, [Object.keys(this.config).map((a, b) => b > this.cols - 1 && this.create(a, b))])]), (submit || cancel || action.length > 0) && h("el-form-item", {
13817
+ }, [Object.keys(this.config).map((a, b) => b > this.cols - 1 && this.create(a, b))])]), (submit || cancel || action.length > 0) && h("div", {
13818
+ "class": `action ${this.inline && Object.keys(this.config).length % this.cols == 0 ? 'anonymous' : ''}`
13819
+ }, [h("el-form-item", {
13777
13820
  "attrs": {
13778
13821
  "name": "action",
13779
- "label": "action"
13822
+ "label": "action",
13823
+ "label-width": "0"
13780
13824
  },
13781
- "class": "action",
13782
13825
  "style": {
13783
- paddingLeft: `${this.gutter}px`
13826
+ paddingLeft: `${this.inline ? this.gutter / 2 : this.gutter}px`
13784
13827
  }
13785
- }, [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", {
13786
13829
  "attrs": {
13787
13830
  "disabled": loading,
13788
13831
  "type": "text"
@@ -13813,8 +13856,11 @@ __webpack_require__.r(__webpack_exports__);
13813
13856
  "key": b,
13814
13857
  "attrs": {
13815
13858
  "disabled": loading
13859
+ },
13860
+ "on": {
13861
+ "click": e => a.click(this.filter(), this.form, this.option, e)
13816
13862
  }
13817
- }, a]), [a.label || a.title || a.text || '']))])])]);
13863
+ }, a]), [a.label || a.title || a.text || '']))])])])]);
13818
13864
  }
13819
13865
  });
13820
13866
 
@@ -15665,6 +15711,17 @@ var component = Object(componentNormalizer["a" /* default */])(
15665
15711
 
15666
15712
  /* harmony default export */ var Aplayer = __webpack_exports__["default"] = (component.exports);
15667
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
+
15668
15725
  /***/ }),
15669
15726
 
15670
15727
  /***/ "1c80":
@@ -16251,12 +16308,12 @@ __webpack_require__.r(__webpack_exports__);
16251
16308
  }
16252
16309
  },
16253
16310
  methods: {
16254
- currentChange(page) {
16311
+ changePage(page) {
16255
16312
  this.config.page = page;
16256
16313
  this.$emit('change', this.config);
16257
16314
  this.$emit('changePage', this.config);
16258
16315
  },
16259
- sizeChange(size) {
16316
+ changeSize(size) {
16260
16317
  this.config.size = size;
16261
16318
  this.$emit('change', this.config);
16262
16319
  this.$emit('changeSize', this.config);
@@ -16282,8 +16339,8 @@ __webpack_require__.r(__webpack_exports__);
16282
16339
  "background": this.background
16283
16340
  },
16284
16341
  "on": {
16285
- "current-change": this.currentChange,
16286
- "size-change": this.sizeChange
16342
+ "current-change": this.changePage,
16343
+ "size-change": this.changeSize
16287
16344
  },
16288
16345
  "props": {
16289
16346
  ...props
@@ -16894,6 +16951,13 @@ module.exports = _default;
16894
16951
 
16895
16952
  /***/ }),
16896
16953
 
16954
+ /***/ "1eae":
16955
+ /***/ (function(module, exports, __webpack_require__) {
16956
+
16957
+ // extracted by mini-css-extract-plugin
16958
+
16959
+ /***/ }),
16960
+
16897
16961
  /***/ "1f03":
16898
16962
  /***/ (function(module, exports, __webpack_require__) {
16899
16963
 
@@ -18769,8 +18833,16 @@ module.exports = _default;
18769
18833
  __webpack_require__.r(__webpack_exports__);
18770
18834
  /* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6aaa");
18771
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__);
18772
- /* harmony import */ var _components_AiconSelect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("db3d");
18773
- /* 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
+
18774
18846
 
18775
18847
 
18776
18848
 
@@ -18796,8 +18868,8 @@ __webpack_require__.r(__webpack_exports__);
18796
18868
  /* harmony default export */ __webpack_exports__["default"] = ({
18797
18869
  name: 'AformItem',
18798
18870
  components: {
18799
- AiconSelect: _components_AiconSelect__WEBPACK_IMPORTED_MODULE_1__["default"],
18800
- 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"]
18801
18873
  },
18802
18874
  props: {
18803
18875
  config: {
@@ -18807,46 +18879,55 @@ __webpack_require__.r(__webpack_exports__);
18807
18879
  },
18808
18880
  data() {
18809
18881
  return {
18810
- random: Math.random()
18882
+ checked: false
18811
18883
  };
18812
18884
  },
18813
- watch: {
18814
- config: {
18815
- immediate: true,
18816
- handler() {
18817
- this.update();
18818
- }
18819
- }
18820
- },
18821
- created() {
18822
- this.update();
18823
- },
18824
18885
  destroyed() {
18825
- this.input = null;
18886
+ this.choose = null;
18826
18887
  this.change = null;
18827
18888
  this.filter = null;
18828
18889
  this.create = null;
18829
18890
  },
18830
18891
  methods: {
18831
- input(a) {
18832
- 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]);
18833
18906
  },
18834
18907
  change(a) {
18835
- const {
18836
- data = []
18908
+ let {
18909
+ form,
18910
+ field,
18911
+ data = [],
18912
+ ...r
18837
18913
  } = this.config;
18838
- this.config.change && this.config.change(a, data.length > 0 ? this.filter(data, a) : null);
18839
- },
18840
- update() {
18841
- 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));
18842
18919
  },
18843
- filter(array = [], value = '') {
18844
- let data = {};
18845
- if (value != '') array.length > 0 && array.forEach(a => {
18846
- let index = a.value || a.code || a.id;
18847
- if (value == index) data = a;
18848
- });
18849
- 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
+ }
18850
18931
  },
18851
18932
  create({
18852
18933
  form,
@@ -18854,29 +18935,63 @@ __webpack_require__.r(__webpack_exports__);
18854
18935
  ...r
18855
18936
  }) {
18856
18937
  const h = this.$createElement;
18857
- const style = {
18938
+ let on = {
18939
+ input: a => this.$emit('input', a),
18940
+ ...r,
18941
+ change: a => this.change(a)
18942
+ };
18943
+ let style = {
18858
18944
  width: '100%',
18859
18945
  ...r.style
18860
18946
  };
18861
- const label = r.text || r.label || r.title || '';
18862
- const values = (a = {}) => typeof a == 'string' ? a : `${a.value || a.code || a.id}`;
18863
- 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;
18864
18956
  if (r.render) return r.render(form, this.config);
18865
18957
  switch (r.type) {
18866
- case 'input':
18958
+ case 'text':
18867
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
+ },
18868
18964
  "on": {
18869
- "input": this.input,
18870
- "change": this.change
18965
+ ...on
18966
+ }
18967
+ }, {
18968
+ style
18969
+ }, {
18970
+ "props": {
18971
+ ...props
18871
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()([{
18872
18982
  "attrs": {
18873
- "clearable": true,
18983
+ "maxlength": r.maxlength,
18874
18984
  "placeholder": r.placeholder || `请输入${label}`
18875
18985
  },
18876
- "style": style
18986
+ "on": {
18987
+ ...on
18988
+ }
18877
18989
  }, {
18878
- "props": r
18990
+ style
18879
18991
  }, {
18992
+ "props": {
18993
+ ...props
18994
+ },
18880
18995
  "model": {
18881
18996
  value: form[field],
18882
18997
  callback: $$v => {
@@ -18884,21 +18999,46 @@ __webpack_require__.r(__webpack_exports__);
18884
18999
  }
18885
19000
  }
18886
19001
  }]));
18887
- case 'password':
19002
+ case 'textarea':
18888
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
+ },
18889
19010
  "on": {
18890
- "input": this.input,
18891
- "change": this.change
19011
+ ...on
19012
+ }
19013
+ }, {
19014
+ style
19015
+ }, {
19016
+ "props": {
19017
+ ...props
18892
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()([{
18893
19028
  "attrs": {
18894
- "clearable": true,
19029
+ "maxlength": r.maxlength,
18895
19030
  "placeholder": r.placeholder || `请输入${label}`,
18896
19031
  "show-password": true
18897
19032
  },
18898
- "style": style
19033
+ "on": {
19034
+ ...on
19035
+ }
18899
19036
  }, {
18900
- "props": r
19037
+ style
18901
19038
  }, {
19039
+ "props": {
19040
+ ...props
19041
+ },
18902
19042
  "model": {
18903
19043
  value: form[field],
18904
19044
  callback: $$v => {
@@ -18908,22 +19048,23 @@ __webpack_require__.r(__webpack_exports__);
18908
19048
  }]));
18909
19049
  case 'number':
18910
19050
  return h("el-input-number", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
18911
- "on": {
18912
- "input": this.input,
18913
- "change": this.change
18914
- },
18915
19051
  "attrs": {
18916
- "clearable": true,
18917
19052
  "min": 0,
18918
19053
  "max": 100000000,
19054
+ "maxlength": r.maxlength,
18919
19055
  "controls": false,
18920
19056
  "controls-position": "right",
18921
19057
  "placeholder": r.placeholder || `请输入${label}`
18922
19058
  },
18923
- "style": style
19059
+ "on": {
19060
+ ...on
19061
+ }
18924
19062
  }, {
18925
- "props": r
19063
+ style
18926
19064
  }, {
19065
+ "props": {
19066
+ ...props
19067
+ },
18927
19068
  "model": {
18928
19069
  value: form[field],
18929
19070
  callback: $$v => {
@@ -18933,27 +19074,38 @@ __webpack_require__.r(__webpack_exports__);
18933
19074
  }]));
18934
19075
  case 'select':
18935
19076
  return h("el-select", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
18936
- "on": {
18937
- "input": this.input,
18938
- "change": this.change
18939
- },
18940
19077
  "attrs": {
18941
- "clearable": true,
18942
- "filterable": true,
18943
- "collapse-tags": true,
18944
19078
  "placeholder": r.placeholder || `请选择${label}`
18945
19079
  },
18946
- "style": style
19080
+ "on": {
19081
+ ...on
19082
+ }
18947
19083
  }, {
18948
- "props": r
19084
+ style
18949
19085
  }, {
19086
+ "props": {
19087
+ ...props
19088
+ },
18950
19089
  "model": {
18951
19090
  value: form[field],
18952
19091
  callback: $$v => {
18953
19092
  this.$set(form, field, $$v);
18954
19093
  }
18955
19094
  }
18956
- }]), [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", {
18957
19109
  "key": b,
18958
19110
  "attrs": {
18959
19111
  "label": labels(a),
@@ -18962,20 +19114,19 @@ __webpack_require__.r(__webpack_exports__);
18962
19114
  })) : []]);
18963
19115
  case 'cascader':
18964
19116
  return h("el-cascader", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
18965
- "on": {
18966
- "input": this.input,
18967
- "change": this.change
18968
- },
18969
19117
  "attrs": {
18970
19118
  "options": r.data || [],
18971
- "clearable": true,
18972
- "filterable": true,
18973
19119
  "placeholder": r.placeholder || `请选择${label}`
18974
19120
  },
18975
- "style": style
19121
+ "on": {
19122
+ ...on
19123
+ }
18976
19124
  }, {
18977
- "props": r
19125
+ style
18978
19126
  }, {
19127
+ "props": {
19128
+ ...props
19129
+ },
18979
19130
  "model": {
18980
19131
  value: form[field],
18981
19132
  callback: $$v => {
@@ -18986,13 +19137,14 @@ __webpack_require__.r(__webpack_exports__);
18986
19137
  case 'checkbox':
18987
19138
  return h("el-checkbox", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
18988
19139
  "on": {
18989
- "input": this.input,
18990
- "change": this.change
18991
- },
18992
- "style": style
19140
+ ...on
19141
+ }
18993
19142
  }, {
18994
- "props": r
19143
+ style
18995
19144
  }, {
19145
+ "props": {
19146
+ ...props
19147
+ },
18996
19148
  "model": {
18997
19149
  value: form[field],
18998
19150
  callback: $$v => {
@@ -19003,13 +19155,14 @@ __webpack_require__.r(__webpack_exports__);
19003
19155
  case 'checkboxGroup':
19004
19156
  return h("el-checkbox-group", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19005
19157
  "on": {
19006
- "input": this.input,
19007
- "change": this.change
19008
- },
19009
- "style": style
19158
+ ...on
19159
+ }
19010
19160
  }, {
19011
- "props": r
19161
+ style
19012
19162
  }, {
19163
+ "props": {
19164
+ ...props
19165
+ },
19013
19166
  "model": {
19014
19167
  value: form[field],
19015
19168
  callback: $$v => {
@@ -19025,13 +19178,14 @@ __webpack_require__.r(__webpack_exports__);
19025
19178
  case 'radio':
19026
19179
  return h("el-radio-group", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19027
19180
  "on": {
19028
- "input": this.input,
19029
- "change": this.change
19030
- },
19031
- "style": style
19181
+ ...on
19182
+ }
19032
19183
  }, {
19033
- "props": r
19184
+ style
19034
19185
  }, {
19186
+ "props": {
19187
+ ...props
19188
+ },
19035
19189
  "model": {
19036
19190
  value: form[field],
19037
19191
  callback: $$v => {
@@ -19046,10 +19200,6 @@ __webpack_require__.r(__webpack_exports__);
19046
19200
  }, [labels(a)])) : []]);
19047
19201
  case 'switch':
19048
19202
  return h("el-switch", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19049
- "on": {
19050
- "input": this.input,
19051
- "change": this.change
19052
- },
19053
19203
  "attrs": {
19054
19204
  "active-value": "1",
19055
19205
  "inactive-value": "0" || false,
@@ -19057,10 +19207,15 @@ __webpack_require__.r(__webpack_exports__);
19057
19207
  "inactive-text": "禁用",
19058
19208
  "active-color": "#13ce66"
19059
19209
  },
19060
- "style": style
19210
+ "on": {
19211
+ ...on
19212
+ }
19061
19213
  }, {
19062
- "props": r
19214
+ style
19063
19215
  }, {
19216
+ "props": {
19217
+ ...props
19218
+ },
19064
19219
  "model": {
19065
19220
  value: form[field],
19066
19221
  callback: $$v => {
@@ -19070,24 +19225,23 @@ __webpack_require__.r(__webpack_exports__);
19070
19225
  }]));
19071
19226
  case 'daterange':
19072
19227
  return h("el-date-picker", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19073
- "on": {
19074
- "input": this.input,
19075
- "change": this.change
19076
- },
19077
19228
  "attrs": {
19078
19229
  "align": "center",
19079
19230
  "format": "yyyy-MM-dd",
19080
19231
  "value-format": "yyyy-MM-dd HH:mm:ss",
19081
- "type": r.type,
19082
- "clearable": true,
19083
19232
  "placeholder": r.placeholder || `请选择${label}`,
19084
19233
  "start-placeholder": "开始",
19085
19234
  "end-placeholder": "结束"
19086
19235
  },
19087
- "style": style
19236
+ "on": {
19237
+ ...on
19238
+ }
19088
19239
  }, {
19089
- "props": r
19240
+ style
19090
19241
  }, {
19242
+ "props": {
19243
+ ...props
19244
+ },
19091
19245
  "model": {
19092
19246
  value: form[field],
19093
19247
  callback: $$v => {
@@ -19097,22 +19251,21 @@ __webpack_require__.r(__webpack_exports__);
19097
19251
  }]));
19098
19252
  case 'date':
19099
19253
  return h("el-date-picker", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19100
- "on": {
19101
- "input": this.input,
19102
- "change": this.change
19103
- },
19104
19254
  "attrs": {
19105
19255
  "align": "center",
19106
19256
  "format": "yyyy-MM-dd",
19107
19257
  "value-format": "yyyy-MM-dd HH:mm:ss",
19108
- "type": r.type,
19109
- "clearable": true,
19110
19258
  "placeholder": r.placeholder || `请选择${label}`
19111
19259
  },
19112
- "style": style
19260
+ "on": {
19261
+ ...on
19262
+ }
19113
19263
  }, {
19114
- "props": r
19264
+ style
19115
19265
  }, {
19266
+ "props": {
19267
+ ...props
19268
+ },
19116
19269
  "model": {
19117
19270
  value: form[field],
19118
19271
  callback: $$v => {
@@ -19122,20 +19275,19 @@ __webpack_require__.r(__webpack_exports__);
19122
19275
  }]));
19123
19276
  case 'time':
19124
19277
  return h("el-time-picker", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19125
- "on": {
19126
- "input": this.input,
19127
- "change": this.change
19128
- },
19129
19278
  "attrs": {
19130
19279
  "align": "center",
19131
- "type": r.type,
19132
- "clearable": true,
19133
19280
  "placeholder": r.placeholder || `请选择${label}`
19134
19281
  },
19135
- "style": style
19282
+ "on": {
19283
+ ...on
19284
+ }
19136
19285
  }, {
19137
- "props": r
19286
+ style
19138
19287
  }, {
19288
+ "props": {
19289
+ ...props
19290
+ },
19139
19291
  "model": {
19140
19292
  value: form[field],
19141
19293
  callback: $$v => {
@@ -19145,20 +19297,19 @@ __webpack_require__.r(__webpack_exports__);
19145
19297
  }]));
19146
19298
  case 'year':
19147
19299
  return h("el-date-picker", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19148
- "on": {
19149
- "input": this.input,
19150
- "change": this.change
19151
- },
19152
19300
  "attrs": {
19153
19301
  "align": "center",
19154
- "type": r.type,
19155
- "clearable": true,
19156
19302
  "placeholder": r.placeholder || `请选择${label}`
19157
19303
  },
19158
- "style": style
19304
+ "on": {
19305
+ ...on
19306
+ }
19159
19307
  }, {
19160
- "props": r
19308
+ style
19161
19309
  }, {
19310
+ "props": {
19311
+ ...props
19312
+ },
19162
19313
  "model": {
19163
19314
  value: form[field],
19164
19315
  callback: $$v => {
@@ -19168,20 +19319,19 @@ __webpack_require__.r(__webpack_exports__);
19168
19319
  }]));
19169
19320
  case 'month':
19170
19321
  return h("el-date-picker", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19171
- "on": {
19172
- "input": this.input,
19173
- "change": this.change
19174
- },
19175
19322
  "attrs": {
19176
19323
  "align": "center",
19177
- "type": r.type,
19178
- "clearable": true,
19179
19324
  "placeholder": r.placeholder || `请选择${label}`
19180
19325
  },
19181
- "style": style
19326
+ "on": {
19327
+ ...on
19328
+ }
19182
19329
  }, {
19183
- "props": r
19330
+ style
19184
19331
  }, {
19332
+ "props": {
19333
+ ...props
19334
+ },
19185
19335
  "model": {
19186
19336
  value: form[field],
19187
19337
  callback: $$v => {
@@ -19191,18 +19341,19 @@ __webpack_require__.r(__webpack_exports__);
19191
19341
  }]));
19192
19342
  case 'color':
19193
19343
  return h("el-color-picker", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19194
- "on": {
19195
- "input": this.input,
19196
- "change": this.change
19197
- },
19198
19344
  "attrs": {
19199
19345
  "size": this.size,
19200
19346
  "placeholder": r.placeholder || `请选择${label}`
19201
19347
  },
19202
- "style": style
19348
+ "on": {
19349
+ ...on
19350
+ }
19203
19351
  }, {
19204
- "props": r
19352
+ style
19205
19353
  }, {
19354
+ "props": {
19355
+ ...props
19356
+ },
19206
19357
  "model": {
19207
19358
  value: form[field],
19208
19359
  callback: $$v => {
@@ -19211,20 +19362,20 @@ __webpack_require__.r(__webpack_exports__);
19211
19362
  }
19212
19363
  }]));
19213
19364
  case 'image':
19214
- return h(_components_Aupload_Icon__WEBPACK_IMPORTED_MODULE_2__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19215
- "key": this.random,
19216
- "on": {
19217
- "input": this.input,
19218
- "change": this.change
19219
- },
19365
+ return h(_components_Aupload_Icon__WEBPACK_IMPORTED_MODULE_3__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19220
19366
  "attrs": {
19221
19367
  "src": form[field],
19222
19368
  "placeholder": r.placeholder || `请选择${label}`
19223
19369
  },
19224
- "style": style
19370
+ "on": {
19371
+ ...on
19372
+ }
19225
19373
  }, {
19226
- "props": r
19374
+ style
19227
19375
  }, {
19376
+ "props": {
19377
+ ...props
19378
+ },
19228
19379
  "model": {
19229
19380
  value: form[field],
19230
19381
  callback: $$v => {
@@ -19233,20 +19384,20 @@ __webpack_require__.r(__webpack_exports__);
19233
19384
  }
19234
19385
  }]));
19235
19386
  case 'upload':
19236
- return h(_components_Aupload_Icon__WEBPACK_IMPORTED_MODULE_2__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19237
- "key": this.random,
19238
- "on": {
19239
- "input": this.input,
19240
- "change": this.change
19241
- },
19387
+ return h(_components_Aupload_Icon__WEBPACK_IMPORTED_MODULE_3__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19242
19388
  "attrs": {
19243
19389
  "src": form[field],
19244
19390
  "placeholder": r.placeholder || `请选择${label}`
19245
19391
  },
19246
- "style": style
19392
+ "on": {
19393
+ ...on
19394
+ }
19247
19395
  }, {
19248
- "props": r
19396
+ style
19249
19397
  }, {
19398
+ "props": {
19399
+ ...props
19400
+ },
19250
19401
  "model": {
19251
19402
  value: form[field],
19252
19403
  callback: $$v => {
@@ -19255,19 +19406,19 @@ __webpack_require__.r(__webpack_exports__);
19255
19406
  }
19256
19407
  }]));
19257
19408
  case 'icon':
19258
- return h(_components_AiconSelect__WEBPACK_IMPORTED_MODULE_1__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19259
- "key": this.random,
19260
- "on": {
19261
- "input": this.input,
19262
- "change": this.change
19263
- },
19409
+ return h(_components_AiconSelect__WEBPACK_IMPORTED_MODULE_2__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19264
19410
  "attrs": {
19265
19411
  "placeholder": r.placeholder || `请选择${label}`
19266
19412
  },
19267
- "style": style
19413
+ "on": {
19414
+ ...on
19415
+ }
19268
19416
  }, {
19269
- "props": r
19417
+ style
19270
19418
  }, {
19419
+ "props": {
19420
+ ...props
19421
+ },
19271
19422
  "model": {
19272
19423
  value: form[field],
19273
19424
  callback: $$v => {
@@ -19276,19 +19427,19 @@ __webpack_require__.r(__webpack_exports__);
19276
19427
  }
19277
19428
  }]));
19278
19429
  case 'iconSelect':
19279
- return h(_components_AiconSelect__WEBPACK_IMPORTED_MODULE_1__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19280
- "key": this.random,
19281
- "on": {
19282
- "input": this.input,
19283
- "change": this.change
19284
- },
19430
+ return h(_components_AiconSelect__WEBPACK_IMPORTED_MODULE_2__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19285
19431
  "attrs": {
19286
19432
  "placeholder": r.placeholder || `请选择${label}`
19287
19433
  },
19288
- "style": style
19434
+ "on": {
19435
+ ...on
19436
+ }
19289
19437
  }, {
19290
- "props": r
19438
+ style
19291
19439
  }, {
19440
+ "props": {
19441
+ ...props
19442
+ },
19292
19443
  "model": {
19293
19444
  value: form[field],
19294
19445
  callback: $$v => {
@@ -19298,18 +19449,19 @@ __webpack_require__.r(__webpack_exports__);
19298
19449
  }]));
19299
19450
  default:
19300
19451
  return h("el-input", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
19301
- "on": {
19302
- "input": this.input,
19303
- "change": this.change
19304
- },
19305
19452
  "attrs": {
19306
- "clearable": true,
19453
+ "maxlength": r.maxlength,
19307
19454
  "placeholder": r.placeholder || `请输入${label}`
19308
19455
  },
19309
- "style": style
19456
+ "on": {
19457
+ ...on
19458
+ }
19310
19459
  }, {
19311
- "props": r
19460
+ style
19312
19461
  }, {
19462
+ "props": {
19463
+ ...props
19464
+ },
19313
19465
  "model": {
19314
19466
  value: form[field],
19315
19467
  callback: $$v => {
@@ -24492,6 +24644,9 @@ module.exports = _default;
24492
24644
 
24493
24645
  "use strict";
24494
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
+
24495
24650
  /* harmony default export */ __webpack_exports__["default"] = ({
24496
24651
  name: 'Atabs',
24497
24652
  props: {
@@ -24527,13 +24682,16 @@ __webpack_require__.r(__webpack_exports__);
24527
24682
  ...props
24528
24683
  } = this.$attrs;
24529
24684
  const data = this.option.length > 0 ? this.option : this.config.length > 0 ? this.config : this.data.length > 0 ? this.data : [];
24530
- return h("el-tabs", {
24685
+ return h("el-tabs", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
24531
24686
  "attrs": {
24532
24687
  "type": type
24533
24688
  },
24534
24689
  "on": {
24535
24690
  "tab-click": this.change
24536
- },
24691
+ }
24692
+ }, {
24693
+ "on": props
24694
+ }, {
24537
24695
  "props": {
24538
24696
  ...props
24539
24697
  },
@@ -24543,7 +24701,7 @@ __webpack_require__.r(__webpack_exports__);
24543
24701
  this.active = $$v;
24544
24702
  }
24545
24703
  }
24546
- }, [data.length > 0 && data.map((a, b) => {
24704
+ }]), [data.length > 0 && data.map((a, b) => {
24547
24705
  let label = a.text || a.name || a.label || a.title || `${a}`;
24548
24706
  let value = a.value || a.code || a.id || `${b}`;
24549
24707
  return h("el-tab-pane", {
@@ -24552,9 +24710,9 @@ __webpack_require__.r(__webpack_exports__);
24552
24710
  "label": label,
24553
24711
  "name": value
24554
24712
  }
24555
- }, [a.render ? a.render() : h("div", {
24713
+ }, [this.active == value && (a.render ? a.render(a) : h("div", {
24556
24714
  "key": b
24557
- }, [this.$slots[label]])]);
24715
+ }, [this.$slots[label]]))]);
24558
24716
  }), this.$slots.default]);
24559
24717
  },
24560
24718
  click({
@@ -24983,7 +25141,7 @@ __webpack_require__.r(__webpack_exports__);
24983
25141
  type: Array,
24984
25142
  default: () => []
24985
25143
  },
24986
- roles: {
25144
+ routes: {
24987
25145
  type: String,
24988
25146
  default: () => ''
24989
25147
  },
@@ -25008,11 +25166,11 @@ __webpack_require__.r(__webpack_exports__);
25008
25166
  "gutter": 40
25009
25167
  }
25010
25168
  }, [this.data && this.data.length > 0 && this.data.map((a, b) => {
25011
- if (this.roles && this.roles != '') {
25169
+ if (this.routes && this.routes != '') {
25012
25170
  return h(_components_Aauthority__WEBPACK_IMPORTED_MODULE_0__["default"], {
25013
25171
  "attrs": {
25014
- "role": `${a.id}`,
25015
- "roles": this.roles
25172
+ "route": `${a.id}`,
25173
+ "routes": this.routes
25016
25174
  }
25017
25175
  }, [h("el-col", {
25018
25176
  "attrs": {
@@ -34372,75 +34530,91 @@ __webpack_require__.r(__webpack_exports__);
34372
34530
  props: {
34373
34531
  ip: {
34374
34532
  type: String,
34375
- default: () => '127.0.0.1'
34533
+ default: () => '127.0.0.1:8000'
34376
34534
  },
34377
- port: {
34535
+ type: {
34378
34536
  type: String,
34379
- default: () => '8000'
34537
+ default: () => 'ws'
34380
34538
  },
34381
- domain: {
34539
+ ping: {
34382
34540
  type: String,
34383
- default: () => ''
34541
+ default: () => 'ping'
34384
34542
  },
34385
- type: {
34386
- type: String,
34387
- default: () => 'ws'
34543
+ delay: {
34544
+ type: Number,
34545
+ default: () => 3000
34388
34546
  },
34389
34547
  enable: {
34390
34548
  type: Boolean,
34391
- default: () => false
34549
+ default: () => true
34550
+ },
34551
+ prompt: {
34552
+ type: Boolean,
34553
+ default: () => true
34392
34554
  }
34393
34555
  },
34394
34556
  data() {
34395
34557
  return {
34396
- status: false,
34397
- session: null
34558
+ host: this.ip.includes('://') ? this.ip : `${this.type}://${this.ip}`,
34559
+ status: this.enable,
34560
+ session: null,
34561
+ interval: null
34398
34562
  };
34399
34563
  },
34400
34564
  created() {
34401
34565
  this.create();
34402
34566
  },
34403
- beforeDestory() {
34567
+ beforeDestroy() {
34404
34568
  this.cancel();
34405
34569
  },
34406
34570
  methods: {
34407
34571
  create() {
34408
- this.status = this.enable;
34409
34572
  if (this.status) {
34410
- let domain = this.domain != '' ? this.domain : this.ip.includes(':') ? this.ip : `${this.ip}:${this.port}`;
34411
- this.session = new WebSocket(`${this.type}://${domain}`);
34412
- if (this.session && this.session.readyState == 1) {
34413
- this.session.open = a => this.open(a);
34414
- this.session.message = a => this.message(a);
34415
- this.session.error = a => this.error(a);
34416
- 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
+ };
34417
34604
  this.$emit('create', this.session);
34418
- } else this.cancel(this.session);
34419
- }
34420
- },
34421
- open(a) {
34422
- console.log('open', a);
34423
- this.$emit('open', a);
34424
- },
34425
- message({
34426
- data,
34427
- ...a
34428
- }) {
34429
- console.log('message', a);
34430
- if (data) this.$emit('message', JSON.parse(data));
34431
- },
34432
- error(a) {
34433
- console.log('error', a);
34434
- this.$emit('error', a);
34435
- },
34436
- close(a) {
34437
- console.log('close', a);
34438
- this.$emit('close', a);
34605
+ }
34606
+ } else this.cancel();
34439
34607
  },
34440
- cancel(a) {
34441
- this.$emit('cancel', a);
34442
- this.session = null;
34443
- 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
+ });
34444
34618
  }
34445
34619
  },
34446
34620
  render() {
@@ -36210,6 +36384,7 @@ var map = {
36210
36384
  "./Amodal/index.js": "9295",
36211
36385
  "./Aoption/index.js": "1aa8",
36212
36386
  "./Apages/index.js": "1d0c",
36387
+ "./ApasswordInput/index.js": "e4ec",
36213
36388
  "./Apopconfirm/index.js": "2ee7",
36214
36389
  "./Apopover/index.js": "1398",
36215
36390
  "./Areminder/index.js": "e241",
@@ -36228,6 +36403,7 @@ var map = {
36228
36403
  "./Atitle/index.js": "8848",
36229
36404
  "./Atooltip/index.js": "fbc2",
36230
36405
  "./Atransfer/index.js": "6bde",
36406
+ "./Aupload/index.js": "fafd",
36231
36407
  "./AwebSocket/index.js": "5209",
36232
36408
  "./Bcard/index.js": "4df8",
36233
36409
  "./BformItem/index.js": "5c61",
@@ -36609,17 +36785,6 @@ exports.scale = scale;
36609
36785
  exports.invert = invert;
36610
36786
  exports.clone = clone;
36611
36787
 
36612
- /***/ }),
36613
-
36614
- /***/ "5934":
36615
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
36616
-
36617
- "use strict";
36618
- /* 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");
36619
- /* 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__);
36620
- /* unused harmony reexport * */
36621
-
36622
-
36623
36788
  /***/ }),
36624
36789
 
36625
36790
  /***/ "5974":
@@ -37763,6 +37928,7 @@ __webpack_require__.r(__webpack_exports__);
37763
37928
  /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_0__);
37764
37929
 
37765
37930
  /* harmony default export */ __webpack_exports__["default"] = ({
37931
+ name: 'Aupload',
37766
37932
  props: {
37767
37933
  type: {
37768
37934
  type: String,
@@ -37774,8 +37940,9 @@ __webpack_require__.r(__webpack_exports__);
37774
37940
  },
37775
37941
  listType: {
37776
37942
  type: String,
37777
- default: () => 'picture-card'
37943
+ default: () => ''
37778
37944
  },
37945
+ // picture-card
37779
37946
  autoUpload: {
37780
37947
  type: Boolean,
37781
37948
  default: () => false
@@ -37824,8 +37991,8 @@ __webpack_require__.r(__webpack_exports__);
37824
37991
  "attrs": {
37825
37992
  "action": this.action,
37826
37993
  "list-type": this.listType,
37827
- "auto-upload": this.autoUpload,
37828
37994
  "http-request": this.upload,
37995
+ "auto-upload": this.autoUpload,
37829
37996
  "show-file-list": this.showFileList,
37830
37997
  "file-list": this.list
37831
37998
  },
@@ -60616,17 +60783,6 @@ __webpack_require__.r(__webpack_exports__);
60616
60783
  }
60617
60784
  });
60618
60785
 
60619
- /***/ }),
60620
-
60621
- /***/ "9211":
60622
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
60623
-
60624
- "use strict";
60625
- /* 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");
60626
- /* 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__);
60627
- /* unused harmony reexport * */
60628
-
60629
-
60630
60786
  /***/ }),
60631
60787
 
60632
60788
  /***/ "9226":
@@ -60730,18 +60886,6 @@ __webpack_require__.r(__webpack_exports__);
60730
60886
  Aform: _components_Aform__WEBPACK_IMPORTED_MODULE_0__["default"]
60731
60887
  },
60732
60888
  props: {
60733
- visible: {
60734
- type: Boolean,
60735
- default: () => false
60736
- },
60737
- title: {
60738
- type: String,
60739
- default: () => '编辑'
60740
- },
60741
- width: {
60742
- type: String,
60743
- default: () => '600px'
60744
- },
60745
60889
  rule: {
60746
60890
  type: Boolean,
60747
60891
  default: () => true
@@ -60755,10 +60899,6 @@ __webpack_require__.r(__webpack_exports__);
60755
60899
  default: () => true
60756
60900
  },
60757
60901
  config: {
60758
- type: Array,
60759
- default: () => []
60760
- },
60761
- object: {
60762
60902
  type: Object,
60763
60903
  default: () => ({})
60764
60904
  },
@@ -60778,34 +60918,17 @@ __webpack_require__.r(__webpack_exports__);
60778
60918
  type: String,
60779
60919
  default: () => '取消'
60780
60920
  },
60781
- loading: {
60782
- type: Boolean,
60783
- default: () => false
60784
- },
60785
60921
  labelPosition: {
60786
60922
  type: String,
60787
60923
  default: () => 'top'
60788
60924
  }
60789
60925
  },
60790
- methods: {
60791
- finish(form) {
60792
- this.$emit('finish', form);
60793
- },
60794
- submit(form) {
60795
- this.$emit('submit', form);
60796
- },
60797
- cancel(form) {
60798
- this.$emit('cancel', form);
60799
- }
60800
- },
60801
60926
  render() {
60802
60927
  const h = arguments[0];
60803
60928
  const {
60804
60929
  rule,
60805
60930
  rules,
60806
- action,
60807
60931
  config,
60808
- object,
60809
60932
  values,
60810
60933
  finishText,
60811
60934
  submitText,
@@ -60813,21 +60936,30 @@ __webpack_require__.r(__webpack_exports__);
60813
60936
  labelPosition
60814
60937
  } = this.$props;
60815
60938
  const {
60939
+ title = '编辑',
60940
+ width = '600px',
60941
+ visible = false,
60942
+ loading = false,
60816
60943
  ...props
60817
60944
  } = this.$attrs;
60945
+ const {
60946
+ finish,
60947
+ submit,
60948
+ cancel
60949
+ } = this.$listeners;
60818
60950
  return h("div", {
60819
60951
  "class": this.loading ? 'a-modal loading' : 'a-modal'
60820
60952
  }, [h("el-dialog", {
60821
60953
  "attrs": {
60822
- "visible": this.visible,
60823
- "title": this.title,
60824
- "width": this.width,
60954
+ "visible": visible,
60955
+ "title": title,
60956
+ "width": width,
60825
60957
  "lock-scroll": true,
60826
60958
  "destroy-on-close": true,
60827
60959
  "close-on-click-modal": false
60828
60960
  },
60829
60961
  "on": {
60830
- "close": this.cancel
60962
+ "close": cancel
60831
60963
  },
60832
60964
  "props": {
60833
60965
  ...props
@@ -60836,23 +60968,22 @@ __webpack_require__.r(__webpack_exports__);
60836
60968
  "class": "a-modal-body"
60837
60969
  }, [h(_components_Aform__WEBPACK_IMPORTED_MODULE_0__["default"], {
60838
60970
  "attrs": {
60971
+ "cols": "1",
60839
60972
  "size": "mini",
60840
60973
  "rule": rule,
60841
60974
  "rules": rules,
60842
- "action": action,
60843
- "object": config && config.length > 0 ? {} : object,
60844
- "config": config && config.length > 0 ? config : [],
60975
+ "config": config,
60845
60976
  "values": values,
60977
+ "loading": loading,
60846
60978
  "finishText": finishText,
60847
60979
  "submitText": submitText,
60848
60980
  "cancelText": cancelText,
60849
- "loading": this.loading,
60850
60981
  "labelPosition": labelPosition
60851
60982
  },
60852
60983
  "on": {
60853
- "finish": this.finish,
60854
- "submit": this.submit,
60855
- "cancel": this.cancel
60984
+ "finish": finish,
60985
+ "submit": submit,
60986
+ "cancel": cancel
60856
60987
  }
60857
60988
  })]), this.$slots.default, h("div", {
60858
60989
  "class": this.action ? 'a-modal-foot custom' : ''
@@ -127429,143 +127560,6 @@ module.exports = function (it) {
127429
127560
  };
127430
127561
 
127431
127562
 
127432
- /***/ }),
127433
-
127434
- /***/ "a61e":
127435
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
127436
-
127437
- "use strict";
127438
- // ESM COMPAT FLAG
127439
- __webpack_require__.r(__webpack_exports__);
127440
-
127441
- // 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&
127442
- var render = function render() {
127443
- var _vm = this,
127444
- _c = _vm._self._c;
127445
- return _c('div', {
127446
- staticClass: "a-upload"
127447
- }, [_c('el-upload', {
127448
- attrs: {
127449
- "action": _vm.action,
127450
- "multiple": _vm.multiple,
127451
- "limit": Number(_vm.limit),
127452
- "list-type": "picture-card",
127453
- "auto-upload": false,
127454
- "http-request": _vm.upload,
127455
- "on-change": e => _vm.upload(e),
127456
- "before-remove": e => _vm.upload(e),
127457
- "file-list": _vm.list
127458
- }
127459
- }, [_vm.src ? _c('img', {
127460
- attrs: {
127461
- "src": _vm.src
127462
- }
127463
- }) : _c('i', {
127464
- staticClass: "el-icon-plus"
127465
- })])], 1);
127466
- };
127467
- var staticRenderFns = [];
127468
-
127469
- // CONCATENATED MODULE: ./src/components/Aupload/index.vue?vue&type=template&id=002e4876&scoped=true&
127470
-
127471
- // 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&
127472
- /* harmony default export */ var Auploadvue_type_script_lang_js_ = ({
127473
- name: 'Aupload',
127474
- props: {
127475
- previewUrl: {
127476
- type: String,
127477
- default: () => '/api/file/detail/path='
127478
- },
127479
- type: {
127480
- type: String,
127481
- default: () => 'image'
127482
- },
127483
- action: {
127484
- type: String,
127485
- default: () => '#'
127486
- },
127487
- multiple: {
127488
- type: Boolean,
127489
- default: () => false
127490
- },
127491
- limit: {
127492
- type: String,
127493
- default: () => '10'
127494
- },
127495
- listType: {
127496
- type: String,
127497
- default: () => 'picture-card'
127498
- },
127499
- autoUpload: {
127500
- type: Boolean,
127501
- default: () => false
127502
- },
127503
- fileList: {
127504
- type: Array,
127505
- default: () => []
127506
- },
127507
- showFileList: {
127508
- type: Boolean,
127509
- default: () => false
127510
- }
127511
- },
127512
- data() {
127513
- return {
127514
- list: [],
127515
- src: ''
127516
- };
127517
- },
127518
- created() {
127519
- this.create();
127520
- },
127521
- methods: {
127522
- create() {
127523
- this.list = this.fileList.concat(this.list);
127524
- },
127525
- change(e) {
127526
- this.$emit('change', e);
127527
- },
127528
- finish(e) {
127529
- this.$emit('finish', e);
127530
- },
127531
- upload(e) {
127532
- this.$emit('upload', e);
127533
- },
127534
- remove(e) {
127535
- this.$emit('remove', e);
127536
- }
127537
- }
127538
- });
127539
- // CONCATENATED MODULE: ./src/components/Aupload/index.vue?vue&type=script&lang=js&
127540
- /* harmony default export */ var components_Auploadvue_type_script_lang_js_ = (Auploadvue_type_script_lang_js_);
127541
- // EXTERNAL MODULE: ./src/components/Aupload/index.vue?vue&type=style&index=0&id=002e4876&prod&scoped=true&lang=css&
127542
- var Auploadvue_type_style_index_0_id_002e4876_prod_scoped_true_lang_css_ = __webpack_require__("9211");
127543
-
127544
- // EXTERNAL MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/runtime/componentNormalizer.js
127545
- var componentNormalizer = __webpack_require__("e607");
127546
-
127547
- // CONCATENATED MODULE: ./src/components/Aupload/index.vue
127548
-
127549
-
127550
-
127551
-
127552
-
127553
-
127554
- /* normalize component */
127555
-
127556
- var component = Object(componentNormalizer["a" /* default */])(
127557
- components_Auploadvue_type_script_lang_js_,
127558
- render,
127559
- staticRenderFns,
127560
- false,
127561
- null,
127562
- "002e4876",
127563
- null
127564
-
127565
- )
127566
-
127567
- /* harmony default export */ var Aupload = __webpack_exports__["default"] = (component.exports);
127568
-
127569
127563
  /***/ }),
127570
127564
 
127571
127565
  /***/ "a624":
@@ -132323,338 +132317,31 @@ module.exports = _default;
132323
132317
  __webpack_require__.r(__webpack_exports__);
132324
132318
  /* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6aaa");
132325
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__);
132326
- /* 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");
132327
132321
  /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("d397");
132328
132322
  /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_2__);
132329
132323
 
132330
132324
 
132331
132325
 
132332
-
132333
132326
  /* harmony default export */ __webpack_exports__["default"] = ({
132334
132327
  name: 'Aform',
132335
- props: {
132336
- value: {
132337
- type: Object,
132338
- default: () => ({})
132339
- },
132340
- must: {
132341
- type: Boolean,
132342
- default: () => false
132343
- },
132344
- inline: {
132345
- type: Boolean,
132346
- default: () => false
132347
- },
132348
- cols: {
132349
- type: String,
132350
- default: () => '4'
132351
- },
132352
- gutter: {
132353
- type: String,
132354
- default: () => '8'
132355
- },
132356
- config: {
132357
- type: Object,
132358
- default: () => ({})
132359
- },
132360
- global: {
132361
- type: Boolean,
132362
- default: () => false
132363
- },
132364
- disabled: {
132365
- type: Boolean,
132366
- default: () => false
132367
- }
132368
- },
132369
- data() {
132370
- return {
132371
- form: this.value,
132372
- option: {}
132373
- };
132374
- },
132375
- watch: {
132376
- form() {
132377
- this.relate(this.config);
132378
- }
132379
- },
132380
- created() {
132381
- this.relate(this.config);
132382
- },
132383
- mounted() {},
132384
- methods: {
132385
- input() {
132386
- this.$emit('input', this.filter());
132387
- },
132388
- change() {
132389
- this.$emit('change', this.filter(), this.form, this.option);
132390
- },
132391
- relate(config = {}) {
132392
- Object.keys(config).forEach(a => {
132393
- let {
132394
- ...r
132395
- } = config[a];
132396
- let child = r.children || r.child || r.node || null;
132397
- if (child && Object.keys(child).length > 0) {
132398
- this.relate(child);
132399
- } else {
132400
- r.default && (this.form[a] = r.default || '');
132401
- }
132402
- });
132403
- this.$nextTick(() => {
132404
- Object.keys(this.value).forEach(a => typeof this.value[a] == 'number' && (this.form[a] = `${this.value[a]}`));
132405
- });
132406
- },
132407
- create(a, b) {
132408
- const h = this.$createElement;
132409
- let {
132410
- ...r
132411
- } = this.config[a];
132412
- let label = r.text || r.label || r.title || '';
132413
- let width = r.width ? r.width : `${100 / this.cols}%`;
132414
- let judge = [{
132415
- required: true,
132416
- message: `${label}不能为空`
132417
- }];
132418
- let valid = r.rule ? r.rule : r.must || this.must ? judge : [];
132419
- let rules = this.disabled || r.disabled ? [] : (r.must || this.must) && r.rule ? [...judge, ...r.rule] : valid;
132420
- let props = {
132421
- name: a,
132422
- prop: a,
132423
- label,
132424
- rules,
132425
- disabled: r.disabled || this.disabled,
132426
- ...r
132427
- };
132428
- if (this.inline) {
132429
- let style = {
132430
- padding: `0 ${this.gutter / 2}px`,
132431
- width
132432
- };
132433
- return h("el-form-item", {
132434
- "style": style,
132435
- "props": {
132436
- ...props
132437
- }
132438
- }, [this.format(r, a)]);
132439
- } else {
132440
- if (r.span) {
132441
- return h("el-col", {
132442
- "key": b,
132443
- "attrs": {
132444
- "span": Number(r.span)
132445
- }
132446
- }, [h("el-form-item", {
132447
- "props": {
132448
- ...props
132449
- }
132450
- }, [this.format(r, a)])]);
132451
- } else {
132452
- return h("el-col", {
132453
- "key": b,
132454
- "style": {
132455
- width
132456
- }
132457
- }, [h("el-form-item", {
132458
- "props": {
132459
- ...props
132460
- }
132461
- }, [this.format(r, a)])]);
132462
- }
132463
- }
132464
- },
132465
- format(a, b) {
132466
- const h = this.$createElement;
132467
- this.option[b] = a;
132468
- let child = a.children || a.child || a.node || null;
132469
- if (child && Object.keys(child).length > 0) {
132470
- return Object.keys(child).map((c, d) => {
132471
- let {
132472
- ...r
132473
- } = child[c];
132474
- if (r.span) {
132475
- return h("el-col", {
132476
- "key": d,
132477
- "attrs": {
132478
- "span": Number(r.span)
132479
- }
132480
- }, [this.format(r, c)]);
132481
- } else {
132482
- let width = r.width ? r.width : `${100 / Object.keys(child).length}%`;
132483
- return h("el-col", {
132484
- "key": d,
132485
- "style": {
132486
- width
132487
- }
132488
- }, [this.format(r, c)]);
132489
- }
132490
- });
132491
- } else {
132492
- let config = {
132493
- change: () => this.change(),
132494
- form: this.form,
132495
- field: b,
132496
- ...a
132497
- };
132498
- return h(_components_AformItem__WEBPACK_IMPORTED_MODULE_1__["default"], {
132499
- "on": {
132500
- "input": this.input
132501
- },
132502
- "attrs": {
132503
- "config": config
132504
- }
132505
- });
132506
- }
132507
- },
132508
- filter() {
132509
- let data = {};
132510
- Object.keys(this.form).length > 0 && Object.keys(this.form).forEach(a => {
132511
- if (this.option[a]) {
132512
- let {
132513
- ...r
132514
- } = this.option[a];
132515
- if (r.split && r.split.length > 0) {
132516
- r.split.forEach((b, c) => data[b] = this.form[a][c]);
132517
- } else data[a] = this.form[a];
132518
- }
132519
- });
132520
- return data;
132521
- },
132522
- submit() {
132523
- if (this.global) {
132524
- const {
132525
- pageParams
132526
- } = this.$store.state;
132527
- this.$store.commit('setFormParams', this.filter());
132528
- this.$store.commit('setPageParams', {
132529
- ...pageParams,
132530
- page: 1
132531
- });
132532
- }
132533
- this.$nextTick(() => this.$emit('submit', this.filter(), this.form, this.option));
132534
- },
132535
- cancel() {
132536
- this.$refs.form && this.$refs.form.resetFields && this.$refs.form.resetFields();
132537
- this.$nextTick(() => {
132538
- this.form = {};
132539
- this.$nextTick(() => {
132540
- this.relate(this.config);
132541
- this.$nextTick(() => {
132542
- if (this.global) {
132543
- const {
132544
- pageParams
132545
- } = this.$store.state;
132546
- this.$store.commit('setFormParams', this.filter());
132547
- this.$store.commit('setPageParams', {
132548
- ...pageParams,
132549
- page: 1
132550
- });
132551
- }
132552
- this.$nextTick(() => this.$emit('cancel', this.filter(), this.form, this.option));
132553
- });
132554
- });
132555
- });
132556
- }
132557
- },
132558
132328
  render() {
132559
132329
  const h = arguments[0];
132560
132330
  let {
132561
- margin = '0',
132562
- padding = '0',
132563
- size = 'small',
132564
- loading = false,
132565
- labelWidth = 'auto',
132566
- labelPosition = 'top',
132567
- finishText = '保存',
132568
- submitText = '搜索',
132569
- rejectText = '驳回',
132570
- cancelText = '重置',
132571
- action = [],
132572
- ...rest
132331
+ ...props
132573
132332
  } = this.$attrs;
132574
- let style = this.inline ? {
132575
- margin: `0 -${this.gutter / 2}px`
132576
- } : {};
132577
- let {
132578
- finish = null,
132579
- submit = null,
132580
- reject = null,
132581
- cancel = null
132582
- } = this.$listeners;
132583
- let props = {
132584
- size,
132585
- inline: this.inline,
132586
- labelWidth,
132587
- labelPosition,
132588
- style,
132589
- ...rest
132590
- };
132591
132333
  return h("div", {
132592
- "class": "a-form",
132593
- "style": {
132594
- margin,
132595
- padding
132596
- }
132597
- }, [h("el-form", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
132598
- "ref": "form"
132599
- }, {
132600
- "props": {
132601
- model: this.form,
132602
- ...props
132603
- }
132604
- }]), [this.inline ? Object.keys(this.config).map((a, b) => this.create(a, b)) : h("div", {
132605
- "class": "column"
132606
- }, [h("el-row", {
132607
- "attrs": {
132608
- "gutter": Number(this.gutter)
132609
- },
132610
- "class": "main-rows"
132611
- }, [Object.keys(this.config).map((a, b) => this.create(a, b))])]), (finish || submit || reject || cancel || action.length > 0) && h("el-form-item", {
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()([{
132612
132336
  "attrs": {
132613
- "name": "action",
132614
- "label": "action"
132615
- },
132616
- "class": "action",
132617
- "style": {
132618
- paddingLeft: `${this.gutter}px`
132619
- }
132620
- }, [finish && h("el-button", {
132621
- "attrs": {
132622
- "disabled": loading,
132623
- "type": "success"
132624
- },
132625
- "on": {
132626
- "click": this.submit
132627
- }
132628
- }, [finishText]), submit && h("el-button", {
132629
- "attrs": {
132630
- "disabled": loading,
132631
- "type": "primary"
132632
- },
132633
- "on": {
132634
- "click": this.submit
132635
- }
132636
- }, [submitText]), reject && h("el-button", {
132637
- "attrs": {
132638
- "disabled": loading,
132639
- "type": "warning"
132640
- },
132641
- "on": {
132642
- "click": this.submit
132643
- }
132644
- }, [rejectText]), cancel && h("el-button", {
132645
- "attrs": {
132646
- "disabled": loading,
132647
- "type": "default"
132648
- },
132649
- "on": {
132650
- "click": this.cancel
132651
- }
132652
- }, [cancelText]), action.map((a, b) => h("el-button", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
132653
- "key": b,
132654
- "attrs": {
132655
- "disabled": loading
132337
+ "inline": true,
132338
+ "global": false
132656
132339
  }
132657
- }, a]), [a.label || a.title || a.text || '']))])])]);
132340
+ }, {
132341
+ "on": props
132342
+ }, {}, {
132343
+ "props": props
132344
+ }]))]);
132658
132345
  }
132659
132346
  });
132660
132347
 
@@ -133348,6 +133035,13 @@ module.exports = _default;
133348
133035
 
133349
133036
  /***/ }),
133350
133037
 
133038
+ /***/ "b1f4":
133039
+ /***/ (function(module, exports, __webpack_require__) {
133040
+
133041
+ // extracted by mini-css-extract-plugin
133042
+
133043
+ /***/ }),
133044
+
133351
133045
  /***/ "b224":
133352
133046
  /***/ (function(module, exports, __webpack_require__) {
133353
133047
 
@@ -134402,6 +134096,14 @@ __webpack_require__.r(__webpack_exports__);
134402
134096
  /* harmony default export */ __webpack_exports__["default"] = ({
134403
134097
  name: 'AfEditor',
134404
134098
  props: {
134099
+ id: {
134100
+ type: String,
134101
+ default: () => `a-f-editor-id-${Math.random()}`
134102
+ },
134103
+ value: {
134104
+ type: Object,
134105
+ default: () => ({})
134106
+ },
134405
134107
  must: {
134406
134108
  type: Boolean,
134407
134109
  default: () => false
@@ -134416,7 +134118,7 @@ __webpack_require__.r(__webpack_exports__);
134416
134118
  },
134417
134119
  gutter: {
134418
134120
  type: String,
134419
- default: () => '8'
134121
+ default: () => '16'
134420
134122
  },
134421
134123
  config: {
134422
134124
  type: Object,
@@ -134430,6 +134132,14 @@ __webpack_require__.r(__webpack_exports__);
134430
134132
  type: Boolean,
134431
134133
  default: () => false
134432
134134
  },
134135
+ prompt: {
134136
+ type: Boolean,
134137
+ default: () => false
134138
+ },
134139
+ review: {
134140
+ type: Boolean,
134141
+ default: () => false
134142
+ },
134433
134143
  disabled: {
134434
134144
  type: Boolean,
134435
134145
  default: () => false
@@ -134437,43 +134147,56 @@ __webpack_require__.r(__webpack_exports__);
134437
134147
  },
134438
134148
  data() {
134439
134149
  return {
134440
- form: this.values,
134150
+ form: this.value,
134441
134151
  option: {},
134442
- opened: false,
134443
- height: 'auto'
134152
+ width: 'auto'
134444
134153
  };
134445
134154
  },
134446
134155
  watch: {
134447
- form() {
134448
- this.relate(this.config);
134156
+ values: {
134157
+ immediate: true,
134158
+ deep: true,
134159
+ handler() {
134160
+ this.relate(this.config);
134161
+ }
134449
134162
  }
134450
134163
  },
134451
- created() {
134164
+ mounted() {
134165
+ this.resize();
134452
134166
  this.relate(this.config);
134453
134167
  },
134454
- mounted() {},
134455
134168
  methods: {
134456
- input() {
134169
+ input(a) {
134457
134170
  this.$emit('input', this.filter());
134458
134171
  },
134459
134172
  change() {
134460
134173
  this.$emit('change', this.filter(), this.form, this.option);
134461
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
+ },
134462
134183
  relate(config = {}) {
134463
- Object.keys(config).forEach(a => {
134184
+ let data = {};
134185
+ if (this.values) Object.keys(config).forEach(a => {
134464
134186
  let {
134465
134187
  ...r
134466
134188
  } = config[a];
134467
134189
  let child = r.children || r.child || r.node || null;
134468
- if (child && Object.keys(child).length > 0) {
134469
- this.relate(child);
134470
- } else {
134471
- r.default && (this.form[a] = r.default || '');
134472
- }
134473
- });
134474
- this.$nextTick(() => {
134475
- Object.keys(this.values).forEach(a => typeof this.values[a] == 'number' && (this.form[a] = `${this.values[a]}`));
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] = '';
134476
134195
  });
134196
+ this.form = {
134197
+ ...data,
134198
+ ...this.value
134199
+ };
134477
134200
  },
134478
134201
  create(a, b) {
134479
134202
  const h = this.$createElement;
@@ -134482,18 +134205,26 @@ __webpack_require__.r(__webpack_exports__);
134482
134205
  } = this.config[a];
134483
134206
  let label = r.text || r.label || r.title || '';
134484
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
+ }] : [];
134485
134216
  let judge = [{
134486
134217
  required: true,
134487
134218
  message: `${label}不能为空`
134488
- }];
134219
+ }, ...least, ...limit];
134489
134220
  let valid = r.rule ? r.rule : r.must || this.must ? judge : [];
134490
134221
  let rules = this.disabled || r.disabled ? [] : (r.must || this.must) && r.rule ? [...judge, ...r.rule] : valid;
134491
134222
  let props = {
134492
134223
  name: a,
134493
134224
  prop: a,
134494
- label,
134225
+ label: this.review ? `${label}:` : label,
134226
+ labelWidth: this.width,
134495
134227
  rules,
134496
- disabled: r.disabled || this.disabled,
134497
134228
  ...r
134498
134229
  };
134499
134230
  if (this.inline) {
@@ -134501,12 +134232,13 @@ __webpack_require__.r(__webpack_exports__);
134501
134232
  padding: `0 ${this.gutter / 2}px`,
134502
134233
  width
134503
134234
  };
134504
- return h("el-form-item", {
134235
+ return h("div", [h("el-form-item", {
134236
+ "class": `${this.id}-item`,
134505
134237
  "style": style,
134506
134238
  "props": {
134507
134239
  ...props
134508
134240
  }
134509
- }, [this.format(r, a)]);
134241
+ }, [this.format(r, a)]), this.$slots.default]);
134510
134242
  } else {
134511
134243
  if (r.span) {
134512
134244
  return h("el-col", {
@@ -134515,6 +134247,7 @@ __webpack_require__.r(__webpack_exports__);
134515
134247
  "span": Number(r.span)
134516
134248
  }
134517
134249
  }, [h("el-form-item", {
134250
+ "class": `${this.id}-item`,
134518
134251
  "props": {
134519
134252
  ...props
134520
134253
  }
@@ -134526,6 +134259,7 @@ __webpack_require__.r(__webpack_exports__);
134526
134259
  width
134527
134260
  }
134528
134261
  }, [h("el-form-item", {
134262
+ "class": `${this.id}-item`,
134529
134263
  "props": {
134530
134264
  ...props
134531
134265
  }
@@ -134542,9 +134276,15 @@ __webpack_require__.r(__webpack_exports__);
134542
134276
  let {
134543
134277
  ...r
134544
134278
  } = child[c];
134279
+ let space = a.gutter ? a.gutter / 2 : this.gutter / 4;
134280
+ let style = {
134281
+ padding: `0 ${space}px`
134282
+ };
134283
+ r.type = r.type ? r.type : a.type;
134545
134284
  if (r.span) {
134546
134285
  return h("el-col", {
134547
134286
  "key": d,
134287
+ "style": style,
134548
134288
  "attrs": {
134549
134289
  "span": Number(r.span)
134550
134290
  }
@@ -134554,19 +134294,26 @@ __webpack_require__.r(__webpack_exports__);
134554
134294
  return h("el-col", {
134555
134295
  "key": d,
134556
134296
  "style": {
134557
- width
134297
+ width,
134298
+ ...style
134558
134299
  }
134559
134300
  }, [this.format(r, c)]);
134560
134301
  }
134561
134302
  });
134562
134303
  } else {
134563
134304
  let config = {
134305
+ disabled: a.disabled || this.disabled,
134564
134306
  change: () => this.change(),
134565
134307
  form: this.form,
134308
+ quick: true,
134566
134309
  field: b,
134567
134310
  ...a
134568
134311
  };
134569
- 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"], {
134570
134317
  "on": {
134571
134318
  "input": this.input
134572
134319
  },
@@ -134578,14 +134325,16 @@ __webpack_require__.r(__webpack_exports__);
134578
134325
  },
134579
134326
  filter() {
134580
134327
  let data = {};
134581
- Object.keys(this.form).length > 0 && Object.keys(this.form).forEach(a => {
134328
+ Object.keys(this.form).forEach(a => {
134582
134329
  if (this.option[a]) {
134583
134330
  let {
134584
134331
  ...r
134585
134332
  } = this.option[a];
134586
- if (r.split && r.split.length > 0) {
134587
- r.split.forEach((b, c) => data[b] = this.form[a][c]);
134588
- } 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
+ }
134589
134338
  }
134590
134339
  });
134591
134340
  return data;
@@ -134601,7 +134350,13 @@ __webpack_require__.r(__webpack_exports__);
134601
134350
  page: 1
134602
134351
  });
134603
134352
  }
134604
- 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
+ });
134605
134360
  },
134606
134361
  cancel() {
134607
134362
  this.$refs.form && this.$refs.form.resetFields && this.$refs.form.resetFields();
@@ -134629,14 +134384,15 @@ __webpack_require__.r(__webpack_exports__);
134629
134384
  render() {
134630
134385
  const h = arguments[0];
134631
134386
  let {
134387
+ width = '100%',
134632
134388
  margin = '0',
134633
134389
  padding = '0',
134634
134390
  size = 'small',
134635
134391
  loading = false,
134636
134392
  labelWidth = 'auto',
134637
- labelPosition = 'top',
134393
+ labelPosition = this.review ? 'right' : 'top',
134638
134394
  finishText = '保存',
134639
- submitText = '搜索',
134395
+ submitText = '提交',
134640
134396
  rejectText = '驳回',
134641
134397
  cancelText = '取消',
134642
134398
  action = [],
@@ -134645,47 +134401,54 @@ __webpack_require__.r(__webpack_exports__);
134645
134401
  let style = this.inline ? {
134646
134402
  margin: `0 -${this.gutter / 2}px`
134647
134403
  } : {};
134648
- let {
134649
- finish = null,
134650
- submit = null,
134651
- reject = null,
134652
- cancel = null
134653
- } = this.$listeners;
134654
134404
  let props = {
134655
134405
  size,
134656
134406
  inline: this.inline,
134657
134407
  labelWidth,
134658
134408
  labelPosition,
134659
- style,
134660
134409
  ...rest
134661
134410
  };
134411
+ let {
134412
+ finish = null,
134413
+ submit = null,
134414
+ reject = null,
134415
+ cancel = null
134416
+ } = this.$listeners;
134662
134417
  return h("div", {
134663
134418
  "class": "a-f-editor",
134664
134419
  "style": {
134420
+ width,
134665
134421
  margin,
134666
134422
  padding
134667
134423
  }
134668
134424
  }, [h("el-form", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
134669
- "ref": "form"
134425
+ "ref": "form",
134426
+ "attrs": {
134427
+ "id": this.id
134428
+ },
134429
+ "style": style
134670
134430
  }, {
134671
134431
  "props": {
134672
134432
  model: this.form,
134673
134433
  ...props
134674
134434
  }
134675
- }]), [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", {
134676
134436
  "attrs": {
134677
134437
  "gutter": Number(this.gutter)
134678
134438
  },
134679
134439
  "class": "main-rows"
134680
- }, [Object.keys(this.config).map((a, b) => this.create(a, b)), this.$slots.default]), (finish || submit || reject || cancel || action.length > 0) && h("el-form-item", {
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", {
134441
+ "class": "action"
134442
+ }, [h("el-form-item", {
134681
134443
  "attrs": {
134682
134444
  "name": "action",
134683
- "label": "action"
134684
- },
134685
- "class": "action"
134445
+ "label": "action",
134446
+ "label-width": "0"
134447
+ }
134686
134448
  }, [finish && h("el-button", {
134687
134449
  "attrs": {
134688
134450
  "disabled": loading,
134451
+ "loading": loading,
134689
134452
  "type": "success"
134690
134453
  },
134691
134454
  "on": {
@@ -134694,6 +134457,7 @@ __webpack_require__.r(__webpack_exports__);
134694
134457
  }, [finishText]), submit && h("el-button", {
134695
134458
  "attrs": {
134696
134459
  "disabled": loading,
134460
+ "loading": loading,
134697
134461
  "type": "primary"
134698
134462
  },
134699
134463
  "on": {
@@ -134702,6 +134466,7 @@ __webpack_require__.r(__webpack_exports__);
134702
134466
  }, [submitText]), reject && h("el-button", {
134703
134467
  "attrs": {
134704
134468
  "disabled": loading,
134469
+ "loading": loading,
134705
134470
  "type": "warning"
134706
134471
  },
134707
134472
  "on": {
@@ -134710,17 +134475,20 @@ __webpack_require__.r(__webpack_exports__);
134710
134475
  }, [rejectText]), cancel && h("el-button", {
134711
134476
  "attrs": {
134712
134477
  "disabled": loading,
134713
- "type": "default"
134478
+ "type": !finish && !submit && !reject ? 'primary' : 'default'
134714
134479
  },
134715
134480
  "on": {
134716
134481
  "click": this.cancel
134717
134482
  }
134718
- }, [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()([{
134719
134484
  "key": b,
134720
134485
  "attrs": {
134721
134486
  "disabled": loading
134487
+ },
134488
+ "on": {
134489
+ "click": e => a.click(this.filter(), this.form, this.option, e)
134722
134490
  }
134723
- }, a]), [a.label || a.title || a.text || '']))])])]);
134491
+ }, a]), [a.label || a.title || a.text || '']))])])])]);
134724
134492
  }
134725
134493
  });
134726
134494
 
@@ -135772,7 +135540,7 @@ exports.onIrrelevantElement = onIrrelevantElement;
135772
135540
 
135773
135541
  /***/ }),
135774
135542
 
135775
- /***/ "ba6c":
135543
+ /***/ "ba86":
135776
135544
  /***/ (function(module, exports, __webpack_require__) {
135777
135545
 
135778
135546
  // extracted by mini-css-extract-plugin
@@ -136836,6 +136604,10 @@ __webpack_require__.r(__webpack_exports__);
136836
136604
  Apopconfirm: _components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__["default"]
136837
136605
  },
136838
136606
  props: {
136607
+ id: {
136608
+ type: String,
136609
+ default: () => `id-a-table-${Math.random()}`
136610
+ },
136839
136611
  margin: {
136840
136612
  type: String,
136841
136613
  default: () => '0'
@@ -136884,9 +136656,9 @@ __webpack_require__.r(__webpack_exports__);
136884
136656
  type: Object,
136885
136657
  default: () => ({})
136886
136658
  },
136887
- maxHeight: {
136659
+ height: {
136888
136660
  type: String,
136889
- default: () => '480'
136661
+ default: () => '520'
136890
136662
  },
136891
136663
  elementLoadingText: {
136892
136664
  type: String,
@@ -136970,11 +136742,20 @@ __webpack_require__.r(__webpack_exports__);
136970
136742
  type: Boolean,
136971
136743
  default: () => true
136972
136744
  },
136745
+ pages: {
136746
+ type: Object,
136747
+ default: () => ({})
136748
+ },
136973
136749
  page: {
136974
136750
  type: Boolean,
136975
136751
  default: () => true
136976
136752
  }
136977
136753
  },
136754
+ data() {
136755
+ return {
136756
+ maxHeight: this.height
136757
+ };
136758
+ },
136978
136759
  mounted() {
136979
136760
  this.$refs['a-table'].bodyWrapper.addEventListener('wheel', this.scroll);
136980
136761
  },
@@ -136997,14 +136778,14 @@ __webpack_require__.r(__webpack_exports__);
136997
136778
  } = a;
136998
136779
  let child = a.children || a.child || a.node || a.list || [];
136999
136780
  let field = a.field || a.index || a.name || a.prop;
137000
- let label = a.label || a.title || a.text;
136781
+ let label = a.label || a.title || a.text || '';
137001
136782
  let props = {
137002
136783
  key: b,
137003
136784
  prop: field,
137004
136785
  scopedSlot: field,
137005
136786
  sortable: field ? a.sortable ? a.sortable : this.sortable : false,
137006
136787
  formatter: render ? render : type ? (e, f, g, h) => this.format(a, b, e, h) : null,
137007
- showOverflowTooltip: a.showOverflowTooltip ? a.showOverflowTooltip : this.showOverflowTooltip,
136788
+ showOverflowTooltip: render ? false : type ? false : a.showOverflowTooltip ? a.showOverflowTooltip : this.showOverflowTooltip,
137008
136789
  ...r
137009
136790
  };
137010
136791
  return h("el-table-column", {
@@ -137013,7 +136794,7 @@ __webpack_require__.r(__webpack_exports__);
137013
136794
  }
137014
136795
  }, [h("template", {
137015
136796
  "slot": "header"
137016
- }, [header ? () => header(r) : label && label != '' && label.length && label.length > 8 ? h("el-tooltip", {
136797
+ }, [header ? () => header(r) : label && label != '' && label.length > 8 ? h("el-tooltip", {
137017
136798
  "attrs": {
137018
136799
  "content": label,
137019
136800
  "placement": "top"
@@ -137038,53 +136819,54 @@ __webpack_require__.r(__webpack_exports__);
137038
136819
  handle,
137039
136820
  remove
137040
136821
  } = this.$listeners;
137041
- if (review || modify || update || handle || remove || this.$listeners.delete || this.$listeners.export) {
136822
+ if (review || modify || update || handle || remove || this.$listeners.delete || this.$listeners.export || this.action.length > 0) {
137042
136823
  return {
137043
136824
  fixed: 'right',
137044
136825
  align: 'center',
137045
136826
  width: this.actionWidth,
137046
136827
  label: this.actionTitle,
137047
- formatter: item => h("div", {
136828
+ showOverflowTooltip: false,
136829
+ formatter: (a, b, c, d) => h("div", {
137048
136830
  "class": "action"
137049
136831
  }, [review && h("i", {
137050
136832
  "class": "el-icon-view",
137051
136833
  "on": {
137052
- "click": () => review(item)
136834
+ "click": () => review(a, b, c, d)
137053
136835
  }
137054
136836
  }), modify && h("i", {
137055
136837
  "class": "el-icon-edit",
137056
136838
  "on": {
137057
- "click": () => modify(item)
136839
+ "click": () => modify(a, b, c, d)
137058
136840
  }
137059
136841
  }), update && h("i", {
137060
136842
  "class": "el-icon-edit",
137061
136843
  "on": {
137062
- "click": () => update(item)
136844
+ "click": () => update(a, b, c, d)
137063
136845
  }
137064
136846
  }), handle && h("i", {
137065
136847
  "class": "el-icon-edit",
137066
136848
  "on": {
137067
- "click": () => handle(item)
136849
+ "click": () => handle(a, b, c, d)
137068
136850
  }
137069
136851
  }), remove && h(_components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__["default"], {
137070
136852
  "on": {
137071
- "submit": () => remove(item)
136853
+ "submit": () => remove(a, b, c, d)
137072
136854
  }
137073
136855
  }), this.$listeners.delete && h(_components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__["default"], {
137074
136856
  "on": {
137075
- "submit": () => this.$listeners.delete(item)
136857
+ "submit": () => this.$listeners.delete(a, b, c, d)
137076
136858
  }
137077
136859
  }), this.$listeners.export && h("i", {
137078
136860
  "class": "el-icon-download",
137079
136861
  "on": {
137080
- "click": () => this.$listeners.export(item)
136862
+ "click": () => this.$listeners.export(a, b, c, d)
137081
136863
  }
137082
136864
  }), this.action.map((a, b) => h("el-button", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
137083
136865
  "key": b,
137084
136866
  "on": {
137085
- "click": e => a.click && a.click(item, e)
136867
+ "click": e => a.click(a, b, c, d, e)
137086
136868
  }
137087
- }, a]), [a.label || a.title || a.text]))])
136869
+ }, a]), [a.label || a.title || a.text || '']))])
137088
136870
  };
137089
136871
  }
137090
136872
  },
@@ -137125,58 +136907,16 @@ __webpack_require__.r(__webpack_exports__);
137125
136907
  this.$emit('change', pages);
137126
136908
  this.search(pages);
137127
136909
  },
137128
- format({
137129
- type = '',
137130
- name = '',
137131
- data = [],
137132
- text = '',
137133
- label = '',
137134
- title = '',
137135
- field = '',
137136
- dicts = [],
137137
- ...props
137138
- }, colIndex, item, rowIndex) {
136910
+ format(a, b, c, d) {
137139
136911
  const h = this.$createElement;
137140
- if (type == 'enume' || type == 'enumerate') {
137141
- if (field != '') return h(_components_Aenume__WEBPACK_IMPORTED_MODULE_3__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
137142
- "key": colIndex + '-' + rowIndex,
137143
- "attrs": {
137144
- "field": field,
137145
- "data": dicts.length > 0 ? dicts : data
137146
- }
137147
- }, props, {
137148
- "model": {
137149
- value: item[field],
137150
- callback: $$v => {
137151
- this.$set(item, field, $$v);
137152
- }
137153
- }
137154
- }]));
137155
- return h(_components_Aenume__WEBPACK_IMPORTED_MODULE_3__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
137156
- "key": colIndex + '-' + rowIndex,
137157
- "attrs": {
137158
- "field": name,
137159
- "data": dicts.length > 0 ? dicts : data
137160
- }
137161
- }, props, {
137162
- "model": {
137163
- value: item[name],
137164
- callback: $$v => {
137165
- this.$set(item, name, $$v);
137166
- }
137167
- }
137168
- }]));
137169
- }
136912
+ let field = a.field || a.index || a.name || a.prop;
137170
136913
  return h(_components_AformItem__WEBPACK_IMPORTED_MODULE_6__["default"], {
137171
- "key": colIndex + '-' + rowIndex,
136914
+ "key": b + '-' + d,
137172
136915
  "attrs": {
137173
136916
  "config": {
137174
- type,
137175
- form: item,
137176
- dicts: dicts.length > 0 ? dicts : data,
137177
- field: field != '' ? field : name != '' ? name : '',
137178
- label: text != '' ? text : label != '' ? label : title != '' ? title : '无栏目名称',
137179
- ...props
136917
+ form: c,
136918
+ field,
136919
+ ...a
137180
136920
  }
137181
136921
  }
137182
136922
  });
@@ -137199,22 +136939,23 @@ __webpack_require__.r(__webpack_exports__);
137199
136939
  },
137200
136940
  render() {
137201
136941
  const h = arguments[0];
137202
- const {
137203
- ...props
137204
- } = this.$attrs;
137205
136942
  const {
137206
136943
  ...r
137207
136944
  } = this.record;
137208
- const data = r.data ? r.data : r.list ? r.list : r.rows ? r.rows : r.record ? r.record : r.records ? r.records : [];
137209
- 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;
137210
136947
  const {
137211
136948
  pageParams = {}
137212
136949
  } = this.$store.state;
136950
+ const {
136951
+ ...props
136952
+ } = this.$attrs;
137213
136953
  return h("div", {
137214
136954
  "class": this.border ? 'a-table' : 'a-table border'
137215
- }, [h("el-table", {
136955
+ }, [h("el-table", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
137216
136956
  "ref": "a-table",
137217
136957
  "attrs": {
136958
+ "id": this.id,
137218
136959
  "data": data,
137219
136960
  "size": this.size,
137220
136961
  "border": this.border,
@@ -137239,11 +136980,14 @@ __webpack_require__.r(__webpack_exports__);
137239
136980
  "on": {
137240
136981
  "row-click": this.choose,
137241
136982
  "selection-change": this.select
137242
- },
137243
- "props": {
137244
- ...props
137245
136983
  }
137246
- }, [(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", {
137247
136991
  "attrs": {
137248
136992
  "fixed": "left",
137249
136993
  "type": "selection",
@@ -137263,15 +137007,19 @@ __webpack_require__.r(__webpack_exports__);
137263
137007
  "attrs": {
137264
137008
  "description": this.emptyText
137265
137009
  }
137266
- })])]), !this.tree && this.page && data.length > 0 && h(_components_Apages__WEBPACK_IMPORTED_MODULE_7__["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()([{
137267
137011
  "attrs": {
137268
- "total": Number(size),
137269
- "pages": pageParams
137012
+ "pages": Object.keys(this.pages).length > 0 ? this.pages : pageParams,
137013
+ "total": Number(size)
137270
137014
  },
137271
137015
  "on": {
137272
137016
  "change": this.change
137273
137017
  }
137274
- })]);
137018
+ }, {
137019
+ "props": this.pages
137020
+ }, {}, {
137021
+ "on": this.pages
137022
+ }]))]);
137275
137023
  }
137276
137024
  });
137277
137025
 
@@ -140461,6 +140209,17 @@ module.exports = function (argument) {
140461
140209
  };
140462
140210
 
140463
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
+
140464
140223
  /***/ }),
140465
140224
 
140466
140225
  /***/ "c363":
@@ -148783,7 +148542,7 @@ module.exports = _default;
148783
148542
  // ESM COMPAT FLAG
148784
148543
  __webpack_require__.r(__webpack_exports__);
148785
148544
 
148786
- // 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&
148787
148546
  var render = function render() {
148788
148547
  var _vm = this,
148789
148548
  _c = _vm._self._c;
@@ -148861,7 +148620,7 @@ var render = function render() {
148861
148620
  };
148862
148621
  var staticRenderFns = [];
148863
148622
 
148864
- // 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&
148865
148624
 
148866
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&
148867
148626
  /* harmony default export */ var Atreevue_type_script_lang_js_ = ({
@@ -148987,7 +148746,9 @@ var staticRenderFns = [];
148987
148746
  if (this.horizontal) return h("span", {
148988
148747
  "class": children && children.length > 0 || type && type != 2 ? '' : 'last-leaf'
148989
148748
  }, [name]);
148990
- return h("span", [name]);
148749
+ return h("span", {
148750
+ "class": "a-tree-item-label"
148751
+ }, [name]);
148991
148752
  },
148992
148753
  create() {
148993
148754
  this.checkedKeys = this.defaultCheckedKeys.filter(a => a != 0);
@@ -149012,8 +148773,10 @@ var staticRenderFns = [];
149012
148773
  this.checkedRows = this.$refs['aTree'].getCheckedNodes();
149013
148774
  this.checkedKeys = this.$refs['aTree'].getCheckedKeys();
149014
148775
  this.halfCheckedKeys = this.$refs['aTree'].getHalfCheckedKeys();
149015
- this.$emit('check', [...this.checkedKeys, ...this.halfCheckedKeys]);
149016
- 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);
149017
148780
  },
149018
148781
  nodeClick(e) {
149019
148782
  this.selectedRow = e;
@@ -149034,8 +148797,8 @@ var staticRenderFns = [];
149034
148797
  });
149035
148798
  // CONCATENATED MODULE: ./src/components/Atree/index.vue?vue&type=script&lang=js&
149036
148799
  /* harmony default export */ var components_Atreevue_type_script_lang_js_ = (Atreevue_type_script_lang_js_);
149037
- // EXTERNAL MODULE: ./src/components/Atree/index.vue?vue&type=style&index=0&id=446b4709&prod&scoped=true&lang=css&
149038
- 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");
149039
148802
 
149040
148803
  // EXTERNAL MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/runtime/componentNormalizer.js
149041
148804
  var componentNormalizer = __webpack_require__("e607");
@@ -149055,7 +148818,7 @@ var component = Object(componentNormalizer["a" /* default */])(
149055
148818
  staticRenderFns,
149056
148819
  false,
149057
148820
  null,
149058
- "446b4709",
148821
+ "47c24b82",
149059
148822
  null
149060
148823
 
149061
148824
  )
@@ -152090,6 +151853,154 @@ module.exports = _default;
152090
151853
 
152091
151854
  /***/ }),
152092
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
+
152093
152004
  /***/ "d9af":
152094
152005
  /***/ (function(module, exports, __webpack_require__) {
152095
152006
 
@@ -155003,7 +154914,6 @@ __webpack_require__.r(__webpack_exports__);
155003
154914
  },
155004
154915
  change(content) {
155005
154916
  this.content = content;
155006
- console.log(this.content);
155007
154917
  this.$nextTick(() => this.$emit('input', this.content));
155008
154918
  }
155009
154919
  },
@@ -156950,6 +156860,13 @@ module.exports = _default;
156950
156860
 
156951
156861
  /***/ }),
156952
156862
 
156863
+ /***/ "de00":
156864
+ /***/ (function(module, exports, __webpack_require__) {
156865
+
156866
+ // extracted by mini-css-extract-plugin
156867
+
156868
+ /***/ }),
156869
+
156953
156870
  /***/ "de10":
156954
156871
  /***/ (function(module, exports, __webpack_require__) {
156955
156872
 
@@ -158109,6 +158026,109 @@ module.exports = _default;
158109
158026
 
158110
158027
  /***/ }),
158111
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
+
158112
158132
  /***/ "e509":
158113
158133
  /***/ (function(module, exports, __webpack_require__) {
158114
158134
 
@@ -159124,34 +159144,22 @@ module.exports = _default;
159124
159144
 
159125
159145
  "use strict";
159126
159146
  __webpack_require__.r(__webpack_exports__);
159127
- /* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("be09");
159128
- /* 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__);
159129
- /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("d8af");
159130
- /* 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
+
159131
159155
 
159132
159156
 
159133
159157
  /* harmony default export */ __webpack_exports__["default"] = ({
159134
159158
  name: 'Adialog',
159135
159159
  props: {
159136
- title: {
159137
- type: String,
159138
- default: () => '编辑'
159139
- },
159140
- width: {
159141
- type: String,
159142
- default: () => '600px'
159143
- },
159144
159160
  check: {
159145
159161
  type: Boolean,
159146
- default: () => true
159147
- },
159148
- padding: {
159149
- type: String,
159150
- default: () => '16px'
159151
- },
159152
- height: {
159153
- type: String,
159154
- default: () => '72vh'
159162
+ default: () => false
159155
159163
  },
159156
159164
  loading: {
159157
159165
  type: Boolean,
@@ -159190,9 +159198,6 @@ __webpack_require__.r(__webpack_exports__);
159190
159198
  default: () => '取消'
159191
159199
  }
159192
159200
  },
159193
- destroyed() {
159194
- this.format = null;
159195
- },
159196
159201
  methods: {
159197
159202
  format() {
159198
159203
  if (this.check == false) return true;
@@ -159236,6 +159241,13 @@ __webpack_require__.r(__webpack_exports__);
159236
159241
  render() {
159237
159242
  const h = arguments[0];
159238
159243
  const {
159244
+ title = '编辑',
159245
+ width = '600px',
159246
+ padding = '16px',
159247
+ height = 'auto',
159248
+ maxHeight = '64vh',
159249
+ style = {},
159250
+ action = [],
159239
159251
  ...props
159240
159252
  } = this.$attrs;
159241
159253
  const {
@@ -159251,32 +159263,37 @@ __webpack_require__.r(__webpack_exports__);
159251
159263
  name: "loading",
159252
159264
  value: this.loading
159253
159265
  }]
159254
- }, [h("el-dialog", {
159266
+ }, [h("el-dialog", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
159255
159267
  "attrs": {
159256
- "title": this.title,
159257
- "width": this.width,
159268
+ "title": title,
159269
+ "width": width,
159258
159270
  "visible": this.visible,
159259
159271
  "lock-scroll": this.lockScroll,
159260
159272
  "destroy-on-close": this.destroyOnClose,
159261
159273
  "close-on-click-modal": this.closeOnClickModal
159262
159274
  },
159263
159275
  "on": {
159264
- "close": close ? () => close() : cancel ? () => cancel() : () => false
159276
+ "close": close ? () => close() : cancel ? () => cancel() : finish ? () => this.finish() : submit ? () => this.submit() : reject ? () => this.reject() : () => false
159265
159277
  },
159266
159278
  "props": {
159267
159279
  ...props
159268
159280
  }
159269
- }, [h("div", {
159281
+ }, {
159282
+ "on": props
159283
+ }]), [h("div", {
159270
159284
  "key": this.visible,
159271
159285
  "class": "a-dialog-body",
159272
159286
  "style": {
159273
- padding: this.padding,
159274
- maxHeight: this.height
159287
+ padding,
159288
+ height,
159289
+ maxHeight,
159290
+ ...style
159275
159291
  }
159276
159292
  }, [this.$slots.default]), h("div", {
159277
- "class": finish || submit || cancel ? 'a-dialog-foot' : 'a-dialog-foot custom'
159278
- }, [(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", {
159279
159295
  "attrs": {
159296
+ "disabled": this.loading,
159280
159297
  "loading": this.loading,
159281
159298
  "type": "success"
159282
159299
  },
@@ -159285,6 +159302,7 @@ __webpack_require__.r(__webpack_exports__);
159285
159302
  }
159286
159303
  }, [this.finishText]), submit && h("el-button", {
159287
159304
  "attrs": {
159305
+ "disabled": this.loading,
159288
159306
  "loading": this.loading,
159289
159307
  "type": "primary"
159290
159308
  },
@@ -159293,6 +159311,7 @@ __webpack_require__.r(__webpack_exports__);
159293
159311
  }
159294
159312
  }, [this.submitText]), reject && h("el-button", {
159295
159313
  "attrs": {
159314
+ "disabled": this.loading,
159296
159315
  "loading": this.loading,
159297
159316
  "type": "danger"
159298
159317
  },
@@ -159306,7 +159325,15 @@ __webpack_require__.r(__webpack_exports__);
159306
159325
  "on": {
159307
159326
  "click": this.cancel
159308
159327
  }
159309
- }, [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 || '']))])])])]);
159310
159337
  }
159311
159338
  });
159312
159339
 
@@ -160521,10 +160548,10 @@ __webpack_require__.r(__webpack_exports__);
160521
160548
  },
160522
160549
  data() {
160523
160550
  const {
160524
- roles
160551
+ routes
160525
160552
  } = this.$store.state;
160526
160553
  return {
160527
- roles
160554
+ routes
160528
160555
  };
160529
160556
  },
160530
160557
  methods: {
@@ -160537,8 +160564,8 @@ __webpack_require__.r(__webpack_exports__);
160537
160564
  const text = a.text || a.label || a.title;
160538
160565
  return text != '' && (a.id ? h(_components_Aauthority__WEBPACK_IMPORTED_MODULE_0__["default"], {
160539
160566
  "attrs": {
160540
- "role": a.id,
160541
- "roles": this.roles
160567
+ "routes": a.id,
160568
+ "routes": this.routes
160542
160569
  }
160543
160570
  }, [this.format(a, b)]) : this.format(a, b));
160544
160571
  }), this.$slots.default]);
@@ -160682,13 +160709,6 @@ __webpack_require__.r(__webpack_exports__);
160682
160709
 
160683
160710
  /***/ }),
160684
160711
 
160685
- /***/ "e95a":
160686
- /***/ (function(module, exports, __webpack_require__) {
160687
-
160688
- // extracted by mini-css-extract-plugin
160689
-
160690
- /***/ }),
160691
-
160692
160712
  /***/ "e9e0":
160693
160713
  /***/ (function(module, exports, __webpack_require__) {
160694
160714
 
@@ -164824,7 +164844,6 @@ var map = {
164824
164844
  "./Atree/index.vue": "ce34",
164825
164845
  "./Aupload/File/index.vue": "3a9a",
164826
164846
  "./Aupload/Icon/index.vue": "7d0e",
164827
- "./Aupload/index.vue": "a61e",
164828
164847
  "./Bdialog/index.vue": "a6bc",
164829
164848
  "./Bplayer/index.vue": "2c3e",
164830
164849
  "./Btree/index.vue": "9d92"
@@ -167550,6 +167569,141 @@ __webpack_require__.r(__webpack_exports__);
167550
167569
 
167551
167570
  /***/ }),
167552
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
+
167553
167707
  /***/ "fb4f":
167554
167708
  /***/ (function(module, exports, __webpack_require__) {
167555
167709