<!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('检查点及评价列表')" />
|
</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>
|
<input type="hidden" th:value="${companyId}" id="companyId" name="companyId">
|
<input type="hidden" th:value="${level}" id="evaluationAfterFengxianJibie" name="evaluationAfterFengxianJibie">
|
|
|
<li>
|
<label>风险单元名称:</label>
|
<input type="text" name="plan.risk.riskListName"/>
|
</li>
|
|
<li>
|
<label>评价方法:</label>
|
<select name="evaluationMethodType" th:with="type=${@dict.getType('tr_evaluation_method')}">
|
<option value="">所有</option>
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
</select>
|
</li>
|
|
<li>
|
<label>辨识类型:</label>
|
<select name="plan.evaluationType" th:with="type=${@dict.getType('tr_evaluation_type')}">
|
<option value="">所有</option>
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}"
|
th:value="${dict.dictValue}"></option>
|
</select>
|
</li>
|
<li class="select-time">
|
<label>审核时间:</label>
|
<input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginReviewTime]"/>
|
<span>-</span>
|
<input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endReviewTime]"/>
|
</li>
|
<li>
|
<label>审核状态:</label>
|
<select name="reviewStatus" th:with="type=${@dict.getType('tr_review_status')}">
|
<option value="">所有</option>
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
</select>
|
</li>
|
<li>
|
<label>评价状态:</label>
|
<select name="evaluationStatus" th:with="type=${@dict.getType('tr_evaluation_status')}">
|
<option value="">所有</option>
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
</select>
|
</li>
|
|
<li>
|
<label>区域/位置:</label>
|
<select name="regionId">
|
<option value="" selected>所有</option>
|
<option th:each="region : ${regionList}" th:text="${region.regionName}" th:value="${region.regionId}"></option>
|
</select>
|
<!-- <input type="text" name="regionName"/>-->
|
</li>
|
|
<li>
|
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.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">
|
</div>
|
<div class="col-sm-12 select-table table-striped">
|
<table id="bootstrap-table"></table>
|
</div>
|
</div>
|
</div>
|
<th:block th:include="include :: footer" />
|
<script th:inline="javascript">
|
var evaluationMethodTypeDatas = [[${@dict.getType('tr_evaluation_method')}]];
|
var reviewStatusDatas = [[${@dict.getType('tr_review_status')}]];
|
var evaluationStatusDatas = [[${@dict.getType('tr_evaluation_status')}]];
|
var evaluationTypeDatas = [[${@dict.getType('tr_evaluation_type')}]];
|
var stageStatusDatas = [[${@dict.getType('tr_evaluation_stage_status')}]];
|
var prefix = ctx + "tr/riskCheckPoint";
|
var common = [[${common}]];//用户角色 是否在公司管理员
|
$(function() {
|
var options = {
|
url: prefix + "/list",
|
detailUrl: prefix + "/detail/{id}",
|
removeUrl: prefix + "/removeRiskCheckPointLedger",
|
queryParams:queryParams,
|
modalName: "检查点及评价",
|
columns: [{
|
checkbox: true
|
},
|
{
|
field: 'checkPointId',
|
title: 'id',
|
visible: false
|
},
|
|
{
|
field: 'plan.evaluationPlanName',
|
title: '评价计划名称'
|
},
|
{
|
title: '评价时间',
|
formatter: function(value, row, index) {
|
return ' <div style="width:150px;">'+row.plan.evaluationBeginTime +"-"+ row.plan.evaluationEndTime+' </div>';
|
}
|
},
|
{
|
field: 'plan.planUser.userName',
|
title: '计划发起人'
|
},
|
|
{
|
field: 'plan.stageStatus',
|
title: '计划阶段',
|
formatter: function(value, row, index) {
|
return $.table.selectDictLabel(stageStatusDatas, value);
|
}
|
},
|
|
{
|
field: 'plan.evaluationType',
|
title: '辨识评价类型',
|
formatter: function(value, row, index) {
|
return $.table.selectDictLabel(evaluationTypeDatas, value);
|
}
|
},
|
{
|
field: 'plan.risk.riskListName',
|
title: '风险单元名称'
|
},
|
|
{
|
field: 'plan.planUser.userName',
|
title: '计划辨识人'
|
},
|
|
{
|
field: 'evaluationMethodType',
|
title: '评价方法',
|
formatter: function(value, row, index) {
|
return $.table.selectDictLabel(evaluationMethodTypeDatas, value);
|
}
|
},
|
{
|
field: 'evaluationUser.userName',
|
title: '评价负责人'
|
},
|
{
|
field: 'evaluationStatus',
|
title: '评价状态',
|
formatter: function(value, row, index) {
|
return $.table.selectDictLabel(evaluationStatusDatas, value);
|
}
|
},
|
|
{
|
field: 'evaluationNowFengxianzhi',
|
title: '现有措施评价风险值'
|
},
|
{
|
field: 'evaluationNowJibie',
|
title: '现有措施评价级别'
|
},
|
{
|
field: 'evaluationNowFengxianJibie',
|
title: '现有措施评价风险级别'
|
},
|
{
|
field: 'evaluationNowFengxianse',
|
title: '现有措施评价风险色',
|
formatter: function(value, row, index) {
|
var actions = [];
|
if (row.evaluationNowFengxianse=='红色'){
|
actions.push('<a class="btn btn-warning btn-rounded" style="background-color: #ff0000;border-color: #ff0000;color: #000000;" href="#">红色</a> ');
|
}else if(row.evaluationNowFengxianse=='橙色'){
|
actions.push('<a class="btn btn-warning btn-rounded" style="background-color: #ff6100;border-color: #ff6100;color: #000000;" href="#">橙色</a> ');
|
}else if(row.evaluationNowFengxianse=='黄色'){
|
actions.push('<a class="btn btn-warning btn-rounded" style="background-color: #ffff00;border-color: #ffff00;color: #000000;" href="#">黄色</a> ');
|
|
}else if(row.evaluationNowFengxianse=='蓝色'){
|
actions.push('<a class="btn btn-warning btn-rounded" style="background-color: #0000ff;border-color: #0000ff;color: #ffffff;" href="#">蓝色</a> ');
|
}
|
return actions.join('');
|
}
|
},
|
{
|
field: 'evaluationNowGuankongCengji',
|
title: '现有措施评价管控层级'
|
},
|
|
// {
|
// field: 'evaluationAfterJishu',
|
// title: '建议技术措施'
|
// },
|
// {
|
// field: 'evaluationAfterGuanli',
|
// title: '建议管理措施'
|
// },
|
// {
|
// field: 'evaluationAfterJiaoyu',
|
// title: '建议培训教育措施'
|
// },
|
// {
|
// field: 'evaluationAfterFanghu',
|
// title: '建议个体防护措施'
|
// },
|
// {
|
// field: 'evaluationAfterYingji',
|
// title: '建议应急处置措施'
|
// },
|
|
{
|
field: 'evaluationAfterFengxianzhi',
|
title: '剩余风险评价风险值'
|
},
|
{
|
field: 'evaluationAfterJibie',
|
title: '剩余风险评价级别'
|
},
|
{
|
field: 'evaluationAfterFengxianJibie',
|
title: '剩余风险评价风险级别'
|
},
|
{
|
field: 'evaluationAfterFengxianse',
|
title: '剩余风险评价风险色',
|
formatter: function(value, row, index) {
|
var actions = [];
|
if (row.evaluationAfterFengxianse=='红色'){
|
actions.push('<a class="btn btn-warning btn-rounded" style="background-color: #ff0000;border-color: #ff0000;color: #000000;" href="#">红色</a> ');
|
}else if(row.evaluationAfterFengxianse=='橙色'){
|
actions.push('<a class="btn btn-warning btn-rounded" style="background-color: #ff6100;border-color: #ff6100;color: #000000;" href="#">橙色</a> ');
|
}else if(row.evaluationAfterFengxianse=='黄色'){
|
actions.push('<a class="btn btn-warning btn-rounded" style="background-color: #ffff00;border-color: #ffff00;color: #000000;" href="#">黄色</a> ');
|
|
}else if(row.evaluationAfterFengxianse=='蓝色'){
|
actions.push('<a class="btn btn-warning btn-rounded" style="background-color: #0000ff;border-color: #0000ff;color: #ffffff;" href="#">蓝色</a> ');
|
}
|
return actions.join('');
|
}
|
},
|
{
|
field: 'evaluationAfterGuankongCengji',
|
title: '剩余风险评价管控层级'
|
},
|
{
|
field: 'reviewUser.userName',
|
title: '审核负责人'
|
},
|
{
|
field: 'reviewOpinion',
|
title: '审核意见'
|
},
|
{
|
field: 'reviewTime',
|
title: '审核时间'
|
},
|
{
|
field: 'reviewStatus',
|
title: '审核状态',
|
formatter: function(value, row, index) {
|
return $.table.selectDictLabel(reviewStatusDatas, value);
|
}
|
},
|
|
{
|
title: '操作',
|
align: 'center',
|
formatter: function(value, row, index) {
|
var actions = [];
|
actions.push('<a class="btn btn-default btn-xs " href="javascript:void(0)" onclick="$.operate.detail(\'' + row.checkPointId + '\')"><i class="fa fa-search"></i>查看</a> ');
|
|
if(common=="common"){
|
actions.push('<a class="btn btn-danger btn-xs " href="javascript:void(0)" onclick="$.operate.remove(\'' + row.checkPointId + '\')"><i class="fa fa-remove"></i>删除</a>');
|
}
|
|
return actions.join('');
|
}
|
}]
|
};
|
$.table.init(options);
|
});
|
|
function queryParams(params) {
|
var search = $.table.queryParams(params);
|
search.companyId = $("#companyId").val();
|
return search;
|
}
|
</script>
|
</body>
|
</html>
|