Files
PropertyDeployment/resources/Web/MicroCommunityIotWeb/html/pages/lock/lockMachineManage/lockMachineManage.html
Anfioo be079067e6 version9
4
2026-01-14 11:39:11 +08:00

168 lines
9.6 KiB
HTML

<div>
<div class="row">
<div class="col-lg-12">
<div class="ibox ">
<div class="ibox-title">
<h5>
<vc:i18n name="查询条件"></vc:i18n>
</h5>
<div class="ibox-tools" style="top:10px;">
<!-- <button type="button" class="btn btn-link btn-sm" style="margin-right:10px;" v-on:click="_moreCondition()">
{{lockMachineManageInfo.moreCondition == true?'隐藏':'更多'}}
</button> -->
</div>
</div>
<div class="ibox-content">
<div class="row">
<div class="col-sm-2">
<div class="form-group">
<input type="text" :placeholder="vc.i18n('请输入门锁名称','lockMachineManage')"
v-model="lockMachineManageInfo.conditions.machineName" class=" form-control">
</div>
</div>
<div class="col-sm-2">
<div class="form-group">
<input type="text" :placeholder="vc.i18n('请输入门锁编号','lockMachineManage')"
v-model="lockMachineManageInfo.conditions.machineCode" class=" form-control">
</div>
</div>
<div class="col-sm-2">
<div class="form-group input-group">
<input type="text" :placeholder="vc.i18n('请选择房屋编号','lockMachineManage')"
v-model="lockMachineManageInfo.conditions.roomId" class=" form-control">
<div class="input-group-prepend">
<button type="button" class="btn btn-primary btn-sm" v-on:click="selectRoom()">
<i class="fa fa-search"></i>
<vc:i18n name="选择" namespace="lockMachineManage"></vc:i18n>
</button>
</div>
</div>
</div>
<div class="col-sm-2" >
<div class="form-group">
<select class="custom-select" v-model="lockMachineManageInfo.conditions.implBean">
<option selected disabled value="">{{vc.i18n('请选择门禁厂家','lockMachineManage')}}</option>
<option v-for="(item, index) in lockMachineFactoryList" :key="index" :value="item.factoryId">
{{item.factoryName}}
</option>
</select>
</div>
</div>
<div class="col-sm-2">
<button type="button" class="btn btn-primary btn-sm" v-on:click="_queryLockMachineMethod()">
<vc:i18n name="查询" namespace="lockMachineManage"></vc:i18n>
</button>
<button type="button" class="btn btn-primary btn-sm" v-on:click="_resetLockMachineMethod()">
<vc:i18n name="重置" namespace="lockMachineManage"></vc:i18n>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<div class="ibox">
<div class="ibox-title">
<h5>
<vc:i18n name="门锁设备" namespace="lockMachineManage"></vc:i18n>
</h5>
<div class="ibox-tools" style="top:10px;">
<button type="button" class="btn btn-primary btn-sm" v-on:click="_openAddLockMachineModal()">
<vc:i18n name="添加" namespace="lockMachineManage"></vc:i18n>
</button>
</div>
</div>
<div class="ibox-content ibox-content-auto-height">
<table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
<thead>
<tr>
<th class="text-center">
<vc:i18n name='门锁ID' namespace='lockMachineManage'></vc:i18n>
</th>
<th class="text-center">
<vc:i18n name='门锁名称' namespace='lockMachineManage'></vc:i18n>
</th>
<th class="text-center">
<vc:i18n name='门锁编号' namespace='lockMachineManage'></vc:i18n>
</th>
<th class="text-center">
<vc:i18n name='房屋名称' namespace='lockMachineManage'></vc:i18n>
</th>
<th class="text-center">
<vc:i18n name='剩余电量(百分比)' namespace='lockMachineManage'></vc:i18n>
</th>
<th class="text-center">
<vc:i18n name='门禁厂家' namespace='lockMachineManage'></vc:i18n>
</th>
<th class="text-center">
<vc:i18n name='在线状态' namespace='lockMachineManage'></vc:i18n>
</th>
<th class="text-center">
<vc:i18n name='心跳时间' namespace='lockMachineManage'></vc:i18n>
</th>
<th class="text-center">
<vc:i18n name='创建时间' namespace='lockMachineManage'></vc:i18n>
</th>
<th class="text-center">
<vc:i18n name='操作'></vc:i18n>
</th>
</tr>
</thead>
<tbody>
<tr v-for="lockMachine in lockMachineManageInfo.lockMachines">
<td class="text-center">{{lockMachine.machineId}}</td>
<td class="text-center">{{lockMachine.machineName}}</td>
<td class="text-center">{{lockMachine.machineCode}}</td>
<td class="text-center">{{lockMachine.roomName}}</td>
<td class="text-center">{{lockMachine.charge}}%</td>
<td class="text-center">{{lockMachine.factoryName}}</td>
<td class="text-center">{{lockMachine.stateName}}</td>
<td class="text-center">{{lockMachine.heartbeatTime}}</td>
<td class="text-center">{{lockMachine.createTime}}</td>
<td class="text-center">
<div class="btn-group">
<button class="btn-white btn btn-xs" v-on:click="_toLockDetail(lockMachine)">
<vc:i18n name='详情'></vc:i18n>
</button>
</div>
<div class="btn-group">
<button class="btn-white btn btn-xs" v-on:click="_unlock(lockMachine)">
<vc:i18n name='开锁'></vc:i18n>
</button>
</div>
<div class="btn-group">
<button class="btn-white btn btn-xs" v-on:click="_openEditLockMachineModel(lockMachine)">
<vc:i18n name='修改'></vc:i18n>
</button>
</div>
<div class="btn-group">
<button class="btn-white btn btn-xs" v-on:click="_openDeleteLockMachineModel(lockMachine)">
<vc:i18n name='删除'></vc:i18n>
</button>
</div>
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="10">
<ul class="pagination float-right"></ul>
</td>
</tr>
</tfoot>
</table>
<!-- 分页 -->
<vc:create path="frame/pagination"></vc:create>
</div>
</div>
</div>
</div>
<vc:create path="lock/addLockMachine" callBackListener="" callBackFunction=""></vc:create>
<vc:create path="lock/editLockMachine"></vc:create>
<vc:create path="lock/deleteLockMachine"></vc:create>
</div>