From d2392435048a5d75f2d10b4d88a2c8ac29a254f1 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 18 六月 2025 22:34:05 +0800
Subject: [PATCH] 2025-06-18

---
 src/utils/utils-custom.js |    8 ++++----
 src/utils/utils.js        |   14 +++++++-------
 2 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/src/utils/utils-custom.js b/src/utils/utils-custom.js
index 87a4db3..2607966 100644
--- a/src/utils/utils-custom.js
+++ b/src/utils/utils-custom.js
@@ -1083,7 +1083,7 @@
       } else if (item.type === 'daterange') {
         value = '1949-10-01 00:00:00.000,1949-10-02 00:00:00.000'
       } else if (item.type === 'range') {
-        value = item.initval || `${item.minValue || '-999999999'},${item.maxValue || '999999999'}`
+        value = item.initval || `${item.minValue || '-99999999'},${item.maxValue || '99999999'}`
       } else if (item.type === 'multiselect' || (item.type === 'checkcard' && item.multiple === 'true')) {
         type = 'multi'
       } else {
@@ -1134,7 +1134,7 @@
       searchText.push('(' + item.key + ' >= \'' + val[0] + '\' AND ' + item.key + ' < \'' + val[1] + '\')')
     } else if (item.type === 'range') {
       let val = item.value.split(',')
-      searchText.push('(' + item.key + ' >= ' + (val[0] || -999999999) + ' AND ' + item.key + ' <= ' + (val[1] || 999999999) + ')')
+      searchText.push('(' + item.key + ' >= ' + (val[0] || -99999999) + ' AND ' + item.key + ' <= ' + (val[1] || 99999999) + ')')
     } else if (item.type === 'datemonth') {
       if (item.match === '=') {
         searchText.push('(' + item.key + ' = \'' + item.value + '\')')
@@ -1198,10 +1198,10 @@
       let val = item.value.split(',')
       options.push({
         reg: new RegExp('@' + item.key + '@', 'ig'),
-        value: `${val[0] || -999999999}`
+        value: `${val[0] || -99999999}`
       }, {
         reg: new RegExp('@' + item.key + '1@', 'ig'),
-        value: `${val[1] || 999999999}`
+        value: `${val[1] || 99999999}`
       })
     } else if (item.type === 'datemonth') {
       if (item.match === '=') {
diff --git a/src/utils/utils.js b/src/utils/utils.js
index d9502c6..1c6771e 100644
--- a/src/utils/utils.js
+++ b/src/utils/utils.js
@@ -569,8 +569,8 @@
       } else if (item.type === 'range') {
         let val = item.value.split(',')
 
-        newsearches[item.key] = val[0] || -999999999
-        newsearches[item.key + '1'] = val[1] || 999999999
+        newsearches[item.key] = val[0] || -99999999
+        newsearches[item.key + '1'] = val[1] || 99999999
       } else if (item.type === 'dateweek') {
         let _startval = ''
         let _endval = ''
@@ -718,7 +718,7 @@
       } else if (item.type === 'range') {
         let val = item.value.split(',')
 
-        searchText.push('(' + item.key + ' >= ' + (val[0] || -999999999) + ' AND ' + item.key + ' <= ' + (val[1] || 999999999) + ')')
+        searchText.push('(' + item.key + ' >= ' + (val[0] || -99999999) + ' AND ' + item.key + ' <= ' + (val[1] || 99999999) + ')')
       } else {
         searchText.push('(' + item.key + ' ' + item.match + ' \'' + item.value + '\')')
       }
@@ -859,12 +859,12 @@
           key: item.key,
           match: '>=',
           type: 'text',
-          value: val[0] || -999999999
+          value: val[0] || -99999999
         }, {
           key: item.key,
           match: '<=',
           type: 'text',
-          value: val[1] || 999999999
+          value: val[1] || 99999999
         })
       } else {
         searchText.push(cell)
@@ -945,9 +945,9 @@
 
         let copy = JSON.parse(JSON.stringify(item))
         copy.key = copy.key + '1'
-        copy.value = val[1] || 999999999
+        copy.value = val[1] || 99999999
         
-        item.value = val[0] || -999999999
+        item.value = val[0] || -99999999
 
         options.push(item)
         options.push(copy)

--
Gitblit v1.8.0