|
|
@ -1,97 +1,110 @@
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
|
|
|
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
|
|
|
|
<head>
|
|
|
|
<head>
|
|
|
|
<th:block th:include="include :: header('监控单元信息列表')" />
|
|
|
|
<th:block th:include="include :: header('监控单元信息列表')"/>
|
|
|
|
</head>
|
|
|
|
</head>
|
|
|
|
<body class="gray-bg">
|
|
|
|
<body class="gray-bg">
|
|
|
|
<div class="container-div">
|
|
|
|
<div class="container-div">
|
|
|
|
<div class="row">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-12 search-collapse">
|
|
|
|
<div class="col-sm-12 search-collapse">
|
|
|
|
<form id="formId">
|
|
|
|
<form id="formId">
|
|
|
|
<div class="select-list">
|
|
|
|
<div class="select-list">
|
|
|
|
<ul>
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<li>
|
|
|
|
<label style="width: 95px">监控单元编号:</label>
|
|
|
|
<label style="width: 95px">监控单元编号:</label>
|
|
|
|
<input type="text" name="monitorunitId"/>
|
|
|
|
<input type="text" name="monitorunitId"/>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<li>
|
|
|
|
<label style="width: 95px">监控单元名称:</label>
|
|
|
|
<label style="width: 95px">监控单元名称:</label>
|
|
|
|
<input type="text" name="monitorunitName"/>
|
|
|
|
<input type="text" name="monitorunitName"/>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<li>
|
|
|
|
<label style="width: 95px">监控单元类型:</label>
|
|
|
|
<label style="width: 95px">监控单元类型:</label>
|
|
|
|
<select name="monitorunitType" th:with="type=${@monitorunitTypeService.getMonitorunitType()}">
|
|
|
|
<select name="monitorunitType"
|
|
|
|
<option value="">所有</option>
|
|
|
|
th:with="type=${@monitorunitTypeService.getMonitorunitType()}">
|
|
|
|
<option th:each="dict : ${type}" th:text="${dict.monitorunittypeName}" th:value="${dict.monitorunittypeId}"></option>
|
|
|
|
<option value="">所有</option>
|
|
|
|
</select>
|
|
|
|
<option th:each="dict : ${type}" th:text="${dict.monitorunittypeName}"
|
|
|
|
</li>
|
|
|
|
th:value="${dict.monitorunittypeId}"></option>
|
|
|
|
<li>
|
|
|
|
</select>
|
|
|
|
<label style="width: 90px">所属变电站:</label>
|
|
|
|
</li>
|
|
|
|
<select name="substationId" th:with="substationInfo=${@substationInfoService.getSubstationInfo()}">
|
|
|
|
<li>
|
|
|
|
<option value="">所有</option>
|
|
|
|
<label style="width: 90px">所属变电站:</label>
|
|
|
|
<option th:each="substation : ${substationInfo}" th:text="${substation.substationName}" th:value="${substation.substationId}"></option>
|
|
|
|
<select name="substationId"
|
|
|
|
</select>
|
|
|
|
th:with="substationInfo=${@substationInfoService.getSubstationInfo()}">
|
|
|
|
</li>
|
|
|
|
<option value="">所有</option>
|
|
|
|
<li>
|
|
|
|
<option th:each="substation : ${substationInfo}" th:text="${substation.substationName}"
|
|
|
|
<label>是否启用:</label>
|
|
|
|
th:value="${substation.substationId}"></option>
|
|
|
|
<select name="enableFlag" th:with="type=${@dict.getType('enable_flag')}">
|
|
|
|
</select>
|
|
|
|
<option value="">所有</option>
|
|
|
|
</li>
|
|
|
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
|
|
|
<li>
|
|
|
|
</select>
|
|
|
|
<label>是否启用:</label>
|
|
|
|
</li>
|
|
|
|
<select name="enableFlag" th:with="type=${@dict.getType('enable_flag')}">
|
|
|
|
<li>
|
|
|
|
<option value="">所有</option>
|
|
|
|
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.treeTable.search()"><i class="fa fa-search"></i> 搜索</a>
|
|
|
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}"
|
|
|
|
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a>
|
|
|
|
th:value="${dict.dictValue}"></option>
|
|
|
|
</li>
|
|
|
|
</select>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</div>
|
|
|
|
<li>
|
|
|
|
</form>
|
|
|
|
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.treeTable.search()"><i
|
|
|
|
</div>
|
|
|
|
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">
|
|
|
|
<div class="btn-group-sm" id="toolbar" role="group">
|
|
|
|
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="base:monitorUnitInfo:add">
|
|
|
|
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="base:monitorUnitInfo:add">
|
|
|
|
<i class="fa fa-plus"></i> 新增
|
|
|
|
<i class="fa fa-plus"></i> 新增
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
<a class="btn btn-primary" onclick="$.operate.edit()" shiro:hasPermission="base:monitorUnitInfo:edit">
|
|
|
|
<a class="btn btn-primary" onclick="$.operate.edit()" shiro:hasPermission="base:monitorUnitInfo:edit">
|
|
|
|
<i class="fa fa-edit"></i> 修改
|
|
|
|
<i class="fa fa-edit"></i> 修改
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
<a class="btn btn-info" id="expandAllBtn">
|
|
|
|
<a class="btn btn-info" onclick="$.table.importExcel() " shiro:hasPermission="base:monitorUnitInfo:import">
|
|
|
|
<i class="fa fa-exchange"></i> 展开/折叠
|
|
|
|
<i class="fa fa-upload"></i> 导入
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<a class="btn btn-info" id="expandAllBtn">
|
|
|
|
<div class="col-sm-12 select-table table-striped">
|
|
|
|
<i class="fa fa-exchange"></i> 展开/折叠
|
|
|
|
<table id="bootstrap-tree-table"></table>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-sm-12 select-table table-striped">
|
|
|
|
|
|
|
|
<table id="bootstrap-tree-table"></table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<th:block th:include="include :: footer" />
|
|
|
|
</div>
|
|
|
|
<script th:inline="javascript">
|
|
|
|
<th:block th:include="include :: footer"/>
|
|
|
|
var addFlag = [[${@permission.hasPermi('base:monitorUnitInfo:add')}]];
|
|
|
|
<script th:inline="javascript">
|
|
|
|
var editFlag = [[${@permission.hasPermi('base:monitorUnitInfo:edit')}]];
|
|
|
|
var addFlag = [[${@permission.hasPermi('base:monitorUnitInfo:add')}]];
|
|
|
|
var removeFlag = [[${@permission.hasPermi('base:monitorUnitInfo:remove')}]];
|
|
|
|
var editFlag = [[${@permission.hasPermi('base:monitorUnitInfo:edit')}]];
|
|
|
|
var enableFlagDatas = [[${@dict.getType('enable_flag')}]];
|
|
|
|
var removeFlag = [[${@permission.hasPermi('base:monitorUnitInfo:remove')}]];
|
|
|
|
var prefix = ctx + "base/monitorUnitInfo";
|
|
|
|
var enableFlagDatas = [[${@dict.getType('enable_flag')}]];
|
|
|
|
|
|
|
|
var prefix = ctx + "base/monitorUnitInfo";
|
|
|
|
|
|
|
|
|
|
|
|
$(function() {
|
|
|
|
$(function () {
|
|
|
|
var options = {
|
|
|
|
var options = {
|
|
|
|
code: "monitorunitId",
|
|
|
|
code: "monitorunitId",
|
|
|
|
parentCode: "parentId",
|
|
|
|
parentCode: "parentId",
|
|
|
|
expandColumn: "2",
|
|
|
|
expandColumn: "2",
|
|
|
|
uniqueId: "objId",
|
|
|
|
uniqueId: "objId",
|
|
|
|
url: prefix + "/list",
|
|
|
|
url: prefix + "/list",
|
|
|
|
createUrl: prefix + "/add/{id}",
|
|
|
|
createUrl: prefix + "/add/{id}",
|
|
|
|
updateUrl: prefix + "/edit/{id}",
|
|
|
|
updateUrl: prefix + "/edit/{id}",
|
|
|
|
removeUrl: prefix + "/remove/{id}",
|
|
|
|
removeUrl: prefix + "/remove/{id}",
|
|
|
|
exportUrl: prefix + "/export",
|
|
|
|
exportUrl: prefix + "/export",
|
|
|
|
modalName: "监控单元信息",
|
|
|
|
importUrl: prefix + "/importData",
|
|
|
|
columns: [{
|
|
|
|
importTemplateUrl: prefix + "/importTemplate",
|
|
|
|
field: 'selectItem',
|
|
|
|
modalName: "监控单元信息",
|
|
|
|
radio: true
|
|
|
|
columns: [{
|
|
|
|
|
|
|
|
field: 'selectItem',
|
|
|
|
|
|
|
|
radio: true
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
field: 'objId',
|
|
|
|
|
|
|
|
title: '标识',
|
|
|
|
|
|
|
|
visible: false
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
|
|
|
|
field:'objId',
|
|
|
|
|
|
|
|
title: '标识'
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'monitorunitId',
|
|
|
|
field: 'monitorunitId',
|
|
|
|
title: '监控单元编号',
|
|
|
|
title: '监控单元编号',
|
|
|
@ -103,17 +116,17 @@
|
|
|
|
align: 'left'
|
|
|
|
align: 'left'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'parentId',
|
|
|
|
field: 'parentName',
|
|
|
|
title: '父级监控单元',
|
|
|
|
title: '父级监控单元',
|
|
|
|
align: 'left'
|
|
|
|
align: 'left'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'monitorunitType',
|
|
|
|
field: 'monitorunitTypeName',
|
|
|
|
title: '监控单元类型',
|
|
|
|
title: '监控单元类型',
|
|
|
|
align: 'left'
|
|
|
|
align: 'left'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'substationId',
|
|
|
|
field: 'substationName',
|
|
|
|
title: '所属变电站',
|
|
|
|
title: '所属变电站',
|
|
|
|
align: 'left'
|
|
|
|
align: 'left'
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -121,7 +134,7 @@
|
|
|
|
field: 'enableFlag',
|
|
|
|
field: 'enableFlag',
|
|
|
|
title: '是否启用',
|
|
|
|
title: '是否启用',
|
|
|
|
align: 'left',
|
|
|
|
align: 'left',
|
|
|
|
formatter: function(value, row, index) {
|
|
|
|
formatter: function (value, row, index) {
|
|
|
|
return $.table.selectDictLabel(enableFlagDatas, value);
|
|
|
|
return $.table.selectDictLabel(enableFlagDatas, value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -129,7 +142,7 @@
|
|
|
|
title: '操作',
|
|
|
|
title: '操作',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
align: 'left',
|
|
|
|
align: 'left',
|
|
|
|
formatter: function(value, row, index) {
|
|
|
|
formatter: function (value, row, index) {
|
|
|
|
var actions = [];
|
|
|
|
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-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> ');
|
|
|
|
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('');
|
|
|
|
return actions.join('');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}]
|
|
|
|
}]
|
|
|
|
};
|
|
|
|
};
|
|
|
|
$.treeTable.init(options);
|
|
|
|
$.treeTable.init(options);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</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>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
</html>
|