easy3wui 1.5.47 → 1.5.48
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.
|
@@ -184,7 +184,7 @@ var Easy3wGridPage = function (_Component) {
|
|
|
184
184
|
|
|
185
185
|
var renderTextDesensitize = '';
|
|
186
186
|
if (_comonConfig.dataDesensitizationFlag) {
|
|
187
|
-
renderTextDesensitize = _this2.getcheckDesensitizeData(text, item);
|
|
187
|
+
renderTextDesensitize = _this2.getcheckDesensitizeData(text, item, index);
|
|
188
188
|
}
|
|
189
189
|
var dataDesensitizationFlagTrue = item.dataDesensitizationFlagTrue;
|
|
190
190
|
|
|
@@ -703,6 +703,7 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
703
703
|
var phoneRegex = /^1[3-9]\d{9}$/; // 手机号
|
|
704
704
|
var emailRegex = /^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,7}$/; // 邮箱
|
|
705
705
|
var idRegex = /^\d{15}(\d{2}[0-9xX])?$/; // 身份证
|
|
706
|
+
item.dataDesensitizationFlagTrue = false; // 当前字段--数据脱敏标识--未脱敏成功
|
|
706
707
|
if (phoneRegex.test(str)) {
|
|
707
708
|
// 手机号
|
|
708
709
|
item.dataDesensitizationFlagTrue = true; // 当前字段--数据脱敏标识--脱敏成功
|