Commit d6781064 authored by 黄奎's avatar 黄奎

页面修改

parent 03eafda3
......@@ -100,7 +100,7 @@
</template>
</template>
</el-table-column>
<el-table-column prop="PublishCount" label="发次数">
<el-table-column prop="PublishCount" label="发布考试次数">
<template slot-scope="scope">
<template v-if="scope.row.PaperType==1">
---
......
......@@ -249,10 +249,11 @@
<div class="List-con1" v-for="(gItem,gIndex) in DataObj.GroupList" :key="gIndex">
<div class="List-bt">
<strong class="f1">
<template v-if="!gItem.isShowEdit">{{gIndex+1}}&nbsp;{{gItem.GroupName}}</template>
<template v-if="!gItem.isShowEdit">{{gIndex+1}}&nbsp;{{gItem.GroupName}}
(共{{gItem.DetailsList.length}}题,{{gItem.GScore}}分)</template>
<template v-else>
<input style="width:160px;margin-right:10px;" v-model="gItem.GroupName" />
<input style="width:40px;" filled v-model="gItem.GScore" @change="changeGroupScore(gItem)" />
<input style="width:40px;" filled v-model="gItem.GScore" @input="changeGroupScore(gItem)" />
</template>
</strong>
<i class="iconfont icon-edit" title="编辑" style="font-size:18px;margin-right:5px;"
......@@ -307,7 +308,7 @@
</div>
<div class="row wrap" v-if="ChooseItem" style="padding:20px;">
<div class="edit_stem">
<q-input filled stack-label maxlength="5" :dense="false" @keyup.native="checkInteger(ChooseItem,'Score')"
<q-input filled stack-label maxlength="5" :dense="false" @keyup.native="checkPrice(ChooseItem,'Score')"
v-model="ChooseItem.Score" class="col-12 q-pb-lg" label="分数" />
</div>
<div class="col-12">
......@@ -774,15 +775,17 @@
this.examNum = 0;
if (this.DataObj && this.DataObj.GroupList) {
this.DataObj.GroupList.forEach(x => {
x.isShowEdit = false;
var tempGScore=0;
if (x.DetailsList && x.DetailsList.length > 0) {
this.examNum += x.DetailsList.length;
x.DetailsList.forEach(y => {
if (y.Score) {
this.examScore += parseInt(y.Score);
tempGScore+=Number(y.Score)
this.examScore += Number(y.Score);
}
})
}
x.GScore=tempGScore;
})
}
},
......@@ -904,7 +907,7 @@
}
}
//填空题
if (this.DataObj.GroupList[k].QuestionTypeKey == 'fill-in'){
if (this.DataObj.GroupList[k].QuestionTypeKey == 'fill-in') {
for (let i = 0; i < this.DataObj.GroupList[k].DetailsList.length; i++) {
if (this.DataObj.GroupList[k].DetailsList[i].Title == '') {
this.$q.notify({
......@@ -929,8 +932,10 @@
}
}
//判断题
if (this.DataObj.GroupList[k].QuestionTypeKey == 'judge'||this.DataObj.GroupList[k].QuestionTypeKey == 'reading-comprehensio'||
this.DataObj.GroupList[k].QuestionTypeKey == 'spoken'||this.DataObj.GroupList[k].QuestionTypeKey == 'other'||this.DataObj.GroupList[k].QuestionTypeKey == 'noun-explanation'){
if (this.DataObj.GroupList[k].QuestionTypeKey == 'judge' || this.DataObj.GroupList[k].QuestionTypeKey ==
'reading-comprehensio' ||
this.DataObj.GroupList[k].QuestionTypeKey == 'spoken' || this.DataObj.GroupList[k].QuestionTypeKey ==
'other' || this.DataObj.GroupList[k].QuestionTypeKey == 'noun-explanation') {
for (let i = 0; i < this.DataObj.GroupList[k].DetailsList.length; i++) {
if (this.DataObj.GroupList[k].DetailsList[i].Title == '') {
this.$q.notify({
......@@ -944,8 +949,10 @@
}
}
//简答题 论述题
if (this.DataObj.GroupList[k].QuestionTypeKey == 'short-answer'||this.DataObj.GroupList[k].QuestionTypeKey == 'essay-question'||
this.DataObj.GroupList[k].QuestionTypeKey == 'calculation'||this.DataObj.GroupList[k].QuestionTypeKey == 'entry-problem'){
if (this.DataObj.GroupList[k].QuestionTypeKey == 'short-answer' || this.DataObj.GroupList[k]
.QuestionTypeKey == 'essay-question' ||
this.DataObj.GroupList[k].QuestionTypeKey == 'calculation' || this.DataObj.GroupList[k].QuestionTypeKey ==
'entry-problem') {
for (let i = 0; i < this.DataObj.GroupList[k].DetailsList.length; i++) {
if (this.DataObj.GroupList[k].DetailsList[i].Title == '') {
this.$q.notify({
......@@ -956,7 +963,7 @@
result = false;
return;
}
if(this.DataObj.GroupList[k].DetailsList[i].Answer == ''){
if (this.DataObj.GroupList[k].DetailsList[i].Answer == '') {
this.$q.notify({
type: 'negative',
position: "top",
......
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