mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-07 01:46:46 +08:00
考试
This commit is contained in:
@@ -30,8 +30,8 @@ export const TASK_VOTE_LIST = '/queryVoteSubmitDetailListByTaskId'
|
|||||||
export const STU_OFFCOURSE_DETAIL = '/stu/offcourse/detail'
|
export const STU_OFFCOURSE_DETAIL = '/stu/offcourse/detail'
|
||||||
export const WORK_QUERYWORKDETAILBYID = '/work/queryWorkDetailById'
|
export const WORK_QUERYWORKDETAILBYID = '/work/queryWorkDetailById'
|
||||||
export const WORK_HISTROY = '/workSubmit/queryWorkDetailListByStuId'
|
export const WORK_HISTROY = '/workSubmit/queryWorkDetailListByStuId'
|
||||||
export const EXAMINATION_QUERYEXAMINATIONDETAILBYID = '/examination/queryExaminationDetailById'
|
export const EXAMINATION_QUERY = examinationId => `/examination/queryExaminationDetailById?examinationId=${examinationId} post`
|
||||||
export const DISCUSS_COLLECTION = '/discussSubmit/clickDiscussCollectionCountOr post'
|
|
||||||
export const DISCUSS_LIKE = '/discussSubmit/clickDiscussLikeCountOr post'
|
export const DISCUSS_LIKE = '/discussSubmit/clickDiscussLikeCountOr post'
|
||||||
export const DISCUSS_LIST = '/discussSubmit/list'
|
export const DISCUSS_LIST = '/discussSubmit/list'
|
||||||
export const DISCUSS_DETAIL = '/discussSubmit/detail'
|
export const DISCUSS_DETAIL = '/discussSubmit/detail'
|
||||||
|
|||||||
@@ -37,20 +37,20 @@
|
|||||||
<!-- 中间盒子 -->
|
<!-- 中间盒子 -->
|
||||||
<div class="centercontent">
|
<div class="centercontent">
|
||||||
<div class="righttitle">
|
<div class="righttitle">
|
||||||
<img width="20px" height="20px" src="../../assets/image/yuan.png" />
|
<img width="20px" height="20px" src="../../assets/image/yuan.png"/>
|
||||||
|
|
||||||
<div class="text">考试测试</div>
|
<div class="text">{{ data.examinationName }}</div>
|
||||||
<div class="box"></div>
|
<div class="box"></div>
|
||||||
</div>
|
</div>
|
||||||
<!-- 考试测试的盒子 -->
|
<!-- 考试测试的盒子 -->
|
||||||
<div class="test clearfix">
|
<div class="test clearfix">
|
||||||
<div class="detail">
|
<div class="detail">
|
||||||
<span style="margin-right: 43px">考试时间:30分钟</span>
|
<span style="margin-right: 43px">考试时间:{{ data.examinationDuration }}分钟</span>
|
||||||
<span>及格线:60</span>
|
<span>及格线:{{data.passLine || 60}}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="testtime clearfix">
|
<div class="testtime clearfix">
|
||||||
<div class="timedetail">
|
<div class="timedetail">
|
||||||
考试时间:2022-7-20 00:00 至 2022-8-29 23:59:59
|
考试时间:{{ data.examinationStartTime }} 至 {{ data.examinationEndTime }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -60,7 +60,7 @@
|
|||||||
<button class="starttest" style="cursor: pointer">开始考试</button>
|
<button class="starttest" style="cursor: pointer">开始考试</button>
|
||||||
<!-- 开始考试按钮 -->
|
<!-- 开始考试按钮 -->
|
||||||
<div class="righttitleE">
|
<div class="righttitleE">
|
||||||
<img width="20px" height="20px" src="../../assets/image/yuan.png" />
|
<img width="20px" height="20px" src="../../assets/image/yuan.png"/>
|
||||||
|
|
||||||
<div class="text">历史纪录</div>
|
<div class="text">历史纪录</div>
|
||||||
<div class="box"></div>
|
<div class="box"></div>
|
||||||
@@ -101,13 +101,19 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- 详细内容 -->
|
<!-- 详细内容 -->
|
||||||
</div>
|
</div>
|
||||||
<!-- todo #考试接口 暂时没有-->
|
<!-- todo #考试接口 暂时没有-->
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script setup>
|
||||||
export default {
|
|
||||||
name: "ExamPage",
|
import {useRoute} from "vue-router/dist/vue-router";
|
||||||
};
|
import {usePage, useRequest} from "@/api/request";
|
||||||
|
import {COMMENT_LIST, DISCUSS_DETAIL, EXAMINATION_QUERY} from "@/api/api";
|
||||||
|
|
||||||
|
const {query: {id, discussSubmitId}} = useRoute()
|
||||||
|
|
||||||
|
const {data} = useRequest(EXAMINATION_QUERY(159), {})
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
@@ -118,18 +124,21 @@ export default {
|
|||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
line-height: 24px;
|
line-height: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.prevnext {
|
.prevnext {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
|
|
||||||
.prev {
|
.prev {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
@@ -138,6 +147,7 @@ export default {
|
|||||||
margin-top: 17px;
|
margin-top: 17px;
|
||||||
margin-left: -11px;
|
margin-left: -11px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bascinfo {
|
.bascinfo {
|
||||||
min-height: 800px;
|
min-height: 800px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@@ -147,24 +157,29 @@ export default {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
.clearfix:before,
|
.clearfix:before,
|
||||||
.clearfix:after {
|
.clearfix:after {
|
||||||
content: "";
|
content: "";
|
||||||
display: table;
|
display: table;
|
||||||
clear: both;
|
clear: both;
|
||||||
}
|
}
|
||||||
|
|
||||||
.centercontent {
|
.centercontent {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
.righttitle {
|
.righttitle {
|
||||||
display: flex;
|
display: flex;
|
||||||
padding-top: 30px;
|
padding-top: 30px;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
.text {
|
.text {
|
||||||
margin-left: 8px;
|
margin-left: 8px;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
color: rgba(51, 51, 51, 1);
|
color: rgba(51, 51, 51, 1);
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
}
|
}
|
||||||
|
|
||||||
.box {
|
.box {
|
||||||
width: 75px;
|
width: 75px;
|
||||||
height: 10px;
|
height: 10px;
|
||||||
@@ -174,6 +189,7 @@ export default {
|
|||||||
top: 44px;
|
top: 44px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.test {
|
.test {
|
||||||
margin-top: 16px;
|
margin-top: 16px;
|
||||||
margin-bottom: 26px;
|
margin-bottom: 26px;
|
||||||
@@ -181,6 +197,7 @@ export default {
|
|||||||
height: 158px;
|
height: 158px;
|
||||||
background: #f2f5f7;
|
background: #f2f5f7;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
|
|
||||||
.detail {
|
.detail {
|
||||||
margin-top: 29px;
|
margin-top: 29px;
|
||||||
margin-left: 44px;
|
margin-left: 44px;
|
||||||
@@ -189,6 +206,7 @@ export default {
|
|||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: #56a3f9;
|
color: #56a3f9;
|
||||||
}
|
}
|
||||||
|
|
||||||
.testtime {
|
.testtime {
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
@@ -196,6 +214,7 @@ export default {
|
|||||||
height: 81px;
|
height: 81px;
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
border-radius: 0px 8px 0px 8px;
|
border-radius: 0px 8px 0px 8px;
|
||||||
|
|
||||||
.timedetail {
|
.timedetail {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
@@ -205,6 +224,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.starttest {
|
.starttest {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 146px;
|
width: 146px;
|
||||||
@@ -219,17 +239,20 @@ export default {
|
|||||||
left: calc(50% - 73px);
|
left: calc(50% - 73px);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.righttitleE {
|
.righttitleE {
|
||||||
display: flex;
|
display: flex;
|
||||||
margin-top: 110px;
|
margin-top: 110px;
|
||||||
// padding-top: 30px;
|
// padding-top: 30px;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
.text {
|
.text {
|
||||||
margin-left: 8px;
|
margin-left: 8px;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
color: rgba(51, 51, 51, 1);
|
color: rgba(51, 51, 51, 1);
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
}
|
}
|
||||||
|
|
||||||
.box {
|
.box {
|
||||||
width: 75px;
|
width: 75px;
|
||||||
height: 10px;
|
height: 10px;
|
||||||
@@ -239,6 +262,7 @@ export default {
|
|||||||
top: 14px;
|
top: 14px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.history {
|
.history {
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-top: 32px;
|
margin-top: 32px;
|
||||||
@@ -246,38 +270,46 @@ export default {
|
|||||||
height: 200px;
|
height: 200px;
|
||||||
border: 1px solid #d7e5fd;
|
border: 1px solid #d7e5fd;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
|
|
||||||
.clearfix:before,
|
.clearfix:before,
|
||||||
.clearfix:after {
|
.clearfix:after {
|
||||||
content: "";
|
content: "";
|
||||||
display: table;
|
display: table;
|
||||||
clear: both;
|
clear: both;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fenge {
|
.fenge {
|
||||||
width: 841px;
|
width: 841px;
|
||||||
border-top: 1px solid #d7e5fd;
|
border-top: 1px solid #d7e5fd;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tongyi {
|
.tongyi {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content1 {
|
.content1 {
|
||||||
margin-top: 14px;
|
margin-top: 14px;
|
||||||
margin-left: 77px;
|
margin-left: 77px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content2 {
|
.content2 {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
margin-top: 14px;
|
margin-top: 14px;
|
||||||
left: 328px;
|
left: 328px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content3 {
|
.content3 {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
margin-top: 14px;
|
margin-top: 14px;
|
||||||
left: 512px;
|
left: 512px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content4 {
|
.content4 {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
margin-top: 14px;
|
margin-top: 14px;
|
||||||
left: 700px;
|
left: 700px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.contentbtn {
|
.contentbtn {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
margin-top: 14px;
|
margin-top: 14px;
|
||||||
@@ -291,6 +323,7 @@ export default {
|
|||||||
border: 0;
|
border: 0;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.historycontent {
|
.historycontent {
|
||||||
width: 59px;
|
width: 59px;
|
||||||
height: 14px;
|
height: 14px;
|
||||||
@@ -300,12 +333,14 @@ export default {
|
|||||||
color: #333330;
|
color: #333330;
|
||||||
line-height: 38px;
|
line-height: 38px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.historytitle {
|
.historytitle {
|
||||||
width: 842px;
|
width: 842px;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
background: #f2f5f7;
|
background: #f2f5f7;
|
||||||
border-radius: 8px 8px 0px 0px;
|
border-radius: 8px 8px 0px 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.historytitle2 {
|
.historytitle2 {
|
||||||
width: 842px;
|
width: 842px;
|
||||||
height: 48px;
|
height: 48px;
|
||||||
|
|||||||
@@ -2,20 +2,20 @@
|
|||||||
* @Author: lixg lixg@dongwu-inc.com
|
* @Author: lixg lixg@dongwu-inc.com
|
||||||
* @Date: 2022-11-21 17:28:10
|
* @Date: 2022-11-21 17:28:10
|
||||||
* @LastEditors: lixg lixg@dongwu-inc.com
|
* @LastEditors: lixg lixg@dongwu-inc.com
|
||||||
* @LastEditTime: 2022-12-11 21:11:35
|
* @LastEditTime: 2022-11-22 12:45:57
|
||||||
* @FilePath: /fe-stu/vite.config.js
|
* @FilePath: /fe-stu/vite.config.js
|
||||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
*/
|
*/
|
||||||
import { defineConfig } from 'vite'
|
import {defineConfig} from 'vite'
|
||||||
import vue from '@vitejs/plugin-vue'
|
import vue from '@vitejs/plugin-vue'
|
||||||
import legacy from '@vitejs/plugin-legacy'
|
import legacy from '@vitejs/plugin-legacy'
|
||||||
import { viteMockServe } from 'vite-plugin-mock'
|
import {viteMockServe} from 'vite-plugin-mock'
|
||||||
import topLevelAwait from "vite-plugin-top-level-await";
|
import topLevelAwait from "vite-plugin-top-level-await";
|
||||||
|
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
|
|
||||||
export default defineConfig(({ command }) =>
|
export default defineConfig(({command}) =>
|
||||||
({
|
({
|
||||||
base: '/fe-student',
|
base: '/fe-student',
|
||||||
plugins: [
|
plugins: [
|
||||||
vue(),
|
vue(),
|
||||||
@@ -32,7 +32,7 @@ export default defineConfig(({ command }) =>
|
|||||||
],
|
],
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: [
|
alias: [
|
||||||
{ find: '@', replacement: path.resolve(__dirname, 'src') }
|
{find: '@', replacement: path.resolve(__dirname, 'src')}
|
||||||
]
|
]
|
||||||
}, server: {
|
}, server: {
|
||||||
proxy: {
|
proxy: {
|
||||||
@@ -65,10 +65,23 @@ export default defineConfig(({ command }) =>
|
|||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
},
|
},
|
||||||
'/vote': {
|
'/vote': {
|
||||||
target: 'http://111.231.196.214:12013/manageApi',
|
target: 'http://localhost:30001',
|
||||||
|
changeOrigin: true,
|
||||||
|
},
|
||||||
|
'/admin': {
|
||||||
|
target: 'http://localhost:30001',
|
||||||
|
changeOrigin: true,
|
||||||
|
},'/activity': {
|
||||||
|
target: 'http://localhost:30001',
|
||||||
|
changeOrigin: true,
|
||||||
|
},'/liveBroadcast': {
|
||||||
|
target: 'http://localhost:30001',
|
||||||
|
changeOrigin: true,
|
||||||
|
},'/examination': {
|
||||||
|
target: 'http://localhost:30001',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user