Commit d8f85848 authored by agping's avatar agping

日报 周报 删除

parent b522c453
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
//删除 //删除
$("#confirm_delete").click(function(){ $("#confirm_delete").click(function(){
var params = {}; var params = {};
params.id = report.report_id; params.id = report.report_id;
if(!params.id || params.id == null){ if(!params.id || params.id == null){
alert ("要删除的id不能为空"); alert ("要删除的id不能为空");
return false; return false;
...@@ -189,14 +189,17 @@ ...@@ -189,14 +189,17 @@
} }
}); });
}, },
delete_report : function(params) {//删除 日 delete_report : function(params) {//删除 周
$.ajax ({ $.ajax ({
url: '/index/delNotice', url: '/index/delPerformanceReport',
type: 'POST', type: 'POST',
async: true, async: true,
data: params, data: params,
dataType: 'json', dataType: 'json',
success: function (data) { success: function (data) {
if(data.code == 200){
alert ('删除成功');
}
$ ("#modal-delete").modal ('hide'); $ ("#modal-delete").modal ('hide');
if (data.code == "101") { if (data.code == "101") {
alert (data.msg); alert (data.msg);
......
...@@ -146,12 +146,15 @@ ...@@ -146,12 +146,15 @@
}, },
delete_report : function(params) {//删除 周报 delete_report : function(params) {//删除 周报
$.ajax ({ $.ajax ({
url: '/index/delNotice', url: '/index/delPerformanceReport',
type: 'POST', type: 'POST',
async: true, async: true,
data: params, data: params,
dataType: 'json', dataType: 'json',
success: function (data) { success: function (data) {
if(data.code == 200){
alert ('删除成功');
}
$ ("#modal-delete").modal ('hide'); $ ("#modal-delete").modal ('hide');
if (data.code == "101") { if (data.code == "101") {
alert (data.msg); alert (data.msg);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment