From 47e55835a858636a79930156cab7647821085c92 Mon Sep 17 00:00:00 2001
From: nickchange <126672920+nickchange@users.noreply.github.com>
Date: 星期四, 12 十月 2023 18:06:43 +0800
Subject: [PATCH] 10.12bug
---
cloud-server-management/src/main/webapp/static/modular/system/coursePackage/coursePackageStudent.js | 26 +++++++++++++++-----------
1 files changed, 15 insertions(+), 11 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..16a688e 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
@@ -22,28 +22,32 @@
{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