n20-common-lib 3.2.14 → 3.2.16

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n20-common-lib",
3
- "version": "3.2.14",
3
+ "version": "3.2.16",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -580,7 +580,11 @@ export default {
580
580
  }
581
581
  },
582
582
  defaultCheck() {
583
- this.checkList = this.defineCheckList
583
+ // 恢复默认不应清除固定的筛选条件(static / isNotClose),始终保留
584
+ const fixedIds = this.filterList
585
+ .filter((item) => item.static || item.isNotClose)
586
+ .map((item) => item[this.onlyKey])
587
+ this.checkList = Array.from(new Set([...fixedIds, ...this.defineCheckList]))
584
588
  },
585
589
  cancel() {
586
590
  this.checkList = this.cancelCheck
@@ -619,8 +619,7 @@ export default {
619
619
  },
620
620
  // 更新操作符对应的值
621
621
  updateOperatorOptions(field, condition) {
622
- // if (condition.valueType === 'slot') return
623
- this.$set(condition, 'valueType', field.type)
622
+ this.$set(condition, 'valueType', condition.valueType === 'slot' ? condition.valueType : field.type)
624
623
  this.$set(condition, 'value', '')
625
624
  if (field.type === 'dateRangePicker' || field.type === 'inputNumberRange') {
626
625
  this.$set(condition, 'value', {})