Browse Source

工资条页面改版

xiuli.gao 9 months ago
parent
commit
b8a2df567c
1 changed files with 11 additions and 1 deletions
  1. 11 1
      salary.html

+ 11 - 1
salary.html

@@ -345,7 +345,17 @@
345 345
       success: function (res) {
346 346
         console.log(res)
347 347
         $('.loading').hide();
348
-        if(!res) return;
348
+        if(!res || !res.rst) {
349
+          $(".total").html('-')
350
+          $(".succ_n").html('-')
351
+          $(".fail_n").html('-')
352
+          $(".allComplete").hide()
353
+          $(".tbody").html(`<div class="noDataBox">
354
+            <img src="./common/nodata.png" alt="" srcset="">
355
+            <p>暂无数据</p>
356
+          </div>`)
357
+          return
358
+        }
349 359
         if(res.rst && res.rst.detail &&  Array.isArray(res.rst.detail)){
350 360
           staffList = res.rst.detail;
351 361
           statusSelectChange('all')