diff --git a/application/chengji/controller/Index.php b/application/chengji/controller/Index.php
index 1b7289da..b45f4185 100644
--- a/application/chengji/controller/Index.php
+++ b/application/chengji/controller/Index.php
@@ -716,7 +716,7 @@ class Index extends Base
->only([
'page'=>'1',
'limit'=>'10',
- 'field'=>'banji',
+ 'field'=>'subject_id',
'type'=>'desc',
'kaohao'=>''
],'POST');
@@ -726,7 +726,7 @@ class Index extends Base
$data = $chengji
->where('kaohao_id',$src['kaohao'])
->field('id,kaohao_id,subject_id,user_id,defen,update_time')
- ->order('subject_id')
+ ->order([$src['field']=>$src['type']])
->with([
'subjectName'=>function($query){
$query->field('id,title');
diff --git a/application/chengji/view/index/deletecjs.html b/application/chengji/view/index/deletecjs.html
index ff48dff2..1f5a4dbf 100644
--- a/application/chengji/view/index/deletecjs.html
+++ b/application/chengji/view/index/deletecjs.html
@@ -37,12 +37,18 @@
*年级
- {php} $njlist = nianjiList();{/php}
+ {php}
+ $nianji = new \app\kaoshi\model\KaoshiNianji;
+ $njlist = $nianji
+ ->where('kaoshiid',$list['set']['kaoshi'])
+ ->field('nianji,nianjiname')
+ ->select();
+ {/php}
diff --git a/application/chengji/view/index/read_add.html b/application/chengji/view/index/read_add.html
index 2bd258ef..98774b30 100644
--- a/application/chengji/view/index/read_add.html
+++ b/application/chengji/view/index/read_add.html
@@ -33,7 +33,7 @@
// 设置列
options.cols=[[ //表头
{type:'checkbox', fixed: 'left'},
- {title: '学科', minWidth:100,sort: true,templet:function(d){
+ {title: '学科', minWidth:100,sort:false,templet:function(d){
var str='';
if(d.subject_name)
{
@@ -41,7 +41,7 @@
}
return str;
}},
- {field: 'defen', title: '得分 ', minWidth:100,sort: true},
+ {field: 'defen', title: '得分 ', minWidth:100,sort:false},
{title: '成绩录入',templet:function(d){
var str='';
if(d.user_name)
@@ -50,6 +50,7 @@
}
return str;
}},
+ {field: 'update_time', title: '录入时间 ', minWidth:100,sort:false},
{field: 'id', title: '操作',toolbar: '#barDemo',minWidth:140}
]];
options.url = "{:url('ajaxaddinfo')}";
@@ -79,7 +80,6 @@
var layEvent = obj.event; //获得 lay-event 对应的值(也可以是表头的 event 参数对应的值)
var tr = obj.tr; //获得当前行 tr 的DOM对象
switch(layEvent){
- case 'detail':// 查看
case 'del':// 删除
cjgl.del(obj,"/chengji");
break;
diff --git a/application/common/view/list.html b/application/common/view/list.html
index c904b279..358515b3 100644
--- a/application/common/view/list.html
+++ b/application/common/view/list.html
@@ -46,6 +46,10 @@
+
+