正在显示
2 个修改的文件
包含
1 行增加
和
7 行删除
@@ -183,7 +183,7 @@ class Study extends Backend | @@ -183,7 +183,7 @@ class Study extends Backend | ||
183 | $unique = time(); | 183 | $unique = time(); |
184 | $brpath = Resource::StudyBar($unique); | 184 | $brpath = Resource::StudyBar($unique); |
185 | $time = date('YmdHi',time()); | 185 | $time = date('YmdHi',time()); |
186 | - $this->model->save(['barcode'=>$brpath],['sno'=>$time],['id'=>$id]); | 186 | + $this->model->save(['barcode'=>$brpath,'sno'=>$time,'unique'=>$time],['id'=>$id]); |
187 | Db::commit(); | 187 | Db::commit(); |
188 | } catch (ValidateException|PDOException|Exception $e) { | 188 | } catch (ValidateException|PDOException|Exception $e) { |
189 | Db::rollback(); | 189 | Db::rollback(); |
@@ -49,12 +49,6 @@ | @@ -49,12 +49,6 @@ | ||
49 | </div> | 49 | </div> |
50 | </div> | 50 | </div> |
51 | <div class="form-group"> | 51 | <div class="form-group"> |
52 | - <label class="control-label col-xs-12 col-sm-2">{:__('Sno')}:</label> | ||
53 | - <div class="col-xs-12 col-sm-8"> | ||
54 | - <input id="c-sno" class="form-control" name="row[sno]" type="text"> | ||
55 | - </div> | ||
56 | - </div> | ||
57 | - <div class="form-group"> | ||
58 | <label class="control-label col-xs-12 col-sm-2">{:__('Team_id')}:</label> | 52 | <label class="control-label col-xs-12 col-sm-2">{:__('Team_id')}:</label> |
59 | <div class="col-xs-12 col-sm-8"> | 53 | <div class="col-xs-12 col-sm-8"> |
60 | <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=""> | 54 | <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=""> |
-
请 注册 或 登录 后发表评论