|
@@ -1,10 +1,11 @@
|
|
|
<script setup lang="ts">
|
|
|
defineOptions({
|
|
|
- name: "EvaluationViews",
|
|
|
+ name: "StudentResult",
|
|
|
inheritAttrs: false,
|
|
|
});
|
|
|
import { watch } from "vue";
|
|
|
import { useUserStore } from "@/store/modules/user";
|
|
|
+import RadarChart from "@/views/student/components/RadarChart.vue";
|
|
|
const userStore = useUserStore();
|
|
|
watch(
|
|
|
() => userStore.schoolId,
|
|
@@ -15,10 +16,78 @@ watch(
|
|
|
</script>
|
|
|
|
|
|
<template>
|
|
|
- <div class="container">
|
|
|
- <h1>训练效果分析</h1>
|
|
|
- <div>{{ userStore.schoolId }}</div>
|
|
|
+ <div class="result-container">
|
|
|
+ <div class="result-title">
|
|
|
+ <el-row class="box-card">
|
|
|
+ <el-col :xs="10" :sm="5" :md="5">
|
|
|
+ <div class="l1"><span>风间彻</span></div>
|
|
|
+ <div class="l2">13726628766</div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="14" :sm="5" :md="5">
|
|
|
+ <div class="l1"><span>25</span></div>
|
|
|
+ <div class="l2">训练次数累计</div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="10" :sm="6" :md="6">
|
|
|
+ <div class="l1"><span>142</span>分<span>50</span>秒</div>
|
|
|
+ <div class="l2">训练时长累计</div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="14" :sm="8" :md="8">
|
|
|
+ <div class="l1">前<span>76%</span></div>
|
|
|
+ <div class="l2">在所有通过训练的学员中你的位置是</div>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <el-row class="result-chart" :gutter="15">
|
|
|
+ <el-col :xs="24" :sm="7" :md="7">
|
|
|
+ <div class="box-card">
|
|
|
+ <RadarChart
|
|
|
+ id="pieChart"
|
|
|
+ height="400px"
|
|
|
+ width="400px"
|
|
|
+ class="chart"
|
|
|
+ bg-color=""
|
|
|
+ color=""
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="24" :sm="17" :md="17">
|
|
|
+ <div class="box-card"></div>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
-<style lang="scss" scoped></style>
|
|
|
+<style lang="scss" scoped>
|
|
|
+.result-container {
|
|
|
+ position: relative;
|
|
|
+ padding: 30px;
|
|
|
+ .box-card {
|
|
|
+ background: #ffffff;
|
|
|
+ border-radius: 30px;
|
|
|
+ border: 1px solid #e6e8eb;
|
|
|
+ }
|
|
|
+ .result-title {
|
|
|
+ width: 950px;
|
|
|
+ white-space: nowrap;
|
|
|
+ font-size: 16px;
|
|
|
+ .box-card {
|
|
|
+ padding: 24px 0 30px 42px;
|
|
|
+ }
|
|
|
+ .l1 {
|
|
|
+ line-height: 52px;
|
|
|
+ color: #4284f2;
|
|
|
+ span {
|
|
|
+ font-size: 28px;
|
|
|
+ font-weight: bold;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .l2 {
|
|
|
+ line-height: 32px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+.result-chart {
|
|
|
+ margin-top: 12px;
|
|
|
+}
|
|
|
+</style>
|