|
@@ -75,6 +75,8 @@
|
|
setTimeout(function(){top.layer.close(index)}, 100);//延时0.1秒,对应360 7.1版本bug
|
|
setTimeout(function(){top.layer.close(index)}, 100);//延时0.1秒,对应360 7.1版本bug
|
|
}
|
|
}
|
|
return false;
|
|
return false;
|
|
|
|
+
|
|
|
|
+
|
|
},
|
|
},
|
|
btn2: function (index) {
|
|
btn2: function (index) {
|
|
|
|
|
|
@@ -82,6 +84,55 @@
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ function adminModifuPwd(title,url,width,height,target) {
|
|
|
|
+ top.layer.open({
|
|
|
|
+ type: 2,
|
|
|
|
+ area: [width, height],
|
|
|
|
+ title: "修改密码",
|
|
|
|
+ content: url,
|
|
|
|
+ skin: "two-btns",
|
|
|
|
+ btn: ['确定', '关闭'],
|
|
|
|
+ yes: function (index, layero) {
|
|
|
|
+ var body = top.layer.getChildFrame('body', index);
|
|
|
|
+ var inputForm = $(body).find('#inputForm');
|
|
|
|
+ var btn = body.find('#btnSubmit');
|
|
|
|
+ var top_iframe = top.getActiveTab().attr("name");//获取当前active的tab的iframe
|
|
|
|
+ inputForm.attr("target", top_iframe);//表单提交成功后,从服务器返回的url在当前tab中展示
|
|
|
|
+ inputForm.validate({
|
|
|
|
+ rules: {},
|
|
|
|
+ messages: {
|
|
|
|
+ confirmNewPassword: {equalTo: "输入与上面相同的密码"}
|
|
|
|
+ },
|
|
|
|
+ submitHandler: function (form) {
|
|
|
|
+ loading('正在提交,请稍等...');
|
|
|
|
+ form.submit();
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ errorContainer: "#messageBox",
|
|
|
|
+ errorPlacement: function (error, element) {
|
|
|
|
+ $("#messageBox").text("输入有误,请先更正。");
|
|
|
|
+ if (element.is(":checkbox") || element.is(":radio") || element.parent().is(".input-append")) {
|
|
|
|
+ error.appendTo(element.parent().parent());
|
|
|
|
+ } else {
|
|
|
|
+ error.insertAfter(element);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ if (inputForm.valid()) {
|
|
|
|
+ loading("正在提交,请稍等...");
|
|
|
|
+ inputForm.submit();
|
|
|
|
+ top.layer.close(index);//关闭对话框。
|
|
|
|
+ } else {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ cancel: function (index) {
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+
|
|
function setParentInfo(ids,names,nos,salarys){
|
|
function setParentInfo(ids,names,nos,salarys){
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -281,7 +332,7 @@
|
|
}}*/
|
|
}}*/
|
|
,{field:'status',align:'center', title: '员工状态', minWidth:80}
|
|
,{field:'status',align:'center', title: '员工状态', minWidth:80}
|
|
,{field:'entryDate', align:'center',sort:true,title: '入职日期',width:100}
|
|
,{field:'entryDate', align:'center',sort:true,title: '入职日期',width:100}
|
|
- ,{field:'op',align:'center',title:"操作",width:130,templet:function(d){
|
|
|
|
|
|
+ ,{field:'op',align:'center',title:"操作",width:200,templet:function(d){
|
|
////对操作进行初始化
|
|
////对操作进行初始化
|
|
var xml = "<div class=\"layui-btn-group\">";
|
|
var xml = "<div class=\"layui-btn-group\">";
|
|
|
|
|
|
@@ -289,6 +340,10 @@
|
|
xml +="<a href=\"javascript:void(0)\" onclick=\"openDialog('修改', '${ctx}/workstaff/workStaffBasicInfo/form?id="+ d.id + "','95%','95%')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改</a>";
|
|
xml +="<a href=\"javascript:void(0)\" onclick=\"openDialog('修改', '${ctx}/workstaff/workStaffBasicInfo/form?id="+ d.id + "','95%','95%')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改</a>";
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if(d.canedit != undefined && d.canedit == "1"){
|
|
|
|
+ xml +="<a href=\"javascript:void(0)\" onclick=\"adminModifuPwd('修改密码', '${ctx}/sys/user/adminModifyPwdForm?userId="+ d.userId + "','500px','350px')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改密码</a>";
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
if(d.freeze != undefined && d.freeze == "1"){
|
|
if(d.freeze != undefined && d.freeze == "1"){
|
|
if(d.userLoginFlag == 1){
|
|
if(d.userLoginFlag == 1){
|