From ffb0e503413639d2a7f4fffa71716a14861a30ab Mon Sep 17 00:00:00 2001 From: "DESKTOP-ESU4BDD\\WeiZhiQiang" <598748873@qq.com> Date: Mon, 28 Aug 2023 10:43:28 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E7=A7=91=E7=9B=AE=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E6=89=98=E7=AE=A1=E5=88=B0=E8=A1=A8=E5=8D=95=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../schoolsubjectmationadd.js | 44 ------ .../schoolsubjectmationedit.js | 56 -------- .../schoolsubjectmationlist.js | 135 ------------------ .../schoolsubjectmationadd.html | 51 ------- .../schoolsubjectmationedit.html | 21 --- .../schoolsubjectmationeditTemplate.tpl | 33 ----- .../schoolsubjectmationlist.html | 57 -------- .../template/assets/lib/layui/layui.js | 1 + 8 files changed, 1 insertion(+), 397 deletions(-) delete mode 100644 school/src/main/resources/template/js/schoolsubjectmation/schoolsubjectmationadd.js delete mode 100644 school/src/main/resources/template/js/schoolsubjectmation/schoolsubjectmationedit.js delete mode 100644 school/src/main/resources/template/js/schoolsubjectmation/schoolsubjectmationlist.js delete mode 100644 school/src/main/resources/template/tpl/schoolsubjectmation/schoolsubjectmationadd.html delete mode 100644 school/src/main/resources/template/tpl/schoolsubjectmation/schoolsubjectmationedit.html delete mode 100644 school/src/main/resources/template/tpl/schoolsubjectmation/schoolsubjectmationeditTemplate.tpl delete mode 100644 school/src/main/resources/template/tpl/schoolsubjectmation/schoolsubjectmationlist.html diff --git a/school/src/main/resources/template/js/schoolsubjectmation/schoolsubjectmationadd.js b/school/src/main/resources/template/js/schoolsubjectmation/schoolsubjectmationadd.js deleted file mode 100644 index ab1336db2..000000000 --- a/school/src/main/resources/template/js/schoolsubjectmation/schoolsubjectmationadd.js +++ /dev/null @@ -1,44 +0,0 @@ - -layui.config({ - base: basePath, - version: skyeyeVersion -}).extend({ - window: 'js/winui.window' -}).define(['window', 'jquery', 'winui', 'textool'], function (exports) { - winui.renderColor(); - layui.use(['form'], function (form) { - var index = parent.layer.getFrameIndex(window.name); - var $ = layui.$, - textool = layui.textool; - - // 获取当前登陆用户所属的学校列表 - schoolUtil.queryMyBelongSchoolList(function (json) { - $("#schoolId").html(getDataUseHandlebars(getFileContent('tpl/template/select-option-must.tpl'), json)); - form.render("select"); - }); - - textool.init({eleId: 'desc', maxlength: 500}); - - matchingLanguage(); - form.render(); - form.on('submit(formAddBean)', function (data) { - if (winui.verifyForm(data.elem)) { - var params = { - subjectName: $("#subjectName").val(), - subjectNo: $("#subjectNo").val(), - desc: $("#desc").val(), - schoolId: $("#schoolId").val() - }; - AjaxPostUtil.request({url:schoolBasePath + "schoolsubjectmation002", params: params, type: 'json', callback: function (json) { - parent.layer.close(index); - parent.refreshCode = '0'; - }}); - } - return false; - }); - - $("body").on("click", "#cancle", function() { - parent.layer.close(index); - }); - }); -}); \ No newline at end of file diff --git a/school/src/main/resources/template/js/schoolsubjectmation/schoolsubjectmationedit.js b/school/src/main/resources/template/js/schoolsubjectmation/schoolsubjectmationedit.js deleted file mode 100644 index 328a1954a..000000000 --- a/school/src/main/resources/template/js/schoolsubjectmation/schoolsubjectmationedit.js +++ /dev/null @@ -1,56 +0,0 @@ - -layui.config({ - base: basePath, - version: skyeyeVersion -}).extend({ - window: 'js/winui.window' -}).define(['window', 'jquery', 'winui', 'textool'], function (exports) { - winui.renderColor(); - layui.use(['form'], function (form) { - var index = parent.layer.getFrameIndex(window.name); - var $ = layui.$, - textool = layui.textool; - - showGrid({ - id: "showForm", - url: schoolBasePath + "schoolsubjectmation003", - params: {rowId:parent.rowId}, - pagination: false, - template: getFileContent('tpl/schoolsubjectmation/schoolsubjectmationeditTemplate.tpl'), - ajaxSendAfter:function (json) { - - textool.init({eleId: 'desc', maxlength: 500}); - - // 获取当前登陆用户所属的学校列表 - schoolUtil.queryMyBelongSchoolList(function (data) { - $("#schoolId").html(getDataUseHandlebars(getFileContent('tpl/template/select-option-must.tpl'), data)); - $("#schoolId").val(json.bean.schoolId); - form.render("select"); - }); - - matchingLanguage(); - form.on('submit(formEditBean)', function (data) { - if (winui.verifyForm(data.elem)) { - var params = { - rowId: parent.rowId, - subjectName: $("#subjectName").val(), - subjectNo: $("#subjectNo").val(), - desc: $("#desc").val(), - schoolId: $("#schoolId").val() - }; - - AjaxPostUtil.request({url:schoolBasePath + "schoolsubjectmation004", params: params, type: 'json', callback: function (json) { - parent.layer.close(index); - parent.refreshCode = '0'; - }}); - } - return false; - }); - } - }); - - $("body").on("click", "#cancle", function() { - parent.layer.close(index); - }); - }); -}); \ No newline at end of file diff --git a/school/src/main/resources/template/js/schoolsubjectmation/schoolsubjectmationlist.js b/school/src/main/resources/template/js/schoolsubjectmation/schoolsubjectmationlist.js deleted file mode 100644 index 9de9bc23c..000000000 --- a/school/src/main/resources/template/js/schoolsubjectmation/schoolsubjectmationlist.js +++ /dev/null @@ -1,135 +0,0 @@ - -var rowId = ""; -layui.config({ - base: basePath, - version: skyeyeVersion -}).extend({ - window: 'js/winui.window' -}).define(['window', 'table', 'jquery', 'winui', 'form'], function (exports) { - winui.renderColor(); - var $ = layui.$, - form = layui.form, - table = layui.table; - - authBtn('1586094186431'); - - // 获取当前登陆用户所属的学校列表 - schoolUtil.queryMyBelongSchoolList(function (json) { - $("#schoolId").html(getDataUseHandlebars(getFileContent('tpl/template/select-option-must.tpl'), json)); - form.render("select"); - initTable(); - }); - - function initTable(){ - table.render({ - id: 'messageTable', - elem: '#messageTable', - method: 'post', - url: schoolBasePath + 'schoolsubjectmation001', - where: getTableParams(), - even: true, - page: true, - limits: getLimits(), - limit: getLimit(), - cols: [[ - { title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' }, - { field: 'subjectName', title: '科目', align: 'left', width: 160 }, - { field: 'subjectNo', title: '编号', align: 'left', width: 140 }, - { field: 'desc', title: '简介', align: 'left', width: 80, templet: function (d) { - return ''; - }}, - { field: 'schoolName', title: '所属学校', align: 'left', width: 150 }, - { field: 'createTime', title: systemLanguage["com.skyeye.createTime"][languageType], align: 'center', width: 150 }, - { title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 150, toolbar: '#tableBar'} - ]], - done: function(json) { - matchingLanguage(); - } - }); - - table.on('tool(messageTable)', function (obj) { - var data = obj.data; - var layEvent = obj.event; - if (layEvent === 'edit') { //编辑 - edit(data); - } else if (layEvent === 'delet') { //删除 - delet(data); - } else if (layEvent === 'descSel') { //descSel内容 - layer.open({ - id: 'descSel', - type: 1, - title: '简介', - shade: 0.3, - area: ['90vw', '90vh'], - content: data.desc - }); - } - }); - } - - // 添加 - $("body").on("click", "#addBean", function() { - _openNewWindows({ - url: "../../tpl/schoolsubjectmation/schoolsubjectmationadd.html", - title: systemLanguage["com.skyeye.addPageTitle"][languageType], - pageId: "schoolsubjectmationadd", - area: ['90vw', '90vh'], - callBack: function (refreshCode) { - winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000}); - loadTable(); - }}); - }); - - // 删除 - function delet(data) { - layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function (index) { - layer.close(index); - AjaxPostUtil.request({url:schoolBasePath + "schoolsubjectmation005", params: {rowId: data.id}, type: 'json', callback: function (json) { - winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000}); - loadTable(); - }}); - }); - } - - // 编辑 - function edit(data) { - rowId = data.id; - _openNewWindows({ - url: "../../tpl/schoolsubjectmation/schoolsubjectmationedit.html", - title: systemLanguage["com.skyeye.editPageTitle"][languageType], - pageId: "schoolsubjectmationedit", - area: ['90vw', '90vh'], - callBack: function (refreshCode) { - winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000}); - loadTable(); - } - }); - } - - form.render(); - form.on('submit(formSearch)', function (data) { - if (winui.verifyForm(data.elem)) { - table.reloadData("messageTable", {page: {curr: 1}, where: getTableParams()}); - } - return false; - }); - - // 刷新数据 - $("body").on("click", "#reloadTable", function() { - loadTable(); - }); - - function loadTable() { - table.reloadData("messageTable", {where: getTableParams()}); - } - - function getTableParams() { - return { - subjectName: $("#subjectName").val(), - subjectNo: $("#subjectNo").val(), - schoolId: $("#schoolId").val() - }; - } - - exports('schoolsubjectmationlist', {}); -}); diff --git a/school/src/main/resources/template/tpl/schoolsubjectmation/schoolsubjectmationadd.html b/school/src/main/resources/template/tpl/schoolsubjectmation/schoolsubjectmationadd.html deleted file mode 100644 index 4bd1db864..000000000 --- a/school/src/main/resources/template/tpl/schoolsubjectmation/schoolsubjectmationadd.html +++ /dev/null @@ -1,51 +0,0 @@ - - -
- -