--fix bug

This commit is contained in:
yuping
2023-03-27 00:06:07 +08:00
parent beb9ed2c3b
commit bac1ab0e2a
3 changed files with 8 additions and 6 deletions

View File

@@ -1042,7 +1042,7 @@
<span style="margin-right: 3px">报名设置</span> <span style="margin-right: 3px">报名设置</span>
</div> </div>
<div class="b_input"> <div class="b_input">
<a-checkbox v-model:checked="checked1"> <a-checkbox v-model:checked="checked1" :disabled = "itemType!=3">
<span style="color: #6d7584">是否允许公开报名</span> <span style="color: #6d7584">是否允许公开报名</span>
</a-checkbox> </a-checkbox>
</div> </div>
@@ -1053,7 +1053,7 @@
<span style="margin-right: 3px">签到设置</span> <span style="margin-right: 3px">签到设置</span>
</div> </div>
<div class="b_input"> <div class="b_input">
<a-checkbox v-model:checked="xjkkradioV1"> <a-checkbox v-model:checked="xjkkradioV1" :disabled = "itemType!=3">
<span style="color: #6d7584">是否允许未报名的学员签到</span> <span style="color: #6d7584">是否允许未报名的学员签到</span>
</a-checkbox> </a-checkbox>
</div> </div>
@@ -2163,6 +2163,7 @@ export default defineComponent({
workInfo: {}, workInfo: {},
examInfo: {}, examInfo: {},
tableLoading: false, tableLoading: false,
itemType: null,
columns1: [ columns1: [
{ {
title: "课程编号", title: "课程编号",
@@ -3721,6 +3722,7 @@ export default defineComponent({
//编辑开课 //编辑开课
const handelEditStu = async (item) => { const handelEditStu = async (item) => {
state.offcourseId = item.offcourseId; state.offcourseId = item.offcourseId;
state.itemType = item.type;
state.offcoursePlanId = item.id; state.offcoursePlanId = item.id;
if (item.homeWorkId) { if (item.homeWorkId) {

View File

@@ -235,7 +235,7 @@
}} }}
</div> </div>
<div class="proright1"> <div class="proright1">
<span class="textpro">必修</span> <span class="textpro">必修任务</span>
<a-progress <a-progress
:percent="fixDoublePer(chapterOverviewList[choosedStageIndex].completeReqCnt / (chapterOverviewList[choosedStageIndex].totalReqCnt || 0))" :percent="fixDoublePer(chapterOverviewList[choosedStageIndex].completeReqCnt / (chapterOverviewList[choosedStageIndex].totalReqCnt || 0))"
style="width: 369px" style="width: 369px"
@@ -249,7 +249,7 @@
}} }}
</div> </div>
<div class="proright1"> <div class="proright1">
<span class="textpro">选修</span> <span class="textpro">选修任务</span>
<a-progress <a-progress
:percent="fixDoublePer(chapterOverviewList[choosedStageIndex].completeOptCnt / (chapterOverviewList[choosedStageIndex].totalOptCnt || 0))" :percent="fixDoublePer(chapterOverviewList[choosedStageIndex].completeOptCnt / (chapterOverviewList[choosedStageIndex].totalOptCnt || 0))"
style="width: 369px" style="width: 369px"

View File

@@ -431,7 +431,7 @@
{{ stageOverviewList[choosedStageIndex]?.completeReqCnt || 0}} {{ stageOverviewList[choosedStageIndex]?.completeReqCnt || 0}}
</div> </div>
<div class="proright1"> <div class="proright1">
<span class="textpro">必修</span> <span class="textpro">必修任务</span>
<a-progress <a-progress
:percent="fixDoublePer(stageOverviewList[choosedStageIndex]?.completeReqCnt/(stageOverviewList[choosedStageIndex]?.totalReqCnt || 0))" :percent="fixDoublePer(stageOverviewList[choosedStageIndex]?.completeReqCnt/(stageOverviewList[choosedStageIndex]?.totalReqCnt || 0))"
style="width: 369px" style="width: 369px"
@@ -441,7 +441,7 @@
{{ stageOverviewList[choosedStageIndex]?.completeOptCnt || 0}} {{ stageOverviewList[choosedStageIndex]?.completeOptCnt || 0}}
</div> </div>
<div class="proright1"> <div class="proright1">
<span class="textpro">选修</span> <span class="textpro">选修任务</span>
<a-progress <a-progress
:percent="fixDoublePer(stageOverviewList[choosedStageIndex]?.completeOptCnt/(stageOverviewList[choosedStageIndex]?.totalOptCnt || 0))" :percent="fixDoublePer(stageOverviewList[choosedStageIndex]?.completeOptCnt/(stageOverviewList[choosedStageIndex]?.totalOptCnt || 0))"
style="width: 369px" style="width: 369px"