bri-components 1.3.51 → 1.3.52
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
|
@@ -59,6 +59,7 @@ export default {
|
|
|
59
59
|
showRuleMessage: false, // 进行全体校验
|
|
60
60
|
ruleRecordMap: {}, // 单元格是否发生校验的记录映射
|
|
61
61
|
|
|
62
|
+
dftLogic: "and",
|
|
62
63
|
dftConditions: [],
|
|
63
64
|
|
|
64
65
|
dshRenderName: undefined,
|
|
@@ -265,10 +266,13 @@ export default {
|
|
|
265
266
|
// 过滤行数据的 最终的筛选条件
|
|
266
267
|
finalTableAdvSearch () {
|
|
267
268
|
return {
|
|
268
|
-
logic: "and",
|
|
269
|
+
logic: ["and", "or"].includes(this.tableAdvSearch.logic) ? this.tableAdvSearch.logic : "and",
|
|
269
270
|
conditions: [
|
|
270
|
-
...this.
|
|
271
|
-
|
|
271
|
+
...this.hideConditions,
|
|
272
|
+
{
|
|
273
|
+
logic: this.dftLogic,
|
|
274
|
+
conditions: this.dftConditions
|
|
275
|
+
}
|
|
272
276
|
]
|
|
273
277
|
};
|
|
274
278
|
},
|
|
@@ -280,9 +284,7 @@ export default {
|
|
|
280
284
|
}));
|
|
281
285
|
},
|
|
282
286
|
isSearching () {
|
|
283
|
-
return this
|
|
284
|
-
conditionItem.fieldValue.length && conditionItem.fieldValue.some(valItem => !this.$isEmptyData(valItem))
|
|
285
|
-
);
|
|
287
|
+
return this.$isAdvSearching(this.finalTableAdvSearch);
|
|
286
288
|
},
|
|
287
289
|
|
|
288
290
|
parentDataId () {
|
|
@@ -486,7 +488,9 @@ export default {
|
|
|
486
488
|
},
|
|
487
489
|
methods: {
|
|
488
490
|
baseInit () {
|
|
489
|
-
this.dftConditions = this.tableAdvSearch.conditions
|
|
491
|
+
this.dftConditions = this.tableAdvSearch.conditions.filter(conditionItem =>
|
|
492
|
+
this.searchListFields.includes(conditionItem.fieldKey)
|
|
493
|
+
);
|
|
490
494
|
},
|
|
491
495
|
// 重置
|
|
492
496
|
reset () {
|
|
@@ -501,6 +505,11 @@ export default {
|
|
|
501
505
|
return this.allListData.every((row, rowIndex) => this.getRowRuleResult(row, rowIndex));
|
|
502
506
|
},
|
|
503
507
|
|
|
508
|
+
// 筛选回调
|
|
509
|
+
searchCb (conditions) {
|
|
510
|
+
this.isExpandAction = false;
|
|
511
|
+
this.dftConditions = conditions;
|
|
512
|
+
},
|
|
504
513
|
// 表单控件失去焦点
|
|
505
514
|
controlBlur (operationItem, col, row, rowIndex, params) {
|
|
506
515
|
this.$set(this.ruleRecordMap, `${row._id}dsh${col._key}`, { showRuleMessage: true });
|