游戏数学 删除备课优化

This commit is contained in:
zhanglipeng 2021-09-08 16:25:05 +08:00
parent c924b208b6
commit 98f918b8a8
2 changed files with 6 additions and 5 deletions

View File

@ -270,6 +270,7 @@ export default {
// color: #666; // color: #666;
// } // }
} }
@media print { @media print {
.table-container { .table-container {
padding: 30px 0; padding: 30px 0;
@ -312,9 +313,6 @@ export default {
} }
} }
} }
.print {
opacity: 0;
}
} }
/*去除页眉页脚*/ /*去除页眉页脚*/
@page { @page {

View File

@ -119,7 +119,7 @@ public class ByMathTermplanController extends BaseController {
String bjtypeNew = byClassService.selectByClassById(classId).getBjtype(); String bjtypeNew = byClassService.selectByClassById(classId).getBjtype();
if (bjtypeNew.equals("1")) { if (bjtypeNew.equals("1")) {
return AjaxResult.error("当前班级为托班,无法创建计划"); return AjaxResult.error("当前班级为托班,无法创建计划");
}else { } else {
int iCount = schoolCommon.getDifMonth(byMathTermplan.getStartmonth(), byMathTermplan.getEndmonth()); int iCount = schoolCommon.getDifMonth(byMathTermplan.getStartmonth(), byMathTermplan.getEndmonth());
System.out.println("月份差=" + iCount); System.out.println("月份差=" + iCount);
String uuid = schoolCommon.getUuid(); String uuid = schoolCommon.getUuid();
@ -171,7 +171,10 @@ public class ByMathTermplanController extends BaseController {
byMathTermplanitem.setTpid(ids[i]); byMathTermplanitem.setTpid(ids[i]);
List<ByMathTermplanitem> list = byMathTermplanitemService.selectByMathTermplanitemList(byMathTermplanitem); List<ByMathTermplanitem> list = byMathTermplanitemService.selectByMathTermplanitemList(byMathTermplanitem);
if (list != null && list.size() > 0) { if (list != null && list.size() > 0) {
return AjaxResult.error("选中的计划下存在计划明细,无法删除"); //return AjaxResult.error("选中的计划下存在计划明细,无法删除");
for (int j = 0; j < list.size(); j++) {
byMathTermplanitemService.deleteByMathTermplanitemById(list.get(j).getId());
}
} }
} }
return toAjax(byMathTermplanService.deleteByMathTermplanByIds(ids)); return toAjax(byMathTermplanService.deleteByMathTermplanByIds(ids));