提交 cbdec66b 编写于 作者: Skyeye云's avatar Skyeye云

解决部门编辑操作的错误问题

上级 e54d41e2
......@@ -87,12 +87,12 @@ layui.config({
overtimeSettlementType: $("#overtimeSettlementType").val()
};
AjaxPostUtil.request({url:reqBasePath + "companydepartment002", params:params, type:'json', callback:function(json){
AjaxPostUtil.request({url: reqBasePath + "companydepartment002", params: params, type: 'json', method: "POST", callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
}else{
winui.window.msg(json.returnMessage, {icon: 2,time: 2000});
winui.window.msg(json.returnMessage, {icon: 2, time: 2000});
}
}});
}
......
......@@ -100,12 +100,12 @@ layui.config({
rowId: parent.rowId
};
AjaxPostUtil.request({url:reqBasePath + "companydepartment005", params:params, type:'json', callback:function(json){
AjaxPostUtil.request({url: reqBasePath + "companydepartment005", params: params, type: 'json', method: "PUT", callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
}else{
winui.window.msg(json.returnMessage, {icon: 2,time: 2000});
winui.window.msg(json.returnMessage, {icon: 2, time: 2000});
}
}});
}
......@@ -114,7 +114,7 @@ layui.config({
}
});
//取消
// 取消
$("body").on("click", "#cancle", function(){
parent.layer.close(index);
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册