修复修改学生信息中学号错误
This commit is contained in:
1 parent
dac0c3a7ad
commit
18465e491f
2 files changed
+3
-3
No files matched your search
@@ -236,7 +236,7 @@ class Index extends AdminBase
|
||||
public function edit($id)
|
||||
{
|
||||
// 获取学生信息
|
||||
$list['data'] = STU::field('id, xingming, sex, shenfenzhenghao, shengri, banji_id, kaoshi, status, quanpin, shoupin, kaohao')
|
||||
$list['data'] = STU::field('id, xingming, sex, shenfenzhenghao, shengri, banji_id, kaoshi, status, quanpin, shoupin, xuehao')
|
||||
->with([
|
||||
'stuBanji'=>function($query){
|
||||
$query->field('id, ruxuenian, paixu, school_id')
|
||||
|
||||
@@ -75,11 +75,11 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="kaohao" class="layui-form-label">
|
||||
<label for="xuehao" class="layui-form-label">
|
||||
<span class="x-red">*</span>学号
|
||||
</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" id="kaohao" name="kaohao" lay-verify="required" autocomplete="off" class="layui-input " value="{$list.data.kaohao|default=''}" placeholder="字母和数字,最多25个字符">
|
||||
<input type="text" id="xuehao" name="xuehao" lay-verify="required" autocomplete="off" class="layui-input " value="{$list.data.xuehao|default=''}" placeholder="字母和数字,最多25个字符">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item" style="text-align: right;">
|
||||
|
||||
Reference in new issue
Block a user