...
|
...
|
@@ -29,10 +29,10 @@ |
|
|
<body>
|
|
|
<div class="wrap js-check-wrap">
|
|
|
<ul class="nav nav-tabs">
|
|
|
<li class="active"><a>添加设备信息</a></li>
|
|
|
<li class="active"><a>编辑设备信息</a></li>
|
|
|
</ul>
|
|
|
<!--js-ajax-form margin-top-20-->
|
|
|
<form action="{:url('AdminTestInfo/addPost')}" method="post" class="form-horizontal js-ajax-form margin-top-20">
|
|
|
<form action="" method="post" class="form-horizontal js-ajax-form margin-top-20">
|
|
|
<div class="row">
|
|
|
<div class="col-md-2"></div>
|
|
|
<div class="col-md-8">
|
...
|
...
|
@@ -41,35 +41,30 @@ |
|
|
<th width="80">设备锁编号<span class="form-required">*</span></th>
|
|
|
<td>
|
|
|
<input class="form-control" type="text" name="serial_number"
|
|
|
id="serial_number" required value="" placeholder="请输入设备锁编号"/>
|
|
|
id="serial_number" required value="{$data.serial_number}" placeholder="请输入设备锁编号"/>
|
|
|
</td>
|
|
|
<th width="80">设备MAC地址<span class="form-required">*</span></th>
|
|
|
<td><input class="form-control" type="text" name="mac_address" id="mac_address" value=""
|
|
|
<td><input class="form-control" type="text" name="mac_address" id="mac_address" value="{$data.mac_address}"
|
|
|
placeholder="请输入设备MAC地址" required></td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th width="80">设备锁名称<span class="form-required">*</span></th>
|
|
|
<td>
|
|
|
<input class="form-control" type="text" name="name" id="name" value=""
|
|
|
<input class="form-control" type="text" name="name" id="name" value="{$data.name}"
|
|
|
placeholder="请输入设备锁名称" required>
|
|
|
</td>
|
|
|
<th width="80">所属医院</th>
|
|
|
<th width="80">所属医院<span class="form-required">*</span></th>
|
|
|
<td>
|
|
|
<input class="form-control" type="text" name="hospital" id="hospital" value=""
|
|
|
placeholder="请输入所属医院">
|
|
|
<input class="form-control" type="text" name="hospital" id="hospital" value="{$data.hospital}"
|
|
|
placeholder="请输入所属医院" required>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th width="80">备注<span class="form-required">*</span></th>
|
|
|
<td>
|
|
|
<input class="form-control" type="text" name="note" id="note"
|
|
|
<td colspan="3">
|
|
|
<input class="form-control" type="text" name="note" id="note" value="{$data.note}"
|
|
|
placeholder="请填写备注" required>
|
|
|
</td>
|
|
|
<th width="80">导入时间<span class="form-required">*</span></th>
|
|
|
<td>
|
|
|
<input class="form-control" name="create_time" id="create_time"
|
|
|
value="{:date('Y-m-d H:i:s',time())}" required>
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
</table>
|
...
|
...
|
@@ -84,19 +79,17 @@ |
|
|
<script type="text/javascript">
|
|
|
function confirm() {
|
|
|
var serial_number = $('#serial_number').val();
|
|
|
var mac_address = $('#mac_address').val();
|
|
|
var name = $('#name').val();
|
|
|
// var mac_address = $('#mac_address').val();
|
|
|
// var name = $('#name').val();
|
|
|
var hospital = $('#hospital').val();
|
|
|
var note = $('#note').val();
|
|
|
var create_time = $('#create_time').val();
|
|
|
|
|
|
return {
|
|
|
serial_number:serial_number,
|
|
|
mac_address :mac_address,
|
|
|
name :name,
|
|
|
// mac_address :mac_address,
|
|
|
// name :name,
|
|
|
hospital :hospital,
|
|
|
note :note,
|
|
|
create_time :create_time
|
|
|
note :note
|
|
|
};
|
|
|
}
|
|
|
</script>
|
...
|
...
|
|