Commit d8f85848 authored by agping's avatar agping

日报 周报 删除

parent b522c453
......@@ -55,7 +55,7 @@
//删除
$("#confirm_delete").click(function(){
var params = {};
params.id = report.report_id;
params.id = report.report_id;
if(!params.id || params.id == null){
alert ("要删除的id不能为空");
return false;
......@@ -189,14 +189,17 @@
}
});
},
delete_report : function(params) {//删除 日
delete_report : function(params) {//删除 周
$.ajax ({
url: '/index/delNotice',
url: '/index/delPerformanceReport',
type: 'POST',
async: true,
data: params,
dataType: 'json',
success: function (data) {
if(data.code == 200){
alert ('删除成功');
}
$ ("#modal-delete").modal ('hide');
if (data.code == "101") {
alert (data.msg);
......
......@@ -146,12 +146,15 @@
},
delete_report : function(params) {//删除 周报
$.ajax ({
url: '/index/delNotice',
url: '/index/delPerformanceReport',
type: 'POST',
async: true,
data: params,
dataType: 'json',
success: function (data) {
if(data.code == 200){
alert ('删除成功');
}
$ ("#modal-delete").modal ('hide');
if (data.code == "101") {
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