提交 43aed831 authored 作者: Yroc's avatar Yroc

'学生端答题页面调整'

上级 7406a0bc
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: AnthonyD * @Author: AnthonyD
* @Date: 2023-02-23 15:52:52 * @Date: 2023-02-23 15:52:52
* @Last Modified by: AnthonyD * @Last Modified by: AnthonyD
* @Last Modified time: 2023-04-24 18:32:53 * @Last Modified time: 2023-04-26 19:22:46
*/ */
</script><template> </script><template>
<div class="person_container"> <div class="person_container">
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: AnthonyD * @Author: AnthonyD
* @Date: 2023-03-01 16:25:21 * @Date: 2023-03-01 16:25:21
* @Last Modified by: AnthonyD * @Last Modified by: AnthonyD
* @Last Modified time: 2023-04-03 19:52:34 * @Last Modified time: 2023-04-26 19:15:38
*/ */
</script> </script>
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
:testdata="test_card_info" :testdata="test_card_info"
@sub="sub" @sub="sub"
></test-info> ></test-info>
<el-card class="box-card browser_box"> <el-card class="box-card browser_box" v-if="test_result_sub_data[0]">
<el-row class="box_card_header"> <el-row class="box_card_header">
<el-col :span="14"> <el-col :span="14">
<div class="grid-content"> <div class="grid-content">
...@@ -75,10 +75,10 @@ ...@@ -75,10 +75,10 @@
<el-col :span="10" v-show="true"> <el-col :span="10" v-show="true">
<div class="upload_right"> <div class="upload_right">
<el-row style="display: flex; justify-content: space-between"> <el-row style="display: flex; justify-content: space-between">
<el-col :span="12"> <el-col :span="17">
<h3 class="photo_header_title">上传纸质考试照片</h3> <h3 class="photo_header_title">上传纸质考试照片</h3>
</el-col> </el-col>
<el-col :span="12" style="text-align: right"> <el-col :span="7" style="text-align: right">
<el-upload <el-upload
name="image" name="image"
:accept="'image/*'" :accept="'image/*'"
...@@ -140,7 +140,7 @@ ...@@ -140,7 +140,7 @@
</el-card> </el-card>
<!-- 移动端 --> <!-- 移动端 -->
<el-card class="box-card mobile_box" v-if="true"> <el-card class="box-card mobile_box" v-if="test_result_sub_data[0]">
<el-row class="box_card_header"> <el-row class="box_card_header">
<el-col :span="24"> <el-col :span="24">
<div class="grid-content"> <div class="grid-content">
...@@ -204,11 +204,11 @@ ...@@ -204,11 +204,11 @@
<el-row class="box_card_header"> <el-row class="box_card_header">
<el-col :span="24"> <el-col :span="24">
<div class="upload_right"> <div class="upload_right">
<el-row style="display: flex; justify-content: space-between"> <el-row>
<el-col :span="12"> <el-col :span="17">
<h3 class="photo_header_title">上传纸质考试照片</h3> <h3 class="photo_header_title">上传纸质考试照片</h3>
</el-col> </el-col>
<el-col :span="12" style="text-align: right"> <el-col :span="7" style="text-align: right">
<el-upload <el-upload
name="image" name="image"
:accept="'image/*'" :accept="'image/*'"
...@@ -268,16 +268,18 @@ ...@@ -268,16 +268,18 @@
> >
</div> </div>
</el-card> </el-card>
<!-- <el-button type="primary" style="width: 100%" @click="dialogVisible = true"
>sssss</el-button
> -->
<el-dialog <el-dialog
title="请选择等级"
v-if="test_result_sub_data[s_item]" v-if="test_result_sub_data[s_item]"
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
class="answer_box" class="answer_box"
> >
<div slot="title">
<span>
请选择第{{ s_item + 1 }}题等级:{{
test_result_sub_data[s_item].value
}}</span
>
</div>
<div style="overflow-y: scroll; max-height: 500px"> <div style="overflow-y: scroll; max-height: 500px">
<el-row> <el-row>
<el-col <el-col
...@@ -293,7 +295,11 @@ ...@@ -293,7 +295,11 @@
</div> </div>
<el-radio-group <el-radio-group
size="mini" size="mini"
@change="dialogVisible = false" @change="
s_item < test_result_sub_data.length
? s_item++
: (dialogVisible = false)
"
v-model="test_result_sub_data[s_item].value" v-model="test_result_sub_data[s_item].value"
> >
<el-radio-button <el-radio-button
...@@ -311,20 +317,21 @@ ...@@ -311,20 +317,21 @@
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
<!-- <span slot="footer" class="dialog-footer">
<el-button @click="dialogVisible = false">取 消</el-button>
<el-button type="primary" @click="dialogVisible = false"
>确 定</el-button
>
</span> -->
</el-dialog> </el-dialog>
<!-- 移动 --> <!-- 移动 -->
<el-dialog <el-dialog
title="请选择等级"
v-if="test_result_sub_data[s_item]" v-if="test_result_sub_data[s_item]"
:visible.sync="dialogVisibleMobile" :visible.sync="dialogVisibleMobile"
class="answer_box" class="answer_box"
> >
<div slot="title">
<span>
请选择第{{ s_item + 1 }}题等级:{{
test_result_sub_data[s_item].value
}}</span
>
</div>
<div style="overflow-y: scroll; max-height: 500px"> <div style="overflow-y: scroll; max-height: 500px">
<el-row> <el-row>
<el-col <el-col
...@@ -340,7 +347,11 @@ ...@@ -340,7 +347,11 @@
</div> </div>
<el-radio-group <el-radio-group
size="mini" size="mini"
@change="dialogVisibleMobile = false" @change="
s_item < test_result_sub_data.length
? s_item++
: (dialogVisible = false)
"
v-model="test_result_sub_data[s_item].value" v-model="test_result_sub_data[s_item].value"
> >
<el-radio-button <el-radio-button
...@@ -357,12 +368,6 @@ ...@@ -357,12 +368,6 @@
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
<!-- <span slot="footer" class="dialog-footer">
<el-button @click="dialogVisibleMobile = false">取 消</el-button>
<el-button type="primary" @click="dialogVisibleMobile = false"
>确 定</el-button
>
</span> -->
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
...@@ -476,8 +481,9 @@ export default { ...@@ -476,8 +481,9 @@ export default {
.length / 5 .length / 5
); );
} }
console.log('sub-data' + this.test_result_sub_data); console.log('sub-data');
console.log('@@@@@@@@@@@@@@@@@@@@@@@@@@'); console.log(this.test_result_sub_data);
// console.log('@@@@@@@@@@@@@@@@@@@@@@@@@@');
console.log(this.test_results); console.log(this.test_results);
}); });
}, },
...@@ -716,9 +722,7 @@ export default { ...@@ -716,9 +722,7 @@ export default {
.result_box { .result_box {
width: 80px; width: 80px;
} }
.reupload_box {
margin-left: 158px;
}
.row_line .left_data { .row_line .left_data {
border-top: 1px solid #dcdfe6; border-top: 1px solid #dcdfe6;
border-left: 2px solid #dcdfe6; border-left: 2px solid #dcdfe6;
...@@ -773,9 +777,9 @@ export default { ...@@ -773,9 +777,9 @@ export default {
} }
.reupload_box { .reupload_box {
margin-left: 76px; margin-top: 8px;
margin-top: 10px;
} }
.photo_header_title { .photo_header_title {
margin-top: 15px; margin-top: 15px;
} }
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论