element-ui-root 1.5.1 → 1.5.5
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 +558 -108
- package/dist/index.css +1 -1
- package/dist/index.umd.js +558 -108
- package/dist/index.umd.min.js +1 -1
- package/package.json +1 -1
package/dist/index.common.js
CHANGED
|
@@ -13334,8 +13334,14 @@ var map = {
|
|
|
13334
13334
|
"./Aform/AfSearch": "1b78",
|
|
13335
13335
|
"./Aform/AfSearch/": "1b78",
|
|
13336
13336
|
"./Aform/AfSearch/index": "1b78",
|
|
13337
|
+
"./Aform/AfSearch/index.css": "2667",
|
|
13337
13338
|
"./Aform/AfSearch/index.js": "1b78",
|
|
13338
13339
|
"./Aform/BfSearch": "fc0d",
|
|
13340
|
+
"./Aform/BfSearch copy": "6a90",
|
|
13341
|
+
"./Aform/BfSearch copy/": "6a90",
|
|
13342
|
+
"./Aform/BfSearch copy/index": "6a90",
|
|
13343
|
+
"./Aform/BfSearch copy/index.css": "9a62",
|
|
13344
|
+
"./Aform/BfSearch copy/index.js": "6a90",
|
|
13339
13345
|
"./Aform/BfSearch/": "fc0d",
|
|
13340
13346
|
"./Aform/BfSearch/index": "fc0d",
|
|
13341
13347
|
"./Aform/BfSearch/index.css": "a261",
|
|
@@ -13720,9 +13726,11 @@ module.exports = _default;
|
|
|
13720
13726
|
__webpack_require__.r(__webpack_exports__);
|
|
13721
13727
|
/* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("4c02");
|
|
13722
13728
|
/* 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__);
|
|
13729
|
+
/* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("2667");
|
|
13730
|
+
/* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_1__);
|
|
13723
13731
|
|
|
13732
|
+
// const AformItem = () => import('@/components/AformItem');
|
|
13724
13733
|
|
|
13725
|
-
// const AformItem = () => import('@/components/AformItem');
|
|
13726
13734
|
const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__("2234")]; (a).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(__webpack_require__.oe);
|
|
13727
13735
|
|
|
13728
13736
|
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
@@ -13730,15 +13738,23 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
|
|
|
13730
13738
|
props: {
|
|
13731
13739
|
size: {
|
|
13732
13740
|
type: String,
|
|
13733
|
-
default: () => '
|
|
13741
|
+
default: () => 'medium'
|
|
13734
13742
|
},
|
|
13735
13743
|
inline: {
|
|
13736
13744
|
type: Boolean,
|
|
13737
13745
|
default: () => true
|
|
13738
13746
|
},
|
|
13747
|
+
colSpan: {
|
|
13748
|
+
type: String,
|
|
13749
|
+
default: () => '6'
|
|
13750
|
+
},
|
|
13751
|
+
labelWidth: {
|
|
13752
|
+
type: String,
|
|
13753
|
+
default: () => 'auto'
|
|
13754
|
+
},
|
|
13739
13755
|
labelPosition: {
|
|
13740
13756
|
type: String,
|
|
13741
|
-
default: () => '
|
|
13757
|
+
default: () => 'top'
|
|
13742
13758
|
},
|
|
13743
13759
|
config: {
|
|
13744
13760
|
type: Object,
|
|
@@ -13750,7 +13766,7 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
|
|
|
13750
13766
|
},
|
|
13751
13767
|
label: {
|
|
13752
13768
|
type: Boolean,
|
|
13753
|
-
default: () =>
|
|
13769
|
+
default: () => true
|
|
13754
13770
|
},
|
|
13755
13771
|
verify: {
|
|
13756
13772
|
type: Boolean,
|
|
@@ -13814,7 +13830,12 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
|
|
|
13814
13830
|
if (Object.keys(this.config).length > 0) {
|
|
13815
13831
|
// 格式化属性为模糊查询属性
|
|
13816
13832
|
for (let a in this.config) {
|
|
13817
|
-
if (this.config[a] != '' && this.config[a].like) data[a] = '%' + this.form[a] + '%';
|
|
13833
|
+
if (this.config[a] != '' && this.config[a].like) data[a] = '%' + this.form[a] + '%';
|
|
13834
|
+
|
|
13835
|
+
if (this.config[a] != '' && (this.config[a].than || this.config[a].range || this.config[a].scope)) {
|
|
13836
|
+
data[`${a}LE`] = this.form[`${a}LE`];
|
|
13837
|
+
data[`${a}GE`] = this.form[`${a}GE`];
|
|
13838
|
+
} else data[a] = this.form[a];
|
|
13818
13839
|
}
|
|
13819
13840
|
}
|
|
13820
13841
|
|
|
@@ -13874,6 +13895,37 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
|
|
|
13874
13895
|
result() {
|
|
13875
13896
|
// 返回验证后的表单数据
|
|
13876
13897
|
return this.submit();
|
|
13898
|
+
},
|
|
13899
|
+
|
|
13900
|
+
prompt(a = {}, index = 0, placeholder = '') {
|
|
13901
|
+
if (Object.keys(a).length > 0 && a.placeholder && a.placeholder.length && a.placeholder.length > 0) return a.placeholder[index];
|
|
13902
|
+
return placeholder;
|
|
13903
|
+
},
|
|
13904
|
+
|
|
13905
|
+
format(a = {}, field = '', placeholder = '') {
|
|
13906
|
+
const h = this.$createElement;
|
|
13907
|
+
|
|
13908
|
+
if (Object.keys(a).length > 0) {
|
|
13909
|
+
let config = {
|
|
13910
|
+
size: this.config[a].size ? this.config[a].size : this.size,
|
|
13911
|
+
field: field != '' ? field : `${a}`,
|
|
13912
|
+
disabled: this.loading,
|
|
13913
|
+
form: this.form,
|
|
13914
|
+
...this.config[a]
|
|
13915
|
+
};
|
|
13916
|
+
if (placeholder != '') return h(AformItem, {
|
|
13917
|
+
"attrs": {
|
|
13918
|
+
"config": { ...config,
|
|
13919
|
+
placeholder
|
|
13920
|
+
}
|
|
13921
|
+
}
|
|
13922
|
+
});
|
|
13923
|
+
return h(AformItem, {
|
|
13924
|
+
"attrs": {
|
|
13925
|
+
"config": config
|
|
13926
|
+
}
|
|
13927
|
+
});
|
|
13928
|
+
}
|
|
13877
13929
|
}
|
|
13878
13930
|
|
|
13879
13931
|
},
|
|
@@ -13884,7 +13936,14 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
|
|
|
13884
13936
|
submit,
|
|
13885
13937
|
cancel
|
|
13886
13938
|
} = this.$listeners;
|
|
13887
|
-
|
|
13939
|
+
let style = this.colSpan != '' ? {
|
|
13940
|
+
width: `${100 / this.colSpan}%`
|
|
13941
|
+
} : {};
|
|
13942
|
+
|
|
13943
|
+
let label = a => this.label ? this.config[a].text || this.config[a].label || this.config[a].title : '';
|
|
13944
|
+
|
|
13945
|
+
let count = Object.keys(this.config).length;
|
|
13946
|
+
return count > 0 && h("keep-alive", [h("div", {
|
|
13888
13947
|
"class": "a-f-search"
|
|
13889
13948
|
}, [h("el-form", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
13890
13949
|
"ref": "form",
|
|
@@ -13898,29 +13957,36 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
|
|
|
13898
13957
|
}
|
|
13899
13958
|
}, {
|
|
13900
13959
|
"attrs": {
|
|
13960
|
+
"labelWidth": this.labelWidth,
|
|
13901
13961
|
"labelPosition": this.labelPosition
|
|
13902
13962
|
}
|
|
13903
|
-
}]), [h("
|
|
13904
|
-
"class": "column"
|
|
13905
|
-
}, [Object.keys(this.config).map((a, b) => h("el-form-item", {
|
|
13963
|
+
}]), [Object.keys(this.config).map((a, b) => h("el-col", {
|
|
13906
13964
|
"key": b,
|
|
13965
|
+
"class": "column",
|
|
13966
|
+
"style": style
|
|
13967
|
+
}, [h("el-form-item", {
|
|
13907
13968
|
"attrs": {
|
|
13908
13969
|
"prop": `${a}`,
|
|
13909
|
-
"label":
|
|
13970
|
+
"label": label(a)
|
|
13910
13971
|
}
|
|
13911
|
-
}, [h(
|
|
13972
|
+
}, [this.config[a].than || this.config[a].range || this.config[a].scope ? h("el-col", {
|
|
13973
|
+
"class": "range-cols"
|
|
13974
|
+
}, [h("el-col", {
|
|
13912
13975
|
"attrs": {
|
|
13913
|
-
"
|
|
13914
|
-
form: this.form,
|
|
13915
|
-
size: this.config[a].size ? this.config[a].size : this.size,
|
|
13916
|
-
field: `${a}`,
|
|
13917
|
-
disabled: this.loading,
|
|
13918
|
-
...this.config[a]
|
|
13919
|
-
}
|
|
13976
|
+
"span": 12
|
|
13920
13977
|
}
|
|
13921
|
-
}
|
|
13922
|
-
"
|
|
13923
|
-
|
|
13978
|
+
}, [this.format(a, `${a}LE`, this.prompt(this.config[a], 0, '最高'))]), h("el-col", {
|
|
13979
|
+
"attrs": {
|
|
13980
|
+
"span": 12
|
|
13981
|
+
}
|
|
13982
|
+
}, [this.format(a, `${a}GE`, this.prompt(this.config[a], 1, '最低'))])]) : this.format(a)])])), this.$slots.default, (submit || cancel) && h("el-col", {
|
|
13983
|
+
"class": "action",
|
|
13984
|
+
"style": style
|
|
13985
|
+
}, [h("el-form-item", {
|
|
13986
|
+
"attrs": {
|
|
13987
|
+
"label": this.label ? 'action' : ''
|
|
13988
|
+
}
|
|
13989
|
+
}, [submit && h("el-button", {
|
|
13924
13990
|
"attrs": {
|
|
13925
13991
|
"disabled": this.loading,
|
|
13926
13992
|
"type": "primary"
|
|
@@ -18894,7 +18960,7 @@ const Aupload = a => Promise.resolve(/* AMD require */).then(function() { var __
|
|
|
18894
18960
|
if (!props.type) return h("el-input", {
|
|
18895
18961
|
"attrs": {
|
|
18896
18962
|
"clearable": true,
|
|
18897
|
-
"placeholder": `请输入${words}`
|
|
18963
|
+
"placeholder": props.placeholder || `请输入${words}`
|
|
18898
18964
|
},
|
|
18899
18965
|
"on": {
|
|
18900
18966
|
"change": props.change ? e => props.change(e) : () => false
|
|
@@ -18915,7 +18981,7 @@ const Aupload = a => Promise.resolve(/* AMD require */).then(function() { var __
|
|
|
18915
18981
|
return h("el-input", {
|
|
18916
18982
|
"attrs": {
|
|
18917
18983
|
"clearable": true,
|
|
18918
|
-
"placeholder": `请输入${words}`
|
|
18984
|
+
"placeholder": props.placeholder || `请输入${words}`
|
|
18919
18985
|
},
|
|
18920
18986
|
"on": {
|
|
18921
18987
|
"change": props.change ? e => props.change(e) : () => false
|
|
@@ -18938,7 +19004,7 @@ const Aupload = a => Promise.resolve(/* AMD require */).then(function() { var __
|
|
|
18938
19004
|
return h("el-input", {
|
|
18939
19005
|
"attrs": {
|
|
18940
19006
|
"clearable": true,
|
|
18941
|
-
"placeholder": `请输入${words}`
|
|
19007
|
+
"placeholder": props.placeholder || `请输入${words}`
|
|
18942
19008
|
},
|
|
18943
19009
|
"on": {
|
|
18944
19010
|
"change": props.change ? e => props.change(e) : () => false
|
|
@@ -18959,7 +19025,7 @@ const Aupload = a => Promise.resolve(/* AMD require */).then(function() { var __
|
|
|
18959
19025
|
return h("el-input", {
|
|
18960
19026
|
"attrs": {
|
|
18961
19027
|
"clearable": true,
|
|
18962
|
-
"placeholder": `请输入${words}`
|
|
19028
|
+
"placeholder": props.placeholder || `请输入${words}`
|
|
18963
19029
|
},
|
|
18964
19030
|
"on": {
|
|
18965
19031
|
"change": props.change ? e => props.change(e) : () => false
|
|
@@ -18980,7 +19046,7 @@ const Aupload = a => Promise.resolve(/* AMD require */).then(function() { var __
|
|
|
18980
19046
|
return h("el-input", {
|
|
18981
19047
|
"attrs": {
|
|
18982
19048
|
"clearable": true,
|
|
18983
|
-
"placeholder": `请输入${words}`,
|
|
19049
|
+
"placeholder": props.placeholder || `请输入${words}`,
|
|
18984
19050
|
"show-password": true
|
|
18985
19051
|
},
|
|
18986
19052
|
"on": {
|
|
@@ -19003,7 +19069,7 @@ const Aupload = a => Promise.resolve(/* AMD require */).then(function() { var __
|
|
|
19003
19069
|
"attrs": {
|
|
19004
19070
|
"clearable": true,
|
|
19005
19071
|
"filterable": true,
|
|
19006
|
-
"placeholder": `请选择${words}`
|
|
19072
|
+
"placeholder": props.placeholder || `请选择${words}`
|
|
19007
19073
|
},
|
|
19008
19074
|
"on": {
|
|
19009
19075
|
"change": props.change ? e => props.change(e, this.relate(e, props.data && props.data.length > 0 ? props.data : this.option.length > 0 ? this.option : [])) : () => false
|
|
@@ -19038,7 +19104,7 @@ const Aupload = a => Promise.resolve(/* AMD require */).then(function() { var __
|
|
|
19038
19104
|
"clearable": true,
|
|
19039
19105
|
"filterable": true,
|
|
19040
19106
|
"options": props.data && props.data.length > 0 ? props.data : this.option.length > 0 ? this.option : [],
|
|
19041
|
-
"placeholder": `请选择${words}`
|
|
19107
|
+
"placeholder": props.placeholder || `请选择${words}`
|
|
19042
19108
|
},
|
|
19043
19109
|
"on": {
|
|
19044
19110
|
"change": props.change ? e => props.change(e) : () => false
|
|
@@ -19155,7 +19221,7 @@ const Aupload = a => Promise.resolve(/* AMD require */).then(function() { var __
|
|
|
19155
19221
|
"attrs": {
|
|
19156
19222
|
"type": props.type,
|
|
19157
19223
|
"clearable": true,
|
|
19158
|
-
"placeholder": `请选择${words}`,
|
|
19224
|
+
"placeholder": props.placeholder || `请选择${words}`,
|
|
19159
19225
|
"start-placeholder": "开始",
|
|
19160
19226
|
"end-placeholder": "结束"
|
|
19161
19227
|
},
|
|
@@ -19181,7 +19247,7 @@ const Aupload = a => Promise.resolve(/* AMD require */).then(function() { var __
|
|
|
19181
19247
|
"attrs": {
|
|
19182
19248
|
"type": props.type,
|
|
19183
19249
|
"clearable": true,
|
|
19184
|
-
"placeholder": `请选择${words}`
|
|
19250
|
+
"placeholder": props.placeholder || `请选择${words}`
|
|
19185
19251
|
},
|
|
19186
19252
|
"on": {
|
|
19187
19253
|
"change": props.change ? e => props.change(e) : () => false
|
|
@@ -19205,7 +19271,7 @@ const Aupload = a => Promise.resolve(/* AMD require */).then(function() { var __
|
|
|
19205
19271
|
"attrs": {
|
|
19206
19272
|
"type": props.type,
|
|
19207
19273
|
"clearable": true,
|
|
19208
|
-
"placeholder": `请选择${words}`
|
|
19274
|
+
"placeholder": props.placeholder || `请选择${words}`
|
|
19209
19275
|
},
|
|
19210
19276
|
"on": {
|
|
19211
19277
|
"change": props.change ? e => props.change(e) : () => false
|
|
@@ -19229,7 +19295,7 @@ const Aupload = a => Promise.resolve(/* AMD require */).then(function() { var __
|
|
|
19229
19295
|
"attrs": {
|
|
19230
19296
|
"type": props.type,
|
|
19231
19297
|
"clearable": true,
|
|
19232
|
-
"placeholder": `请选择${text}`
|
|
19298
|
+
"placeholder": props.placeholder || `请选择${text}`
|
|
19233
19299
|
},
|
|
19234
19300
|
"on": {
|
|
19235
19301
|
"change": props.change ? e => props.change(e) : () => false
|
|
@@ -19253,7 +19319,7 @@ const Aupload = a => Promise.resolve(/* AMD require */).then(function() { var __
|
|
|
19253
19319
|
"attrs": {
|
|
19254
19320
|
"type": props.type,
|
|
19255
19321
|
"clearable": true,
|
|
19256
|
-
"placeholder": `请选择${text}`
|
|
19322
|
+
"placeholder": props.placeholder || `请选择${text}`
|
|
19257
19323
|
},
|
|
19258
19324
|
"on": {
|
|
19259
19325
|
"change": props.change ? e => props.change(e) : () => false
|
|
@@ -19276,7 +19342,7 @@ const Aupload = a => Promise.resolve(/* AMD require */).then(function() { var __
|
|
|
19276
19342
|
return h("el-color-picker", {
|
|
19277
19343
|
"attrs": {
|
|
19278
19344
|
"size": this.size,
|
|
19279
|
-
"placeholder": `请选择${text}`
|
|
19345
|
+
"placeholder": props.placeholder || `请选择${text}`
|
|
19280
19346
|
},
|
|
19281
19347
|
"on": {
|
|
19282
19348
|
"change": props.change ? e => props.change(e) : () => false
|
|
@@ -19300,7 +19366,7 @@ const Aupload = a => Promise.resolve(/* AMD require */).then(function() { var __
|
|
|
19300
19366
|
"key": this.rand,
|
|
19301
19367
|
"attrs": {
|
|
19302
19368
|
"src": form[field],
|
|
19303
|
-
"placeholder": `请选择${words}`
|
|
19369
|
+
"placeholder": props.placeholder || `请选择${words}`
|
|
19304
19370
|
},
|
|
19305
19371
|
"on": {
|
|
19306
19372
|
"change": props.change ? e => props.change(e) : () => false
|
|
@@ -19324,7 +19390,7 @@ const Aupload = a => Promise.resolve(/* AMD require */).then(function() { var __
|
|
|
19324
19390
|
"change": props.change ? e => props.change(e) : () => false
|
|
19325
19391
|
},
|
|
19326
19392
|
"attrs": {
|
|
19327
|
-
"placeholder": `请选择${words}`
|
|
19393
|
+
"placeholder": props.placeholder || `请选择${words}`
|
|
19328
19394
|
},
|
|
19329
19395
|
"style": {
|
|
19330
19396
|
width: props.width,
|
|
@@ -19347,7 +19413,7 @@ const Aupload = a => Promise.resolve(/* AMD require */).then(function() { var __
|
|
|
19347
19413
|
"change": props.change ? e => props.change(e) : () => false
|
|
19348
19414
|
},
|
|
19349
19415
|
"attrs": {
|
|
19350
|
-
"placeholder": `请选择${words}`
|
|
19416
|
+
"placeholder": props.placeholder || `请选择${words}`
|
|
19351
19417
|
},
|
|
19352
19418
|
"style": {
|
|
19353
19419
|
width: props.width,
|
|
@@ -19371,7 +19437,7 @@ const Aupload = a => Promise.resolve(/* AMD require */).then(function() { var __
|
|
|
19371
19437
|
return h("el-input", {
|
|
19372
19438
|
"attrs": {
|
|
19373
19439
|
"clearable": true,
|
|
19374
|
-
"placeholder": `请输入${words}`
|
|
19440
|
+
"placeholder": props.placeholder || `请输入${words}`
|
|
19375
19441
|
},
|
|
19376
19442
|
"on": {
|
|
19377
19443
|
"change": props.change ? e => props.change(e) : () => false
|
|
@@ -21067,6 +21133,13 @@ module.exports = _default;
|
|
|
21067
21133
|
|
|
21068
21134
|
/***/ }),
|
|
21069
21135
|
|
|
21136
|
+
/***/ "2667":
|
|
21137
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
21138
|
+
|
|
21139
|
+
// extracted by mini-css-extract-plugin
|
|
21140
|
+
|
|
21141
|
+
/***/ }),
|
|
21142
|
+
|
|
21070
21143
|
/***/ "270f":
|
|
21071
21144
|
/***/ (function(module, exports, __webpack_require__) {
|
|
21072
21145
|
|
|
@@ -36232,6 +36305,7 @@ var map = {
|
|
|
36232
36305
|
"./Aenume/index.js": "6cc8",
|
|
36233
36306
|
"./Aform/AfEditor/index.js": "b550",
|
|
36234
36307
|
"./Aform/AfSearch/index.js": "1b78",
|
|
36308
|
+
"./Aform/BfSearch copy/index.js": "6a90",
|
|
36235
36309
|
"./Aform/BfSearch/index.js": "fc0d",
|
|
36236
36310
|
"./Aform/index.js": "aff6",
|
|
36237
36311
|
"./AformItem/index.js": "2234",
|
|
@@ -44807,6 +44881,349 @@ module.exports = _default;
|
|
|
44807
44881
|
|
|
44808
44882
|
/***/ }),
|
|
44809
44883
|
|
|
44884
|
+
/***/ "6a90":
|
|
44885
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
44886
|
+
|
|
44887
|
+
"use strict";
|
|
44888
|
+
__webpack_require__.r(__webpack_exports__);
|
|
44889
|
+
/* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("4c02");
|
|
44890
|
+
/* 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__);
|
|
44891
|
+
/* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("9a62");
|
|
44892
|
+
/* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_1__);
|
|
44893
|
+
|
|
44894
|
+
// const AformItem = () => import('@/components/AformItem');
|
|
44895
|
+
|
|
44896
|
+
const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__("2234")]; (a).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(__webpack_require__.oe);
|
|
44897
|
+
|
|
44898
|
+
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
44899
|
+
name: 'BfSearch',
|
|
44900
|
+
props: {
|
|
44901
|
+
size: {
|
|
44902
|
+
type: String,
|
|
44903
|
+
default: () => 'medium'
|
|
44904
|
+
},
|
|
44905
|
+
inline: {
|
|
44906
|
+
type: Boolean,
|
|
44907
|
+
default: () => false
|
|
44908
|
+
},
|
|
44909
|
+
colSpan: {
|
|
44910
|
+
type: String,
|
|
44911
|
+
default: () => "5"
|
|
44912
|
+
},
|
|
44913
|
+
labelWidth: {
|
|
44914
|
+
type: String,
|
|
44915
|
+
default: () => 'auto'
|
|
44916
|
+
},
|
|
44917
|
+
labelPosition: {
|
|
44918
|
+
type: String,
|
|
44919
|
+
default: () => 'left'
|
|
44920
|
+
},
|
|
44921
|
+
config: {
|
|
44922
|
+
type: Object,
|
|
44923
|
+
default: () => ({})
|
|
44924
|
+
},
|
|
44925
|
+
values: {
|
|
44926
|
+
type: Object,
|
|
44927
|
+
default: () => ({})
|
|
44928
|
+
},
|
|
44929
|
+
label: {
|
|
44930
|
+
type: Boolean,
|
|
44931
|
+
default: () => true
|
|
44932
|
+
},
|
|
44933
|
+
verify: {
|
|
44934
|
+
type: Boolean,
|
|
44935
|
+
default: () => true
|
|
44936
|
+
},
|
|
44937
|
+
loading: {
|
|
44938
|
+
type: Boolean,
|
|
44939
|
+
default: () => false
|
|
44940
|
+
},
|
|
44941
|
+
submitText: {
|
|
44942
|
+
type: String,
|
|
44943
|
+
default: () => '搜索'
|
|
44944
|
+
},
|
|
44945
|
+
cancelText: {
|
|
44946
|
+
type: String,
|
|
44947
|
+
default: () => '重置'
|
|
44948
|
+
}
|
|
44949
|
+
},
|
|
44950
|
+
|
|
44951
|
+
data() {
|
|
44952
|
+
return {
|
|
44953
|
+
form: {},
|
|
44954
|
+
opened: false
|
|
44955
|
+
};
|
|
44956
|
+
},
|
|
44957
|
+
|
|
44958
|
+
created() {
|
|
44959
|
+
this.create();
|
|
44960
|
+
},
|
|
44961
|
+
|
|
44962
|
+
destroyed() {
|
|
44963
|
+
this.cancel();
|
|
44964
|
+
},
|
|
44965
|
+
|
|
44966
|
+
watch: {
|
|
44967
|
+
values() {
|
|
44968
|
+
this.create();
|
|
44969
|
+
}
|
|
44970
|
+
|
|
44971
|
+
},
|
|
44972
|
+
methods: {
|
|
44973
|
+
create() {
|
|
44974
|
+
// 创建表单
|
|
44975
|
+
if (this.config && Object.keys(this.config).length > 0) {
|
|
44976
|
+
// 格式化表单配置对象(this.config)为数据双向绑定对象
|
|
44977
|
+
let data = {};
|
|
44978
|
+
|
|
44979
|
+
for (let a in this.config) data[a] = this.config[a].default ? this.config[a].default : '';
|
|
44980
|
+
|
|
44981
|
+
this.form = data;
|
|
44982
|
+
}
|
|
44983
|
+
},
|
|
44984
|
+
|
|
44985
|
+
submit() {
|
|
44986
|
+
// 提交表单
|
|
44987
|
+
let pass = !this.verify; // 判断是否是空表单
|
|
44988
|
+
|
|
44989
|
+
for (let a in this.form) if (this.form[a] != '') pass = true;
|
|
44990
|
+
|
|
44991
|
+
let data = {};
|
|
44992
|
+
|
|
44993
|
+
if (Object.keys(this.config).length > 0) {
|
|
44994
|
+
// 格式化属性为模糊查询属性
|
|
44995
|
+
for (let a in this.config) {
|
|
44996
|
+
if (this.config[a] != '' && this.config[a].like) data[a] = '%' + this.form[a] + '%';
|
|
44997
|
+
|
|
44998
|
+
if (this.config[a] != '' && (this.config[a].than || this.config[a].range || this.config[a].scope)) {
|
|
44999
|
+
data[`${a}LE`] = this.form[`${a}LE`];
|
|
45000
|
+
data[`${a}GE`] = this.form[`${a}GE`];
|
|
45001
|
+
} else data[a] = this.form[a];
|
|
45002
|
+
}
|
|
45003
|
+
}
|
|
45004
|
+
|
|
45005
|
+
if (pass) {
|
|
45006
|
+
const {
|
|
45007
|
+
pageParams
|
|
45008
|
+
} = this.$store.state;
|
|
45009
|
+
this.$store.commit('changeFormParams', this.filter(data)); // 添加查询参数
|
|
45010
|
+
|
|
45011
|
+
this.$store.commit('changePageParams', { ...pageParams,
|
|
45012
|
+
page: 1
|
|
45013
|
+
}); // 重置分页参数
|
|
45014
|
+
|
|
45015
|
+
this.$emit('submit', { ...this.filter(data),
|
|
45016
|
+
...pageParams,
|
|
45017
|
+
page: 1
|
|
45018
|
+
}); // 派发事件并重置当前分页
|
|
45019
|
+
|
|
45020
|
+
return data;
|
|
45021
|
+
}
|
|
45022
|
+
},
|
|
45023
|
+
|
|
45024
|
+
cancel() {
|
|
45025
|
+
// 重置表单
|
|
45026
|
+
let pass = !this.verify; // 判断是否是空表单
|
|
45027
|
+
|
|
45028
|
+
for (let a in this.form) if (this.form[a] != '') pass = true;
|
|
45029
|
+
|
|
45030
|
+
if (pass) {
|
|
45031
|
+
const {
|
|
45032
|
+
pageParams
|
|
45033
|
+
} = this.$store.state;
|
|
45034
|
+
this.$store.commit('changePageParams', { ...pageParams,
|
|
45035
|
+
page: 1,
|
|
45036
|
+
size: 10
|
|
45037
|
+
}); // 重置分页参数
|
|
45038
|
+
|
|
45039
|
+
this.$store.commit('changeFormParams', {}); // 重置查询参数
|
|
45040
|
+
|
|
45041
|
+
for (let a in this.form) this.form[a] = '';
|
|
45042
|
+
|
|
45043
|
+
this.$emit('cancel', this.form);
|
|
45044
|
+
}
|
|
45045
|
+
},
|
|
45046
|
+
|
|
45047
|
+
filter(form) {
|
|
45048
|
+
// 过滤空值属性
|
|
45049
|
+
const data = {};
|
|
45050
|
+
|
|
45051
|
+
for (let a in form) {
|
|
45052
|
+
if (form[a] != '' && form[a] != '%%' && form[a] != 'undefined' && form[a] != null && form[a] != undefined) data[a] = form[a];
|
|
45053
|
+
}
|
|
45054
|
+
|
|
45055
|
+
return data;
|
|
45056
|
+
},
|
|
45057
|
+
|
|
45058
|
+
result() {
|
|
45059
|
+
// 返回验证后的表单数据
|
|
45060
|
+
return this.submit();
|
|
45061
|
+
},
|
|
45062
|
+
|
|
45063
|
+
switch() {
|
|
45064
|
+
this.opened = !this.opened;
|
|
45065
|
+
},
|
|
45066
|
+
|
|
45067
|
+
prompt(a = {}, index = 0, placeholder = '') {
|
|
45068
|
+
if (Object.keys(a).length > 0 && a.placeholder && a.placeholder.length && a.placeholder.length > 0) return a.placeholder[index];
|
|
45069
|
+
return placeholder;
|
|
45070
|
+
},
|
|
45071
|
+
|
|
45072
|
+
format(a = {}, field = '', placeholder = '') {
|
|
45073
|
+
const h = this.$createElement;
|
|
45074
|
+
|
|
45075
|
+
if (Object.keys(a).length > 0) {
|
|
45076
|
+
let config = {
|
|
45077
|
+
size: this.config[a].size ? this.config[a].size : this.size,
|
|
45078
|
+
field: field != '' ? field : `${a}`,
|
|
45079
|
+
disabled: this.loading,
|
|
45080
|
+
form: this.form,
|
|
45081
|
+
...this.config[a]
|
|
45082
|
+
};
|
|
45083
|
+
if (placeholder != '') return h(AformItem, {
|
|
45084
|
+
"attrs": {
|
|
45085
|
+
"config": { ...config,
|
|
45086
|
+
placeholder
|
|
45087
|
+
}
|
|
45088
|
+
}
|
|
45089
|
+
});
|
|
45090
|
+
return h(AformItem, {
|
|
45091
|
+
"attrs": {
|
|
45092
|
+
"config": config
|
|
45093
|
+
}
|
|
45094
|
+
});
|
|
45095
|
+
}
|
|
45096
|
+
}
|
|
45097
|
+
|
|
45098
|
+
},
|
|
45099
|
+
|
|
45100
|
+
render() {
|
|
45101
|
+
const h = arguments[0];
|
|
45102
|
+
const {
|
|
45103
|
+
submit,
|
|
45104
|
+
cancel
|
|
45105
|
+
} = this.$listeners;
|
|
45106
|
+
return Object.keys(this.config).length > 0 && h("keep-alive", [h("div", {
|
|
45107
|
+
"class": "b-f-search"
|
|
45108
|
+
}, [h("el-form", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
45109
|
+
"ref": "form",
|
|
45110
|
+
"attrs": {
|
|
45111
|
+
"size": this.size,
|
|
45112
|
+
"inline": this.inline
|
|
45113
|
+
}
|
|
45114
|
+
}, {
|
|
45115
|
+
"props": {
|
|
45116
|
+
model: this.form
|
|
45117
|
+
}
|
|
45118
|
+
}, {
|
|
45119
|
+
"attrs": {
|
|
45120
|
+
"labelWidth": this.labelWidth,
|
|
45121
|
+
"labelPosition": this.labelPosition
|
|
45122
|
+
}
|
|
45123
|
+
}]), [h("div", {
|
|
45124
|
+
"class": "column"
|
|
45125
|
+
}, [h("div", {
|
|
45126
|
+
"class": "main-row"
|
|
45127
|
+
}, [h("el-row", {
|
|
45128
|
+
"attrs": {
|
|
45129
|
+
"gutter": 20
|
|
45130
|
+
},
|
|
45131
|
+
"class": this.cols != '' ? 'custom-cols' : ''
|
|
45132
|
+
}, [Object.keys(this.config).map((a, b) => {
|
|
45133
|
+
if (this.cols != '' ? b < this.cols : b < 24 / this.colSpan) {
|
|
45134
|
+
return h("el-col", {
|
|
45135
|
+
"key": b,
|
|
45136
|
+
"attrs": {
|
|
45137
|
+
"span": this.span != '' ? null : this.colSpan
|
|
45138
|
+
},
|
|
45139
|
+
"style": {
|
|
45140
|
+
width: this.cols != '' ? `${100 / this.cols}%` : null
|
|
45141
|
+
}
|
|
45142
|
+
}, [h("el-form-item", {
|
|
45143
|
+
"attrs": {
|
|
45144
|
+
"prop": `${a}`,
|
|
45145
|
+
"label": this.label ? this.config[a]['text'] : ''
|
|
45146
|
+
}
|
|
45147
|
+
}, [this.config[a].than || this.config[a].range || this.config[a].scope ? h("el-col", {
|
|
45148
|
+
"class": "range-cols"
|
|
45149
|
+
}, [h("el-col", {
|
|
45150
|
+
"attrs": {
|
|
45151
|
+
"span": 12
|
|
45152
|
+
}
|
|
45153
|
+
}, [this.format(a, `${a}LE`, this.prompt(this.config[a], 0, '最高'))]), h("el-col", {
|
|
45154
|
+
"attrs": {
|
|
45155
|
+
"span": 12
|
|
45156
|
+
}
|
|
45157
|
+
}, [this.format(a, `${a}GE`, this.prompt(this.config[a], 1, '最低'))])]) : this.format(a)])]);
|
|
45158
|
+
}
|
|
45159
|
+
})])]), h("div", {
|
|
45160
|
+
"class": this.opened ? 'fold-row open' : 'fold-row'
|
|
45161
|
+
}, [h("el-row", {
|
|
45162
|
+
"attrs": {
|
|
45163
|
+
"gutter": 20
|
|
45164
|
+
},
|
|
45165
|
+
"class": this.cols != '' ? 'custom-cols' : ''
|
|
45166
|
+
}, [Object.keys(this.config).map((a, b) => {
|
|
45167
|
+
if (this.cols != '' ? b > this.cols : b > 24 / this.colSpan - 1) {
|
|
45168
|
+
return h("el-col", {
|
|
45169
|
+
"key": b,
|
|
45170
|
+
"attrs": {
|
|
45171
|
+
"span": this.cols != '' ? null : this.colSpan
|
|
45172
|
+
},
|
|
45173
|
+
"style": {
|
|
45174
|
+
width: this.cols != '' ? `${100 / this.cols}%` : null
|
|
45175
|
+
}
|
|
45176
|
+
}, [h("el-form-item", {
|
|
45177
|
+
"attrs": {
|
|
45178
|
+
"prop": `${a}`,
|
|
45179
|
+
"label": this.label ? this.config[a]['text'] : ''
|
|
45180
|
+
}
|
|
45181
|
+
}, [this.config[a].than || this.config[a].range || this.config[a].scope ? h("el-col", {
|
|
45182
|
+
"class": "range-cols"
|
|
45183
|
+
}, [h("el-col", {
|
|
45184
|
+
"attrs": {
|
|
45185
|
+
"span": 12
|
|
45186
|
+
}
|
|
45187
|
+
}, [this.format(a, `${a}LE`, this.prompt(this.config[a], 0, '最高'))]), h("el-col", {
|
|
45188
|
+
"attrs": {
|
|
45189
|
+
"span": 12
|
|
45190
|
+
}
|
|
45191
|
+
}, [this.format(a, `${a}GE`, this.prompt(this.config[a], 1, '最低'))])]) : this.format(a)])]);
|
|
45192
|
+
}
|
|
45193
|
+
})])])]), (Object.keys(this.config).length > 24 / this.colSpan || submit || cancel) && h("el-form-item", {
|
|
45194
|
+
"class": "action"
|
|
45195
|
+
}, [Object.keys(this.config).length > 24 / this.colSpan && h("el-button", {
|
|
45196
|
+
"attrs": {
|
|
45197
|
+
"type": "text"
|
|
45198
|
+
},
|
|
45199
|
+
"class": "collapse-button",
|
|
45200
|
+
"on": {
|
|
45201
|
+
"click": () => this.switch()
|
|
45202
|
+
}
|
|
45203
|
+
}, [h("i", {
|
|
45204
|
+
"class": `el-icon-arrow-${this.opened ? 'up' : 'down'}`
|
|
45205
|
+
}), this.opened ? '收起' : '展开']), submit && h("el-button", {
|
|
45206
|
+
"attrs": {
|
|
45207
|
+
"disabled": this.loading,
|
|
45208
|
+
"type": "primary"
|
|
45209
|
+
},
|
|
45210
|
+
"on": {
|
|
45211
|
+
"click": () => this.submit(this.filter(this.form))
|
|
45212
|
+
}
|
|
45213
|
+
}, [this.submitText]), cancel && h("el-button", {
|
|
45214
|
+
"attrs": {
|
|
45215
|
+
"disabled": this.loading
|
|
45216
|
+
},
|
|
45217
|
+
"on": {
|
|
45218
|
+
"click": () => this.cancel(this.filter(this.form))
|
|
45219
|
+
}
|
|
45220
|
+
}, [this.cancelText])])])])]);
|
|
45221
|
+
}
|
|
45222
|
+
|
|
45223
|
+
});
|
|
45224
|
+
|
|
45225
|
+
/***/ }),
|
|
45226
|
+
|
|
44810
45227
|
/***/ "6b23":
|
|
44811
45228
|
/***/ (function(module, exports, __webpack_require__) {
|
|
44812
45229
|
|
|
@@ -62046,6 +62463,13 @@ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADD
|
|
|
62046
62463
|
|
|
62047
62464
|
/***/ }),
|
|
62048
62465
|
|
|
62466
|
+
/***/ "9a62":
|
|
62467
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
62468
|
+
|
|
62469
|
+
// extracted by mini-css-extract-plugin
|
|
62470
|
+
|
|
62471
|
+
/***/ }),
|
|
62472
|
+
|
|
62049
62473
|
/***/ "9a6a":
|
|
62050
62474
|
/***/ (function(module, exports, __webpack_require__) {
|
|
62051
62475
|
|
|
@@ -131252,7 +131676,7 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
|
|
|
131252
131676
|
},
|
|
131253
131677
|
size: {
|
|
131254
131678
|
type: String,
|
|
131255
|
-
default: () => '
|
|
131679
|
+
default: () => 'medium'
|
|
131256
131680
|
},
|
|
131257
131681
|
rules: {
|
|
131258
131682
|
type: Object,
|
|
@@ -133391,7 +133815,7 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
|
|
|
133391
133815
|
},
|
|
133392
133816
|
size: {
|
|
133393
133817
|
type: String,
|
|
133394
|
-
default: () => '
|
|
133818
|
+
default: () => 'medium'
|
|
133395
133819
|
},
|
|
133396
133820
|
rules: {
|
|
133397
133821
|
type: Object,
|
|
@@ -135968,12 +136392,12 @@ const Aempty = a => Promise.resolve(/* AMD require */).then(function() { var __W
|
|
|
135968
136392
|
},
|
|
135969
136393
|
|
|
135970
136394
|
created() {
|
|
135971
|
-
this.search();
|
|
135972
136395
|
this.create();
|
|
135973
136396
|
},
|
|
135974
136397
|
|
|
135975
136398
|
mounted() {
|
|
135976
136399
|
this.$refs['a-table'].bodyWrapper.addEventListener('wheel', this.scroll);
|
|
136400
|
+
this.$nextTick(() => this.search());
|
|
135977
136401
|
},
|
|
135978
136402
|
|
|
135979
136403
|
methods: {
|
|
@@ -136180,6 +136604,7 @@ const Aempty = a => Promise.resolve(/* AMD require */).then(function() { var __W
|
|
|
136180
136604
|
render() {
|
|
136181
136605
|
const h = arguments[0];
|
|
136182
136606
|
const {
|
|
136607
|
+
formSpan = '6',
|
|
136183
136608
|
searchVerify = true,
|
|
136184
136609
|
searchConfig = {},
|
|
136185
136610
|
actionConfig = []
|
|
@@ -136198,6 +136623,7 @@ const Aempty = a => Promise.resolve(/* AMD require */).then(function() { var __W
|
|
|
136198
136623
|
const condition = data.length > 0;
|
|
136199
136624
|
return h("div", [Object.keys(searchConfig).length > 0 && (Object.keys(searchConfig).length < 5 ? h(AfSearch, {
|
|
136200
136625
|
"attrs": {
|
|
136626
|
+
"colSpan": formSpan,
|
|
136201
136627
|
"verify": searchVerify,
|
|
136202
136628
|
"config": searchConfig,
|
|
136203
136629
|
"loading": loading
|
|
@@ -136208,6 +136634,7 @@ const Aempty = a => Promise.resolve(/* AMD require */).then(function() { var __W
|
|
|
136208
136634
|
}
|
|
136209
136635
|
}) : h(BfSearch, {
|
|
136210
136636
|
"attrs": {
|
|
136637
|
+
"colSpan": formSpan,
|
|
136211
136638
|
"verify": searchVerify,
|
|
136212
136639
|
"config": searchConfig,
|
|
136213
136640
|
"loading": loading
|
|
@@ -159521,8 +159948,8 @@ const AuploadFile = a => Promise.resolve(/* AMD require */).then(function() { va
|
|
|
159521
159948
|
keys: selectedKeys,
|
|
159522
159949
|
rows: selectedRows
|
|
159523
159950
|
};
|
|
159524
|
-
const statistics = selectedKeys.length > 1 ? `已选中的${selectedKeys.length}
|
|
159525
|
-
this.$confirm(`是否确定要删除${statistics}
|
|
159951
|
+
const statistics = selectedKeys.length > 1 ? `已选中的${selectedKeys.length}条` : '此';
|
|
159952
|
+
this.$confirm(`是否确定要删除${statistics}数据记录?`, '提示信息', {
|
|
159526
159953
|
confirmButtonText: '确定',
|
|
159527
159954
|
cancelButtonText: '取消',
|
|
159528
159955
|
type: 'warning'
|
|
@@ -166655,19 +167082,23 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
|
|
|
166655
167082
|
props: {
|
|
166656
167083
|
size: {
|
|
166657
167084
|
type: String,
|
|
166658
|
-
default: () => '
|
|
166659
|
-
},
|
|
166660
|
-
colSpan: {
|
|
166661
|
-
type: Number,
|
|
166662
|
-
default: () => 4
|
|
167085
|
+
default: () => 'medium'
|
|
166663
167086
|
},
|
|
166664
167087
|
inline: {
|
|
166665
167088
|
type: Boolean,
|
|
166666
|
-
default: () =>
|
|
167089
|
+
default: () => false
|
|
167090
|
+
},
|
|
167091
|
+
colSpan: {
|
|
167092
|
+
type: String,
|
|
167093
|
+
default: () => '4'
|
|
167094
|
+
},
|
|
167095
|
+
labelWidth: {
|
|
167096
|
+
type: String,
|
|
167097
|
+
default: () => 'auto'
|
|
166667
167098
|
},
|
|
166668
167099
|
labelPosition: {
|
|
166669
167100
|
type: String,
|
|
166670
|
-
default: () => '
|
|
167101
|
+
default: () => 'top'
|
|
166671
167102
|
},
|
|
166672
167103
|
config: {
|
|
166673
167104
|
type: Object,
|
|
@@ -166679,7 +167110,7 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
|
|
|
166679
167110
|
},
|
|
166680
167111
|
label: {
|
|
166681
167112
|
type: Boolean,
|
|
166682
|
-
default: () =>
|
|
167113
|
+
default: () => true
|
|
166683
167114
|
},
|
|
166684
167115
|
verify: {
|
|
166685
167116
|
type: Boolean,
|
|
@@ -166744,7 +167175,12 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
|
|
|
166744
167175
|
if (Object.keys(this.config).length > 0) {
|
|
166745
167176
|
// 格式化属性为模糊查询属性
|
|
166746
167177
|
for (let a in this.config) {
|
|
166747
|
-
if (this.config[a] != '' && this.config[a].like) data[a] = '%' + this.form[a] + '%';
|
|
167178
|
+
if (this.config[a] != '' && this.config[a].like) data[a] = '%' + this.form[a] + '%';
|
|
167179
|
+
|
|
167180
|
+
if (this.config[a] != '' && (this.config[a].than || this.config[a].range || this.config[a].scope)) {
|
|
167181
|
+
data[`${a}LE`] = this.form[`${a}LE`];
|
|
167182
|
+
data[`${a}GE`] = this.form[`${a}GE`];
|
|
167183
|
+
} else data[a] = this.form[a];
|
|
166748
167184
|
}
|
|
166749
167185
|
}
|
|
166750
167186
|
|
|
@@ -166808,6 +167244,62 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
|
|
|
166808
167244
|
|
|
166809
167245
|
switch() {
|
|
166810
167246
|
this.opened = !this.opened;
|
|
167247
|
+
},
|
|
167248
|
+
|
|
167249
|
+
prompt(a = {}, index = 0, placeholder = '') {
|
|
167250
|
+
if (Object.keys(a).length > 0 && a.placeholder && a.placeholder.length && a.placeholder.length > 0) return a.placeholder[index];
|
|
167251
|
+
return placeholder;
|
|
167252
|
+
},
|
|
167253
|
+
|
|
167254
|
+
format(a = {}, field = '', placeholder = '') {
|
|
167255
|
+
const h = this.$createElement;
|
|
167256
|
+
|
|
167257
|
+
if (Object.keys(a).length > 0) {
|
|
167258
|
+
let config = {
|
|
167259
|
+
size: this.config[a].size ? this.config[a].size : this.size,
|
|
167260
|
+
field: field != '' ? field : `${a}`,
|
|
167261
|
+
disabled: this.loading,
|
|
167262
|
+
form: this.form,
|
|
167263
|
+
...this.config[a]
|
|
167264
|
+
};
|
|
167265
|
+
if (placeholder != '') return h(AformItem, {
|
|
167266
|
+
"attrs": {
|
|
167267
|
+
"config": { ...config,
|
|
167268
|
+
placeholder
|
|
167269
|
+
}
|
|
167270
|
+
}
|
|
167271
|
+
});
|
|
167272
|
+
return h(AformItem, {
|
|
167273
|
+
"attrs": {
|
|
167274
|
+
"config": config
|
|
167275
|
+
}
|
|
167276
|
+
});
|
|
167277
|
+
}
|
|
167278
|
+
},
|
|
167279
|
+
|
|
167280
|
+
output(a, b) {
|
|
167281
|
+
const h = this.$createElement;
|
|
167282
|
+
return h("el-col", {
|
|
167283
|
+
"key": b,
|
|
167284
|
+
"attrs": {
|
|
167285
|
+
"span": parseInt(this.colSpan)
|
|
167286
|
+
}
|
|
167287
|
+
}, [h("el-form-item", {
|
|
167288
|
+
"attrs": {
|
|
167289
|
+
"prop": `${a}`,
|
|
167290
|
+
"label": this.label ? this.config[a]['text'] : ''
|
|
167291
|
+
}
|
|
167292
|
+
}, [this.config[a].than || this.config[a].range || this.config[a].scope ? h("el-col", {
|
|
167293
|
+
"class": "range-cols"
|
|
167294
|
+
}, [h("el-col", {
|
|
167295
|
+
"attrs": {
|
|
167296
|
+
"span": 12
|
|
167297
|
+
}
|
|
167298
|
+
}, [this.format(a, `${a}LE`, this.prompt(this.config[a], 0, '最高'))]), h("el-col", {
|
|
167299
|
+
"attrs": {
|
|
167300
|
+
"span": 12
|
|
167301
|
+
}
|
|
167302
|
+
}, [this.format(a, `${a}GE`, this.prompt(this.config[a], 1, '最低'))])]) : this.format(a)])]);
|
|
166811
167303
|
}
|
|
166812
167304
|
|
|
166813
167305
|
},
|
|
@@ -166832,73 +167324,31 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
|
|
|
166832
167324
|
}
|
|
166833
167325
|
}, {
|
|
166834
167326
|
"attrs": {
|
|
167327
|
+
"labelWidth": this.labelWidth,
|
|
166835
167328
|
"labelPosition": this.labelPosition
|
|
166836
167329
|
}
|
|
166837
167330
|
}]), [h("div", {
|
|
166838
167331
|
"class": "column"
|
|
166839
|
-
}, [h("div", {
|
|
166840
|
-
"class": "main-row"
|
|
166841
167332
|
}, [h("el-row", {
|
|
166842
167333
|
"attrs": {
|
|
166843
167334
|
"gutter": 20
|
|
166844
|
-
}
|
|
167335
|
+
},
|
|
167336
|
+
"class": "main-row"
|
|
166845
167337
|
}, [Object.keys(this.config).map((a, b) => {
|
|
166846
|
-
if (b < 24 / this.colSpan)
|
|
166847
|
-
|
|
166848
|
-
"key": b,
|
|
166849
|
-
"attrs": {
|
|
166850
|
-
"span": this.colSpan
|
|
166851
|
-
}
|
|
166852
|
-
}, [h("el-form-item", {
|
|
166853
|
-
"attrs": {
|
|
166854
|
-
"prop": `${a}`,
|
|
166855
|
-
"label": this.label ? this.config[a]['text'] : ''
|
|
166856
|
-
}
|
|
166857
|
-
}, [h(AformItem, {
|
|
166858
|
-
"attrs": {
|
|
166859
|
-
"config": {
|
|
166860
|
-
form: this.form,
|
|
166861
|
-
size: this.config[a].size ? this.config[a].size : this.size,
|
|
166862
|
-
field: `${a}`,
|
|
166863
|
-
disabled: this.loading,
|
|
166864
|
-
...this.config[a]
|
|
166865
|
-
}
|
|
166866
|
-
}
|
|
166867
|
-
})])]);
|
|
166868
|
-
}
|
|
166869
|
-
})])]), h("div", {
|
|
166870
|
-
"class": this.opened ? 'fold-row open' : 'fold-row'
|
|
166871
|
-
}, [h("el-row", {
|
|
167338
|
+
if (b < 24 / this.colSpan) return this.output(a, b);
|
|
167339
|
+
})]), h("el-row", {
|
|
166872
167340
|
"attrs": {
|
|
166873
167341
|
"gutter": 20
|
|
166874
|
-
}
|
|
167342
|
+
},
|
|
167343
|
+
"class": this.opened ? 'fold-row open' : 'fold-row'
|
|
166875
167344
|
}, [Object.keys(this.config).map((a, b) => {
|
|
166876
|
-
if (b > 24 / this.colSpan - 1)
|
|
166877
|
-
|
|
166878
|
-
|
|
166879
|
-
|
|
166880
|
-
|
|
166881
|
-
}
|
|
166882
|
-
}, [h("el-form-item", {
|
|
166883
|
-
"attrs": {
|
|
166884
|
-
"prop": `${a}`,
|
|
166885
|
-
"label": this.label ? this.config[a]['text'] : ''
|
|
166886
|
-
}
|
|
166887
|
-
}, [h(AformItem, {
|
|
166888
|
-
"attrs": {
|
|
166889
|
-
"config": {
|
|
166890
|
-
form: this.form,
|
|
166891
|
-
size: this.config[a].size ? this.config[a].size : this.size,
|
|
166892
|
-
field: `${a}`,
|
|
166893
|
-
disabled: this.loading,
|
|
166894
|
-
...this.config[a]
|
|
166895
|
-
}
|
|
166896
|
-
}
|
|
166897
|
-
})])]);
|
|
167345
|
+
if (b > 24 / this.colSpan - 1) return this.output(a, b);
|
|
167346
|
+
})])]), (Object.keys(this.config).length > 24 / this.colSpan || submit || cancel) && h("el-form-item", {
|
|
167347
|
+
"class": "action",
|
|
167348
|
+
"attrs": {
|
|
167349
|
+
"label": "action"
|
|
166898
167350
|
}
|
|
166899
|
-
}
|
|
166900
|
-
"class": "action"
|
|
166901
|
-
}, [h("el-form-item", [Object.keys(this.config).length > 24 / this.colSpan && h("el-button", {
|
|
167351
|
+
}, [Object.keys(this.config).length > 24 / this.colSpan && h("el-button", {
|
|
166902
167352
|
"attrs": {
|
|
166903
167353
|
"type": "text"
|
|
166904
167354
|
},
|
|
@@ -166923,7 +167373,7 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
|
|
|
166923
167373
|
"on": {
|
|
166924
167374
|
"click": () => this.cancel(this.filter(this.form))
|
|
166925
167375
|
}
|
|
166926
|
-
}, [this.cancelText])])])])])
|
|
167376
|
+
}, [this.cancelText])])])])]);
|
|
166927
167377
|
}
|
|
166928
167378
|
|
|
166929
167379
|
});
|