Commit aee9aa7b authored by zhengke's avatar zhengke

修改

parent 0aee5927
...@@ -10,13 +10,14 @@ ...@@ -10,13 +10,14 @@
.Exam-main { .Exam-main {
width: 100%; width: 100%;
min-width: 1000px;
height: auto !important; height: auto !important;
overflow: hidden; overflow: hidden;
margin-top: 20px; margin-top: 20px;
} }
.Exam-left { .Exam-left {
width: 29%; width: 33%;
border-right: 1px solid #d9d9d9; border-right: 1px solid #d9d9d9;
border-bottom: 1px solid #d9d9d9; border-bottom: 1px solid #d9d9d9;
border-radius: 3px; border-radius: 3px;
...@@ -243,9 +244,9 @@ ...@@ -243,9 +244,9 @@
<div class="Exam-left f1"> <div class="Exam-left f1">
<p class="Left-ptitel"> <p class="Left-ptitel">
<span>题量:<i>{{examNum}}</i></span> <span>题量:<i>{{examNum}}</i></span>
<span>  总分:<i>{{examScore}}</i></span> <span>  总分:<i>{{examScore.toFixed(2)}}</i></span>
</p> </p>
<div class="Left-list" style="height:740px;overflow:auto;"> <div class="Left-list" style="min-height:740px;overflow:auto;">
<template v-if="DataObj&&DataObj.GroupList&&DataObj.GroupList.length>0"> <template v-if="DataObj&&DataObj.GroupList&&DataObj.GroupList.length>0">
<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">
...@@ -254,7 +255,7 @@ ...@@ -254,7 +255,7 @@
(共{{ gItem.DetailsList?gItem.DetailsList.length:0 }}题,{{gItem.GScore}}分)</template> (共{{ gItem.DetailsList?gItem.DetailsList.length:0 }}题,{{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" @input="changeGroupScore(gItem)" /> <input style="width:40px;" filled v-model="gItem.GScore" @change="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;"
...@@ -572,7 +573,7 @@ ...@@ -572,7 +573,7 @@
sItem.Score = avgScore; sItem.Score = avgScore;
}) })
} }
this.calcPaper(); // this.calcPaper();
}, },
//上移下移(IsUp:0上移,1下移) //上移下移(IsUp:0上移,1下移)
MoveFatherItem(subIndex, IsUp) { MoveFatherItem(subIndex, IsUp) {
...@@ -846,12 +847,12 @@ ...@@ -846,12 +847,12 @@
this.examNum += x.DetailsList.length; this.examNum += x.DetailsList.length;
x.DetailsList.forEach(y => { x.DetailsList.forEach(y => {
if (y.Score) { if (y.Score) {
tempGScore += Number(y.Score) tempGScore += Number(y.Score);
this.examScore += Number(y.Score); this.examScore += Number(y.Score);
} }
}) })
} }
x.GScore = tempGScore; x.GScore = tempGScore.toFixed(2);
}) })
} }
}, },
......
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