MaiXinRong 5 years ago
parent
commit
42a66b1ef8
1 changed files with 2 additions and 2 deletions
  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({