From 0954aa96ea47b6c6b10716a15a5a245fa0339f0f Mon Sep 17 00:00:00 2001
From: zhichao lei <442149704@qq.com>
Date: Thu, 4 Feb 2021 09:49:57 +0800
Subject: [PATCH] =?UTF-8?q?=E6=95=99=E5=B8=88=E8=AF=BE=E5=A0=82=E8=80=83?=
=?UTF-8?q?=E5=8B=A4=20=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../www/pages/studentAttendance/form/form.js | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/studentAttendance/form/form.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/studentAttendance/form/form.js
index 367d3803a..39e876d5a 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/studentAttendance/form/form.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/studentAttendance/form/form.js
@@ -5,7 +5,6 @@
init: function ($page, param) {
//console.log(param) 传过来的参数 在param上
//初始化
- console.log(param);
loadData(param);
$('.tSec3Time').html('' + param.LessonDate + ' 第' + param.LessonTime.substring(1) + '节');
$('.tSec4T').html('
' +
@@ -18,7 +17,6 @@
function () {
var that = $(this);
var jsons = JSON.parse(that.attr('student'));
- // console.log(jsons)
var type = that.attr('class');
type = type.length == 0 ? 'sStatue1' : type;
that.addClass('active');
@@ -48,13 +46,13 @@
$(".timeTableList li").each(function () {
var keType = $(this).attr("kqtype") ? $(this).attr("kqtype") : "0";
+ console.log(keType);
var object = JSON.parse($(this).attr("student"));
object.kqType = keType;
rowData.push(object);
})
var jsonObj = JSON.parse(JSON.stringify(rowData));
- console.log(JSON.stringify(jsonObj));
learun.layer.confirm('是否确认提交考勤?',
function (num) {
@@ -102,7 +100,6 @@
)
};
learun.httpget(config.webapi + "/teachattendance/students", _postParam, (data) => {
- console.log(data);
studentCheckData(data, param)
})
}
@@ -114,7 +111,9 @@
} else {
$.each(weekData2.rows, function (j, k) {
var statusName = !k.Sort ? 'sStatue1' : k.Sort == "准时" ? 'sStatue1' : k.Sort == "早退" ? 'sStatue2' : k.Sort == "旷课" ? 'sStatue3' : k.Sort == "病假" ? 'sStatue4' : k.Sort == "迟到" ? 'sStatue5' : 'sStatue6';
- html += '
' +
+ var sktype = !k.Sort ? '0' : k.Sort == "准时" ? '0' : k.Sort == "早退" ? '2' : k.Sort == "旷课" ? '5' : k.Sort == "病假" ? '3' : k.Sort == "迟到" ? '1' : '4';
+ k.kqType=sktype;
+ html += '
' +
k.StuName + '' +
'
';
})