diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/config/config.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/config/config.js index bbf9d244a..8729d3859 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/config/config.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/config/config.js @@ -1,7 +1,7 @@ -var config = { - webapi: 'http://localhost:8088/', - web: "http://localhost:8087/"//web地址,用于配置logo -}; +//var config = { +// webapi: 'http://123.57.209.16:31173/', +// web: "http://localhost:8087/"//web地址,用于配置logo +//}; //var config = { // webapi: 'http://112.230.201.53:31173/', // web:"http://112.230.201.53/:8081/"//web地址,用于配置logo @@ -12,17 +12,22 @@ //}; -//var config = { -// webapi: 'http://localhost:8081/', -// web: "http://localhost:8080/"//web地址,用于配置logo -//}; -//var config = { -// webapi: 'http://123.57.209.16:31174/', +var config = { + webapi: 'http://localhost:8081/', + web: "http://localhost:8087/"//web地址,用于配置logo +}; +// var config = { +// webapi: 'http://123.57.209.16:31173/', // web: "http://123.57.209.16:31175/"//web地址,用于配置logo -//}; +// }; //金隅 //var config = { // webapi: 'http://192.168.100.225:31173/', // web:"http://192.168.100.225:8081/"//web地址,用于配置logo -//}; \ No newline at end of file +//}; + +// var config = { +// webapi: 'http://123.57.209.16:31174/', +// web: "http://123.57.209.16:31175/"//web地址,用于配置logo +// }; \ No newline at end of file diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/Ask/Ask.html b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/Ask/Ask.html index 9b931577d..7521cae2d 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/Ask/Ask.html +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/Ask/Ask.html @@ -1,4 +1,4 @@ -
+
总共0条 @@ -16,7 +16,4 @@
-
\ No newline at end of file diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/Ask/Ask.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/Ask/Ask.js index a1d65332a..477036bd5 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/Ask/Ask.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/Ask/Ask.js @@ -1,4 +1,4 @@ -(function () { +(function () { var multipleData = null; var page = { grid: null, @@ -26,6 +26,7 @@ }, lclass: 'lr-list', loadData: function (param, callback, $page) {// 列表加载后台数据 + console.log(param) var _postParam = { pagination: { rows: param.rows, diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/Ask/AskPaper/AskPaper.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/Ask/AskPaper/AskPaper.js index f606e9a72..6ca0fb479 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/Ask/AskPaper/AskPaper.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/Ask/AskPaper/AskPaper.js @@ -2,6 +2,7 @@ var page = { isScroll: true, init: function($page, param) { + console.log(param) var path = config.webapi; learun.layer.loading(true,"加载数据中..."); learun.httpget(path + "/learun/ask/paper", { @@ -10,6 +11,7 @@ learun.layer.loading(false); $page.find('.inSecTitle').html(res.VTitle).end().find('.inSecTime').html(res.VStartTime + ' - ' + res.VStopTime) var dataList = res.Ask_Questions; + console.log(dataList) var otherHtml = '
'+ '其他'+ '
'+ @@ -92,7 +94,7 @@ return } // return - learun.httpget(path + "/learun/ask/savepaper", + learun.httppost(path + "/learun/ask/savepaper", { VID: param.VID, LessonNo: param.LessonNo, diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/AssetManagementSystem/Ass_InventoryResult/Ass_InventoryItemList/Ass_InventoryItemList.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/AssetManagementSystem/Ass_InventoryResult/Ass_InventoryItemList/Ass_InventoryItemList.js index 33135cc3e..27e5d334f 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/AssetManagementSystem/Ass_InventoryResult/Ass_InventoryItemList/Ass_InventoryItemList.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/AssetManagementSystem/Ass_InventoryResult/Ass_InventoryItemList/Ass_InventoryItemList.js @@ -1,4 +1,4 @@ -/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) +/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) * Copyright (c) 2013-2018 北京泉江科技有限公司 * 创建人:超级管理员 * 日 期:2019-10-17 17:22 @@ -144,6 +144,7 @@ }); } learun.httpget(config.webapi + 'learun/AssetManagementSystem/InventoryItem/pagelist', _postParam, (data) => { + console.log(data) $page.find('.lr-badge').text('0'); if (data) { $page.find('.lr-badge').text(data.records); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/AssetManagementSystem/Ass_InventoryResult/Ass_InventoryItemList/Form/form.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/AssetManagementSystem/Ass_InventoryResult/Ass_InventoryItemList/Form/form.js index 96450d451..8d426ba9b 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/AssetManagementSystem/Ass_InventoryResult/Ass_InventoryItemList/Form/form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/AssetManagementSystem/Ass_InventoryResult/Ass_InventoryItemList/Form/form.js @@ -1,4 +1,4 @@ -/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) +/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) * Copyright (c) 2013-2018 北京泉江科技有限公司 * 创建人:超级管理员 * 日 期:2019-10-24 16:51 @@ -89,6 +89,7 @@ var _postData = {} _postData.keyValue = keyValue; _postData.strEntity = JSON.stringify($page.find('.lr-form-container').lrformGet()); + console.log(_postData) learun.layer.loading(true, '正在提交数据'); learun.httppost(config.webapi + 'learun/AssetManagementSystem/InventoryItem/save', _postData, (data) => { learun.layer.loading(false); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/OpenLessonPlanOfElectiveStudent/form/form.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/OpenLessonPlanOfElectiveStudent/form/form.js index 8830da9a6..8476450d3 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/OpenLessonPlanOfElectiveStudent/form/form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/OpenLessonPlanOfElectiveStudent/form/form.js @@ -1,4 +1,4 @@ -(function () { +(function () { var keyValue = ''; var weekChina = ["一", "二", "三", "四", "五", "六", "日"]; var $header = null; @@ -31,11 +31,11 @@ config.webapi + 'learun/EducationalAdministration/OpenLessonPlanOfElectiveStudent/GetApplyResult', _postData, - ( - dataresult, inforesult) => { + (dataresult, inforesult) => { learun.layer.loading(false); clearInterval(timer); - learun.layer.toast(inforesult); + //learun.layer.toast(inforesult); + learun.layer.toast(dataresult.msg); learun.nav.closeCurrent(); var prepage = learun.nav.getpage('EducationalAdministration/OpenLessonPlanOfElectiveStudent'); prepage.grid.reload(); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/OpenLessonPlanOfElectiveStudentPre/OpenLessonPlanOfElectiveStudentPre.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/OpenLessonPlanOfElectiveStudentPre/OpenLessonPlanOfElectiveStudentPre.js index 773b795ec..3b5be792c 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/OpenLessonPlanOfElectiveStudentPre/OpenLessonPlanOfElectiveStudentPre.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/OpenLessonPlanOfElectiveStudentPre/OpenLessonPlanOfElectiveStudentPre.js @@ -1,4 +1,4 @@ -(function () { +(function () { var weekChina = ["一", "二", "三", "四", "五", "六", "日"]; var begin = ''; var end = ''; @@ -13,6 +13,7 @@ lclass: page.lclass, rows: 10, // 每页行数 getData: function (param, callback) {// 获取数据 param 分页参数,callback 异步回调 + console.log(param) param.multipleData = multipleData; page.loadData(param, callback, $page); }, @@ -48,6 +49,7 @@ _postParam.queryJson = JSON.stringify({ StuNo: JSON.parse(localStorage.userinfo).baseinfo.account, StuMajorNo: JSON.parse(localStorage.userinfo).baseinfo.majorno, StuGrade: JSON.parse(localStorage.userinfo).baseinfo.grade }); } learun.httpget(config.webapi + 'learun/EducationalAdministration/OpenLessonPlanOfElectiveStudent/pagelist', _postParam, (data) => { + console.log(data) $page.find('.lr-badge').text('0'); if (data) { $page.find('.lr-badge').text(data.records); @@ -116,9 +118,15 @@ _postData.keyValue = item.Id; _postData.StuNo = JSON.parse(localStorage.userinfo).baseinfo.account; learun.layer.loading(true, '正在取消报名...'); + console.log(123); learun.httppost(config.webapi + 'learun/EducationalAdministration/OpenLessonPlanOfElectiveStudent/CancelPre', _postData, (data, info) => { + console.log(data) + console.log(info) if (data) {// 成功 - learun.layer.toast(info); + console.log(1111111111) + console.log(data) + console.log(info) + //learun.layer.toast(info); page.grid.reload(); } learun.layer.loading(false); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/OpenLessonPlanOfElectiveStudentPre/form/form.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/OpenLessonPlanOfElectiveStudentPre/form/form.js index fa3702041..91bd59fd0 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/OpenLessonPlanOfElectiveStudentPre/form/form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/OpenLessonPlanOfElectiveStudentPre/form/form.js @@ -1,4 +1,4 @@ -(function () { +(function () { var keyValue = ''; var weekChina = ["一", "二", "三", "四", "五", "六", "日"]; var $header = null; @@ -26,7 +26,8 @@ learun.httppost(config.webapi + 'learun/EducationalAdministration/OpenLessonPlanOfElectiveStudent/SignInPre', _postData, (data,info) => { learun.layer.loading(false); if (data) {// 表单数据保存成功 - learun.layer.toast(info); + //learun.layer.toast(info); + learun.layer.toast(data.msg); learun.nav.closeCurrent(); var prepage = learun.nav.getpage('EducationalAdministration/OpenLessonPlanOfElectiveStudentPre'); prepage.grid.reload(); @@ -35,10 +36,12 @@ }); page.bind($page, param); if (keyValue) { + console.log(keyValue) $page.find('.lr-form-container').setFormRead(); // 获取表单数据 learun.layer.loading(true, '获取表单数据'); learun.httpget(config.webapi + 'learun/EducationalAdministration/OpenLessonPlanOfElectiveStudent/form', keyValue, (data) => { + console.log(data) if (data) { for (var id in data) { if (data[id].length) { diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/R_EnterBuilding/R_EnterBuilding.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/R_EnterBuilding/R_EnterBuilding.js index c4a9ca181..c9e5bfda1 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/R_EnterBuilding/R_EnterBuilding.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/R_EnterBuilding/R_EnterBuilding.js @@ -1,104 +1,99 @@ -/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) +/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) * Copyright (c) 2013-2018 北京泉江科技有限公司 * 创建人:超级管理员 * 日 期:2020-04-21 09:23 * 描 述:扫码入教学楼统计 */ -(function () { - var page = { - grid: null, - init: function ($page) { - - - - - var ua = navigator.userAgent.toLowerCase(); - if (/(html5plus)/i.test(ua)) { - //if (false) { - $('.bcidBox').css('display', 'block'); - var scan = new plus.barcode.Barcode('bcid'); - scan.onmarked = function onmarked(type, result) { - scan.close(); - $('.bcidBox').css('display', 'none'); - - var loginInfo = learun.storage.get('userinfo'); - var buildEntity = {}; - buildEntity.SId = loginInfo.baseinfo.account; - - buildEntity.BId = result;//'1d13cb80-d66a-4c55-a633-f88dc0b80df7'; - - var param = {}; - param.keyValue = ''; - param.strEntity = JSON.stringify(buildEntity); - - - learun.layer.loading(true, '正在提交数据'); - learun.httppost(config.webapi + 'learun/EducationalAdministration/R_EnterBuilding/save', param, (data) => { - learun.layer.loading(false); - if (data) {// 表单数据保存成功 - learun.layer.toast("扫描成功"); - learun.nav.closeCurrent(); - //var prepage = learun.nav.getpage('EducationalAdministration/R_EnterBuilding'); - //prepage.grid.reload(); - } - }); - }; - scan.start(); - } else if (/micromessenger/.test(ua)) { - $.ajax({ - url: config.webapi + "weixinapi/getweixinwebaccess_token?url=" + encodeURIComponent(window.location.href), - type: "get", - success: function (res) { - wx.config({ - debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。 - appId: res.data.appid, // 必填,公众号的唯一标识 - timestamp: res.data.timestamp, // 必填,生成签名的时间戳 - nonceStr: res.data.noncestr, // 必填,生成签名的随机串 - signature: res.data.certificate, // 必填,签名 - jsApiList: ["scanQRCode"] // 必填,需要使用的JS接口列表 - }); - - wx.ready(function () { - wx.scanQRCode({ - needResult: 1, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果, - scanType: ["qrCode", "barCode"], // 可以指定扫二维码还是一维码,默认二者都有 - success: function (res) { - learun.layer.toast(res); - //res.resultStr - var loginInfo = learun.storage.get('userinfo'); - var buildEntity = {}; - buildEntity.SId = loginInfo.baseinfo.account; - - buildEntity.BId = res.resultStr;//'1d13cb80-d66a-4c55-a633-f88dc0b80df7'; - - var param = {}; - param.keyValue = ''; - param.strEntity = JSON.stringify(buildEntity); - - - learun.layer.loading(true, '正在提交数据'); - learun.httppost(config.webapi + 'learun/EducationalAdministration/R_EnterBuilding/save', param, (data) => { - learun.layer.loading(false); - if (data) {// 表单数据保存成功 - learun.layer.toast("扫描成功"); - learun.nav.closeCurrent(); - //var prepage = learun.nav.getpage('EducationalAdministration/R_EnterBuilding'); - //prepage.grid.reload(); - } - }); - } - }); - }) - - - } - }); - - - } else { - learun.layer.warning('请下载app或者到微信浏览器打开网页'); - } - } - }; - return page; +(function() { + var page = { + grid: null, + init: function($page) { + var ua = navigator.userAgent.toLowerCase(); + if (/(html5plus)/i.test(ua)) { + //if (false) { + $('.bcidBox').css('display', 'block'); + var scan = new plus.barcode.Barcode('bcid'); + scan.onmarked = function onmarked(type, result) { + scan.close(); + $('.bcidBox').css('display', 'none'); + + var loginInfo = learun.storage.get('userinfo'); + var buildEntity = {}; + buildEntity.SId = loginInfo.baseinfo.account; + + buildEntity.BId = result; //'1d13cb80-d66a-4c55-a633-f88dc0b80df7'; + + var param = {}; + param.keyValue = ''; + param.strEntity = JSON.stringify(buildEntity); + + + learun.layer.loading(true, '正在提交数据'); + learun.httppost(config.webapi + 'learun/EducationalAdministration/R_EnterBuilding/save', param, (data) => { + learun.layer.loading(false); + if (data) { // 表单数据保存成功 + learun.layer.toast("扫描成功"); + learun.nav.closeCurrent(); + //var prepage = learun.nav.getpage('EducationalAdministration/R_EnterBuilding'); + //prepage.grid.reload(); + } + }); + }; + scan.start(); + } else if (/micromessenger/.test(ua)) { + $.ajax({ + url: config.webapi + "weixinapi/getweixinwebaccess_token?url=" + encodeURIComponent(window.location.href), + type: "get", + success: function(res) { + wx.config({ + debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。 + appId: res.data.appid, // 必填,公众号的唯一标识 + timestamp: res.data.timestamp, // 必填,生成签名的时间戳 + nonceStr: res.data.noncestr, // 必填,生成签名的随机串 + signature: res.data.certificate, // 必填,签名 + jsApiList: ["scanQRCode"] // 必填,需要使用的JS接口列表 + }); + + wx.ready(function() { + wx.scanQRCode({ + needResult: 1, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果, + scanType: ["qrCode", "barCode"], // 可以指定扫二维码还是一维码,默认二者都有 + success: function(res) { + learun.layer.toast(res); + //res.resultStr + var loginInfo = learun.storage.get('userinfo'); + var buildEntity = {}; + buildEntity.SId = loginInfo.baseinfo.account; + + buildEntity.BId = res.resultStr; //'1d13cb80-d66a-4c55-a633-f88dc0b80df7'; + + var param = {}; + param.keyValue = ''; + param.strEntity = JSON.stringify(buildEntity); + + + learun.layer.loading(true, '正在提交数据'); + learun.httppost(config.webapi + 'learun/EducationalAdministration/R_EnterBuilding/save', param, ( + data) => { + learun.layer.loading(false); + if (data) { // 表单数据保存成功 + learun.layer.toast("扫描成功"); + learun.nav.closeCurrent(); + //var prepage = learun.nav.getpage('EducationalAdministration/R_EnterBuilding'); + //prepage.grid.reload(); + } + }); + } + }); + }) + } + }); + + + } else { + learun.layer.warning('请下载app或者到微信浏览器打开网页'); + } + } + }; + return page; })(); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/R_EnterSchool/R_EnterSchool.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/R_EnterSchool/R_EnterSchool.js index a66f2624d..66f7f5a63 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/R_EnterSchool/R_EnterSchool.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/R_EnterSchool/R_EnterSchool.js @@ -1,4 +1,4 @@ -/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) +/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) * Copyright (c) 2013-2018 北京泉江科技有限公司 * 创建人:超级管理员 * 日 期:2020-04-21 09:27 diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/PayFee/PayFee.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/PayFee/PayFee.js index 2a85df13b..baf19c4f7 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/PayFee/PayFee.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/PayFee/PayFee.js @@ -1,4 +1,4 @@ -/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) +/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) * Copyright (c) 2013-2018 北京泉江科技有限公司 * 创建人:超级管理员 * 日 期:2019-12-26 14:43 @@ -71,6 +71,8 @@ if (param.begin && param.end) { _postParam.queryJson = JSON.stringify({ StartTime: param.begin, EndTime: param.end }); } + console.log(param.multipleData) + // return learun.httpget(config.webapi + 'StuInfoFresh/pageList', _postParam, (data) => { $page.find('.lr-badge').text('0'); if (data) { diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/PayFee/form/form.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/PayFee/form/form.js index 1b9f3015a..e80751769 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/PayFee/form/form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/PayFee/form/form.js @@ -1,4 +1,4 @@ -/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) +/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) * Copyright (c) 2013-2018 北京泉江科技有限公司 * 创建人:超级管理员 * 日 期:2019-12-26 14:43 @@ -91,6 +91,8 @@ var _postData = {} _postData.keyValue = keyValue; _postData.strEntity = JSON.stringify(data); + console.log(_postData) + // return learun.layer.loading(true, '正在提交数据'); learun.httppost(config.webapi + 'StuInfoFresh/save', _postData, (data) => { learun.layer.loading(false); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StudentQRCode/AbNormalSerious/AbNormalSerious.css b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StudentQRCode/AbNormalSerious/AbNormalSerious.css index d79970a72..f92d126ce 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StudentQRCode/AbNormalSerious/AbNormalSerious.css +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StudentQRCode/AbNormalSerious/AbNormalSerious.css @@ -1,149 +1,149 @@ -#sQrCode { - height: 100%; - background-color: #EEF2F3; - padding-bottom: 30px; +#sQrCode { + height: 100%; + background-color: #EEF2F3; + padding-bottom: 30px; } .sQrLogo { - background-image: url(images/xcBg.jpg); - background-size: 100% 100%; - text-align: center; - line-height: 0; - padding: 20px 0 70px; + background-image: url(images/xcBg.jpg); + background-size: 100% 100%; + text-align: center; + line-height: 0; + padding: 20px 0 70px; } .sQrLogoImg1 img { - width: 20%; + width: 20%; } .sQrLogoImg1 { - margin-bottom: 10px; + margin-bottom: 10px; } .sQrLogoImg2 img { - width: 50%; + width: 50%; } .sQrBox { - margin: -50px 20px 0; - background-color: #fff; - padding: 30px 38px; - border-radius: 10px; - -webkit-box-shadow: 0 4px 10px rgba(0, 0, 0, .1); - -moz-box-shadow: 0 4px 10px rgba(0, 0, 0, .1); - box-shadow: 0 4px 10px rgba(0, 0, 0, .1); - /* overflow: hidden; */ + margin: -50px 20px 0; + background-color: #fff; + padding: 30px 38px; + border-radius: 10px; + -webkit-box-shadow: 0 4px 10px rgba(0, 0, 0, .1); + -moz-box-shadow: 0 4px 10px rgba(0, 0, 0, .1); + box-shadow: 0 4px 10px rgba(0, 0, 0, .1); + /* overflow: hidden; */ } .sQrT2 { - font-weight: bold; - text-align: center; - font-size: 24px; - margin-bottom: 20px; - color: #CC0000; + font-weight: bold; + text-align: center; + font-size: 24px; + margin-bottom: 20px; + color: #CC0000; } .sQrList { - background-color: #F8F8F8; - margin: 0 10px; - padding: 10px 30px; - border-radius: 4px + background-color: #F8F8F8; + margin: 0 10px; + padding: 10px 30px; + border-radius: 4px } - .sQrList div { - padding: 7px 10px; - font-size: 14px; - color: #000; - border-top: 1px solid #D7D7D7; - } +.sQrList div { + padding: 7px 10px; + font-size: 14px; + color: #000; + border-top: 1px solid #D7D7D7; +} - .sQrList div:first-child { - border: 0; - } +.sQrList div:first-child { + border: 0; +} - .sQrList div span { - color: #AEAEAE; - margin-right: 10px; - } +.sQrList div span { + color: #AEAEAE; + margin-right: 10px; +} .sQrType3 { - background-color: #CC0000; - padding: 20px 0; - text-align: center; - color: #fff; - margin: 30px -38px -30px; - border-radius: 0 0 10px 10px; + background-color: #CC0000; + padding: 20px 0; + text-align: center; + color: #fff; + margin: 30px -38px -30px; + border-radius: 0 0 10px 10px; } - .sQrType3 > * { - display: inline-block; - vertical-align: middle; - text-align: left; - } +.sQrType3>* { + display: inline-block; + vertical-align: middle; + text-align: left; +} .sQrTypeT { - font-size: 14px; + font-size: 14px; } .sQrTypeTxt { - font-size: 24px; - font-weight: bold; - margin-top: 3px; + font-size: 24px; + font-weight: bold; + margin-top: 3px; } .sQrTypeImg { - margin-left: 15px; - width: 43px; - line-height: 0; + margin-left: 15px; + width: 43px; + line-height: 0; } - .sQrTypeImg img { - width: 100%; - } +.sQrTypeImg img { + width: 100%; +} .sQrTxt1 { - margin: 30px 50px 20px; - font-size: 14px; - color: #AEAEAE; + margin: 30px 50px 20px; + font-size: 14px; + color: #AEAEAE; } .sQrBtn2 { - margin: 20px 20px 0; - background-color: #CED0D0; - /* -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, .1); + margin: 20px 20px 0; + background-color: #CED0D0; + /* -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, .1); -moz-box-shadow: 0 0 10px rgba(0, 0, 0, .1); box-shadow: 0 0 10px rgba(0, 0, 0, .1); */ - border-radius: 8px; - height: 50px; - line-height: 50px; - font-weight: bold; - color: #fff; - font-size: 16px; - text-align: center; -} - - .sQrBtn2 img { - width: 23px; - margin-right: 10px; - position: relative; - top: 2px; - } + border-radius: 8px; + height: 50px; + line-height: 50px; + font-weight: bold; + color: #fff; + font-size: 16px; + text-align: center; +} + +.sQrBtn2 img { + width: 23px; + margin-right: 10px; + position: relative; + top: 2px; +} .sQrType3 .sQrTypePhoto { - border: 4px solid #CC0000; - border-radius: 4px; - width: 85px; - margin: -30px 10px -30px 0; - background: #fff; + border: 4px solid #CC0000; + border-radius: 4px; + width: 85px; + margin: -30px 10px -30px 0; + background: #fff; } .sQrTypePhoto div { - height: 0; - overflow: hidden; - padding-bottom: 139.516129%; - line-height: 0; + height: 0; + overflow: hidden; + padding-bottom: 139.516129%; + line-height: 0; } .sQrTypePhoto img { - width: 100%; + width: 100%; } diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StudentQRCode/AbNormalWeak/AbNormalWeak.css b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StudentQRCode/AbNormalWeak/AbNormalWeak.css index 03f57ea17..1ed8ff0c7 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StudentQRCode/AbNormalWeak/AbNormalWeak.css +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StudentQRCode/AbNormalWeak/AbNormalWeak.css @@ -1,149 +1,149 @@ -#sQrCode { - height: 100%; - background-color: #EEF2F3; - padding-bottom: 30px; +#sQrCode { + height: 100%; + background-color: #EEF2F3; + padding-bottom: 30px; } .sQrLogo { - background-image: url(images/xcBg.jpg); - background-size: 100% 100%; - text-align: center; - line-height: 0; - padding: 20px 0 70px; + background-image: url(images/xcBg.jpg); + background-size: 100% 100%; + text-align: center; + line-height: 0; + padding: 20px 0 70px; } .sQrLogoImg1 img { - width: 20%; + width: 20%; } .sQrLogoImg1 { - margin-bottom: 10px; + margin-bottom: 10px; } .sQrLogoImg2 img { - width: 50%; + width: 50%; } .sQrBox { - margin: -50px 20px 0; - background-color: #fff; - padding: 30px 38px; - border-radius: 10px; - -webkit-box-shadow: 0 4px 10px rgba(0, 0, 0, .1); - -moz-box-shadow: 0 4px 10px rgba(0, 0, 0, .1); - box-shadow: 0 4px 10px rgba(0, 0, 0, .1); - /* overflow: hidden; */ + margin: -50px 20px 0; + background-color: #fff; + padding: 30px 38px; + border-radius: 10px; + -webkit-box-shadow: 0 4px 10px rgba(0, 0, 0, .1); + -moz-box-shadow: 0 4px 10px rgba(0, 0, 0, .1); + box-shadow: 0 4px 10px rgba(0, 0, 0, .1); + /* overflow: hidden; */ } .sQrT2 { - font-weight: bold; - text-align: center; - font-size: 24px; - margin-bottom: 20px; - color: #F8B500; + font-weight: bold; + text-align: center; + font-size: 24px; + margin-bottom: 20px; + color: #F8B500; } .sQrList { - background-color: #F8F8F8; - margin: 0 10px; - padding: 10px 30px; - border-radius: 4px + background-color: #F8F8F8; + margin: 0 10px; + padding: 10px 30px; + border-radius: 4px } - .sQrList div { - padding: 7px 10px; - font-size: 14px; - color: #000; - border-top: 1px solid #D7D7D7; - } +.sQrList div { + padding: 7px 10px; + font-size: 14px; + color: #000; + border-top: 1px solid #D7D7D7; +} - .sQrList div:first-child { - border: 0; - } +.sQrList div:first-child { + border: 0; +} - .sQrList div span { - color: #AEAEAE; - margin-right: 10px; - } +.sQrList div span { + color: #AEAEAE; + margin-right: 10px; +} .sQrType2 { - background-color: #F8B500; - padding: 20px 0; - text-align: center; - color: #fff; - margin: 30px -38px -30px; - border-radius: 0 0 10px 10px; + background-color: #F8B500; + padding: 20px 0; + text-align: center; + color: #fff; + margin: 30px -38px -30px; + border-radius: 0 0 10px 10px; } - .sQrType2 > * { - display: inline-block; - vertical-align: middle; - text-align: left; - } +.sQrType2>* { + display: inline-block; + vertical-align: middle; + text-align: left; +} .sQrTypeT { - font-size: 14px; + font-size: 14px; } .sQrTypeTxt { - font-size: 24px; - font-weight: bold; - margin-top: 3px; + font-size: 24px; + font-weight: bold; + margin-top: 3px; } .sQrTypeImg { - margin-left: 15px; - width: 43px; - line-height: 0; + margin-left: 15px; + width: 43px; + line-height: 0; } - .sQrTypeImg img { - width: 100%; - } +.sQrTypeImg img { + width: 100%; +} .sQrTxt1 { - margin: 30px 50px 20px; - font-size: 14px; - color: #AEAEAE; + margin: 30px 50px 20px; + font-size: 14px; + color: #AEAEAE; } .sQrBtn3 { - margin: 20px 20px 0; - background-color: #CED0D0; - /* -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, .1); + margin: 20px 20px 0; + background-color: #CED0D0; + /* -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, .1); -moz-box-shadow: 0 0 10px rgba(0, 0, 0, .1); box-shadow: 0 0 10px rgba(0, 0, 0, .1); */ - border-radius: 8px; - height: 50px; - line-height: 50px; - font-weight: bold; - color: #fff; - font-size: 16px; - text-align: center; -} - - .sQrBtn3 img { - width: 23px; - margin-right: 10px; - position: relative; - top: 2px; - } + border-radius: 8px; + height: 50px; + line-height: 50px; + font-weight: bold; + color: #fff; + font-size: 16px; + text-align: center; +} + +.sQrBtn3 img { + width: 23px; + margin-right: 10px; + position: relative; + top: 2px; +} .sQrType2 .sQrTypePhoto { - border: 4px solid #F8B500; - border-radius: 4px; - width: 85px; - margin: -30px 10px -30px 0; - background: #fff; + border: 4px solid #F8B500; + border-radius: 4px; + width: 85px; + margin: -30px 10px -30px 0; + background: #fff; } .sQrTypePhoto div { - height: 0; - overflow: hidden; - padding-bottom: 139.516129%; - line-height: 0; + height: 0; + overflow: hidden; + padding-bottom: 139.516129%; + line-height: 0; } .sQrTypePhoto img { - width: 100%; + width: 100%; } diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StudentQRCode/AbNormalWeak/AbNormalWeak.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StudentQRCode/AbNormalWeak/AbNormalWeak.js index 43251ef68..f22754d14 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StudentQRCode/AbNormalWeak/AbNormalWeak.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StudentQRCode/AbNormalWeak/AbNormalWeak.js @@ -1,4 +1,4 @@ -(function () { +(function () { var $header = null; var stuNo = ''; var page = { @@ -7,7 +7,7 @@ stuNo = param.stuNo; // 添加头部按钮列表 $header = $page.parents('.f-page').find('.f-page-header'); - learun.httpget(config.webapi + 'learun/EducationalAdministration/StuInfoBasic/stuinfoDetail',stuNo, function (data) { + learun.httpget(config.webapi + 'learun/adms/EducationalAdministration/StuInfoBasic/stuinfoDetail',stuNo, function (data) { console.log(data); $('.sQrList div strong').eq(0).html(data.stuInfo.StuName); $('.sQrList div strong').eq(1).html(data.majorInfo.MajorName); @@ -19,7 +19,6 @@ $('.sQrTypePhoto img').attr('src', config.web + data.stuInfo.Photo); } else { if (data.stuInfo.GenderNo) { - $('.sQrTypePhoto img').attr('src', '/images/on-boy.jpg'); } else { diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StudentQRCode/Normal/Normal.css b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StudentQRCode/Normal/Normal.css index 8c274f680..4d6463f60 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StudentQRCode/Normal/Normal.css +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StudentQRCode/Normal/Normal.css @@ -1,149 +1,149 @@ -#sQrCode { - height: 100%; - background-color: #EEF2F3; - padding-bottom: 30px; +#sQrCode { + height: 100%; + background-color: #EEF2F3; + padding-bottom: 30px; } .sQrLogo { - background-image: url(images/xcBg.jpg); - background-size: 100% 100%; - text-align: center; - line-height: 0; - padding: 20px 0 70px; + background-image: url(images/xcBg.jpg); + background-size: 100% 100%; + text-align: center; + line-height: 0; + padding: 20px 0 70px; } .sQrLogoImg1 img { - width: 20%; + width: 20%; } .sQrLogoImg1 { - margin-bottom: 10px; + margin-bottom: 10px; } .sQrLogoImg2 img { - width: 50%; + width: 50%; } .sQrBox { - margin: -50px 20px 0; - background-color: #fff; - padding: 30px 38px; - border-radius: 10px; - -webkit-box-shadow: 0 4px 10px rgba(0, 0, 0, .1); - -moz-box-shadow: 0 4px 10px rgba(0, 0, 0, .1); - box-shadow: 0 4px 10px rgba(0, 0, 0, .1); - /* overflow: hidden; */ + margin: -50px 20px 0; + background-color: #fff; + padding: 30px 38px; + border-radius: 10px; + -webkit-box-shadow: 0 4px 10px rgba(0, 0, 0, .1); + -moz-box-shadow: 0 4px 10px rgba(0, 0, 0, .1); + box-shadow: 0 4px 10px rgba(0, 0, 0, .1); + /* overflow: hidden; */ } .sQrT2 { - font-weight: bold; - text-align: center; - font-size: 24px; - margin-bottom: 20px; - color: #21A737; + font-weight: bold; + text-align: center; + font-size: 24px; + margin-bottom: 20px; + color: #21A737; } .sQrList { - background-color: #F8F8F8; - margin: 0 10px; - padding: 10px 30px; - border-radius: 4px + background-color: #F8F8F8; + margin: 0 10px; + padding: 10px 30px; + border-radius: 4px } - .sQrList div { - padding: 7px 10px; - font-size: 14px; - color: #000; - border-top: 1px solid #D7D7D7; - } +.sQrList div { + padding: 7px 10px; + font-size: 14px; + color: #000; + border-top: 1px solid #D7D7D7; +} - .sQrList div:first-child { - border: 0; - } +.sQrList div:first-child { + border: 0; +} - .sQrList div span { - color: #AEAEAE; - margin-right: 10px; - } +.sQrList div span { + color: #AEAEAE; + margin-right: 10px; +} .sQrType1 { - background-color: #21A737; - padding: 20px 0; - text-align: center; - color: #fff; - margin: 30px -38px -30px; - border-radius: 0 0 10px 10px; + background-color: #21A737; + padding: 20px 0; + text-align: center; + color: #fff; + margin: 30px -38px -30px; + border-radius: 0 0 10px 10px; } - .sQrType1 > * { - display: inline-block; - vertical-align: middle; - text-align: left; - } +.sQrType1>* { + display: inline-block; + vertical-align: middle; + text-align: left; +} .sQrTypeT { - font-size: 14px; + font-size: 14px; } .sQrTypeTxt { - font-size: 24px; - font-weight: bold; - margin-top: 3px; + font-size: 24px; + font-weight: bold; + margin-top: 3px; } .sQrTypeImg { - margin-left: 15px; - width: 43px; - line-height: 0; + margin-left: 15px; + width: 43px; + line-height: 0; } - .sQrTypeImg img { - width: 100%; - } +.sQrTypeImg img { + width: 100%; +} .sQrTxt1 { - margin: 30px 50px 20px; - font-size: 14px; - color: #AEAEAE; + margin: 30px 50px 20px; + font-size: 14px; + color: #AEAEAE; } .sQrBtn1 { - margin: 20px 20px 0; - background-color: #fff; - -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, .1); - -moz-box-shadow: 0 0 10px rgba(0, 0, 0, .1); - box-shadow: 0 0 10px rgba(0, 0, 0, .1); - border-radius: 8px; - height: 50px; - line-height: 50px; - font-weight: bold; - color: #339933; - font-size: 16px; - text-align: center; -} - - .sQrBtn1 img { - width: 23px; - margin-right: 10px; - position: relative; - top: 2px; - } + margin: 20px 20px 0; + background-color: #fff; + -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, .1); + -moz-box-shadow: 0 0 10px rgba(0, 0, 0, .1); + box-shadow: 0 0 10px rgba(0, 0, 0, .1); + border-radius: 8px; + height: 50px; + line-height: 50px; + font-weight: bold; + color: #339933; + font-size: 16px; + text-align: center; +} + +.sQrBtn1 img { + width: 23px; + margin-right: 10px; + position: relative; + top: 2px; +} .sQrType1 .sQrTypePhoto { - border: 4px solid #21A737; - border-radius: 4px; - width: 85px; - margin: -30px 10px -30px 0; - background: #fff; + border: 4px solid #21A737; + border-radius: 4px; + width: 85px; + margin: -30px 10px -30px 0; + background: #fff; } .sQrTypePhoto div { - height: 0; - overflow: hidden; - padding-bottom: 139.516129%; - line-height: 0; + height: 0; + overflow: hidden; + padding-bottom: 139.516129%; + line-height: 0; } .sQrTypePhoto img { - width: 100%; + width: 100%; } diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StudentQRCode/StudentQRCode.html b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StudentQRCode/StudentQRCode.html index 0a3e48a65..080caba4a 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StudentQRCode/StudentQRCode.html +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StudentQRCode/StudentQRCode.html @@ -1,11 +1,6 @@ -
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StudentQRCode/StudentQRCode.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StudentQRCode/StudentQRCode.js index a0f88bff7..8cf9a80cf 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StudentQRCode/StudentQRCode.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StudentQRCode/StudentQRCode.js @@ -1,4 +1,4 @@ -(function () { +(function () { var keyValue = ''; var $header = null; var page = { @@ -22,18 +22,18 @@ var logininfo = learun.storage.get('userinfo'); //learun.httpget(config.webapi + 'learun/EducationalAdministration/StuInfoBasic/stuinfoDetail',logininfo.baseinfo.account, function (data) { - ////learun.httpget(config.webapi + 'learun/EducationalAdministration/StuInfoBasic/stuinfoDetail','2018010108', function (data) { - // console.log(data); - // $('.sQrList div strong').eq(0).html(data.stuInfo.StuName); - // $('.sQrList div strong').eq(1).html(data.majorInfo.MajorName); - // $('.sQrList div strong').eq(2).html(data.classInfo.ClassName); - // $('.sQrList div strong').eq(3).html(data.stuInfo.StuNo); - // $('.sQrList div strong').eq(4).html(data.roomInfo); - // //$('.sQrList div strong').eq(4).html(data.stuInfo.Photo); //学生照片 + learun.httpget(config.webapi + 'learun/adms/EducationalAdministration/StuInfoBasic/stuinfoDetail','2018010108', function (data) { + console.log(data); + $('.sQrList div strong').eq(0).html(data.stuInfo.StuName); + $('.sQrList div strong').eq(1).html(data.majorInfo.MajorName); + $('.sQrList div strong').eq(2).html(data.classInfo.ClassName); + $('.sQrList div strong').eq(3).html(data.stuInfo.StuNo); + $('.sQrList div strong').eq(4).html(data.roomInfo); + //$('.sQrList div strong').eq(4).html(data.stuInfo.Photo); //学生照片 - // learun.code.encode({ id: 'lr_mycode_qrcode', text: data.stuInfo.StuNo }); - //}) - learun.code.encode({ id: 'lr_mycode_qrcode', text: '2019010211' }); + learun.code.encode({ id: 'lr_mycode_qrcode', text: data.stuInfo.StuNo }); + }) + //learun.code.encode({ id: 'lr_mycode_qrcode', text: '2019010211' }); }, bind: function ($page, param) { diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_ReceiveComplaint/Sys_ReceiveComplaint.css b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_ReceiveComplaint/Sys_ReceiveComplaint.css new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_ReceiveComplaint/Sys_ReceiveComplaint.css @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_ReceiveComplaint/Sys_ReceiveComplaint.html b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_ReceiveComplaint/Sys_ReceiveComplaint.html new file mode 100644 index 000000000..b33844114 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_ReceiveComplaint/Sys_ReceiveComplaint.html @@ -0,0 +1,23 @@ +
+
+
+ 总共0条 +
+
+ + +
+
+
+ +
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_ReceiveComplaint/Sys_ReceiveComplaint.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_ReceiveComplaint/Sys_ReceiveComplaint.js new file mode 100644 index 000000000..b839297d1 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_ReceiveComplaint/Sys_ReceiveComplaint.js @@ -0,0 +1,129 @@ +/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) + * Copyright (c) 2013-2018 北京泉江科技有限公司 + * 创建人:超级管理员 + * 日 期:2021-04-30 16:33 + * 描 述:接收投诉意见 + */ +(function () { + var begin = ''; + var end = ''; + var multipleData = null; + var page = { + grid: null, + init: function ($page) { + begin = ''; + end = ''; + multipleData = null; + page.grid = $page.find('#lr_EducationalAdministrationSys_ReceiveComplaint_list').lrpagination({ + lclass: page.lclass, + rows: 10, // 每页行数 + getData: function (param, callback) {// 获取数据 param 分页参数,callback 异步回调 + param.begin = begin; + param.end = end; + param.multipleData = multipleData; + page.loadData(param, callback, $page); + }, + renderData: function (_index, _item, _$item) {// 渲染数据模板 + return page.rowRender(_index, _item, _$item, $page); + }, + click: function (item, $item, $et) {// 列表行点击事件 + if ($et.hasClass('lr-btn-danger')) { + page.btnClick(item, $item, $page); + } + else { + page.rowClick(item, $item, $page); + } + }, + btns: page.rowBtns + }); + // 时间搜索 + $page.find('.lr_time_search').searchdate({ + callback: function (_begin, _end) { + begin = _begin; + end = _end; + multipleData = null; + page.grid.reload(); + } + }); + // 多条件查询 + var $multiple = $page.find('.lr_multiple_search').multiplequery({ + callback: function (data) { + begin = ''; + end = ''; + multipleData = data || {}; + page.grid.reload(); + } + }); + }, + lclass: 'lr-list', + loadData: function (param, callback, $page) {// 列表加载后台数据 + var _postParam = { + pagination: { + rows: param.rows, + page: param.page, + sidx: 'SendTime desc', + sord: 'DESC' + }, + queryJson: JSON.stringify({ ReceiverId: learun.storage.get('userinfo').baseinfo.userId }) + + }; + if (param.multipleData) { + multipleData.ReceiverId = learun.storage.get('userinfo').baseinfo.userId; + _postParam.queryJson = JSON.stringify(multipleData); + } + if (param.begin && param.end) { + _postParam.queryJson = JSON.stringify({ StartTime: param.begin, EndTime: param.end, ReceiverId: learun.storage.get('userinfo').baseinfo.userId }); + } + learun.httpget(config.webapi + 'learun/adms/EducationalAdministration/Sys_ReceiveComplaint/pagelist', _postParam, (data) => { + $page.find('.lr-badge').text('0'); + if (data) { + $page.find('.lr-badge').text(data.records); + callback(data.rows, parseInt(data.records)); + } + else { + callback([], 0); + } + }); + }, + rowRender: function (_index, _item, _$item, $page) {// 渲染列表行数据 + _$item.addClass('lr-list-item lr-list-item-multi'); + _$item.append($('

投诉编号:

').dataFormatter({ value: _item.ComplaintCode })); + _$item.append($('

主题:

').dataFormatter({ value: _item.Title })); + _$item.append($('

指派人:

').dataFormatter({ value: _item.Sender })); + _$item.append($('

指派时间:

').dataFormatter({ + value: _item.SendTime, + type: 'datetime', + dateformat: 'yyyy-MM-dd hh:mm:ss' + })); + _$item.append($('

回复状态:

').dataFormatter({ value: _item.ReplyFlag == 1 ? "已回复" : "未回复" })); + _$item.append($('

回复时间:

').dataFormatter({ + value: _item.ReplyTime, + type: 'datetime', + dateformat: 'yyyy-MM-dd hh:mm:ss' + })); + return ''; + }, + rowClick: function (item, $item, $page) {// 列表行点击触发方法 + learun.nav.go({ path: 'EducationalAdministration/Sys_ReceiveComplaint/form', title: '详情', type: 'right', param: { keyValue: item.RComplaintId, ReplyFlag: item.ReplyFlag } }); + }, + btnClick: function (item, $item, $page) {// 左滑按钮点击事件 + if (item.ReplyFlag !== 1) { + learun.layer.warning("当前投诉意见未回复,无法删除!"); + return false; + } + learun.layer.confirm('确定要删除该笔数据吗?', function (_index) { + if (_index === '1') { + learun.layer.loading(true, '正在删除该笔数据'); + learun.httppost(config.webapi + 'learun/adms/EducationalAdministration/Sys_ReceiveComplaint/delete', item.RComplaintId, (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/Sys_ReceiveComplaint/form/form.css b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_ReceiveComplaint/form/form.css new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_ReceiveComplaint/form/form.css @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_ReceiveComplaint/form/form.html b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_ReceiveComplaint/form/form.html new file mode 100644 index 000000000..b821b2cf9 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_ReceiveComplaint/form/form.html @@ -0,0 +1,17 @@ +
+
+ * + + +
+
+ * + + +
+
+ * + + +
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_ReceiveComplaint/form/form.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_ReceiveComplaint/form/form.js new file mode 100644 index 000000000..c0db12e83 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_ReceiveComplaint/form/form.js @@ -0,0 +1,154 @@ +/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) + * Copyright (c) 2013-2018 北京泉江科技有限公司 + * 创建人:超级管理员 + * 日 期:2021-04-30 16:33 + * 描 述:接收投诉意见 + */ +(function () { + var keyValue = ''; + var ReplyFlag = '';//回复状态 + var $header = null; + var titleText = ''; + var page = { + isScroll: true, + init: function ($page, param) { + keyValue = param.keyValue; + ReplyFlag = param.ReplyFlag; + // 添加头部按钮列表 + var _html = '\ +
取消
\ +
\ +
\ +
\ +
\ +
提交
'; + $header = $page.parents('.f-page').find('.f-page-header'); + $header.append(_html); + // 取消 + $header.find('.lr-form-header-cancel').on('tap', function () { + learun.layer.confirm('确定要退出当前编辑?', function (_index) { + if (_index === '1') { + if (keyValue) {// 如果是编辑状态 + learun.formblur(); + $header.find('.lr-form-header-cancel').hide(); + $header.find('.lr-form-header-submit').hide(); + $header.find('.lr-form-header-btnlist').show(); + $header.find('.f-page-title').text(titleText); + $page.find('.lr-form-container').setFormRead(); + } + else {// 如果是新增状态 关闭当前页面 + learun.nav.closeCurrent(); + } + } + }, '智慧校园提示', ['取消', '确定']); + }); + // 编辑 + $header.find('.lr-form-header-edit').on('tap', function () { + if (keyValue) { + if (ReplyFlag !== 0) { + learun.layer.warning("当前投诉意见已回复!"); + return false; + } + } + $header.find('.lr-form-header-btnlist').hide(); + $header.find('.lr-form-header-cancel').show(); + $header.find('.lr-form-header-submit').show(); + titleText = $header.find('.f-page-title').text(); + $header.find('.f-page-title').text('编辑'); + $page.find('.lr-form-container').setFormWrite(); + }); + // 更多 + $header.find('.lr-form-header-more').on('tap', function () { + learun.actionsheet({ + id: 'more', + data: [ + { + text: '删除', + mark: true, + event: function () {// 删除当前条信息 + learun.layer.confirm('确定要删除该笔数据吗?', function (_index) { + if (_index === '1') { + learun.layer.loading(true, '正在删除该笔数据'); + learun.httppost(config.webapi + 'learun/adms/EducationalAdministration/Sys_ReceiveComplaint/delete', keyValue, (data) => { + learun.layer.loading(false); + if (data) {// 删除数据成功 + learun.nav.closeCurrent(); + var prepage = learun.nav.getpage('EducationalAdministration/Sys_ReceiveComplaint'); + prepage.grid.reload(); + } + }); + } + }, '智慧校园提示', ['取消', '确定']); + } + } + ], + cancel: function () { + } + }); + }); + // 提交 + $header.find('.lr-form-header-submit').on('tap', function () { + // 获取表单数据 + if (!$page.find('.lr-form-container').lrformValid()) { + return false; + } + var _postData = {} + _postData.keyValue = keyValue; + _postData.strEntity = JSON.stringify($page.find('.lr-form-container').lrformGet()); + learun.layer.loading(true, '正在提交数据'); + learun.httppost(config.webapi + 'learun/adms/EducationalAdministration/Sys_ReceiveComplaint/save', _postData, (data) => { + learun.layer.loading(false); + if (data) {// 表单数据保存成功 + if (keyValue) { + learun.layer.toast('保存数据成功!'); + learun.formblur(); + $header.find('.lr-form-header-cancel').hide(); + $header.find('.lr-form-header-submit').hide(); + $header.find('.lr-form-header-btnlist').show(); + $header.find('.f-page-title').text(titleText); + $page.find('.lr-form-container').setFormRead(); + } + else {// 如果是 + learun.nav.closeCurrent(); + } + var prepage = learun.nav.getpage('EducationalAdministration/Sys_ReceiveComplaint'); + prepage.grid.reload(); + } + }); + }); + page.bind($page, param); + if (keyValue) { + // 添加编辑按钮 + $page.find('.lr-form-container').setFormRead(); + $header.find('.lr-form-header-btnlist').show(); + // 获取表单数据 + learun.layer.loading(true, '获取表单数据'); + learun.httpget(config.webapi + 'learun/adms/EducationalAdministration/Sys_ReceiveComplaint/form', keyValue, (data) => { + if (data) { + for (var id in data) { + if (data[id].length) { + $page.find('#' + id).lrgridSet(data[id]); + } + else { + $page.find('[data-table="' + id + '"]').lrformSet(data[id]); + } + } + } + learun.layer.loading(false); + }); + } + else { + $header.find('.lr-form-header-cancel').show(); + $header.find('.lr-form-header-submit').show(); + } + }, + bind: function ($page, param) { + + }, destroy: function (pageinfo) { + $header = null; + keyValue = ''; + } + }; + return page; +})(); + diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/Assign/Assign.css b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/Assign/Assign.css new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/Assign/Assign.css @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/Assign/Assign.html b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/Assign/Assign.html new file mode 100644 index 000000000..83056d346 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/Assign/Assign.html @@ -0,0 +1,27 @@ +
+
+
+ 总共0条 +
+
+ + +
+
+
+ +
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/Assign/Assign.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/Assign/Assign.js new file mode 100644 index 000000000..4266ab518 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/Assign/Assign.js @@ -0,0 +1,121 @@ +/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) + * Copyright (c) 2013-2018 北京泉江科技有限公司 + * 创建人:超级管理员 + * 日 期:2021-04-30 16:33 + * 描 述:发送投诉意见 + */ +(function () { + var begin = ''; + var end = ''; + var multipleData = null; + var page = { + grid: null, + init: function ($page) { + begin = ''; + end = ''; + multipleData = null; + page.grid = $page.find('#lr_EducationalAdministrationSys_SendComplaintAssign_list').lrpagination({ + lclass: page.lclass, + rows: 10, // 每页行数 + getData: function (param, callback) {// 获取数据 param 分页参数,callback 异步回调 + param.begin = begin; + param.end = end; + param.multipleData = multipleData; + page.loadData(param, callback, $page); + }, + renderData: function (_index, _item, _$item) {// 渲染数据模板 + return page.rowRender(_index, _item, _$item, $page); + }, + click: function (item, $item, $et) {// 列表行点击事件 + if ($et.hasClass('lr-btn-danger')) { + //page.btnClick(item, $item, $page); + } + else { + page.rowClick(item, $item, $page); + } + }, + btns: page.rowBtns + }); + // 时间搜索 + $page.find('.lr_time_search').searchdate({ + callback: function (_begin, _end) { + begin = _begin; + end = _end; + multipleData = null; + page.grid.reload(); + } + }); + // 多条件查询 + var $multiple = $page.find('.lr_multiple_search').multiplequery({ + callback: function (data) { + begin = ''; + end = ''; + multipleData = data || {}; + page.grid.reload(); + } + }); + }, + lclass: 'lr-list', + loadData: function (param, callback, $page) {// 列表加载后台数据 + var _postParam = { + pagination: { + rows: param.rows, + page: param.page, + sidx: 'SendTime desc', + sord: 'DESC' + }, + queryJson: JSON.stringify({ SendFlag: "1" }) + + }; + if (param.multipleData) { + multipleData.SendFlag = "1"; + _postParam.queryJson = JSON.stringify(multipleData); + } + if (param.begin && param.end) { + _postParam.queryJson = JSON.stringify({ StartTime: param.begin, EndTime: param.end, SendFlag: "1" }); + } + learun.httpget(config.webapi + 'learun/adms/EducationalAdministration/Sys_SendComplaint/pagelist', _postParam, (data) => { + $page.find('.lr-badge').text('0'); + if (data) { + $page.find('.lr-badge').text(data.records); + callback(data.rows, parseInt(data.records)); + } + else { + callback([], 0); + } + }); + }, + rowRender: function (_index, _item, _$item, $page) {// 渲染列表行数据 + _$item.addClass('lr-list-item lr-list-item-multi'); + _$item.append($('

投诉编号:

').dataFormatter({ value: _item.ComplaintCode })); + _$item.append($('

主题:

').dataFormatter({ value: _item.Title })); + _$item.append($('

投诉人:

').dataFormatter({ value: _item.CreateUserName })); + _$item.append($('

指派状态:

').dataFormatter({ value: _item.AssignFlag == 1 ? "已指派" : "未指派" })); + _$item.append($('

指派时间:

').dataFormatter({ + value: _item.AssignTime, + type: 'datetime', + dateformat: 'yyyy-MM-dd hh:mm:ss' + })); + _$item.append($('

接收人:

').dataFormatter({ value: _item.Receiver })); + return ''; + }, + rowClick: function (item, $item, $page) {// 列表行点击触发方法 + learun.nav.go({ path: 'EducationalAdministration/Sys_SendComplaint/Assign/form', title: '详情', type: 'right', param: { keyValue: item.SComplaintId, AssignFlag: item.AssignFlag } }); + }, + //btnClick: function (item, $item, $page) {// 左滑按钮点击事件 + // learun.layer.confirm('确定要删除该笔数据吗?', function (_index) { + // if (_index === '1') { + // learun.layer.loading(true, '正在删除该笔数据'); + // learun.httppost(config.webapi + 'learun/adms/EducationalAdministration/Sys_SendComplaint/delete', item.SComplaintId, (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/Sys_SendComplaint/Assign/form/form.css b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/Assign/form/form.css new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/Assign/form/form.css @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/Assign/form/form.html b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/Assign/form/form.html new file mode 100644 index 000000000..f1d467e3c --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/Assign/form/form.html @@ -0,0 +1,22 @@ +
+
+ * + + +
+
+ * + + +
+
+ * + + +
+
+ * + +
+
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/Assign/form/form.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/Assign/form/form.js new file mode 100644 index 000000000..87e4e26a0 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/Assign/form/form.js @@ -0,0 +1,159 @@ +/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) + * Copyright (c) 2013-2018 北京泉江科技有限公司 + * 创建人:超级管理员 + * 日 期:2021-04-30 16:33 + * 描 述:发送投诉意见 + */ +(function () { + var keyValue = ''; + var AssignFlag = '';//指派状态 + var $header = null; + var titleText = ''; + var page = { + isScroll: true, + init: function ($page, param) { + keyValue = param.keyValue; + AssignFlag = param.AssignFlag; + // 添加头部按钮列表 + var _html = '\ +
取消
\ +
\ +
\ +
\ +
\ +
提交
'; + $header = $page.parents('.f-page').find('.f-page-header'); + $header.append(_html); + // 取消 + $header.find('.lr-form-header-cancel').on('tap', function () { + learun.layer.confirm('确定要退出当前编辑?', function (_index) { + if (_index === '1') { + if (keyValue) {// 如果是编辑状态 + learun.formblur(); + $header.find('.lr-form-header-cancel').hide(); + $header.find('.lr-form-header-submit').hide(); + $header.find('.lr-form-header-btnlist').show(); + $header.find('.f-page-title').text(titleText); + $page.find('.lr-form-container').setFormRead(); + } + else {// 如果是新增状态 关闭当前页面 + learun.nav.closeCurrent(); + } + } + }, '智慧校园提示', ['取消', '确定']); + }); + // 编辑 + $header.find('.lr-form-header-edit').on('tap', function () { + if (keyValue) { + if (AssignFlag !== 0) { + learun.layer.warning("当前投诉意见已指派!"); + return false; + } + } + $header.find('.lr-form-header-btnlist').hide(); + $header.find('.lr-form-header-cancel').show(); + $header.find('.lr-form-header-submit').show(); + titleText = $header.find('.f-page-title').text(); + $header.find('.f-page-title').text('编辑'); + $page.find('.lr-form-container').setFormWrite(); + }); + // 更多 + $header.find('.lr-form-header-more').on('tap', function () { + learun.actionsheet({ + id: 'more', + data: [ + //{ + // text: '删除', + // mark: true, + // event: function () {// 删除当前条信息 + // learun.layer.confirm('确定要删除该笔数据吗?', function (_index) { + // if (_index === '1') { + // learun.layer.loading(true, '正在删除该笔数据'); + // learun.httppost(config.webapi + 'learun/adms/EducationalAdministration/Sys_SendComplaint/delete', keyValue, (data) => { + // learun.layer.loading(false); + // if (data) {// 删除数据成功 + // learun.nav.closeCurrent(); + // var prepage = learun.nav.getpage('EducationalAdministration/Sys_SendComplaint'); + // prepage.grid.reload(); + // } + // }); + // } + // }, '智慧校园提示', ['取消', '确定']); + // } + //} + ], + cancel: function () { + } + }); + }); + // 提交 + $header.find('.lr-form-header-submit').on('tap', function () { + // 获取表单数据 + if (!$page.find('.lr-form-container').lrformValid()) { + return false; + } + var formData = $page.find('.lr-form-container').lrformGet(); + formData.Receiver = $page.find("#ReceiverUserId").find("div").text(); + var _postData = {} + _postData.keyValue = keyValue; + _postData.strEntity = JSON.stringify(formData); + learun.layer.loading(true, '正在提交数据'); + learun.httppost(config.webapi + 'learun/adms/EducationalAdministration/Sys_SendComplaint/saveAssign', _postData, (data) => { + learun.layer.loading(false); + if (data) {// 表单数据保存成功 + if (keyValue) { + learun.layer.toast('保存数据成功!'); + learun.formblur(); + $header.find('.lr-form-header-cancel').hide(); + $header.find('.lr-form-header-submit').hide(); + $header.find('.lr-form-header-btnlist').show(); + $header.find('.f-page-title').text(titleText); + $page.find('.lr-form-container').setFormRead(); + } + else {// 如果是 + learun.nav.closeCurrent(); + } + var prepage = learun.nav.getpage('EducationalAdministration/Sys_SendComplaint/Assign'); + prepage.grid.reload(); + } + }); + }); + page.bind($page, param); + if (keyValue) { + // 添加编辑按钮 + $page.find('.lr-form-container').setFormRead(); + $header.find('.lr-form-header-btnlist').show(); + // 获取表单数据 + learun.layer.loading(true, '获取表单数据'); + learun.httpget(config.webapi + 'learun/adms/EducationalAdministration/Sys_SendComplaint/form', keyValue, (data) => { + if (data) { + for (var id in data) { + if (data[id].length) { + $page.find('#' + id).lrgridSet(data[id]); + } + else { + $page.find('[data-table="' + id + '"]').lrformSet(data[id]); + } + } + } + learun.layer.loading(false); + }); + } + else { + $header.find('.lr-form-header-cancel').show(); + $header.find('.lr-form-header-submit').show(); + } + }, + bind: function ($page, param) { + $page.find('#ReceiverUserId').lrselect({ + type: 'user', + needPre: false + }); + }, destroy: function (pageinfo) { + $header = null; + keyValue = ''; + } + }; + return page; +})(); + diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/Sys_SendComplaint.css b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/Sys_SendComplaint.css new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/Sys_SendComplaint.css @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/Sys_SendComplaint.html b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/Sys_SendComplaint.html new file mode 100644 index 000000000..948db718e --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/Sys_SendComplaint.html @@ -0,0 +1,29 @@ +
+
+
+ 总共0条 +
+
+ + +
+
+
+
+ +
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/Sys_SendComplaint.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/Sys_SendComplaint.js new file mode 100644 index 000000000..e4f758a97 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/Sys_SendComplaint.js @@ -0,0 +1,165 @@ +/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) + * Copyright (c) 2013-2018 北京泉江科技有限公司 + * 创建人:超级管理员 + * 日 期:2021-04-30 16:33 + * 描 述:发送投诉意见 + */ +(function () { + var begin = ''; + var end = ''; + var multipleData = null; + var page = { + grid: null, + init: function ($page) { + begin = ''; + end = ''; + multipleData = null; + page.grid = $page.find('#lr_EducationalAdministrationSys_SendComplaint_list').lrpagination({ + lclass: page.lclass, + rows: 10, // 每页行数 + getData: function (param, callback) {// 获取数据 param 分页参数,callback 异步回调 + param.begin = begin; + param.end = end; + param.multipleData = multipleData; + page.loadData(param, callback, $page); + }, + renderData: function (_index, _item, _$item) {// 渲染数据模板 + return page.rowRender(_index, _item, _$item, $page); + }, + click: function (item, $item, $et) {// 列表行点击事件 + if ($et.hasClass('lr-btn-danger')) {//删除 + page.btnClick(item, $item, $page); + } + else if ($et.hasClass('lr-btn-blue')) {//提交 + page.btnClickOfSubmit(item, $item, $page); + } + else if ($et.hasClass('lr-btn-green')) {//回复情况 + page.btnClickOfReply(item, $item, $page); + } + else { + page.rowClick(item, $item, $page); + } + }, + btns: page.rowBtns + }); + // 时间搜索 + $page.find('.lr_time_search').searchdate({ + callback: function (_begin, _end) { + begin = _begin; + end = _end; + multipleData = null; + page.grid.reload(); + } + }); + // 多条件查询 + var $multiple = $page.find('.lr_multiple_search').multiplequery({ + callback: function (data) { + begin = ''; + end = ''; + multipleData = data || {}; + page.grid.reload(); + } + }); + $page.find('#lr_EducationalAdministrationSys_SendComplaint_btn').on('tap', function () { + learun.nav.go({ path: 'EducationalAdministration/Sys_SendComplaint/form', title: '新增', type: 'right' }); + }); + }, + lclass: 'lr-list', + loadData: function (param, callback, $page) {// 列表加载后台数据 + var _postParam = { + pagination: { + rows: param.rows, + page: param.page, + sidx: 'SendTime desc', + sord: 'DESC' + }, + queryJson: JSON.stringify({ CreateUserId: learun.storage.get('userinfo').baseinfo.userId }) + + }; + if (param.multipleData) { + multipleData.CreateUserId = learun.storage.get('userinfo').baseinfo.userId; + _postParam.queryJson = JSON.stringify(multipleData); + } + if (param.begin && param.end) { + _postParam.queryJson = JSON.stringify({ StartTime: param.begin, EndTime: param.end, CreateUserId: learun.storage.get('userinfo').baseinfo.userId }); + } + learun.httpget(config.webapi + 'learun/adms/EducationalAdministration/Sys_SendComplaint/pagelist', _postParam, (data) => { + $page.find('.lr-badge').text('0'); + if (data) { + $page.find('.lr-badge').text(data.records); + callback(data.rows, parseInt(data.records)); + } + else { + callback([], 0); + } + }); + }, + rowRender: function (_index, _item, _$item, $page) {// 渲染列表行数据 + _$item.addClass('lr-list-item lr-list-item-multi'); + _$item.append($('

投诉编号:

').dataFormatter({ value: _item.ComplaintCode })); + _$item.append($('

主题:

').dataFormatter({ value: _item.Title })); + _$item.append($('

提交状态:

').dataFormatter({ value: _item.SendFlag == 1 ? "已提交" : "草稿" })); + _$item.append($('

提交时间:

').dataFormatter({ + value: _item.SendTime, + type: 'datetime', + dateformat: 'yyyy-MM-dd hh:mm:ss' + })); + _$item.append($('

回复状态:

').dataFormatter({ value: _item.ReplyFlag == 1 ? "已回复" : "未回复" })); + return ''; + }, + rowClick: function (item, $item, $page) {// 列表行点击触发方法 + learun.nav.go({ path: 'EducationalAdministration/Sys_SendComplaint/form', title: '详情', type: 'right', param: { keyValue: item.SComplaintId, SendFlag: item.SendFlag } }); + }, + btnClick: function (item, $item, $page) {// 左滑按钮点击事件 + if (item.SendFlag !== 0) { + learun.layer.warning("当前投诉意见已提交,无法删除!"); + return false; + } + learun.layer.confirm('确定要删除该笔数据吗?', function (_index) { + if (_index === '1') { + learun.layer.loading(true, '正在删除该笔数据'); + learun.httppost(config.webapi + 'learun/adms/EducationalAdministration/Sys_SendComplaint/delete', item.SComplaintId, (data) => { + if (data) {// 删除数据成功 + page.grid.reload(); + } + learun.layer.loading(false); + }); + } + }, '智慧校园提示', ['取消', '确定']); + }, + btnClickOfSubmit: function (item, $item, $page) {// 左滑按钮点击事件 + if (item.SendFlag !== 0) { + learun.layer.warning("当前投诉意见已提交!"); + return false; + } + learun.layer.confirm('确定要提交该笔数据吗?', function (_index) { + if (_index === '1') { + learun.layer.loading(true, '正在提交该笔数据'); + learun.httppost(config.webapi + 'learun/adms/EducationalAdministration/Sys_SendComplaint/submit', item.SComplaintId, (data) => { + if (data) {// 提交数据成功 + page.grid.reload(); + } + learun.layer.loading(false); + }); + } + }, '智慧校园提示', ['取消', '确定']); + }, + btnClickOfReply: function (item, $item, $page) {// 左滑按钮点击事件 + if (item.SendFlag !== 1) { + learun.layer.warning("当前投诉意见未提交,请先提交!"); + return false; + } + if (item.ReplyFlag !== 1) { + learun.layer.warning("当前投诉意见未回复!"); + return false; + } + learun.nav.go({ path: 'EducationalAdministration/Sys_SendComplaint/reply', title: '回复情况', type: 'right', param: { keyValue: item.SComplaintId } }); + }, + rowBtns: [ + '删除', + '提交', + '回复情况' + ] // 列表行左滑按钮 + }; + return page; +})(); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/form/form.css b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/form/form.css new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/form/form.css @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/form/form.html b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/form/form.html new file mode 100644 index 000000000..6302b4f9b --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/form/form.html @@ -0,0 +1,17 @@ +
+
+ * + + +
+
+ * + + +
+
+ * + + +
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/form/form.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/form/form.js new file mode 100644 index 000000000..c2a2bd8b9 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/form/form.js @@ -0,0 +1,169 @@ +/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) + * Copyright (c) 2013-2018 北京泉江科技有限公司 + * 创建人:超级管理员 + * 日 期:2021-04-30 16:33 + * 描 述:发送投诉意见 + */ +(function () { + var keyValue = ''; + var SendFlag = '';//提交状态 + var $header = null; + var titleText = ''; + var page = { + isScroll: true, + init: function ($page, param) { + keyValue = param.keyValue; + SendFlag = param.SendFlag; + // 添加头部按钮列表 + var _html = '\ +
取消
\ +
\ +
\ +
\ +
\ +
提交
'; + $header = $page.parents('.f-page').find('.f-page-header'); + $header.append(_html); + // 取消 + $header.find('.lr-form-header-cancel').on('tap', function () { + learun.layer.confirm('确定要退出当前编辑?', function (_index) { + if (_index === '1') { + if (keyValue) {// 如果是编辑状态 + learun.formblur(); + $header.find('.lr-form-header-cancel').hide(); + $header.find('.lr-form-header-submit').hide(); + $header.find('.lr-form-header-btnlist').show(); + $header.find('.f-page-title').text(titleText); + $page.find('.lr-form-container').setFormRead(); + } + else {// 如果是新增状态 关闭当前页面 + learun.nav.closeCurrent(); + } + } + }, '智慧校园提示', ['取消', '确定']); + }); + // 编辑 + $header.find('.lr-form-header-edit').on('tap', function () { + if (keyValue) { + if (SendFlag !== 0) { + learun.layer.warning("当前投诉意见已提交,不能编辑!"); + return false; + } + } + $header.find('.lr-form-header-btnlist').hide(); + $header.find('.lr-form-header-cancel').show(); + $header.find('.lr-form-header-submit').show(); + titleText = $header.find('.f-page-title').text(); + $header.find('.f-page-title').text('编辑'); + $page.find('.lr-form-container').setFormWrite(); + }); + // 更多 + $header.find('.lr-form-header-more').on('tap', function () { + learun.actionsheet({ + id: 'more', + data: [ + { + text: '删除', + mark: true, + event: function () {// 删除当前条信息 + learun.layer.confirm('确定要删除该笔数据吗?', function (_index) { + if (_index === '1') { + learun.layer.loading(true, '正在删除该笔数据'); + learun.httppost(config.webapi + 'learun/adms/EducationalAdministration/Sys_SendComplaint/delete', keyValue, (data) => { + learun.layer.loading(false); + if (data) {// 删除数据成功 + learun.nav.closeCurrent(); + var prepage = learun.nav.getpage('EducationalAdministration/Sys_SendComplaint'); + prepage.grid.reload(); + } + }); + } + }, '智慧校园提示', ['取消', '确定']); + } + } + ], + cancel: function () { + } + }); + }); + // 提交 + $header.find('.lr-form-header-submit').on('tap', function () { + // 获取表单数据 + if (!$page.find('.lr-form-container').lrformValid()) { + return false; + } + var _postData = {} + _postData.keyValue = keyValue; + _postData.strEntity = JSON.stringify($page.find('.lr-form-container').lrformGet()); + learun.layer.loading(true, '正在提交数据'); + learun.httppost(config.webapi + 'learun/adms/EducationalAdministration/Sys_SendComplaint/save', _postData, (data) => { + learun.layer.loading(false); + if (data) {// 表单数据保存成功 + if (keyValue) { + learun.layer.toast('保存数据成功!'); + learun.formblur(); + $header.find('.lr-form-header-cancel').hide(); + $header.find('.lr-form-header-submit').hide(); + $header.find('.lr-form-header-btnlist').show(); + $header.find('.f-page-title').text(titleText); + $page.find('.lr-form-container').setFormRead(); + } + else {// 如果是 + learun.nav.closeCurrent(); + } + var prepage = learun.nav.getpage('EducationalAdministration/Sys_SendComplaint'); + prepage.grid.reload(); + } + }); + }); + page.bind($page, param); + if (keyValue) { + // 添加编辑按钮 + $page.find('.lr-form-container').setFormRead(); + $header.find('.lr-form-header-btnlist').show(); + // 获取表单数据 + learun.layer.loading(true, '获取表单数据'); + learun.httpget(config.webapi + 'learun/adms/EducationalAdministration/Sys_SendComplaint/form', keyValue, (data) => { + if (data) { + for (var id in data) { + if (data[id].length) { + $page.find('#' + id).lrgridSet(data[id]); + } + else { + $page.find('[data-table="' + id + '"]').lrformSet(data[id]); + } + } + } + learun.layer.loading(false); + }); + } + else { + $header.find('.lr-form-header-cancel').show(); + $header.find('.lr-form-header-submit').show(); + //获取投诉编号 + learun.httpget(config.webapi + 'learun/adms/EducationalAdministration/Sys_SendComplaint/complaintCode', "", (data) => { + if (data && data != "" && data != undefined) { + $page.find('#ComplaintCode').val(data); + } else { + $page.find('#ComplaintCode').val("TS_" + getCode()); + } + learun.layer.loading(false); + }); + } + }, + bind: function ($page, param) { + + }, destroy: function (pageinfo) { + $header = null; + keyValue = ''; + } + }; + return page; +})(); +//生成随机数 +var getCode = function () { + var a = parseInt(Math.random() * (10000 - 1000 + 1) + 1000); + var now = new Date(); + var b = now.getFullYear() + "" + ((now.getMonth() + 1) < 10 ? ("0" + (now.getMonth() + 1)) : (now.getMonth() + 1)) + "" + (now.getDate() < 10 ? ("0" + now.getDate()) : now.getDate()) + "" + (now.getHours() < 10 ? ("0" + now.getHours()) : now.getHours()) + "" + (now.getMinutes() < 10 ? ("0" + now.getMinutes()) : now.getMinutes()) + "" + (now.getSeconds() < 10 ? ("0" + now.getSeconds) : now.getSeconds()); + return b + a; +} diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/reply/reply.css b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/reply/reply.css new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/reply/reply.css @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/reply/reply.html b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/reply/reply.html new file mode 100644 index 000000000..9f7849708 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/reply/reply.html @@ -0,0 +1,6 @@ +
+ +
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/reply/reply.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/reply/reply.js new file mode 100644 index 000000000..d04ab42de --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/reply/reply.js @@ -0,0 +1,45 @@ +/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) + * Copyright (c) 2013-2018 北京泉江科技有限公司 + * 创建人:超级管理员 + * 日 期:2021-04-30 16:33 + * 描 述:发送投诉意见 + */ +(function () { + var keyValue = ''; + var $header = null; + var titleText = ''; + var page = { + isScroll: true, + init: function ($page, param) { + keyValue = param.keyValue; + page.bind($page, param); + if (keyValue) { + // 获取表单数据 + learun.layer.loading(true, '获取表单数据'); + learun.httpget(config.webapi + 'learun/adms/EducationalAdministration/Sys_SendComplaint/replylist', keyValue, (data) => { + if (data) { + var html = ''; + for (var id in data) { + for (var i = 0; i < data[id].length; i++) { + html += '
'; + html += ''; + html += ''; + html += '
'; + } + } + $page.find('#replyList').html(html); + } + learun.layer.loading(false); + }); + } + }, + bind: function ($page, param) { + + }, destroy: function (pageinfo) { + $header = null; + keyValue = ''; + } + }; + return page; +})(); + diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Thermography/Thermography.html b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Thermography/Thermography.html index 7a7efdade..9e3982c31 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Thermography/Thermography.html +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Thermography/Thermography.html @@ -1,7 +1,7 @@ -
+
- 总共0条 + 总共10