mooho-base-admin-plus 2.4.6 → 2.4.8

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/history.md CHANGED
@@ -38,3 +38,5 @@
38
38
  2.4.4 - 附件下载 div 改为 span,解决点击空白处也会下载的问题
39
39
  2.4.5 - 修复表格中显示图片报错的 bug
40
40
  2.4.6 - 表格允许查看、允许编辑、允许删除属性增加函数类型
41
+ 2.4.7 - 计算列触发条件优化
42
+ 2.4.8 - 批量选择时无法触发选择
@@ -23115,7 +23115,11 @@ var mixinPage = {
23115
23115
  }
23116
23116
  }
23117
23117
  if (!!(expression2 || "").trim()) {
23118
- triggers.push(expression2);
23118
+ if (expression2.indexOf(".") >= 0) {
23119
+ triggers.push(expression2.split(".")[0] + "ID");
23120
+ } else {
23121
+ triggers.push(expression2);
23122
+ }
23119
23123
  }
23120
23124
  return triggers;
23121
23125
  },
@@ -37386,11 +37390,13 @@ const _sfc_main$w = {
37386
37390
  calculate = this.calcStat("avg", calculate);
37387
37391
  let triggers = this.getTriggers(calculate);
37388
37392
  if (!sender || triggers.some((item) => item == sender.code) || column.calculate != calculate) {
37389
- let result2 = this.calculate(calculate, this.data);
37390
- if (column.digit != null) {
37391
- result2 = this.keepDecimal(result2, column.digit, column.fixedDigit);
37392
- }
37393
- this.setData(this.data, column.code, result2);
37393
+ setTimeout(() => {
37394
+ let result2 = this.calculate(calculate, this.data);
37395
+ if (column.digit != null) {
37396
+ result2 = this.keepDecimal(result2, column.digit, column.fixedDigit);
37397
+ }
37398
+ this.setData(this.data, column.code, result2);
37399
+ });
37394
37400
  }
37395
37401
  }
37396
37402
  }
@@ -42774,7 +42780,9 @@ const _sfc_main$q = {
42774
42780
  };
42775
42781
  this.itemSelectActive = true;
42776
42782
  setTimeout(() => {
42777
- this.$refs.itemSelect.init(this.tableView.batchSelectDataModel + "Source", this.tableView.batchSelectDataModel + "Target");
42783
+ this.$refs.itemSelect.init(this.tableView.batchSelectDataModel + "Source", this.tableView.batchSelectDataModel + "Target", () => {
42784
+ this.$refs.itemSelect.loadSource();
42785
+ });
42778
42786
  });
42779
42787
  } else if (this.embedded && this.tableView.createEnable && this.createEnable && !this.readonly) {
42780
42788
  column.renderHeader = (h4) => {