mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 03:46:44 +08:00
提交修改
This commit is contained in:
@@ -941,12 +941,15 @@ export default {
|
|||||||
},
|
},
|
||||||
findPapers() {
|
findPapers() {
|
||||||
let params={
|
let params={
|
||||||
pageSize:50,
|
pageSize:200,
|
||||||
name:''
|
name:''
|
||||||
}
|
}
|
||||||
apiPaper.querypaper(params).then((res) => {
|
apiPaper.querypaper(params).then((res) => {
|
||||||
if (res.status === 200) {
|
if (res.status === 200) {
|
||||||
this.questDirOptions = res.result
|
this.questDirOptions = res.result;
|
||||||
|
if(this.examForm.paperId){
|
||||||
|
this.changePaper(this.examForm.paperId);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
this.$message.error(res.message)
|
this.$message.error(res.message)
|
||||||
}
|
}
|
||||||
@@ -980,6 +983,10 @@ export default {
|
|||||||
this.$refs.examForm.validate((valid) => {
|
this.$refs.examForm.validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
if (this.examForm.id) {
|
if (this.examForm.id) {
|
||||||
|
if(this.examForm.randomCount==1){
|
||||||
|
this.$message.warning('随机试题数必须大于1!')
|
||||||
|
return;
|
||||||
|
}
|
||||||
apiTest.update(this.examForm).then((res) => {
|
apiTest.update(this.examForm).then((res) => {
|
||||||
if (res.status === 200) {
|
if (res.status === 200) {
|
||||||
this.$message.success('保存成功!')
|
this.$message.success('保存成功!')
|
||||||
@@ -1016,6 +1023,7 @@ export default {
|
|||||||
testDuration:30,
|
testDuration:30,
|
||||||
entranceTime:'',
|
entranceTime:'',
|
||||||
deadlineTime:'',
|
deadlineTime:'',
|
||||||
|
paperId:'',
|
||||||
times:0,
|
times:0,
|
||||||
}
|
}
|
||||||
this.resourceList = []
|
this.resourceList = []
|
||||||
|
|||||||
Reference in New Issue
Block a user