|
|
|
@ -1,97 +1,110 @@
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
|
|
|
|
|
<head>
|
|
|
|
|
<th:block th:include="include :: header('监控单元信息列表')" />
|
|
|
|
|
<th:block th:include="include :: header('监控单元信息列表')"/>
|
|
|
|
|
</head>
|
|
|
|
|
<body class="gray-bg">
|
|
|
|
|
<div class="container-div">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-sm-12 search-collapse">
|
|
|
|
|
<form id="formId">
|
|
|
|
|
<div class="select-list">
|
|
|
|
|
<ul>
|
|
|
|
|
<li>
|
|
|
|
|
<label style="width: 95px">监控单元编号:</label>
|
|
|
|
|
<input type="text" name="monitorunitId"/>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<label style="width: 95px">监控单元名称:</label>
|
|
|
|
|
<input type="text" name="monitorunitName"/>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<label style="width: 95px">监控单元类型:</label>
|
|
|
|
|
<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>
|
|
|
|
|
</select>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<label style="width: 90px">所属变电站:</label>
|
|
|
|
|
<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>
|
|
|
|
|
</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>
|
|
|
|
|
</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>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="container-div">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-sm-12 search-collapse">
|
|
|
|
|
<form id="formId">
|
|
|
|
|
<div class="select-list">
|
|
|
|
|
<ul>
|
|
|
|
|
<li>
|
|
|
|
|
<label style="width: 95px">监控单元编号:</label>
|
|
|
|
|
<input type="text" name="monitorunitId"/>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<label style="width: 95px">监控单元名称:</label>
|
|
|
|
|
<input type="text" name="monitorunitName"/>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<label style="width: 95px">监控单元类型:</label>
|
|
|
|
|
<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>
|
|
|
|
|
</select>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<label style="width: 90px">所属变电站:</label>
|
|
|
|
|
<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>
|
|
|
|
|
</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>
|
|
|
|
|
</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>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="btn-group-sm" id="toolbar" role="group">
|
|
|
|
|
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="base:monitorUnitInfo:add">
|
|
|
|
|
<i class="fa fa-plus"></i> 新增
|
|
|
|
|
</a>
|
|
|
|
|
<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" id="expandAllBtn">
|
|
|
|
|
<i class="fa fa-exchange"></i> 展开/折叠
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-sm-12 select-table table-striped">
|
|
|
|
|
<table id="bootstrap-tree-table"></table>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="btn-group-sm" id="toolbar" role="group">
|
|
|
|
|
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="base:monitorUnitInfo:add">
|
|
|
|
|
<i class="fa fa-plus"></i> 新增
|
|
|
|
|
</a>
|
|
|
|
|
<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>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-sm-12 select-table table-striped">
|
|
|
|
|
<table id="bootstrap-tree-table"></table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<th:block th:include="include :: footer" />
|
|
|
|
|
<script th:inline="javascript">
|
|
|
|
|
var addFlag = [[${@permission.hasPermi('base:monitorUnitInfo:add')}]];
|
|
|
|
|
var editFlag = [[${@permission.hasPermi('base:monitorUnitInfo:edit')}]];
|
|
|
|
|
var removeFlag = [[${@permission.hasPermi('base:monitorUnitInfo:remove')}]];
|
|
|
|
|
var enableFlagDatas = [[${@dict.getType('enable_flag')}]];
|
|
|
|
|
var prefix = ctx + "base/monitorUnitInfo";
|
|
|
|
|
</div>
|
|
|
|
|
<th:block th:include="include :: footer"/>
|
|
|
|
|
<script th:inline="javascript">
|
|
|
|
|
var addFlag = [[${@permission.hasPermi('base:monitorUnitInfo:add')}]];
|
|
|
|
|
var editFlag = [[${@permission.hasPermi('base:monitorUnitInfo:edit')}]];
|
|
|
|
|
var removeFlag = [[${@permission.hasPermi('base:monitorUnitInfo:remove')}]];
|
|
|
|
|
var enableFlagDatas = [[${@dict.getType('enable_flag')}]];
|
|
|
|
|
var prefix = ctx + "base/monitorUnitInfo";
|
|
|
|
|
|
|
|
|
|
$(function() {
|
|
|
|
|
var options = {
|
|
|
|
|
code: "monitorunitId",
|
|
|
|
|
parentCode: "parentId",
|
|
|
|
|
expandColumn: "2",
|
|
|
|
|
uniqueId: "objId",
|
|
|
|
|
url: prefix + "/list",
|
|
|
|
|
createUrl: prefix + "/add/{id}",
|
|
|
|
|
updateUrl: prefix + "/edit/{id}",
|
|
|
|
|
removeUrl: prefix + "/remove/{id}",
|
|
|
|
|
exportUrl: prefix + "/export",
|
|
|
|
|
modalName: "监控单元信息",
|
|
|
|
|
columns: [{
|
|
|
|
|
field: 'selectItem',
|
|
|
|
|
radio: true
|
|
|
|
|
$(function () {
|
|
|
|
|
var options = {
|
|
|
|
|
code: "monitorunitId",
|
|
|
|
|
parentCode: "parentId",
|
|
|
|
|
expandColumn: "2",
|
|
|
|
|
uniqueId: "objId",
|
|
|
|
|
url: prefix + "/list",
|
|
|
|
|
createUrl: prefix + "/add/{id}",
|
|
|
|
|
updateUrl: prefix + "/edit/{id}",
|
|
|
|
|
removeUrl: prefix + "/remove/{id}",
|
|
|
|
|
exportUrl: prefix + "/export",
|
|
|
|
|
importUrl: prefix + "/importData",
|
|
|
|
|
importTemplateUrl: prefix + "/importTemplate",
|
|
|
|
|
modalName: "监控单元信息",
|
|
|
|
|
columns: [{
|
|
|
|
|
field: 'selectItem',
|
|
|
|
|
radio: true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'objId',
|
|
|
|
|
title: '标识',
|
|
|
|
|
visible: false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field:'objId',
|
|
|
|
|
title: '标识'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'monitorunitId',
|
|
|
|
|
title: '监控单元编号',
|
|
|
|
@ -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'
|
|
|
|
|
},
|
|
|
|
@ -121,7 +134,7 @@
|
|
|
|
|
field: 'enableFlag',
|
|
|
|
|
title: '是否启用',
|
|
|
|
|
align: 'left',
|
|
|
|
|
formatter: function(value, row, index) {
|
|
|
|
|
formatter: function (value, row, index) {
|
|
|
|
|
return $.table.selectDictLabel(enableFlagDatas, value);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
@ -129,7 +142,7 @@
|
|
|
|
|
title: '操作',
|
|
|
|
|
align: 'center',
|
|
|
|
|
align: 'left',
|
|
|
|
|
formatter: function(value, row, index) {
|
|
|
|
|
formatter: function (value, row, index) {
|
|
|
|
|
var actions = [];
|
|
|
|
|
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.objId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
|
|
|
|
|
actions.push('<a class="btn btn-info btn-xs ' + addFlag + '" href="javascript:void(0)" onclick="$.operate.add(\'' + row.objId + '\')"><i class="fa fa-plus"></i>新增</a> ');
|
|
|
|
@ -137,9 +150,25 @@
|
|
|
|
|
return actions.join('');
|
|
|
|
|
}
|
|
|
|
|
}]
|
|
|
|
|
};
|
|
|
|
|
$.treeTable.init(options);
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
};
|
|
|
|
|
$.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>
|