From 2dd107d163ec51b4630a70bfb7561dcafc56f361 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B7=B4=E6=8E=8C?= Date: Thu, 4 Mar 2021 16:14:25 +0800 Subject: [PATCH] 0 --- app/chengji/view/bjtongji/renke.html | 4 +- app/chengji/view/bjtongji/renke_edit.html | 4 +- app/kaoshi/route/kaoshi.php | 10 +++ app/kaoshi/view/index/create_setp4.html | 40 +++++++-- app/kaoshi/view/index/index.html | 6 +- app/kaoshi/view/luru_fengong/create.html | 8 +- app/kaoshi/view/luru_fengong/index.html | 4 +- app/luru/view/index/online.html | 8 +- app/luru/view/index/onlineedit.html | 5 +- app/teach/view/ban_zhu_ren/create.html | 99 +---------------------- database/seeds/Category.php | 20 ++--- database/seeds/Rule.php | 8 +- 12 files changed, 80 insertions(+), 136 deletions(-) diff --git a/app/chengji/view/bjtongji/renke.html b/app/chengji/view/bjtongji/renke.html index 1b8bbf77..b64203bd 100755 --- a/app/chengji/view/bjtongji/renke.html +++ b/app/chengji/view/bjtongji/renke.html @@ -7,8 +7,6 @@ {block name="nav"} 考试管理 - 更多操作 - 前期操作 任课教师 {$list['kaoshititle']} @@ -156,7 +154,7 @@ { $('#banji_id').children().remove(); }else{ - cjgl.createCheckbox('banji_id', formval, '/tools/kscy/class', 'banji_id', 'banTitle'); + cjgl.createCheckbox('banji_id', formval, '/kaoshi/kscy/class', 'banji_id', 'banTitle'); } } diff --git a/app/chengji/view/bjtongji/renke_edit.html b/app/chengji/view/bjtongji/renke_edit.html index c0bc9afc..b03fb65e 100755 --- a/app/chengji/view/bjtongji/renke_edit.html +++ b/app/chengji/view/bjtongji/renke_edit.html @@ -56,10 +56,10 @@ if(val.length > 0){ // 获取数据 $.post( - "/teacher/index/srcteacher", + "/admin/index/srcteacher", { "str": val, - 'danwei_id': "{$list.set.danwei_id}" + 'danwei_id': "{$list.set.school_id}" }, function(data,status){ data = data.data; diff --git a/app/kaoshi/route/kaoshi.php b/app/kaoshi/route/kaoshi.php index 22ee4677..dbb95bd0 100755 --- a/app/kaoshi/route/kaoshi.php +++ b/app/kaoshi/route/kaoshi.php @@ -78,6 +78,16 @@ Route::group('lrfg', function () { }); +// 教师管理 +Route::group('kscy', function () { + Route::rule('school','KsCanyu/school','post'); # 参与学科 + Route::rule('grade','KsCanyu/grade','post'); # 参与学科 + Route::rule('class','KsCanyu/class','post'); # 参与学科 + Route::rule('tjclass','KsCanyu/tjClass','post'); # 参与学科 + Route::rule('subject','KsCanyu/subject','post'); # 参与学科 +}); + + diff --git a/app/kaoshi/view/index/create_setp4.html b/app/kaoshi/view/index/create_setp4.html index d6c3f629..d4c897e6 100644 --- a/app/kaoshi/view/index/create_setp4.html +++ b/app/kaoshi/view/index/create_setp4.html @@ -114,9 +114,11 @@
- + 完成
{/block} @@ -127,6 +129,32 @@ var form = layui.form ,cjgl = layui.cjgl; + //监听提交 + form.on('submit(kssubmit)', function(data){ + $.ajax({ + url:"{$list.set.url}", + type:"{$list.set.formpost}", + data:data.field, + dataType:'json', + success:function(result){ + if(result.val == 1) + { + // $(location).attr('href', '/kaoshi/kaoshiset/create/' + "{$list['set']['kaoshi_id']}"); + parent.layer.msg(result.msg); + }else{ + layer.msg(result.msg); + } + }, + error:function(xhr,status,error) { + layer.msg('数据处理错误',{ + icon: 2, + time: 2000 //2秒关闭(如果不配置,默认是3秒) + }); + } + }); + return false; + }); + // 加载学校列表 addSchool(); @@ -144,14 +172,14 @@ function addSchool(){ // 获取参数 formval = form.val("myform"); - cjgl.createSelectOption('school_id', formval, '/tools/kscy/school', 'id', 'title'); + cjgl.createSelectOption('school_id', formval, '/kaoshi/kscy/school', 'id', 'title'); } // 添加年级 function addNianji(){ // 获取参数 formval = form.val("myform"); - cjgl.createSelectOption('ruxuenian', formval, '/tools/kscy/grade', 'ruxuenian', 'nianjiname'); + cjgl.createSelectOption('ruxuenian', formval, '/kaoshi/kscy/grade', 'ruxuenian', 'nianjiname'); } // 添加学科 @@ -159,7 +187,7 @@ // 获取参数 formval = form.val("myform"); console.log(formval); - cjgl.createCheckbox('banji_id', formval, '/tools/kscy/class', 'banji_id', 'banTitle'); + cjgl.createCheckbox('banji_id', formval, '/kaoshi/kscy/class', 'banji_id', 'banTitle'); } @@ -167,7 +195,7 @@ function addSubject(){ // 获取参数 formval = form.val("myform"); - cjgl.createCheckbox('subject_id', formval, '/tools/kscy/subject', 'subject_id', 'title'); + cjgl.createCheckbox('subject_id', formval, '/kaoshi/kscy/subject', 'subject_id', 'title'); } diff --git a/app/kaoshi/view/index/index.html b/app/kaoshi/view/index/index.html index 91a57ba6..d9e91ce1 100755 --- a/app/kaoshi/view/index/index.html +++ b/app/kaoshi/view/index/index.html @@ -61,9 +61,9 @@