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.
- package/dist/index.common.js +1136 -982
- package/dist/index.css +1 -1
- package/dist/index.umd.js +1136 -982
- package/dist/index.umd.min.js +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -6858,17 +6858,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6858
6858
|
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
6859
6859
|
name: 'Aauthority',
|
|
6860
6860
|
props: {
|
|
6861
|
-
|
|
6861
|
+
route: {
|
|
6862
6862
|
type: String,
|
|
6863
6863
|
default: () => ''
|
|
6864
6864
|
},
|
|
6865
|
-
|
|
6865
|
+
routes: {
|
|
6866
6866
|
type: String,
|
|
6867
6867
|
default: () => ''
|
|
6868
6868
|
}
|
|
6869
6869
|
},
|
|
6870
6870
|
render() {
|
|
6871
|
-
return this.
|
|
6871
|
+
return this.routes.includes(this.route) && this.$slots.default;
|
|
6872
6872
|
}
|
|
6873
6873
|
});
|
|
6874
6874
|
|
|
@@ -13084,6 +13084,7 @@ var map = {
|
|
|
13084
13084
|
"./AformItem": "2234",
|
|
13085
13085
|
"./AformItem/": "2234",
|
|
13086
13086
|
"./AformItem/index": "2234",
|
|
13087
|
+
"./AformItem/index.css": "de00",
|
|
13087
13088
|
"./AformItem/index.js": "2234",
|
|
13088
13089
|
"./AiconSelect": "db3d",
|
|
13089
13090
|
"./AiconSelect/": "db3d",
|
|
@@ -13111,6 +13112,11 @@ var map = {
|
|
|
13111
13112
|
"./Apages/index": "1d0c",
|
|
13112
13113
|
"./Apages/index.css": "18da",
|
|
13113
13114
|
"./Apages/index.js": "1d0c",
|
|
13115
|
+
"./ApasswordInput": "e4ec",
|
|
13116
|
+
"./ApasswordInput/": "e4ec",
|
|
13117
|
+
"./ApasswordInput/index": "e4ec",
|
|
13118
|
+
"./ApasswordInput/index.css": "ba86",
|
|
13119
|
+
"./ApasswordInput/index.js": "e4ec",
|
|
13114
13120
|
"./Aplayer": "1c4e",
|
|
13115
13121
|
"./Aplayer/": "1c4e",
|
|
13116
13122
|
"./Aplayer/index": "1c4e",
|
|
@@ -13205,8 +13211,8 @@ var map = {
|
|
|
13205
13211
|
"./Atree/index": "ce34",
|
|
13206
13212
|
"./Atree/index.css": "158a",
|
|
13207
13213
|
"./Atree/index.vue": "ce34",
|
|
13208
|
-
"./Aupload": "
|
|
13209
|
-
"./Aupload/": "
|
|
13214
|
+
"./Aupload": "fafd",
|
|
13215
|
+
"./Aupload/": "fafd",
|
|
13210
13216
|
"./Aupload/File": "3a9a",
|
|
13211
13217
|
"./Aupload/File/": "3a9a",
|
|
13212
13218
|
"./Aupload/File/index": "3a9a",
|
|
@@ -13217,11 +13223,12 @@ var map = {
|
|
|
13217
13223
|
"./Aupload/Icon/index": "7d0e",
|
|
13218
13224
|
"./Aupload/Icon/index.css": "6c6f",
|
|
13219
13225
|
"./Aupload/Icon/index.vue": "7d0e",
|
|
13220
|
-
"./Aupload/index": "
|
|
13226
|
+
"./Aupload/index": "fafd",
|
|
13221
13227
|
"./Aupload/index.bak": "5b90",
|
|
13222
13228
|
"./Aupload/index.bak.js": "5b90",
|
|
13229
|
+
"./Aupload/index.bak.vue": "d98d",
|
|
13223
13230
|
"./Aupload/index.css": "0673",
|
|
13224
|
-
"./Aupload/index.
|
|
13231
|
+
"./Aupload/index.js": "fafd",
|
|
13225
13232
|
"./AwebSocket": "5209",
|
|
13226
13233
|
"./AwebSocket/": "5209",
|
|
13227
13234
|
"./AwebSocket/index": "5209",
|
|
@@ -13483,6 +13490,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13483
13490
|
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
13484
13491
|
name: 'AfSearch',
|
|
13485
13492
|
props: {
|
|
13493
|
+
id: {
|
|
13494
|
+
type: String,
|
|
13495
|
+
default: () => `a-f-search-id-${Math.random()}`
|
|
13496
|
+
},
|
|
13486
13497
|
value: {
|
|
13487
13498
|
type: Object,
|
|
13488
13499
|
default: () => ({})
|
|
@@ -13501,7 +13512,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13501
13512
|
},
|
|
13502
13513
|
gutter: {
|
|
13503
13514
|
type: String,
|
|
13504
|
-
default: () => '
|
|
13515
|
+
default: () => '16'
|
|
13505
13516
|
},
|
|
13506
13517
|
config: {
|
|
13507
13518
|
type: Object,
|
|
@@ -13511,6 +13522,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13511
13522
|
type: Boolean,
|
|
13512
13523
|
default: () => true
|
|
13513
13524
|
},
|
|
13525
|
+
prompt: {
|
|
13526
|
+
type: Boolean,
|
|
13527
|
+
default: () => false
|
|
13528
|
+
},
|
|
13514
13529
|
disabled: {
|
|
13515
13530
|
type: Boolean,
|
|
13516
13531
|
default: () => false
|
|
@@ -13529,11 +13544,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13529
13544
|
this.relate(this.config);
|
|
13530
13545
|
}
|
|
13531
13546
|
},
|
|
13532
|
-
created() {
|
|
13533
|
-
this.relate(this.config);
|
|
13534
|
-
},
|
|
13535
13547
|
mounted() {
|
|
13536
13548
|
this.resize();
|
|
13549
|
+
this.relate(this.config);
|
|
13537
13550
|
},
|
|
13538
13551
|
methods: {
|
|
13539
13552
|
input() {
|
|
@@ -13542,6 +13555,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13542
13555
|
change() {
|
|
13543
13556
|
this.$emit('change', this.filter(), this.form, this.option);
|
|
13544
13557
|
},
|
|
13558
|
+
resize() {
|
|
13559
|
+
if (this.inline == false) {
|
|
13560
|
+
if (Object.keys(this.config).length > 0) {
|
|
13561
|
+
let rows = Math.ceil(Object.keys(this.config).length / this.cols);
|
|
13562
|
+
this.height = this.$el.clientHeight * (rows - 1);
|
|
13563
|
+
}
|
|
13564
|
+
}
|
|
13565
|
+
},
|
|
13545
13566
|
relate(config = {}) {
|
|
13546
13567
|
Object.keys(config).forEach(a => {
|
|
13547
13568
|
let {
|
|
@@ -13554,9 +13575,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13554
13575
|
r.default && (this.form[a] = r.default || '');
|
|
13555
13576
|
}
|
|
13556
13577
|
});
|
|
13557
|
-
this.$nextTick(() => {
|
|
13558
|
-
Object.keys(this.value).forEach(a => typeof this.value[a] == 'number' && (this.form[a] = `${this.value[a]}`));
|
|
13559
|
-
});
|
|
13560
13578
|
},
|
|
13561
13579
|
create(a, b) {
|
|
13562
13580
|
const h = this.$createElement;
|
|
@@ -13570,7 +13588,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13570
13588
|
message: `${label}不能为空`
|
|
13571
13589
|
}];
|
|
13572
13590
|
let valid = r.rule ? r.rule : r.must || this.must ? judge : [];
|
|
13573
|
-
let
|
|
13591
|
+
let limit = [{
|
|
13592
|
+
min: r.minLength,
|
|
13593
|
+
message: `最少${r.min}个字符`
|
|
13594
|
+
}, {
|
|
13595
|
+
min: r.maxLength,
|
|
13596
|
+
message: `最多${r.min}个字符`
|
|
13597
|
+
}];
|
|
13598
|
+
let rules = this.disabled || r.disabled ? [] : (r.must || this.must) && r.rule ? [...judge, ...limit, ...r.rule] : valid;
|
|
13574
13599
|
let props = {
|
|
13575
13600
|
name: a,
|
|
13576
13601
|
prop: a,
|
|
@@ -13625,9 +13650,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13625
13650
|
let {
|
|
13626
13651
|
...r
|
|
13627
13652
|
} = child[c];
|
|
13653
|
+
let space = a.gutter ? a.gutter / 2 : this.gutter / 4;
|
|
13654
|
+
let style = {
|
|
13655
|
+
padding: `0 ${space}px`
|
|
13656
|
+
};
|
|
13657
|
+
r.type = r.type ? r.type : a.type;
|
|
13628
13658
|
if (r.span) {
|
|
13629
13659
|
return h("el-col", {
|
|
13630
13660
|
"key": d,
|
|
13661
|
+
"style": style,
|
|
13631
13662
|
"attrs": {
|
|
13632
13663
|
"span": Number(r.span)
|
|
13633
13664
|
}
|
|
@@ -13637,13 +13668,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13637
13668
|
return h("el-col", {
|
|
13638
13669
|
"key": d,
|
|
13639
13670
|
"style": {
|
|
13640
|
-
width
|
|
13671
|
+
width,
|
|
13672
|
+
...style
|
|
13641
13673
|
}
|
|
13642
13674
|
}, [this.format(r, c)]);
|
|
13643
13675
|
}
|
|
13644
13676
|
});
|
|
13645
13677
|
} else {
|
|
13646
13678
|
let config = {
|
|
13679
|
+
disabled: a.disabled || this.disabled,
|
|
13647
13680
|
change: () => this.change(),
|
|
13648
13681
|
form: this.form,
|
|
13649
13682
|
field: b,
|
|
@@ -13659,12 +13692,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13659
13692
|
});
|
|
13660
13693
|
}
|
|
13661
13694
|
},
|
|
13662
|
-
resize() {
|
|
13663
|
-
if (Object.keys(this.config).length > 0) {
|
|
13664
|
-
let rows = Math.ceil(Object.keys(this.config).length / this.cols);
|
|
13665
|
-
this.height = this.$el.clientHeight * (rows - 1);
|
|
13666
|
-
}
|
|
13667
|
-
},
|
|
13668
13695
|
filter() {
|
|
13669
13696
|
let data = {};
|
|
13670
13697
|
Object.keys(this.form).length > 0 && Object.keys(this.form).forEach(a => {
|
|
@@ -13672,14 +13699,19 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13672
13699
|
let {
|
|
13673
13700
|
...r
|
|
13674
13701
|
} = this.option[a];
|
|
13675
|
-
|
|
13676
|
-
|
|
13677
|
-
|
|
13678
|
-
|
|
13679
|
-
|
|
13680
|
-
if (r.
|
|
13681
|
-
if (
|
|
13682
|
-
|
|
13702
|
+
let ignore = r.ignore || r.empty || r.blank || r.omit;
|
|
13703
|
+
if (!ignore) {
|
|
13704
|
+
if (r.split && r.split.length > 0) {
|
|
13705
|
+
r.split.forEach((b, c) => data[b] = this.form[a][c]);
|
|
13706
|
+
} else {
|
|
13707
|
+
if (r.join && r.join != '') data[a] = this.form[a].join(r.join);
|
|
13708
|
+
if (r.multiple && this.form[a] != '') data[a] = this.form[a].join();
|
|
13709
|
+
if (r.like) {
|
|
13710
|
+
if (r.like == 'L' || r.like == 'l' || r.like == 'left' || r.like == 'Left' || r.like == 'LEFT') data[a] = `%${this.form[a]}`;
|
|
13711
|
+
if (r.like == 'R' || r.like == 'r' || r.like == 'right' || r.like == 'Right' || r.like == 'RIGHT') data[a] = `${this.form[a]}%`;
|
|
13712
|
+
if (this.form[a] && this.form[a].includes(' 00:00:00')) data[a] = `%${this.form[a].replace(' 00:00:00', '')}%`;else data[a] = `%${this.form[a]}%`;
|
|
13713
|
+
} else data[a] = this.form[a];
|
|
13714
|
+
}
|
|
13683
13715
|
}
|
|
13684
13716
|
}
|
|
13685
13717
|
});
|
|
@@ -13700,7 +13732,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13700
13732
|
page: 1
|
|
13701
13733
|
});
|
|
13702
13734
|
}
|
|
13703
|
-
this.$refs.form.validate(valid
|
|
13735
|
+
this.$refs.form.validate((valid, items) => {
|
|
13736
|
+
if (valid) {
|
|
13737
|
+
this.$emit('submit', this.filter(), this.form, this.option);
|
|
13738
|
+
} else if (this.prompt) {
|
|
13739
|
+
Object.keys(items).forEach(a => items[a].forEach(b => this.$message.error(b.message)));
|
|
13740
|
+
}
|
|
13741
|
+
});
|
|
13704
13742
|
},
|
|
13705
13743
|
cancel() {
|
|
13706
13744
|
this.$refs.form && this.$refs.form.resetFields && this.$refs.form.resetFields();
|
|
@@ -13751,7 +13789,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13751
13789
|
inline: this.inline,
|
|
13752
13790
|
labelWidth,
|
|
13753
13791
|
labelPosition,
|
|
13754
|
-
style,
|
|
13755
13792
|
...rest
|
|
13756
13793
|
};
|
|
13757
13794
|
return h("div", {
|
|
@@ -13761,13 +13798,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13761
13798
|
padding
|
|
13762
13799
|
}
|
|
13763
13800
|
}, [h("el-form", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
13764
|
-
"ref": "form"
|
|
13801
|
+
"ref": "form",
|
|
13802
|
+
"attrs": {
|
|
13803
|
+
"id": this.id
|
|
13804
|
+
},
|
|
13805
|
+
"style": style
|
|
13765
13806
|
}, {
|
|
13766
13807
|
"props": {
|
|
13767
13808
|
model: this.form,
|
|
13768
13809
|
...props
|
|
13769
13810
|
}
|
|
13770
|
-
}]), [this.inline ? Object.keys(this.config).map((a, b) => this.create(a, b)) : h("div", {
|
|
13811
|
+
}]), [this.inline ? Object.keys(this.config).map((a, b) => this.config[a] && this.create(a, b)) : h("div", {
|
|
13771
13812
|
"class": "column"
|
|
13772
13813
|
}, [h("el-row", {
|
|
13773
13814
|
"attrs": {
|
|
@@ -13782,16 +13823,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13782
13823
|
"style": {
|
|
13783
13824
|
height: this.opened ? `${this.height}px` : '0'
|
|
13784
13825
|
}
|
|
13785
|
-
}, [Object.keys(this.config).map((a, b) => b > this.cols - 1 && this.create(a, b))])]), (submit || cancel || action.length > 0) && h("
|
|
13826
|
+
}, [Object.keys(this.config).map((a, b) => b > this.cols - 1 && this.create(a, b))])]), (submit || cancel || action.length > 0) && h("div", {
|
|
13827
|
+
"class": `action ${this.inline && Object.keys(this.config).length % this.cols == 0 ? 'anonymous' : ''}`
|
|
13828
|
+
}, [h("el-form-item", {
|
|
13786
13829
|
"attrs": {
|
|
13787
13830
|
"name": "action",
|
|
13788
|
-
"label": "action"
|
|
13831
|
+
"label": "action",
|
|
13832
|
+
"label-width": "0"
|
|
13789
13833
|
},
|
|
13790
|
-
"class": "action",
|
|
13791
13834
|
"style": {
|
|
13792
|
-
paddingLeft: `${this.gutter}px`
|
|
13835
|
+
paddingLeft: `${this.inline ? this.gutter / 2 : this.gutter}px`
|
|
13793
13836
|
}
|
|
13794
|
-
}, [Object.keys(this.config).length > this.cols &&
|
|
13837
|
+
}, [!this.inline && Object.keys(this.config).length > this.cols && h("el-button", {
|
|
13795
13838
|
"attrs": {
|
|
13796
13839
|
"disabled": loading,
|
|
13797
13840
|
"type": "text"
|
|
@@ -13822,8 +13865,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13822
13865
|
"key": b,
|
|
13823
13866
|
"attrs": {
|
|
13824
13867
|
"disabled": loading
|
|
13868
|
+
},
|
|
13869
|
+
"on": {
|
|
13870
|
+
"click": e => a.click(this.filter(), this.form, this.option, e)
|
|
13825
13871
|
}
|
|
13826
|
-
}, a]), [a.label || a.title || a.text || '']))])])]);
|
|
13872
|
+
}, a]), [a.label || a.title || a.text || '']))])])])]);
|
|
13827
13873
|
}
|
|
13828
13874
|
});
|
|
13829
13875
|
|
|
@@ -15674,6 +15720,17 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
15674
15720
|
|
|
15675
15721
|
/* harmony default export */ var Aplayer = __webpack_exports__["default"] = (component.exports);
|
|
15676
15722
|
|
|
15723
|
+
/***/ }),
|
|
15724
|
+
|
|
15725
|
+
/***/ "1c70":
|
|
15726
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
15727
|
+
|
|
15728
|
+
"use strict";
|
|
15729
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_15_10_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_15_10_1_vue_loader_lib_index_js_vue_loader_options_index_bak_vue_vue_type_style_index_0_id_6b1bf5c4_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("b1f4");
|
|
15730
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_15_10_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_15_10_1_vue_loader_lib_index_js_vue_loader_options_index_bak_vue_vue_type_style_index_0_id_6b1bf5c4_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_15_10_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_15_10_1_vue_loader_lib_index_js_vue_loader_options_index_bak_vue_vue_type_style_index_0_id_6b1bf5c4_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
15731
|
+
/* unused harmony reexport * */
|
|
15732
|
+
|
|
15733
|
+
|
|
15677
15734
|
/***/ }),
|
|
15678
15735
|
|
|
15679
15736
|
/***/ "1c80":
|
|
@@ -16260,12 +16317,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16260
16317
|
}
|
|
16261
16318
|
},
|
|
16262
16319
|
methods: {
|
|
16263
|
-
|
|
16320
|
+
changePage(page) {
|
|
16264
16321
|
this.config.page = page;
|
|
16265
16322
|
this.$emit('change', this.config);
|
|
16266
16323
|
this.$emit('changePage', this.config);
|
|
16267
16324
|
},
|
|
16268
|
-
|
|
16325
|
+
changeSize(size) {
|
|
16269
16326
|
this.config.size = size;
|
|
16270
16327
|
this.$emit('change', this.config);
|
|
16271
16328
|
this.$emit('changeSize', this.config);
|
|
@@ -16291,8 +16348,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16291
16348
|
"background": this.background
|
|
16292
16349
|
},
|
|
16293
16350
|
"on": {
|
|
16294
|
-
"current-change": this.
|
|
16295
|
-
"size-change": this.
|
|
16351
|
+
"current-change": this.changePage,
|
|
16352
|
+
"size-change": this.changeSize
|
|
16296
16353
|
},
|
|
16297
16354
|
"props": {
|
|
16298
16355
|
...props
|
|
@@ -16903,6 +16960,13 @@ module.exports = _default;
|
|
|
16903
16960
|
|
|
16904
16961
|
/***/ }),
|
|
16905
16962
|
|
|
16963
|
+
/***/ "1eae":
|
|
16964
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
16965
|
+
|
|
16966
|
+
// extracted by mini-css-extract-plugin
|
|
16967
|
+
|
|
16968
|
+
/***/ }),
|
|
16969
|
+
|
|
16906
16970
|
/***/ "1f03":
|
|
16907
16971
|
/***/ (function(module, exports, __webpack_require__) {
|
|
16908
16972
|
|
|
@@ -18778,8 +18842,16 @@ module.exports = _default;
|
|
|
18778
18842
|
__webpack_require__.r(__webpack_exports__);
|
|
18779
18843
|
/* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6aaa");
|
|
18780
18844
|
/* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
|
|
18781
|
-
/* harmony import */ var
|
|
18782
|
-
/* harmony import */ var
|
|
18845
|
+
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("be09");
|
|
18846
|
+
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
18847
|
+
/* harmony import */ var _components_AiconSelect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("db3d");
|
|
18848
|
+
/* harmony import */ var _components_Aupload_Icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("7d0e");
|
|
18849
|
+
/* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("de00");
|
|
18850
|
+
/* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_4__);
|
|
18851
|
+
|
|
18852
|
+
|
|
18853
|
+
|
|
18854
|
+
|
|
18783
18855
|
|
|
18784
18856
|
|
|
18785
18857
|
|
|
@@ -18805,8 +18877,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18805
18877
|
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
18806
18878
|
name: 'AformItem',
|
|
18807
18879
|
components: {
|
|
18808
|
-
AiconSelect:
|
|
18809
|
-
Aupload:
|
|
18880
|
+
AiconSelect: _components_AiconSelect__WEBPACK_IMPORTED_MODULE_2__["default"],
|
|
18881
|
+
Aupload: _components_Aupload_Icon__WEBPACK_IMPORTED_MODULE_3__["default"]
|
|
18810
18882
|
},
|
|
18811
18883
|
props: {
|
|
18812
18884
|
config: {
|
|
@@ -18816,46 +18888,55 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18816
18888
|
},
|
|
18817
18889
|
data() {
|
|
18818
18890
|
return {
|
|
18819
|
-
|
|
18891
|
+
checked: false
|
|
18820
18892
|
};
|
|
18821
18893
|
},
|
|
18822
|
-
watch: {
|
|
18823
|
-
config: {
|
|
18824
|
-
immediate: true,
|
|
18825
|
-
handler() {
|
|
18826
|
-
this.update();
|
|
18827
|
-
}
|
|
18828
|
-
}
|
|
18829
|
-
},
|
|
18830
|
-
created() {
|
|
18831
|
-
this.update();
|
|
18832
|
-
},
|
|
18833
18894
|
destroyed() {
|
|
18834
|
-
this.
|
|
18895
|
+
this.choose = null;
|
|
18835
18896
|
this.change = null;
|
|
18836
18897
|
this.filter = null;
|
|
18837
18898
|
this.create = null;
|
|
18838
18899
|
},
|
|
18839
18900
|
methods: {
|
|
18840
|
-
|
|
18841
|
-
|
|
18901
|
+
choose(a) {
|
|
18902
|
+
let {
|
|
18903
|
+
form,
|
|
18904
|
+
field,
|
|
18905
|
+
data = [],
|
|
18906
|
+
...r
|
|
18907
|
+
} = this.config;
|
|
18908
|
+
let list = [];
|
|
18909
|
+
if (a) {
|
|
18910
|
+
data.forEach(a => list.push(`${a.value || a.code || a.id}`));
|
|
18911
|
+
form[field] = list;
|
|
18912
|
+
this.change(list);
|
|
18913
|
+
} else form[field] = undefined;
|
|
18914
|
+
r.choose && r.choose(a, form[field]);
|
|
18842
18915
|
},
|
|
18843
18916
|
change(a) {
|
|
18844
|
-
|
|
18845
|
-
|
|
18917
|
+
let {
|
|
18918
|
+
form,
|
|
18919
|
+
field,
|
|
18920
|
+
data = [],
|
|
18921
|
+
...r
|
|
18846
18922
|
} = this.config;
|
|
18847
|
-
|
|
18848
|
-
|
|
18849
|
-
|
|
18850
|
-
|
|
18923
|
+
if (data && data.length > 0) {
|
|
18924
|
+
if (a.length == data.length) this.checked = true;else this.checked = false;
|
|
18925
|
+
this.$forceUpdate();
|
|
18926
|
+
}
|
|
18927
|
+
r.change && r.change(a, this.filter(a, data));
|
|
18851
18928
|
},
|
|
18852
|
-
filter(
|
|
18853
|
-
|
|
18854
|
-
|
|
18855
|
-
|
|
18856
|
-
|
|
18857
|
-
|
|
18858
|
-
|
|
18929
|
+
filter(value = '', array = []) {
|
|
18930
|
+
if (value != '') {
|
|
18931
|
+
if (array && array.length > 0) {
|
|
18932
|
+
let data = {};
|
|
18933
|
+
array.forEach(a => {
|
|
18934
|
+
let index = a.value || a.code || a.id;
|
|
18935
|
+
if (value == index) data = a;
|
|
18936
|
+
});
|
|
18937
|
+
return data;
|
|
18938
|
+
}
|
|
18939
|
+
}
|
|
18859
18940
|
},
|
|
18860
18941
|
create({
|
|
18861
18942
|
form,
|
|
@@ -18863,29 +18944,63 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18863
18944
|
...r
|
|
18864
18945
|
}) {
|
|
18865
18946
|
const h = this.$createElement;
|
|
18866
|
-
|
|
18947
|
+
let on = {
|
|
18948
|
+
input: a => this.$emit('input', a),
|
|
18949
|
+
...r,
|
|
18950
|
+
change: a => this.change(a)
|
|
18951
|
+
};
|
|
18952
|
+
let style = {
|
|
18867
18953
|
width: '100%',
|
|
18868
18954
|
...r.style
|
|
18869
18955
|
};
|
|
18870
|
-
|
|
18871
|
-
|
|
18872
|
-
|
|
18956
|
+
let label = r.text || r.label || r.title || '';
|
|
18957
|
+
let props = {
|
|
18958
|
+
clearable: true,
|
|
18959
|
+
filterable: true,
|
|
18960
|
+
collapseTags: true,
|
|
18961
|
+
...r
|
|
18962
|
+
};
|
|
18963
|
+
let values = (a = {}) => typeof a == 'string' ? a : `${a.value || a.code || a.id}`;
|
|
18964
|
+
let labels = (a = {}) => typeof a == 'string' ? a : a.label || a.title || a.text || a.name;
|
|
18873
18965
|
if (r.render) return r.render(form, this.config);
|
|
18874
18966
|
switch (r.type) {
|
|
18875
|
-
case '
|
|
18967
|
+
case 'text':
|
|
18876
18968
|
return h("el-input", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
18969
|
+
"attrs": {
|
|
18970
|
+
"maxlength": r.maxlength,
|
|
18971
|
+
"placeholder": r.placeholder || `请输入${label}`
|
|
18972
|
+
},
|
|
18877
18973
|
"on": {
|
|
18878
|
-
|
|
18879
|
-
|
|
18974
|
+
...on
|
|
18975
|
+
}
|
|
18976
|
+
}, {
|
|
18977
|
+
style
|
|
18978
|
+
}, {
|
|
18979
|
+
"props": {
|
|
18980
|
+
...props
|
|
18880
18981
|
},
|
|
18982
|
+
"model": {
|
|
18983
|
+
value: form[field],
|
|
18984
|
+
callback: $$v => {
|
|
18985
|
+
this.$set(form, field, $$v);
|
|
18986
|
+
}
|
|
18987
|
+
}
|
|
18988
|
+
}]));
|
|
18989
|
+
case 'input':
|
|
18990
|
+
return h("el-input", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
18881
18991
|
"attrs": {
|
|
18882
|
-
"
|
|
18992
|
+
"maxlength": r.maxlength,
|
|
18883
18993
|
"placeholder": r.placeholder || `请输入${label}`
|
|
18884
18994
|
},
|
|
18885
|
-
"
|
|
18995
|
+
"on": {
|
|
18996
|
+
...on
|
|
18997
|
+
}
|
|
18886
18998
|
}, {
|
|
18887
|
-
|
|
18999
|
+
style
|
|
18888
19000
|
}, {
|
|
19001
|
+
"props": {
|
|
19002
|
+
...props
|
|
19003
|
+
},
|
|
18889
19004
|
"model": {
|
|
18890
19005
|
value: form[field],
|
|
18891
19006
|
callback: $$v => {
|
|
@@ -18893,21 +19008,46 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18893
19008
|
}
|
|
18894
19009
|
}
|
|
18895
19010
|
}]));
|
|
18896
|
-
case '
|
|
19011
|
+
case 'textarea':
|
|
18897
19012
|
return h("el-input", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
19013
|
+
"attrs": {
|
|
19014
|
+
"maxlength": r.maxlength,
|
|
19015
|
+
"rows": "6",
|
|
19016
|
+
"resize": "none",
|
|
19017
|
+
"placeholder": r.placeholder || `请输入${label}`
|
|
19018
|
+
},
|
|
18898
19019
|
"on": {
|
|
18899
|
-
|
|
18900
|
-
|
|
19020
|
+
...on
|
|
19021
|
+
}
|
|
19022
|
+
}, {
|
|
19023
|
+
style
|
|
19024
|
+
}, {
|
|
19025
|
+
"props": {
|
|
19026
|
+
...props
|
|
18901
19027
|
},
|
|
19028
|
+
"model": {
|
|
19029
|
+
value: form[field],
|
|
19030
|
+
callback: $$v => {
|
|
19031
|
+
this.$set(form, field, $$v);
|
|
19032
|
+
}
|
|
19033
|
+
}
|
|
19034
|
+
}]));
|
|
19035
|
+
case 'password':
|
|
19036
|
+
return h("el-input", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
18902
19037
|
"attrs": {
|
|
18903
|
-
"
|
|
19038
|
+
"maxlength": r.maxlength,
|
|
18904
19039
|
"placeholder": r.placeholder || `请输入${label}`,
|
|
18905
19040
|
"show-password": true
|
|
18906
19041
|
},
|
|
18907
|
-
"
|
|
19042
|
+
"on": {
|
|
19043
|
+
...on
|
|
19044
|
+
}
|
|
18908
19045
|
}, {
|
|
18909
|
-
|
|
19046
|
+
style
|
|
18910
19047
|
}, {
|
|
19048
|
+
"props": {
|
|
19049
|
+
...props
|
|
19050
|
+
},
|
|
18911
19051
|
"model": {
|
|
18912
19052
|
value: form[field],
|
|
18913
19053
|
callback: $$v => {
|
|
@@ -18917,22 +19057,23 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18917
19057
|
}]));
|
|
18918
19058
|
case 'number':
|
|
18919
19059
|
return h("el-input-number", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
18920
|
-
"on": {
|
|
18921
|
-
"input": this.input,
|
|
18922
|
-
"change": this.change
|
|
18923
|
-
},
|
|
18924
19060
|
"attrs": {
|
|
18925
|
-
"clearable": true,
|
|
18926
19061
|
"min": 0,
|
|
18927
19062
|
"max": 100000000,
|
|
19063
|
+
"maxlength": r.maxlength,
|
|
18928
19064
|
"controls": false,
|
|
18929
19065
|
"controls-position": "right",
|
|
18930
19066
|
"placeholder": r.placeholder || `请输入${label}`
|
|
18931
19067
|
},
|
|
18932
|
-
"
|
|
19068
|
+
"on": {
|
|
19069
|
+
...on
|
|
19070
|
+
}
|
|
18933
19071
|
}, {
|
|
18934
|
-
|
|
19072
|
+
style
|
|
18935
19073
|
}, {
|
|
19074
|
+
"props": {
|
|
19075
|
+
...props
|
|
19076
|
+
},
|
|
18936
19077
|
"model": {
|
|
18937
19078
|
value: form[field],
|
|
18938
19079
|
callback: $$v => {
|
|
@@ -18942,27 +19083,38 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18942
19083
|
}]));
|
|
18943
19084
|
case 'select':
|
|
18944
19085
|
return h("el-select", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
18945
|
-
"on": {
|
|
18946
|
-
"input": this.input,
|
|
18947
|
-
"change": this.change
|
|
18948
|
-
},
|
|
18949
19086
|
"attrs": {
|
|
18950
|
-
"clearable": true,
|
|
18951
|
-
"filterable": true,
|
|
18952
|
-
"collapse-tags": true,
|
|
18953
19087
|
"placeholder": r.placeholder || `请选择${label}`
|
|
18954
19088
|
},
|
|
18955
|
-
"
|
|
19089
|
+
"on": {
|
|
19090
|
+
...on
|
|
19091
|
+
}
|
|
18956
19092
|
}, {
|
|
18957
|
-
|
|
19093
|
+
style
|
|
18958
19094
|
}, {
|
|
19095
|
+
"props": {
|
|
19096
|
+
...props
|
|
19097
|
+
},
|
|
18959
19098
|
"model": {
|
|
18960
19099
|
value: form[field],
|
|
18961
19100
|
callback: $$v => {
|
|
18962
19101
|
this.$set(form, field, $$v);
|
|
18963
19102
|
}
|
|
18964
19103
|
}
|
|
18965
|
-
}]), [r.
|
|
19104
|
+
}]), [r.quick && r.multiple && h("li", {
|
|
19105
|
+
"key": "all",
|
|
19106
|
+
"class": `a-form-item select el-select-dropdown__item ${this.checked ? 'selected' : ''}`
|
|
19107
|
+
}, [h("el-checkbox", {
|
|
19108
|
+
"on": {
|
|
19109
|
+
"change": this.choose
|
|
19110
|
+
},
|
|
19111
|
+
"model": {
|
|
19112
|
+
value: this.checked,
|
|
19113
|
+
callback: $$v => {
|
|
19114
|
+
this.checked = $$v;
|
|
19115
|
+
}
|
|
19116
|
+
}
|
|
19117
|
+
}, ["\u5168\u90E8"])]), r.data && r.data.length > 0 ? r.data.map((a, b) => h("el-option", {
|
|
18966
19118
|
"key": b,
|
|
18967
19119
|
"attrs": {
|
|
18968
19120
|
"label": labels(a),
|
|
@@ -18971,20 +19123,19 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18971
19123
|
})) : []]);
|
|
18972
19124
|
case 'cascader':
|
|
18973
19125
|
return h("el-cascader", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
18974
|
-
"on": {
|
|
18975
|
-
"input": this.input,
|
|
18976
|
-
"change": this.change
|
|
18977
|
-
},
|
|
18978
19126
|
"attrs": {
|
|
18979
19127
|
"options": r.data || [],
|
|
18980
|
-
"clearable": true,
|
|
18981
|
-
"filterable": true,
|
|
18982
19128
|
"placeholder": r.placeholder || `请选择${label}`
|
|
18983
19129
|
},
|
|
18984
|
-
"
|
|
19130
|
+
"on": {
|
|
19131
|
+
...on
|
|
19132
|
+
}
|
|
18985
19133
|
}, {
|
|
18986
|
-
|
|
19134
|
+
style
|
|
18987
19135
|
}, {
|
|
19136
|
+
"props": {
|
|
19137
|
+
...props
|
|
19138
|
+
},
|
|
18988
19139
|
"model": {
|
|
18989
19140
|
value: form[field],
|
|
18990
19141
|
callback: $$v => {
|
|
@@ -18995,13 +19146,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18995
19146
|
case 'checkbox':
|
|
18996
19147
|
return h("el-checkbox", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
18997
19148
|
"on": {
|
|
18998
|
-
|
|
18999
|
-
|
|
19000
|
-
},
|
|
19001
|
-
"style": style
|
|
19149
|
+
...on
|
|
19150
|
+
}
|
|
19002
19151
|
}, {
|
|
19003
|
-
|
|
19152
|
+
style
|
|
19004
19153
|
}, {
|
|
19154
|
+
"props": {
|
|
19155
|
+
...props
|
|
19156
|
+
},
|
|
19005
19157
|
"model": {
|
|
19006
19158
|
value: form[field],
|
|
19007
19159
|
callback: $$v => {
|
|
@@ -19012,13 +19164,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19012
19164
|
case 'checkboxGroup':
|
|
19013
19165
|
return h("el-checkbox-group", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
19014
19166
|
"on": {
|
|
19015
|
-
|
|
19016
|
-
|
|
19017
|
-
},
|
|
19018
|
-
"style": style
|
|
19167
|
+
...on
|
|
19168
|
+
}
|
|
19019
19169
|
}, {
|
|
19020
|
-
|
|
19170
|
+
style
|
|
19021
19171
|
}, {
|
|
19172
|
+
"props": {
|
|
19173
|
+
...props
|
|
19174
|
+
},
|
|
19022
19175
|
"model": {
|
|
19023
19176
|
value: form[field],
|
|
19024
19177
|
callback: $$v => {
|
|
@@ -19034,13 +19187,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19034
19187
|
case 'radio':
|
|
19035
19188
|
return h("el-radio-group", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
19036
19189
|
"on": {
|
|
19037
|
-
|
|
19038
|
-
|
|
19039
|
-
},
|
|
19040
|
-
"style": style
|
|
19190
|
+
...on
|
|
19191
|
+
}
|
|
19041
19192
|
}, {
|
|
19042
|
-
|
|
19193
|
+
style
|
|
19043
19194
|
}, {
|
|
19195
|
+
"props": {
|
|
19196
|
+
...props
|
|
19197
|
+
},
|
|
19044
19198
|
"model": {
|
|
19045
19199
|
value: form[field],
|
|
19046
19200
|
callback: $$v => {
|
|
@@ -19055,10 +19209,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19055
19209
|
}, [labels(a)])) : []]);
|
|
19056
19210
|
case 'switch':
|
|
19057
19211
|
return h("el-switch", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
19058
|
-
"on": {
|
|
19059
|
-
"input": this.input,
|
|
19060
|
-
"change": this.change
|
|
19061
|
-
},
|
|
19062
19212
|
"attrs": {
|
|
19063
19213
|
"active-value": "1",
|
|
19064
19214
|
"inactive-value": "0" || false,
|
|
@@ -19066,10 +19216,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19066
19216
|
"inactive-text": "禁用",
|
|
19067
19217
|
"active-color": "#13ce66"
|
|
19068
19218
|
},
|
|
19069
|
-
"
|
|
19219
|
+
"on": {
|
|
19220
|
+
...on
|
|
19221
|
+
}
|
|
19070
19222
|
}, {
|
|
19071
|
-
|
|
19223
|
+
style
|
|
19072
19224
|
}, {
|
|
19225
|
+
"props": {
|
|
19226
|
+
...props
|
|
19227
|
+
},
|
|
19073
19228
|
"model": {
|
|
19074
19229
|
value: form[field],
|
|
19075
19230
|
callback: $$v => {
|
|
@@ -19079,24 +19234,23 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19079
19234
|
}]));
|
|
19080
19235
|
case 'daterange':
|
|
19081
19236
|
return h("el-date-picker", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
19082
|
-
"on": {
|
|
19083
|
-
"input": this.input,
|
|
19084
|
-
"change": this.change
|
|
19085
|
-
},
|
|
19086
19237
|
"attrs": {
|
|
19087
19238
|
"align": "center",
|
|
19088
19239
|
"format": "yyyy-MM-dd",
|
|
19089
19240
|
"value-format": "yyyy-MM-dd HH:mm:ss",
|
|
19090
|
-
"type": r.type,
|
|
19091
|
-
"clearable": true,
|
|
19092
19241
|
"placeholder": r.placeholder || `请选择${label}`,
|
|
19093
19242
|
"start-placeholder": "开始",
|
|
19094
19243
|
"end-placeholder": "结束"
|
|
19095
19244
|
},
|
|
19096
|
-
"
|
|
19245
|
+
"on": {
|
|
19246
|
+
...on
|
|
19247
|
+
}
|
|
19097
19248
|
}, {
|
|
19098
|
-
|
|
19249
|
+
style
|
|
19099
19250
|
}, {
|
|
19251
|
+
"props": {
|
|
19252
|
+
...props
|
|
19253
|
+
},
|
|
19100
19254
|
"model": {
|
|
19101
19255
|
value: form[field],
|
|
19102
19256
|
callback: $$v => {
|
|
@@ -19106,22 +19260,21 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19106
19260
|
}]));
|
|
19107
19261
|
case 'date':
|
|
19108
19262
|
return h("el-date-picker", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
19109
|
-
"on": {
|
|
19110
|
-
"input": this.input,
|
|
19111
|
-
"change": this.change
|
|
19112
|
-
},
|
|
19113
19263
|
"attrs": {
|
|
19114
19264
|
"align": "center",
|
|
19115
19265
|
"format": "yyyy-MM-dd",
|
|
19116
19266
|
"value-format": "yyyy-MM-dd HH:mm:ss",
|
|
19117
|
-
"type": r.type,
|
|
19118
|
-
"clearable": true,
|
|
19119
19267
|
"placeholder": r.placeholder || `请选择${label}`
|
|
19120
19268
|
},
|
|
19121
|
-
"
|
|
19269
|
+
"on": {
|
|
19270
|
+
...on
|
|
19271
|
+
}
|
|
19122
19272
|
}, {
|
|
19123
|
-
|
|
19273
|
+
style
|
|
19124
19274
|
}, {
|
|
19275
|
+
"props": {
|
|
19276
|
+
...props
|
|
19277
|
+
},
|
|
19125
19278
|
"model": {
|
|
19126
19279
|
value: form[field],
|
|
19127
19280
|
callback: $$v => {
|
|
@@ -19131,20 +19284,19 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19131
19284
|
}]));
|
|
19132
19285
|
case 'time':
|
|
19133
19286
|
return h("el-time-picker", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
19134
|
-
"on": {
|
|
19135
|
-
"input": this.input,
|
|
19136
|
-
"change": this.change
|
|
19137
|
-
},
|
|
19138
19287
|
"attrs": {
|
|
19139
19288
|
"align": "center",
|
|
19140
|
-
"type": r.type,
|
|
19141
|
-
"clearable": true,
|
|
19142
19289
|
"placeholder": r.placeholder || `请选择${label}`
|
|
19143
19290
|
},
|
|
19144
|
-
"
|
|
19291
|
+
"on": {
|
|
19292
|
+
...on
|
|
19293
|
+
}
|
|
19145
19294
|
}, {
|
|
19146
|
-
|
|
19295
|
+
style
|
|
19147
19296
|
}, {
|
|
19297
|
+
"props": {
|
|
19298
|
+
...props
|
|
19299
|
+
},
|
|
19148
19300
|
"model": {
|
|
19149
19301
|
value: form[field],
|
|
19150
19302
|
callback: $$v => {
|
|
@@ -19154,20 +19306,19 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19154
19306
|
}]));
|
|
19155
19307
|
case 'year':
|
|
19156
19308
|
return h("el-date-picker", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
19157
|
-
"on": {
|
|
19158
|
-
"input": this.input,
|
|
19159
|
-
"change": this.change
|
|
19160
|
-
},
|
|
19161
19309
|
"attrs": {
|
|
19162
19310
|
"align": "center",
|
|
19163
|
-
"type": r.type,
|
|
19164
|
-
"clearable": true,
|
|
19165
19311
|
"placeholder": r.placeholder || `请选择${label}`
|
|
19166
19312
|
},
|
|
19167
|
-
"
|
|
19313
|
+
"on": {
|
|
19314
|
+
...on
|
|
19315
|
+
}
|
|
19168
19316
|
}, {
|
|
19169
|
-
|
|
19317
|
+
style
|
|
19170
19318
|
}, {
|
|
19319
|
+
"props": {
|
|
19320
|
+
...props
|
|
19321
|
+
},
|
|
19171
19322
|
"model": {
|
|
19172
19323
|
value: form[field],
|
|
19173
19324
|
callback: $$v => {
|
|
@@ -19177,20 +19328,19 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19177
19328
|
}]));
|
|
19178
19329
|
case 'month':
|
|
19179
19330
|
return h("el-date-picker", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
19180
|
-
"on": {
|
|
19181
|
-
"input": this.input,
|
|
19182
|
-
"change": this.change
|
|
19183
|
-
},
|
|
19184
19331
|
"attrs": {
|
|
19185
19332
|
"align": "center",
|
|
19186
|
-
"type": r.type,
|
|
19187
|
-
"clearable": true,
|
|
19188
19333
|
"placeholder": r.placeholder || `请选择${label}`
|
|
19189
19334
|
},
|
|
19190
|
-
"
|
|
19335
|
+
"on": {
|
|
19336
|
+
...on
|
|
19337
|
+
}
|
|
19191
19338
|
}, {
|
|
19192
|
-
|
|
19339
|
+
style
|
|
19193
19340
|
}, {
|
|
19341
|
+
"props": {
|
|
19342
|
+
...props
|
|
19343
|
+
},
|
|
19194
19344
|
"model": {
|
|
19195
19345
|
value: form[field],
|
|
19196
19346
|
callback: $$v => {
|
|
@@ -19200,18 +19350,19 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19200
19350
|
}]));
|
|
19201
19351
|
case 'color':
|
|
19202
19352
|
return h("el-color-picker", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
19203
|
-
"on": {
|
|
19204
|
-
"input": this.input,
|
|
19205
|
-
"change": this.change
|
|
19206
|
-
},
|
|
19207
19353
|
"attrs": {
|
|
19208
19354
|
"size": this.size,
|
|
19209
19355
|
"placeholder": r.placeholder || `请选择${label}`
|
|
19210
19356
|
},
|
|
19211
|
-
"
|
|
19357
|
+
"on": {
|
|
19358
|
+
...on
|
|
19359
|
+
}
|
|
19212
19360
|
}, {
|
|
19213
|
-
|
|
19361
|
+
style
|
|
19214
19362
|
}, {
|
|
19363
|
+
"props": {
|
|
19364
|
+
...props
|
|
19365
|
+
},
|
|
19215
19366
|
"model": {
|
|
19216
19367
|
value: form[field],
|
|
19217
19368
|
callback: $$v => {
|
|
@@ -19220,20 +19371,20 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19220
19371
|
}
|
|
19221
19372
|
}]));
|
|
19222
19373
|
case 'image':
|
|
19223
|
-
return h(
|
|
19224
|
-
"key": this.random,
|
|
19225
|
-
"on": {
|
|
19226
|
-
"input": this.input,
|
|
19227
|
-
"change": this.change
|
|
19228
|
-
},
|
|
19374
|
+
return h(_components_Aupload_Icon__WEBPACK_IMPORTED_MODULE_3__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
19229
19375
|
"attrs": {
|
|
19230
19376
|
"src": form[field],
|
|
19231
19377
|
"placeholder": r.placeholder || `请选择${label}`
|
|
19232
19378
|
},
|
|
19233
|
-
"
|
|
19379
|
+
"on": {
|
|
19380
|
+
...on
|
|
19381
|
+
}
|
|
19234
19382
|
}, {
|
|
19235
|
-
|
|
19383
|
+
style
|
|
19236
19384
|
}, {
|
|
19385
|
+
"props": {
|
|
19386
|
+
...props
|
|
19387
|
+
},
|
|
19237
19388
|
"model": {
|
|
19238
19389
|
value: form[field],
|
|
19239
19390
|
callback: $$v => {
|
|
@@ -19242,20 +19393,20 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19242
19393
|
}
|
|
19243
19394
|
}]));
|
|
19244
19395
|
case 'upload':
|
|
19245
|
-
return h(
|
|
19246
|
-
"key": this.random,
|
|
19247
|
-
"on": {
|
|
19248
|
-
"input": this.input,
|
|
19249
|
-
"change": this.change
|
|
19250
|
-
},
|
|
19396
|
+
return h(_components_Aupload_Icon__WEBPACK_IMPORTED_MODULE_3__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
19251
19397
|
"attrs": {
|
|
19252
19398
|
"src": form[field],
|
|
19253
19399
|
"placeholder": r.placeholder || `请选择${label}`
|
|
19254
19400
|
},
|
|
19255
|
-
"
|
|
19401
|
+
"on": {
|
|
19402
|
+
...on
|
|
19403
|
+
}
|
|
19256
19404
|
}, {
|
|
19257
|
-
|
|
19405
|
+
style
|
|
19258
19406
|
}, {
|
|
19407
|
+
"props": {
|
|
19408
|
+
...props
|
|
19409
|
+
},
|
|
19259
19410
|
"model": {
|
|
19260
19411
|
value: form[field],
|
|
19261
19412
|
callback: $$v => {
|
|
@@ -19264,19 +19415,19 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19264
19415
|
}
|
|
19265
19416
|
}]));
|
|
19266
19417
|
case 'icon':
|
|
19267
|
-
return h(
|
|
19268
|
-
"key": this.random,
|
|
19269
|
-
"on": {
|
|
19270
|
-
"input": this.input,
|
|
19271
|
-
"change": this.change
|
|
19272
|
-
},
|
|
19418
|
+
return h(_components_AiconSelect__WEBPACK_IMPORTED_MODULE_2__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
19273
19419
|
"attrs": {
|
|
19274
19420
|
"placeholder": r.placeholder || `请选择${label}`
|
|
19275
19421
|
},
|
|
19276
|
-
"
|
|
19422
|
+
"on": {
|
|
19423
|
+
...on
|
|
19424
|
+
}
|
|
19277
19425
|
}, {
|
|
19278
|
-
|
|
19426
|
+
style
|
|
19279
19427
|
}, {
|
|
19428
|
+
"props": {
|
|
19429
|
+
...props
|
|
19430
|
+
},
|
|
19280
19431
|
"model": {
|
|
19281
19432
|
value: form[field],
|
|
19282
19433
|
callback: $$v => {
|
|
@@ -19285,19 +19436,19 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19285
19436
|
}
|
|
19286
19437
|
}]));
|
|
19287
19438
|
case 'iconSelect':
|
|
19288
|
-
return h(
|
|
19289
|
-
"key": this.random,
|
|
19290
|
-
"on": {
|
|
19291
|
-
"input": this.input,
|
|
19292
|
-
"change": this.change
|
|
19293
|
-
},
|
|
19439
|
+
return h(_components_AiconSelect__WEBPACK_IMPORTED_MODULE_2__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
19294
19440
|
"attrs": {
|
|
19295
19441
|
"placeholder": r.placeholder || `请选择${label}`
|
|
19296
19442
|
},
|
|
19297
|
-
"
|
|
19443
|
+
"on": {
|
|
19444
|
+
...on
|
|
19445
|
+
}
|
|
19298
19446
|
}, {
|
|
19299
|
-
|
|
19447
|
+
style
|
|
19300
19448
|
}, {
|
|
19449
|
+
"props": {
|
|
19450
|
+
...props
|
|
19451
|
+
},
|
|
19301
19452
|
"model": {
|
|
19302
19453
|
value: form[field],
|
|
19303
19454
|
callback: $$v => {
|
|
@@ -19307,18 +19458,19 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19307
19458
|
}]));
|
|
19308
19459
|
default:
|
|
19309
19460
|
return h("el-input", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
19310
|
-
"on": {
|
|
19311
|
-
"input": this.input,
|
|
19312
|
-
"change": this.change
|
|
19313
|
-
},
|
|
19314
19461
|
"attrs": {
|
|
19315
|
-
"
|
|
19462
|
+
"maxlength": r.maxlength,
|
|
19316
19463
|
"placeholder": r.placeholder || `请输入${label}`
|
|
19317
19464
|
},
|
|
19318
|
-
"
|
|
19465
|
+
"on": {
|
|
19466
|
+
...on
|
|
19467
|
+
}
|
|
19319
19468
|
}, {
|
|
19320
|
-
|
|
19469
|
+
style
|
|
19321
19470
|
}, {
|
|
19471
|
+
"props": {
|
|
19472
|
+
...props
|
|
19473
|
+
},
|
|
19322
19474
|
"model": {
|
|
19323
19475
|
value: form[field],
|
|
19324
19476
|
callback: $$v => {
|
|
@@ -24501,6 +24653,9 @@ module.exports = _default;
|
|
|
24501
24653
|
|
|
24502
24654
|
"use strict";
|
|
24503
24655
|
__webpack_require__.r(__webpack_exports__);
|
|
24656
|
+
/* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6aaa");
|
|
24657
|
+
/* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
|
|
24658
|
+
|
|
24504
24659
|
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
24505
24660
|
name: 'Atabs',
|
|
24506
24661
|
props: {
|
|
@@ -24536,13 +24691,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
24536
24691
|
...props
|
|
24537
24692
|
} = this.$attrs;
|
|
24538
24693
|
const data = this.option.length > 0 ? this.option : this.config.length > 0 ? this.config : this.data.length > 0 ? this.data : [];
|
|
24539
|
-
return h("el-tabs", {
|
|
24694
|
+
return h("el-tabs", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
24540
24695
|
"attrs": {
|
|
24541
24696
|
"type": type
|
|
24542
24697
|
},
|
|
24543
24698
|
"on": {
|
|
24544
24699
|
"tab-click": this.change
|
|
24545
|
-
}
|
|
24700
|
+
}
|
|
24701
|
+
}, {
|
|
24702
|
+
"on": props
|
|
24703
|
+
}, {
|
|
24546
24704
|
"props": {
|
|
24547
24705
|
...props
|
|
24548
24706
|
},
|
|
@@ -24552,7 +24710,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
24552
24710
|
this.active = $$v;
|
|
24553
24711
|
}
|
|
24554
24712
|
}
|
|
24555
|
-
}, [data.length > 0 && data.map((a, b) => {
|
|
24713
|
+
}]), [data.length > 0 && data.map((a, b) => {
|
|
24556
24714
|
let label = a.text || a.name || a.label || a.title || `${a}`;
|
|
24557
24715
|
let value = a.value || a.code || a.id || `${b}`;
|
|
24558
24716
|
return h("el-tab-pane", {
|
|
@@ -24561,9 +24719,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
24561
24719
|
"label": label,
|
|
24562
24720
|
"name": value
|
|
24563
24721
|
}
|
|
24564
|
-
}, [a.render ? a.render() : h("div", {
|
|
24722
|
+
}, [this.active == value && (a.render ? a.render(a) : h("div", {
|
|
24565
24723
|
"key": b
|
|
24566
|
-
}, [this.$slots[label]])]);
|
|
24724
|
+
}, [this.$slots[label]]))]);
|
|
24567
24725
|
}), this.$slots.default]);
|
|
24568
24726
|
},
|
|
24569
24727
|
click({
|
|
@@ -24992,7 +25150,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
24992
25150
|
type: Array,
|
|
24993
25151
|
default: () => []
|
|
24994
25152
|
},
|
|
24995
|
-
|
|
25153
|
+
routes: {
|
|
24996
25154
|
type: String,
|
|
24997
25155
|
default: () => ''
|
|
24998
25156
|
},
|
|
@@ -25017,11 +25175,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
25017
25175
|
"gutter": 40
|
|
25018
25176
|
}
|
|
25019
25177
|
}, [this.data && this.data.length > 0 && this.data.map((a, b) => {
|
|
25020
|
-
if (this.
|
|
25178
|
+
if (this.routes && this.routes != '') {
|
|
25021
25179
|
return h(_components_Aauthority__WEBPACK_IMPORTED_MODULE_0__["default"], {
|
|
25022
25180
|
"attrs": {
|
|
25023
|
-
"
|
|
25024
|
-
"
|
|
25181
|
+
"route": `${a.id}`,
|
|
25182
|
+
"routes": this.routes
|
|
25025
25183
|
}
|
|
25026
25184
|
}, [h("el-col", {
|
|
25027
25185
|
"attrs": {
|
|
@@ -34381,75 +34539,91 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
34381
34539
|
props: {
|
|
34382
34540
|
ip: {
|
|
34383
34541
|
type: String,
|
|
34384
|
-
default: () => '127.0.0.1'
|
|
34542
|
+
default: () => '127.0.0.1:8000'
|
|
34385
34543
|
},
|
|
34386
|
-
|
|
34544
|
+
type: {
|
|
34387
34545
|
type: String,
|
|
34388
|
-
default: () => '
|
|
34546
|
+
default: () => 'ws'
|
|
34389
34547
|
},
|
|
34390
|
-
|
|
34548
|
+
ping: {
|
|
34391
34549
|
type: String,
|
|
34392
|
-
default: () => ''
|
|
34550
|
+
default: () => 'ping'
|
|
34393
34551
|
},
|
|
34394
|
-
|
|
34395
|
-
type:
|
|
34396
|
-
default: () =>
|
|
34552
|
+
delay: {
|
|
34553
|
+
type: Number,
|
|
34554
|
+
default: () => 3000
|
|
34397
34555
|
},
|
|
34398
34556
|
enable: {
|
|
34399
34557
|
type: Boolean,
|
|
34400
|
-
default: () =>
|
|
34558
|
+
default: () => true
|
|
34559
|
+
},
|
|
34560
|
+
prompt: {
|
|
34561
|
+
type: Boolean,
|
|
34562
|
+
default: () => true
|
|
34401
34563
|
}
|
|
34402
34564
|
},
|
|
34403
34565
|
data() {
|
|
34404
34566
|
return {
|
|
34405
|
-
|
|
34406
|
-
|
|
34567
|
+
host: this.ip.includes('://') ? this.ip : `${this.type}://${this.ip}`,
|
|
34568
|
+
status: this.enable,
|
|
34569
|
+
session: null,
|
|
34570
|
+
interval: null
|
|
34407
34571
|
};
|
|
34408
34572
|
},
|
|
34409
34573
|
created() {
|
|
34410
34574
|
this.create();
|
|
34411
34575
|
},
|
|
34412
|
-
|
|
34576
|
+
beforeDestroy() {
|
|
34413
34577
|
this.cancel();
|
|
34414
34578
|
},
|
|
34415
34579
|
methods: {
|
|
34416
34580
|
create() {
|
|
34417
|
-
this.status = this.enable;
|
|
34418
34581
|
if (this.status) {
|
|
34419
|
-
|
|
34420
|
-
this.session
|
|
34421
|
-
|
|
34422
|
-
|
|
34423
|
-
|
|
34424
|
-
|
|
34425
|
-
this.session.
|
|
34582
|
+
this.session = new WebSocket(this.host);
|
|
34583
|
+
if (this.session) {
|
|
34584
|
+
this.session.onopen = a => {
|
|
34585
|
+
this.interval = setInterval(() => this.session.send(this.ping), this.delay); // 心跳检测WS
|
|
34586
|
+
this.$emit('open', a);
|
|
34587
|
+
};
|
|
34588
|
+
this.session.onmessage = ({
|
|
34589
|
+
data = ''
|
|
34590
|
+
}) => {
|
|
34591
|
+
if (data && data != '') {
|
|
34592
|
+
let info = JSON.parse(data);
|
|
34593
|
+
this.prompt && this.$notify.info({
|
|
34594
|
+
title: '新消息提示',
|
|
34595
|
+
message: `收到来自${info.sendName}的消息.`,
|
|
34596
|
+
position: 'bottom-right',
|
|
34597
|
+
onClick: () => {
|
|
34598
|
+
this.$emit('click', info);
|
|
34599
|
+
this.$emit('select', info);
|
|
34600
|
+
}
|
|
34601
|
+
});
|
|
34602
|
+
this.$emit('message', data);
|
|
34603
|
+
}
|
|
34604
|
+
};
|
|
34605
|
+
this.session.onerror = a => {
|
|
34606
|
+
this.cancel();
|
|
34607
|
+
this.$emit('error', a);
|
|
34608
|
+
};
|
|
34609
|
+
this.session.onclose = a => {
|
|
34610
|
+
this.cancel();
|
|
34611
|
+
this.$emit('close', a);
|
|
34612
|
+
};
|
|
34426
34613
|
this.$emit('create', this.session);
|
|
34427
|
-
}
|
|
34428
|
-
}
|
|
34429
|
-
},
|
|
34430
|
-
open(a) {
|
|
34431
|
-
console.log('open', a);
|
|
34432
|
-
this.$emit('open', a);
|
|
34433
|
-
},
|
|
34434
|
-
message({
|
|
34435
|
-
data,
|
|
34436
|
-
...a
|
|
34437
|
-
}) {
|
|
34438
|
-
console.log('message', a);
|
|
34439
|
-
if (data) this.$emit('message', JSON.parse(data));
|
|
34440
|
-
},
|
|
34441
|
-
error(a) {
|
|
34442
|
-
console.log('error', a);
|
|
34443
|
-
this.$emit('error', a);
|
|
34444
|
-
},
|
|
34445
|
-
close(a) {
|
|
34446
|
-
console.log('close', a);
|
|
34447
|
-
this.$emit('close', a);
|
|
34614
|
+
}
|
|
34615
|
+
} else this.cancel();
|
|
34448
34616
|
},
|
|
34449
|
-
cancel(
|
|
34450
|
-
this.$emit('cancel',
|
|
34451
|
-
this
|
|
34452
|
-
|
|
34617
|
+
cancel() {
|
|
34618
|
+
this.$emit('cancel', this.status);
|
|
34619
|
+
this.$nextTick(() => {
|
|
34620
|
+
clearInterval(this.interval);
|
|
34621
|
+
this.$nextTick(() => {
|
|
34622
|
+
this.interval = null;
|
|
34623
|
+
this.session = null;
|
|
34624
|
+
this.status = false;
|
|
34625
|
+
});
|
|
34626
|
+
});
|
|
34453
34627
|
}
|
|
34454
34628
|
},
|
|
34455
34629
|
render() {
|
|
@@ -36219,6 +36393,7 @@ var map = {
|
|
|
36219
36393
|
"./Amodal/index.js": "9295",
|
|
36220
36394
|
"./Aoption/index.js": "1aa8",
|
|
36221
36395
|
"./Apages/index.js": "1d0c",
|
|
36396
|
+
"./ApasswordInput/index.js": "e4ec",
|
|
36222
36397
|
"./Apopconfirm/index.js": "2ee7",
|
|
36223
36398
|
"./Apopover/index.js": "1398",
|
|
36224
36399
|
"./Areminder/index.js": "e241",
|
|
@@ -36237,6 +36412,7 @@ var map = {
|
|
|
36237
36412
|
"./Atitle/index.js": "8848",
|
|
36238
36413
|
"./Atooltip/index.js": "fbc2",
|
|
36239
36414
|
"./Atransfer/index.js": "6bde",
|
|
36415
|
+
"./Aupload/index.js": "fafd",
|
|
36240
36416
|
"./AwebSocket/index.js": "5209",
|
|
36241
36417
|
"./Bcard/index.js": "4df8",
|
|
36242
36418
|
"./BformItem/index.js": "5c61",
|
|
@@ -36618,17 +36794,6 @@ exports.scale = scale;
|
|
|
36618
36794
|
exports.invert = invert;
|
|
36619
36795
|
exports.clone = clone;
|
|
36620
36796
|
|
|
36621
|
-
/***/ }),
|
|
36622
|
-
|
|
36623
|
-
/***/ "5934":
|
|
36624
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
36625
|
-
|
|
36626
|
-
"use strict";
|
|
36627
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_15_10_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_15_10_1_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_446b4709_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("e95a");
|
|
36628
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_15_10_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_15_10_1_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_446b4709_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_15_10_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_15_10_1_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_446b4709_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
36629
|
-
/* unused harmony reexport * */
|
|
36630
|
-
|
|
36631
|
-
|
|
36632
36797
|
/***/ }),
|
|
36633
36798
|
|
|
36634
36799
|
/***/ "5974":
|
|
@@ -37772,6 +37937,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
37772
37937
|
/* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_0__);
|
|
37773
37938
|
|
|
37774
37939
|
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
37940
|
+
name: 'Aupload',
|
|
37775
37941
|
props: {
|
|
37776
37942
|
type: {
|
|
37777
37943
|
type: String,
|
|
@@ -37783,8 +37949,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
37783
37949
|
},
|
|
37784
37950
|
listType: {
|
|
37785
37951
|
type: String,
|
|
37786
|
-
default: () => '
|
|
37952
|
+
default: () => ''
|
|
37787
37953
|
},
|
|
37954
|
+
// picture-card
|
|
37788
37955
|
autoUpload: {
|
|
37789
37956
|
type: Boolean,
|
|
37790
37957
|
default: () => false
|
|
@@ -37833,8 +38000,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
37833
38000
|
"attrs": {
|
|
37834
38001
|
"action": this.action,
|
|
37835
38002
|
"list-type": this.listType,
|
|
37836
|
-
"auto-upload": this.autoUpload,
|
|
37837
38003
|
"http-request": this.upload,
|
|
38004
|
+
"auto-upload": this.autoUpload,
|
|
37838
38005
|
"show-file-list": this.showFileList,
|
|
37839
38006
|
"file-list": this.list
|
|
37840
38007
|
},
|
|
@@ -60625,17 +60792,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
60625
60792
|
}
|
|
60626
60793
|
});
|
|
60627
60794
|
|
|
60628
|
-
/***/ }),
|
|
60629
|
-
|
|
60630
|
-
/***/ "9211":
|
|
60631
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
60632
|
-
|
|
60633
|
-
"use strict";
|
|
60634
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_15_10_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_15_10_1_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_002e4876_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("ba6c");
|
|
60635
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_15_10_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_15_10_1_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_002e4876_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_15_10_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_15_10_1_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_002e4876_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
60636
|
-
/* unused harmony reexport * */
|
|
60637
|
-
|
|
60638
|
-
|
|
60639
60795
|
/***/ }),
|
|
60640
60796
|
|
|
60641
60797
|
/***/ "9226":
|
|
@@ -60739,18 +60895,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
60739
60895
|
Aform: _components_Aform__WEBPACK_IMPORTED_MODULE_0__["default"]
|
|
60740
60896
|
},
|
|
60741
60897
|
props: {
|
|
60742
|
-
visible: {
|
|
60743
|
-
type: Boolean,
|
|
60744
|
-
default: () => false
|
|
60745
|
-
},
|
|
60746
|
-
title: {
|
|
60747
|
-
type: String,
|
|
60748
|
-
default: () => '编辑'
|
|
60749
|
-
},
|
|
60750
|
-
width: {
|
|
60751
|
-
type: String,
|
|
60752
|
-
default: () => '600px'
|
|
60753
|
-
},
|
|
60754
60898
|
rule: {
|
|
60755
60899
|
type: Boolean,
|
|
60756
60900
|
default: () => true
|
|
@@ -60764,10 +60908,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
60764
60908
|
default: () => true
|
|
60765
60909
|
},
|
|
60766
60910
|
config: {
|
|
60767
|
-
type: Array,
|
|
60768
|
-
default: () => []
|
|
60769
|
-
},
|
|
60770
|
-
object: {
|
|
60771
60911
|
type: Object,
|
|
60772
60912
|
default: () => ({})
|
|
60773
60913
|
},
|
|
@@ -60787,34 +60927,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
60787
60927
|
type: String,
|
|
60788
60928
|
default: () => '取消'
|
|
60789
60929
|
},
|
|
60790
|
-
loading: {
|
|
60791
|
-
type: Boolean,
|
|
60792
|
-
default: () => false
|
|
60793
|
-
},
|
|
60794
60930
|
labelPosition: {
|
|
60795
60931
|
type: String,
|
|
60796
60932
|
default: () => 'top'
|
|
60797
60933
|
}
|
|
60798
60934
|
},
|
|
60799
|
-
methods: {
|
|
60800
|
-
finish(form) {
|
|
60801
|
-
this.$emit('finish', form);
|
|
60802
|
-
},
|
|
60803
|
-
submit(form) {
|
|
60804
|
-
this.$emit('submit', form);
|
|
60805
|
-
},
|
|
60806
|
-
cancel(form) {
|
|
60807
|
-
this.$emit('cancel', form);
|
|
60808
|
-
}
|
|
60809
|
-
},
|
|
60810
60935
|
render() {
|
|
60811
60936
|
const h = arguments[0];
|
|
60812
60937
|
const {
|
|
60813
60938
|
rule,
|
|
60814
60939
|
rules,
|
|
60815
|
-
action,
|
|
60816
60940
|
config,
|
|
60817
|
-
object,
|
|
60818
60941
|
values,
|
|
60819
60942
|
finishText,
|
|
60820
60943
|
submitText,
|
|
@@ -60822,21 +60945,30 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
60822
60945
|
labelPosition
|
|
60823
60946
|
} = this.$props;
|
|
60824
60947
|
const {
|
|
60948
|
+
title = '编辑',
|
|
60949
|
+
width = '600px',
|
|
60950
|
+
visible = false,
|
|
60951
|
+
loading = false,
|
|
60825
60952
|
...props
|
|
60826
60953
|
} = this.$attrs;
|
|
60954
|
+
const {
|
|
60955
|
+
finish,
|
|
60956
|
+
submit,
|
|
60957
|
+
cancel
|
|
60958
|
+
} = this.$listeners;
|
|
60827
60959
|
return h("div", {
|
|
60828
60960
|
"class": this.loading ? 'a-modal loading' : 'a-modal'
|
|
60829
60961
|
}, [h("el-dialog", {
|
|
60830
60962
|
"attrs": {
|
|
60831
|
-
"visible":
|
|
60832
|
-
"title":
|
|
60833
|
-
"width":
|
|
60963
|
+
"visible": visible,
|
|
60964
|
+
"title": title,
|
|
60965
|
+
"width": width,
|
|
60834
60966
|
"lock-scroll": true,
|
|
60835
60967
|
"destroy-on-close": true,
|
|
60836
60968
|
"close-on-click-modal": false
|
|
60837
60969
|
},
|
|
60838
60970
|
"on": {
|
|
60839
|
-
"close":
|
|
60971
|
+
"close": cancel
|
|
60840
60972
|
},
|
|
60841
60973
|
"props": {
|
|
60842
60974
|
...props
|
|
@@ -60845,23 +60977,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
60845
60977
|
"class": "a-modal-body"
|
|
60846
60978
|
}, [h(_components_Aform__WEBPACK_IMPORTED_MODULE_0__["default"], {
|
|
60847
60979
|
"attrs": {
|
|
60980
|
+
"cols": "1",
|
|
60848
60981
|
"size": "mini",
|
|
60849
60982
|
"rule": rule,
|
|
60850
60983
|
"rules": rules,
|
|
60851
|
-
"
|
|
60852
|
-
"object": config && config.length > 0 ? {} : object,
|
|
60853
|
-
"config": config && config.length > 0 ? config : [],
|
|
60984
|
+
"config": config,
|
|
60854
60985
|
"values": values,
|
|
60986
|
+
"loading": loading,
|
|
60855
60987
|
"finishText": finishText,
|
|
60856
60988
|
"submitText": submitText,
|
|
60857
60989
|
"cancelText": cancelText,
|
|
60858
|
-
"loading": this.loading,
|
|
60859
60990
|
"labelPosition": labelPosition
|
|
60860
60991
|
},
|
|
60861
60992
|
"on": {
|
|
60862
|
-
"finish":
|
|
60863
|
-
"submit":
|
|
60864
|
-
"cancel":
|
|
60993
|
+
"finish": finish,
|
|
60994
|
+
"submit": submit,
|
|
60995
|
+
"cancel": cancel
|
|
60865
60996
|
}
|
|
60866
60997
|
})]), this.$slots.default, h("div", {
|
|
60867
60998
|
"class": this.action ? 'a-modal-foot custom' : ''
|
|
@@ -127438,143 +127569,6 @@ module.exports = function (it) {
|
|
|
127438
127569
|
};
|
|
127439
127570
|
|
|
127440
127571
|
|
|
127441
|
-
/***/ }),
|
|
127442
|
-
|
|
127443
|
-
/***/ "a61e":
|
|
127444
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
127445
|
-
|
|
127446
|
-
"use strict";
|
|
127447
|
-
// ESM COMPAT FLAG
|
|
127448
|
-
__webpack_require__.r(__webpack_exports__);
|
|
127449
|
-
|
|
127450
|
-
// 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&
|
|
127451
|
-
var render = function render() {
|
|
127452
|
-
var _vm = this,
|
|
127453
|
-
_c = _vm._self._c;
|
|
127454
|
-
return _c('div', {
|
|
127455
|
-
staticClass: "a-upload"
|
|
127456
|
-
}, [_c('el-upload', {
|
|
127457
|
-
attrs: {
|
|
127458
|
-
"action": _vm.action,
|
|
127459
|
-
"multiple": _vm.multiple,
|
|
127460
|
-
"limit": Number(_vm.limit),
|
|
127461
|
-
"list-type": "picture-card",
|
|
127462
|
-
"auto-upload": false,
|
|
127463
|
-
"http-request": _vm.upload,
|
|
127464
|
-
"on-change": e => _vm.upload(e),
|
|
127465
|
-
"before-remove": e => _vm.upload(e),
|
|
127466
|
-
"file-list": _vm.list
|
|
127467
|
-
}
|
|
127468
|
-
}, [_vm.src ? _c('img', {
|
|
127469
|
-
attrs: {
|
|
127470
|
-
"src": _vm.src
|
|
127471
|
-
}
|
|
127472
|
-
}) : _c('i', {
|
|
127473
|
-
staticClass: "el-icon-plus"
|
|
127474
|
-
})])], 1);
|
|
127475
|
-
};
|
|
127476
|
-
var staticRenderFns = [];
|
|
127477
|
-
|
|
127478
|
-
// CONCATENATED MODULE: ./src/components/Aupload/index.vue?vue&type=template&id=002e4876&scoped=true&
|
|
127479
|
-
|
|
127480
|
-
// 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&
|
|
127481
|
-
/* harmony default export */ var Auploadvue_type_script_lang_js_ = ({
|
|
127482
|
-
name: 'Aupload',
|
|
127483
|
-
props: {
|
|
127484
|
-
previewUrl: {
|
|
127485
|
-
type: String,
|
|
127486
|
-
default: () => '/api/file/detail/path='
|
|
127487
|
-
},
|
|
127488
|
-
type: {
|
|
127489
|
-
type: String,
|
|
127490
|
-
default: () => 'image'
|
|
127491
|
-
},
|
|
127492
|
-
action: {
|
|
127493
|
-
type: String,
|
|
127494
|
-
default: () => '#'
|
|
127495
|
-
},
|
|
127496
|
-
multiple: {
|
|
127497
|
-
type: Boolean,
|
|
127498
|
-
default: () => false
|
|
127499
|
-
},
|
|
127500
|
-
limit: {
|
|
127501
|
-
type: String,
|
|
127502
|
-
default: () => '10'
|
|
127503
|
-
},
|
|
127504
|
-
listType: {
|
|
127505
|
-
type: String,
|
|
127506
|
-
default: () => 'picture-card'
|
|
127507
|
-
},
|
|
127508
|
-
autoUpload: {
|
|
127509
|
-
type: Boolean,
|
|
127510
|
-
default: () => false
|
|
127511
|
-
},
|
|
127512
|
-
fileList: {
|
|
127513
|
-
type: Array,
|
|
127514
|
-
default: () => []
|
|
127515
|
-
},
|
|
127516
|
-
showFileList: {
|
|
127517
|
-
type: Boolean,
|
|
127518
|
-
default: () => false
|
|
127519
|
-
}
|
|
127520
|
-
},
|
|
127521
|
-
data() {
|
|
127522
|
-
return {
|
|
127523
|
-
list: [],
|
|
127524
|
-
src: ''
|
|
127525
|
-
};
|
|
127526
|
-
},
|
|
127527
|
-
created() {
|
|
127528
|
-
this.create();
|
|
127529
|
-
},
|
|
127530
|
-
methods: {
|
|
127531
|
-
create() {
|
|
127532
|
-
this.list = this.fileList.concat(this.list);
|
|
127533
|
-
},
|
|
127534
|
-
change(e) {
|
|
127535
|
-
this.$emit('change', e);
|
|
127536
|
-
},
|
|
127537
|
-
finish(e) {
|
|
127538
|
-
this.$emit('finish', e);
|
|
127539
|
-
},
|
|
127540
|
-
upload(e) {
|
|
127541
|
-
this.$emit('upload', e);
|
|
127542
|
-
},
|
|
127543
|
-
remove(e) {
|
|
127544
|
-
this.$emit('remove', e);
|
|
127545
|
-
}
|
|
127546
|
-
}
|
|
127547
|
-
});
|
|
127548
|
-
// CONCATENATED MODULE: ./src/components/Aupload/index.vue?vue&type=script&lang=js&
|
|
127549
|
-
/* harmony default export */ var components_Auploadvue_type_script_lang_js_ = (Auploadvue_type_script_lang_js_);
|
|
127550
|
-
// EXTERNAL MODULE: ./src/components/Aupload/index.vue?vue&type=style&index=0&id=002e4876&prod&scoped=true&lang=css&
|
|
127551
|
-
var Auploadvue_type_style_index_0_id_002e4876_prod_scoped_true_lang_css_ = __webpack_require__("9211");
|
|
127552
|
-
|
|
127553
|
-
// EXTERNAL MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/runtime/componentNormalizer.js
|
|
127554
|
-
var componentNormalizer = __webpack_require__("e607");
|
|
127555
|
-
|
|
127556
|
-
// CONCATENATED MODULE: ./src/components/Aupload/index.vue
|
|
127557
|
-
|
|
127558
|
-
|
|
127559
|
-
|
|
127560
|
-
|
|
127561
|
-
|
|
127562
|
-
|
|
127563
|
-
/* normalize component */
|
|
127564
|
-
|
|
127565
|
-
var component = Object(componentNormalizer["a" /* default */])(
|
|
127566
|
-
components_Auploadvue_type_script_lang_js_,
|
|
127567
|
-
render,
|
|
127568
|
-
staticRenderFns,
|
|
127569
|
-
false,
|
|
127570
|
-
null,
|
|
127571
|
-
"002e4876",
|
|
127572
|
-
null
|
|
127573
|
-
|
|
127574
|
-
)
|
|
127575
|
-
|
|
127576
|
-
/* harmony default export */ var Aupload = __webpack_exports__["default"] = (component.exports);
|
|
127577
|
-
|
|
127578
127572
|
/***/ }),
|
|
127579
127573
|
|
|
127580
127574
|
/***/ "a624":
|
|
@@ -132332,338 +132326,31 @@ module.exports = _default;
|
|
|
132332
132326
|
__webpack_require__.r(__webpack_exports__);
|
|
132333
132327
|
/* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6aaa");
|
|
132334
132328
|
/* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
|
|
132335
|
-
/* harmony import */ var
|
|
132329
|
+
/* harmony import */ var _components_Aform_AfEditor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("b550");
|
|
132336
132330
|
/* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("d397");
|
|
132337
132331
|
/* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_2__);
|
|
132338
132332
|
|
|
132339
132333
|
|
|
132340
132334
|
|
|
132341
|
-
|
|
132342
132335
|
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
132343
132336
|
name: 'Aform',
|
|
132344
|
-
props: {
|
|
132345
|
-
value: {
|
|
132346
|
-
type: Object,
|
|
132347
|
-
default: () => ({})
|
|
132348
|
-
},
|
|
132349
|
-
must: {
|
|
132350
|
-
type: Boolean,
|
|
132351
|
-
default: () => false
|
|
132352
|
-
},
|
|
132353
|
-
inline: {
|
|
132354
|
-
type: Boolean,
|
|
132355
|
-
default: () => false
|
|
132356
|
-
},
|
|
132357
|
-
cols: {
|
|
132358
|
-
type: String,
|
|
132359
|
-
default: () => '4'
|
|
132360
|
-
},
|
|
132361
|
-
gutter: {
|
|
132362
|
-
type: String,
|
|
132363
|
-
default: () => '8'
|
|
132364
|
-
},
|
|
132365
|
-
config: {
|
|
132366
|
-
type: Object,
|
|
132367
|
-
default: () => ({})
|
|
132368
|
-
},
|
|
132369
|
-
global: {
|
|
132370
|
-
type: Boolean,
|
|
132371
|
-
default: () => false
|
|
132372
|
-
},
|
|
132373
|
-
disabled: {
|
|
132374
|
-
type: Boolean,
|
|
132375
|
-
default: () => false
|
|
132376
|
-
}
|
|
132377
|
-
},
|
|
132378
|
-
data() {
|
|
132379
|
-
return {
|
|
132380
|
-
form: this.value,
|
|
132381
|
-
option: {}
|
|
132382
|
-
};
|
|
132383
|
-
},
|
|
132384
|
-
watch: {
|
|
132385
|
-
form() {
|
|
132386
|
-
this.relate(this.config);
|
|
132387
|
-
}
|
|
132388
|
-
},
|
|
132389
|
-
created() {
|
|
132390
|
-
this.relate(this.config);
|
|
132391
|
-
},
|
|
132392
|
-
mounted() {},
|
|
132393
|
-
methods: {
|
|
132394
|
-
input() {
|
|
132395
|
-
this.$emit('input', this.filter());
|
|
132396
|
-
},
|
|
132397
|
-
change() {
|
|
132398
|
-
this.$emit('change', this.filter(), this.form, this.option);
|
|
132399
|
-
},
|
|
132400
|
-
relate(config = {}) {
|
|
132401
|
-
Object.keys(config).forEach(a => {
|
|
132402
|
-
let {
|
|
132403
|
-
...r
|
|
132404
|
-
} = config[a];
|
|
132405
|
-
let child = r.children || r.child || r.node || null;
|
|
132406
|
-
if (child && Object.keys(child).length > 0) {
|
|
132407
|
-
this.relate(child);
|
|
132408
|
-
} else {
|
|
132409
|
-
r.default && (this.form[a] = r.default || '');
|
|
132410
|
-
}
|
|
132411
|
-
});
|
|
132412
|
-
this.$nextTick(() => {
|
|
132413
|
-
Object.keys(this.value).forEach(a => typeof this.value[a] == 'number' && (this.form[a] = `${this.value[a]}`));
|
|
132414
|
-
});
|
|
132415
|
-
},
|
|
132416
|
-
create(a, b) {
|
|
132417
|
-
const h = this.$createElement;
|
|
132418
|
-
let {
|
|
132419
|
-
...r
|
|
132420
|
-
} = this.config[a];
|
|
132421
|
-
let label = r.text || r.label || r.title || '';
|
|
132422
|
-
let width = r.width ? r.width : `${100 / this.cols}%`;
|
|
132423
|
-
let judge = [{
|
|
132424
|
-
required: true,
|
|
132425
|
-
message: `${label}不能为空`
|
|
132426
|
-
}];
|
|
132427
|
-
let valid = r.rule ? r.rule : r.must || this.must ? judge : [];
|
|
132428
|
-
let rules = this.disabled || r.disabled ? [] : (r.must || this.must) && r.rule ? [...judge, ...r.rule] : valid;
|
|
132429
|
-
let props = {
|
|
132430
|
-
name: a,
|
|
132431
|
-
prop: a,
|
|
132432
|
-
label,
|
|
132433
|
-
rules,
|
|
132434
|
-
disabled: r.disabled || this.disabled,
|
|
132435
|
-
...r
|
|
132436
|
-
};
|
|
132437
|
-
if (this.inline) {
|
|
132438
|
-
let style = {
|
|
132439
|
-
padding: `0 ${this.gutter / 2}px`,
|
|
132440
|
-
width
|
|
132441
|
-
};
|
|
132442
|
-
return h("el-form-item", {
|
|
132443
|
-
"style": style,
|
|
132444
|
-
"props": {
|
|
132445
|
-
...props
|
|
132446
|
-
}
|
|
132447
|
-
}, [this.format(r, a)]);
|
|
132448
|
-
} else {
|
|
132449
|
-
if (r.span) {
|
|
132450
|
-
return h("el-col", {
|
|
132451
|
-
"key": b,
|
|
132452
|
-
"attrs": {
|
|
132453
|
-
"span": Number(r.span)
|
|
132454
|
-
}
|
|
132455
|
-
}, [h("el-form-item", {
|
|
132456
|
-
"props": {
|
|
132457
|
-
...props
|
|
132458
|
-
}
|
|
132459
|
-
}, [this.format(r, a)])]);
|
|
132460
|
-
} else {
|
|
132461
|
-
return h("el-col", {
|
|
132462
|
-
"key": b,
|
|
132463
|
-
"style": {
|
|
132464
|
-
width
|
|
132465
|
-
}
|
|
132466
|
-
}, [h("el-form-item", {
|
|
132467
|
-
"props": {
|
|
132468
|
-
...props
|
|
132469
|
-
}
|
|
132470
|
-
}, [this.format(r, a)])]);
|
|
132471
|
-
}
|
|
132472
|
-
}
|
|
132473
|
-
},
|
|
132474
|
-
format(a, b) {
|
|
132475
|
-
const h = this.$createElement;
|
|
132476
|
-
this.option[b] = a;
|
|
132477
|
-
let child = a.children || a.child || a.node || null;
|
|
132478
|
-
if (child && Object.keys(child).length > 0) {
|
|
132479
|
-
return Object.keys(child).map((c, d) => {
|
|
132480
|
-
let {
|
|
132481
|
-
...r
|
|
132482
|
-
} = child[c];
|
|
132483
|
-
if (r.span) {
|
|
132484
|
-
return h("el-col", {
|
|
132485
|
-
"key": d,
|
|
132486
|
-
"attrs": {
|
|
132487
|
-
"span": Number(r.span)
|
|
132488
|
-
}
|
|
132489
|
-
}, [this.format(r, c)]);
|
|
132490
|
-
} else {
|
|
132491
|
-
let width = r.width ? r.width : `${100 / Object.keys(child).length}%`;
|
|
132492
|
-
return h("el-col", {
|
|
132493
|
-
"key": d,
|
|
132494
|
-
"style": {
|
|
132495
|
-
width
|
|
132496
|
-
}
|
|
132497
|
-
}, [this.format(r, c)]);
|
|
132498
|
-
}
|
|
132499
|
-
});
|
|
132500
|
-
} else {
|
|
132501
|
-
let config = {
|
|
132502
|
-
change: () => this.change(),
|
|
132503
|
-
form: this.form,
|
|
132504
|
-
field: b,
|
|
132505
|
-
...a
|
|
132506
|
-
};
|
|
132507
|
-
return h(_components_AformItem__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
|
132508
|
-
"on": {
|
|
132509
|
-
"input": this.input
|
|
132510
|
-
},
|
|
132511
|
-
"attrs": {
|
|
132512
|
-
"config": config
|
|
132513
|
-
}
|
|
132514
|
-
});
|
|
132515
|
-
}
|
|
132516
|
-
},
|
|
132517
|
-
filter() {
|
|
132518
|
-
let data = {};
|
|
132519
|
-
Object.keys(this.form).length > 0 && Object.keys(this.form).forEach(a => {
|
|
132520
|
-
if (this.option[a]) {
|
|
132521
|
-
let {
|
|
132522
|
-
...r
|
|
132523
|
-
} = this.option[a];
|
|
132524
|
-
if (r.split && r.split.length > 0) {
|
|
132525
|
-
r.split.forEach((b, c) => data[b] = this.form[a][c]);
|
|
132526
|
-
} else data[a] = this.form[a];
|
|
132527
|
-
}
|
|
132528
|
-
});
|
|
132529
|
-
return data;
|
|
132530
|
-
},
|
|
132531
|
-
submit() {
|
|
132532
|
-
if (this.global) {
|
|
132533
|
-
const {
|
|
132534
|
-
pageParams
|
|
132535
|
-
} = this.$store.state;
|
|
132536
|
-
this.$store.commit('setFormParams', this.filter());
|
|
132537
|
-
this.$store.commit('setPageParams', {
|
|
132538
|
-
...pageParams,
|
|
132539
|
-
page: 1
|
|
132540
|
-
});
|
|
132541
|
-
}
|
|
132542
|
-
this.$nextTick(() => this.$emit('submit', this.filter(), this.form, this.option));
|
|
132543
|
-
},
|
|
132544
|
-
cancel() {
|
|
132545
|
-
this.$refs.form && this.$refs.form.resetFields && this.$refs.form.resetFields();
|
|
132546
|
-
this.$nextTick(() => {
|
|
132547
|
-
this.form = {};
|
|
132548
|
-
this.$nextTick(() => {
|
|
132549
|
-
this.relate(this.config);
|
|
132550
|
-
this.$nextTick(() => {
|
|
132551
|
-
if (this.global) {
|
|
132552
|
-
const {
|
|
132553
|
-
pageParams
|
|
132554
|
-
} = this.$store.state;
|
|
132555
|
-
this.$store.commit('setFormParams', this.filter());
|
|
132556
|
-
this.$store.commit('setPageParams', {
|
|
132557
|
-
...pageParams,
|
|
132558
|
-
page: 1
|
|
132559
|
-
});
|
|
132560
|
-
}
|
|
132561
|
-
this.$nextTick(() => this.$emit('cancel', this.filter(), this.form, this.option));
|
|
132562
|
-
});
|
|
132563
|
-
});
|
|
132564
|
-
});
|
|
132565
|
-
}
|
|
132566
|
-
},
|
|
132567
132337
|
render() {
|
|
132568
132338
|
const h = arguments[0];
|
|
132569
132339
|
let {
|
|
132570
|
-
|
|
132571
|
-
padding = '0',
|
|
132572
|
-
size = 'small',
|
|
132573
|
-
loading = false,
|
|
132574
|
-
labelWidth = 'auto',
|
|
132575
|
-
labelPosition = 'top',
|
|
132576
|
-
finishText = '保存',
|
|
132577
|
-
submitText = '搜索',
|
|
132578
|
-
rejectText = '驳回',
|
|
132579
|
-
cancelText = '重置',
|
|
132580
|
-
action = [],
|
|
132581
|
-
...rest
|
|
132340
|
+
...props
|
|
132582
132341
|
} = this.$attrs;
|
|
132583
|
-
let style = this.inline ? {
|
|
132584
|
-
margin: `0 -${this.gutter / 2}px`
|
|
132585
|
-
} : {};
|
|
132586
|
-
let {
|
|
132587
|
-
finish = null,
|
|
132588
|
-
submit = null,
|
|
132589
|
-
reject = null,
|
|
132590
|
-
cancel = null
|
|
132591
|
-
} = this.$listeners;
|
|
132592
|
-
let props = {
|
|
132593
|
-
size,
|
|
132594
|
-
inline: this.inline,
|
|
132595
|
-
labelWidth,
|
|
132596
|
-
labelPosition,
|
|
132597
|
-
style,
|
|
132598
|
-
...rest
|
|
132599
|
-
};
|
|
132600
132342
|
return h("div", {
|
|
132601
|
-
"class": "a-form"
|
|
132602
|
-
|
|
132603
|
-
margin,
|
|
132604
|
-
padding
|
|
132605
|
-
}
|
|
132606
|
-
}, [h("el-form", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
132607
|
-
"ref": "form"
|
|
132608
|
-
}, {
|
|
132609
|
-
"props": {
|
|
132610
|
-
model: this.form,
|
|
132611
|
-
...props
|
|
132612
|
-
}
|
|
132613
|
-
}]), [this.inline ? Object.keys(this.config).map((a, b) => this.create(a, b)) : h("div", {
|
|
132614
|
-
"class": "column"
|
|
132615
|
-
}, [h("el-row", {
|
|
132616
|
-
"attrs": {
|
|
132617
|
-
"gutter": Number(this.gutter)
|
|
132618
|
-
},
|
|
132619
|
-
"class": "main-rows"
|
|
132620
|
-
}, [Object.keys(this.config).map((a, b) => this.create(a, b))])]), (finish || submit || reject || cancel || action.length > 0) && h("el-form-item", {
|
|
132343
|
+
"class": "a-form"
|
|
132344
|
+
}, [h(_components_Aform_AfEditor__WEBPACK_IMPORTED_MODULE_1__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
132621
132345
|
"attrs": {
|
|
132622
|
-
"
|
|
132623
|
-
"
|
|
132624
|
-
},
|
|
132625
|
-
"class": "action",
|
|
132626
|
-
"style": {
|
|
132627
|
-
paddingLeft: `${this.gutter}px`
|
|
132628
|
-
}
|
|
132629
|
-
}, [finish && h("el-button", {
|
|
132630
|
-
"attrs": {
|
|
132631
|
-
"disabled": loading,
|
|
132632
|
-
"type": "success"
|
|
132633
|
-
},
|
|
132634
|
-
"on": {
|
|
132635
|
-
"click": this.submit
|
|
132636
|
-
}
|
|
132637
|
-
}, [finishText]), submit && h("el-button", {
|
|
132638
|
-
"attrs": {
|
|
132639
|
-
"disabled": loading,
|
|
132640
|
-
"type": "primary"
|
|
132641
|
-
},
|
|
132642
|
-
"on": {
|
|
132643
|
-
"click": this.submit
|
|
132644
|
-
}
|
|
132645
|
-
}, [submitText]), reject && h("el-button", {
|
|
132646
|
-
"attrs": {
|
|
132647
|
-
"disabled": loading,
|
|
132648
|
-
"type": "warning"
|
|
132649
|
-
},
|
|
132650
|
-
"on": {
|
|
132651
|
-
"click": this.submit
|
|
132652
|
-
}
|
|
132653
|
-
}, [rejectText]), cancel && h("el-button", {
|
|
132654
|
-
"attrs": {
|
|
132655
|
-
"disabled": loading,
|
|
132656
|
-
"type": "default"
|
|
132657
|
-
},
|
|
132658
|
-
"on": {
|
|
132659
|
-
"click": this.cancel
|
|
132660
|
-
}
|
|
132661
|
-
}, [cancelText]), action.map((a, b) => h("el-button", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
132662
|
-
"key": b,
|
|
132663
|
-
"attrs": {
|
|
132664
|
-
"disabled": loading
|
|
132346
|
+
"inline": true,
|
|
132347
|
+
"global": false
|
|
132665
132348
|
}
|
|
132666
|
-
},
|
|
132349
|
+
}, {
|
|
132350
|
+
"on": props
|
|
132351
|
+
}, {}, {
|
|
132352
|
+
"props": props
|
|
132353
|
+
}]))]);
|
|
132667
132354
|
}
|
|
132668
132355
|
});
|
|
132669
132356
|
|
|
@@ -133357,6 +133044,13 @@ module.exports = _default;
|
|
|
133357
133044
|
|
|
133358
133045
|
/***/ }),
|
|
133359
133046
|
|
|
133047
|
+
/***/ "b1f4":
|
|
133048
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
133049
|
+
|
|
133050
|
+
// extracted by mini-css-extract-plugin
|
|
133051
|
+
|
|
133052
|
+
/***/ }),
|
|
133053
|
+
|
|
133360
133054
|
/***/ "b224":
|
|
133361
133055
|
/***/ (function(module, exports, __webpack_require__) {
|
|
133362
133056
|
|
|
@@ -134411,6 +134105,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
134411
134105
|
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
134412
134106
|
name: 'AfEditor',
|
|
134413
134107
|
props: {
|
|
134108
|
+
id: {
|
|
134109
|
+
type: String,
|
|
134110
|
+
default: () => `a-f-editor-id-${Math.random()}`
|
|
134111
|
+
},
|
|
134112
|
+
value: {
|
|
134113
|
+
type: Object,
|
|
134114
|
+
default: () => ({})
|
|
134115
|
+
},
|
|
134414
134116
|
must: {
|
|
134415
134117
|
type: Boolean,
|
|
134416
134118
|
default: () => false
|
|
@@ -134425,7 +134127,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
134425
134127
|
},
|
|
134426
134128
|
gutter: {
|
|
134427
134129
|
type: String,
|
|
134428
|
-
default: () => '
|
|
134130
|
+
default: () => '16'
|
|
134429
134131
|
},
|
|
134430
134132
|
config: {
|
|
134431
134133
|
type: Object,
|
|
@@ -134439,6 +134141,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
134439
134141
|
type: Boolean,
|
|
134440
134142
|
default: () => false
|
|
134441
134143
|
},
|
|
134144
|
+
prompt: {
|
|
134145
|
+
type: Boolean,
|
|
134146
|
+
default: () => false
|
|
134147
|
+
},
|
|
134148
|
+
review: {
|
|
134149
|
+
type: Boolean,
|
|
134150
|
+
default: () => false
|
|
134151
|
+
},
|
|
134442
134152
|
disabled: {
|
|
134443
134153
|
type: Boolean,
|
|
134444
134154
|
default: () => false
|
|
@@ -134446,43 +134156,56 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
134446
134156
|
},
|
|
134447
134157
|
data() {
|
|
134448
134158
|
return {
|
|
134449
|
-
form: this.
|
|
134159
|
+
form: this.value,
|
|
134450
134160
|
option: {},
|
|
134451
|
-
|
|
134452
|
-
height: 'auto'
|
|
134161
|
+
width: 'auto'
|
|
134453
134162
|
};
|
|
134454
134163
|
},
|
|
134455
134164
|
watch: {
|
|
134456
|
-
|
|
134457
|
-
|
|
134165
|
+
values: {
|
|
134166
|
+
immediate: true,
|
|
134167
|
+
deep: true,
|
|
134168
|
+
handler() {
|
|
134169
|
+
this.relate(this.config);
|
|
134170
|
+
}
|
|
134458
134171
|
}
|
|
134459
134172
|
},
|
|
134460
|
-
|
|
134173
|
+
mounted() {
|
|
134174
|
+
this.resize();
|
|
134461
134175
|
this.relate(this.config);
|
|
134462
134176
|
},
|
|
134463
|
-
mounted() {},
|
|
134464
134177
|
methods: {
|
|
134465
|
-
input() {
|
|
134178
|
+
input(a) {
|
|
134466
134179
|
this.$emit('input', this.filter());
|
|
134467
134180
|
},
|
|
134468
134181
|
change() {
|
|
134469
134182
|
this.$emit('change', this.filter(), this.form, this.option);
|
|
134470
134183
|
},
|
|
134184
|
+
resize() {
|
|
134185
|
+
let width = 0;
|
|
134186
|
+
let items = document.getElementsByClassName(`${this.id}-item`);
|
|
134187
|
+
if (items) for (let a = 0; a < items.length; a++) {
|
|
134188
|
+
items[a].firstChild.clientWidth > width && (width = items[a].firstChild.clientWidth);
|
|
134189
|
+
}
|
|
134190
|
+
this.width = `${width}px`;
|
|
134191
|
+
},
|
|
134471
134192
|
relate(config = {}) {
|
|
134472
|
-
|
|
134193
|
+
let data = {};
|
|
134194
|
+
if (this.values) Object.keys(config).forEach(a => {
|
|
134473
134195
|
let {
|
|
134474
134196
|
...r
|
|
134475
134197
|
} = config[a];
|
|
134476
134198
|
let child = r.children || r.child || r.node || null;
|
|
134477
|
-
if (child && Object.keys(child).length > 0)
|
|
134478
|
-
|
|
134479
|
-
|
|
134480
|
-
|
|
134481
|
-
|
|
134482
|
-
});
|
|
134483
|
-
this.$nextTick(() => {
|
|
134484
|
-
Object.keys(this.values).forEach(a => typeof this.values[a] == 'number' && (this.form[a] = `${this.values[a]}`));
|
|
134199
|
+
if (child && Object.keys(child).length > 0) this.relate(child);
|
|
134200
|
+
if (this.values[a] != undefined) {
|
|
134201
|
+
if (r.multiple) this.values[a] != '' && (data[a] = this.values[a].split(','));else data[a] = `${this.values[a]}`;
|
|
134202
|
+
} else r.default && (data[a] = r.default);
|
|
134203
|
+
if (r.type == 'password') data[a] = '';
|
|
134485
134204
|
});
|
|
134205
|
+
this.form = {
|
|
134206
|
+
...data,
|
|
134207
|
+
...this.value
|
|
134208
|
+
};
|
|
134486
134209
|
},
|
|
134487
134210
|
create(a, b) {
|
|
134488
134211
|
const h = this.$createElement;
|
|
@@ -134491,18 +134214,26 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
134491
134214
|
} = this.config[a];
|
|
134492
134215
|
let label = r.text || r.label || r.title || '';
|
|
134493
134216
|
let width = r.width ? r.width : `${100 / this.cols}%`;
|
|
134217
|
+
let least = r.minlength ? [{
|
|
134218
|
+
min: r.minlength,
|
|
134219
|
+
message: `最少${r.minlength}个字符`
|
|
134220
|
+
}] : [];
|
|
134221
|
+
let limit = r.maxlength ? [{
|
|
134222
|
+
max: r.maxlength,
|
|
134223
|
+
message: `最多${r.maxlength}个字符`
|
|
134224
|
+
}] : [];
|
|
134494
134225
|
let judge = [{
|
|
134495
134226
|
required: true,
|
|
134496
134227
|
message: `${label}不能为空`
|
|
134497
|
-
}];
|
|
134228
|
+
}, ...least, ...limit];
|
|
134498
134229
|
let valid = r.rule ? r.rule : r.must || this.must ? judge : [];
|
|
134499
134230
|
let rules = this.disabled || r.disabled ? [] : (r.must || this.must) && r.rule ? [...judge, ...r.rule] : valid;
|
|
134500
134231
|
let props = {
|
|
134501
134232
|
name: a,
|
|
134502
134233
|
prop: a,
|
|
134503
|
-
label,
|
|
134234
|
+
label: this.review ? `${label}:` : label,
|
|
134235
|
+
labelWidth: this.width,
|
|
134504
134236
|
rules,
|
|
134505
|
-
disabled: r.disabled || this.disabled,
|
|
134506
134237
|
...r
|
|
134507
134238
|
};
|
|
134508
134239
|
if (this.inline) {
|
|
@@ -134510,12 +134241,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
134510
134241
|
padding: `0 ${this.gutter / 2}px`,
|
|
134511
134242
|
width
|
|
134512
134243
|
};
|
|
134513
|
-
return h("el-form-item", {
|
|
134244
|
+
return h("div", [h("el-form-item", {
|
|
134245
|
+
"class": `${this.id}-item`,
|
|
134514
134246
|
"style": style,
|
|
134515
134247
|
"props": {
|
|
134516
134248
|
...props
|
|
134517
134249
|
}
|
|
134518
|
-
}, [this.format(r, a)]);
|
|
134250
|
+
}, [this.format(r, a)]), this.$slots.default]);
|
|
134519
134251
|
} else {
|
|
134520
134252
|
if (r.span) {
|
|
134521
134253
|
return h("el-col", {
|
|
@@ -134524,6 +134256,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
134524
134256
|
"span": Number(r.span)
|
|
134525
134257
|
}
|
|
134526
134258
|
}, [h("el-form-item", {
|
|
134259
|
+
"class": `${this.id}-item`,
|
|
134527
134260
|
"props": {
|
|
134528
134261
|
...props
|
|
134529
134262
|
}
|
|
@@ -134535,6 +134268,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
134535
134268
|
width
|
|
134536
134269
|
}
|
|
134537
134270
|
}, [h("el-form-item", {
|
|
134271
|
+
"class": `${this.id}-item`,
|
|
134538
134272
|
"props": {
|
|
134539
134273
|
...props
|
|
134540
134274
|
}
|
|
@@ -134551,9 +134285,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
134551
134285
|
let {
|
|
134552
134286
|
...r
|
|
134553
134287
|
} = child[c];
|
|
134288
|
+
let space = a.gutter ? a.gutter / 2 : this.gutter / 4;
|
|
134289
|
+
let style = {
|
|
134290
|
+
padding: `0 ${space}px`
|
|
134291
|
+
};
|
|
134292
|
+
r.type = r.type ? r.type : a.type;
|
|
134554
134293
|
if (r.span) {
|
|
134555
134294
|
return h("el-col", {
|
|
134556
134295
|
"key": d,
|
|
134296
|
+
"style": style,
|
|
134557
134297
|
"attrs": {
|
|
134558
134298
|
"span": Number(r.span)
|
|
134559
134299
|
}
|
|
@@ -134563,19 +134303,26 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
134563
134303
|
return h("el-col", {
|
|
134564
134304
|
"key": d,
|
|
134565
134305
|
"style": {
|
|
134566
|
-
width
|
|
134306
|
+
width,
|
|
134307
|
+
...style
|
|
134567
134308
|
}
|
|
134568
134309
|
}, [this.format(r, c)]);
|
|
134569
134310
|
}
|
|
134570
134311
|
});
|
|
134571
134312
|
} else {
|
|
134572
134313
|
let config = {
|
|
134314
|
+
disabled: a.disabled || this.disabled,
|
|
134573
134315
|
change: () => this.change(),
|
|
134574
134316
|
form: this.form,
|
|
134317
|
+
quick: true,
|
|
134575
134318
|
field: b,
|
|
134576
134319
|
...a
|
|
134577
134320
|
};
|
|
134578
|
-
|
|
134321
|
+
if (this.review && !a.data) {
|
|
134322
|
+
return h("div", {
|
|
134323
|
+
"class": "form-value"
|
|
134324
|
+
}, [this.form[b]]);
|
|
134325
|
+
} else return h(_components_AformItem__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
|
134579
134326
|
"on": {
|
|
134580
134327
|
"input": this.input
|
|
134581
134328
|
},
|
|
@@ -134587,14 +134334,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
134587
134334
|
},
|
|
134588
134335
|
filter() {
|
|
134589
134336
|
let data = {};
|
|
134590
|
-
Object.keys(this.form).
|
|
134337
|
+
Object.keys(this.form).forEach(a => {
|
|
134591
134338
|
if (this.option[a]) {
|
|
134592
134339
|
let {
|
|
134593
134340
|
...r
|
|
134594
134341
|
} = this.option[a];
|
|
134595
|
-
|
|
134596
|
-
|
|
134597
|
-
|
|
134342
|
+
let ignore = r.ignore || r.empty || r.blank || r.omit;
|
|
134343
|
+
if (!ignore) {
|
|
134344
|
+
if (r.split && r.split.length > 0) r.split.forEach((b, c) => data[b] = this.form[a][c]);
|
|
134345
|
+
if (r.multiple && this.form[a] != '') data[a] = this.form[a].join();else data[a] = this.form[a];
|
|
134346
|
+
}
|
|
134598
134347
|
}
|
|
134599
134348
|
});
|
|
134600
134349
|
return data;
|
|
@@ -134610,7 +134359,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
134610
134359
|
page: 1
|
|
134611
134360
|
});
|
|
134612
134361
|
}
|
|
134613
|
-
this.$refs.form.validate(valid
|
|
134362
|
+
this.$refs.form.validate((valid, items) => {
|
|
134363
|
+
if (valid) {
|
|
134364
|
+
this.$emit('submit', this.filter(), this.form, this.option);
|
|
134365
|
+
} else if (this.prompt) {
|
|
134366
|
+
Object.keys(items).forEach(a => items[a].forEach(b => this.$message.error(b.message)));
|
|
134367
|
+
}
|
|
134368
|
+
});
|
|
134614
134369
|
},
|
|
134615
134370
|
cancel() {
|
|
134616
134371
|
this.$refs.form && this.$refs.form.resetFields && this.$refs.form.resetFields();
|
|
@@ -134638,14 +134393,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
134638
134393
|
render() {
|
|
134639
134394
|
const h = arguments[0];
|
|
134640
134395
|
let {
|
|
134396
|
+
width = '100%',
|
|
134641
134397
|
margin = '0',
|
|
134642
134398
|
padding = '0',
|
|
134643
134399
|
size = 'small',
|
|
134644
134400
|
loading = false,
|
|
134645
134401
|
labelWidth = 'auto',
|
|
134646
|
-
labelPosition = 'top',
|
|
134402
|
+
labelPosition = this.review ? 'right' : 'top',
|
|
134647
134403
|
finishText = '保存',
|
|
134648
|
-
submitText = '
|
|
134404
|
+
submitText = '提交',
|
|
134649
134405
|
rejectText = '驳回',
|
|
134650
134406
|
cancelText = '取消',
|
|
134651
134407
|
action = [],
|
|
@@ -134654,47 +134410,54 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
134654
134410
|
let style = this.inline ? {
|
|
134655
134411
|
margin: `0 -${this.gutter / 2}px`
|
|
134656
134412
|
} : {};
|
|
134657
|
-
let {
|
|
134658
|
-
finish = null,
|
|
134659
|
-
submit = null,
|
|
134660
|
-
reject = null,
|
|
134661
|
-
cancel = null
|
|
134662
|
-
} = this.$listeners;
|
|
134663
134413
|
let props = {
|
|
134664
134414
|
size,
|
|
134665
134415
|
inline: this.inline,
|
|
134666
134416
|
labelWidth,
|
|
134667
134417
|
labelPosition,
|
|
134668
|
-
style,
|
|
134669
134418
|
...rest
|
|
134670
134419
|
};
|
|
134420
|
+
let {
|
|
134421
|
+
finish = null,
|
|
134422
|
+
submit = null,
|
|
134423
|
+
reject = null,
|
|
134424
|
+
cancel = null
|
|
134425
|
+
} = this.$listeners;
|
|
134671
134426
|
return h("div", {
|
|
134672
134427
|
"class": "a-f-editor",
|
|
134673
134428
|
"style": {
|
|
134429
|
+
width,
|
|
134674
134430
|
margin,
|
|
134675
134431
|
padding
|
|
134676
134432
|
}
|
|
134677
134433
|
}, [h("el-form", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
134678
|
-
"ref": "form"
|
|
134434
|
+
"ref": "form",
|
|
134435
|
+
"attrs": {
|
|
134436
|
+
"id": this.id
|
|
134437
|
+
},
|
|
134438
|
+
"style": style
|
|
134679
134439
|
}, {
|
|
134680
134440
|
"props": {
|
|
134681
134441
|
model: this.form,
|
|
134682
134442
|
...props
|
|
134683
134443
|
}
|
|
134684
|
-
}]), [this.inline ? Object.keys(this.config).map((a, b) => this.create(a, b)) : h("el-row", {
|
|
134444
|
+
}]), [this.inline ? Object.keys(this.config).map((a, b) => this.config[a] && this.create(a, b)) : h("el-row", {
|
|
134685
134445
|
"attrs": {
|
|
134686
134446
|
"gutter": Number(this.gutter)
|
|
134687
134447
|
},
|
|
134688
134448
|
"class": "main-rows"
|
|
134689
|
-
}, [Object.keys(this.config).map((a, b) => this.create(a, b)), this.$slots.default]), (finish || submit || reject || cancel || action.length > 0) && h("
|
|
134449
|
+
}, [Object.keys(this.config).map((a, b) => this.config[a] && this.create(a, b)), h("el-col", [this.$slots.default])]), (finish || submit || reject || cancel || action.length > 0) && h("div", {
|
|
134450
|
+
"class": "action"
|
|
134451
|
+
}, [h("el-form-item", {
|
|
134690
134452
|
"attrs": {
|
|
134691
134453
|
"name": "action",
|
|
134692
|
-
"label": "action"
|
|
134693
|
-
|
|
134694
|
-
|
|
134454
|
+
"label": "action",
|
|
134455
|
+
"label-width": "0"
|
|
134456
|
+
}
|
|
134695
134457
|
}, [finish && h("el-button", {
|
|
134696
134458
|
"attrs": {
|
|
134697
134459
|
"disabled": loading,
|
|
134460
|
+
"loading": loading,
|
|
134698
134461
|
"type": "success"
|
|
134699
134462
|
},
|
|
134700
134463
|
"on": {
|
|
@@ -134703,6 +134466,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
134703
134466
|
}, [finishText]), submit && h("el-button", {
|
|
134704
134467
|
"attrs": {
|
|
134705
134468
|
"disabled": loading,
|
|
134469
|
+
"loading": loading,
|
|
134706
134470
|
"type": "primary"
|
|
134707
134471
|
},
|
|
134708
134472
|
"on": {
|
|
@@ -134711,6 +134475,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
134711
134475
|
}, [submitText]), reject && h("el-button", {
|
|
134712
134476
|
"attrs": {
|
|
134713
134477
|
"disabled": loading,
|
|
134478
|
+
"loading": loading,
|
|
134714
134479
|
"type": "warning"
|
|
134715
134480
|
},
|
|
134716
134481
|
"on": {
|
|
@@ -134719,17 +134484,20 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
134719
134484
|
}, [rejectText]), cancel && h("el-button", {
|
|
134720
134485
|
"attrs": {
|
|
134721
134486
|
"disabled": loading,
|
|
134722
|
-
"type":
|
|
134487
|
+
"type": !finish && !submit && !reject ? 'primary' : 'default'
|
|
134723
134488
|
},
|
|
134724
134489
|
"on": {
|
|
134725
134490
|
"click": this.cancel
|
|
134726
134491
|
}
|
|
134727
|
-
}, [cancelText]), action.map((a, b) => h("el-button", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
134492
|
+
}, [!finish && !submit && !reject ? '确定' : cancelText]), action.map((a, b) => h("el-button", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
134728
134493
|
"key": b,
|
|
134729
134494
|
"attrs": {
|
|
134730
134495
|
"disabled": loading
|
|
134496
|
+
},
|
|
134497
|
+
"on": {
|
|
134498
|
+
"click": e => a.click(this.filter(), this.form, this.option, e)
|
|
134731
134499
|
}
|
|
134732
|
-
}, a]), [a.label || a.title || a.text || '']))])])]);
|
|
134500
|
+
}, a]), [a.label || a.title || a.text || '']))])])])]);
|
|
134733
134501
|
}
|
|
134734
134502
|
});
|
|
134735
134503
|
|
|
@@ -135781,7 +135549,7 @@ exports.onIrrelevantElement = onIrrelevantElement;
|
|
|
135781
135549
|
|
|
135782
135550
|
/***/ }),
|
|
135783
135551
|
|
|
135784
|
-
/***/ "
|
|
135552
|
+
/***/ "ba86":
|
|
135785
135553
|
/***/ (function(module, exports, __webpack_require__) {
|
|
135786
135554
|
|
|
135787
135555
|
// extracted by mini-css-extract-plugin
|
|
@@ -136845,6 +136613,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
136845
136613
|
Apopconfirm: _components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__["default"]
|
|
136846
136614
|
},
|
|
136847
136615
|
props: {
|
|
136616
|
+
id: {
|
|
136617
|
+
type: String,
|
|
136618
|
+
default: () => `id-a-table-${Math.random()}`
|
|
136619
|
+
},
|
|
136848
136620
|
margin: {
|
|
136849
136621
|
type: String,
|
|
136850
136622
|
default: () => '0'
|
|
@@ -136893,9 +136665,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
136893
136665
|
type: Object,
|
|
136894
136666
|
default: () => ({})
|
|
136895
136667
|
},
|
|
136896
|
-
|
|
136668
|
+
height: {
|
|
136897
136669
|
type: String,
|
|
136898
|
-
default: () => '
|
|
136670
|
+
default: () => '520'
|
|
136899
136671
|
},
|
|
136900
136672
|
elementLoadingText: {
|
|
136901
136673
|
type: String,
|
|
@@ -136979,11 +136751,20 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
136979
136751
|
type: Boolean,
|
|
136980
136752
|
default: () => true
|
|
136981
136753
|
},
|
|
136754
|
+
pages: {
|
|
136755
|
+
type: Object,
|
|
136756
|
+
default: () => ({})
|
|
136757
|
+
},
|
|
136982
136758
|
page: {
|
|
136983
136759
|
type: Boolean,
|
|
136984
136760
|
default: () => true
|
|
136985
136761
|
}
|
|
136986
136762
|
},
|
|
136763
|
+
data() {
|
|
136764
|
+
return {
|
|
136765
|
+
maxHeight: this.height
|
|
136766
|
+
};
|
|
136767
|
+
},
|
|
136987
136768
|
mounted() {
|
|
136988
136769
|
this.$refs['a-table'].bodyWrapper.addEventListener('wheel', this.scroll);
|
|
136989
136770
|
},
|
|
@@ -137006,14 +136787,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
137006
136787
|
} = a;
|
|
137007
136788
|
let child = a.children || a.child || a.node || a.list || [];
|
|
137008
136789
|
let field = a.field || a.index || a.name || a.prop;
|
|
137009
|
-
let label = a.label || a.title || a.text;
|
|
136790
|
+
let label = a.label || a.title || a.text || '';
|
|
137010
136791
|
let props = {
|
|
137011
136792
|
key: b,
|
|
137012
136793
|
prop: field,
|
|
137013
136794
|
scopedSlot: field,
|
|
137014
136795
|
sortable: field ? a.sortable ? a.sortable : this.sortable : false,
|
|
137015
136796
|
formatter: render ? render : type ? (e, f, g, h) => this.format(a, b, e, h) : null,
|
|
137016
|
-
showOverflowTooltip: a.showOverflowTooltip ? a.showOverflowTooltip : this.showOverflowTooltip,
|
|
136797
|
+
showOverflowTooltip: render ? false : type ? false : a.showOverflowTooltip ? a.showOverflowTooltip : this.showOverflowTooltip,
|
|
137017
136798
|
...r
|
|
137018
136799
|
};
|
|
137019
136800
|
return h("el-table-column", {
|
|
@@ -137022,7 +136803,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
137022
136803
|
}
|
|
137023
136804
|
}, [h("template", {
|
|
137024
136805
|
"slot": "header"
|
|
137025
|
-
}, [header ? () => header(r) : label && label != '' && label.length
|
|
136806
|
+
}, [header ? () => header(r) : label && label != '' && label.length > 8 ? h("el-tooltip", {
|
|
137026
136807
|
"attrs": {
|
|
137027
136808
|
"content": label,
|
|
137028
136809
|
"placement": "top"
|
|
@@ -137047,53 +136828,54 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
137047
136828
|
handle,
|
|
137048
136829
|
remove
|
|
137049
136830
|
} = this.$listeners;
|
|
137050
|
-
if (review || modify || update || handle || remove || this.$listeners.delete || this.$listeners.export) {
|
|
136831
|
+
if (review || modify || update || handle || remove || this.$listeners.delete || this.$listeners.export || this.action.length > 0) {
|
|
137051
136832
|
return {
|
|
137052
136833
|
fixed: 'right',
|
|
137053
136834
|
align: 'center',
|
|
137054
136835
|
width: this.actionWidth,
|
|
137055
136836
|
label: this.actionTitle,
|
|
137056
|
-
|
|
136837
|
+
showOverflowTooltip: false,
|
|
136838
|
+
formatter: (a, b, c, d) => h("div", {
|
|
137057
136839
|
"class": "action"
|
|
137058
136840
|
}, [review && h("i", {
|
|
137059
136841
|
"class": "el-icon-view",
|
|
137060
136842
|
"on": {
|
|
137061
|
-
"click": () => review(
|
|
136843
|
+
"click": () => review(a, b, c, d)
|
|
137062
136844
|
}
|
|
137063
136845
|
}), modify && h("i", {
|
|
137064
136846
|
"class": "el-icon-edit",
|
|
137065
136847
|
"on": {
|
|
137066
|
-
"click": () => modify(
|
|
136848
|
+
"click": () => modify(a, b, c, d)
|
|
137067
136849
|
}
|
|
137068
136850
|
}), update && h("i", {
|
|
137069
136851
|
"class": "el-icon-edit",
|
|
137070
136852
|
"on": {
|
|
137071
|
-
"click": () => update(
|
|
136853
|
+
"click": () => update(a, b, c, d)
|
|
137072
136854
|
}
|
|
137073
136855
|
}), handle && h("i", {
|
|
137074
136856
|
"class": "el-icon-edit",
|
|
137075
136857
|
"on": {
|
|
137076
|
-
"click": () => handle(
|
|
136858
|
+
"click": () => handle(a, b, c, d)
|
|
137077
136859
|
}
|
|
137078
136860
|
}), remove && h(_components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__["default"], {
|
|
137079
136861
|
"on": {
|
|
137080
|
-
"submit": () => remove(
|
|
136862
|
+
"submit": () => remove(a, b, c, d)
|
|
137081
136863
|
}
|
|
137082
136864
|
}), this.$listeners.delete && h(_components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__["default"], {
|
|
137083
136865
|
"on": {
|
|
137084
|
-
"submit": () => this.$listeners.delete(
|
|
136866
|
+
"submit": () => this.$listeners.delete(a, b, c, d)
|
|
137085
136867
|
}
|
|
137086
136868
|
}), this.$listeners.export && h("i", {
|
|
137087
136869
|
"class": "el-icon-download",
|
|
137088
136870
|
"on": {
|
|
137089
|
-
"click": () => this.$listeners.export(
|
|
136871
|
+
"click": () => this.$listeners.export(a, b, c, d)
|
|
137090
136872
|
}
|
|
137091
136873
|
}), this.action.map((a, b) => h("el-button", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
137092
136874
|
"key": b,
|
|
137093
136875
|
"on": {
|
|
137094
|
-
"click": e => a.click
|
|
136876
|
+
"click": e => a.click(a, b, c, d, e)
|
|
137095
136877
|
}
|
|
137096
|
-
}, a]), [a.label || a.title || a.text]))])
|
|
136878
|
+
}, a]), [a.label || a.title || a.text || '']))])
|
|
137097
136879
|
};
|
|
137098
136880
|
}
|
|
137099
136881
|
},
|
|
@@ -137134,58 +136916,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
137134
136916
|
this.$emit('change', pages);
|
|
137135
136917
|
this.search(pages);
|
|
137136
136918
|
},
|
|
137137
|
-
format({
|
|
137138
|
-
type = '',
|
|
137139
|
-
name = '',
|
|
137140
|
-
data = [],
|
|
137141
|
-
text = '',
|
|
137142
|
-
label = '',
|
|
137143
|
-
title = '',
|
|
137144
|
-
field = '',
|
|
137145
|
-
dicts = [],
|
|
137146
|
-
...props
|
|
137147
|
-
}, colIndex, item, rowIndex) {
|
|
136919
|
+
format(a, b, c, d) {
|
|
137148
136920
|
const h = this.$createElement;
|
|
137149
|
-
|
|
137150
|
-
if (field != '') return h(_components_Aenume__WEBPACK_IMPORTED_MODULE_3__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
137151
|
-
"key": colIndex + '-' + rowIndex,
|
|
137152
|
-
"attrs": {
|
|
137153
|
-
"field": field,
|
|
137154
|
-
"data": dicts.length > 0 ? dicts : data
|
|
137155
|
-
}
|
|
137156
|
-
}, props, {
|
|
137157
|
-
"model": {
|
|
137158
|
-
value: item[field],
|
|
137159
|
-
callback: $$v => {
|
|
137160
|
-
this.$set(item, field, $$v);
|
|
137161
|
-
}
|
|
137162
|
-
}
|
|
137163
|
-
}]));
|
|
137164
|
-
return h(_components_Aenume__WEBPACK_IMPORTED_MODULE_3__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
137165
|
-
"key": colIndex + '-' + rowIndex,
|
|
137166
|
-
"attrs": {
|
|
137167
|
-
"field": name,
|
|
137168
|
-
"data": dicts.length > 0 ? dicts : data
|
|
137169
|
-
}
|
|
137170
|
-
}, props, {
|
|
137171
|
-
"model": {
|
|
137172
|
-
value: item[name],
|
|
137173
|
-
callback: $$v => {
|
|
137174
|
-
this.$set(item, name, $$v);
|
|
137175
|
-
}
|
|
137176
|
-
}
|
|
137177
|
-
}]));
|
|
137178
|
-
}
|
|
136921
|
+
let field = a.field || a.index || a.name || a.prop;
|
|
137179
136922
|
return h(_components_AformItem__WEBPACK_IMPORTED_MODULE_6__["default"], {
|
|
137180
|
-
"key":
|
|
136923
|
+
"key": b + '-' + d,
|
|
137181
136924
|
"attrs": {
|
|
137182
136925
|
"config": {
|
|
137183
|
-
|
|
137184
|
-
|
|
137185
|
-
|
|
137186
|
-
field: field != '' ? field : name != '' ? name : '',
|
|
137187
|
-
label: text != '' ? text : label != '' ? label : title != '' ? title : '无栏目名称',
|
|
137188
|
-
...props
|
|
136926
|
+
form: c,
|
|
136927
|
+
field,
|
|
136928
|
+
...a
|
|
137189
136929
|
}
|
|
137190
136930
|
}
|
|
137191
136931
|
});
|
|
@@ -137208,22 +136948,23 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
137208
136948
|
},
|
|
137209
136949
|
render() {
|
|
137210
136950
|
const h = arguments[0];
|
|
137211
|
-
const {
|
|
137212
|
-
...props
|
|
137213
|
-
} = this.$attrs;
|
|
137214
136951
|
const {
|
|
137215
136952
|
...r
|
|
137216
136953
|
} = this.record;
|
|
137217
|
-
const data = r.data
|
|
137218
|
-
const size = r.total
|
|
136954
|
+
const data = r.data || r.list || r.rows || r.record || r.records || [];
|
|
136955
|
+
const size = r.total || r.count || r.size || 0;
|
|
137219
136956
|
const {
|
|
137220
136957
|
pageParams = {}
|
|
137221
136958
|
} = this.$store.state;
|
|
136959
|
+
const {
|
|
136960
|
+
...props
|
|
136961
|
+
} = this.$attrs;
|
|
137222
136962
|
return h("div", {
|
|
137223
136963
|
"class": this.border ? 'a-table' : 'a-table border'
|
|
137224
|
-
}, [h("el-table", {
|
|
136964
|
+
}, [h("el-table", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
137225
136965
|
"ref": "a-table",
|
|
137226
136966
|
"attrs": {
|
|
136967
|
+
"id": this.id,
|
|
137227
136968
|
"data": data,
|
|
137228
136969
|
"size": this.size,
|
|
137229
136970
|
"border": this.border,
|
|
@@ -137248,11 +136989,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
137248
136989
|
"on": {
|
|
137249
136990
|
"row-click": this.choose,
|
|
137250
136991
|
"selection-change": this.select
|
|
137251
|
-
},
|
|
137252
|
-
"props": {
|
|
137253
|
-
...props
|
|
137254
136992
|
}
|
|
137255
|
-
},
|
|
136993
|
+
}, {
|
|
136994
|
+
"props": props
|
|
136995
|
+
}, {
|
|
136996
|
+
"attrs": {
|
|
136997
|
+
"no": props
|
|
136998
|
+
}
|
|
136999
|
+
}]), [(this.selection || this.$listeners.select) && h("el-table-column", {
|
|
137256
137000
|
"attrs": {
|
|
137257
137001
|
"fixed": "left",
|
|
137258
137002
|
"type": "selection",
|
|
@@ -137272,15 +137016,19 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
137272
137016
|
"attrs": {
|
|
137273
137017
|
"description": this.emptyText
|
|
137274
137018
|
}
|
|
137275
|
-
})])]), !this.tree && this.page && data.length > 0 && h(_components_Apages__WEBPACK_IMPORTED_MODULE_7__["default"], {
|
|
137019
|
+
})])]), !this.tree && this.page && this.global && data.length > 0 && h(_components_Apages__WEBPACK_IMPORTED_MODULE_7__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
137276
137020
|
"attrs": {
|
|
137277
|
-
"
|
|
137278
|
-
"
|
|
137021
|
+
"pages": Object.keys(this.pages).length > 0 ? this.pages : pageParams,
|
|
137022
|
+
"total": Number(size)
|
|
137279
137023
|
},
|
|
137280
137024
|
"on": {
|
|
137281
137025
|
"change": this.change
|
|
137282
137026
|
}
|
|
137283
|
-
}
|
|
137027
|
+
}, {
|
|
137028
|
+
"props": this.pages
|
|
137029
|
+
}, {}, {
|
|
137030
|
+
"on": this.pages
|
|
137031
|
+
}]))]);
|
|
137284
137032
|
}
|
|
137285
137033
|
});
|
|
137286
137034
|
|
|
@@ -140470,6 +140218,17 @@ module.exports = function (argument) {
|
|
|
140470
140218
|
};
|
|
140471
140219
|
|
|
140472
140220
|
|
|
140221
|
+
/***/ }),
|
|
140222
|
+
|
|
140223
|
+
/***/ "c352":
|
|
140224
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
140225
|
+
|
|
140226
|
+
"use strict";
|
|
140227
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_15_10_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_15_10_1_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_47c24b82_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("1eae");
|
|
140228
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_15_10_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_15_10_1_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_47c24b82_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_15_10_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_15_10_1_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_47c24b82_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
140229
|
+
/* unused harmony reexport * */
|
|
140230
|
+
|
|
140231
|
+
|
|
140473
140232
|
/***/ }),
|
|
140474
140233
|
|
|
140475
140234
|
/***/ "c363":
|
|
@@ -148792,7 +148551,7 @@ module.exports = _default;
|
|
|
148792
148551
|
// ESM COMPAT FLAG
|
|
148793
148552
|
__webpack_require__.r(__webpack_exports__);
|
|
148794
148553
|
|
|
148795
|
-
// 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=
|
|
148554
|
+
// CONCATENATED MODULE: ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7125891e-vue-loader-template"}!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--13-0!./node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.3.0@babel-loader/lib!./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--1-0!./node_modules/_vue-loader@15.10.1@vue-loader/lib??vue-loader-options!./src/components/Atree/index.vue?vue&type=template&id=47c24b82&scoped=true&
|
|
148796
148555
|
var render = function render() {
|
|
148797
148556
|
var _vm = this,
|
|
148798
148557
|
_c = _vm._self._c;
|
|
@@ -148870,7 +148629,7 @@ var render = function render() {
|
|
|
148870
148629
|
};
|
|
148871
148630
|
var staticRenderFns = [];
|
|
148872
148631
|
|
|
148873
|
-
// CONCATENATED MODULE: ./src/components/Atree/index.vue?vue&type=template&id=
|
|
148632
|
+
// CONCATENATED MODULE: ./src/components/Atree/index.vue?vue&type=template&id=47c24b82&scoped=true&
|
|
148874
148633
|
|
|
148875
148634
|
// CONCATENATED MODULE: ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--13-0!./node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.3.0@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--1-0!./node_modules/_vue-loader@15.10.1@vue-loader/lib??vue-loader-options!./src/components/Atree/index.vue?vue&type=script&lang=js&
|
|
148876
148635
|
/* harmony default export */ var Atreevue_type_script_lang_js_ = ({
|
|
@@ -148996,7 +148755,9 @@ var staticRenderFns = [];
|
|
|
148996
148755
|
if (this.horizontal) return h("span", {
|
|
148997
148756
|
"class": children && children.length > 0 || type && type != 2 ? '' : 'last-leaf'
|
|
148998
148757
|
}, [name]);
|
|
148999
|
-
return h("span",
|
|
148758
|
+
return h("span", {
|
|
148759
|
+
"class": "a-tree-item-label"
|
|
148760
|
+
}, [name]);
|
|
149000
148761
|
},
|
|
149001
148762
|
create() {
|
|
149002
148763
|
this.checkedKeys = this.defaultCheckedKeys.filter(a => a != 0);
|
|
@@ -149021,8 +148782,10 @@ var staticRenderFns = [];
|
|
|
149021
148782
|
this.checkedRows = this.$refs['aTree'].getCheckedNodes();
|
|
149022
148783
|
this.checkedKeys = this.$refs['aTree'].getCheckedKeys();
|
|
149023
148784
|
this.halfCheckedKeys = this.$refs['aTree'].getHalfCheckedKeys();
|
|
149024
|
-
|
|
149025
|
-
this.$emit('
|
|
148785
|
+
let params = [...this.checkedKeys, ...this.halfCheckedKeys];
|
|
148786
|
+
this.$emit('input', params);
|
|
148787
|
+
this.$emit('check', params);
|
|
148788
|
+
this.$emit('choose', params);
|
|
149026
148789
|
},
|
|
149027
148790
|
nodeClick(e) {
|
|
149028
148791
|
this.selectedRow = e;
|
|
@@ -149043,8 +148806,8 @@ var staticRenderFns = [];
|
|
|
149043
148806
|
});
|
|
149044
148807
|
// CONCATENATED MODULE: ./src/components/Atree/index.vue?vue&type=script&lang=js&
|
|
149045
148808
|
/* harmony default export */ var components_Atreevue_type_script_lang_js_ = (Atreevue_type_script_lang_js_);
|
|
149046
|
-
// EXTERNAL MODULE: ./src/components/Atree/index.vue?vue&type=style&index=0&id=
|
|
149047
|
-
var
|
|
148809
|
+
// EXTERNAL MODULE: ./src/components/Atree/index.vue?vue&type=style&index=0&id=47c24b82&prod&scoped=true&lang=css&
|
|
148810
|
+
var Atreevue_type_style_index_0_id_47c24b82_prod_scoped_true_lang_css_ = __webpack_require__("c352");
|
|
149048
148811
|
|
|
149049
148812
|
// EXTERNAL MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/runtime/componentNormalizer.js
|
|
149050
148813
|
var componentNormalizer = __webpack_require__("e607");
|
|
@@ -149064,7 +148827,7 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
149064
148827
|
staticRenderFns,
|
|
149065
148828
|
false,
|
|
149066
148829
|
null,
|
|
149067
|
-
"
|
|
148830
|
+
"47c24b82",
|
|
149068
148831
|
null
|
|
149069
148832
|
|
|
149070
148833
|
)
|
|
@@ -152099,6 +151862,154 @@ module.exports = _default;
|
|
|
152099
151862
|
|
|
152100
151863
|
/***/ }),
|
|
152101
151864
|
|
|
151865
|
+
/***/ "d98d":
|
|
151866
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
151867
|
+
|
|
151868
|
+
"use strict";
|
|
151869
|
+
// ESM COMPAT FLAG
|
|
151870
|
+
__webpack_require__.r(__webpack_exports__);
|
|
151871
|
+
|
|
151872
|
+
// CONCATENATED MODULE: ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7125891e-vue-loader-template"}!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--13-0!./node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.3.0@babel-loader/lib!./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--1-0!./node_modules/_vue-loader@15.10.1@vue-loader/lib??vue-loader-options!./src/components/Aupload/index.bak.vue?vue&type=template&id=6b1bf5c4&scoped=true&
|
|
151873
|
+
var render = function render() {
|
|
151874
|
+
var _vm = this,
|
|
151875
|
+
_c = _vm._self._c;
|
|
151876
|
+
return _c('div', {
|
|
151877
|
+
staticClass: "a-upload"
|
|
151878
|
+
}, [_c('el-upload', {
|
|
151879
|
+
attrs: {
|
|
151880
|
+
"action": _vm.action,
|
|
151881
|
+
"on-remove": _vm.remove,
|
|
151882
|
+
"on-exceed": _vm.exceed,
|
|
151883
|
+
"multiple": _vm.multiple,
|
|
151884
|
+
"on-preview": _vm.review,
|
|
151885
|
+
"http-request": _vm.upload,
|
|
151886
|
+
"before-remove": _vm.remove,
|
|
151887
|
+
"limit": parseInt(_vm.limit),
|
|
151888
|
+
"auto-upload": _vm.autoUpload,
|
|
151889
|
+
"show-file-list": _vm.showFileList,
|
|
151890
|
+
"list-type": _vm.listType,
|
|
151891
|
+
"file-list": _vm.list
|
|
151892
|
+
}
|
|
151893
|
+
}, [_c('el-button', {
|
|
151894
|
+
attrs: {
|
|
151895
|
+
"size": "small",
|
|
151896
|
+
"type": "primary"
|
|
151897
|
+
}
|
|
151898
|
+
}, [_vm._v("点击上传")]), _c('div', {
|
|
151899
|
+
staticClass: "el-upload__tip",
|
|
151900
|
+
attrs: {
|
|
151901
|
+
"slot": "tip"
|
|
151902
|
+
},
|
|
151903
|
+
slot: "tip"
|
|
151904
|
+
}, [_vm._v(" 只能上传jpg/png文件,且不超过500kb ")])], 1)], 1);
|
|
151905
|
+
};
|
|
151906
|
+
var staticRenderFns = [];
|
|
151907
|
+
|
|
151908
|
+
// CONCATENATED MODULE: ./src/components/Aupload/index.bak.vue?vue&type=template&id=6b1bf5c4&scoped=true&
|
|
151909
|
+
|
|
151910
|
+
// CONCATENATED MODULE: ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--13-0!./node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.3.0@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--1-0!./node_modules/_vue-loader@15.10.1@vue-loader/lib??vue-loader-options!./src/components/Aupload/index.bak.vue?vue&type=script&lang=js&
|
|
151911
|
+
/* harmony default export */ var index_bakvue_type_script_lang_js_ = ({
|
|
151912
|
+
name: 'Aupload',
|
|
151913
|
+
props: {
|
|
151914
|
+
type: {
|
|
151915
|
+
type: String,
|
|
151916
|
+
default: () => 'image'
|
|
151917
|
+
},
|
|
151918
|
+
action: {
|
|
151919
|
+
type: String,
|
|
151920
|
+
default: () => '#'
|
|
151921
|
+
},
|
|
151922
|
+
multiple: {
|
|
151923
|
+
type: Boolean,
|
|
151924
|
+
default: () => true
|
|
151925
|
+
},
|
|
151926
|
+
limit: {
|
|
151927
|
+
type: String,
|
|
151928
|
+
default: () => '10'
|
|
151929
|
+
},
|
|
151930
|
+
listType: {
|
|
151931
|
+
type: String,
|
|
151932
|
+
default: () => ''
|
|
151933
|
+
},
|
|
151934
|
+
// picture-card
|
|
151935
|
+
autoUpload: {
|
|
151936
|
+
type: Boolean,
|
|
151937
|
+
default: () => false
|
|
151938
|
+
},
|
|
151939
|
+
showFileList: {
|
|
151940
|
+
type: Boolean,
|
|
151941
|
+
default: () => true
|
|
151942
|
+
},
|
|
151943
|
+
fileList: {
|
|
151944
|
+
type: Array,
|
|
151945
|
+
default: () => []
|
|
151946
|
+
}
|
|
151947
|
+
},
|
|
151948
|
+
data() {
|
|
151949
|
+
return {
|
|
151950
|
+
list: [],
|
|
151951
|
+
src: ''
|
|
151952
|
+
};
|
|
151953
|
+
},
|
|
151954
|
+
created() {
|
|
151955
|
+
this.create();
|
|
151956
|
+
},
|
|
151957
|
+
methods: {
|
|
151958
|
+
create() {
|
|
151959
|
+
this.list = [...this.fileList, ...this.list];
|
|
151960
|
+
},
|
|
151961
|
+
change(a) {
|
|
151962
|
+
this.$emit('change', a);
|
|
151963
|
+
},
|
|
151964
|
+
exceed(a) {
|
|
151965
|
+
this.$emit('exceed', a);
|
|
151966
|
+
},
|
|
151967
|
+
finish(a) {
|
|
151968
|
+
this.$emit('finish', a);
|
|
151969
|
+
},
|
|
151970
|
+
upload(a) {
|
|
151971
|
+
this.$emit('upload', a);
|
|
151972
|
+
},
|
|
151973
|
+
review(a) {
|
|
151974
|
+
this.$emit('review', a);
|
|
151975
|
+
},
|
|
151976
|
+
remove(a) {
|
|
151977
|
+
this.$emit('remove', a);
|
|
151978
|
+
}
|
|
151979
|
+
}
|
|
151980
|
+
});
|
|
151981
|
+
// CONCATENATED MODULE: ./src/components/Aupload/index.bak.vue?vue&type=script&lang=js&
|
|
151982
|
+
/* harmony default export */ var Aupload_index_bakvue_type_script_lang_js_ = (index_bakvue_type_script_lang_js_);
|
|
151983
|
+
// EXTERNAL MODULE: ./src/components/Aupload/index.bak.vue?vue&type=style&index=0&id=6b1bf5c4&prod&scoped=true&lang=css&
|
|
151984
|
+
var index_bakvue_type_style_index_0_id_6b1bf5c4_prod_scoped_true_lang_css_ = __webpack_require__("1c70");
|
|
151985
|
+
|
|
151986
|
+
// EXTERNAL MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/runtime/componentNormalizer.js
|
|
151987
|
+
var componentNormalizer = __webpack_require__("e607");
|
|
151988
|
+
|
|
151989
|
+
// CONCATENATED MODULE: ./src/components/Aupload/index.bak.vue
|
|
151990
|
+
|
|
151991
|
+
|
|
151992
|
+
|
|
151993
|
+
|
|
151994
|
+
|
|
151995
|
+
|
|
151996
|
+
/* normalize component */
|
|
151997
|
+
|
|
151998
|
+
var component = Object(componentNormalizer["a" /* default */])(
|
|
151999
|
+
Aupload_index_bakvue_type_script_lang_js_,
|
|
152000
|
+
render,
|
|
152001
|
+
staticRenderFns,
|
|
152002
|
+
false,
|
|
152003
|
+
null,
|
|
152004
|
+
"6b1bf5c4",
|
|
152005
|
+
null
|
|
152006
|
+
|
|
152007
|
+
)
|
|
152008
|
+
|
|
152009
|
+
/* harmony default export */ var index_bak = __webpack_exports__["default"] = (component.exports);
|
|
152010
|
+
|
|
152011
|
+
/***/ }),
|
|
152012
|
+
|
|
152102
152013
|
/***/ "d9af":
|
|
152103
152014
|
/***/ (function(module, exports, __webpack_require__) {
|
|
152104
152015
|
|
|
@@ -155012,7 +154923,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
155012
154923
|
},
|
|
155013
154924
|
change(content) {
|
|
155014
154925
|
this.content = content;
|
|
155015
|
-
console.log(this.content);
|
|
155016
154926
|
this.$nextTick(() => this.$emit('input', this.content));
|
|
155017
154927
|
}
|
|
155018
154928
|
},
|
|
@@ -156959,6 +156869,13 @@ module.exports = _default;
|
|
|
156959
156869
|
|
|
156960
156870
|
/***/ }),
|
|
156961
156871
|
|
|
156872
|
+
/***/ "de00":
|
|
156873
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
156874
|
+
|
|
156875
|
+
// extracted by mini-css-extract-plugin
|
|
156876
|
+
|
|
156877
|
+
/***/ }),
|
|
156878
|
+
|
|
156962
156879
|
/***/ "de10":
|
|
156963
156880
|
/***/ (function(module, exports, __webpack_require__) {
|
|
156964
156881
|
|
|
@@ -158118,6 +158035,109 @@ module.exports = _default;
|
|
|
158118
158035
|
|
|
158119
158036
|
/***/ }),
|
|
158120
158037
|
|
|
158038
|
+
/***/ "e4ec":
|
|
158039
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
158040
|
+
|
|
158041
|
+
"use strict";
|
|
158042
|
+
__webpack_require__.r(__webpack_exports__);
|
|
158043
|
+
/* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6aaa");
|
|
158044
|
+
/* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
|
|
158045
|
+
/* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("ba86");
|
|
158046
|
+
/* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_1__);
|
|
158047
|
+
|
|
158048
|
+
|
|
158049
|
+
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
158050
|
+
name: 'ApasswordInput',
|
|
158051
|
+
props: {
|
|
158052
|
+
value: {
|
|
158053
|
+
type: String,
|
|
158054
|
+
default: () => ''
|
|
158055
|
+
}
|
|
158056
|
+
},
|
|
158057
|
+
data() {
|
|
158058
|
+
return {
|
|
158059
|
+
active: 0,
|
|
158060
|
+
content: this.value
|
|
158061
|
+
};
|
|
158062
|
+
},
|
|
158063
|
+
methods: {
|
|
158064
|
+
input(value) {
|
|
158065
|
+
let {
|
|
158066
|
+
min = 6
|
|
158067
|
+
} = this.$attrs;
|
|
158068
|
+
this.content = value;
|
|
158069
|
+
let mode = 0;
|
|
158070
|
+
if (/\d/.test(value)) mode++; //数字
|
|
158071
|
+
if (/\W/.test(value)) mode++; //字符
|
|
158072
|
+
if (/[a-z]/.test(value)) mode++; //小写
|
|
158073
|
+
if (/[A-Z]/.test(value)) mode++; //大写
|
|
158074
|
+
if (value.length < min) this.active = 0;
|
|
158075
|
+
if (value.length > min && mode < 2) this.active = 1;
|
|
158076
|
+
if (value.length > min && mode > 2) this.active = 2;
|
|
158077
|
+
if (value.length > min && mode > 3) this.active = 3;
|
|
158078
|
+
this.$emit('input', this.content);
|
|
158079
|
+
}
|
|
158080
|
+
},
|
|
158081
|
+
render() {
|
|
158082
|
+
const h = arguments[0];
|
|
158083
|
+
let {
|
|
158084
|
+
min = 6,
|
|
158085
|
+
max = 20,
|
|
158086
|
+
hint = true,
|
|
158087
|
+
type = 'password',
|
|
158088
|
+
showPassword = true,
|
|
158089
|
+
placeholder = '请输入密码',
|
|
158090
|
+
option = [{
|
|
158091
|
+
label: '低',
|
|
158092
|
+
color: ''
|
|
158093
|
+
}, {
|
|
158094
|
+
label: '中',
|
|
158095
|
+
color: ''
|
|
158096
|
+
}, {
|
|
158097
|
+
label: '高',
|
|
158098
|
+
color: ''
|
|
158099
|
+
}],
|
|
158100
|
+
...props
|
|
158101
|
+
} = this.$attrs;
|
|
158102
|
+
return h("div", {
|
|
158103
|
+
"class": "a-password-input"
|
|
158104
|
+
}, [h("el-input", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
158105
|
+
"on": {
|
|
158106
|
+
"input": a => a.length <= max && this.input(a)
|
|
158107
|
+
},
|
|
158108
|
+
"attrs": {
|
|
158109
|
+
"show-password": showPassword,
|
|
158110
|
+
"placeholder": placeholder,
|
|
158111
|
+
"minlength": min,
|
|
158112
|
+
"maxlength": max,
|
|
158113
|
+
"type": type
|
|
158114
|
+
}
|
|
158115
|
+
}, {
|
|
158116
|
+
"on": props
|
|
158117
|
+
}, {}, {
|
|
158118
|
+
"props": props
|
|
158119
|
+
}, {
|
|
158120
|
+
"model": {
|
|
158121
|
+
value: this.content,
|
|
158122
|
+
callback: $$v => {
|
|
158123
|
+
this.content = $$v;
|
|
158124
|
+
}
|
|
158125
|
+
}
|
|
158126
|
+
}])), hint && h("div", {
|
|
158127
|
+
"class": "a-password-input-hint"
|
|
158128
|
+
}, [option.map((a, b) => {
|
|
158129
|
+
// let label = a.label || a.title || a.text || `${a}`;
|
|
158130
|
+
// return (<div key={b} class={`a-password-input-hint-item ${this.active == (b + 1) ? 'active' : ''}`}>{label}</div>);
|
|
158131
|
+
return h("div", {
|
|
158132
|
+
"key": b,
|
|
158133
|
+
"class": `a-password-input-hint-item ${this.active == b + 1 ? 'active' : ''}`
|
|
158134
|
+
});
|
|
158135
|
+
})])]);
|
|
158136
|
+
}
|
|
158137
|
+
});
|
|
158138
|
+
|
|
158139
|
+
/***/ }),
|
|
158140
|
+
|
|
158121
158141
|
/***/ "e509":
|
|
158122
158142
|
/***/ (function(module, exports, __webpack_require__) {
|
|
158123
158143
|
|
|
@@ -159133,34 +159153,22 @@ module.exports = _default;
|
|
|
159133
159153
|
|
|
159134
159154
|
"use strict";
|
|
159135
159155
|
__webpack_require__.r(__webpack_exports__);
|
|
159136
|
-
/* harmony import */ var
|
|
159137
|
-
/* harmony import */ var
|
|
159138
|
-
/* harmony import */ var
|
|
159139
|
-
/* harmony import */ var
|
|
159156
|
+
/* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6aaa");
|
|
159157
|
+
/* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
|
|
159158
|
+
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("be09");
|
|
159159
|
+
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
159160
|
+
/* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("d8af");
|
|
159161
|
+
/* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_2__);
|
|
159162
|
+
|
|
159163
|
+
|
|
159140
159164
|
|
|
159141
159165
|
|
|
159142
159166
|
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
159143
159167
|
name: 'Adialog',
|
|
159144
159168
|
props: {
|
|
159145
|
-
title: {
|
|
159146
|
-
type: String,
|
|
159147
|
-
default: () => '编辑'
|
|
159148
|
-
},
|
|
159149
|
-
width: {
|
|
159150
|
-
type: String,
|
|
159151
|
-
default: () => '600px'
|
|
159152
|
-
},
|
|
159153
159169
|
check: {
|
|
159154
159170
|
type: Boolean,
|
|
159155
|
-
default: () =>
|
|
159156
|
-
},
|
|
159157
|
-
padding: {
|
|
159158
|
-
type: String,
|
|
159159
|
-
default: () => '16px'
|
|
159160
|
-
},
|
|
159161
|
-
height: {
|
|
159162
|
-
type: String,
|
|
159163
|
-
default: () => '72vh'
|
|
159171
|
+
default: () => false
|
|
159164
159172
|
},
|
|
159165
159173
|
loading: {
|
|
159166
159174
|
type: Boolean,
|
|
@@ -159199,9 +159207,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
159199
159207
|
default: () => '取消'
|
|
159200
159208
|
}
|
|
159201
159209
|
},
|
|
159202
|
-
destroyed() {
|
|
159203
|
-
this.format = null;
|
|
159204
|
-
},
|
|
159205
159210
|
methods: {
|
|
159206
159211
|
format() {
|
|
159207
159212
|
if (this.check == false) return true;
|
|
@@ -159245,6 +159250,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
159245
159250
|
render() {
|
|
159246
159251
|
const h = arguments[0];
|
|
159247
159252
|
const {
|
|
159253
|
+
title = '编辑',
|
|
159254
|
+
width = '600px',
|
|
159255
|
+
padding = '16px',
|
|
159256
|
+
height = 'auto',
|
|
159257
|
+
maxHeight = '64vh',
|
|
159258
|
+
style = {},
|
|
159259
|
+
action = [],
|
|
159248
159260
|
...props
|
|
159249
159261
|
} = this.$attrs;
|
|
159250
159262
|
const {
|
|
@@ -159260,32 +159272,37 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
159260
159272
|
name: "loading",
|
|
159261
159273
|
value: this.loading
|
|
159262
159274
|
}]
|
|
159263
|
-
}, [h("el-dialog", {
|
|
159275
|
+
}, [h("el-dialog", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
159264
159276
|
"attrs": {
|
|
159265
|
-
"title":
|
|
159266
|
-
"width":
|
|
159277
|
+
"title": title,
|
|
159278
|
+
"width": width,
|
|
159267
159279
|
"visible": this.visible,
|
|
159268
159280
|
"lock-scroll": this.lockScroll,
|
|
159269
159281
|
"destroy-on-close": this.destroyOnClose,
|
|
159270
159282
|
"close-on-click-modal": this.closeOnClickModal
|
|
159271
159283
|
},
|
|
159272
159284
|
"on": {
|
|
159273
|
-
"close": close ? () => close() : cancel ? () => cancel() : () => false
|
|
159285
|
+
"close": close ? () => close() : cancel ? () => cancel() : finish ? () => this.finish() : submit ? () => this.submit() : reject ? () => this.reject() : () => false
|
|
159274
159286
|
},
|
|
159275
159287
|
"props": {
|
|
159276
159288
|
...props
|
|
159277
159289
|
}
|
|
159278
|
-
},
|
|
159290
|
+
}, {
|
|
159291
|
+
"on": props
|
|
159292
|
+
}]), [h("div", {
|
|
159279
159293
|
"key": this.visible,
|
|
159280
159294
|
"class": "a-dialog-body",
|
|
159281
159295
|
"style": {
|
|
159282
|
-
padding
|
|
159283
|
-
|
|
159296
|
+
padding,
|
|
159297
|
+
height,
|
|
159298
|
+
maxHeight,
|
|
159299
|
+
...style
|
|
159284
159300
|
}
|
|
159285
159301
|
}, [this.$slots.default]), h("div", {
|
|
159286
|
-
"class": finish || submit || cancel ? 'a-dialog-foot' : 'a-dialog-foot custom'
|
|
159287
|
-
}, [(finish || submit || cancel) && h("div", [finish && h("el-button", {
|
|
159302
|
+
"class": finish || submit || reject || cancel || action.length > 0 ? 'a-dialog-foot' : 'a-dialog-foot custom'
|
|
159303
|
+
}, [(finish || submit || cancel || reject || action.length > 0) && h("div", [finish && h("el-button", {
|
|
159288
159304
|
"attrs": {
|
|
159305
|
+
"disabled": this.loading,
|
|
159289
159306
|
"loading": this.loading,
|
|
159290
159307
|
"type": "success"
|
|
159291
159308
|
},
|
|
@@ -159294,6 +159311,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
159294
159311
|
}
|
|
159295
159312
|
}, [this.finishText]), submit && h("el-button", {
|
|
159296
159313
|
"attrs": {
|
|
159314
|
+
"disabled": this.loading,
|
|
159297
159315
|
"loading": this.loading,
|
|
159298
159316
|
"type": "primary"
|
|
159299
159317
|
},
|
|
@@ -159302,6 +159320,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
159302
159320
|
}
|
|
159303
159321
|
}, [this.submitText]), reject && h("el-button", {
|
|
159304
159322
|
"attrs": {
|
|
159323
|
+
"disabled": this.loading,
|
|
159305
159324
|
"loading": this.loading,
|
|
159306
159325
|
"type": "danger"
|
|
159307
159326
|
},
|
|
@@ -159315,7 +159334,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
159315
159334
|
"on": {
|
|
159316
159335
|
"click": this.cancel
|
|
159317
159336
|
}
|
|
159318
|
-
}, [this.cancelText])
|
|
159337
|
+
}, [this.cancelText]), action.map((a, b) => h("el-button", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
159338
|
+
"key": b,
|
|
159339
|
+
"attrs": {
|
|
159340
|
+
"disabled": this.loading
|
|
159341
|
+
},
|
|
159342
|
+
"on": {
|
|
159343
|
+
"click": e => a.click(this.format(), e)
|
|
159344
|
+
}
|
|
159345
|
+
}, a]), [a.label || a.title || a.text || '']))])])])]);
|
|
159319
159346
|
}
|
|
159320
159347
|
});
|
|
159321
159348
|
|
|
@@ -160530,10 +160557,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
160530
160557
|
},
|
|
160531
160558
|
data() {
|
|
160532
160559
|
const {
|
|
160533
|
-
|
|
160560
|
+
routes
|
|
160534
160561
|
} = this.$store.state;
|
|
160535
160562
|
return {
|
|
160536
|
-
|
|
160563
|
+
routes
|
|
160537
160564
|
};
|
|
160538
160565
|
},
|
|
160539
160566
|
methods: {
|
|
@@ -160546,8 +160573,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
160546
160573
|
const text = a.text || a.label || a.title;
|
|
160547
160574
|
return text != '' && (a.id ? h(_components_Aauthority__WEBPACK_IMPORTED_MODULE_0__["default"], {
|
|
160548
160575
|
"attrs": {
|
|
160549
|
-
"
|
|
160550
|
-
"
|
|
160576
|
+
"routes": a.id,
|
|
160577
|
+
"routes": this.routes
|
|
160551
160578
|
}
|
|
160552
160579
|
}, [this.format(a, b)]) : this.format(a, b));
|
|
160553
160580
|
}), this.$slots.default]);
|
|
@@ -160691,13 +160718,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
160691
160718
|
|
|
160692
160719
|
/***/ }),
|
|
160693
160720
|
|
|
160694
|
-
/***/ "e95a":
|
|
160695
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
160696
|
-
|
|
160697
|
-
// extracted by mini-css-extract-plugin
|
|
160698
|
-
|
|
160699
|
-
/***/ }),
|
|
160700
|
-
|
|
160701
160721
|
/***/ "e9e0":
|
|
160702
160722
|
/***/ (function(module, exports, __webpack_require__) {
|
|
160703
160723
|
|
|
@@ -164833,7 +164853,6 @@ var map = {
|
|
|
164833
164853
|
"./Atree/index.vue": "ce34",
|
|
164834
164854
|
"./Aupload/File/index.vue": "3a9a",
|
|
164835
164855
|
"./Aupload/Icon/index.vue": "7d0e",
|
|
164836
|
-
"./Aupload/index.vue": "a61e",
|
|
164837
164856
|
"./Bdialog/index.vue": "a6bc",
|
|
164838
164857
|
"./Bplayer/index.vue": "2c3e",
|
|
164839
164858
|
"./Btree/index.vue": "9d92"
|
|
@@ -167559,6 +167578,141 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
167559
167578
|
|
|
167560
167579
|
/***/ }),
|
|
167561
167580
|
|
|
167581
|
+
/***/ "fafd":
|
|
167582
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
167583
|
+
|
|
167584
|
+
"use strict";
|
|
167585
|
+
__webpack_require__.r(__webpack_exports__);
|
|
167586
|
+
/* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("0673");
|
|
167587
|
+
/* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_0__);
|
|
167588
|
+
|
|
167589
|
+
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
167590
|
+
name: 'Aupload',
|
|
167591
|
+
props: {
|
|
167592
|
+
loading: {
|
|
167593
|
+
type: Boolean,
|
|
167594
|
+
default: () => false
|
|
167595
|
+
},
|
|
167596
|
+
size: {
|
|
167597
|
+
type: String,
|
|
167598
|
+
default: () => '2m'
|
|
167599
|
+
},
|
|
167600
|
+
action: {
|
|
167601
|
+
type: String,
|
|
167602
|
+
default: () => '#'
|
|
167603
|
+
},
|
|
167604
|
+
multiple: {
|
|
167605
|
+
type: Boolean,
|
|
167606
|
+
default: () => true
|
|
167607
|
+
},
|
|
167608
|
+
limit: {
|
|
167609
|
+
type: String,
|
|
167610
|
+
default: () => '10'
|
|
167611
|
+
},
|
|
167612
|
+
listType: {
|
|
167613
|
+
type: String,
|
|
167614
|
+
default: () => ''
|
|
167615
|
+
},
|
|
167616
|
+
// picture-card
|
|
167617
|
+
autoUpload: {
|
|
167618
|
+
type: Boolean,
|
|
167619
|
+
default: () => false
|
|
167620
|
+
},
|
|
167621
|
+
showFileList: {
|
|
167622
|
+
type: Boolean,
|
|
167623
|
+
default: () => true
|
|
167624
|
+
},
|
|
167625
|
+
fileList: {
|
|
167626
|
+
type: Array,
|
|
167627
|
+
default: () => []
|
|
167628
|
+
}
|
|
167629
|
+
},
|
|
167630
|
+
data() {
|
|
167631
|
+
return {
|
|
167632
|
+
list: []
|
|
167633
|
+
};
|
|
167634
|
+
},
|
|
167635
|
+
created() {
|
|
167636
|
+
this.create();
|
|
167637
|
+
},
|
|
167638
|
+
methods: {
|
|
167639
|
+
create() {
|
|
167640
|
+
this.list = [...this.fileList, ...this.list];
|
|
167641
|
+
},
|
|
167642
|
+
change(a, b) {
|
|
167643
|
+
if (this.multiple) {
|
|
167644
|
+
this.$emit('change', b);
|
|
167645
|
+
} else {
|
|
167646
|
+
if (a.size / 1024 > parseInt(this.size) * 1024) {
|
|
167647
|
+
this.$message.info(`上传文件超过了${this.size}限制`);
|
|
167648
|
+
return false;
|
|
167649
|
+
} else {
|
|
167650
|
+
this.$emit('change', a);
|
|
167651
|
+
}
|
|
167652
|
+
}
|
|
167653
|
+
},
|
|
167654
|
+
exceed(a) {
|
|
167655
|
+
this.$emit('exceed', a);
|
|
167656
|
+
},
|
|
167657
|
+
finish(a) {
|
|
167658
|
+
this.$emit('finish', a);
|
|
167659
|
+
},
|
|
167660
|
+
upload(a) {
|
|
167661
|
+
this.$emit('upload', a);
|
|
167662
|
+
},
|
|
167663
|
+
review(a) {
|
|
167664
|
+
this.$emit('review', a);
|
|
167665
|
+
},
|
|
167666
|
+
remove(a) {
|
|
167667
|
+
this.$emit('remove', a);
|
|
167668
|
+
}
|
|
167669
|
+
},
|
|
167670
|
+
render() {
|
|
167671
|
+
const h = arguments[0];
|
|
167672
|
+
let {
|
|
167673
|
+
...rest
|
|
167674
|
+
} = this.$attrs;
|
|
167675
|
+
let props = {
|
|
167676
|
+
disabled: this.loading,
|
|
167677
|
+
'http-request': this.upload,
|
|
167678
|
+
'on-change': this.change,
|
|
167679
|
+
'on-exceed': this.exceed,
|
|
167680
|
+
'on-success': this.finish,
|
|
167681
|
+
'on-before-upload': this.upload,
|
|
167682
|
+
'on-before-remove': this.remove,
|
|
167683
|
+
...rest
|
|
167684
|
+
};
|
|
167685
|
+
let on = {
|
|
167686
|
+
...rest
|
|
167687
|
+
};
|
|
167688
|
+
return h("div", {
|
|
167689
|
+
"class": "a-upload"
|
|
167690
|
+
}, [h("el-upload", {
|
|
167691
|
+
"attrs": {
|
|
167692
|
+
"action": this.action,
|
|
167693
|
+
"file-list": this.list,
|
|
167694
|
+
"multiple": this.multiple,
|
|
167695
|
+
"list-type": this.listType,
|
|
167696
|
+
"limit": parseInt(this.limit),
|
|
167697
|
+
"auto-upload": this.autoUpload,
|
|
167698
|
+
"show-file-list": this.showFileList
|
|
167699
|
+
},
|
|
167700
|
+
"props": {
|
|
167701
|
+
...props
|
|
167702
|
+
},
|
|
167703
|
+
"on": {
|
|
167704
|
+
...on
|
|
167705
|
+
}
|
|
167706
|
+
}, [h("el-button", {
|
|
167707
|
+
"attrs": {
|
|
167708
|
+
"type": "primary"
|
|
167709
|
+
}
|
|
167710
|
+
}, ["\u70B9\u51FB\u4E0A\u4F20"]), this.$slots.default])]);
|
|
167711
|
+
}
|
|
167712
|
+
});
|
|
167713
|
+
|
|
167714
|
+
/***/ }),
|
|
167715
|
+
|
|
167562
167716
|
/***/ "fb4f":
|
|
167563
167717
|
/***/ (function(module, exports, __webpack_require__) {
|
|
167564
167718
|
|