|
|
|
@ -20,28 +20,35 @@
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<label style="width: 95px">监控单元类型:</label>
|
|
|
|
|
<select name="monitorunitType" th:with="type=${@monitorunitTypeService.getMonitorunitType()}">
|
|
|
|
|
<select name="monitorunitType"
|
|
|
|
|
th:with="type=${@monitorunitTypeService.getMonitorunitType()}">
|
|
|
|
|
<option value="">所有</option>
|
|
|
|
|
<option th:each="dict : ${type}" th:text="${dict.monitorunittypeName}" th:value="${dict.monitorunittypeId}"></option>
|
|
|
|
|
<option th:each="dict : ${type}" th:text="${dict.monitorunittypeName}"
|
|
|
|
|
th:value="${dict.monitorunittypeId}"></option>
|
|
|
|
|
</select>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<label style="width: 90px">所属变电站:</label>
|
|
|
|
|
<select name="substationId" th:with="substationInfo=${@substationInfoService.getSubstationInfo()}">
|
|
|
|
|
<select name="substationId"
|
|
|
|
|
th:with="substationInfo=${@substationInfoService.getSubstationInfo()}">
|
|
|
|
|
<option value="">所有</option>
|
|
|
|
|
<option th:each="substation : ${substationInfo}" th:text="${substation.substationName}" th:value="${substation.substationId}"></option>
|
|
|
|
|
<option th:each="substation : ${substationInfo}" th:text="${substation.substationName}"
|
|
|
|
|
th:value="${substation.substationId}"></option>
|
|
|
|
|
</select>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<label>是否启用:</label>
|
|
|
|
|
<select name="enableFlag" th:with="type=${@dict.getType('enable_flag')}">
|
|
|
|
|
<option value="">所有</option>
|
|
|
|
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
|
|
|
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}"
|
|
|
|
|
th:value="${dict.dictValue}"></option>
|
|
|
|
|
</select>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.treeTable.search()"><i class="fa fa-search"></i> 搜索</a>
|
|
|
|
|
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a>
|
|
|
|
|
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.treeTable.search()"><i
|
|
|
|
|
class="fa fa-search"></i> 搜索</a>
|
|
|
|
|
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i
|
|
|
|
|
class="fa fa-refresh"></i> 重置</a>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
@ -55,6 +62,9 @@
|
|
|
|
|
<a class="btn btn-primary" onclick="$.operate.edit()" shiro:hasPermission="base:monitorUnitInfo:edit">
|
|
|
|
|
<i class="fa fa-edit"></i> 修改
|
|
|
|
|
</a>
|
|
|
|
|
<a class="btn btn-info" onclick="$.table.importExcel() " shiro:hasPermission="base:monitorUnitInfo:import">
|
|
|
|
|
<i class="fa fa-upload"></i> 导入
|
|
|
|
|
</a>
|
|
|
|
|
<a class="btn btn-info" id="expandAllBtn">
|
|
|
|
|
<i class="fa fa-exchange"></i> 展开/折叠
|
|
|
|
|
</a>
|
|
|
|
@ -83,6 +93,8 @@
|
|
|
|
|
updateUrl: prefix + "/edit/{id}",
|
|
|
|
|
removeUrl: prefix + "/remove/{id}",
|
|
|
|
|
exportUrl: prefix + "/export",
|
|
|
|
|
importUrl: prefix + "/importData",
|
|
|
|
|
importTemplateUrl: prefix + "/importTemplate",
|
|
|
|
|
modalName: "监控单元信息",
|
|
|
|
|
columns: [{
|
|
|
|
|
field: 'selectItem',
|
|
|
|
@ -90,7 +102,8 @@
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'objId',
|
|
|
|
|
title: '标识'
|
|
|
|
|
title: '标识',
|
|
|
|
|
visible: false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'monitorunitId',
|
|
|
|
@ -103,17 +116,17 @@
|
|
|
|
|
align: 'left'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'parentId',
|
|
|
|
|
field: 'parentName',
|
|
|
|
|
title: '父级监控单元',
|
|
|
|
|
align: 'left'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'monitorunitType',
|
|
|
|
|
field: 'monitorunitTypeName',
|
|
|
|
|
title: '监控单元类型',
|
|
|
|
|
align: 'left'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'substationId',
|
|
|
|
|
field: 'substationName',
|
|
|
|
|
title: '所属变电站',
|
|
|
|
|
align: 'left'
|
|
|
|
|
},
|
|
|
|
@ -141,5 +154,21 @@
|
|
|
|
|
$.treeTable.init(options);
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
<!-- 导入区域 -->
|
|
|
|
|
<script id="importTpl" type="text/template">
|
|
|
|
|
<form enctype="multipart/form-data" class="mt20 mb10">
|
|
|
|
|
<div class="col-xs-offset-1">
|
|
|
|
|
<input type="file" id="file" name="file"/>
|
|
|
|
|
<div class="mt10 pt5">
|
|
|
|
|
<input type="checkbox" id="updateSupport" name="updateSupport" title="如果登录账户已经存在,更新这条数据。"> 是否更新已经存在的用户数据
|
|
|
|
|
<a onclick="$.table.importTemplate()" class="btn btn-default btn-xs"><i
|
|
|
|
|
class="fa fa-file-excel-o"></i> 下载模板</a>
|
|
|
|
|
</div>
|
|
|
|
|
<font color="red" class="pull-left mt10">
|
|
|
|
|
提示:仅允许导入“xls”或“xlsx”格式文件!
|
|
|
|
|
</font>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</script>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|