Commit 7c11483c authored by zhengke's avatar zhengke

修改

parent 4195baee
......@@ -208,10 +208,10 @@
<div class="examPaper page-body">
<div class="examPaper_Top">
<div style="width:80%;display:flex;">
<div style="width:40%;margin:0 20px;">
<div style="width:36%;margin:0 20px;">
<q-input filled label="标题" v-model="DataObj.PaperName" />
</div>
<div style="width:20%;">
<div style="width:24%;">
<q-select filled option-value="Id" option-label="Name" :options="questionDifficultyTypeList" emit-value
map-options label="难度" use-input clearable v-model="DataObj.DifficultyType" />
</div>
......@@ -224,8 +224,8 @@
<div class="Exam-main">
<div class="Exam-left f1">
<p class="Left-ptitel">
<span>题量:<i>10</i></span>
<span>  总分:<i>50.0</i></span>
<span>题量:<i>{{examNum}}</i></span>
<span>  总分:<i>{{examScore}}</i></span>
</p>
<div class="Left-list" style="height:740px;overflow:auto;">
<template v-if="DataObj&&DataObj.GroupList&&DataObj.GroupList.length>0">
......@@ -250,7 +250,7 @@
<span class="exam_ListSHow">
<i class="iconfont icon-shangyi2" @click.stop="MoveChildItem(gIndex,dIndex,0)" style="margin-right:5px;" v-if="dIndex!=0"></i>
<i class="iconfont icon-xiayi" @click.stop="MoveChildItem(gIndex,dIndex,1)" v-if="dIndex!=gItem.DetailsList.length-1"></i>
<i class="iconfont icon-shanchu2" style="margin-left:5px;font-size:17px;"></i>
<i class="iconfont icon-shanchu2" @click.stop="delExam(gItem.DetailsList,dIndex)" style="margin-left:5px;font-size:17px;"></i>
</span>
</li>
</ul>
......@@ -436,7 +436,9 @@
firstTypeList: [], //第一类题型
secondTypeList: [], //第二类题型
isShowQuestion: false,
commonIndex: -1
commonIndex: -1,
examNum:0, //题量
examScore:0 //总分
}
},
created() {
......@@ -494,6 +496,10 @@
}
}
},
//删除题目
delExam(item,index){
item.splice(index,1);
},
//点击修改标题名字和分数
getNameEdit(item,index){
item.forEach(x=>{
......@@ -566,8 +572,14 @@
if (res.Code == 1) {
this.DataObj = res.Data;
}
this.examScore = 0;
this.examNum = 0;
this.DataObj.GroupList.forEach(x=>{
x.isShowEdit = false;
this.examNum += x.DetailsList.length;
x.DetailsList.forEach(y=>{
this.examScore += y.Score;
})
})
})
},
......
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