fmui-base 2.0.96 → 2.0.98
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/README.md
CHANGED
|
@@ -1684,6 +1684,36 @@ var PageHome = function (_React$Component) {
|
|
|
1684
1684
|
if (!s.test(value)) {
|
|
1685
1685
|
return saveItem[j].itemTitle + ':' + tips;
|
|
1686
1686
|
}
|
|
1687
|
+
} else if (regular.indexOf('compare') != -1) {
|
|
1688
|
+
var regularArr = regular.split('|');
|
|
1689
|
+
if (regularArr.length == 3) {
|
|
1690
|
+
var compareMark = regularArr[1];
|
|
1691
|
+
var otherUniqueName = regularArr[2];
|
|
1692
|
+
var otherValue = 0;
|
|
1693
|
+
var thisValue = 0;
|
|
1694
|
+
for (var f = 0; f < mainTblData.length; f++) {
|
|
1695
|
+
if (mainTblData[f].uniqueName == otherUniqueName) {
|
|
1696
|
+
|
|
1697
|
+
if (value != '') {
|
|
1698
|
+
if (mainTblData[i].itemType == 'datetime') {
|
|
1699
|
+
thisValue = new Date(value).getTime();
|
|
1700
|
+
} else {
|
|
1701
|
+
thisValue = value;
|
|
1702
|
+
}
|
|
1703
|
+
}
|
|
1704
|
+
if (mainTblData[f].value != '') {
|
|
1705
|
+
if (mainTblData[f].itemType == 'datetime') {
|
|
1706
|
+
otherValue = new Date(mainTblData[f].value).getTime();
|
|
1707
|
+
} else {
|
|
1708
|
+
otherValue = mainTblData[f].value;
|
|
1709
|
+
}
|
|
1710
|
+
}
|
|
1711
|
+
}
|
|
1712
|
+
}
|
|
1713
|
+
if (eval(thisValue + compareMark + otherValue)) {
|
|
1714
|
+
return saveItem[j].itemTitle + ':' + tips;
|
|
1715
|
+
}
|
|
1716
|
+
}
|
|
1687
1717
|
} else {
|
|
1688
1718
|
var extRegex = /^(.+?)(\d+)-(\d+)$/; //判断是否为 *1-2或n1-2等默认属性的形式
|
|
1689
1719
|
var mac = regular.match(extRegex),
|