machineManage.html 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <div id="component" class="wrapper wrapper-content animated fadeInRight ecommerce">
  2. <div class="row">
  3. <div class="col-lg-12">
  4. <div class="ibox ">
  5. <div class="ibox-title">
  6. <h5>查询条件</h5>
  7. <div class="ibox-tools" style="top:10px;">
  8. <button type="button" class="btn btn-link btn-sm" style="margin-right:10px;" v-on:click="_moreCondition()">{{machineManageInfo.moreCondition == true?'隐藏':'更多'}}</button>
  9. </div>
  10. </div>
  11. <div class="ibox-content">
  12. <div class="row">
  13. <div class="col-sm-4">
  14. <div class="form-group">
  15. <input type="text" placeholder="请输入设备编码" v-model="machineManageInfo.conditions.machineCode" class=" form-control">
  16. </div>
  17. </div>
  18. <div class="col-sm-4">
  19. <select class="custom-select" v-model="machineManageInfo.conditions.machineTypeCd">
  20. <option selected value="">请选择设备类型</option>
  21. <option value="9999">锐目门禁</option>
  22. <option value="9998">其他</option>
  23. </select></div>
  24. <div class="col-sm-3">
  25. <div class="form-group">
  26. <input type="text" placeholder="请输入设备名称" v-model="machineManageInfo.conditions.machineName" class=" form-control">
  27. </div>
  28. </div>
  29. <div class="col-sm-1">
  30. <button type="button" class="btn btn-primary btn-sm" v-on:click="_queryMachineMethod()">
  31. <i class="glyphicon glyphicon-search"></i> 查询
  32. </button>
  33. </div>
  34. </div>
  35. <div class="row">
  36. <div class="col-sm-4" v-if="machineManageInfo.moreCondition == true">
  37. <div class="form-group">
  38. <input type="text" placeholder="请输入设备IP" v-model="machineManageInfo.conditions.machineIp" class=" form-control">
  39. </div>
  40. </div>
  41. <div class="col-sm-4" v-if="machineManageInfo.moreCondition == true">
  42. <div class="form-group">
  43. <input type="text" placeholder="请输入设备MAC" v-model="machineManageInfo.conditions.machineMac" class=" form-control">
  44. </div>
  45. </div>
  46. </div>
  47. </div>
  48. </div>
  49. </div>
  50. </div>
  51. <div class="row">
  52. <div class="col-lg-12">
  53. <div class="ibox">
  54. <div class="ibox-title">
  55. <h5>设备信息</h5>
  56. <div class="ibox-tools" style="top:10px;">
  57. <button type="button" class="btn btn-primary btn-sm" v-on:click="_openAddMachineModal()">
  58. <i class="glyphicon glyphicon-plus"></i>
  59. 添加设备
  60. </button>
  61. </div>
  62. </div>
  63. <div class="ibox-content">
  64. <table class="footable table table-stripped toggle-arrow-tiny"
  65. data-page-size="15"
  66. >
  67. <thead>
  68. <tr>
  69. <!--<th class="text-center">设备ID</th>-->
  70. <th class="text-center">设备编码</th>
  71. <th class="text-center">版本号</th>
  72. <th class="text-center">设备名称</th>
  73. <th class="text-center">设备类型</th>
  74. <th class="text-center">设备位置</th>
  75. <th class="text-center">状态</th>
  76. <th class="text-center">设备IP</th>
  77. <th class="text-center">设备MAC</th>
  78. <th class="text-center">操作</th>
  79. </tr>
  80. </thead>
  81. <tbody>
  82. <tr v-for="machine in machineManageInfo.machines">
  83. <!--<td class="text-center">{{machine.machineId}}</td>-->
  84. <td class="text-center">{{machine.machineCode}}</td>
  85. <td class="text-center">{{machine.machineVersion}}</td>
  86. <td class="text-center">{{machine.machineName}}</td>
  87. <td class="text-center">{{machine.machineTypeCdName}}</td>
  88. <td class="text-center">{{machine.locationObjName}}</td>
  89. <td class="text-center">{{machine.stateName}}</td>
  90. <td class="text-center">{{machine.machineIp}}</td>
  91. <td class="text-center">{{machine.machineMac}}</td>
  92. <td class="text-center">
  93. <div class="btn-group">
  94. <button class="btn-white btn btn-xs" v-on:click="_openEditMachineModel(machine)">修改</button>
  95. </div>
  96. <div class="btn-group">
  97. <button class="btn-white btn btn-xs" v-on:click="_openDeleteMachineModel(machine)">删除</button>
  98. </div>
  99. <div class="btn-group">
  100. <button class="btn-white btn btn-xs" v-on:click="_openMachineDetailModel(machine)">详情</button>
  101. </div>
  102. </td>
  103. </tr>
  104. </tbody>
  105. <tfoot>
  106. <tr>
  107. <td colspan="7">
  108. <ul class="pagination float-right"></ul>
  109. </td>
  110. </tr>
  111. </tfoot>
  112. </table>
  113. <!-- 分页 -->
  114. <vc:create name="pagination"></vc:create>
  115. </div>
  116. </div>
  117. </div>
  118. </div>
  119. <vc:create name="addMachine"
  120. callBackListener=""
  121. callBackFunction=""
  122. ></vc:create>
  123. <vc:create name="editMachine"></vc:create>
  124. <vc:create name="deleteMachine"></vc:create>
  125. </div>