瀏覽代碼

全部费用申请退回高亮显示

梁世豪 8 月之前
父節點
當前提交
6c68367e48
共有 1 個文件被更改,包括 12 次插入5 次删除
  1. 12 5
      src/main/resources/templates/stafeemanage/list_allapply.html

+ 12 - 5
src/main/resources/templates/stafeemanage/list_allapply.html

@@ -403,11 +403,18 @@
403 403
                 };
404 404
             },
405 405
             done: function (res, curr, count) { // done为数据渲染完的回调
406
-                // 测试打印出后端返回的权限列表
407
-                // let permissionSet = [[${permissionSet}]];
408
-                // console.log(JSON.stringify(permissionSet));
409
-            }
410
-        });
406
+
407
+                if (res.data && Array.isArray(res.data)) {
408
+                    for (let i = 0; i < res.data.length; i++) {
409
+                        console.log(res.data[i]);
410
+                        if (res.data[i].sfth==1){
411
+                            const Index = i ;
412
+                            $(`.layui-table tr[data-index="${Index}"]`).css('background-color', '#ADD8E6');
413
+                        }
414
+                    }
415
+                } else {
416
+                }
417
+            }        });
411 418
 
412 419
         // 监听搜索操作
413 420
         form.on('submit(data-search-btn)', function (data) {