Commit 40dfd19f authored by 刘帅's avatar 刘帅

1.bug修复

parent 293e867a
...@@ -214,7 +214,7 @@ public class TbExamSimulateInfoServiceImpl implements ITbExamSimulateInfoService ...@@ -214,7 +214,7 @@ public class TbExamSimulateInfoServiceImpl implements ITbExamSimulateInfoService
} }
return tbExamSimulateInfoMapper. getSimulateSubjectAllInfo(params); return tbExamSimulateInfoMapper.getSimulateSubjectAllInfo(params);
} }
/** /**
......
...@@ -174,27 +174,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -174,27 +174,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
CONVERT(IFNULL(tsc.study_center_tag, ''), CHAR) AS studyCenterTag, CONVERT(IFNULL(tsc.study_center_tag, ''), CHAR) AS studyCenterTag,
CONVERT(IFNULL(tsc.study_center_background, ''), CHAR) AS studyCenterBackground, CONVERT(IFNULL(tsc.study_center_background, ''), CHAR) AS studyCenterBackground,
CONVERT(IFNULL(tsc.school_name, ''), CHAR) AS schoolName, CONVERT(IFNULL(tsc.school_name, ''), CHAR) AS schoolName,
CONVERT(IFNULL(tsc.study_center_title, ''), CHAR) AS studyCenterTitle, CONVERT(IFNULL(tsc.study_center_title, ''), CHAR) AS studyCenterTitle
tl.link_one AS isRecommend FROM tb_study_center tsc
from tb_link tl LEFT JOIN tb_continuing_education_class tcec ON tsc.continuing_education_class_id = tcec.continuing_education_class_id
left join tb_study_center tsc on tl.resources_one_id = tsc.study_center_id
left join tb_continuing_education_class tcec on tl.resources_two_id = tcec.continuing_education_class_id
<where> <where>
<if test="continuingEducationClassId != null and continuingEducationClassId != '' and continuingEducationClassId != 0"> <if test="continuingEducationClassId != null and continuingEducationClassId != '' and continuingEducationClassId != 0">
AND tsc.continuing_education_class_id = #{continuingEducationClassId} AND tsc.continuing_education_class_id = #{continuingEducationClassId}
</if> </if>
<if test="isRecommend != null and isRecommend != '' and isRecommend != 0"> <!-- <if test="isRecommend != null and isRecommend != '' and isRecommend != 0">-->
AND tl.link_one = 1 <!-- AND tl.link_one = 1-->
</if> <!-- </if>-->
<if test="searchValue != null and searchValue != ''"> <if test="searchValue != null and searchValue != ''">
AND ( AND (tsc.study_center_name like concat('%', #{searchValue}, '%'))
tsc.study_center_name like concat('%', #{searchValue}, '%')
)
</if> </if>
and tl.type = 4
and tsc.status = 0 and tsc.status = 0
and tsc.del_flag = 0 and tsc.del_flag = 0
</where> </where>
order by tl.link_one desc, tsc.sort asc, tsc.create_time desc order by tsc.sort asc, tsc.create_time desc
</select> </select>
</mapper> </mapper>
...@@ -209,7 +209,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -209,7 +209,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="getExamNoticeInfo" resultType="map"> <select id="getExamNoticeInfo" resultType="map">
SELECT SELECT
ten.exam_notice_id AS examNoticeId, ten.exam_notice_id AS examNoticeId,
<choose> <choose>
<when test="examNoticeId != null and examNoticeId !=''"> <when test="examNoticeId != null and examNoticeId !=''">
ten.exam_id AS examId, ten.exam_id AS examId,
......
...@@ -114,6 +114,7 @@ export default { ...@@ -114,6 +114,7 @@ export default {
}); });
if (!isTypeOk) { if (!isTypeOk) {
this.$message.error(`文件格式不正确, 请上传${this.fileType.join("/")}格式文件!`); this.$message.error(`文件格式不正确, 请上传${this.fileType.join("/")}格式文件!`);
this.loading = false
return false; return false;
} }
} }
...@@ -122,6 +123,7 @@ export default { ...@@ -122,6 +123,7 @@ export default {
const isLt = file.size / 1024 / 1024 < this.fileSize; const isLt = file.size / 1024 / 1024 < this.fileSize;
if (!isLt) { if (!isLt) {
this.$message.error(`上传文件大小不能超过 ${this.fileSize} MB!`); this.$message.error(`上传文件大小不能超过 ${this.fileSize} MB!`);
this.loading = false
return false; return false;
} }
} }
......
...@@ -321,6 +321,7 @@ export default { ...@@ -321,6 +321,7 @@ export default {
dicts: ['tb_examine_status', 'tb_status', 'tb_frozen_status', 'tb_is_recommend'], dicts: ['tb_examine_status', 'tb_status', 'tb_frozen_status', 'tb_is_recommend'],
data() { data() {
return { return {
evaluateAgencyId: undefined,
openEvaluateAgencyCourse: false, openEvaluateAgencyCourse: false,
// 评价机构分类 // 评价机构分类
evaluateAgencyClassList: [], evaluateAgencyClassList: [],
......
...@@ -83,6 +83,7 @@ ...@@ -83,6 +83,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.examType ? scope.row.examType.includes('0') : false">考试</span> <span v-if="scope.row.examType ? scope.row.examType.includes('0') : false">考试</span>
<span v-if="scope.row.examType ? scope.row.examType.includes(['0', '1']) : false"></span> <span v-if="scope.row.examType ? scope.row.examType.includes(['0', '1']) : false"></span>
<span v-if="scope.row.examType ? scope.row.examType.includes(['1', '0']) : false"></span>
<span v-if="scope.row.examType ? scope.row.examType.includes('1') : false">模拟考试</span> <span v-if="scope.row.examType ? scope.row.examType.includes('1') : false">模拟考试</span>
</template> </template>
</el-table-column> </el-table-column>
......
...@@ -426,7 +426,7 @@ export default { ...@@ -426,7 +426,7 @@ export default {
discussScore: 0, discussScore: 0,
totalScore: null, totalScore: null,
passScore: 60, passScore: 60,
simulationExamMinute: null, simulationExamMinute: 60,
simulationStatus: 0, simulationStatus: 0,
examCourseList: [] examCourseList: []
}; };
......
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