MaiXinRong пре 4 дана
родитељ
комит
1620f1814e
2 измењених фајлова са 4 додато и 3 уклоњено
  1. 3 2
      app/public/js/se_bonus.js
  2. 1 1
      app/view/stage_extra/bonus.ejs

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

@@ -323,7 +323,7 @@ $(document).ready(() => {
                 }
             }
             if (other.show) result.push(other);
-            result.push(sum);
+            // result.push(sum);
             result.forEach(x => { x.tp = ZhCalc.add(x.positive_tp, x.negative_tp); });
             return result;
         }
@@ -341,7 +341,8 @@ $(document).ready(() => {
         const sum = bonusObj.sum();
         const html = [];
         for (const s of sum) {
-            html.push(`<tr><td>${s.name}</td><td class="text-right">${s.positive_tp || ''}</td><td class="text-right">${s.negative_tp || ''}</td><td class="text-right">${s.tp || ''}</td></tr>`);
+            //html.push(`<tr><td>${s.name}</td><td class="text-right">${s.positive_tp || ''}</td><td class="text-right">${s.negative_tp || ''}</td><td class="text-right">${s.tp || ''}</td></tr>`);
+            html.push(`<tr><td>${s.name}</td><td class="text-right">${s.tp || ''}</td></tr>`);
         }
         $('#sum').html(html.join(' '));
     };

+ 1 - 1
app/view/stage_extra/bonus.ejs

@@ -31,7 +31,7 @@
             </div>
             <div class="c-body col-3">
                 <table class="table table-bordered" style="width: 99%">
-                    <tr><th class="text-center" width="50%">类型</th><th class="text-center">奖金</th><th class="text-center">罚金</th><th class="text-center">合计</th></tr>
+                    <tr><th class="text-center" width="50%">类型</th><th class="text-center">奖金</th></tr>
                     <tbody id="sum">
                     </tbody>
                 </table>