xs преди 5 години
родител
ревизия
137e629acf

+ 1 - 3
src/main/webapp/webpage/modules/sg/project/lookItemForm.jsp

@@ -49,7 +49,6 @@
                 ,{field:'sgdw',title:'施工单位'}
                 ,{field:'xmlx',title:'项目类型'}
                 ,{field:'xmbh',title:'项目编号'}
-                ,{field:'sgdw',title:'施工单位'}
                 ,{field:'op',align:'center',title:"操作",templet:function(d){
                         ////对操作进行初始化
                         var xml = "<a class='layui-btn layui-btn-xs' style='margin-top: 3px' onclick=\"view( '" + d.id + "','" + d.type + "')\">编辑</a>";
@@ -65,8 +64,7 @@
                     "xmmc": "${data1.itemName}",
                     "sgdw": "${data1.unit}",
                     "xmlx":<c:if test="${data1.type eq '1'}">"架空线路"</c:if><c:if test="${data1.type eq '2'}">"电缆线路"</c:if><c:if test="${data1.type eq '3'}">"变电站线路"</c:if>,
-                    "xmbh":"项目编号",
-                    "sgdw":"施工单位"
+                    "xmbh":"${data1.itemNo}"
                 },
                 </c:forEach>
                 </c:if>

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

@@ -210,35 +210,49 @@ function update(url) {
 }
 //逻辑删除项目
 function deleteItem(id) {
-    $.ajax({
-        type: "post",
-        url: "${ctx}/project/tem/deleteItem",
-        data:{'id':id},
-        dataType: "json",
-        success: function(data){
-            if(data.success){
-                layer.msg(data.msg, {icon: 6});
-                window.location.reload();
-            }else{
-                layer.msg(data.msg, {icon: 5});
-            }
+    layer.msg('你确定要删除吗?', {
+         icon: 3
+        , time: 0 //不自动关闭
+        , btn: ['确定', '取消']
+        , yes: function (index) {
+            $.ajax({
+                type: "post",
+                url: "${ctx}/project/tem/deleteItem",
+                data: {'id': id},
+                dataType: "json",
+                success: function (data) {
+                    if (data.success) {
+                        layer.msg(data.msg, {icon: 6});
+                        window.location.reload();
+                    } else {
+                        layer.msg(data.msg, {icon: 5});
+                    }
+                }
+            })
         }
     })
 }
 //删除工程
 function deleteProject(id) {
-    $.ajax({
-        type: "post",
-        url: "${ctx}/project/deleteProject",
-        data:{'id':id},
-        dataType: "json",
-        success: function(data){
-            if(data.success){
-                layer.msg(data.msg, {icon: 6});
-                window.location.reload();
-            }else{
-                layer.msg(data.msg, {icon: 5});
-            }
+    layer.msg('你确定要删除吗?', {
+        icon: 3
+        , time: 0 //不自动关闭
+        , btn: ['确定', '取消']
+        , yes: function (index) {
+            $.ajax({
+                type: "post",
+                url: "${ctx}/project/deleteProject",
+                data: {'id': id},
+                dataType: "json",
+                success: function (data) {
+                    if (data.success) {
+                        layer.msg(data.msg, {icon: 6});
+                        window.location.reload();
+                    } else {
+                        layer.msg(data.msg, {icon: 5});
+                    }
+                }
+            })
         }
     })
 }

+ 2 - 2
src/main/webapp/webpage/modules/sg/project/management.jsp

@@ -122,7 +122,7 @@
                             <button type="button" class="layui-btn layui-btn-primary layui-btn-sm" id="noneBtn"><img class="layui-meself-img" src="${ctxp}/icon/solr.png" alt=""></button>
                         </div>
                         <table id="table1" class="layui-table" lay-filter="table1"></table>
-                        <div id="page"><div>
+                        <div id="page1"><div>
                 </div>
             </div>
         </div>
@@ -136,7 +136,7 @@
             ,layer = layui.layer;
         //自定义排版
         laypage.render({
-            elem: 'page'
+            elem: 'page1'
             ,count: ${page.count}
             ,limit:${page.pageSize}
             ,curr:${page.pageNo}

+ 1 - 3
src/main/webapp/webpage/modules/sg/project/updateItemForm.jsp

@@ -68,7 +68,6 @@
                 ,{field:'sgdw',title:'施工单位'}
                 ,{field:'xmlx',title:'项目类型'}
                 ,{field:'xmbh',title:'项目编号'}
-                ,{field:'sgdw',title:'施工单位'}
                 ,{field:'op',align:'center',title:"操作",width:100,templet:function(d){
                         ////对操作进行初始化
                         var xml = "<a  class='layui-btn layui-btn-xs' style='margin-top: 3px' onclick=\"view( '" + d.id +" ','" + d.type + "')\">编辑</a>";
@@ -84,8 +83,7 @@
                     "xmmc": "${data1.itemName}",
                     "sgdw": "${data1.unit}",
                     "xmlx":<c:if test="${data1.type eq '1'}">"架空线路"</c:if><c:if test="${data1.type eq '2'}">"电缆线路"</c:if><c:if test="${data1.type eq '3'}">"变电站线路"</c:if>,
-                    "xmbh":"项目编号",
-                    "sgdw":"施工单位"
+                    "xmbh":"${data1.itemNo}"
                 },
                 </c:forEach>
                 </c:if>

+ 1 - 3
src/main/webapp/webpage/modules/sg/projecttem/lookItem.jsp

@@ -61,7 +61,6 @@
                 ,{field:'sgdw',title:'施工单位'}
                 ,{field:'xmlx',title:'项目类型'}
                 ,{field:'xmbh',title:'项目编号'}
-                ,{field:'sgdw',title:'施工单位'}
                 ,{field:'op',align:'center',title:"操作",templet:function(d){
                         ////对操作进行初始化
                         var xml = "<a class='layui-btn layui-btn-xs' style='margin-top: 3px' onclick=\"view( '" + d.id + "','" + d.type + "','" + d.projectId + "')\">编辑</a>";
@@ -78,8 +77,7 @@
                     "xmmc": "${data1.itemName}",
                     "sgdw": "${data1.unit}",
                     "xmlx":<c:if test="${data1.type eq '1'}">"架空线路"</c:if><c:if test="${data1.type eq '2'}">"电缆线路"</c:if><c:if test="${data1.type eq '3'}">"变电站线路"</c:if>,
-                    "xmbh":"项目编号",
-                    "sgdw":"施工单位"
+                    "xmbh":"${data1.itemNo}"
                 },
                 </c:forEach>
                 </c:if>

+ 1 - 3
src/main/webapp/webpage/modules/sg/projecttem/updateItem.jsp

@@ -74,7 +74,6 @@
                 ,{field:'sgdw',title:'施工单位'}
                 ,{field:'xmlx',title:'项目类型'}
                 ,{field:'xmbh',title:'项目编号'}
-                ,{field:'sgdw',title:'施工单位'}
                 ,{field:'op',align:'center',title:"操作",width:100,templet:function(d){
                         ////对操作进行初始化
                         var xml = "<a  class='layui-btn layui-btn-xs' style='margin-top: 3px'  onclick=\"view( '" + d.id +" ','" + d.type + "','" + d.projectId + "')\">编辑</a>";
@@ -91,8 +90,7 @@
                     "xmmc": "${data1.itemName}",
                     "sgdw": "${data1.unit}",
                     "xmlx":<c:if test="${data1.type eq '1'}">"架空线路"</c:if><c:if test="${data1.type eq '2'}">"电缆线路"</c:if><c:if test="${data1.type eq '3'}">"变电站线路"</c:if>,
-                    "xmbh":"项目编号",
-                    "sgdw":"施工单位"
+                    "xmbh":"${data1.itemNo}"
                 },
                 </c:forEach>
                 </c:if>