From a830a73fd10a21e3793c79a35be4e532de124c6f Mon Sep 17 00:00:00 2001
From: nickchange <126672920+nickchange@users.noreply.github.com>
Date: 星期二, 17 十月 2023 17:25:16 +0800
Subject: [PATCH] 10.17.1

---
 cloud-server-management/src/main/webapp/static/modular/system/coursePackage/coursePackageStudent.js |   28 ++++++++++++++++------------
 1 files changed, 16 insertions(+), 12 deletions(-)

diff --git a/cloud-server-management/src/main/webapp/static/modular/system/coursePackage/coursePackageStudent.js b/cloud-server-management/src/main/webapp/static/modular/system/coursePackage/coursePackageStudent.js
index 6cb31aa..7f27709 100644
--- a/cloud-server-management/src/main/webapp/static/modular/system/coursePackage/coursePackageStudent.js
+++ b/cloud-server-management/src/main/webapp/static/modular/system/coursePackage/coursePackageStudent.js
@@ -15,35 +15,39 @@
 CoursePackageStudent.initColumn = function () {
     let columns = [
         {field: 'selectItem', radio: true},
-        {title: 'id', field: 'id', visible: false, align: 'center', valign: 'middle'},
+        {title: '序号', field: 'id', visible: true, align: 'center', valign: 'middle'},
         {title: '所属用户', field: 'userName', align: 'center', valign: 'middle'},
         {title: '姓名', field: 'studentName', align: 'center', valign: 'middle'},
         {title: '联系电话', field: 'phone', align: 'center', valign: 'middle'},
         {title: '年龄', field: 'age', align: 'center', valign: 'middle'},
         {title: '性别', field: 'sex', align: 'center', valign: 'middle',
             formatter: function (v) {
-                if(v == 1){
+                if (v == 1) {
                     return '男';
-                }else{
+                } else {
                     return '女';
                 }
             }
         },
         {title: '到课状态', field: 'signInOrNot', align: 'center', valign: 'middle',
-            formatter: function (v) {
-                switch (v) {
-                    case 0:
-                        return '未到';
-                    case 1:
-                        return '已到';
+            formatter: function (v, row) {
+                if (row.signInOrNot === 2) {
+                    return '请假';
+                } else {
+                    switch (v) {
+                        case 0:
+                            return '旷课';
+                        case 1:
+                            return '已到';
+                    }
                 }
             }
         },
-        {title: '预定状态', field: 'reservationStatus', align: 'center', valign: 'middle',
+        {title: '预定状态', field: 'reservationStatus', align: 'center', valign: 'middle',hidden:true,
             formatter: function (v) {
-                if(v == 0){
+                if (v == 0) {
                     return '已取消';
-                }else{
+                } else {
                     return '正常';
                 }
             }

--
Gitblit v1.7.1