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 @@