修改已知BUG
This commit is contained in:
1 parent
fad86983d8
commit
9bf2d795bc
3 files changed
+21
-1
No files matched your search
@@ -475,6 +475,13 @@ class Index extends BaseController
|
||||
public function deletecjs($kaoshi)
|
||||
{
|
||||
|
||||
// 判断考试结束时间是否已过
|
||||
$enddate = kaoshiDate($kaoshi,'enddate');
|
||||
if($enddate === true)
|
||||
{
|
||||
$this->error('考试时间已过,不能删除成绩','/login/err');
|
||||
}
|
||||
|
||||
// 设置页面标题
|
||||
$list['set'] = array(
|
||||
'webtitle'=>'批量删除成绩',
|
||||
@@ -556,6 +563,16 @@ class Index extends BaseController
|
||||
|
||||
$id = explode(',', $id);
|
||||
|
||||
$khid = Chengji::where('id',$id['0'])->value('kaohao_id');
|
||||
$kaoshiid = Kaohao:: where('id',$khid)->value('Kaoshi');
|
||||
|
||||
// 判断考试结束时间是否已过
|
||||
$enddate = kaoshiDate($kaoshiid,'enddate');
|
||||
if($enddate === true)
|
||||
{
|
||||
$this->error('考试时间已过,不能删除成绩','/login/err');
|
||||
}
|
||||
|
||||
$data = Chengji::destroy($id);
|
||||
|
||||
// 根据更新结果设置返回提示信息
|
||||
|
||||
@@ -57,7 +57,7 @@ class Auth
|
||||
//保存考号、下载试卷标签、下载成绩采集表
|
||||
'updateset','biaoqianxls','dwcaiji',
|
||||
//课题结题图片上传和更新
|
||||
'jtupdate','ajaxdata'
|
||||
'jtupdate','ajaxdata',
|
||||
);
|
||||
// 排除指定模块下的指定方法
|
||||
$uneed_u = array('index/Index/index');
|
||||
|
||||
@@ -102,6 +102,9 @@ class Rule extends Seeder
|
||||
['title'=>'录入人信息','name'=>'Chengji/Index/readAdd','paixu'=>8,'pid'=>302],
|
||||
['title'=>'删除成绩','name'=>'Chengji/Index/delete','paixu'=>9,'pid'=>302],
|
||||
['title'=>'成绩状态','name'=>'Chengji/Index/setStatus','paixu'=>10,'pid'=>302],
|
||||
['title'=>'批量删除界面','name'=>'Chengji/Index/deletecjs','paixu'=>11,'pid'=>302],
|
||||
['title'=>'批量删除','name'=>'Chengji/Index/deletecjmore','paixu'=>12,'pid'=>302],
|
||||
|
||||
// 学生成绩
|
||||
['title'=>'下载学生成绩','name'=>'chengji/Index/dwChengji','paixu'=>21,'pid'=>302],
|
||||
// 班级成绩
|
||||
|
||||
Reference in new issue
Block a user