personalLearning.vue 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460
  1. <template>
  2. <!-- (学生)个人学习记录,同(老师)学生实验情况 -->
  3. <view class="user-full">
  4. <view class="box2 df ">
  5. <view class="box2-content">
  6. <view class="title df fdr aic">
  7. <view class="df">
  8. <img src="../../assets/user/pic_user_02.png"></img>
  9. </view>
  10. <view class="title-text">学生信息</view>
  11. </view>
  12. <view class="box2-table-box df fdr">
  13. <view class="m_right_container">
  14. <table style="width: 100%;border: 1px solid #DDDDDD;border-collapse: collapse">
  15. <thead class="m-table-hander">
  16. <tr>
  17. <th>姓名</th>
  18. <th>班级</th>
  19. <th>学号</th>
  20. </tr>
  21. </thead>
  22. <tbody>
  23. <tr>
  24. <th style="color: #EA252C;">{{model.Name}}</th>
  25. <th>{{model.Class}}</th>
  26. <th>{{model.StudentID}}</th>
  27. </tr>
  28. </tbody>
  29. </table>
  30. </view>
  31. </view>
  32. </view>
  33. </view>
  34. <view class="box2 df ">
  35. <view class="box2-content">
  36. <view class="title df fdr aic">
  37. <view class="df">
  38. <img src="../../assets/user/pic_user_02.png"></img>
  39. </view>
  40. <view class="title-text">成绩分布</view>
  41. </view>
  42. <view class="box2-table-box df fdr">
  43. <!-- <radar class=""></radar> -->
  44. <!-- 五维图暂缓 -->
  45. </view>
  46. </view>
  47. </view>
  48. <view class="box2 df ">
  49. <view class="box2-content">
  50. <view class="title df fdr aic">
  51. <view class="df">
  52. <img src="../../assets/user/pic_user_02.png"></img>
  53. </view>
  54. <view class="title-text">学习进度</view>
  55. </view>
  56. <view class="box2-table-box df fdc">
  57. <view class="progress-item df fdr aic">
  58. <view class="progress-box">
  59. <progress percent="80" activeColor="#e93f52" active stroke-width="8" />
  60. </view>
  61. <view class="progress-text">80%</view>
  62. </view>
  63. <view class="progress-item df fdr aic">
  64. <view class="progress-box">
  65. <progress percent="60" activeColor="#d6ebbf" active stroke-width="8" />
  66. </view>
  67. <view class="progress-text">60%</view>
  68. </view>
  69. <view class="progress-item df fdr aic">
  70. <view class="progress-box">
  71. <progress percent="40" activeColor="#60b4f0" active stroke-width="8" />
  72. </view>
  73. <view class="progress-text">40%</view>
  74. </view>
  75. <view class="xxjd-text">红色为原理认知,绿色为实景考察,蓝色为虚拟实验</view>
  76. </view>
  77. </view>
  78. </view>
  79. <view class="box3 df ">
  80. <view class="box2-content">
  81. <view class="title df fdr aic">
  82. <view class="df">
  83. <img src="../../assets/user/pic_user_02.png"></img>
  84. </view>
  85. <view class="title-text">测试成绩</view>
  86. </view>
  87. <view class="box2-table-box df fdr">
  88. <view class="m_right_container">
  89. <table style="width: 100%;border: 1px solid #DDDDDD;border-collapse: collapse">
  90. <thead class="m-table-hander">
  91. <tr>
  92. <th>测试项目</th>
  93. <th>是否学习</th>
  94. <th>是否通过</th>
  95. <th>分值</th>
  96. </tr>
  97. </thead>
  98. <tbody>
  99. <tr>
  100. <th>原理认知</th>
  101. <th>{{model.Score_ylrz>0?'是':'否'}}</th>
  102. <th>{{model.Score_ylrz>=10?'是':'否'}}</th>
  103. <th>{{model.Score_ylrz>0?model.Score_ylrz:'0'}}</th>
  104. </tr>
  105. <tr>
  106. <th>实景勘察</th>
  107. <th>{{model.Score_sjkc>0?'是':'否'}}</th>
  108. <th>{{model.Score_sjkc>=10?'是':'否'}}</th>
  109. <th>{{model.Score_sjkc>0?model.Score_sjkc:'0'}}</th>
  110. </tr>
  111. <tr>
  112. <th>虚拟技术搭建</th>
  113. <th>{{model.Score_xnjsdj>0?'是':'否'}}</th>
  114. <th>{{model.Score_xnjsdj>=10?'是':'否'}}</th>
  115. <th>{{model.Score_xnjsdj>0?model.Score_xnjsdj:'0'}}</th>
  116. </tr>
  117. <tr>
  118. <th>虚拟艺术创作</th>
  119. <th>{{model.Score_xnyscz>0?'是':'否'}}</th>
  120. <th>{{model.Score_xnyscz>=10?'是':'否'}}</th>
  121. <th>{{model.Score_xnyscz>0?model.Score_xnyscz:'0'}}</th>
  122. </tr>
  123. </tbody>
  124. </table>
  125. </view>
  126. </view>
  127. </view>
  128. </view>
  129. </view>
  130. </template>
  131. <script>
  132. import radar from './radar.vue'
  133. export default {
  134. components: {
  135. radar
  136. },
  137. onLoad() {
  138. },
  139. data() {
  140. return {
  141. //0添加1个人
  142. showIndex_userInfo: 1,
  143. sexIndex: 0,
  144. zjIndex: 0,
  145. mzIndex: 0,
  146. model: {
  147. "Name": "", //姓名
  148. "Class": "", //班级
  149. "StudentID": '', //学号
  150. "Score_ylrz": null, //原理认知分数
  151. "Score_sjkc": null, //实景勘察分数
  152. "Score_xnjsdj": null, //虚拟技术搭建分数
  153. "Score_xnyscz": null, //虚拟艺术创作分数
  154. },
  155. array_sex: ['男', '女'],
  156. array_zj: ['身份证', '护照'],
  157. array_mz: ['汉族', '少数民族'],
  158. testResults: ['原理认知', '实景勘察', '虚拟技术搭建', '虚拟艺术创作']
  159. }
  160. },
  161. methods: {
  162. //点击添加个人信息
  163. onClick_p1_add() {
  164. this.showIndex_userInfo = 1;
  165. },
  166. updateInfo(data) {
  167. this.model.Name = data.Name;
  168. this.model.Class = data.Class;
  169. this.model.StudentID = data.StudentID;
  170. this.model.Score_ylrz=userController.getScore_ylrz();
  171. this.model.Score_sjkc=userController.getScore_sjck();
  172. this.model.Score_xnjsdj=userController.getScore_xnjsdj();
  173. this.model.Score_xnyscz=userController.getScore_xnyscz();
  174. },
  175. }
  176. }
  177. </script>
  178. <style lang="scss">
  179. .user-full {
  180. width: 100%;
  181. height: 100%;
  182. }
  183. .user-right-box {
  184. // background: #FFFFFF;
  185. background: #F4F4F4;
  186. box-shadow: px2vw(3) 0px px2vw(6) 0px rgba(0, 0, 0, 0.1);
  187. flex: 1;
  188. margin-left: px2vw(10);
  189. }
  190. .user-right-01-tip {
  191. font-size: px2vw(22);
  192. color: #FF7373;
  193. line-height: px2vw(29);
  194. margin-top: px2vw(37);
  195. }
  196. .self-btn01 {
  197. width: px2vw(200);
  198. height: px2vw(58);
  199. background: #EA252C;
  200. border-radius: px2vw(8);
  201. font-size: px2vw(24);
  202. color: #FFFFFF;
  203. line-height: px2vw(31);
  204. margin-top: px2vw(94);
  205. }
  206. .user-right-self01 {
  207. background: #FFFFFF;
  208. }
  209. .box1 {
  210. height: px2vw(200);
  211. background: #FFFFFF;
  212. }
  213. .self-avatar {
  214. margin-left: px2vw(227);
  215. }
  216. .self-avatar img {
  217. width: px2vw(120);
  218. }
  219. .self-btn02 {
  220. width: px2vw(200);
  221. height: px2vw(58);
  222. background: #EA252C;
  223. border-radius: px2vw(8);
  224. font-size: px2vw(24);
  225. color: #FFFFFF;
  226. line-height: px2vw(31);
  227. margin-left: px2vw(57);
  228. }
  229. .box2 {
  230. // height: px2vw(553);
  231. background: #FFFFFF;
  232. margin-top: px2vw(10);
  233. }
  234. .box2-content {
  235. margin-left: px2vw(71);
  236. margin-top: px2vw(31);
  237. margin-bottom: px2vw(57);
  238. }
  239. .form-input {
  240. width: px2vw(355);
  241. height: px2vw(54);
  242. padding: px2vw(14) px2vw(20);
  243. font-size: px2vw(20);
  244. color: #070707;
  245. line-height: px2vw(26);
  246. background: #FFFFFF;
  247. border-radius: px2vw(4);
  248. border: 1px solid #B4B4B4;
  249. }
  250. .title-text {
  251. margin-left: px2vw(16);
  252. }
  253. .box2-table-box {
  254. // margin-top: px2vw(44);
  255. // margin-bottom: px2vw(44);
  256. width: px2vw(1377);
  257. }
  258. .box2-table-box-left {
  259. width: px2vw(500);
  260. }
  261. .box2-table-box-left-item {
  262. width: 100%;
  263. margin-top: px2vw(30);
  264. }
  265. .table-title {
  266. font-size: px2vw(22);
  267. color: #555555;
  268. line-height: px2vw(29);
  269. }
  270. .box2-table-box-right {
  271. width: px2vw(500);
  272. margin-left: px2vw(92);
  273. }
  274. .box3 {
  275. // height: px2vw(553);
  276. background: #FFFFFF;
  277. margin-top: px2vw(10);
  278. }
  279. .btn-box {
  280. // margin-top: px2vw(10);
  281. }
  282. .btn-submit {
  283. width: px2vw(353);
  284. height: px2vw(58);
  285. background: #EA252C;
  286. border-radius: px2vw(8);
  287. font-size: px2vw(24);
  288. color: #FFFFFF;
  289. line-height: px2vw(31);
  290. margin-top: px2vw(94);
  291. }
  292. .btn-cancel {
  293. width: px2vw(200);
  294. height: px2vw(58);
  295. background: #D8D8D8;
  296. border-radius: px2vw(8);
  297. font-size: px2vw(24);
  298. color: #FFFFFF;
  299. line-height: px2vw(31);
  300. margin-top: px2vw(94);
  301. margin-left: px2vw(30);
  302. }
  303. .m_right {
  304. width: 100%;
  305. height: 100%;
  306. margin-top: 5rpx;
  307. padding: 0 150rpx;
  308. background-color: #fff;
  309. box-shadow: 3px 0px 6px 0px rgba(0, 0, 0, 0.1);
  310. .m_right_hander {
  311. text-align: right;
  312. height: 250rpx;
  313. position: relative;
  314. .m_btn_red {
  315. position: absolute;
  316. height: 80rpx;
  317. line-height: 80rpx;
  318. padding: 0 40rpx;
  319. right: 0;
  320. top: 50%;
  321. transform: translateY(-50%);
  322. background: #EA252C;
  323. color: #fff;
  324. }
  325. }
  326. }
  327. tbody tr {
  328. border-top: 2rpx solid #DDDDDD !important;
  329. }
  330. tbody tr th {
  331. font-weight: 400 !important;
  332. height: 140rpx;
  333. line-height: 140rpx;
  334. }
  335. tbody tr:hover {
  336. // color: #fff;
  337. background: #FDEBEC;
  338. // opacity: 0.08;
  339. }
  340. .m-table-hander {
  341. background-color: #FFF8F7;
  342. height: 140rpx;
  343. line-height: 140rpx;
  344. font-family: MicrosoftYaHei-Bold, MicrosoftYaHei;
  345. font-weight: bold;
  346. }
  347. .m_edit {
  348. position: absolute;
  349. top: 50%;
  350. left: 50%;
  351. transform: translate(-50%, -50%);
  352. background: rgb(67, 127, 250);
  353. color: rgb(255, 255, 255);
  354. min-width: 130rpx;
  355. }
  356. .m_delete {
  357. position: absolute;
  358. top: 50%;
  359. left: 50%;
  360. min-width: 130rpx;
  361. transform: translate(-50%, -50%);
  362. background: rgb(234, 37, 44);
  363. color: rgb(255, 255, 255);
  364. }
  365. .m_right_footer {
  366. margin-top: 80rpx;
  367. margin-bottom: 80rpx;
  368. }
  369. .m_paging {
  370. text-align: right;
  371. .m_paging_item {
  372. padding: 10rpx 18rpx;
  373. border: 1rpx solid #DDDDDD;
  374. border-radius: 8rpx;
  375. margin-right: 10rpx;
  376. }
  377. .p_act {
  378. background: #EA252C;
  379. color: #fff;
  380. border: inherit;
  381. }
  382. }
  383. .m_paging_item:hover {
  384. background: #EA252C;
  385. color: #fff;
  386. border: inherit;
  387. }
  388. .m_act1 {
  389. color: #FF0019;
  390. }
  391. .m_right_container {
  392. width: 100%;
  393. margin-top: px2vw(40);
  394. }
  395. .progress-item {
  396. margin-top: px2vw(40);
  397. }
  398. .progress-box {
  399. width: px2vw(700);
  400. // margin-top: px2vw(40);
  401. }
  402. .xxjd-text {
  403. margin-top: px2vw(40);
  404. }
  405. .progress-text {
  406. font-size: px2vw(24);
  407. color: #070707;
  408. line-height: px2vw(26);
  409. margin-left: px2vw(40);
  410. }
  411. </style>