|
@@ -358,7 +358,7 @@
|
|
|
}}*/
|
|
|
,{field:'status',align:'center', title: '员工状态', minWidth:80}
|
|
|
,{field:'entryDate', align:'center',sort:true,title: '入职日期',width:100}
|
|
|
- ,{field:'op',align:'center',title:"操作",width:200,templet:function(d){
|
|
|
+ ,{field:'op',align:'center',title:"操作",width:240,templet:function(d){
|
|
|
////对操作进行初始化
|
|
|
var xml = "<div class=\"layui-btn-group\">";
|
|
|
|
|
@@ -381,7 +381,11 @@
|
|
|
|
|
|
if(d.candelete != undefined && d.candelete == "1")
|
|
|
xml +="<a href=\"${ctx}/workstaff/workStaffBasicInfo/delete?id=" + d.id + "\" onclick=\"return confirmx('确认要删除信息吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\"> 删除</a>";
|
|
|
- xml+="</div>"
|
|
|
+
|
|
|
+ if(d.canedit != undefined && d.canedit == "1"){
|
|
|
+ xml +="<a href=\"${ctx}/sys/user/removeRedis?userId=" + d.userId + "\" onclick=\"return confirmx('确认要清除缓存吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-green\"> 清除缓存</a>";
|
|
|
+ }
|
|
|
+ xml+="</div>"
|
|
|
return xml;
|
|
|
}}
|
|
|
]]
|