|
@@ -219,7 +219,7 @@ function deleteItem(id) { //逻辑删除项目
|
|
|
layer.msg('您确定要删除吗?', {
|
|
|
icon: 3
|
|
|
, time: 0 //不自动关闭
|
|
|
- ,offset:['40%','40%']
|
|
|
+ ,offset:['38%','38%']
|
|
|
, btn: ['确定', '取消']
|
|
|
, yes: function (index) {
|
|
|
$.ajax({
|
|
@@ -229,7 +229,7 @@ function deleteItem(id) { //逻辑删除项目
|
|
|
dataType: "json",
|
|
|
success: function (data) {
|
|
|
if (data.success) {
|
|
|
- layer.msg("删除结算书成功", {icon: 6,offset:['40%','40%']},function () {
|
|
|
+ layer.msg("删除结算书成功", {icon: 6,offset:['38%','38%'],time:1000},function () {
|
|
|
var text = $("#delPro"+data.msg).closest('tr').find("td").eq("1").find("div").html();
|
|
|
$("#del"+id).closest('tr').remove();
|
|
|
$("#delPro"+data.msg).closest('tr').find("td").eq("1").find("div").html(text-1);
|
|
@@ -247,7 +247,7 @@ function deleteProject(id) {//删除工程
|
|
|
icon: 3
|
|
|
, time: 0 //不自动关闭
|
|
|
, btn: ['确定', '取消']
|
|
|
- ,offset:['40%','40%']
|
|
|
+ ,offset:['38%','38%']
|
|
|
, yes: function (index) {
|
|
|
$.ajax({
|
|
|
type: "post",
|
|
@@ -256,12 +256,12 @@ function deleteProject(id) {//删除工程
|
|
|
dataType: "json",
|
|
|
success: function (data) {
|
|
|
if (data.success) {
|
|
|
- layer.msg(data.msg, {icon: 6,offset:['40%','40%']},function () {
|
|
|
+ layer.msg(data.msg, {icon: 6,offset:['38%','38%'],time:1000},function () {
|
|
|
$("[self-id="+id+"]").closest('tr').remove();
|
|
|
$("#delPro"+id).closest('tr').remove();
|
|
|
})
|
|
|
} else {
|
|
|
- layer.msg(data.msg, {icon: 5,offset:['40%','40%']});
|
|
|
+ layer.msg(data.msg, {icon: 5,offset:['37%','37%']});
|
|
|
}
|
|
|
}
|
|
|
})
|