去除部分调试信息

This commit is contained in:
一二三 2024-06-19 20:15:16 +08:00
parent dfb3c82dcd
commit 0bcc5d19f4

View File

@ -387,7 +387,6 @@ var accelerator = win.ui.accelerator({
research_flag = true;
searchNextContent = function(data, firstRow, firstCol, lastRow, lastCol, isRangeSearch, selFirstRow, selFirstCol, searchContent, isCellMatching){
console.dump(firstRow, firstCol, lastRow, lastCol, isRangeSearch, selFirstRow, selFirstCol, searchContent);
if(isRangeSearch){// 从一个范围开始搜索
var tempRow = firstRow;
var tempCol = firstCol;
@ -398,7 +397,6 @@ searchNextContent = function(data, firstRow, firstCol, lastRow, lastCol, isRange
continue;
}
for i2,v2 in table.eachIndex(data.fields){
//console.debug("当前搜索行列:", i, i2);
if(i2 < firstCol or i2 > lastCol){
continue;
}
@ -436,13 +434,11 @@ searchNextContent = function(data, firstRow, firstCol, lastRow, lastCol, isRange
research_flag = true;
}
else {// 从一个点开始搜索
//console.dump("从一个点开始搜索");
for i,v in table.eachIndex(data){
if(i < firstRow){
continue;
}
for i2,v2 in table.eachIndex(data.fields){
//console.debug("当前搜索行列:", i, i2);
if(i2 < firstCol){
continue
}
@ -467,7 +463,6 @@ searchNextContent = function(data, firstRow, firstCol, lastRow, lastCol, isRange
// 搜不到了,重头搜索
if(research_flag){
research_flag = false;
//console.dump("搜不到了,重头搜索");
row, col = searchNextContent(data, 1, 1, 1, 1, isRangeSearch, selFirstRow, selFirstCol, searchContent, isCellMatching);
return row, col;
}