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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mooho-base-admin-plus",
3
3
  "description": "MOOHO basic framework for admin by Vue3",
4
- "version": "2.4.6",
4
+ "version": "2.4.8",
5
5
  "author": "jinyifan <jinyifan@mooho.com.cn>",
6
6
  "license": "MIT",
7
7
  "private": false,
@@ -1323,14 +1323,16 @@
1323
1323
 
1324
1324
  if (!sender || triggers.some(item => item == sender.code) || column.calculate != calculate) {
1325
1325
  // 包含在公式中,需要刷新
1326
- let result = this.calculate(calculate, this.data);
1326
+ setTimeout(() => {
1327
+ let result = this.calculate(calculate, this.data);
1327
1328
 
1328
- // 保留小数
1329
- if (column.digit != null) {
1330
- result = this.keepDecimal(result, column.digit, column.fixedDigit);
1331
- }
1329
+ // 保留小数
1330
+ if (column.digit != null) {
1331
+ result = this.keepDecimal(result, column.digit, column.fixedDigit);
1332
+ }
1332
1333
 
1333
- this.setData(this.data, column.code, result);
1334
+ this.setData(this.data, column.code, result);
1335
+ });
1334
1336
  }
1335
1337
  }
1336
1338
  }
@@ -1071,7 +1071,9 @@
1071
1071
  this.itemSelectActive = true;
1072
1072
 
1073
1073
  setTimeout(() => {
1074
- this.$refs.itemSelect.init(this.tableView.batchSelectDataModel + 'Source', this.tableView.batchSelectDataModel + 'Target');
1074
+ this.$refs.itemSelect.init(this.tableView.batchSelectDataModel + 'Source', this.tableView.batchSelectDataModel + 'Target', () => {
1075
+ this.$refs.itemSelect.loadSource();
1076
+ });
1075
1077
  });
1076
1078
  } else if (this.embedded && this.tableView.createEnable && this.createEnable && !this.readonly) {
1077
1079
  column.renderHeader = h => {
@@ -448,7 +448,11 @@ export default {
448
448
  }
449
449
 
450
450
  if (!!(expression || '').trim()) {
451
- triggers.push(expression);
451
+ if (expression.indexOf('.') >= 0) {
452
+ triggers.push(expression.split('.')[0] + 'ID');
453
+ } else {
454
+ triggers.push(expression);
455
+ }
452
456
  }
453
457
 
454
458
  return triggers;