Przeglądaj źródła

多人协同修改

laiguoran 4 lat temu
rodzic
commit
99688d54b1
1 zmienionych plików z 6 dodań i 4 usunięć
  1. 6 4
      app/public/js/shenpi.js

+ 6 - 4
app/public/js/shenpi.js

@@ -709,10 +709,12 @@ $(document).ready(function () {
             });
         },
         enterCell: function(e, info) {
-            if (info.sheet.zh_setting) {
-                const col = info.sheet.zh_setting.cols[info.col];
-                info.sheet.setActiveCell(info.row, 2);
-                info.sheet.startEdit(true);
+            if (info.sheet.zh_setting && info.col === 2) {
+                if (ledgerSpread.getActiveSheet().getValue(info.row, info.col) !== '') {
+                    const col = info.sheet.zh_setting.cols[info.col];
+                    info.sheet.setActiveCell(info.row, 2);
+                    info.sheet.startEdit(true);
+                }
             }
         },
         editStarting: function (e, info) {