修改页面点击跳转

This commit is contained in:
liuwu 2023-08-31 17:16:50 +08:00
parent 7f4f80b023
commit b255e2f447
2 changed files with 39 additions and 10 deletions

View File

@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('驾驶舱')" />
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<!--360浏览器优先以webkit内核解析-->
@ -22,14 +23,14 @@
</div>
<div class="echarts_title">
<span></span>
<span>党务及意识形态</span>
<span onclick="openTab(1)">党务及意识形态</span>
</div>
<div class="btn_echarts_wrap" id="top_left_echarts"></div>
</div>
<div class="main_left_item">
<div class="echarts_title">
<span></span>
<span>党风廉政建设</span>
<span onclick="openTab(2)">党风廉政建设</span>
</div>
<div class="echarts_wrap" id="center_left_echarts"></div>
</div>
@ -44,22 +45,22 @@
<div class="main_center">
<div class="main_center_item">
<div class="data1">
<span>年度考核完成情况</span>
<span style="font-weight:900;font-size: 18px" >年度考核完成情况</span>
<p class="all_num">日常考核总分0分</p>
<p class="curr_num">当前分数0分</p>
</div>
<div class="data2">
<span>党风廉政建设</span>
<span style="font-weight:900;font-size: 18px" >党风廉政建设</span>
<p class="all_num">日常考核总分0分</p>
<p class="curr_num">当前分数0分</p>
</div>
<div class="data3">
<span>党务及意识形态</span>
<span style="font-weight:900;font-size: 18px" >党务及意识形态</span>
<p class="all_num">日常考核总分0分</p>
<p class="curr_num">当前分数0分</p>
</div>
<div class="data4">
<span>日常考核完成情况</span>
<span style="font-weight:900;font-size: 18px" >日常考核完成情况</span>
<p class="all_num">日常考核总分0分</p>
<p class="curr_num">当前分数0分</p>
</div>
@ -120,14 +121,14 @@
</div>
<div class="echarts_title">
<span></span>
<span>日常考核指标</span>
<span onclick="openTab(3)">日常考核指标</span>
</div>
<div class="echarts_right_top_wrap" id="top_right_echarts"></div>
</div>
<div class="main_footer">
<div class="echarts_title">
<span></span>
<span>年度考核指标</span>
<span onclick="openTab(4)">年度考核指标</span>
</div>
<div class="echarts_footer_wrap" id="bottom_right_echarts"></div>
</div>
@ -138,6 +139,34 @@
<script th:src="@{/ajax/libs/layer/layer.min.js}"></script>
<script th:src="@{/js/echarts.min.js}"></script>
<!--<script th:src="@{/js/index.js}"></script>-->
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var ctx = [[@{/}]];
var prefix = ctx + "base/affairs";
function openTab(type){
switch (type){
case 1:
$.modal.openTab("党务及意识形态", prefix + '');
break;
case 2:
$.modal.openTab("党风廉政建设", prefix + '/partystyle');
break;
case 3:
$.modal.openTab("日常考核指标", prefix + '/day');
break;
case 4:
$.modal.openTab("年度考核指标", prefix + '/year');
break;
case 5:
$.modal.openTab("指标完成情况汇总", prefix + '/finishedstaticList');
break;
}
}
$('.data1').click(function() {
$.modal.openTab("指标完成情况汇总", prefix + '/finishedstaticList');
})
</script>
<script type="text/javascript">
let _peopleData = [];
let _deptData = [];

View File

@ -290,7 +290,7 @@ public class ShiroConfig
filterChainDefinitionMap.put("/ruoyi/**", "anon");
filterChainDefinitionMap.put("/wx/**", "anon");
filterChainDefinitionMap.put("/profile/**", "anon");
filterChainDefinitionMap.put("/common/uploads", "anon");
filterChainDefinitionMap.put("/common/**", "anon");
filterChainDefinitionMap.put("/captcha/captchaImage**", "anon");
// 退出 logout地址shiro去清除session
filterChainDefinitionMap.put("/logout", "logout");