增加成绩录入分工
This commit is contained in:
1 parent
1c041c01f4
commit
db33f8f450
17 files changed
+829
-21
No files matched your search
@@ -246,7 +246,7 @@
|
||||
备注
|
||||
</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" id="beizhu" name="beizhu" lay-verify="required" class="layui-input " value="{$list.data.beizhu|default=''}" placeholder="0-80个字符">
|
||||
<input type="text" id="beizhu" name="beizhu" class="layui-input " value="{$list.data.beizhu|default=''}" placeholder="0-80个字符">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item" style="text-align: right;">
|
||||
|
||||
@@ -122,6 +122,29 @@ class Index extends AdminBase
|
||||
$this->view->assign('list', $list);
|
||||
// 渲染
|
||||
return $this->view->fetch();
|
||||
}
|
||||
|
||||
|
||||
// 修改考试信息
|
||||
public function editSetp1($id)
|
||||
{
|
||||
// 获取考试信息
|
||||
$list['data'] = KS::where('id', $id)
|
||||
->field('id, title, xueqi_id, category_id, bfdate, enddate, zuzhi_id, fanwei_id')
|
||||
->find();
|
||||
|
||||
// 设置页面标题
|
||||
$list['set'] = array(
|
||||
'webtitle' => '编辑考试'
|
||||
,'butname' => '修改'
|
||||
,'formpost' => 'PUT'
|
||||
,'url' => '/kaoshi/index/update/' . $id
|
||||
);
|
||||
|
||||
// 模板赋值
|
||||
$this->view->assign('list', $list);
|
||||
// 渲染
|
||||
return $this->view->fetch('create_setp1');
|
||||
}
|
||||
|
||||
|
||||
@@ -298,7 +321,7 @@ class Index extends AdminBase
|
||||
// 更新数据
|
||||
$ks = new KS();
|
||||
$ksdata = $ks::update($list);
|
||||
$ksdata ? $data = ['msg' => '更新成功', 'val' => 1]
|
||||
$ksdata ? $data = ['msg' => '更新成功', 'val' => 1, 'kaoshi_id'=> $ksdata->id]
|
||||
: $data = ['msg' => '数据处理错误', 'val' => 0];
|
||||
|
||||
// 返回信息
|
||||
|
||||
@@ -28,6 +28,7 @@ class KaoshiSet extends AdminBase
|
||||
$src['kaoshi_id'] = $kaoshi_id;
|
||||
$list['subject'] = $ksset->srcSubject($src);
|
||||
$nj = $ksset->srcGrade($kaoshi_id);
|
||||
$list['nj'] = $nj;
|
||||
$kaoshi = new \app\kaoshi\model\Kaoshi;
|
||||
$list['sj'] = $kaoshi::where('id', $kaoshi_id)->value('bfdate');
|
||||
|
||||
|
||||
Loaded 3 of 17 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user