clearAll 接口增加 sys:stste:cache 权限串
This commit is contained in:
@@ -2,6 +2,7 @@ package com.jeesite.modules.sys.web;
|
||||
|
||||
import javax.annotation.PostConstruct;
|
||||
|
||||
import org.apache.shiro.authz.annotation.Logical;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
@@ -24,10 +25,10 @@ import com.jeesite.modules.sys.utils.UserUtils;
|
||||
public class CacheController extends BaseController {
|
||||
|
||||
/**
|
||||
* 清理全部缓存,可清理属性文件里的缓存
|
||||
* 清理全部缓存,可清理属性文件里的缓存(stste 单词写错了,将错就错)
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("sys:config:edit")
|
||||
@RequiresPermissions(value={"sys:config:edit", "sys:stste:cache"}, logical=Logical.OR)
|
||||
@RequestMapping(value = "clearAll")
|
||||
@ResponseBody
|
||||
public String clearAll() {
|
||||
|
||||
@@ -59,7 +59,7 @@ $('#dataGrid').dataGrid({
|
||||
return '<a href="${ctx}/sys/dictType/form?id='+row.id+'" class="btnList" data-title="编辑字典类型">'+(val||row.id)+'</a>';
|
||||
}},
|
||||
{header:'字典类型', name:'dictType', index:'a.dict_type', width:200, align:"left", frozen:true, formatter: function(val, obj, row, act){
|
||||
return '<a href="${ctx}/sys/dictData/list?dictType='+row.dictType+'" class="btnList" data-title="编辑字典数据">'+(val||row.id)+'</a>';
|
||||
return '<a href="${ctx}/sys/dictData/list?dictType='+row.dictType+'" class="btnList" data-title="字典数据">'+(val||row.id)+'</a>';
|
||||
}},
|
||||
{header:'系统字典', name:'isSys', index:'a.is_sys', width:80, align:"center", formatter: function(val, obj, row, act){
|
||||
return js.getDictLabel(${@DictUtils.getDictListJson('sys_yes_no')}, val, '未知', true);
|
||||
|
||||
Reference in New Issue
Block a user