作者 开飞机的舒克

后台功能修改

@@ -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="">