result.vue 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386
  1. <script setup lang="ts">
  2. import RadarChart from "@/views/charts-components/RadarChart.vue";
  3. import {watch} from "vue";
  4. import {useUserStore} from "@/store/modules/user";
  5. import FocusCircleChart from "@/views/charts-components/FocusCircleChart.vue";
  6. import CurveLineChart from "@/views/charts-components/CurveLineChart.vue";
  7. import SimplePieChart from "@/views/charts-components/SimplePieChart.vue";
  8. defineOptions({
  9. name: "TrainingResult",
  10. inheritAttrs: false,
  11. });
  12. const userStore = useUserStore();
  13. watch(
  14. () => userStore.schoolId,
  15. (newValue, oldValue) => {
  16. console.log(newValue, oldValue);
  17. }
  18. );
  19. // 五维雷达图
  20. const radarData = ref([
  21. [78, 88, 65, 82, 65],
  22. [28, 38, 45, 32, 25],
  23. ]);
  24. const radarStar = ref([1, 2, 3, 4, 5]);
  25. const radarTag = true;
  26. // 专注力分布饼图
  27. const curveData = ref([
  28. [78, 88, 65, 82, 65],
  29. [28, 38, 45, 32, 25],
  30. [12, 18, 20, 28, 22]
  31. ]);
  32. // 专注力分布饼图
  33. const pieData = ref([12, 18, 20, 28, 22]);
  34. </script>
  35. <template>
  36. <div class="result-container">
  37. <div class="result-title">
  38. <el-row class="box-card">
  39. <el-col :sm="12" :md="6" class="head">
  40. <div class="l1"><span>风间彻</span></div>
  41. <div class="l2">13726628766</div>
  42. </el-col>
  43. <el-col :sm="12" :md="4">
  44. <div class="l1">30秒</div>
  45. <div class="l2">训练总时长</div>
  46. </el-col>
  47. <el-col :sm="6" :md="4">
  48. <div class="l1">智脑水舞</div>
  49. <div class="l2">训练场景</div>
  50. </el-col>
  51. <el-col :sm="6" :md="4">
  52. <div class="l1">专注力</div>
  53. <div class="l2">训练模式</div>
  54. </el-col>
  55. <el-col :sm="12" :md="6">
  56. <div class="l1">2023-12-52 12:11:11</div>
  57. <div class="l2">训练时间</div>
  58. </el-col>
  59. </el-row>
  60. </div>
  61. <el-row class="result-chart" :gutter="15">
  62. <el-col :xs="24" :sm="12" :md="8">
  63. <div class="box-card">
  64. <div class="charts p-5">
  65. <FocusCircleChart
  66. id="focusCircleChart"
  67. key="38.0"
  68. data="38.0"
  69. height="200px"
  70. width="200px"
  71. color="#4284f2"
  72. bg-color="#e4e7f4"
  73. />
  74. </div>
  75. <el-row class="infos">
  76. <el-col :span="8">
  77. <div class="l1">96.12</div>
  78. <div class="l2">平均专注力</div>
  79. </el-col>
  80. <el-col :span="8">
  81. <div class="l1">35</div>
  82. <div class="l2">专注力维持区间</div>
  83. </el-col>
  84. <el-col :span="8">
  85. <div class="l1">30<i>次</i></div>
  86. <div class="l2">受干扰次数</div>
  87. </el-col>
  88. </el-row>
  89. </div>
  90. </el-col>
  91. <el-col :xs="24" :sm="12" :md="8">
  92. <div class="box-card">
  93. <div class="chart-title">5D脑电数据模型</div>
  94. <div class="charts">
  95. <RadarChart
  96. id="radarChart1"
  97. :data-sets="radarData"
  98. :star="radarStar"
  99. :tag="radarTag"
  100. width="450px"
  101. height="350px"
  102. class="chart"
  103. />
  104. </div>
  105. </div>
  106. </el-col>
  107. <el-col :xs="24" :sm="12" :md="8">
  108. <div class="box-card">
  109. <div class="chart-title">脑电数值曲线</div>
  110. <div class="charts">
  111. <CurveLineChart
  112. id="curveLineChart"
  113. :data-sets="curveData"
  114. width="450px"
  115. height="350px"
  116. class="chart"
  117. />
  118. </div>
  119. </div>
  120. </el-col>
  121. </el-row>
  122. <div class="note-box">
  123. <el-row :gutter="15">
  124. <el-col :xs="24" :sm="12" :md="8">
  125. <div class="box-card">
  126. <div class="tit">专注力平均值</div>
  127. <div class="content">
  128. <div class="star s1"></div>
  129. <p>
  130. 这个阶段XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX。
  131. </p>
  132. <p class="note">
  133. 通过脑电检测技术,将各项脑波数值的AI算法分析得出专注力平均值,反应了大脑专注集中在某件事上的程度。
  134. </p>
  135. </div>
  136. </div>
  137. </el-col>
  138. <el-col :xs="24" :sm="12" :md="8">
  139. <div class="box-card">
  140. <div class="tit">高专注力占比</div>
  141. <div class="content">
  142. <div class="star s2"></div>
  143. <p>
  144. 这个阶段XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX。
  145. </p>
  146. <p class="note">
  147. 在进行学习和生活任务时,需要主观意志的努力,此时脑电静息电位会提高,专注度也会显示为60分以上,因此,将专注力60分以上定义为高专注区间,这代表高专注区间在整次训练中的占比。
  148. </p>
  149. </div>
  150. </div>
  151. </el-col>
  152. <el-col :xs="24" :sm="12" :md="8">
  153. <div class="box-card">
  154. <div class="tit">专注力稳定度</div>
  155. <div class="content">
  156. <div class="star s3"></div>
  157. <p>
  158. 这个阶段XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX。
  159. </p>
  160. <p class="note">
  161. 在专注平均值相同时,第一种是专注值高低错落,跳跃明显。第二种是无限接近平均值,显然此种状态代表专注力更加稳定,操控专注力能力更强;在平均专注值高时,稳定度越高越好。
  162. </p>
  163. </div>
  164. </div>
  165. </el-col>
  166. <el-col :xs="24" :sm="12" :md="8">
  167. <div class="box-card">
  168. <div class="tit">专注唤醒效率</div>
  169. <div class="content">
  170. <div class="star s4"></div>
  171. <p>
  172. 这个阶段XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX。
  173. </p>
  174. <p class="note">
  175. 通过脑电检测技术,将各项脑波数值的AI算法分析得出专注力平均值,反应了大脑专注集中在某件事上的程度。
  176. </p>
  177. </div>
  178. </div>
  179. </el-col>
  180. <el-col :xs="24" :sm="12" :md="8">
  181. <div class="box-card">
  182. <div class="tit">整体和谐度</div>
  183. <div class="content">
  184. <div class="star s5"></div>
  185. <p>
  186. 这个阶段XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX。
  187. </p>
  188. <p class="note">
  189. 既专注又紧张,这种状态在考试和上台表演中比较常见,耗能过高不能长期保持;既专注又轻松,此种状态情绪相对稳定,焦虑值更低,提倡长期保持。和谐度记录的是专注值和放松值的同步率,和谐度越高越好。
  190. </p>
  191. </div>
  192. </div>
  193. </el-col>
  194. </el-row>
  195. </div>
  196. <div class="note-box">
  197. <el-row :gutter="15">
  198. <el-col :xs="24" :sm="12" :md="8">
  199. <div class="box-card">
  200. <div class="tit btm">大脑发展小贴士</div>
  201. <div class="content">
  202. <p>
  203. 这个阶段XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX。
  204. 通过脑电检测技术,将各项脑波数值的AI算法分析得出专注力平均值,反应了大脑专注集中在某件事上的程度。
  205. </p>
  206. </div>
  207. </div>
  208. </el-col>
  209. <el-col :xs="24" :sm="12" :md="8">
  210. <div class="box-card">
  211. <div class="tit btm">专注力数值累计比例</div>
  212. <div class="content flex">
  213. <SimplePieChart
  214. id="pieChart"
  215. :data="pieData"
  216. width="200px"
  217. height="200px"
  218. class="chart"
  219. title="专注力数值比例"
  220. />
  221. <div class="data">
  222. <p><span class="tag">81-100</span>12分50秒 (8%)</p>
  223. <p><span class="tag">61-80</span>12分50秒 (8%)</p>
  224. <p><span class="tag">41-60</span>12分50秒 (8%)</p>
  225. <p><span class="tag">21-40</span>12分50秒 (8%)</p>
  226. <p><span class="tag">0-20</span>12分50秒 (8%)</p>
  227. </div>
  228. </div>
  229. </div>
  230. </el-col>
  231. </el-row>
  232. </div>
  233. </div>
  234. </template>
  235. <style lang="scss" scoped>
  236. .result-container {
  237. position: relative;
  238. padding: 30px;
  239. .box-card {
  240. background: #ffffff;
  241. border-radius: 30px;
  242. border: 1px solid #e6e8eb;
  243. position: relative;
  244. }
  245. .result-title {
  246. width: 1058px;
  247. white-space: nowrap;
  248. .box-card {
  249. padding: 20px 0 20px 40px;
  250. line-height: 30px;
  251. .head{
  252. background: url("../../assets/student/head.png") left center no-repeat;
  253. padding-left: 70px;
  254. }
  255. }
  256. .l1 {
  257. font-size: 18px;
  258. color: #4284f2;
  259. span {
  260. color:#09132e
  261. }
  262. }
  263. .l2 {
  264. font-size: 16px;
  265. }
  266. }
  267. }
  268. .result-chart {
  269. margin-top: 12px;
  270. .chart-title {
  271. position: absolute;
  272. top: 20px;
  273. left: 30px;
  274. font-size: 18px;
  275. color: #09132e;
  276. }
  277. .charts {
  278. position: relative;
  279. box-sizing: border-box;
  280. width:450px;
  281. margin:0 auto;
  282. .chart {
  283. margin: 0 auto;
  284. }
  285. }
  286. .infos{
  287. border-top: 1px solid #e6e8eb;
  288. width:450px;
  289. margin:0 auto;
  290. text-align: center;
  291. padding:28px 0 30px 0;
  292. .l1 {
  293. font-size: 20px;
  294. font-weight:bold;
  295. color: #4284f2;
  296. i {
  297. font-size: 14px;
  298. font-style: normal;
  299. font-weight: normal;
  300. }
  301. }
  302. .l2 {
  303. font-size: 16px;
  304. }
  305. }
  306. }
  307. .note-box {
  308. margin-top: 12px;
  309. .box-card {
  310. padding: 15px 34px;
  311. position: relative;
  312. margin-bottom: 15px;
  313. .tit {
  314. color: #4284f2;
  315. margin-bottom: 20px;
  316. &.btm{
  317. font-size:20px;
  318. color: #09132e;
  319. }
  320. }
  321. .content {
  322. height:224px;
  323. .star {
  324. width: 162px;
  325. height: 24px;
  326. margin: 10px 0;
  327. background: url("../../assets/student/stars.png") no-repeat;
  328. background-position-x: 0;
  329. &.s1 {
  330. background-position-y: 0;
  331. }
  332. &.s2 {
  333. background-position-y: -40px;
  334. }
  335. &.s3 {
  336. background-position-y: -80px;
  337. }
  338. &.s4 {
  339. background-position-y: -120px;
  340. }
  341. &.s5 {
  342. background-position-y: -160px;
  343. }
  344. }
  345. p {
  346. line-height: 28px;
  347. color: #09132e;
  348. font-size: 14px;
  349. margin: 0;
  350. word-break: break-all;
  351. }
  352. .note {
  353. margin-top: 10px;
  354. padding-top: 10px;
  355. border-top: 1px solid #e6e8eb;
  356. color:#999999;
  357. }
  358. .data{
  359. padding: 10px 0 0 35px;
  360. p{margin-top:10px;line-height:24px;color:#666666;}
  361. .tag{
  362. display:inline-block;
  363. width:72px;
  364. height:24px;
  365. line-height:24px;
  366. color:#ffffff;
  367. border-radius:5px;
  368. text-align: center;
  369. }
  370. p:nth-child(1) .tag{background: #38c6ff;}
  371. p:nth-child(2) .tag{background: #546fc6;}
  372. p:nth-child(3) .tag{background: #8bc86f;}
  373. p:nth-child(4) .tag{background: #f6bb34;}
  374. p:nth-child(5) .tag{background: #ed6767;}
  375. }
  376. }
  377. }
  378. }
  379. </style>