From cf645ae7f40fb775989f0b1b7b67b2b44e43dbf4 Mon Sep 17 00:00:00 2001 From: ndbs Date: Mon, 20 Jun 2022 19:03:00 +0800 Subject: [PATCH] =?UTF-8?q?=E7=96=AB=E6=83=85=E6=89=93=E5=8D=A1=E4=BD=93?= =?UTF-8?q?=E6=B8=A9=E4=B8=8A=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../EducationalAdministration/Views/HealthPunchStu/Form.js | 6 +++++- .../EducationalAdministration/Views/HealthPunchStu/Index.js | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/HealthPunchStu/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/HealthPunchStu/Form.js index 893096d41..e7dc45a73 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/HealthPunchStu/Form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/HealthPunchStu/Form.js @@ -23,7 +23,7 @@ var bootstrap = function ($, learun) { $.lrSetForm(top.$.rootUrl + '/EducationalAdministration/HealthPunchStu/GetFormData?keyValue=' + keyValue, function (data) { for (var id in data) { if (!!data[id].length && data[id].length > 0) { - $('#' + id ).jfGridSet('refreshdata', data[id]); + $('#' + id).jfGridSet('refreshdata', data[id]); } else { $('[data-table="' + id + '"]').lrSetFormData(data[id]); @@ -41,6 +41,10 @@ var bootstrap = function ($, learun) { var postData = { strEntity: JSON.stringify($('body').lrGetFormData()) }; + var Num = $('#Temperature').val(); + if (Num < 23 || Num > 44) { + learun.alert.warning("请填写正确的体温!"); + } $.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/HealthPunchStu/PunchCard?keyValue=' + keyValue, postData, function (res) { // 保存成功后才回调 if (!!callBack) { diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/HealthPunchStu/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/HealthPunchStu/Index.js index 5a17a5afe..4112f3004 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/HealthPunchStu/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/HealthPunchStu/Index.js @@ -114,7 +114,7 @@ var bootstrap = function ($, learun) { }, { label: "年级", name: "Grade", width: 100, align: "left" }, { label: "联系方式", name: "Phone", width: 100, align: "left" }, - { label: "阶段", name: "Temperature", width: 100, align: "left" }, + { label: "体温", name: "Temperature", width: 100, align: "left" }, { label: "打卡所在地址", name: "Address", width: 200, align: "left" }, { label: "打卡时间", name: "CreateTime", width: 140, align: "left" }, { label: "备注", name: "Remark", width: 200, align: "left" },