优化参数&字典缓存操作

This commit is contained in:
RuoYi
2021-05-26 19:52:01 +08:00
parent fe204ad7c5
commit 387a3f838d
14 changed files with 154 additions and 78 deletions

View File

@ -50,8 +50,8 @@
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:config:export">
<i class="fa fa-download"></i> 导出
</a>
<a class="btn btn-danger" onclick="clearCache()" shiro:hasPermission="system:config:remove">
<i class="fa fa-refresh"></i> 清理缓存
<a class="btn btn-danger" onclick="refreshCache()" shiro:hasPermission="system:config:remove">
<i class="fa fa-refresh"></i> 刷新缓存
</a>
</div>
<div class="col-sm-12 select-table table-striped">
@ -135,9 +135,9 @@
$.table.init(options);
});
/** 清理参数缓存 */
function clearCache() {
$.operate.get(prefix + "/clearCache");
/** 刷新参数缓存 */
function refreshCache() {
$.operate.get(prefix + "/refreshCache");
}
</script>
</body>

View File

@ -50,8 +50,8 @@
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:dict:export">
<i class="fa fa-download"></i> 导出
</a>
<a class="btn btn-danger" onclick="clearCache()" shiro:hasPermission="system:dict:remove">
<i class="fa fa-refresh"></i> 清理缓存
<a class="btn btn-danger" onclick="refreshCache()" shiro:hasPermission="system:dict:remove">
<i class="fa fa-refresh"></i> 刷新缓存
</a>
</div>
@ -139,9 +139,9 @@
$.modal.openTab("字典数据", url);
}
/** 清理字典缓存 */
function clearCache() {
$.operate.get(prefix + "/clearCache");
/** 刷新字典缓存 */
function refreshCache() {
$.operate.get(prefix + "/refreshCache");
}
</script>
</body>