功能优化&问题修改 9.26

dev_2307
hechao.zhu 1 year ago
parent d0ba44826d
commit c283e923f4
  1. 7
      ant-design-vue-jeecg/src/views/course/modules/SeCourseView.vue
  2. 6
      ant-design-vue-jeecg/src/views/py/PyBasicInfoList.vue
  3. 20
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/cms/service/CmsHomeTrainingPlanServiceImpl.java

@ -101,10 +101,11 @@
<p v-html="course.assessmentrules"></p>
<p>课程目标考核内容分布与评价方式</p>
<p v-html="course.contentdistribution"></p>
<h3 style="margin-top:20px">课程目标达成度评价方法</h3>
<p v-html="course.achievement"></p>
<!-- <h3 style="margin-top:20px">课程目标达成度评价方法</h3>
<p v-html="course.achievement"></p>-->
<h3 style="margin-top:20px">推荐教材参考资料及其他</h3>
<!-- <h3 style="margin-top:20px">推荐教材参考资料及其他</h3>-->
<h3 style="margin-top:20px">推荐教材参考资料及其他</h3>
<p>推荐教材</p>
<p v-for="(item,index) in bookcks" style="font-weight: bold;margin-bottom: 0">{{item.valueOf()}}</p>
<p>参考资料</p>

@ -32,8 +32,8 @@
<!-- 查询区域-END -->
<!-- 操作按钮区域 -->
<div class="table-operator">
<a-button @click="handleAdd" type="primary" icon="plus" v-has="'py:edit'">新增</a-button>
<!-- <div class="table-operator">-->
<!-- <a-button @click="handleAdd" type="primary" icon="plus" v-has="'py:edit'">新增</a-button>-->
<!-- <a-button type="primary" icon="download" v-has="'py:edit'" @click="handleExportXls('培养方法')">导出</a-button>
<a-upload
name="file"
@ -45,7 +45,7 @@
>
<a-button type="primary" v-has="'py:edit'" icon="import">导入</a-button>
</a-upload>-->
</div>
<!-- </div>-->
<!-- table区域-begin -->
<div>

@ -300,18 +300,16 @@ public class CmsHomeTrainingPlanServiceImpl implements ICmsHomeTrainingPlanServi
courseTotalCredit.updateAndGet(v1 -> v1 + kcXuefen);
//该课程目标对应的毕业要求(暂时只考虑一个课程目标对就一个毕业要求)
SeCourseobjectives courseobjectives = seCourseobjectivesService.getById(knowcourse.getKcmbid());
if (!ObjectUtils.isEmpty(courseobjectives)) {
SeCourseobjectives courseObjective = seCourseobjectivesService.getById(knowcourse.getKcmbid());
if (!ObjectUtils.isEmpty(courseObjective) && !StringUtils.isEmpty(courseObjective.getRequireid())) {
CourseObjectivesAndGraduationRequirementsVo vo = new CourseObjectivesAndGraduationRequirementsVo();
if (!StringUtils.isEmpty(courseobjectives.getRequireid())) {
String requireid = courseobjectives.getRequireid();
vo.setRequireId(requireid);
vo.setCourseId(seCourse.getId());
vo.setCredit(kcXuefen);
PyGraRequire pyGraRequire = pyGraRequireService.getById(requireid);
vo.setRequirePid(pyGraRequire.getPid());
voList.add(vo);
}
String requireId = courseObjective.getRequireid();
vo.setRequireId(requireId);
vo.setCourseId(seCourse.getId());
vo.setCredit(kcXuefen);
PyGraRequire pyGraRequire = pyGraRequireService.getById(requireId);
vo.setRequirePid(pyGraRequire.getPid());
voList.add(vo);
}
});
log.info("课程:" + seCourse.getName() + ",总学分数:" + courseTotalCredit.get().intValue());

Loading…
Cancel
Save