ol-base-components 2.8.14 → 2.8.15
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/package.json
CHANGED
|
@@ -466,6 +466,21 @@ export default {
|
|
|
466
466
|
this.formSearch.BeginTime = null;
|
|
467
467
|
this.formSearch.EndTime = null;
|
|
468
468
|
}
|
|
469
|
+
// 以Time结尾,并在this.formSearch.tableSearch中通过prop获取后取type为datetimerange的
|
|
470
|
+
Object.keys(this.formSearch).forEach(key => {
|
|
471
|
+
const fieldConfig = this.formSearchData.tableSearch.find(item => item.value === key);
|
|
472
|
+
if (fieldConfig && fieldConfig.originalFields) {
|
|
473
|
+
const { begin, end } = fieldConfig.originalFields;
|
|
474
|
+
if (this.formSearch[key] && Array.isArray(this.formSearch[key])) {
|
|
475
|
+
this.formSearch[begin] = this.formSearch[key][0];
|
|
476
|
+
this.formSearch[end] = this.formSearch[key][1];
|
|
477
|
+
} else {
|
|
478
|
+
this.formSearch[begin] = null;
|
|
479
|
+
this.formSearch[end] = null;
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
});
|
|
483
|
+
|
|
469
484
|
const tempFormSearch = Object.assign({}, this.formSearch);
|
|
470
485
|
if (this.formSearchData.rules) {
|
|
471
486
|
return this.$refs[formName].validate(valid => {
|