|
@@ -7,8 +7,8 @@
|
|
|
*{padding: 0;margin: 0;}
|
|
|
.my-input{border: 1px solid rgba(0,0,0,.1);padding: 1px 5px;height: 32px;margin-right: 10px;}
|
|
|
.my-input::-webkit-input-placeholder,.my-select{color: #dcdcdc;}
|
|
|
- .my-select{border: 1px solid rgba(0,0,0,.1);padding:6px 50px 6px 15px;height: 36px;margin: 0 10px; -webkit-appearance:none;appearance:none;background: url(/rst/common/images/pts/select-1.png) right center no-repeat;background-size:auto 100%;}
|
|
|
- .my-btn-search{border: 1px solid #32a3d8;padding: 1px 25px;height: 36px;background-color: #32a3d8;color: #fff;}
|
|
|
+ .my-select{border: 1px solid rgba(0,0,0,.1);padding:6px 50px 6px 15px;height: 34px;margin: 0 10px; -webkit-appearance:none;appearance:none;background: url(images/select-1.png) right center no-repeat;background-size:auto 100%;}
|
|
|
+ .my-btn-search{border: 1px solid #32a3d8;padding: 1px 25px;height: 32px;background-color: #32a3d8;color: #fff;}
|
|
|
</style>
|
|
|
<#include "/base/list_base.ftl">
|
|
|
</head>
|
|
@@ -16,81 +16,86 @@
|
|
|
<nav class="breadcrumb"><i class="Hui-iconfont"></i> 首页
|
|
|
<span class="c-gray en">></span> PST管理
|
|
|
<span class="c-gray en">></span> 设备列表
|
|
|
- <a class="btn radius r" style="line-height:1.6em;margin-top:3px;background: #32a3d8;color: #fff;border:1px solid #32a3d8;" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont"></i></a>
|
|
|
+ <a class="btn radius r" style="line-height:1.6em;margin-top:3px;background: #32a3d8;color: #fff;" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont"></i></a>
|
|
|
</nav>
|
|
|
<div class="page-container">
|
|
|
-<div class="text-c">
|
|
|
- <form name="form1" action="${path}/admin/equipment/select_device_list" method="post">
|
|
|
- <button type="button" style="cursor:pointer;" class="my-btn-search" onclick="add_device();">添加设备</button>
|
|
|
- <input class="my-input" type="text" name="deviceNumber" value="${deviceNumber!}" placeholder="请输入设备编号"/>
|
|
|
- <select class="my-select" name="deviceStatus">
|
|
|
- <option value ="">全部</option>
|
|
|
- <option value ="0" <#if deviceStatus??><#if deviceStatus == 0>selected="selected"</#if></#if>>停止使用</option>
|
|
|
- <option value ="1" <#if deviceStatus??><#if deviceStatus == 1>selected="selected"</#if></#if>>正常使用</option>
|
|
|
- </select>
|
|
|
- <input class="my-input" type="text" name="deviceName" value="${deviceName!}" placeholder="请输入设备名称"/>
|
|
|
- <input class="my-input" type="text" name="deviceRemake" value="${deviceRemake!}" placeholder="请输入备注"/>
|
|
|
- <button style="cursor:pointer;" type="submit" class="my-btn-search">搜索</button>
|
|
|
- </form>
|
|
|
-</div>
|
|
|
-<div class="mt-20">
|
|
|
- <table class="table table-border table-bordered table-bg table-hover table-sort">
|
|
|
- <thead>
|
|
|
- <tr class="text-c">
|
|
|
- <th width="100">设备编号</th>
|
|
|
- <th width="100">设备名称</th>
|
|
|
- <th width="100">设备备注</th>
|
|
|
- <th width="100">购买日期</th>
|
|
|
- <th width="100">状态</th>
|
|
|
- <th width="150">作用流程岗位</th>
|
|
|
- <th width="50">操作</th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody id="listid">
|
|
|
- <#list page.dataList as device>
|
|
|
- <tr>
|
|
|
- <td class="text-c" width="100">${device.deviceNumber!}</td>
|
|
|
- <td class="text-c" width="100">${device.deviceName!}</td>
|
|
|
- <td class="text-c" width="100">${device.deviceRemake!}</td>
|
|
|
- <td class="text-c" width="100">${(device.deviceDate?string("yyyy-MM-dd"))!''}</td>
|
|
|
- <td class="text-c" width="100">
|
|
|
- <#if device.deviceStatus == 0>
|
|
|
- 停止使用
|
|
|
- </#if>
|
|
|
- <#if device.deviceStatus == 1>
|
|
|
- 正常使用
|
|
|
- </#if>
|
|
|
- <#if device.deviceStatus == 2>
|
|
|
- 设备故障
|
|
|
- </#if>
|
|
|
- </td>
|
|
|
- <td class="text-c" width="100">
|
|
|
- <#if device.processList??>
|
|
|
- <#list device.processList as process>
|
|
|
- <#if (process_index + 1) == device.processList?size>
|
|
|
- ${process.produceName!}-${process.processName!}
|
|
|
+ <div class="text-c">
|
|
|
+ <form name="form1" action="${path}/admin/equipment/select_device_list" method="post">
|
|
|
+ <button type="button" style="cursor:pointer;float: left;" class="my-btn-search" onclick="add_device();">添加设备</button>
|
|
|
+ <input class="my-input" type="text" name="deviceNumber" value="${deviceNumber!}" placeholder="请输入设备编号"/>
|
|
|
+ <select class="select" name="deviceStatus" style="height: 30px;width: 150px">
|
|
|
+ <option value ="">全部</option>
|
|
|
+ <option value ="0" <#if deviceStatus??><#if deviceStatus == 0>selected="selected"</#if></#if>>停止使用</option>
|
|
|
+ <option value ="1" <#if deviceStatus??><#if deviceStatus == 1>selected="selected"</#if></#if>>正常使用</option>
|
|
|
+ </select>
|
|
|
+ <input class="my-input" type="text" name="deviceName" value="${deviceName!}" placeholder="请输入设备名称"/>
|
|
|
+ <input class="my-input" type="text" name="deviceRemake" value="${deviceRemake!}" placeholder="请输入备注"/>
|
|
|
+ <button style="cursor:pointer;" type="submit" class="my-btn-search">搜索</button>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ <div class="mt-20">
|
|
|
+ <table class="table table-border table-bordered table-bg table-hover table-sort">
|
|
|
+ <thead>
|
|
|
+ <tr class="text-c">
|
|
|
+ <th width="100">设备编号</th>
|
|
|
+ <th width="100">设备名称</th>
|
|
|
+ <th width="100">设备备注</th>
|
|
|
+ <th width="100">购买日期</th>
|
|
|
+ <th width="100">状态</th>
|
|
|
+ <th width="150">作用流程岗位</th>
|
|
|
+ <th width="50">操作</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody id="listid">
|
|
|
+ <#if (page.dataList?size > 0)>
|
|
|
+ <#list page.dataList as device>
|
|
|
+
|
|
|
+ <tr>
|
|
|
+ <td class="text-c" width="100">${device.deviceNumber!}</td>
|
|
|
+ <td class="text-c" width="100">${device.deviceName!}</td>
|
|
|
+ <td class="text-c" width="100">${device.deviceRemake!}</td>
|
|
|
+ <td class="text-c" width="100">${(device.deviceDate?string("yyyy-MM-dd"))!''}</td>
|
|
|
+ <td class="text-c" width="100">
|
|
|
+ <#if device.deviceStatus == 0>
|
|
|
+ 停止使用
|
|
|
+ </#if>
|
|
|
+ <#if device.deviceStatus == 1>
|
|
|
+ 正常使用
|
|
|
+ </#if>
|
|
|
+ <#if device.deviceStatus == 2>
|
|
|
+ 设备故障
|
|
|
</#if>
|
|
|
- <#if (process_index + 1) != device.processList?size>
|
|
|
- ${process.produceName!}-${process.processName!},
|
|
|
+ </td>
|
|
|
+ <td class="text-c" width="100">
|
|
|
+ <#if device.processList??>
|
|
|
+ <#list device.processList as process>
|
|
|
+ <#if (process_index + 1) == device.processList?size>
|
|
|
+ ${process.produceName!}-${process.processName!}
|
|
|
+ </#if>
|
|
|
+ <#if (process_index + 1) != device.processList?size>
|
|
|
+ ${process.produceName!}-${process.processName!},
|
|
|
+ </#if>
|
|
|
+ </#list>
|
|
|
</#if>
|
|
|
- </#list>
|
|
|
- </#if>
|
|
|
- </td>
|
|
|
- <!-- 遍历操作 -->
|
|
|
- <td class="td-manage text-c">
|
|
|
- <a style="text-decoration:none" href="javascript:;" title="查看"
|
|
|
- onclick="edit_detail('${path}/admin/equipment/_update_device?deviceId=${device.deviceId!}');">
|
|
|
- <i class="Hui-iconfont"></i>
|
|
|
- </a>
|
|
|
- <a style="text-decoration:none" href="javascript:;" title="查看"
|
|
|
- onclick="edit_process('${path}/admin/equipment/_update_process?deviceId=${device.deviceId!}');">
|
|
|
- <i class="Hui-iconfont"></i>
|
|
|
- </a>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </#list>
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
+ </td>
|
|
|
+ <!-- 遍历操作 -->
|
|
|
+ <td class="td-manage text-c">
|
|
|
+ <a style="text-decoration:none" href="javascript:;" title="查看"
|
|
|
+ onclick="edit_detail('${path}/admin/equipment/_update_device?deviceId=${device.deviceId!}');">
|
|
|
+ <i class="Hui-iconfont"></i>
|
|
|
+ </a>
|
|
|
+ <a style="text-decoration:none" href="javascript:;" title="查看"
|
|
|
+ onclick="edit_process('${path}/admin/equipment/_update_process?deviceId=${device.deviceId!}');">
|
|
|
+ <i class="Hui-iconfont"></i>
|
|
|
+ </a>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </#list>
|
|
|
+ <#else >
|
|
|
+ <tr><td class="td-manage text-c" colspan = "7">暂时没有设备,请添加</td></tr>
|
|
|
+ </#if>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div style="padding-top: 10px;"></div>
|