提交 14487f48 authored 作者: 王鹏飞's avatar 王鹏飞

updates

上级 9c0aae9c
...@@ -35,7 +35,9 @@ ...@@ -35,7 +35,9 @@
:disabled="disabled" :disabled="disabled"
></el-input> ></el-input>
</template> </template>
<slot></slot> <template v-if="questionType === 3">
<slot></slot>
</template>
</div> </div>
<div class="question-list-item-ft" v-if="hasResult"> <div class="question-list-item-ft" v-if="hasResult">
<h3 class="question-list-item-ft__title">答案解析</h3> <h3 class="question-list-item-ft__title">答案解析</h3>
......
...@@ -19,14 +19,14 @@ ...@@ -19,14 +19,14 @@
<div class="review-btn"> <div class="review-btn">
<el-button type="primary" @click="visible = true">点评</el-button> <el-button type="primary" @click="visible = true">点评</el-button>
</div> </div>
<div ref='reviewCard' :scorenum="item.score" :questionid="item.id" :itemid="data.question_item_id"></div> <div ref="reviewCard" :scorenum="item.score" :questionid="item.id" :itemid="data.question_item_id"></div>
<div class="review-card" v-if="visible"> <div class="review-card" v-if="visible">
<el-card class="box-card"> <el-card class="box-card">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>本题{{ item.score }}</span> <span>本题{{ item.score }}</span>
<div class="score"> <div class="score">
<span>学生得分:</span> <span>学生得分:</span>
<input type="number" :disabled="isReviewFlag" v-model="scoreNum" placeholder="请输入分数"> <input type="number" :disabled="isReviewFlag" v-model="scoreNum" placeholder="请输入分数" />
</div> </div>
</div> </div>
<div class="textarea"> <div class="textarea">
...@@ -37,7 +37,8 @@ ...@@ -37,7 +37,8 @@
placeholder="请输入本题点评" placeholder="请输入本题点评"
max="2" max="2"
resize="none" resize="none"
v-model="textarea"> v-model="textarea"
>
</el-input> </el-input>
</div> </div>
<div class="submit-btn"> <div class="submit-btn">
...@@ -47,21 +48,22 @@ ...@@ -47,21 +48,22 @@
</div> </div>
</div> </div>
</template> </template>
<template v-slot:students="{ data }"> <template v-slot:students>
<div class="stu-list"> <div class="stu-list">
<div class="title"> <div class="title">
<span>学生列表</span> <span>学生列表</span>
<el-select @change="change" v-model="selectValue" placeholder="请选择"> <el-select @change="change" v-model="selectValue" placeholder="请选择">
<el-option <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> </el-option>
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select> </el-select>
</div> </div>
<ul> <ul>
<li :class="item.id === $route.query.stu_id ? 'active' : ''" v-for="(item, index) in studentList" :key="index">{{ item.name }}</li> <li
:class="item.id === $route.query.stu_id ? 'active' : ''"
v-for="(item, index) in studentList"
:key="index"
>
{{ item.name }}
</li>
</ul> </ul>
</div> </div>
</template> </template>
...@@ -157,14 +159,15 @@ export default { ...@@ -157,14 +159,15 @@ export default {
confirmButtonText: '点评', confirmButtonText: '点评',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => {
api.submitReviewDetails(param).then(response => {
this.$message('批阅成功')
})
}).catch(() => {
}) })
.then(() => {
api.submitReviewDetails(param).then(response => {
this.$message('批阅成功')
})
})
.catch(() => {})
}, },
handlePageChange() { handlePageChange(index, group, groupList) {
const refReview = this.$refs.reviewCard const refReview = this.$refs.reviewCard
const itemId = refReview.getAttribute('itemid') const itemId = refReview.getAttribute('itemid')
const questionId = refReview.getAttribute('questionid') const questionId = refReview.getAttribute('questionid')
...@@ -186,45 +189,45 @@ export default { ...@@ -186,45 +189,45 @@ export default {
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.review-btn{ .review-btn {
display: flex; display: flex;
justify-content: right; justify-content: right;
padding: 20px 0; padding: 20px 0;
} }
.score{ .score {
float: right; float: right;
display: flex; display: flex;
input{ input {
width: 90px; width: 90px;
height: 100%; height: 100%;
outline: none; outline: none;
} }
} }
.submit-btn{ .submit-btn {
display: flex; display: flex;
justify-content: center; justify-content: center;
padding-top: 20px; padding-top: 20px;
} }
.review-box{ .review-box {
// max-width: 500px; // max-width: 500px;
} }
.stu-list{ .stu-list {
.title{ .title {
// text-align: center; // text-align: center;
margin-bottom: 10px; margin-bottom: 10px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
::v-deep{ ::v-deep {
.el-select{ .el-select {
width: 120px; width: 120px;
} }
} }
} }
ul{ ul {
li{ li {
padding: 3px 0; padding: 3px 0;
&.active{ &.active {
color: #c01540; color: #c01540;
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论