MaiXinRong 5 년 전
부모
커밋
42a66b1ef8
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      app/public/js/se_bonus.js

+ 2 - 2
app/public/js/se_bonus.js

@@ -56,7 +56,7 @@ $(document).ready(() => {
         font: '12px 微软雅黑',
         readOnly: readOnly,
         imageClick: function (data, hitinfo) {
-            if (!data || readOnly) return;
+            if (!data) return;
 
             const setting = hitinfo.sheet.zh_setting;
             if (!setting) return;
@@ -68,7 +68,7 @@ $(document).ready(() => {
                 $('#file').modal('show');
             }
 
-            if (col.field === 'real_time') {
+            if (col.field === 'real_time' && !readOnly) {
                 const pos = SpreadJsObj.getObjPos(hitinfo.sheet.getParent().qo);
                 if (!datepicker) {
                     datepicker = $('.datepicker-here').datepicker({