Browse Source

修复bug

laiguoran 3 năm trước cách đây
mục cha
commit
9972feba7c
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      app/public/js/material_list.js

+ 2 - 0
app/public/js/material_list.js

@@ -622,6 +622,7 @@ $(document).ready(() => {
                         const xmjIndex = gclGatherData[index].leafXmjs.indexOf(xmjSelect);
                         loadMaterialData(index, xmjIndex);
                         SpreadJsObj.reLoadRowData(ledgerSpread.getActiveSheet(), index);
+                        materialSpread.getActiveSheet().setSelection(info.row, info.col, 1, 1);
                     }, function () {
                         SpreadJsObj.reLoadRowData(info.sheet, info.row);
                     });
@@ -747,6 +748,7 @@ $(document).ready(() => {
                     const xmjIndex = gclGatherData[index].leafXmjs.indexOf(xmjSelect);
                     loadMaterialData(index, xmjIndex);
                     SpreadJsObj.reLoadRowData(ledgerSpread.getActiveSheet(), index);
+                    materialSpread.getActiveSheet().setSelection(info.cellRange.row, info.cellRange.col, info.cellRange.rowCount, info.cellRange.colCount);
                 }, function () {
                     SpreadJsObj.reLoadRowData(info.sheet, info.row);
                 });