提交 77c71b12 authored 作者: 王鹏飞's avatar 王鹏飞

课程考核修改

上级 4b98c5f3
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<template v-if="data.course_score"> {{ data.course_score }}{{ $t('pages.learn.courseDetail.point') }} </template> <template v-if="data.course_score"> {{ data.course_score }}{{ $t('pages.learn.courseDetail.point') }} </template>
<template v-else>{{ $t('pages.learn.courseDetail.no') }}</template> <template v-else>{{ $t('pages.learn.courseDetail.no') }}</template>
</h1> </h1>
<!-- <course-assessment-standard :data="data" v-bind="$attrs" v-if="data.course_check" /> --> <course-assessment-standard :data="data" v-bind="$attrs" />
<course-assessment-progress :data="data" /> <course-assessment-progress :data="data" />
</div> </div>
</template> </template>
......
<!--课程考核--> <!--课程考核-->
<template> <template>
<div class="course-assess-standard" v-if="checkList.length"> <div class="course-assess-standard" v-if="data.course_evaluation || checkList.length">
<div class="subtitle"> <div class="subtitle">
<span>{{ $t('pages.learn.courseDetail.Courseassessmentstandard') }}</span> <span>{{ $t('pages.learn.courseDetail.Courseassessmentstandard') }}</span>
</div> </div>
<div class="item"> <div v-html="data.course_evaluation" v-if="data.course_evaluation"></div>
<h2 class="item-title">一、最终成绩计算</h2> <template v-else>
<!-- 中方课程 --> <div class="item">
<p v-if="course.course_check_type === 1"> <h2 class="item-title">一、最终成绩计算</h2>
<template v-for="(item, index) in checkList"> <!-- 中方课程 -->
<span :key="index">{{ index ? '+' : '' }}{{ item.name }}得分*{{ item.percent }}%</span> <p v-if="course.course_check_type === 1">
</template> <template v-for="(item, index) in checkList">
= 该门课程总得分,满分100分,低于{{ data.course_check_pass_score }}分为不及格,需重修此门课程。 <span :key="index">{{ index ? '+' : '' }}{{ item.name }}得分*{{ item.percent }}%</span>
</p> </template>
<!-- 美方课程 --> = 该门课程总得分,满分100分,低于{{ data.course_check_pass_score }}分为不及格,需重修此门课程。
<p v-else>美方课程最终成绩请参考每学期初教务邮箱老师发到大家邮箱中的课程考核大纲进行计算。</p> </p>
<v-chart class="chart" :option="option" :autoresize="true" /> <!-- 美方课程 -->
</div> <p v-else>美方课程最终成绩请参考每学期初教务邮箱老师发到大家邮箱中的课程考核大纲进行计算。</p>
<div class="item"> <v-chart class="chart" :option="option" :autoresize="true" />
<h2 class="item-title">二、具体细则</h2>
<div v-for="(item, index) in checkList" :key="index">
<div class="item-subtitle">{{ `${item.name} 总分${item.score}分(占科目总成绩的${item.percent}%)` }}</div>
<div v-html="item.content"></div>
</div> </div>
</div> <div class="item">
<h2 class="item-title">二、具体细则</h2>
<div v-for="(item, index) in checkList" :key="index">
<div class="item-subtitle">{{ `${item.name} 总分${item.score}分(占科目总成绩的${item.percent}%)` }}</div>
<div v-html="item.content"></div>
</div>
</div>
</template>
</div> </div>
</template> </template>
...@@ -43,7 +46,8 @@ export default { ...@@ -43,7 +46,8 @@ export default {
}, },
computed: { computed: {
checkList() { checkList() {
return this.data.course_check.filter(item => parseInt(item.percent)) const checkList = this.data.course_check || []
return checkList.filter(item => parseInt(item.percent))
}, },
option() { option() {
const data = this.checkList.map(item => { const data = this.checkList.map(item => {
...@@ -80,5 +84,10 @@ export default { ...@@ -80,5 +84,10 @@ export default {
::v-deep p { ::v-deep p {
padding: 5px 0; padding: 5px 0;
} }
::v-deep img {
display: block;
margin: 0 auto;
max-width: 100% !important;
}
} }
</style> </style>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论