|
|
@@ -0,0 +1,107 @@
|
|
|
+<% layout('/layouts/default.html', {title: '绝缘电压数据表管理', libs: ['dataGrid']}){ %>
|
|
|
+<div class="main-content">
|
|
|
+ <div class="box box-main">
|
|
|
+ <div class="box-header">
|
|
|
+ <div class="box-title">
|
|
|
+ <i class="fa icon-notebook"></i> ${text('绝缘电压数据表管理')}
|
|
|
+ </div>
|
|
|
+ <div class="box-tools pull-right">
|
|
|
+ <a href="#" class="btn btn-default" id="btnSearch" title="${text('查询')}"><i class="fa fa-filter"></i> ${text('查询')}</a>
|
|
|
+ <% if(hasPermi('mes:mesProductVoltage:edit')){ %>
|
|
|
+ <a href="${ctx}/mes/mesProductVoltage/form" class="btn btn-default btnTool" title="${text('新增绝缘电压数据表')}"><i class="fa fa-plus"></i> ${text('新增')}</a>
|
|
|
+ <% } %>
|
|
|
+ <a href="#" class="btn btn-default" id="btnSetting" title="${text('设置')}"><i class="fa fa-navicon"></i></a>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="box-body">
|
|
|
+ <#form:form id="searchForm" model="${mesProductVoltage}" action="${ctx}/mes/mesProductVoltage/listData" method="post" class="form-inline hide"
|
|
|
+ data-page-no="${parameter.pageNo}" data-page-size="${parameter.pageSize}" data-order-by="${parameter.orderBy}">
|
|
|
+ <div class="form-group">
|
|
|
+ <label class="control-label">${text('工件码')}:</label>
|
|
|
+ <div class="control-inline">
|
|
|
+ <#form:input path="sn" maxlength="64" class="form-control width-120"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label class="control-label">${text('检测电流')}:</label>
|
|
|
+ <div class="control-inline">
|
|
|
+ <#form:input path="current" maxlength="64" class="form-control width-120"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label class="control-label">${text('爬升电流')}:</label>
|
|
|
+ <div class="control-inline">
|
|
|
+ <#form:input path="currentPs" maxlength="64" class="form-control width-120"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label class="control-label">${text('电压1')}:</label>
|
|
|
+ <div class="control-inline">
|
|
|
+ <#form:input path="oneVoltage" maxlength="64" class="form-control width-120"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label class="control-label">${text('电压2')}:</label>
|
|
|
+ <div class="control-inline">
|
|
|
+ <#form:input path="twoVoltage" maxlength="64" class="form-control width-120"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label class="control-label">${text('电阻')}:</label>
|
|
|
+ <div class="control-inline">
|
|
|
+ <#form:input path="resistance" maxlength="64" class="form-control width-120"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label class="control-label">${text('检测结果')}:</label>
|
|
|
+ <div class="control-inline">
|
|
|
+ <#form:input path="result" maxlength="64" class="form-control width-120"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label class="control-label">${text('检测次数')}:</label>
|
|
|
+ <div class="control-inline">
|
|
|
+ <#form:input path="time" maxlength="64" class="form-control width-120"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <button type="submit" class="btn btn-primary btn-sm">${text('查询')}</button>
|
|
|
+ <button type="reset" class="btn btn-default btn-sm">${text('重置')}</button>
|
|
|
+ </div>
|
|
|
+ </#form:form>
|
|
|
+ <table id="dataGrid"></table>
|
|
|
+ <div id="dataGridPage"></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
+<% } %>
|
|
|
+<script>
|
|
|
+// 初始化DataGrid对象
|
|
|
+$('#dataGrid').dataGrid({
|
|
|
+ searchForm: $("#searchForm"),
|
|
|
+ columnModel: [
|
|
|
+ {header:'${text("工件码")}', name:'sn', index:'a.sn', width:150, align:"left", frozen:true, formatter: function(val, obj, row, act){
|
|
|
+ return '<a href="${ctx}/mes/mesProductVoltage/form?id='+row.id+'" class="btnList" data-title="${text("编辑绝缘电压数据表")}">'+(val||row.id)+'</a>';
|
|
|
+ }},
|
|
|
+ {header:'${text("检测电流")}', name:'current', index:'a.current', width:150, align:"left"},
|
|
|
+ {header:'${text("爬升电流")}', name:'currentPs', index:'a.current_ps', width:150, align:"left"},
|
|
|
+ {header:'${text("电压1")}', name:'oneVoltage', index:'a.one_voltage', width:150, align:"left"},
|
|
|
+ {header:'${text("电压2")}', name:'twoVoltage', index:'a.two_voltage', width:150, align:"left"},
|
|
|
+ {header:'${text("电阻")}', name:'resistance', index:'a.resistance', width:150, align:"left"},
|
|
|
+ {header:'${text("检测结果")}', name:'result', index:'a.result', width:150, align:"left"},
|
|
|
+ {header:'${text("检测次数")}', name:'time', index:'a.time', width:150, align:"left"},
|
|
|
+ {header:'${text("操作")}', name:'actions', width:120, formatter: function(val, obj, row, act){
|
|
|
+ var actions = [];
|
|
|
+ //<% if(hasPermi('mes:mesProductVoltage:edit')){ %>
|
|
|
+ actions.push('<a href="${ctx}/mes/mesProductVoltage/form?id='+row.id+'" class="btnList" title="${text("编辑绝缘电压数据表")}"><i class="fa fa-pencil"></i></a> ');
|
|
|
+ actions.push('<a href="${ctx}/mes/mesProductVoltage/delete?id='+row.id+'" class="btnList" title="${text("删除绝缘电压数据表")}" data-confirm="${text("确认要删除该绝缘电压数据表吗?")}"><i class="fa fa-trash-o"></i></a> ');
|
|
|
+ //<% } %>
|
|
|
+ return actions.join('');
|
|
|
+ }}
|
|
|
+ ],
|
|
|
+ // 加载成功后执行事件
|
|
|
+ ajaxSuccess: function(data){
|
|
|
+
|
|
|
+ }
|
|
|
+});
|
|
|
+</script>
|