easy3wui 1.5.89-beta10 → 1.5.89-beta12
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.
|
@@ -683,7 +683,7 @@ var Easy3wFormPagePC = exports.Easy3wFormPagePC = function (_Component) {
|
|
|
683
683
|
var strValue = value;
|
|
684
684
|
value = _comonConfig.dataDesensitizationFlag ? dataDesensitizationEyeFlag ? value : (0, _easy3wui.Easy3wGetDesensitization)(value) : value;
|
|
685
685
|
if (fieldType === 'mobile' && value) {
|
|
686
|
-
var e3wMobileNation = _this.fetchMobileInfo(strValue, fieldId);
|
|
686
|
+
var e3wMobileNation = _this.fetchMobileInfo(strValue, fieldId) || '+86';
|
|
687
687
|
value = e3wMobileNation ? e3wMobileNation + ' ' + value : value;
|
|
688
688
|
// console.log('valuevaluevaluevalue', value, e3wMobileNation);
|
|
689
689
|
}
|
|
@@ -1400,7 +1400,7 @@ var Easy3wFormPagePC = exports.Easy3wFormPagePC = function (_Component) {
|
|
|
1400
1400
|
isRead = _ref6.isRead;
|
|
1401
1401
|
|
|
1402
1402
|
var isApprovalFlag = document.body.innerHTML.includes('data-e3wpagetype="approval"');
|
|
1403
|
-
if (isApprovalFlag && disableFlag && (fieldType === 'input' || fieldType === 'textarea')) {
|
|
1403
|
+
if (isApprovalFlag && disableFlag && (fieldType === 'input' || fieldType === 'textarea' || fieldType === 'checkBox' || fieldType === 'radio')) {
|
|
1404
1404
|
colObj.readFlag = true;
|
|
1405
1405
|
readFlag = true;
|
|
1406
1406
|
}
|
|
@@ -1671,9 +1671,9 @@ var Easy3wFormPagePC = exports.Easy3wFormPagePC = function (_Component) {
|
|
|
1671
1671
|
disabled: disabled
|
|
1672
1672
|
}, addonBeforeCmptPros)
|
|
1673
1673
|
});
|
|
1674
|
-
var strMobileAssociation = '
|
|
1674
|
+
var strMobileAssociation = '';
|
|
1675
1675
|
if (value) {
|
|
1676
|
-
strMobileAssociation = _this.fetchMobileInfo(value, fieldId);
|
|
1676
|
+
strMobileAssociation = _this.fetchMobileInfo(value, fieldId) || '+86';
|
|
1677
1677
|
// value = e3wMobileNation ? `${e3wMobileNation} ${value}` : value;
|
|
1678
1678
|
// console.log('valuevaluevaluevalue', value, e3wMobileNation);
|
|
1679
1679
|
}
|
|
@@ -1713,6 +1713,7 @@ var Easy3wFormPagePC = exports.Easy3wFormPagePC = function (_Component) {
|
|
|
1713
1713
|
xhr.send(data); // 发送请求
|
|
1714
1714
|
}
|
|
1715
1715
|
}, _this.fetchMobileInfo = function (value, fieldId) {
|
|
1716
|
+
var e3wMobileNation = void 0;
|
|
1716
1717
|
if (_comonConfig.easy3w4fMobileLibFetchUrl) {
|
|
1717
1718
|
// 同步请求,直接返回查询到的 e3wMobileNation(而非 Promise)
|
|
1718
1719
|
var cacheKey = fieldId + '-' + value;
|
|
@@ -1720,7 +1721,6 @@ var Easy3wFormPagePC = exports.Easy3wFormPagePC = function (_Component) {
|
|
|
1720
1721
|
// 已查询过,直接返回缓存结果
|
|
1721
1722
|
return _this[cacheKey];
|
|
1722
1723
|
}
|
|
1723
|
-
var e3wMobileNation = void 0;
|
|
1724
1724
|
var xhr = new XMLHttpRequest();
|
|
1725
1725
|
xhr.open('POST', _comonConfig.easy3w4fMobileLibFetchUrl, false); // 同步请求
|
|
1726
1726
|
xhr.setRequestHeader('Content-Type', 'application/json'); // 设置请求头
|
|
@@ -1744,8 +1744,9 @@ var Easy3wFormPagePC = exports.Easy3wFormPagePC = function (_Component) {
|
|
|
1744
1744
|
// 缓存结果,避免重复请求
|
|
1745
1745
|
_this[cacheKey] = e3wMobileNation;
|
|
1746
1746
|
// 直接返回数据
|
|
1747
|
-
return e3wMobileNation;
|
|
1748
1747
|
}
|
|
1748
|
+
e3wMobileNation = e3wMobileNation || '+86';
|
|
1749
|
+
return e3wMobileNation;
|
|
1749
1750
|
}, _this.selectHandler = function (item) {
|
|
1750
1751
|
var cmptPros = item.cmptPros;
|
|
1751
1752
|
var optionLst = cmptPros.optionLst;
|