mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-14 21:36:42 +08:00
考试控制问题
This commit is contained in:
@@ -66,7 +66,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-top:35px;text-align: center;"> <el-button type="primary" @click="saveContent(1)" size="mini">保存</el-button> </div>
|
<div style="margin-top:35px;text-align: center;"> <el-button :loading="loading" type="primary" @click="saveContent(1)" size="mini">保存</el-button> </div>
|
||||||
</div>
|
</div>
|
||||||
<!--音频-->
|
<!--音频-->
|
||||||
<div v-if="cware.content.contentType==20">
|
<div v-if="cware.content.contentType==20">
|
||||||
@@ -92,7 +92,7 @@
|
|||||||
<br/>
|
<br/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-top:35px;text-align: center;"> <el-button type="primary" @click="saveContent(1)" size="mini">保存</el-button> </div>
|
<div style="margin-top:35px;text-align: center;"> <el-button :loading="loading" type="primary" @click="saveContent(1)" size="mini">保存</el-button> </div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!--图片-->
|
<!--图片-->
|
||||||
@@ -125,7 +125,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<div><WxEditor v-model="cware.content.content" :minHeight="300"></WxEditor></div>
|
<div><WxEditor v-model="cware.content.content" :minHeight="300"></WxEditor></div>
|
||||||
<div style="text-align: center;padding-top: 20px;">
|
<div style="text-align: center;padding-top: 20px;">
|
||||||
<el-button @click="saveContent(1)" type="primary">保存</el-button>
|
<el-button :loading="loading" @click="saveContent(1)" type="primary">保存</el-button>
|
||||||
<!-- <el-button @click="deleteContent(1)" type="danger">删除</el-button> -->
|
<!-- <el-button @click="deleteContent(1)" type="danger">删除</el-button> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -231,7 +231,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<div style="text-align: center;padding: 10px;">
|
<div style="text-align: center;padding: 10px;">
|
||||||
<el-button type="primary" @click="saveContent(2)">保存</el-button>
|
<el-button :loading="loading" type="primary" @click="saveContent(2)">保存</el-button>
|
||||||
<el-button type="danger" @click="deleteContent(2)">删除</el-button>
|
<el-button type="danger" @click="deleteContent(2)">删除</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -308,7 +308,7 @@
|
|||||||
<div>自定义考试</div>
|
<div>自定义考试</div>
|
||||||
<div>
|
<div>
|
||||||
<el-checkbox v-model="exam.onlyQuestion">只显示试题</el-checkbox>
|
<el-checkbox v-model="exam.onlyQuestion">只显示试题</el-checkbox>
|
||||||
<el-button style="margin-left: 10px;" @click="saveContent(3)" type="primary" > 保 存 </el-button>
|
<el-button :loading="loading" style="margin-left: 10px;" @click="saveContent(3)" type="primary" > 保 存 </el-button>
|
||||||
<el-button style="margin-left: 10px;" @click="deleteContent(3)" type="danger" > 删 除 </el-button>
|
<el-button style="margin-left: 10px;" @click="deleteContent(3)" type="danger" > 删 除 </el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -322,7 +322,7 @@
|
|||||||
-->
|
-->
|
||||||
<el-form-item label="考试时长">
|
<el-form-item label="考试时长">
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-input v-model="exam.info.testDuration" placeholder="20-120">
|
<el-input size="mini" v-model="exam.info.testDuration" placeholder="20-120">
|
||||||
<template slot="append">分钟</template>
|
<template slot="append">分钟</template>
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-col>
|
</el-col>
|
||||||
@@ -331,9 +331,9 @@
|
|||||||
<el-input-number v-model="exam.info.times" :min="0" :max="10" label="0表不限制"></el-input-number>
|
<el-input-number v-model="exam.info.times" :min="0" :max="10" label="0表不限制"></el-input-number>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col> -->
|
</el-col> -->
|
||||||
<el-col :span="9">
|
<el-col :span="12">
|
||||||
<el-form-item label="及格线">
|
<el-form-item label="及格线">
|
||||||
<el-input placeholder="20-120" v-model="exam.info.passLine">
|
<el-input size="mini" placeholder="20-100" :maxlength="3" v-model="exam.info.passLine">
|
||||||
<template slot="append">%</template>
|
<template slot="append">%</template>
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -376,9 +376,9 @@
|
|||||||
<el-radio :label="2">最后一次</el-radio>
|
<el-radio :label="2">最后一次</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="15">
|
<el-col :span="16">
|
||||||
<el-form-item label="百分制">
|
<el-form-item label="百分制">
|
||||||
<el-checkbox v-model="exam.info.percentScore">按百分制显示成绩(实际成绩*100/实际总分)</el-checkbox>
|
<el-checkbox v-model="exam.info.percentScore">实际成绩*100/实际总分</el-checkbox>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -559,6 +559,7 @@
|
|||||||
},
|
},
|
||||||
data(){
|
data(){
|
||||||
return {
|
return {
|
||||||
|
loading:false,
|
||||||
converStatus:4,
|
converStatus:4,
|
||||||
courseFileShow:false,
|
courseFileShow:false,
|
||||||
curContent:{id:'',contentType:0,contenRefId:''},
|
curContent:{id:'',contentType:0,contenRefId:''},
|
||||||
@@ -683,13 +684,14 @@
|
|||||||
testDuration:30,
|
testDuration:30,
|
||||||
showAnalysis:false,
|
showAnalysis:false,
|
||||||
showAnswer:false,
|
showAnswer:false,
|
||||||
times:1,
|
times:0,
|
||||||
qnum:0,//试题数量,只是模式是随机生成试题时才会有
|
qnum:0,//试题数量,只是模式是随机生成试题时才会有
|
||||||
arrange:0,
|
arrange:0,
|
||||||
scoringType:1,
|
scoringType:1,
|
||||||
passLine:60,
|
passLine:60,
|
||||||
randomMode:false,
|
randomMode:false,
|
||||||
percentScore:true,
|
percentScore:true,
|
||||||
|
passLine:60,
|
||||||
paperType:1,//自定义试卷
|
paperType:1,//自定义试卷
|
||||||
paperId:'',//试卷的id,只有paperType为2的时间才会有值
|
paperId:'',//试卷的id,只有paperType为2的时间才会有值
|
||||||
info:'',//考试说明
|
info:'',//考试说明
|
||||||
@@ -945,6 +947,7 @@
|
|||||||
this.$message.error("请先保存课程信息再添加课件等信息");
|
this.$message.error("请先保存课程信息再添加课件等信息");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
this.loading=true;
|
||||||
let postData={
|
let postData={
|
||||||
type:10,
|
type:10,
|
||||||
content:null,
|
content:null,
|
||||||
@@ -1036,6 +1039,9 @@
|
|||||||
}else{
|
}else{
|
||||||
this.$message.error(res.message);
|
this.$message.error(res.message);
|
||||||
}
|
}
|
||||||
|
this.loading=false;
|
||||||
|
}).catch(err=>{
|
||||||
|
this.loading=false;
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
deleteContent(index){
|
deleteContent(index){
|
||||||
|
|||||||
Reference in New Issue
Block a user