From 429e9b4c45ea15f3842cb1b91208691f8376b741 Mon Sep 17 00:00:00 2001 From: itgaojian163 Date: Thu, 3 Jul 2025 17:35:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E7=BA=BF=E7=A0=94=E4=BF=AE=E4=B8=8E?= =?UTF-8?q?=E8=80=83=E6=A0=B8=E7=B3=BB=E7=BB=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xtbgxt/db/aimzdb.mv.db | Bin 94208 -> 94208 bytes .../assets/crpm/code1/css/style1/style.css | 128 ++++--- .../assets/crpm/index/index1/index1.css | 139 ++++--- .../static/route/pages/03f33a/list.html | 44 ++- .../static/route/pages/03f33a/save.html | 42 ++- .../static/route/pages/03f33a/update.html | 105 ++++-- .../static/route/pages/0f1aa2/list.html | 36 +- .../static/route/pages/0f1aa2/save.html | 100 +++-- .../static/route/pages/0f1aa2/update.html | 120 ++++-- .../static/route/pages/0f6341/list.html | 110 +++--- .../static/route/pages/0f6341/save.html | 94 +++-- .../static/route/pages/0f6341/update.html | 112 ++++-- .../static/route/pages/3e568b/list.html | 39 +- .../static/route/pages/3e568b/save.html | 38 +- .../static/route/pages/3e568b/update.html | 100 ++--- .../static/route/pages/79a967/list.html | 109 +++--- .../static/route/pages/79a967/save.html | 118 ++++-- .../static/route/pages/79a967/update.html | 135 ++++--- .../static/route/pages/a4b8e0/list.html | 112 +++--- .../static/route/pages/a4b8e0/save.html | 89 +++-- .../static/route/pages/a4b8e0/update.html | 107 +++--- .../static/route/pages/b0e3d4/list.html | 41 ++- .../static/route/pages/b0e3d4/save.html | 90 +++-- .../static/route/pages/b0e3d4/update.html | 108 +++--- .../static/route/pages/e14c8e/list.html | 110 +++--- .../static/route/pages/e14c8e/save.html | 102 ++++-- .../static/route/pages/e14c8e/update.html | 120 +++--- .../static/route/pages/e9eeb8/list.html | 112 +++--- .../static/route/pages/e9eeb8/save.html | 42 ++- .../static/route/pages/e9eeb8/update.html | 106 +++--- .../static/route/pages/ef4baa/list.html | 110 +++--- .../static/route/pages/ef4baa/save.html | 110 ++++-- .../static/route/pages/ef4baa/update.html | 128 ++++--- .../resources/static/route/pages/index.html | 346 ++++++++++-------- 34 files changed, 2123 insertions(+), 1279 deletions(-) diff --git a/xtbgxt/db/aimzdb.mv.db b/xtbgxt/db/aimzdb.mv.db index 58d6399141f6136244c3dbb297d56c0d26159dd8..37237a26c3b0496c0e1ef4054ab2168a45c80148 100644 GIT binary patch delta 614 zcmaKq&1(}u7{+I|YzRxC5+qQyY-3vsc1-7;>_;*lTEP#HDqa%Wi)FK&q%rAkNH?W| zNWi9eJ)c`V z%SfdmB7a-7xW&q4R<1Zk*LyW3Po@_Bf1`I|8fQw3G(^CGG`*_WA;x|P+ z*Z*9^kF|^$c*;UM*b3LeY8Hs!5?&-qV=G|B*EaBs1`yv{$20Mxb^M{fxq(;lv<8j_ zu5xwWh&7Z#Nq@T?)UyEc>h(_Q5Dz5>Amv8r*SRG#-^`qvoiu8D;*J7ijltOCc}INI zIi)~781a!yH>NZ2mktcExK@RPzTa+of&Y+GCO=wBNihVTcjV!h3o>m}Wn12|O&w^S z=49PIGDh$L7|8cGZ~vB*d4+gzA1}(M&U_km5W0MT5L!hzl~xrYt$NV)-fAyq6ALPw fQN;hG_2sWoSB?-BnJqEVZaOGasnPKqoJ?qQuHX zrzAhw$}GuX@ a, .layui-nav-tree .layui-this > a:hover { + background-color: #2F53E9 !important; +} + +.layui-nav { + background-color: transparent; +} + +.layui-body { + background-color: #F2F2F2 !important; +} + +.layui-elem-quote { + background-color: #FFFFFF !important; + font-size: 18px; + padding: 15px; + border-left: none; +} \ No newline at end of file diff --git a/zxyxykhxt/src/main/resources/static/route/pages/03f33a/list.html b/zxyxykhxt/src/main/resources/static/route/pages/03f33a/list.html index 0822be3..c916e7e 100644 --- a/zxyxykhxt/src/main/resources/static/route/pages/03f33a/list.html +++ b/zxyxykhxt/src/main/resources/static/route/pages/03f33a/list.html @@ -14,15 +14,16 @@
-
+
- +
- +
-
+
@@ -69,7 +70,7 @@ { type: "checkbox", fixed: "left" }, { field: "rowNum", - width: 80, + width: 70, title: "序号", fixed: "left", align: "center", @@ -78,53 +79,64 @@ { field: 'zybt', title: '作业标题', - minWidth: 80, + minWidth: 180, + align: "center", + fixed: "left", }, { field: 'zyms', title: '作业描述', - minWidth: 80, + minWidth: 200, + align: "center", }, { field: 'tjjzrq', title: '提交截止日期', - minWidth: 80, + minWidth: 140, + align: "center", }, { field: 'xyxm', title: '学员姓名', - minWidth: 80, + minWidth: 100, + align: "center", }, { field: 'xyxh', title: '学员学号', - minWidth: 80, + minWidth: 140, + align: "center", }, { field: 'kcmc', title: '课程名称', - minWidth: 80, + minWidth: 140, + align: "center", }, { field: 'tjsj', title: '提交时间', - minWidth: 80, + minWidth: 140, + align: "center", }, { field: 'zywjlj', title: '作业文件路径', - minWidth: 80, + minWidth: 130, + align: "center", }, { field: 'pgzt', title: '批改状态', - minWidth: 80, + minWidth: 100, + align: "center", }, { field: 'df', title: '得分', - minWidth: 80, - }, + minWidth: 100, + align: "center", + } ] ], data: datas, diff --git a/zxyxykhxt/src/main/resources/static/route/pages/03f33a/save.html b/zxyxykhxt/src/main/resources/static/route/pages/03f33a/save.html index 0d8821f..f4f6f1f 100644 --- a/zxyxykhxt/src/main/resources/static/route/pages/03f33a/save.html +++ b/zxyxykhxt/src/main/resources/static/route/pages/03f33a/save.html @@ -14,7 +14,7 @@
作业提交新增数据
- +
@@ -26,49 +26,55 @@
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
@@ -85,6 +91,18 @@
@@ -51,13 +57,13 @@ var $ = layui.$; var $win = $(window); - var initTableData = function(keywords) { + var initTableData = function (keywords) { $.ajax({ type: 'GET', url: 'api/data/list/049bcd/0f6341', data: 'keywords=' + (keywords ? encodeURI(keywords) : ''), contentType: "application/json;charset=utf-8", - success: function(resp) { + success: function (resp) { var datas = resp; table.render({ elem: "#datatable", @@ -66,7 +72,7 @@ toolbar: '#headerToolBar', cols: [ [ - { type: "checkbox", fixed: "left" }, + {type: "checkbox", fixed: "left"}, { field: "rowNum", width: 80, @@ -78,53 +84,65 @@ { field: 'zlmc', title: '资料名称', - minWidth: 80, + minWidth: 140, + fixed: 'left', + align: "center" }, { field: 'scyh', title: '上传用户', - minWidth: 80, + minWidth: 100, + align: "center" }, { field: 'wjlj', title: '文件路径', - minWidth: 80, + minWidth: 180, + align: "center" }, { field: 'scsj', title: '上传时间', - minWidth: 80, + minWidth: 180, + align: "center" }, { field: 'zldx', title: '资料大小', - minWidth: 80, + minWidth: 100, + align: "center" }, { field: 'xzcs', title: '下载次数', - minWidth: 80, + minWidth: 100, + align: "center" }, { field: 'zlms', title: '资料描述', - minWidth: 80, + minWidth: 200, + align: "center" }, { field: 'sskc', title: '所属课程', - minWidth: 80, + minWidth: 100, + align: "center" }, { field: 'yxq', title: '有效期', - minWidth: 80, + minWidth: 180, + align: "center" }, { field: 'sfgk', title: '是否公开', - minWidth: 80, + minWidth: 100, + align: "center" }, + {title: '操作', width: 180, align: 'center', toolbar: '#headerToolBar', fixed: 'right'} ] ], data: datas, @@ -133,19 +151,19 @@ limit: 20, }); }, - error: function(resp) { + error: function (resp) { console.error(resp); } }) } - var addEvent = function() { + var addEvent = function () { // 事件 - 增删改 - table.on('toolbar(datatable)', function(obj) { + table.on('toolbar(datatable)', function (obj) { var layEvent = obj.event; var checkStatus = table.checkStatus('datatable'); var checkDatas = checkStatus.data; - if(layEvent === 'saveEvent') { + if (layEvent === 'saveEvent') { top.layer.open({ type: 2, title: false, @@ -155,14 +173,14 @@ area: ['400px', '100%'], offset: 'r', anim: 'slideLeft', - end: function() { + end: function () { initTableData(); } }); - } else if(layEvent === 'updateEvent') { - if(checkDatas.length === 0) { + } else if (layEvent === 'updateEvent') { + if (checkDatas.length === 0) { top.layer.msg('请勾选要编辑的数据'); - } else if(checkDatas.length > 1) { + } else if (checkDatas.length > 1) { top.layer.msg('不能编辑多条数据'); } else { top.layer.open({ @@ -170,48 +188,48 @@ title: false, closeBtn: false, shadeClose: true, - content: 'route/pages/0f6341/update.html?id='+ checkDatas[0].id, + content: 'route/pages/0f6341/update.html?id=' + checkDatas[0].id, area: ['400px', '100%'], offset: 'r', anim: 'slideLeft', - end: function() { + end: function () { initTableData(); } }); } - } else if(layEvent === 'removeEvent') { - if(checkDatas.length === 0) { + } else if (layEvent === 'removeEvent') { + if (checkDatas.length === 0) { top.layer.msg('请勾选要删除的数据'); } else { var ids = ''; - for(var i = 0, item; item = checkDatas[i++];) { - if(i > 1) { + for (var i = 0, item; item = checkDatas[i++];) { + if (i > 1) { ids += ','; } ids += item.id; } - top.layer.confirm('确定删除吗?', {title: false}, function(index) { + top.layer.confirm('确定删除吗?', {title: false}, function (index) { top.layer.close(index); var loadingIndex; $.ajax({ type: 'DELETE', url: 'api/data/delete/049bcd/0f6341?ids=' + ids, contentType: "application/json;charset=utf-8", - success: function(resp) { + success: function (resp) { top.layer.msg('删除成功'); initTableData(); }, - error: function(resp) { + error: function (resp) { var data = JSON.parse(resp.responseText); top.layer.msg(data.msg); }, - beforeSend: function() { + beforeSend: function () { loadingIndex = top.layer.msg('正在删除...', { icon: 16, shade: 0.01 - });; + }); }, - complete: function() { + complete: function () { top.layer.close(loadingIndex); } }) @@ -219,7 +237,7 @@ } } }); - form.on('submit(searchFilter)', function(formData) { + form.on('submit(searchFilter)', function (formData) { initTableData(formData.field.keywords); }); } diff --git a/zxyxykhxt/src/main/resources/static/route/pages/0f6341/save.html b/zxyxykhxt/src/main/resources/static/route/pages/0f6341/save.html index b33f024..2aea881 100644 --- a/zxyxykhxt/src/main/resources/static/route/pages/0f6341/save.html +++ b/zxyxykhxt/src/main/resources/static/route/pages/0f6341/save.html @@ -1,11 +1,11 @@ - - + + 在线研修与考核系统 - - + +
@@ -14,27 +14,27 @@
学习资料下载新增数据
- +
- +
- +
- +
- +
@@ -46,17 +46,17 @@
- +
- +
- +
@@ -64,20 +64,28 @@
- +
- +
- +
@@ -85,6 +93,30 @@
@@ -51,13 +57,13 @@ var $ = layui.$; var $win = $(window); - var initTableData = function(keywords) { + var initTableData = function (keywords) { $.ajax({ type: 'GET', url: 'api/data/list/049bcd/79a967', data: 'keywords=' + (keywords ? encodeURI(keywords) : ''), contentType: "application/json;charset=utf-8", - success: function(resp) { + success: function (resp) { var datas = resp; table.render({ elem: "#datatable", @@ -66,7 +72,7 @@ toolbar: '#headerToolBar', cols: [ [ - { type: "checkbox", fixed: "left" }, + {type: "checkbox", fixed: "left"}, { field: "rowNum", width: 80, @@ -78,52 +84,62 @@ { field: 'ggbt', title: '公告标题', - minWidth: 80, + minWidth: 260, + align: 'center' }, { field: 'ggnr', title: '公告内容', - minWidth: 80, + minWidth: 150, + align: 'center' }, { field: 'fbz', title: '发布者', - minWidth: 80, + minWidth: 100, + align: 'center' }, { field: 'fbrq', title: '发布日期', - minWidth: 80, + minWidth: 160, + align: 'center' }, { field: 'yxqksrq', title: '有效期开始日期', - minWidth: 80, + minWidth: 160, + align: 'center' }, { field: 'yxqjsrq', title: '有效期结束日期', - minWidth: 80, + minWidth: 160, + align: 'center' }, { field: 'mbsz', title: '目标受众', - minWidth: 80, + minWidth: 100, + align: 'center' }, { field: 'ggzt', title: '公告状态', - minWidth: 80, + minWidth: 100, + align: 'center' }, { field: 'xglj', title: '相关链接', - minWidth: 80, + minWidth: 100, + align: 'center' }, { field: 'fj', title: '附件', - minWidth: 80, + minWidth: 100, + align: 'center' }, ] ], @@ -133,19 +149,19 @@ limit: 20, }); }, - error: function(resp) { + error: function (resp) { console.error(resp); } }) } - var addEvent = function() { + var addEvent = function () { // 事件 - 增删改 - table.on('toolbar(datatable)', function(obj) { + table.on('toolbar(datatable)', function (obj) { var layEvent = obj.event; var checkStatus = table.checkStatus('datatable'); var checkDatas = checkStatus.data; - if(layEvent === 'saveEvent') { + if (layEvent === 'saveEvent') { top.layer.open({ type: 2, title: false, @@ -155,14 +171,14 @@ area: ['400px', '100%'], offset: 'r', anim: 'slideLeft', - end: function() { + end: function () { initTableData(); } }); - } else if(layEvent === 'updateEvent') { - if(checkDatas.length === 0) { + } else if (layEvent === 'updateEvent') { + if (checkDatas.length === 0) { top.layer.msg('请勾选要编辑的数据'); - } else if(checkDatas.length > 1) { + } else if (checkDatas.length > 1) { top.layer.msg('不能编辑多条数据'); } else { top.layer.open({ @@ -170,48 +186,49 @@ title: false, closeBtn: false, shadeClose: true, - content: 'route/pages/79a967/update.html?id='+ checkDatas[0].id, + content: 'route/pages/79a967/update.html?id=' + checkDatas[0].id, area: ['400px', '100%'], offset: 'r', anim: 'slideLeft', - end: function() { + end: function () { initTableData(); } }); } - } else if(layEvent === 'removeEvent') { - if(checkDatas.length === 0) { + } else if (layEvent === 'removeEvent') { + if (checkDatas.length === 0) { top.layer.msg('请勾选要删除的数据'); } else { var ids = ''; - for(var i = 0, item; item = checkDatas[i++];) { - if(i > 1) { + for (var i = 0, item; item = checkDatas[i++];) { + if (i > 1) { ids += ','; } ids += item.id; } - top.layer.confirm('确定删除吗?', {title: false}, function(index) { + top.layer.confirm('确定删除吗?', {title: false}, function (index) { top.layer.close(index); var loadingIndex; $.ajax({ type: 'DELETE', url: 'api/data/delete/049bcd/79a967?ids=' + ids, contentType: "application/json;charset=utf-8", - success: function(resp) { + success: function (resp) { top.layer.msg('删除成功'); initTableData(); }, - error: function(resp) { + error: function (resp) { var data = JSON.parse(resp.responseText); top.layer.msg(data.msg); }, - beforeSend: function() { + beforeSend: function () { loadingIndex = top.layer.msg('正在删除...', { icon: 16, shade: 0.01 - });; + }); + ; }, - complete: function() { + complete: function () { top.layer.close(loadingIndex); } }) @@ -219,7 +236,7 @@ } } }); - form.on('submit(searchFilter)', function(formData) { + form.on('submit(searchFilter)', function (formData) { initTableData(formData.field.keywords); }); } diff --git a/zxyxykhxt/src/main/resources/static/route/pages/79a967/save.html b/zxyxykhxt/src/main/resources/static/route/pages/79a967/save.html index a5fa6b7..a8dad19 100644 --- a/zxyxykhxt/src/main/resources/static/route/pages/79a967/save.html +++ b/zxyxykhxt/src/main/resources/static/route/pages/79a967/save.html @@ -1,11 +1,11 @@ - - + + 在线研修与考核系统 - - + +
@@ -14,51 +14,62 @@
通知公告新增数据
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
@@ -70,21 +81,60 @@
- +
+
@@ -51,13 +57,13 @@ var $ = layui.$; var $win = $(window); - var initTableData = function(keywords) { + var initTableData = function (keywords) { $.ajax({ type: 'GET', url: 'api/data/list/049bcd/a4b8e0', data: 'keywords=' + (keywords ? encodeURI(keywords) : ''), contentType: "application/json;charset=utf-8", - success: function(resp) { + success: function (resp) { var datas = resp; table.render({ elem: "#datatable", @@ -66,7 +72,7 @@ toolbar: '#headerToolBar', cols: [ [ - { type: "checkbox", fixed: "left" }, + {type: "checkbox", fixed: "left"}, { field: "rowNum", width: 80, @@ -78,53 +84,64 @@ { field: 'kcmc', title: '课程名称', - minWidth: 80, + minWidth: 150, + fixed: "left", + align: "center", }, { field: 'kcbh', title: '课程编号', - minWidth: 80, + minWidth: 120, + align: "center", }, { field: 'cjsj', title: '创建时间', - minWidth: 80, + minWidth: 160, + align: "center", }, { field: 'gxsj', title: '更新时间', - minWidth: 80, + minWidth: 160, + align: "center", }, { field: 'kcms', title: '课程描述', - minWidth: 80, + minWidth: 230, + align: "center", }, { field: 'jsxm', title: '教师姓名', - minWidth: 80, + minWidth: 100, + align: "center", }, { field: 'kczt', title: '课程状态', - minWidth: 80, + minWidth: 100, + align: "center", }, { field: 'cyrs', title: '参与人数', - minWidth: 80, + minWidth: 100, + align: "center", }, { field: 'wcrs', title: '完成人数', - minWidth: 80, + minWidth: 100, + align: "center", }, { field: 'kcsz', title: '课程时长', - minWidth: 80, - }, + minWidth: 100, + align: "center", + } ] ], data: datas, @@ -133,19 +150,19 @@ limit: 20, }); }, - error: function(resp) { + error: function (resp) { console.error(resp); } }) } - var addEvent = function() { + var addEvent = function () { // 事件 - 增删改 - table.on('toolbar(datatable)', function(obj) { + table.on('toolbar(datatable)', function (obj) { var layEvent = obj.event; var checkStatus = table.checkStatus('datatable'); var checkDatas = checkStatus.data; - if(layEvent === 'saveEvent') { + if (layEvent === 'saveEvent') { top.layer.open({ type: 2, title: false, @@ -155,14 +172,14 @@ area: ['400px', '100%'], offset: 'r', anim: 'slideLeft', - end: function() { + end: function () { initTableData(); } }); - } else if(layEvent === 'updateEvent') { - if(checkDatas.length === 0) { + } else if (layEvent === 'updateEvent') { + if (checkDatas.length === 0) { top.layer.msg('请勾选要编辑的数据'); - } else if(checkDatas.length > 1) { + } else if (checkDatas.length > 1) { top.layer.msg('不能编辑多条数据'); } else { top.layer.open({ @@ -170,48 +187,49 @@ title: false, closeBtn: false, shadeClose: true, - content: 'route/pages/a4b8e0/update.html?id='+ checkDatas[0].id, + content: 'route/pages/a4b8e0/update.html?id=' + checkDatas[0].id, area: ['400px', '100%'], offset: 'r', anim: 'slideLeft', - end: function() { + end: function () { initTableData(); } }); } - } else if(layEvent === 'removeEvent') { - if(checkDatas.length === 0) { + } else if (layEvent === 'removeEvent') { + if (checkDatas.length === 0) { top.layer.msg('请勾选要删除的数据'); } else { var ids = ''; - for(var i = 0, item; item = checkDatas[i++];) { - if(i > 1) { + for (var i = 0, item; item = checkDatas[i++];) { + if (i > 1) { ids += ','; } ids += item.id; } - top.layer.confirm('确定删除吗?', {title: false}, function(index) { + top.layer.confirm('确定删除吗?', {title: false}, function (index) { top.layer.close(index); var loadingIndex; $.ajax({ type: 'DELETE', url: 'api/data/delete/049bcd/a4b8e0?ids=' + ids, contentType: "application/json;charset=utf-8", - success: function(resp) { + success: function (resp) { top.layer.msg('删除成功'); initTableData(); }, - error: function(resp) { + error: function (resp) { var data = JSON.parse(resp.responseText); top.layer.msg(data.msg); }, - beforeSend: function() { + beforeSend: function () { loadingIndex = top.layer.msg('正在删除...', { icon: 16, shade: 0.01 - });; + }); + ; }, - complete: function() { + complete: function () { top.layer.close(loadingIndex); } }) @@ -219,7 +237,7 @@ } } }); - form.on('submit(searchFilter)', function(formData) { + form.on('submit(searchFilter)', function (formData) { initTableData(formData.field.keywords); }); } diff --git a/zxyxykhxt/src/main/resources/static/route/pages/a4b8e0/save.html b/zxyxykhxt/src/main/resources/static/route/pages/a4b8e0/save.html index af06dc9..7b52b81 100644 --- a/zxyxykhxt/src/main/resources/static/route/pages/a4b8e0/save.html +++ b/zxyxykhxt/src/main/resources/static/route/pages/a4b8e0/save.html @@ -1,11 +1,11 @@ - - + + 在线研修与考核系统 - - + +
@@ -14,27 +14,27 @@
课程管理新增数据
- +
- +
- +
- +
- +
- +
@@ -44,31 +44,36 @@
- +
- +
- +
- +
- +
- +
- +
- +
@@ -76,8 +81,12 @@
@@ -85,6 +94,18 @@
@@ -51,13 +57,13 @@ var $ = layui.$; var $win = $(window); - var initTableData = function(keywords) { + var initTableData = function (keywords) { $.ajax({ type: 'GET', url: 'api/data/list/049bcd/e14c8e', data: 'keywords=' + (keywords ? encodeURI(keywords) : ''), contentType: "application/json;charset=utf-8", - success: function(resp) { + success: function (resp) { var datas = resp; table.render({ elem: "#datatable", @@ -66,7 +72,7 @@ toolbar: '#headerToolBar', cols: [ [ - { type: "checkbox", fixed: "left" }, + {type: "checkbox", fixed: "left"}, { field: "rowNum", width: 80, @@ -78,52 +84,63 @@ { field: 'yhm', title: '用户名', - minWidth: 80, + minWidth: 100, + align: 'center', + fixed: 'left' }, { field: 'mm', title: '密码', - minWidth: 80, + minWidth: 100, + align: 'center' }, { field: 'js', title: '角色', - minWidth: 80, + minWidth: 100, + align: 'center' }, { field: 'qxjb', title: '权限级别', - minWidth: 80, + minWidth: 100, + align: 'center' }, { field: 'cjsj', title: '创建时间', - minWidth: 80, + minWidth: 180, + align: 'center' }, { field: 'gxsj', title: '更新时间', - minWidth: 80, + minWidth: 180, + align: 'center' }, { field: 'zhdlsj', title: '最后登录时间', - minWidth: 80, + minWidth: 180, + align: 'center' }, { field: 'yx', title: '邮箱', - minWidth: 80, + minWidth: 220, + align: 'center' }, { field: 'dhhm', title: '电话号码', - minWidth: 80, + minWidth: 180, + align: 'center' }, { field: 'zt', title: '状态', - minWidth: 80, + minWidth: 100, + align: 'center' }, ] ], @@ -133,19 +150,19 @@ limit: 20, }); }, - error: function(resp) { + error: function (resp) { console.error(resp); } }) } - var addEvent = function() { + var addEvent = function () { // 事件 - 增删改 - table.on('toolbar(datatable)', function(obj) { + table.on('toolbar(datatable)', function (obj) { var layEvent = obj.event; var checkStatus = table.checkStatus('datatable'); var checkDatas = checkStatus.data; - if(layEvent === 'saveEvent') { + if (layEvent === 'saveEvent') { top.layer.open({ type: 2, title: false, @@ -155,14 +172,14 @@ area: ['400px', '100%'], offset: 'r', anim: 'slideLeft', - end: function() { + end: function () { initTableData(); } }); - } else if(layEvent === 'updateEvent') { - if(checkDatas.length === 0) { + } else if (layEvent === 'updateEvent') { + if (checkDatas.length === 0) { top.layer.msg('请勾选要编辑的数据'); - } else if(checkDatas.length > 1) { + } else if (checkDatas.length > 1) { top.layer.msg('不能编辑多条数据'); } else { top.layer.open({ @@ -170,48 +187,49 @@ title: false, closeBtn: false, shadeClose: true, - content: 'route/pages/e14c8e/update.html?id='+ checkDatas[0].id, + content: 'route/pages/e14c8e/update.html?id=' + checkDatas[0].id, area: ['400px', '100%'], offset: 'r', anim: 'slideLeft', - end: function() { + end: function () { initTableData(); } }); } - } else if(layEvent === 'removeEvent') { - if(checkDatas.length === 0) { + } else if (layEvent === 'removeEvent') { + if (checkDatas.length === 0) { top.layer.msg('请勾选要删除的数据'); } else { var ids = ''; - for(var i = 0, item; item = checkDatas[i++];) { - if(i > 1) { + for (var i = 0, item; item = checkDatas[i++];) { + if (i > 1) { ids += ','; } ids += item.id; } - top.layer.confirm('确定删除吗?', {title: false}, function(index) { + top.layer.confirm('确定删除吗?', {title: false}, function (index) { top.layer.close(index); var loadingIndex; $.ajax({ type: 'DELETE', url: 'api/data/delete/049bcd/e14c8e?ids=' + ids, contentType: "application/json;charset=utf-8", - success: function(resp) { + success: function (resp) { top.layer.msg('删除成功'); initTableData(); }, - error: function(resp) { + error: function (resp) { var data = JSON.parse(resp.responseText); top.layer.msg(data.msg); }, - beforeSend: function() { + beforeSend: function () { loadingIndex = top.layer.msg('正在删除...', { icon: 16, shade: 0.01 - });; + }); + ; }, - complete: function() { + complete: function () { top.layer.close(loadingIndex); } }) @@ -219,7 +237,7 @@ } } }); - form.on('submit(searchFilter)', function(formData) { + form.on('submit(searchFilter)', function (formData) { initTableData(formData.field.keywords); }); } diff --git a/zxyxykhxt/src/main/resources/static/route/pages/e14c8e/save.html b/zxyxykhxt/src/main/resources/static/route/pages/e14c8e/save.html index 83dc0ec..4ff4df8 100644 --- a/zxyxykhxt/src/main/resources/static/route/pages/e14c8e/save.html +++ b/zxyxykhxt/src/main/resources/static/route/pages/e14c8e/save.html @@ -1,11 +1,11 @@ - - + + 在线研修与考核系统 - - + +
@@ -14,70 +14,90 @@
权限设置新增数据
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
@@ -85,6 +105,18 @@
@@ -51,13 +57,13 @@ var $ = layui.$; var $win = $(window); - var initTableData = function(keywords) { + var initTableData = function (keywords) { $.ajax({ type: 'GET', url: 'api/data/list/049bcd/e9eeb8', data: 'keywords=' + (keywords ? encodeURI(keywords) : ''), contentType: "application/json;charset=utf-8", - success: function(resp) { + success: function (resp) { var datas = resp; table.render({ elem: "#datatable", @@ -66,7 +72,7 @@ toolbar: '#headerToolBar', cols: [ [ - { type: "checkbox", fixed: "left" }, + {type: "checkbox", fixed: "left"}, { field: "rowNum", width: 80, @@ -78,53 +84,64 @@ { field: 'xyxm', title: '学员姓名', - minWidth: 80, + minWidth: 120, + align: "center", + fixed: 'left' }, { field: 'kcmc', title: '课程名称', - minWidth: 80, + minWidth: 140, + align: "center", }, { field: 'zytjsj', title: '作业提交时间', - minWidth: 80, + minWidth: 180, + align: "center", }, { field: 'cscj', title: '测试成绩', - minWidth: 80, + minWidth: 120, + align: "center", }, { field: 'zycj', title: '作业成绩', - minWidth: 80, + minWidth: 120, + align: "center", }, { field: 'zcj', title: '总成绩', - minWidth: 80, + minWidth: 120, + align: "center", }, { field: 'xxjd', title: '学习进度', - minWidth: 80, + minWidth: 120, + align: "center", }, { field: 'zhdlsj', title: '最后登录时间', - minWidth: 80, + minWidth: 180, + align: "center", }, { field: 'cytlcs', title: '参与讨论次数', - minWidth: 80, + minWidth: 120, + align: "center", }, { field: 'gkspsz', title: '观看视频时长', - minWidth: 80, - }, + minWidth: 120, + align: "center", + } ] ], data: datas, @@ -133,19 +150,19 @@ limit: 20, }); }, - error: function(resp) { + error: function (resp) { console.error(resp); } }) } - var addEvent = function() { + var addEvent = function () { // 事件 - 增删改 - table.on('toolbar(datatable)', function(obj) { + table.on('toolbar(datatable)', function (obj) { var layEvent = obj.event; var checkStatus = table.checkStatus('datatable'); var checkDatas = checkStatus.data; - if(layEvent === 'saveEvent') { + if (layEvent === 'saveEvent') { top.layer.open({ type: 2, title: false, @@ -155,14 +172,14 @@ area: ['400px', '100%'], offset: 'r', anim: 'slideLeft', - end: function() { + end: function () { initTableData(); } }); - } else if(layEvent === 'updateEvent') { - if(checkDatas.length === 0) { + } else if (layEvent === 'updateEvent') { + if (checkDatas.length === 0) { top.layer.msg('请勾选要编辑的数据'); - } else if(checkDatas.length > 1) { + } else if (checkDatas.length > 1) { top.layer.msg('不能编辑多条数据'); } else { top.layer.open({ @@ -170,48 +187,49 @@ title: false, closeBtn: false, shadeClose: true, - content: 'route/pages/e9eeb8/update.html?id='+ checkDatas[0].id, + content: 'route/pages/e9eeb8/update.html?id=' + checkDatas[0].id, area: ['400px', '100%'], offset: 'r', anim: 'slideLeft', - end: function() { + end: function () { initTableData(); } }); } - } else if(layEvent === 'removeEvent') { - if(checkDatas.length === 0) { + } else if (layEvent === 'removeEvent') { + if (checkDatas.length === 0) { top.layer.msg('请勾选要删除的数据'); } else { var ids = ''; - for(var i = 0, item; item = checkDatas[i++];) { - if(i > 1) { + for (var i = 0, item; item = checkDatas[i++];) { + if (i > 1) { ids += ','; } ids += item.id; } - top.layer.confirm('确定删除吗?', {title: false}, function(index) { + top.layer.confirm('确定删除吗?', {title: false}, function (index) { top.layer.close(index); var loadingIndex; $.ajax({ type: 'DELETE', url: 'api/data/delete/049bcd/e9eeb8?ids=' + ids, contentType: "application/json;charset=utf-8", - success: function(resp) { + success: function (resp) { top.layer.msg('删除成功'); initTableData(); }, - error: function(resp) { + error: function (resp) { var data = JSON.parse(resp.responseText); top.layer.msg(data.msg); }, - beforeSend: function() { + beforeSend: function () { loadingIndex = top.layer.msg('正在删除...', { icon: 16, shade: 0.01 - });; + }); + ; }, - complete: function() { + complete: function () { top.layer.close(loadingIndex); } }) @@ -219,7 +237,7 @@ } } }); - form.on('submit(searchFilter)', function(formData) { + form.on('submit(searchFilter)', function (formData) { initTableData(formData.field.keywords); }); } diff --git a/zxyxykhxt/src/main/resources/static/route/pages/e9eeb8/save.html b/zxyxykhxt/src/main/resources/static/route/pages/e9eeb8/save.html index 8ad1c4b..3af0781 100644 --- a/zxyxykhxt/src/main/resources/static/route/pages/e9eeb8/save.html +++ b/zxyxykhxt/src/main/resources/static/route/pages/e9eeb8/save.html @@ -14,43 +14,43 @@
成绩追踪新增数据
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
@@ -58,17 +58,17 @@
- +
- +
- +
- +
@@ -85,6 +85,18 @@
@@ -51,13 +57,13 @@ var $ = layui.$; var $win = $(window); - var initTableData = function(keywords) { + var initTableData = function (keywords) { $.ajax({ type: 'GET', url: 'api/data/list/049bcd/ef4baa', data: 'keywords=' + (keywords ? encodeURI(keywords) : ''), contentType: "application/json;charset=utf-8", - success: function(resp) { + success: function (resp) { var datas = resp; table.render({ elem: "#datatable", @@ -66,7 +72,7 @@ toolbar: '#headerToolBar', cols: [ [ - { type: "checkbox", fixed: "left" }, + {type: "checkbox", fixed: "left"}, { field: "rowNum", width: 80, @@ -78,52 +84,63 @@ { field: 'yhm', title: '用户名', - minWidth: 80, + minWidth: 120, + fixed: 'left', + align: 'center' }, { field: 'mm', title: '密码', - minWidth: 80, + minWidth: 100, + align: 'center' }, { field: 'yx', title: '邮箱', - minWidth: 80, + minWidth: 180, + align: 'center' }, { field: 'sjhm', title: '手机号码', - minWidth: 80, + minWidth: 180, + align: 'center' }, { field: 'xb', title: '性别', - minWidth: 80, + minWidth: 100, + align: 'center' }, { field: 'sr', title: '生日', - minWidth: 80, + minWidth: 150, + align: 'center' }, { field: 'zcsj', title: '注册时间', - minWidth: 80, + minWidth: 180, + align: 'center' }, { field: 'zhdlsj', title: '最后登录时间', - minWidth: 80, + minWidth: 180, + align: 'center' }, { field: 'yhzt', title: '用户状态', - minWidth: 80, + minWidth: 100, + align: 'center' }, { field: 'yhjs', title: '用户角色', - minWidth: 80, + minWidth: 100, + align: 'center' }, ] ], @@ -133,19 +150,19 @@ limit: 20, }); }, - error: function(resp) { + error: function (resp) { console.error(resp); } }) } - var addEvent = function() { + var addEvent = function () { // 事件 - 增删改 - table.on('toolbar(datatable)', function(obj) { + table.on('toolbar(datatable)', function (obj) { var layEvent = obj.event; var checkStatus = table.checkStatus('datatable'); var checkDatas = checkStatus.data; - if(layEvent === 'saveEvent') { + if (layEvent === 'saveEvent') { top.layer.open({ type: 2, title: false, @@ -155,14 +172,14 @@ area: ['400px', '100%'], offset: 'r', anim: 'slideLeft', - end: function() { + end: function () { initTableData(); } }); - } else if(layEvent === 'updateEvent') { - if(checkDatas.length === 0) { + } else if (layEvent === 'updateEvent') { + if (checkDatas.length === 0) { top.layer.msg('请勾选要编辑的数据'); - } else if(checkDatas.length > 1) { + } else if (checkDatas.length > 1) { top.layer.msg('不能编辑多条数据'); } else { top.layer.open({ @@ -170,48 +187,49 @@ title: false, closeBtn: false, shadeClose: true, - content: 'route/pages/ef4baa/update.html?id='+ checkDatas[0].id, + content: 'route/pages/ef4baa/update.html?id=' + checkDatas[0].id, area: ['400px', '100%'], offset: 'r', anim: 'slideLeft', - end: function() { + end: function () { initTableData(); } }); } - } else if(layEvent === 'removeEvent') { - if(checkDatas.length === 0) { + } else if (layEvent === 'removeEvent') { + if (checkDatas.length === 0) { top.layer.msg('请勾选要删除的数据'); } else { var ids = ''; - for(var i = 0, item; item = checkDatas[i++];) { - if(i > 1) { + for (var i = 0, item; item = checkDatas[i++];) { + if (i > 1) { ids += ','; } ids += item.id; } - top.layer.confirm('确定删除吗?', {title: false}, function(index) { + top.layer.confirm('确定删除吗?', {title: false}, function (index) { top.layer.close(index); var loadingIndex; $.ajax({ type: 'DELETE', url: 'api/data/delete/049bcd/ef4baa?ids=' + ids, contentType: "application/json;charset=utf-8", - success: function(resp) { + success: function (resp) { top.layer.msg('删除成功'); initTableData(); }, - error: function(resp) { + error: function (resp) { var data = JSON.parse(resp.responseText); top.layer.msg(data.msg); }, - beforeSend: function() { + beforeSend: function () { loadingIndex = top.layer.msg('正在删除...', { icon: 16, shade: 0.01 - });; + }); + ; }, - complete: function() { + complete: function () { top.layer.close(loadingIndex); } }) @@ -219,7 +237,7 @@ } } }); - form.on('submit(searchFilter)', function(formData) { + form.on('submit(searchFilter)', function (formData) { initTableData(formData.field.keywords); }); } diff --git a/zxyxykhxt/src/main/resources/static/route/pages/ef4baa/save.html b/zxyxykhxt/src/main/resources/static/route/pages/ef4baa/save.html index 4931d6b..0e86933 100644 --- a/zxyxykhxt/src/main/resources/static/route/pages/ef4baa/save.html +++ b/zxyxykhxt/src/main/resources/static/route/pages/ef4baa/save.html @@ -1,11 +1,11 @@ - - + + 在线研修与考核系统 - - + +
@@ -14,70 +14,88 @@
用户管理新增数据
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
@@ -85,6 +103,30 @@
@@ -98,153 +120,153 @@ var $win = $(window); window['layer'] = layer; - var init = function() { + var init = function () { var $pageIframe = $('#pageIframe'); $pageIframe.css({ - height: `${$win.height() - 200}px` + height: `${$win.height() - 150}px` }) } init(); - var homepage = document.getElementById('homepage'); - $(document).on('click', '.menu-item', function() { + var homepage = document.getElementById('homepage'); + $(document).on('click', '.menu-item', function () { var url = this.dataset.url; var pageIframe = $('#pageIframe'); pageIframe.attr('src', url); pageIframe.show(); - homepage.style.display = 'none'; + homepage.style.display = 'none'; }); }); - //折线图 - var lineChart = echarts.init(document.getElementById('lineChart')); - var optionLine = { - animation: false, - title: { - //text: '销售时间统计',// - left: 'left', // Center align the title horizontally - }, - xAxis: { - type: 'category', - boundaryGap: false, - data: ['2024-1', '2024-2', '2024-3', '2024-4', '2024-5', '2024-6', '2024-7'] - }, - yAxis: { - type: 'value' - }, - tooltip: { - trigger: 'axis' // 设置触发类型为坐标轴触发 - }, - series: [{ - data: [820, 733, 901, 600, 1290, 500, 1320], - type: 'line', - smooth: true, - areaStyle: {} - }] - }; - lineChart.setOption(optionLine); - - var currentIndex = -1; - var interval = 1000; // 切换间隔时间,单位是毫秒 - var timer; // 定时器变量 + //折线图 + var lineChart = echarts.init(document.getElementById('lineChart')); + var optionLine = { + animation: false, + title: { + //text: '销售时间统计',// + left: 'left', // Center align the title horizontally + }, + xAxis: { + type: 'category', + boundaryGap: false, + data: ['2024-1', '2024-2', '2024-3', '2024-4', '2024-5', '2024-6', '2024-7'] + }, + yAxis: { + type: 'value' + }, + tooltip: { + trigger: 'axis' // 设置触发类型为坐标轴触发 + }, + series: [{ + data: [820, 733, 901, 600, 1290, 500, 1320], + type: 'line', + smooth: true, + areaStyle: {} + }] + }; + lineChart.setOption(optionLine); - // 自动触发选中状态并每隔1秒自动向下一个触发 - function startAutoPlay() { - timer = setInterval(function() { - var dataLen = optionLine.series[0].data.length; - // 取消之前高亮的图形 - lineChart.dispatchAction({ - type: 'downplay', - seriesIndex: 0, - dataIndex: currentIndex - }); - currentIndex = (currentIndex + 1) % dataLen; - // 高亮当前图形 - lineChart.dispatchAction({ - type: 'highlight', - seriesIndex: 0, - dataIndex: currentIndex - }); - // 显示 tooltip - lineChart.dispatchAction({ - type: 'showTip', - seriesIndex: 0, - dataIndex: currentIndex - }); - }, interval); - } + var currentIndex = -1; + var interval = 1000; // 切换间隔时间,单位是毫秒 + var timer; // 定时器变量 - // 开始自动播放 - startAutoPlay(); + // 自动触发选中状态并每隔1秒自动向下一个触发 + function startAutoPlay() { + timer = setInterval(function () { + var dataLen = optionLine.series[0].data.length; + // 取消之前高亮的图形 + lineChart.dispatchAction({ + type: 'downplay', + seriesIndex: 0, + dataIndex: currentIndex + }); + currentIndex = (currentIndex + 1) % dataLen; + // 高亮当前图形 + lineChart.dispatchAction({ + type: 'highlight', + seriesIndex: 0, + dataIndex: currentIndex + }); + // 显示 tooltip + lineChart.dispatchAction({ + type: 'showTip', + seriesIndex: 0, + dataIndex: currentIndex + }); + }, interval); + } + + // 开始自动播放 + startAutoPlay(); + + // 鼠标悬停在图表上时暂停自动播放 + lineChart.on('mouseover', function () { + clearInterval(timer); + }); + + // 鼠标离开图表区域时恢复自动播放 + lineChart.on('mouseout', function () { + startAutoPlay(); + }); + + // 饼状图 + var pieChart = echarts.init(document.getElementById('pieChart')); + var optionPie = { + animation: false, + title: { + //text: '订单占比系统',// + left: 'left' + }, + tooltip: { + trigger: 'item' + }, + legend: { + orient: 'vertical', + left: 'right' + }, + series: [{ + name: '嘻嘻', + type: 'pie', + radius: ['60%', '70%'], + data: [ + {value: 150, name: 'data1'}, + {value: 274, name: 'data2'}, + {value: 310, name: 'data3'}, + {value: 335, name: 'data4'}, + {value: 400, name: 'data5'} + ] + }] + }; + pieChart.setOption(optionPie); + //柱状图 + var barChart = echarts.init(document.getElementById('barChart')); + var optionBar = { + animation: false, + title: { + // text: '收支情况'// + }, + tooltip: {}, + legend: { + //data: ['收入', '支出'] ,// + data: ['data1', 'data2'], + left: 'right' + }, + xAxis: { + data: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月',] + }, + yAxis: {}, + series: [{ + name: 'data1', + type: 'bar', + data: [5, 20, 36, 10, 10, 15, 16, 20, 12, 13, 35, 12] // 第一条柱状图的数据 + }, { + name: 'data2', + type: 'bar', + data: [15, 10, 25, 8, 15, 8, 30, 12, 11, 18, 25, 12] // 第二条柱状图的数据 + }] + }; + barChart.setOption(optionBar); - // 鼠标悬停在图表上时暂停自动播放 - lineChart.on('mouseover', function() { - clearInterval(timer); - }); - // 鼠标离开图表区域时恢复自动播放 - lineChart.on('mouseout', function() { - startAutoPlay(); - }); - - // 饼状图 - var pieChart = echarts.init(document.getElementById('pieChart')); - var optionPie = { - animation: false, - title: { - //text: '订单占比系统',// - left: 'left' - }, - tooltip: { - trigger: 'item' - }, - legend: { - orient: 'vertical', - left: 'right' - }, - series: [{ - name: '嘻嘻', - type: 'pie', - radius: ['60%', '70%'], - data: [ - {value: 150, name: 'data1'}, - {value: 274, name: 'data2'}, - {value: 310, name: 'data3'}, - {value: 335, name: 'data4'}, - {value: 400, name: 'data5'} - ] - }] - }; - pieChart.setOption(optionPie); - //柱状图 - var barChart = echarts.init(document.getElementById('barChart')); - var optionBar = { - animation: false, - title: { - // text: '收支情况'// - }, - tooltip: {}, - legend: { - //data: ['收入', '支出'] ,// - data: ['data1', 'data2'] , - left: 'right' - }, - xAxis: { - data: ['一月', '二月', '三月', '四月', '五月','六月','七月','八月','九月','十月','十一月','十二月',] - }, - yAxis: {}, - series: [{ - name: 'data1', - type: 'bar', - data: [5, 20, 36, 10, 10,15,16,20,12,13,35,12] // 第一条柱状图的数据 - }, { - name: 'data2', - type: 'bar', - data: [15, 10, 25, 8, 15,8,30,12,11,18,25,12] // 第二条柱状图的数据 - }] - }; - barChart.setOption(optionBar); - -