Commit d6781064 authored by 黄奎's avatar 黄奎

页面修改

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