From 2a64ddef22601a4454c9cd5b3742cf8340b2e774 Mon Sep 17 00:00:00 2001 From: dyy <18335927079@163.com> Date: Thu, 10 Dec 2020 17:52:29 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91=E7=A7=BB?= =?UTF-8?q?=E5=8A=A8=E7=AB=AF=E7=8F=AD=E7=BA=A7=E8=87=AA=E8=AF=8A=E6=89=93?= =?UTF-8?q?=E5=8D=A1=E6=B5=8B=E6=B8=A9=EF=BC=9A=E8=B0=83=E6=95=B4=E4=B8=BA?= =?UTF-8?q?=E6=95=B4=E4=B8=AA=E7=8F=AD=E7=BA=A7=E6=8F=90=E4=BA=A4=E6=B5=8B?= =?UTF-8?q?=E6=B8=A9=EF=BC=9B=E7=96=AB=E6=83=85=E7=BB=84=E5=BE=AE=E4=BF=A1?= =?UTF-8?q?=E6=8E=A8=E9=80=81=EF=BC=9A=E6=8C=89=E7=8F=AD=E7=BA=A7=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E6=8E=A8=E9=80=81=EF=BC=9BPC=E8=B7=9F=E7=A7=BB?= =?UTF-8?q?=E5=8A=A8=EF=BC=9A=E6=96=B0=E5=A2=9E=E7=8F=AD=E7=BA=A7=E8=87=AA?= =?UTF-8?q?=E8=AF=8A=E6=89=93=E5=8D=A1=E7=BB=93=E6=9E=9C=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Thermography/Result/Result.css | 1 + .../Thermography/Result/Result.html | 34 +++ .../Thermography/Result/Result.js | 174 ++++++++++++++ .../Thermography/measure/measure.css | 3 +- .../Thermography/measure/measure.html | 1 + .../Thermography/measure/measure.js | 64 ++++- .../Controllers/ThermographyController.cs | 9 + .../Views/Thermography/Index.js | 11 +- .../Views/Thermography/IndexResult.cshtml | 54 +++++ .../Views/Thermography/IndexResult.js | 226 ++++++++++++++++++ .../Learun.Application.Web.csproj | 2 + .../ThermographyApi.cs | 17 +- .../Thermography/ThermographyService.cs | 35 +-- 13 files changed, 606 insertions(+), 25 deletions(-) create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Thermography/Result/Result.css create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Thermography/Result/Result.html create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Thermography/Result/Result.js create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Thermography/IndexResult.cshtml create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Thermography/IndexResult.js diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Thermography/Result/Result.css b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Thermography/Result/Result.css new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Thermography/Result/Result.css @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Thermography/Result/Result.html b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Thermography/Result/Result.html new file mode 100644 index 000000000..8e97c5c9e --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Thermography/Result/Result.html @@ -0,0 +1,34 @@ +
班级:
').dataFormatter({ + value: _item.ClassNo, + type: 'dataSource', + code: 'bjsj', + keyId: 'classno', + text: 'classname' + })); + _$item.append($('测温人:
').dataFormatter({ + value: _item.MeasurerID, + type: 'dataSource', + code: 'BaseUser', + keyId: 'f_account', + text: 'f_realname' + })); + _$item.append($('被测温人学号:
').dataFormatter({ + value: _item.PersonBeingMeasured + })); + _$item.append($('被测温人:
').dataFormatter({ + value: _item.PersonBeingMeasured, + type: 'dataSource', + code: 'BaseUser', + keyId: 'f_account', + text: 'f_realname' + })); + _$item.append($('状态:
').dataFormatter({ + value: _item.Status, + type: 'dataItem', + code: 'TemperatureMeasure' + })); + _$item.append($('温度:
').dataFormatter({ value: _item.Temperature })); + _$item.append($('处理结果:
').dataFormatter({ value: _item.ProcessingResult })); + _$item.append($('备注:
').dataFormatter({ value: _item.Remark })); + _$item.append($('测量时间:
').dataFormatter({ + value: _item.MeasureDate, + type: 'datetime', + dateformat: 'yyyy-MM-dd hh:mm:ss' + })); + _$item.append($('测量时间段:
').dataFormatter({ + value: _item.MeasureTime, + type: 'dataItem', + code: 'MeasureTime' + })); + return ''; + }, + rowClick: function (item, $item, $page) {// 列表行点击触发方法 + learun.nav.go({ path: 'EducationalAdministration/Thermography/form', title: '详情', type: 'right', param: { keyValue: item.ID } }); + }, + btnClick: function (item, $item, $page) {// 左滑按钮点击事件 + learun.layer.confirm('确定要删除该笔数据吗?', function (_index) { + if (_index === '1') { + learun.layer.loading(true, '正在删除该笔数据'); + learun.httppost(config.webapi + 'learun/adms/EducationalAdministration/Thermography/delete', item.ID, (data) => { + if (data) {// 删除数据成功 + page.grid.reload(); + } + learun.layer.loading(false); + }); + } + }, '智慧校园提示', ['取消', '确定']); + }, + //rowBtns: ['删除'] // 列表行左滑按钮 + }; + return page; +})(); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Thermography/measure/measure.css b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Thermography/measure/measure.css index 8ef6f50ab..8db6708d1 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Thermography/measure/measure.css +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Thermography/measure/measure.css @@ -202,7 +202,7 @@ li { border-color: #cacaca !important; } */ -.timeTableBtn { +.timeTableBtn,.submitBtn { font-size: 16px; margin: 20px 12px; background: #0C86D8; @@ -211,6 +211,7 @@ li { line-height: 40px; height: 40px; color: #fff; + cursor:pointer; } .statusType { diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Thermography/measure/measure.html b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Thermography/measure/measure.html index f81c12eb3..a932ff8d9 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Thermography/measure/measure.html +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Thermography/measure/measure.html @@ -27,6 +27,7 @@