element-ui-root 1.5.2 → 1.6.0
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 +560 -110
- package/dist/index.css +1 -1
- package/dist/index.umd.js +560 -110
- package/dist/index.umd.min.js +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -13343,8 +13343,14 @@ var map = {
|
|
|
13343
13343
|
"./Aform/AfSearch": "1b78",
|
|
13344
13344
|
"./Aform/AfSearch/": "1b78",
|
|
13345
13345
|
"./Aform/AfSearch/index": "1b78",
|
|
13346
|
+
"./Aform/AfSearch/index.css": "2667",
|
|
13346
13347
|
"./Aform/AfSearch/index.js": "1b78",
|
|
13347
13348
|
"./Aform/BfSearch": "fc0d",
|
|
13349
|
+
"./Aform/BfSearch copy": "6a90",
|
|
13350
|
+
"./Aform/BfSearch copy/": "6a90",
|
|
13351
|
+
"./Aform/BfSearch copy/index": "6a90",
|
|
13352
|
+
"./Aform/BfSearch copy/index.css": "9a62",
|
|
13353
|
+
"./Aform/BfSearch copy/index.js": "6a90",
|
|
13348
13354
|
"./Aform/BfSearch/": "fc0d",
|
|
13349
13355
|
"./Aform/BfSearch/index": "fc0d",
|
|
13350
13356
|
"./Aform/BfSearch/index.css": "a261",
|
|
@@ -13729,9 +13735,11 @@ module.exports = _default;
|
|
|
13729
13735
|
__webpack_require__.r(__webpack_exports__);
|
|
13730
13736
|
/* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("4c02");
|
|
13731
13737
|
/* 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__);
|
|
13738
|
+
/* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("2667");
|
|
13739
|
+
/* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_1__);
|
|
13732
13740
|
|
|
13741
|
+
// const AformItem = () => import('@/components/AformItem');
|
|
13733
13742
|
|
|
13734
|
-
// const AformItem = () => import('@/components/AformItem');
|
|
13735
13743
|
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);
|
|
13736
13744
|
|
|
13737
13745
|
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
@@ -13739,15 +13747,23 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
|
|
|
13739
13747
|
props: {
|
|
13740
13748
|
size: {
|
|
13741
13749
|
type: String,
|
|
13742
|
-
default: () => '
|
|
13750
|
+
default: () => 'medium'
|
|
13743
13751
|
},
|
|
13744
13752
|
inline: {
|
|
13745
13753
|
type: Boolean,
|
|
13746
13754
|
default: () => true
|
|
13747
13755
|
},
|
|
13756
|
+
colSpan: {
|
|
13757
|
+
type: String,
|
|
13758
|
+
default: () => '6'
|
|
13759
|
+
},
|
|
13760
|
+
labelWidth: {
|
|
13761
|
+
type: String,
|
|
13762
|
+
default: () => 'auto'
|
|
13763
|
+
},
|
|
13748
13764
|
labelPosition: {
|
|
13749
13765
|
type: String,
|
|
13750
|
-
default: () => '
|
|
13766
|
+
default: () => 'top'
|
|
13751
13767
|
},
|
|
13752
13768
|
config: {
|
|
13753
13769
|
type: Object,
|
|
@@ -13759,7 +13775,7 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
|
|
|
13759
13775
|
},
|
|
13760
13776
|
label: {
|
|
13761
13777
|
type: Boolean,
|
|
13762
|
-
default: () =>
|
|
13778
|
+
default: () => true
|
|
13763
13779
|
},
|
|
13764
13780
|
verify: {
|
|
13765
13781
|
type: Boolean,
|
|
@@ -13823,7 +13839,12 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
|
|
|
13823
13839
|
if (Object.keys(this.config).length > 0) {
|
|
13824
13840
|
// 格式化属性为模糊查询属性
|
|
13825
13841
|
for (let a in this.config) {
|
|
13826
|
-
if (this.config[a] != '' && this.config[a].like) data[a] = '%' + this.form[a] + '%';
|
|
13842
|
+
if (this.config[a] != '' && this.config[a].like) data[a] = '%' + this.form[a] + '%';
|
|
13843
|
+
|
|
13844
|
+
if (this.config[a] != '' && (this.config[a].than || this.config[a].range || this.config[a].scope)) {
|
|
13845
|
+
data[`${a}LE`] = this.form[`${a}LE`];
|
|
13846
|
+
data[`${a}GE`] = this.form[`${a}GE`];
|
|
13847
|
+
} else data[a] = this.form[a];
|
|
13827
13848
|
}
|
|
13828
13849
|
}
|
|
13829
13850
|
|
|
@@ -13883,6 +13904,37 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
|
|
|
13883
13904
|
result() {
|
|
13884
13905
|
// 返回验证后的表单数据
|
|
13885
13906
|
return this.submit();
|
|
13907
|
+
},
|
|
13908
|
+
|
|
13909
|
+
prompt(a = {}, index = 0, placeholder = '') {
|
|
13910
|
+
if (Object.keys(a).length > 0 && a.placeholder && a.placeholder.length && a.placeholder.length > 0) return a.placeholder[index];
|
|
13911
|
+
return placeholder;
|
|
13912
|
+
},
|
|
13913
|
+
|
|
13914
|
+
format(a = {}, field = '', placeholder = '') {
|
|
13915
|
+
const h = this.$createElement;
|
|
13916
|
+
|
|
13917
|
+
if (Object.keys(a).length > 0) {
|
|
13918
|
+
let config = {
|
|
13919
|
+
size: this.config[a].size ? this.config[a].size : this.size,
|
|
13920
|
+
field: field != '' ? field : `${a}`,
|
|
13921
|
+
disabled: this.loading,
|
|
13922
|
+
form: this.form,
|
|
13923
|
+
...this.config[a]
|
|
13924
|
+
};
|
|
13925
|
+
if (placeholder != '') return h(AformItem, {
|
|
13926
|
+
"attrs": {
|
|
13927
|
+
"config": { ...config,
|
|
13928
|
+
placeholder
|
|
13929
|
+
}
|
|
13930
|
+
}
|
|
13931
|
+
});
|
|
13932
|
+
return h(AformItem, {
|
|
13933
|
+
"attrs": {
|
|
13934
|
+
"config": config
|
|
13935
|
+
}
|
|
13936
|
+
});
|
|
13937
|
+
}
|
|
13886
13938
|
}
|
|
13887
13939
|
|
|
13888
13940
|
},
|
|
@@ -13893,7 +13945,14 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
|
|
|
13893
13945
|
submit,
|
|
13894
13946
|
cancel
|
|
13895
13947
|
} = this.$listeners;
|
|
13896
|
-
|
|
13948
|
+
let style = this.colSpan != '' ? {
|
|
13949
|
+
width: `${100 / this.colSpan}%`
|
|
13950
|
+
} : {};
|
|
13951
|
+
|
|
13952
|
+
let label = a => this.label ? this.config[a].text || this.config[a].label || this.config[a].title : '';
|
|
13953
|
+
|
|
13954
|
+
let count = Object.keys(this.config).length;
|
|
13955
|
+
return count > 0 && h("keep-alive", [h("div", {
|
|
13897
13956
|
"class": "a-f-search"
|
|
13898
13957
|
}, [h("el-form", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
13899
13958
|
"ref": "form",
|
|
@@ -13907,29 +13966,36 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
|
|
|
13907
13966
|
}
|
|
13908
13967
|
}, {
|
|
13909
13968
|
"attrs": {
|
|
13969
|
+
"labelWidth": this.labelWidth,
|
|
13910
13970
|
"labelPosition": this.labelPosition
|
|
13911
13971
|
}
|
|
13912
|
-
}]), [h("
|
|
13913
|
-
"class": "column"
|
|
13914
|
-
}, [Object.keys(this.config).map((a, b) => h("el-form-item", {
|
|
13972
|
+
}]), [Object.keys(this.config).map((a, b) => h("el-col", {
|
|
13915
13973
|
"key": b,
|
|
13974
|
+
"class": "column",
|
|
13975
|
+
"style": style
|
|
13976
|
+
}, [h("el-form-item", {
|
|
13916
13977
|
"attrs": {
|
|
13917
13978
|
"prop": `${a}`,
|
|
13918
|
-
"label":
|
|
13979
|
+
"label": label(a)
|
|
13919
13980
|
}
|
|
13920
|
-
}, [h(
|
|
13981
|
+
}, [this.config[a].than || this.config[a].range || this.config[a].scope ? h("el-col", {
|
|
13982
|
+
"class": "range-cols"
|
|
13983
|
+
}, [h("el-col", {
|
|
13921
13984
|
"attrs": {
|
|
13922
|
-
"
|
|
13923
|
-
form: this.form,
|
|
13924
|
-
size: this.config[a].size ? this.config[a].size : this.size,
|
|
13925
|
-
field: `${a}`,
|
|
13926
|
-
disabled: this.loading,
|
|
13927
|
-
...this.config[a]
|
|
13928
|
-
}
|
|
13985
|
+
"span": 12
|
|
13929
13986
|
}
|
|
13930
|
-
}
|
|
13931
|
-
"
|
|
13932
|
-
|
|
13987
|
+
}, [this.format(a, `${a}LE`, this.prompt(this.config[a], 0, '最高'))]), h("el-col", {
|
|
13988
|
+
"attrs": {
|
|
13989
|
+
"span": 12
|
|
13990
|
+
}
|
|
13991
|
+
}, [this.format(a, `${a}GE`, this.prompt(this.config[a], 1, '最低'))])]) : this.format(a)])])), this.$slots.default, (submit || cancel) && h("el-col", {
|
|
13992
|
+
"class": "action",
|
|
13993
|
+
"style": style
|
|
13994
|
+
}, [h("el-form-item", {
|
|
13995
|
+
"attrs": {
|
|
13996
|
+
"label": this.label ? 'action' : ''
|
|
13997
|
+
}
|
|
13998
|
+
}, [submit && h("el-button", {
|
|
13933
13999
|
"attrs": {
|
|
13934
14000
|
"disabled": this.loading,
|
|
13935
14001
|
"type": "primary"
|
|
@@ -18903,7 +18969,7 @@ const Aupload = a => Promise.resolve(/* AMD require */).then(function() { var __
|
|
|
18903
18969
|
if (!props.type) return h("el-input", {
|
|
18904
18970
|
"attrs": {
|
|
18905
18971
|
"clearable": true,
|
|
18906
|
-
"placeholder": `请输入${words}`
|
|
18972
|
+
"placeholder": props.placeholder || `请输入${words}`
|
|
18907
18973
|
},
|
|
18908
18974
|
"on": {
|
|
18909
18975
|
"change": props.change ? e => props.change(e) : () => false
|
|
@@ -18924,7 +18990,7 @@ const Aupload = a => Promise.resolve(/* AMD require */).then(function() { var __
|
|
|
18924
18990
|
return h("el-input", {
|
|
18925
18991
|
"attrs": {
|
|
18926
18992
|
"clearable": true,
|
|
18927
|
-
"placeholder": `请输入${words}`
|
|
18993
|
+
"placeholder": props.placeholder || `请输入${words}`
|
|
18928
18994
|
},
|
|
18929
18995
|
"on": {
|
|
18930
18996
|
"change": props.change ? e => props.change(e) : () => false
|
|
@@ -18947,7 +19013,7 @@ const Aupload = a => Promise.resolve(/* AMD require */).then(function() { var __
|
|
|
18947
19013
|
return h("el-input", {
|
|
18948
19014
|
"attrs": {
|
|
18949
19015
|
"clearable": true,
|
|
18950
|
-
"placeholder": `请输入${words}`
|
|
19016
|
+
"placeholder": props.placeholder || `请输入${words}`
|
|
18951
19017
|
},
|
|
18952
19018
|
"on": {
|
|
18953
19019
|
"change": props.change ? e => props.change(e) : () => false
|
|
@@ -18968,7 +19034,7 @@ const Aupload = a => Promise.resolve(/* AMD require */).then(function() { var __
|
|
|
18968
19034
|
return h("el-input", {
|
|
18969
19035
|
"attrs": {
|
|
18970
19036
|
"clearable": true,
|
|
18971
|
-
"placeholder": `请输入${words}`
|
|
19037
|
+
"placeholder": props.placeholder || `请输入${words}`
|
|
18972
19038
|
},
|
|
18973
19039
|
"on": {
|
|
18974
19040
|
"change": props.change ? e => props.change(e) : () => false
|
|
@@ -18989,7 +19055,7 @@ const Aupload = a => Promise.resolve(/* AMD require */).then(function() { var __
|
|
|
18989
19055
|
return h("el-input", {
|
|
18990
19056
|
"attrs": {
|
|
18991
19057
|
"clearable": true,
|
|
18992
|
-
"placeholder": `请输入${words}`,
|
|
19058
|
+
"placeholder": props.placeholder || `请输入${words}`,
|
|
18993
19059
|
"show-password": true
|
|
18994
19060
|
},
|
|
18995
19061
|
"on": {
|
|
@@ -19012,7 +19078,7 @@ const Aupload = a => Promise.resolve(/* AMD require */).then(function() { var __
|
|
|
19012
19078
|
"attrs": {
|
|
19013
19079
|
"clearable": true,
|
|
19014
19080
|
"filterable": true,
|
|
19015
|
-
"placeholder": `请选择${words}`
|
|
19081
|
+
"placeholder": props.placeholder || `请选择${words}`
|
|
19016
19082
|
},
|
|
19017
19083
|
"on": {
|
|
19018
19084
|
"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
|
|
@@ -19047,7 +19113,7 @@ const Aupload = a => Promise.resolve(/* AMD require */).then(function() { var __
|
|
|
19047
19113
|
"clearable": true,
|
|
19048
19114
|
"filterable": true,
|
|
19049
19115
|
"options": props.data && props.data.length > 0 ? props.data : this.option.length > 0 ? this.option : [],
|
|
19050
|
-
"placeholder": `请选择${words}`
|
|
19116
|
+
"placeholder": props.placeholder || `请选择${words}`
|
|
19051
19117
|
},
|
|
19052
19118
|
"on": {
|
|
19053
19119
|
"change": props.change ? e => props.change(e) : () => false
|
|
@@ -19164,7 +19230,7 @@ const Aupload = a => Promise.resolve(/* AMD require */).then(function() { var __
|
|
|
19164
19230
|
"attrs": {
|
|
19165
19231
|
"type": props.type,
|
|
19166
19232
|
"clearable": true,
|
|
19167
|
-
"placeholder": `请选择${words}`,
|
|
19233
|
+
"placeholder": props.placeholder || `请选择${words}`,
|
|
19168
19234
|
"start-placeholder": "开始",
|
|
19169
19235
|
"end-placeholder": "结束"
|
|
19170
19236
|
},
|
|
@@ -19190,7 +19256,7 @@ const Aupload = a => Promise.resolve(/* AMD require */).then(function() { var __
|
|
|
19190
19256
|
"attrs": {
|
|
19191
19257
|
"type": props.type,
|
|
19192
19258
|
"clearable": true,
|
|
19193
|
-
"placeholder": `请选择${words}`
|
|
19259
|
+
"placeholder": props.placeholder || `请选择${words}`
|
|
19194
19260
|
},
|
|
19195
19261
|
"on": {
|
|
19196
19262
|
"change": props.change ? e => props.change(e) : () => false
|
|
@@ -19214,7 +19280,7 @@ const Aupload = a => Promise.resolve(/* AMD require */).then(function() { var __
|
|
|
19214
19280
|
"attrs": {
|
|
19215
19281
|
"type": props.type,
|
|
19216
19282
|
"clearable": true,
|
|
19217
|
-
"placeholder": `请选择${words}`
|
|
19283
|
+
"placeholder": props.placeholder || `请选择${words}`
|
|
19218
19284
|
},
|
|
19219
19285
|
"on": {
|
|
19220
19286
|
"change": props.change ? e => props.change(e) : () => false
|
|
@@ -19238,7 +19304,7 @@ const Aupload = a => Promise.resolve(/* AMD require */).then(function() { var __
|
|
|
19238
19304
|
"attrs": {
|
|
19239
19305
|
"type": props.type,
|
|
19240
19306
|
"clearable": true,
|
|
19241
|
-
"placeholder": `请选择${text}`
|
|
19307
|
+
"placeholder": props.placeholder || `请选择${text}`
|
|
19242
19308
|
},
|
|
19243
19309
|
"on": {
|
|
19244
19310
|
"change": props.change ? e => props.change(e) : () => false
|
|
@@ -19262,7 +19328,7 @@ const Aupload = a => Promise.resolve(/* AMD require */).then(function() { var __
|
|
|
19262
19328
|
"attrs": {
|
|
19263
19329
|
"type": props.type,
|
|
19264
19330
|
"clearable": true,
|
|
19265
|
-
"placeholder": `请选择${text}`
|
|
19331
|
+
"placeholder": props.placeholder || `请选择${text}`
|
|
19266
19332
|
},
|
|
19267
19333
|
"on": {
|
|
19268
19334
|
"change": props.change ? e => props.change(e) : () => false
|
|
@@ -19285,7 +19351,7 @@ const Aupload = a => Promise.resolve(/* AMD require */).then(function() { var __
|
|
|
19285
19351
|
return h("el-color-picker", {
|
|
19286
19352
|
"attrs": {
|
|
19287
19353
|
"size": this.size,
|
|
19288
|
-
"placeholder": `请选择${text}`
|
|
19354
|
+
"placeholder": props.placeholder || `请选择${text}`
|
|
19289
19355
|
},
|
|
19290
19356
|
"on": {
|
|
19291
19357
|
"change": props.change ? e => props.change(e) : () => false
|
|
@@ -19309,7 +19375,7 @@ const Aupload = a => Promise.resolve(/* AMD require */).then(function() { var __
|
|
|
19309
19375
|
"key": this.rand,
|
|
19310
19376
|
"attrs": {
|
|
19311
19377
|
"src": form[field],
|
|
19312
|
-
"placeholder": `请选择${words}`
|
|
19378
|
+
"placeholder": props.placeholder || `请选择${words}`
|
|
19313
19379
|
},
|
|
19314
19380
|
"on": {
|
|
19315
19381
|
"change": props.change ? e => props.change(e) : () => false
|
|
@@ -19333,7 +19399,7 @@ const Aupload = a => Promise.resolve(/* AMD require */).then(function() { var __
|
|
|
19333
19399
|
"change": props.change ? e => props.change(e) : () => false
|
|
19334
19400
|
},
|
|
19335
19401
|
"attrs": {
|
|
19336
|
-
"placeholder": `请选择${words}`
|
|
19402
|
+
"placeholder": props.placeholder || `请选择${words}`
|
|
19337
19403
|
},
|
|
19338
19404
|
"style": {
|
|
19339
19405
|
width: props.width,
|
|
@@ -19356,7 +19422,7 @@ const Aupload = a => Promise.resolve(/* AMD require */).then(function() { var __
|
|
|
19356
19422
|
"change": props.change ? e => props.change(e) : () => false
|
|
19357
19423
|
},
|
|
19358
19424
|
"attrs": {
|
|
19359
|
-
"placeholder": `请选择${words}`
|
|
19425
|
+
"placeholder": props.placeholder || `请选择${words}`
|
|
19360
19426
|
},
|
|
19361
19427
|
"style": {
|
|
19362
19428
|
width: props.width,
|
|
@@ -19380,7 +19446,7 @@ const Aupload = a => Promise.resolve(/* AMD require */).then(function() { var __
|
|
|
19380
19446
|
return h("el-input", {
|
|
19381
19447
|
"attrs": {
|
|
19382
19448
|
"clearable": true,
|
|
19383
|
-
"placeholder": `请输入${words}`
|
|
19449
|
+
"placeholder": props.placeholder || `请输入${words}`
|
|
19384
19450
|
},
|
|
19385
19451
|
"on": {
|
|
19386
19452
|
"change": props.change ? e => props.change(e) : () => false
|
|
@@ -21076,6 +21142,13 @@ module.exports = _default;
|
|
|
21076
21142
|
|
|
21077
21143
|
/***/ }),
|
|
21078
21144
|
|
|
21145
|
+
/***/ "2667":
|
|
21146
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
21147
|
+
|
|
21148
|
+
// extracted by mini-css-extract-plugin
|
|
21149
|
+
|
|
21150
|
+
/***/ }),
|
|
21151
|
+
|
|
21079
21152
|
/***/ "270f":
|
|
21080
21153
|
/***/ (function(module, exports, __webpack_require__) {
|
|
21081
21154
|
|
|
@@ -36241,6 +36314,7 @@ var map = {
|
|
|
36241
36314
|
"./Aenume/index.js": "6cc8",
|
|
36242
36315
|
"./Aform/AfEditor/index.js": "b550",
|
|
36243
36316
|
"./Aform/AfSearch/index.js": "1b78",
|
|
36317
|
+
"./Aform/BfSearch copy/index.js": "6a90",
|
|
36244
36318
|
"./Aform/BfSearch/index.js": "fc0d",
|
|
36245
36319
|
"./Aform/index.js": "aff6",
|
|
36246
36320
|
"./AformItem/index.js": "2234",
|
|
@@ -44816,6 +44890,349 @@ module.exports = _default;
|
|
|
44816
44890
|
|
|
44817
44891
|
/***/ }),
|
|
44818
44892
|
|
|
44893
|
+
/***/ "6a90":
|
|
44894
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
44895
|
+
|
|
44896
|
+
"use strict";
|
|
44897
|
+
__webpack_require__.r(__webpack_exports__);
|
|
44898
|
+
/* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("4c02");
|
|
44899
|
+
/* 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__);
|
|
44900
|
+
/* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("9a62");
|
|
44901
|
+
/* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_1__);
|
|
44902
|
+
|
|
44903
|
+
// const AformItem = () => import('@/components/AformItem');
|
|
44904
|
+
|
|
44905
|
+
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);
|
|
44906
|
+
|
|
44907
|
+
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
44908
|
+
name: 'BfSearch',
|
|
44909
|
+
props: {
|
|
44910
|
+
size: {
|
|
44911
|
+
type: String,
|
|
44912
|
+
default: () => 'medium'
|
|
44913
|
+
},
|
|
44914
|
+
inline: {
|
|
44915
|
+
type: Boolean,
|
|
44916
|
+
default: () => false
|
|
44917
|
+
},
|
|
44918
|
+
colSpan: {
|
|
44919
|
+
type: String,
|
|
44920
|
+
default: () => "5"
|
|
44921
|
+
},
|
|
44922
|
+
labelWidth: {
|
|
44923
|
+
type: String,
|
|
44924
|
+
default: () => 'auto'
|
|
44925
|
+
},
|
|
44926
|
+
labelPosition: {
|
|
44927
|
+
type: String,
|
|
44928
|
+
default: () => 'left'
|
|
44929
|
+
},
|
|
44930
|
+
config: {
|
|
44931
|
+
type: Object,
|
|
44932
|
+
default: () => ({})
|
|
44933
|
+
},
|
|
44934
|
+
values: {
|
|
44935
|
+
type: Object,
|
|
44936
|
+
default: () => ({})
|
|
44937
|
+
},
|
|
44938
|
+
label: {
|
|
44939
|
+
type: Boolean,
|
|
44940
|
+
default: () => true
|
|
44941
|
+
},
|
|
44942
|
+
verify: {
|
|
44943
|
+
type: Boolean,
|
|
44944
|
+
default: () => true
|
|
44945
|
+
},
|
|
44946
|
+
loading: {
|
|
44947
|
+
type: Boolean,
|
|
44948
|
+
default: () => false
|
|
44949
|
+
},
|
|
44950
|
+
submitText: {
|
|
44951
|
+
type: String,
|
|
44952
|
+
default: () => '搜索'
|
|
44953
|
+
},
|
|
44954
|
+
cancelText: {
|
|
44955
|
+
type: String,
|
|
44956
|
+
default: () => '重置'
|
|
44957
|
+
}
|
|
44958
|
+
},
|
|
44959
|
+
|
|
44960
|
+
data() {
|
|
44961
|
+
return {
|
|
44962
|
+
form: {},
|
|
44963
|
+
opened: false
|
|
44964
|
+
};
|
|
44965
|
+
},
|
|
44966
|
+
|
|
44967
|
+
created() {
|
|
44968
|
+
this.create();
|
|
44969
|
+
},
|
|
44970
|
+
|
|
44971
|
+
destroyed() {
|
|
44972
|
+
this.cancel();
|
|
44973
|
+
},
|
|
44974
|
+
|
|
44975
|
+
watch: {
|
|
44976
|
+
values() {
|
|
44977
|
+
this.create();
|
|
44978
|
+
}
|
|
44979
|
+
|
|
44980
|
+
},
|
|
44981
|
+
methods: {
|
|
44982
|
+
create() {
|
|
44983
|
+
// 创建表单
|
|
44984
|
+
if (this.config && Object.keys(this.config).length > 0) {
|
|
44985
|
+
// 格式化表单配置对象(this.config)为数据双向绑定对象
|
|
44986
|
+
let data = {};
|
|
44987
|
+
|
|
44988
|
+
for (let a in this.config) data[a] = this.config[a].default ? this.config[a].default : '';
|
|
44989
|
+
|
|
44990
|
+
this.form = data;
|
|
44991
|
+
}
|
|
44992
|
+
},
|
|
44993
|
+
|
|
44994
|
+
submit() {
|
|
44995
|
+
// 提交表单
|
|
44996
|
+
let pass = !this.verify; // 判断是否是空表单
|
|
44997
|
+
|
|
44998
|
+
for (let a in this.form) if (this.form[a] != '') pass = true;
|
|
44999
|
+
|
|
45000
|
+
let data = {};
|
|
45001
|
+
|
|
45002
|
+
if (Object.keys(this.config).length > 0) {
|
|
45003
|
+
// 格式化属性为模糊查询属性
|
|
45004
|
+
for (let a in this.config) {
|
|
45005
|
+
if (this.config[a] != '' && this.config[a].like) data[a] = '%' + this.form[a] + '%';
|
|
45006
|
+
|
|
45007
|
+
if (this.config[a] != '' && (this.config[a].than || this.config[a].range || this.config[a].scope)) {
|
|
45008
|
+
data[`${a}LE`] = this.form[`${a}LE`];
|
|
45009
|
+
data[`${a}GE`] = this.form[`${a}GE`];
|
|
45010
|
+
} else data[a] = this.form[a];
|
|
45011
|
+
}
|
|
45012
|
+
}
|
|
45013
|
+
|
|
45014
|
+
if (pass) {
|
|
45015
|
+
const {
|
|
45016
|
+
pageParams
|
|
45017
|
+
} = this.$store.state;
|
|
45018
|
+
this.$store.commit('changeFormParams', this.filter(data)); // 添加查询参数
|
|
45019
|
+
|
|
45020
|
+
this.$store.commit('changePageParams', { ...pageParams,
|
|
45021
|
+
page: 1
|
|
45022
|
+
}); // 重置分页参数
|
|
45023
|
+
|
|
45024
|
+
this.$emit('submit', { ...this.filter(data),
|
|
45025
|
+
...pageParams,
|
|
45026
|
+
page: 1
|
|
45027
|
+
}); // 派发事件并重置当前分页
|
|
45028
|
+
|
|
45029
|
+
return data;
|
|
45030
|
+
}
|
|
45031
|
+
},
|
|
45032
|
+
|
|
45033
|
+
cancel() {
|
|
45034
|
+
// 重置表单
|
|
45035
|
+
let pass = !this.verify; // 判断是否是空表单
|
|
45036
|
+
|
|
45037
|
+
for (let a in this.form) if (this.form[a] != '') pass = true;
|
|
45038
|
+
|
|
45039
|
+
if (pass) {
|
|
45040
|
+
const {
|
|
45041
|
+
pageParams
|
|
45042
|
+
} = this.$store.state;
|
|
45043
|
+
this.$store.commit('changePageParams', { ...pageParams,
|
|
45044
|
+
page: 1,
|
|
45045
|
+
size: 10
|
|
45046
|
+
}); // 重置分页参数
|
|
45047
|
+
|
|
45048
|
+
this.$store.commit('changeFormParams', {}); // 重置查询参数
|
|
45049
|
+
|
|
45050
|
+
for (let a in this.form) this.form[a] = '';
|
|
45051
|
+
|
|
45052
|
+
this.$emit('cancel', this.form);
|
|
45053
|
+
}
|
|
45054
|
+
},
|
|
45055
|
+
|
|
45056
|
+
filter(form) {
|
|
45057
|
+
// 过滤空值属性
|
|
45058
|
+
const data = {};
|
|
45059
|
+
|
|
45060
|
+
for (let a in form) {
|
|
45061
|
+
if (form[a] != '' && form[a] != '%%' && form[a] != 'undefined' && form[a] != null && form[a] != undefined) data[a] = form[a];
|
|
45062
|
+
}
|
|
45063
|
+
|
|
45064
|
+
return data;
|
|
45065
|
+
},
|
|
45066
|
+
|
|
45067
|
+
result() {
|
|
45068
|
+
// 返回验证后的表单数据
|
|
45069
|
+
return this.submit();
|
|
45070
|
+
},
|
|
45071
|
+
|
|
45072
|
+
switch() {
|
|
45073
|
+
this.opened = !this.opened;
|
|
45074
|
+
},
|
|
45075
|
+
|
|
45076
|
+
prompt(a = {}, index = 0, placeholder = '') {
|
|
45077
|
+
if (Object.keys(a).length > 0 && a.placeholder && a.placeholder.length && a.placeholder.length > 0) return a.placeholder[index];
|
|
45078
|
+
return placeholder;
|
|
45079
|
+
},
|
|
45080
|
+
|
|
45081
|
+
format(a = {}, field = '', placeholder = '') {
|
|
45082
|
+
const h = this.$createElement;
|
|
45083
|
+
|
|
45084
|
+
if (Object.keys(a).length > 0) {
|
|
45085
|
+
let config = {
|
|
45086
|
+
size: this.config[a].size ? this.config[a].size : this.size,
|
|
45087
|
+
field: field != '' ? field : `${a}`,
|
|
45088
|
+
disabled: this.loading,
|
|
45089
|
+
form: this.form,
|
|
45090
|
+
...this.config[a]
|
|
45091
|
+
};
|
|
45092
|
+
if (placeholder != '') return h(AformItem, {
|
|
45093
|
+
"attrs": {
|
|
45094
|
+
"config": { ...config,
|
|
45095
|
+
placeholder
|
|
45096
|
+
}
|
|
45097
|
+
}
|
|
45098
|
+
});
|
|
45099
|
+
return h(AformItem, {
|
|
45100
|
+
"attrs": {
|
|
45101
|
+
"config": config
|
|
45102
|
+
}
|
|
45103
|
+
});
|
|
45104
|
+
}
|
|
45105
|
+
}
|
|
45106
|
+
|
|
45107
|
+
},
|
|
45108
|
+
|
|
45109
|
+
render() {
|
|
45110
|
+
const h = arguments[0];
|
|
45111
|
+
const {
|
|
45112
|
+
submit,
|
|
45113
|
+
cancel
|
|
45114
|
+
} = this.$listeners;
|
|
45115
|
+
return Object.keys(this.config).length > 0 && h("keep-alive", [h("div", {
|
|
45116
|
+
"class": "b-f-search"
|
|
45117
|
+
}, [h("el-form", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
45118
|
+
"ref": "form",
|
|
45119
|
+
"attrs": {
|
|
45120
|
+
"size": this.size,
|
|
45121
|
+
"inline": this.inline
|
|
45122
|
+
}
|
|
45123
|
+
}, {
|
|
45124
|
+
"props": {
|
|
45125
|
+
model: this.form
|
|
45126
|
+
}
|
|
45127
|
+
}, {
|
|
45128
|
+
"attrs": {
|
|
45129
|
+
"labelWidth": this.labelWidth,
|
|
45130
|
+
"labelPosition": this.labelPosition
|
|
45131
|
+
}
|
|
45132
|
+
}]), [h("div", {
|
|
45133
|
+
"class": "column"
|
|
45134
|
+
}, [h("div", {
|
|
45135
|
+
"class": "main-row"
|
|
45136
|
+
}, [h("el-row", {
|
|
45137
|
+
"attrs": {
|
|
45138
|
+
"gutter": 20
|
|
45139
|
+
},
|
|
45140
|
+
"class": this.cols != '' ? 'custom-cols' : ''
|
|
45141
|
+
}, [Object.keys(this.config).map((a, b) => {
|
|
45142
|
+
if (this.cols != '' ? b < this.cols : b < 24 / this.colSpan) {
|
|
45143
|
+
return h("el-col", {
|
|
45144
|
+
"key": b,
|
|
45145
|
+
"attrs": {
|
|
45146
|
+
"span": this.span != '' ? null : this.colSpan
|
|
45147
|
+
},
|
|
45148
|
+
"style": {
|
|
45149
|
+
width: this.cols != '' ? `${100 / this.cols}%` : null
|
|
45150
|
+
}
|
|
45151
|
+
}, [h("el-form-item", {
|
|
45152
|
+
"attrs": {
|
|
45153
|
+
"prop": `${a}`,
|
|
45154
|
+
"label": this.label ? this.config[a]['text'] : ''
|
|
45155
|
+
}
|
|
45156
|
+
}, [this.config[a].than || this.config[a].range || this.config[a].scope ? h("el-col", {
|
|
45157
|
+
"class": "range-cols"
|
|
45158
|
+
}, [h("el-col", {
|
|
45159
|
+
"attrs": {
|
|
45160
|
+
"span": 12
|
|
45161
|
+
}
|
|
45162
|
+
}, [this.format(a, `${a}LE`, this.prompt(this.config[a], 0, '最高'))]), h("el-col", {
|
|
45163
|
+
"attrs": {
|
|
45164
|
+
"span": 12
|
|
45165
|
+
}
|
|
45166
|
+
}, [this.format(a, `${a}GE`, this.prompt(this.config[a], 1, '最低'))])]) : this.format(a)])]);
|
|
45167
|
+
}
|
|
45168
|
+
})])]), h("div", {
|
|
45169
|
+
"class": this.opened ? 'fold-row open' : 'fold-row'
|
|
45170
|
+
}, [h("el-row", {
|
|
45171
|
+
"attrs": {
|
|
45172
|
+
"gutter": 20
|
|
45173
|
+
},
|
|
45174
|
+
"class": this.cols != '' ? 'custom-cols' : ''
|
|
45175
|
+
}, [Object.keys(this.config).map((a, b) => {
|
|
45176
|
+
if (this.cols != '' ? b > this.cols : b > 24 / this.colSpan - 1) {
|
|
45177
|
+
return h("el-col", {
|
|
45178
|
+
"key": b,
|
|
45179
|
+
"attrs": {
|
|
45180
|
+
"span": this.cols != '' ? null : this.colSpan
|
|
45181
|
+
},
|
|
45182
|
+
"style": {
|
|
45183
|
+
width: this.cols != '' ? `${100 / this.cols}%` : null
|
|
45184
|
+
}
|
|
45185
|
+
}, [h("el-form-item", {
|
|
45186
|
+
"attrs": {
|
|
45187
|
+
"prop": `${a}`,
|
|
45188
|
+
"label": this.label ? this.config[a]['text'] : ''
|
|
45189
|
+
}
|
|
45190
|
+
}, [this.config[a].than || this.config[a].range || this.config[a].scope ? h("el-col", {
|
|
45191
|
+
"class": "range-cols"
|
|
45192
|
+
}, [h("el-col", {
|
|
45193
|
+
"attrs": {
|
|
45194
|
+
"span": 12
|
|
45195
|
+
}
|
|
45196
|
+
}, [this.format(a, `${a}LE`, this.prompt(this.config[a], 0, '最高'))]), h("el-col", {
|
|
45197
|
+
"attrs": {
|
|
45198
|
+
"span": 12
|
|
45199
|
+
}
|
|
45200
|
+
}, [this.format(a, `${a}GE`, this.prompt(this.config[a], 1, '最低'))])]) : this.format(a)])]);
|
|
45201
|
+
}
|
|
45202
|
+
})])])]), (Object.keys(this.config).length > 24 / this.colSpan || submit || cancel) && h("el-form-item", {
|
|
45203
|
+
"class": "action"
|
|
45204
|
+
}, [Object.keys(this.config).length > 24 / this.colSpan && h("el-button", {
|
|
45205
|
+
"attrs": {
|
|
45206
|
+
"type": "text"
|
|
45207
|
+
},
|
|
45208
|
+
"class": "collapse-button",
|
|
45209
|
+
"on": {
|
|
45210
|
+
"click": () => this.switch()
|
|
45211
|
+
}
|
|
45212
|
+
}, [h("i", {
|
|
45213
|
+
"class": `el-icon-arrow-${this.opened ? 'up' : 'down'}`
|
|
45214
|
+
}), this.opened ? '收起' : '展开']), submit && h("el-button", {
|
|
45215
|
+
"attrs": {
|
|
45216
|
+
"disabled": this.loading,
|
|
45217
|
+
"type": "primary"
|
|
45218
|
+
},
|
|
45219
|
+
"on": {
|
|
45220
|
+
"click": () => this.submit(this.filter(this.form))
|
|
45221
|
+
}
|
|
45222
|
+
}, [this.submitText]), cancel && h("el-button", {
|
|
45223
|
+
"attrs": {
|
|
45224
|
+
"disabled": this.loading
|
|
45225
|
+
},
|
|
45226
|
+
"on": {
|
|
45227
|
+
"click": () => this.cancel(this.filter(this.form))
|
|
45228
|
+
}
|
|
45229
|
+
}, [this.cancelText])])])])]);
|
|
45230
|
+
}
|
|
45231
|
+
|
|
45232
|
+
});
|
|
45233
|
+
|
|
45234
|
+
/***/ }),
|
|
45235
|
+
|
|
44819
45236
|
/***/ "6b23":
|
|
44820
45237
|
/***/ (function(module, exports, __webpack_require__) {
|
|
44821
45238
|
|
|
@@ -62055,6 +62472,13 @@ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADD
|
|
|
62055
62472
|
|
|
62056
62473
|
/***/ }),
|
|
62057
62474
|
|
|
62475
|
+
/***/ "9a62":
|
|
62476
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
62477
|
+
|
|
62478
|
+
// extracted by mini-css-extract-plugin
|
|
62479
|
+
|
|
62480
|
+
/***/ }),
|
|
62481
|
+
|
|
62058
62482
|
/***/ "9a6a":
|
|
62059
62483
|
/***/ (function(module, exports, __webpack_require__) {
|
|
62060
62484
|
|
|
@@ -131261,7 +131685,7 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
|
|
|
131261
131685
|
},
|
|
131262
131686
|
size: {
|
|
131263
131687
|
type: String,
|
|
131264
|
-
default: () => '
|
|
131688
|
+
default: () => 'medium'
|
|
131265
131689
|
},
|
|
131266
131690
|
rules: {
|
|
131267
131691
|
type: Object,
|
|
@@ -133400,7 +133824,7 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
|
|
|
133400
133824
|
},
|
|
133401
133825
|
size: {
|
|
133402
133826
|
type: String,
|
|
133403
|
-
default: () => '
|
|
133827
|
+
default: () => 'medium'
|
|
133404
133828
|
},
|
|
133405
133829
|
rules: {
|
|
133406
133830
|
type: Object,
|
|
@@ -133598,11 +134022,11 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
|
|
|
133598
134022
|
"label": this.label ? this.config[a].type && this.config[a].type == 'checkbox' ? '' : this.config[a].text || this.config[a].label || this.config[a].title : '',
|
|
133599
134023
|
"rules": this.config[a]['rule'] ? this.config[a]['rule'] : this.config[a]['must'] ? [{
|
|
133600
134024
|
required: true,
|
|
133601
|
-
trigger: '
|
|
134025
|
+
trigger: 'blur',
|
|
133602
134026
|
message: `${this.config[a]['text']}不能为空`
|
|
133603
134027
|
}] : this.must ? [{
|
|
133604
134028
|
required: true,
|
|
133605
|
-
trigger: '
|
|
134029
|
+
trigger: 'blur',
|
|
133606
134030
|
message: `${this.config[a]['text']}不能为空`
|
|
133607
134031
|
}] : {}
|
|
133608
134032
|
},
|
|
@@ -135977,12 +136401,12 @@ const Aempty = a => Promise.resolve(/* AMD require */).then(function() { var __W
|
|
|
135977
136401
|
},
|
|
135978
136402
|
|
|
135979
136403
|
created() {
|
|
135980
|
-
this.search();
|
|
135981
136404
|
this.create();
|
|
135982
136405
|
},
|
|
135983
136406
|
|
|
135984
136407
|
mounted() {
|
|
135985
136408
|
this.$refs['a-table'].bodyWrapper.addEventListener('wheel', this.scroll);
|
|
136409
|
+
this.$nextTick(() => this.search());
|
|
135986
136410
|
},
|
|
135987
136411
|
|
|
135988
136412
|
methods: {
|
|
@@ -136189,6 +136613,7 @@ const Aempty = a => Promise.resolve(/* AMD require */).then(function() { var __W
|
|
|
136189
136613
|
render() {
|
|
136190
136614
|
const h = arguments[0];
|
|
136191
136615
|
const {
|
|
136616
|
+
formSpan = '6',
|
|
136192
136617
|
searchVerify = true,
|
|
136193
136618
|
searchConfig = {},
|
|
136194
136619
|
actionConfig = []
|
|
@@ -136207,6 +136632,7 @@ const Aempty = a => Promise.resolve(/* AMD require */).then(function() { var __W
|
|
|
136207
136632
|
const condition = data.length > 0;
|
|
136208
136633
|
return h("div", [Object.keys(searchConfig).length > 0 && (Object.keys(searchConfig).length < 5 ? h(AfSearch, {
|
|
136209
136634
|
"attrs": {
|
|
136635
|
+
"colSpan": formSpan,
|
|
136210
136636
|
"verify": searchVerify,
|
|
136211
136637
|
"config": searchConfig,
|
|
136212
136638
|
"loading": loading
|
|
@@ -136217,6 +136643,7 @@ const Aempty = a => Promise.resolve(/* AMD require */).then(function() { var __W
|
|
|
136217
136643
|
}
|
|
136218
136644
|
}) : h(BfSearch, {
|
|
136219
136645
|
"attrs": {
|
|
136646
|
+
"colSpan": formSpan,
|
|
136220
136647
|
"verify": searchVerify,
|
|
136221
136648
|
"config": searchConfig,
|
|
136222
136649
|
"loading": loading
|
|
@@ -159530,8 +159957,8 @@ const AuploadFile = a => Promise.resolve(/* AMD require */).then(function() { va
|
|
|
159530
159957
|
keys: selectedKeys,
|
|
159531
159958
|
rows: selectedRows
|
|
159532
159959
|
};
|
|
159533
|
-
const statistics = selectedKeys.length > 1 ? `已选中的${selectedKeys.length}
|
|
159534
|
-
this.$confirm(`是否确定要删除${statistics}
|
|
159960
|
+
const statistics = selectedKeys.length > 1 ? `已选中的${selectedKeys.length}条` : '此';
|
|
159961
|
+
this.$confirm(`是否确定要删除${statistics}数据记录?`, '提示信息', {
|
|
159535
159962
|
confirmButtonText: '确定',
|
|
159536
159963
|
cancelButtonText: '取消',
|
|
159537
159964
|
type: 'warning'
|
|
@@ -166664,19 +167091,23 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
|
|
|
166664
167091
|
props: {
|
|
166665
167092
|
size: {
|
|
166666
167093
|
type: String,
|
|
166667
|
-
default: () => '
|
|
166668
|
-
},
|
|
166669
|
-
colSpan: {
|
|
166670
|
-
type: Number,
|
|
166671
|
-
default: () => 4
|
|
167094
|
+
default: () => 'medium'
|
|
166672
167095
|
},
|
|
166673
167096
|
inline: {
|
|
166674
167097
|
type: Boolean,
|
|
166675
|
-
default: () =>
|
|
167098
|
+
default: () => false
|
|
167099
|
+
},
|
|
167100
|
+
colSpan: {
|
|
167101
|
+
type: String,
|
|
167102
|
+
default: () => '4'
|
|
167103
|
+
},
|
|
167104
|
+
labelWidth: {
|
|
167105
|
+
type: String,
|
|
167106
|
+
default: () => 'auto'
|
|
166676
167107
|
},
|
|
166677
167108
|
labelPosition: {
|
|
166678
167109
|
type: String,
|
|
166679
|
-
default: () => '
|
|
167110
|
+
default: () => 'top'
|
|
166680
167111
|
},
|
|
166681
167112
|
config: {
|
|
166682
167113
|
type: Object,
|
|
@@ -166688,7 +167119,7 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
|
|
|
166688
167119
|
},
|
|
166689
167120
|
label: {
|
|
166690
167121
|
type: Boolean,
|
|
166691
|
-
default: () =>
|
|
167122
|
+
default: () => true
|
|
166692
167123
|
},
|
|
166693
167124
|
verify: {
|
|
166694
167125
|
type: Boolean,
|
|
@@ -166753,7 +167184,12 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
|
|
|
166753
167184
|
if (Object.keys(this.config).length > 0) {
|
|
166754
167185
|
// 格式化属性为模糊查询属性
|
|
166755
167186
|
for (let a in this.config) {
|
|
166756
|
-
if (this.config[a] != '' && this.config[a].like) data[a] = '%' + this.form[a] + '%';
|
|
167187
|
+
if (this.config[a] != '' && this.config[a].like) data[a] = '%' + this.form[a] + '%';
|
|
167188
|
+
|
|
167189
|
+
if (this.config[a] != '' && (this.config[a].than || this.config[a].range || this.config[a].scope)) {
|
|
167190
|
+
data[`${a}LE`] = this.form[`${a}LE`];
|
|
167191
|
+
data[`${a}GE`] = this.form[`${a}GE`];
|
|
167192
|
+
} else data[a] = this.form[a];
|
|
166757
167193
|
}
|
|
166758
167194
|
}
|
|
166759
167195
|
|
|
@@ -166817,6 +167253,62 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
|
|
|
166817
167253
|
|
|
166818
167254
|
switch() {
|
|
166819
167255
|
this.opened = !this.opened;
|
|
167256
|
+
},
|
|
167257
|
+
|
|
167258
|
+
prompt(a = {}, index = 0, placeholder = '') {
|
|
167259
|
+
if (Object.keys(a).length > 0 && a.placeholder && a.placeholder.length && a.placeholder.length > 0) return a.placeholder[index];
|
|
167260
|
+
return placeholder;
|
|
167261
|
+
},
|
|
167262
|
+
|
|
167263
|
+
format(a = {}, field = '', placeholder = '') {
|
|
167264
|
+
const h = this.$createElement;
|
|
167265
|
+
|
|
167266
|
+
if (Object.keys(a).length > 0) {
|
|
167267
|
+
let config = {
|
|
167268
|
+
size: this.config[a].size ? this.config[a].size : this.size,
|
|
167269
|
+
field: field != '' ? field : `${a}`,
|
|
167270
|
+
disabled: this.loading,
|
|
167271
|
+
form: this.form,
|
|
167272
|
+
...this.config[a]
|
|
167273
|
+
};
|
|
167274
|
+
if (placeholder != '') return h(AformItem, {
|
|
167275
|
+
"attrs": {
|
|
167276
|
+
"config": { ...config,
|
|
167277
|
+
placeholder
|
|
167278
|
+
}
|
|
167279
|
+
}
|
|
167280
|
+
});
|
|
167281
|
+
return h(AformItem, {
|
|
167282
|
+
"attrs": {
|
|
167283
|
+
"config": config
|
|
167284
|
+
}
|
|
167285
|
+
});
|
|
167286
|
+
}
|
|
167287
|
+
},
|
|
167288
|
+
|
|
167289
|
+
output(a, b) {
|
|
167290
|
+
const h = this.$createElement;
|
|
167291
|
+
return h("el-col", {
|
|
167292
|
+
"key": b,
|
|
167293
|
+
"attrs": {
|
|
167294
|
+
"span": parseInt(this.colSpan)
|
|
167295
|
+
}
|
|
167296
|
+
}, [h("el-form-item", {
|
|
167297
|
+
"attrs": {
|
|
167298
|
+
"prop": `${a}`,
|
|
167299
|
+
"label": this.label ? this.config[a]['text'] : ''
|
|
167300
|
+
}
|
|
167301
|
+
}, [this.config[a].than || this.config[a].range || this.config[a].scope ? h("el-col", {
|
|
167302
|
+
"class": "range-cols"
|
|
167303
|
+
}, [h("el-col", {
|
|
167304
|
+
"attrs": {
|
|
167305
|
+
"span": 12
|
|
167306
|
+
}
|
|
167307
|
+
}, [this.format(a, `${a}LE`, this.prompt(this.config[a], 0, '最高'))]), h("el-col", {
|
|
167308
|
+
"attrs": {
|
|
167309
|
+
"span": 12
|
|
167310
|
+
}
|
|
167311
|
+
}, [this.format(a, `${a}GE`, this.prompt(this.config[a], 1, '最低'))])]) : this.format(a)])]);
|
|
166820
167312
|
}
|
|
166821
167313
|
|
|
166822
167314
|
},
|
|
@@ -166841,73 +167333,31 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
|
|
|
166841
167333
|
}
|
|
166842
167334
|
}, {
|
|
166843
167335
|
"attrs": {
|
|
167336
|
+
"labelWidth": this.labelWidth,
|
|
166844
167337
|
"labelPosition": this.labelPosition
|
|
166845
167338
|
}
|
|
166846
167339
|
}]), [h("div", {
|
|
166847
167340
|
"class": "column"
|
|
166848
|
-
}, [h("div", {
|
|
166849
|
-
"class": "main-row"
|
|
166850
167341
|
}, [h("el-row", {
|
|
166851
167342
|
"attrs": {
|
|
166852
167343
|
"gutter": 20
|
|
166853
|
-
}
|
|
167344
|
+
},
|
|
167345
|
+
"class": "main-row"
|
|
166854
167346
|
}, [Object.keys(this.config).map((a, b) => {
|
|
166855
|
-
if (b < 24 / this.colSpan)
|
|
166856
|
-
|
|
166857
|
-
"key": b,
|
|
166858
|
-
"attrs": {
|
|
166859
|
-
"span": this.colSpan
|
|
166860
|
-
}
|
|
166861
|
-
}, [h("el-form-item", {
|
|
166862
|
-
"attrs": {
|
|
166863
|
-
"prop": `${a}`,
|
|
166864
|
-
"label": this.label ? this.config[a]['text'] : ''
|
|
166865
|
-
}
|
|
166866
|
-
}, [h(AformItem, {
|
|
166867
|
-
"attrs": {
|
|
166868
|
-
"config": {
|
|
166869
|
-
form: this.form,
|
|
166870
|
-
size: this.config[a].size ? this.config[a].size : this.size,
|
|
166871
|
-
field: `${a}`,
|
|
166872
|
-
disabled: this.loading,
|
|
166873
|
-
...this.config[a]
|
|
166874
|
-
}
|
|
166875
|
-
}
|
|
166876
|
-
})])]);
|
|
166877
|
-
}
|
|
166878
|
-
})])]), h("div", {
|
|
166879
|
-
"class": this.opened ? 'fold-row open' : 'fold-row'
|
|
166880
|
-
}, [h("el-row", {
|
|
167347
|
+
if (b < 24 / this.colSpan) return this.output(a, b);
|
|
167348
|
+
})]), h("el-row", {
|
|
166881
167349
|
"attrs": {
|
|
166882
167350
|
"gutter": 20
|
|
166883
|
-
}
|
|
167351
|
+
},
|
|
167352
|
+
"class": this.opened ? 'fold-row open' : 'fold-row'
|
|
166884
167353
|
}, [Object.keys(this.config).map((a, b) => {
|
|
166885
|
-
if (b > 24 / this.colSpan - 1)
|
|
166886
|
-
|
|
166887
|
-
|
|
166888
|
-
|
|
166889
|
-
|
|
166890
|
-
}
|
|
166891
|
-
}, [h("el-form-item", {
|
|
166892
|
-
"attrs": {
|
|
166893
|
-
"prop": `${a}`,
|
|
166894
|
-
"label": this.label ? this.config[a]['text'] : ''
|
|
166895
|
-
}
|
|
166896
|
-
}, [h(AformItem, {
|
|
166897
|
-
"attrs": {
|
|
166898
|
-
"config": {
|
|
166899
|
-
form: this.form,
|
|
166900
|
-
size: this.config[a].size ? this.config[a].size : this.size,
|
|
166901
|
-
field: `${a}`,
|
|
166902
|
-
disabled: this.loading,
|
|
166903
|
-
...this.config[a]
|
|
166904
|
-
}
|
|
166905
|
-
}
|
|
166906
|
-
})])]);
|
|
167354
|
+
if (b > 24 / this.colSpan - 1) return this.output(a, b);
|
|
167355
|
+
})])]), (Object.keys(this.config).length > 24 / this.colSpan || submit || cancel) && h("el-form-item", {
|
|
167356
|
+
"class": "action",
|
|
167357
|
+
"attrs": {
|
|
167358
|
+
"label": "action"
|
|
166907
167359
|
}
|
|
166908
|
-
}
|
|
166909
|
-
"class": "action"
|
|
166910
|
-
}, [h("el-form-item", [Object.keys(this.config).length > 24 / this.colSpan && h("el-button", {
|
|
167360
|
+
}, [Object.keys(this.config).length > 24 / this.colSpan && h("el-button", {
|
|
166911
167361
|
"attrs": {
|
|
166912
167362
|
"type": "text"
|
|
166913
167363
|
},
|
|
@@ -166932,7 +167382,7 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
|
|
|
166932
167382
|
"on": {
|
|
166933
167383
|
"click": () => this.cancel(this.filter(this.form))
|
|
166934
167384
|
}
|
|
166935
|
-
}, [this.cancelText])])])])])
|
|
167385
|
+
}, [this.cancelText])])])])]);
|
|
166936
167386
|
}
|
|
166937
167387
|
|
|
166938
167388
|
});
|