Commit 036a244f by zhaopanyu

Merge branch 'master' of 49.232.152.146:qangqi/dd_school

parents c07da308 8dcae6f5
......@@ -73,7 +73,7 @@
<template slot-scope="{ row }">
{{
row.state == 1
? "编辑"
? "未填写"
: row.state == 4
? "已提交"
: row.state == 5
......@@ -120,7 +120,25 @@
align="center"
min-width="150"
prop="education"
/>
>
<template slot-scope="{ row }">
{{
row.education == 0
? "高中"
: row.education == 1
? "专科"
: row.education == 2
? "本科"
: row.education == 3
? "研究生"
: row.education == 4
? "硕士"
: row.education == 5
? "博士"
: ""
}}
</template>
</el-table-column>
<el-table-column
label="政治面貌"
align="center"
......
......@@ -319,6 +319,8 @@
style="padding-right: 10px"
>
<el-input
type="number"
placeholder="请输入数字"
v-model="form.classHour"
:disabled="form.state == '4' ? true : false"
></el-input>
......
......@@ -308,6 +308,7 @@
style="padding-right: 10px"
>
<el-input
type="number"
v-model="form.classHour"
:disabled="status == '7' ? true : false"
></el-input>
......
......@@ -562,6 +562,9 @@ export default {
elink.setAttribute("href", objectUrl);
elink.setAttribute("download", "教师电子档案" + ".xls");
elink.click();
})
.then(() => {
this.$modal.closeLoading();
});
},
......
......@@ -277,8 +277,9 @@ public class SchoolExperimentPlanServiceImpl extends ServiceImpl<SchoolExperimen
wrapper.eq(SchoolGradeMentor::getGradeId,gradeId)
.eq(SchoolGradeMentor::getTeacherId,user.getUserId());
SchoolGradeMentor schoolGradeMentor = schoolGradeMentorMapper.selectOne(wrapper);
//无学科组返回提示
if (StringUtils.isBlank(schoolGradeMentor.getSubGroup())){
return schoolLabMapper.getSubAll();
throw new ServiceException("您还未加入学科组!");
}
if (schoolGradeMentor.getSubGroup().equals("1")){
list.add(schoolLabMapper.getSub("1"));
......
......@@ -78,7 +78,7 @@ public class TeacherExperimentController extends BaseController {
schoolLabClassYearVo.setGradeId(gradeId);
//获取学科
Map<String, String> map = schoolClassMentorService.selectTeacherGroupMentot(userId);
if (null != map.get("courseId")){
if (map != null && null != map.get("courseId")){
String s = map.get("courseId");
List<String> list = Arrays.asList(s.split(","));
List<String> myList = list.stream().distinct().collect(Collectors.toList());
......@@ -193,7 +193,7 @@ public class TeacherExperimentController extends BaseController {
//设置级部
//获取学科
Map<String, String> map = schoolClassMentorService.selectTeacherGroupMentot(userId);
if (null != map.get("courseId")) {
if (map != null && null != map.get("courseId") ) {
String s = map.get("courseId");
List<String> list = Arrays.asList(s.split(","));
List<String> myList = list.stream().distinct().collect(Collectors.toList());
......
......@@ -45,7 +45,7 @@
</sql>
<select id="selectSchoolLabClassYearList" parameterType="SchoolLabClassYearVo" resultMap="SchoolLabClassYearVoResult">
select lcy.id, lcy.experiment_plan_id, lcy.experiment_name, lcy.grade_id, lcy.grade,
select DISTINCT lcy.id, lcy.experiment_plan_id, lcy.experiment_name, lcy.grade_id, lcy.grade,
lcy.school_year, lcy.semester, lcy.sub, lcy.experiment_classify, lcy.planned_start_time,
lcy.planned_end_time, lcy.chapter_content, lcy.experiment_use_goods, lcy.declare_state, lcy.apply_id,
lcy.apply_name, lcy.apply_time, lcy.create_by, lcy.create_time, lcy.update_by, lcy.update_time, lcy.del_flag
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment