集成vue+elementui

kingbase
dshclm 9 months ago
parent 1016ac379b
commit 1815c24122

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -42,6 +42,14 @@
<script th:src="@{/ruoyi/js/getCity.js?v=4.7.7}"></script> <script th:src="@{/ruoyi/js/getCity.js?v=4.7.7}"></script>
</div> </div>
<!-- element下拉框插件 -->
<div th:fragment="element-css">
<link th:href="@{/ruoyi/css/element.css?v=0.0.0}" rel="stylesheet"/>
</div>
<div th:fragment="element-js">
<script th:src="@{/ruoyi/js/element.js?v=0.0.0}"></script>
</div>
<!-- ztree树插件 --> <!-- ztree树插件 -->
<div th:fragment="ztree-css"> <div th:fragment="ztree-css">
<link th:href="@{/ajax/libs/jquery-ztree/3.5/css/metro/zTreeStyle.css}" rel="stylesheet"/> <link th:href="@{/ajax/libs/jquery-ztree/3.5/css/metro/zTreeStyle.css}" rel="stylesheet"/>

@ -964,10 +964,17 @@
window.location.href = `/system/exam`; window.location.href = `/system/exam`;
} }
}; };
window.addEventListener('beforeunload', function() {
documentVisililityChange();
});
window.addEventListener('unload', function() {
documentVisililityChange();
});
document.addEventListener('visibilitychange',documentVisililityChange) document.addEventListener('visibilitychange',documentVisililityChange)
function documentVisililityChange (){ function documentVisililityChange (){
alert("检测到您已切换页面,系统将进行强制提交");
if (document.visibilityState === 'hidden'){ if (document.visibilityState === 'hidden'){
alert("检测到您已切换页面,系统将进行强制提交");
submitMethid(); submitMethid();
} }
} }

@ -2,6 +2,7 @@
<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('文件下发列表')" />
<th:block th:include="include :: element-css" />
</head> </head>
<body class="gray-bg"> <body class="gray-bg">
<div class="container-div" id="app"> <div class="container-div" id="app">
@ -57,6 +58,7 @@
</div> </div>
</div> </div>
<th:block th:include="include :: footer" /> <th:block th:include="include :: footer" />
<th:block th:include="include :: element-js" />
<script th:inline="javascript"> <script th:inline="javascript">
var removeFlag = [[${@permission.hasPermi('system:fileprovide:remove')}]]; var removeFlag = [[${@permission.hasPermi('system:fileprovide:remove')}]];
var detailFlag = [[${@permission.hasPermi('system:fileprovide:detail')}]]; var detailFlag = [[${@permission.hasPermi('system:fileprovide:detail')}]];

Loading…
Cancel
Save