changes
This commit is contained in:
@@ -147,7 +147,7 @@ const {
|
||||
$empty,
|
||||
$find,
|
||||
$getEditRights,
|
||||
$formatNumber,
|
||||
$parseNum,
|
||||
$multiSort,
|
||||
$remove,
|
||||
$stripHtml,
|
||||
@@ -420,8 +420,8 @@ const frontendFilter = function (newVal) {
|
||||
else {
|
||||
let text = "";
|
||||
filter.map((y, k) => {
|
||||
text += `${k > 0 ? (filter[k - 1].operator === "and" ? " &&" : " ||") : ""} ${$formatNumber(x[name])}
|
||||
${y.condition === "=" ? "==" : y.condition === "<>" ? "!==" : y.condition} ${$formatNumber(y.value)}`;
|
||||
text += `${k > 0 ? (filter[k - 1].operator === "and" ? " &&" : " ||") : ""} ${$parseNum(x[name])}
|
||||
${y.condition === "=" ? "==" : y.condition === "<>" ? "!==" : y.condition} ${$parseNum(y.value)}`;
|
||||
});
|
||||
return $calc(text);
|
||||
}
|
||||
@@ -541,7 +541,7 @@ const updateData = async function (newVal) {
|
||||
}
|
||||
if (newVal.tablesetting) {
|
||||
tablesetting = newVal.tablesetting;
|
||||
perPage = $formatNumber(tablesetting.find((v) => v.code == "per-page").detail);
|
||||
perPage = $parseNum(tablesetting.find((v) => v.code == "per-page").detail);
|
||||
currentPage = 1;
|
||||
}
|
||||
tablesetting = $copy(pagedata.tablesetting || gridsetting);
|
||||
|
||||
Reference in New Issue
Block a user