正在显示
3 个修改的文件
包含
5 行增加
和
8 行删除
@@ -48,10 +48,7 @@ class AdminOrderController extends AdminBaseController{ | @@ -48,10 +48,7 @@ class AdminOrderController extends AdminBaseController{ | ||
48 | ->join('equipment b','a.mac_address=b.mac_address') | 48 | ->join('equipment b','a.mac_address=b.mac_address') |
49 | ->where($where) | 49 | ->where($where) |
50 | ->order('start_time','desc') | 50 | ->order('start_time','desc') |
51 | - ->paginate(10)->each(function ($item){ | ||
52 | - $item['time']=ceil(($item['end_time']-$item['start_time'])/3600); | ||
53 | - return $item; | ||
54 | - }); | 51 | + ->paginate(10); |
55 | $this->assign('data',$data); | 52 | $this->assign('data',$data); |
56 | $this->assign('hospital', isset($param['hospital']) ? $param['hospital'] : ''); | 53 | $this->assign('hospital', isset($param['hospital']) ? $param['hospital'] : ''); |
57 | $this->assign('order_no', isset($param['order_no']) ? $param['order_no'] : ''); | 54 | $this->assign('order_no', isset($param['order_no']) ? $param['order_no'] : ''); |
@@ -63,9 +63,9 @@ | @@ -63,9 +63,9 @@ | ||
63 | <td>{$vo.mac_address}</td> | 63 | <td>{$vo.mac_address}</td> |
64 | <td>{$vo.serial_number}</td> | 64 | <td>{$vo.serial_number}</td> |
65 | <td>{$vo.hospital}</td> | 65 | <td>{$vo.hospital}</td> |
66 | - <td>{$vo.sumTime}</td> | ||
67 | - <td>{$vo.num}</td> | ||
68 | - <td>{$vo.average}</td> | 66 | + <td>{$vo.sumTime}小时</td> |
67 | + <td>{$vo.num}次</td> | ||
68 | + <td>{$vo.average}小时</td> | ||
69 | </tr> | 69 | </tr> |
70 | </foreach> | 70 | </foreach> |
71 | </table> | 71 | </table> |
@@ -44,7 +44,7 @@ | @@ -44,7 +44,7 @@ | ||
44 | <td>{$vo.hospital}</td> | 44 | <td>{$vo.hospital}</td> |
45 | <td>{:date('Y-m-d H:i:s',$vo.start_time)}</td> | 45 | <td>{:date('Y-m-d H:i:s',$vo.start_time)}</td> |
46 | <td>{:date('Y-m-d H:i:s',$vo.end_time)}</td> | 46 | <td>{:date('Y-m-d H:i:s',$vo.end_time)}</td> |
47 | - <td>约{$vo.time}小时</td> | 47 | + <td>{$vo.time}小时</td> |
48 | <td>{$vo.price}元</td> | 48 | <td>{$vo.price}元</td> |
49 | </tr> | 49 | </tr> |
50 | </foreach> | 50 | </foreach> |
-
请 注册 或 登录 后发表评论