浏览代码

报名优化

lchao 4 月之前
父节点
当前提交
4a8347970e

+ 6 - 0
src/main/java/com/sooka/module/web/cms/ContentBmAppController.java

@@ -112,5 +112,11 @@ public class ContentBmAppController  {
         return modelAndView;
     }
 
+    @RequestMapping("/signUp/delete")
+    @ResponseBody
+    public String delete(@RequestParam(value = "ids",required = false) Integer[] ids)  {
+        return signOnService.delete(ids);
+    }
+
 }
 

+ 6 - 1
src/main/java/com/sooka/module/web/cms/service/impl/SignOnServiceImpl.java

@@ -41,7 +41,12 @@ public class SignOnServiceImpl implements SignOnService {
 
     @Override
     public String delete(Integer[] ids) {
-        return null;
+        if(ids!=null&&ids.length>0) {
+            for(Integer id :ids) {
+                signMapper.deleteByPrimaryKey(id);
+            }
+        }
+        return JsonUtil.toSUCCESS("删除成功","friendlink-tab",false);
     }
 
     @Override

+ 5 - 2
src/main/resources/templates/cms/signup_list.html

@@ -14,21 +14,24 @@
     <table class="table table-bordered table-hover table-striped table-top" data-selected-multi="true">
         <thead>
         <tr>
-            <th align="center"  width="25">No</th>
             <th align="center"  width="150">姓名</th>
             <th align="center" width="100">学历</th>
             <th align="center"  width="80">身份证</th>
             <th align="center" width="80">电话</th>
+            <th align="center"  width="80">操作</th>
         </tr>
         </thead>
         <tbody>
         @for(sign in model.list){
         <tr data-id="${sign.content_id!}">
-            <td align="center" data-noedit="true">${sign.content_id!}</td>
             <td align="center" >${sign.study_name!}</td>
             <td  align="center"  >${sign.study_eb!}</td>
             <td  align="center"  >${sign.study_sfz!}</td>
             <td  align="center" >${sign.study_ph!}</td>
+            <td  align="center"  data-noedit="true">
+<!--                <a href="${ctxPath}/system/cms/signUp/delete?ids=${sign.content_id!}" class="btn btn-red row-del" data-confirm-msg="确定要删除该行信息吗?">删</a>-->
+                <a href="${ctxPath}/signUp/delete?ids=${sign.content_id!}" class="btn btn-red" data-toggle="doajax" title="删除" data-confirm-msg="确定要删除该行信息吗?">删</a>
+            </td>
         </tr>
         @}
         </tbody>

+ 0 - 15
src/main/resources/templates/www/tuiyijunren/content-xlts.html

@@ -131,21 +131,6 @@
 			}
 		}
 
-		// 获取提交按钮元素
-		const submitButton = document.querySelector('.study_btn');
-		// 为按钮添加点击事件监听器
-		submitButton.addEventListener('click', function () {
-			// 弹出确认框
-			const isConfirmed = window.confirm('确认报名不可取消,是否继续?');
-			if (isConfirmed) {
-				// 用户点击了“确定”,可以在这里添加表单提交逻辑
-				alert('报名已提交!');
-			} else {
-				// 用户点击了“取消”
-				alert('报名已取消。');
-			}
-		});
-
 		$.ajax({
 			// 请求的 URL
 			url: "${ctxPath}/BmApp",