作者 郭盛
1 个管道 的构建 通过 耗费 1 秒

修改帮助人数

... ... @@ -101,9 +101,9 @@ class Teacher extends Backend
$params = $this->request->post("row/a");
if ($params) {
$params = $this->preExcludeFields($params);
// if($params['help_num'] == 0){
// $this->error('请配置初始帮助人数');
// }
if($params['help_num'] == 0){
$this->error('请配置初始帮助人数');
}
if($params['status'] == 1){
$teacher = Db::name('teacher')
... ...
... ... @@ -120,12 +120,12 @@
<!--<input id="c-territory_id" data-rule="required" data-source="territory/index" class="form-control selectpage" name="row[territory_id]" type="text" value="{$row.territory_id|htmlentities}">-->
<!--</div>-->
<!--</div>-->
<!--<div class="form-group">-->
<!--<label class="control-label col-xs-12 col-sm-2">{:__('Help_num')}:</label>-->
<!--<div class="col-xs-12 col-sm-8">-->
<!--<input id="c-help_num" class="form-control" name="row[help_num]" type="number" value="{$row.help_num|htmlentities}">-->
<!--</div>-->
<!--</div>-->
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Help_num')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-help_num" class="form-control" name="row[help_num]" type="number" value="{$row.help_num|htmlentities}">
</div>
</div>
<!--<div class="form-group">-->
<!--<label class="control-label col-xs-12 col-sm-2">{:__('Level')}:</label>-->
<!--<div class="col-xs-12 col-sm-8">-->
... ...
... ... @@ -9412,7 +9412,7 @@
<div class="row mt0 footer">
<div class="col-md-6" align="left">
Generated on 2020-03-18 10:26:02 </div>
Generated on 2020-03-18 10:55:18 </div>
<div class="col-md-6" align="right">
<a href="https://www.fastadmin.net" target="_blank">FastAdmin</a>
</div>
... ...