Browse Source

2019-09-26 0957

xs 5 years ago
parent
commit
38c6e14ad4
1 changed files with 5 additions and 5 deletions
  1. 5 5
      src/main/webapp/webpage/modules/sg/project/management.js

+ 5 - 5
src/main/webapp/webpage/modules/sg/project/management.js

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