mooho-base-admin-plus 2.8.4 → 2.8.5

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.8.4",
4
+ "version": "2.8.5",
5
5
  "author": "jinyifan <jinyifan@mooho.com.cn>",
6
6
  "license": "MIT",
7
7
  "private": false,
@@ -1631,9 +1631,11 @@
1631
1631
  }
1632
1632
  }
1633
1633
 
1634
+ let name = column.name.replaceAll(' <font color="red">*</font>', '');
1635
+
1634
1636
  if (isRequired) {
1635
1637
  if (value == null || !(String(value) || '').trim()) {
1636
- this.error('Front_Msg_Row_Column_Required|' + (i + 1) + '|' + column.name);
1638
+ this.error('Front_Msg_Row_Column_Required|' + (i + 1) + '|' + name);
1637
1639
  return false;
1638
1640
  }
1639
1641
  }
@@ -1644,17 +1646,17 @@
1644
1646
  // }
1645
1647
 
1646
1648
  if (column.maxValue != null && !isNaN(value) && value > column.maxValue) {
1647
- this.error('Front_Msg_Row_Validation_Max_Value|' + (i + 1) + '|' + column.name + '|' + column.maxValue.toString());
1649
+ this.error('Front_Msg_Row_Validation_Max_Value|' + (i + 1) + '|' + name + '|' + column.maxValue.toString());
1648
1650
  return false;
1649
1651
  }
1650
1652
 
1651
1653
  if (column.minValue != null && !isNaN(value) && value < column.minValue) {
1652
- this.error('Front_Msg_Row_Validation_Min_Value|' + (i + 1) + '|' + column.name + '|' + column.minValue.toString());
1654
+ this.error('Front_Msg_Row_Validation_Min_Value|' + (i + 1) + '|' + name + '|' + column.minValue.toString());
1653
1655
  return false;
1654
1656
  }
1655
1657
 
1656
1658
  if (!!(column.pattern || '').trim() && value != null && new RegExp(column.pattern).test(value) == false) {
1657
- this.error('Front_Msg_Row_Validation_Pattern|' + (i + 1) + '|' + column.name + '|' + column.pattern);
1659
+ this.error('Front_Msg_Row_Validation_Pattern|' + (i + 1) + '|' + name + '|' + column.pattern);
1658
1660
  return false;
1659
1661
  }
1660
1662
  }