|
@@ -1400,26 +1400,33 @@ function ribaoCommit() {
|
|
}
|
|
}
|
|
|
|
|
|
function deleteSuspected(suspectedId) {
|
|
function deleteSuspected(suspectedId) {
|
|
- $.ajax({
|
|
|
|
- url: '/home/deleteSuspected',
|
|
|
|
- type: "post",
|
|
|
|
- data: {
|
|
|
|
- "suspectedId": suspectedId
|
|
|
|
- },
|
|
|
|
- success: function (data) {
|
|
|
|
- $('#ribao_jinrijujian').empty();
|
|
|
|
- $('#ribao_jinrijujian').append(data.safetyNum);
|
|
|
|
-
|
|
|
|
- //今日未上报
|
|
|
|
- canSahngbao = true;
|
|
|
|
- document.getElementById("btn_shangbao").style['background-color'] = "#0bb20c";
|
|
|
|
- document.getElementById("txt_shangbao").style['color'] = "red";
|
|
|
|
- $('#txt_shangbao').empty();
|
|
|
|
- $('#txt_shangbao').append("今日未上报");
|
|
|
|
- $('#txt_shangbaotime').empty();
|
|
|
|
- ribao_refrash();
|
|
|
|
- $.toast("删除后请重新添加上报");
|
|
|
|
|
|
+ $.confirm({
|
|
|
|
+ title: '是否确定删除上报信息?',
|
|
|
|
+ onOK: function () {
|
|
|
|
+ $.ajax({
|
|
|
|
+ url: '/home/deleteSuspected',
|
|
|
|
+ type: "post",
|
|
|
|
+ data: {
|
|
|
|
+ "suspectedId": suspectedId
|
|
|
|
+ },
|
|
|
|
+ success: function (data) {
|
|
|
|
+ $('#ribao_jinrijujian').empty();
|
|
|
|
+ $('#ribao_jinrijujian').append(data.safetyNum);
|
|
|
|
+
|
|
|
|
+ //今日未上报
|
|
|
|
+ canSahngbao = true;
|
|
|
|
+ document.getElementById("btn_shangbao").style['background-color'] = "#0bb20c";
|
|
|
|
+ document.getElementById("txt_shangbao").style['color'] = "red";
|
|
|
|
+ $('#txt_shangbao').empty();
|
|
|
|
+ $('#txt_shangbao').append("今日未上报");
|
|
|
|
+ $('#txt_shangbaotime').empty();
|
|
|
|
+ ribao_refrash();
|
|
|
|
+ $.toast("删除后请重新添加上报");
|
|
|
|
+ },
|
|
|
|
+ });
|
|
},
|
|
},
|
|
|
|
+ onCancel: function () {
|
|
|
|
+ }
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|