Commit 36a8bf74 authored by 黄奎's avatar 黄奎

页面修改

parent ee0d65c5
...@@ -303,7 +303,7 @@ ...@@ -303,7 +303,7 @@
<template v-slot:body-cell-signUser="props"> <template v-slot:body-cell-signUser="props">
<q-td> <q-td>
<div v-for="(item,index) in props.row.TimeList" class="lessForm_Class"> <div v-for="(item,index) in props.row.TimeList" class="lessForm_Class">
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="签到" <q-btn v-if="props.row.IsEndDate" flat size="xs" icon="edit" color="accent" style="font-weight:400" label="签到"
@click.stop="getClicked(props.row,item)"></q-btn> @click.stop="getClicked(props.row,item)"></q-btn>
</div> </div>
</q-td> </q-td>
......
...@@ -125,8 +125,9 @@ ...@@ -125,8 +125,9 @@
v-if="currentUserInfo.Id==props.row.CreateBy" /> v-if="currentUserInfo.Id==props.row.CreateBy" />
</template> </template>
<template v-if="props.row.PaperType==2"> <template v-if="props.row.PaperType==2">
<q-btn flat size="xs" color="primary" icon="edit" style="font-weight:400" @click="goExameEdit(props.row)" label="编辑" <q-btn flat size="xs" color="primary" icon="edit" style="font-weight:400" @click="goExameEdit(props.row)" label="编辑"
v-if="currentUserInfo.Id==props.row.CreateBy &&(props.row.ExamineStatus==0||props.row.ExamineStatus==3||props.row.ExamineStatus==4)" /> />
<q-btn flat size="xs" color="primary" icon="iconfont icon-View" style="font-weight:400" @click="showPaperInfo(props.row)" label="详情"/> <q-btn flat size="xs" color="primary" icon="iconfont icon-View" style="font-weight:400" @click="showPaperInfo(props.row)" label="详情"/>
</template> </template>
<q-btn-dropdown flat size="xs" color="dark" label="更多" style="margin-left: 10px"> <q-btn-dropdown flat size="xs" color="dark" label="更多" style="margin-left: 10px">
......
...@@ -28,8 +28,8 @@ ...@@ -28,8 +28,8 @@
<template> <template>
<div class="v_readingComprehensioQuestion"> <div class="v_readingComprehensioQuestion">
<template v-if="data&&data.QuestionContentObj&&data.QuestionContentObj.length>0"> <template v-if="data&&data.QuestionContentObj&&data.QuestionContentObj.length>0">
<table class="common_TiTable" v-for="(item,index) in data.QuestionContentObj" :key="index"> <table class="common_TiTable">
<thead> <tbody v-for="(item,index) in data.QuestionContentObj" :key="index">
<tr> <tr>
<th colspan="2" style="text-align:left;"> <th colspan="2" style="text-align:left;">
<div class="clozeTest_question_tit"> <div class="clozeTest_question_tit">
...@@ -41,8 +41,6 @@ ...@@ -41,8 +41,6 @@
</div> </div>
</th> </th>
</tr> </tr>
</thead>
<tbody>
<tr> <tr>
<td colspan="2"> <td colspan="2">
<div style="margin:16px 0;" v-html="item.SubTitle"></div> <div style="margin:16px 0;" v-html="item.SubTitle"></div>
...@@ -60,7 +58,7 @@ ...@@ -60,7 +58,7 @@
</div> </div>
</template> </template>
<template v-else-if="isOperate"> <template v-else-if="isOperate">
<div class="Answer_List2" @click="ChangeItem(item,subItem)" <div class="Answer_List2" style="cursor:pointer;" @click="ChangeItem(item,subItem)"
:class="{'Is_Answer':subItem.IsAnswer }"> :class="{'Is_Answer':subItem.IsAnswer }">
{{subItem.Name}} {{subItem.Name}}
</div> </div>
...@@ -78,7 +76,7 @@ ...@@ -78,7 +76,7 @@
</div> </div>
</template> </template>
<template v-else-if="isOperate"> <template v-else-if="isOperate">
<div class="Answer_List" @click="changeMutile(subItem)" :class="{'Is_Answer':subItem.IsAnswer}"> <div class="Answer_List" style="cursor:pointer;" @click="changeMutile(subItem)" :class="{'Is_Answer':subItem.IsAnswer}">
{{subItem.Name}} {{subItem.Name}}
</div> </div>
</template> </template>
...@@ -99,7 +97,7 @@ ...@@ -99,7 +97,7 @@
<template v-if="item.QuestionKey=='fill-in'"> <template v-if="item.QuestionKey=='fill-in'">
<template v-if="isShowAnswer"> <template v-if="isShowAnswer">
<tr v-for="(subItem,subIndex) in item.SubAnwser" :key="subIndex"> <tr v-for="(subItem,subIndex) in item.SubAnwser" :key="subIndex">
<td style="width:50px;text-align:center;padding-top:8px;"> <td style="width:70px;text-align:center;padding-top:8px;">
{{subIndex+1}} {{subIndex+1}}
</td> </td>
<td> <td>
...@@ -165,6 +163,28 @@ ...@@ -165,6 +163,28 @@
</template> </template>
</template> </template>
</tbody> </tbody>
<tfoot v-if="isShowStudentAnswer">
<template v-if="data.AnswerList">
<tr>
<td colspan="2" style="font-weight:bold">
学生答案
</td>
</tr>
<tr v-for="(item,index) in data.AnswerList" :key="index">
<td style="font-weight:bold">
{{index+1}}
</td>
<td style="font-weight:bold">
{{item.Content}}
</td>
</tr>
</template>
<tr>
<td colspan="2">
<q-input standout="bg-primary text-white" v-model="data.StundetScore" label="得分:" maxlength="20" />
</td>
</tr>
</tfoot>
</table> </table>
</template> </template>
</div> </div>
......
...@@ -251,7 +251,10 @@ ...@@ -251,7 +251,10 @@
<div> <div>
{{DataObj.PaperName}} <br /> {{DataObj.PaperName}} <br />
题量:{{examNum}} &nbsp;&nbsp;&nbsp; 满分:{{examScore}} 题量:{{examNum}} &nbsp;&nbsp;&nbsp; 满分:{{examScore}}
<br />
<q-input filled stack-label maxlength="100" :dense="false" v-model="DataObj.StuComment"
class="col-6 q-pb-lg q-pr-lg" label="评语" />
</div> </div>
</div> </div>
<div style="width:20%;text-align:right;"> <div style="width:20%;text-align:right;">
...@@ -363,7 +366,6 @@ ...@@ -363,7 +366,6 @@
data() { data() {
return { return {
msg: { msg: {
Id: 0,
GuestId: 0, GuestId: 0,
PaperId: 0, PaperId: 0,
PublishId: 0, PublishId: 0,
...@@ -371,6 +373,7 @@ ...@@ -371,6 +373,7 @@
}, },
//试卷对象 //试卷对象
DataObj: { DataObj: {
StuComment: "", //学员评语
PaperId: 0, //试卷编号 PaperId: 0, //试卷编号
PaperName: '', //试卷名称 PaperName: '', //试卷名称
GuestId: 0, //学员编号 GuestId: 0, //学员编号
...@@ -386,9 +389,6 @@ ...@@ -386,9 +389,6 @@
}, },
created() { created() {
if (this.$route.query) { if (this.$route.query) {
if (this.$route.query.Id && this.$route.query.Id > 0) {
this.msg.Id = this.$route.query.Id;
}
if (this.$route.query.GuestId && this.$route.query.GuestId > 0) { if (this.$route.query.GuestId && this.$route.query.GuestId > 0) {
this.msg.GuestId = this.$route.query.GuestId; this.msg.GuestId = this.$route.query.GuestId;
} }
...@@ -437,7 +437,7 @@ ...@@ -437,7 +437,7 @@
GetPaperInfo() { GetPaperInfo() {
queryPaperDetails(this.msg).then(res => { queryPaperDetails(this.msg).then(res => {
var tempData = res.Data; var tempData = res.Data;
console.log("tempData",tempData); console.log("tempData", tempData);
if (res.Code == 1) { if (res.Code == 1) {
this.DataObj.PaperId = tempData.Paper.PaperId; this.DataObj.PaperId = tempData.Paper.PaperId;
this.DataObj.PaperName = tempData.Paper.PaperName; this.DataObj.PaperName = tempData.Paper.PaperName;
......
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