作者 开飞机的舒克

后台功能修改

... ... @@ -183,7 +183,7 @@ class Study extends Backend
$unique = time();
$brpath = Resource::StudyBar($unique);
$time = date('YmdHi',time());
$this->model->save(['barcode'=>$brpath],['sno'=>$time],['id'=>$id]);
$this->model->save(['barcode'=>$brpath,'sno'=>$time,'unique'=>$time],['id'=>$id]);
Db::commit();
} catch (ValidateException|PDOException|Exception $e) {
Db::rollback();
... ...
... ... @@ -49,12 +49,6 @@
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Sno')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-sno" class="form-control" name="row[sno]" type="text">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Team_id')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-team_id" data-rule="required" data-source="team/index" class="form-control selectpage" data-field="title" name="row[team_id]" type="text" value="">
... ...