personalLearning.vue 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465
  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=YLRZ_P activeColor="#e93f52" active stroke-width="8" />
  60. </view>
  61. <view class="progress-text">{{YLRZ_P}}%</view>
  62. </view>
  63. <view class="progress-item df fdr aic">
  64. <view class="progress-box">
  65. <progress :percent=SJKC_P activeColor="#d6ebbf" active stroke-width="8" />
  66. </view>
  67. <view class="progress-text">{{SJKC_P}}%</view>
  68. </view>
  69. <view class="progress-item df fdr aic">
  70. <view class="progress-box">
  71. <progress :percent=XNSY_P activeColor="#60b4f0" active stroke-width="8" />
  72. </view>
  73. <view class="progress-text">{{XNSY_P}}%</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. //学习进度
  147. YLRZ_P:80,
  148. SJKC_P:10,
  149. XNSY_P:10,
  150. model: {
  151. "Name": "", //姓名
  152. "Class": "", //班级
  153. "StudentID": '', //学号
  154. "Score_ylrz": null, //原理认知分数
  155. "Score_sjkc": null, //实景勘察分数
  156. "Score_xnjsdj": null, //虚拟技术搭建分数
  157. "Score_xnyscz": null, //虚拟艺术创作分数
  158. },
  159. array_sex: ['男', '女'],
  160. array_zj: ['身份证', '护照'],
  161. array_mz: ['汉族', '少数民族'],
  162. testResults: ['原理认知', '实景勘察', '虚拟技术搭建', '虚拟艺术创作']
  163. }
  164. },
  165. methods: {
  166. //点击添加个人信息
  167. onClick_p1_add() {
  168. this.showIndex_userInfo = 1;
  169. },
  170. updateInfo(data) {
  171. this.model.Name = data.Name;
  172. this.model.Class = data.Class;
  173. this.model.StudentID = data.StudentID;
  174. this.model.Score_ylrz=userController.getScore_ylrz();
  175. this.model.Score_sjkc=userController.getScore_sjck();
  176. this.model.Score_xnjsdj=userController.getScore_xnjsdj();
  177. this.model.Score_xnyscz=userController.getScore_xnyscz();
  178. },
  179. }
  180. }
  181. </script>
  182. <style lang="scss">
  183. .user-full {
  184. width: 100%;
  185. height: 100%;
  186. }
  187. .user-right-box {
  188. // background: #FFFFFF;
  189. background: #F4F4F4;
  190. box-shadow: px2vw(3) 0px px2vw(6) 0px rgba(0, 0, 0, 0.1);
  191. flex: 1;
  192. margin-left: px2vw(10);
  193. }
  194. .user-right-01-tip {
  195. font-size: px2vw(22);
  196. color: #FF7373;
  197. line-height: px2vw(29);
  198. margin-top: px2vw(37);
  199. }
  200. .self-btn01 {
  201. width: px2vw(200);
  202. height: px2vw(58);
  203. background: #EA252C;
  204. border-radius: px2vw(8);
  205. font-size: px2vw(24);
  206. color: #FFFFFF;
  207. line-height: px2vw(31);
  208. margin-top: px2vw(94);
  209. }
  210. .user-right-self01 {
  211. background: #FFFFFF;
  212. }
  213. .box1 {
  214. height: px2vw(200);
  215. background: #FFFFFF;
  216. }
  217. .self-avatar {
  218. margin-left: px2vw(227);
  219. }
  220. .self-avatar img {
  221. width: px2vw(120);
  222. }
  223. .self-btn02 {
  224. width: px2vw(200);
  225. height: px2vw(58);
  226. background: #EA252C;
  227. border-radius: px2vw(8);
  228. font-size: px2vw(24);
  229. color: #FFFFFF;
  230. line-height: px2vw(31);
  231. margin-left: px2vw(57);
  232. }
  233. .box2 {
  234. // height: px2vw(553);
  235. background: #FFFFFF;
  236. margin-top: px2vw(10);
  237. }
  238. .box2-content {
  239. margin-left: px2vw(71);
  240. margin-top: px2vw(31);
  241. margin-bottom: px2vw(57);
  242. }
  243. .form-input {
  244. width: px2vw(355);
  245. height: px2vw(54);
  246. padding: px2vw(14) px2vw(20);
  247. font-size: px2vw(20);
  248. color: #070707;
  249. line-height: px2vw(26);
  250. background: #FFFFFF;
  251. border-radius: px2vw(4);
  252. border: 1px solid #B4B4B4;
  253. }
  254. .title-text {
  255. margin-left: px2vw(16);
  256. }
  257. .box2-table-box {
  258. // margin-top: px2vw(44);
  259. // margin-bottom: px2vw(44);
  260. width: px2vw(1377);
  261. }
  262. .box2-table-box-left {
  263. width: px2vw(500);
  264. }
  265. .box2-table-box-left-item {
  266. width: 100%;
  267. margin-top: px2vw(30);
  268. }
  269. .table-title {
  270. font-size: px2vw(22);
  271. color: #555555;
  272. line-height: px2vw(29);
  273. }
  274. .box2-table-box-right {
  275. width: px2vw(500);
  276. margin-left: px2vw(92);
  277. }
  278. .box3 {
  279. // height: px2vw(553);
  280. background: #FFFFFF;
  281. margin-top: px2vw(10);
  282. }
  283. .btn-box {
  284. // margin-top: px2vw(10);
  285. }
  286. .btn-submit {
  287. width: px2vw(353);
  288. height: px2vw(58);
  289. background: #EA252C;
  290. border-radius: px2vw(8);
  291. font-size: px2vw(24);
  292. color: #FFFFFF;
  293. line-height: px2vw(31);
  294. margin-top: px2vw(94);
  295. }
  296. .btn-cancel {
  297. width: px2vw(200);
  298. height: px2vw(58);
  299. background: #D8D8D8;
  300. border-radius: px2vw(8);
  301. font-size: px2vw(24);
  302. color: #FFFFFF;
  303. line-height: px2vw(31);
  304. margin-top: px2vw(94);
  305. margin-left: px2vw(30);
  306. }
  307. .m_right {
  308. width: 100%;
  309. height: 100%;
  310. margin-top: 5rpx;
  311. padding: 0 150rpx;
  312. background-color: #fff;
  313. box-shadow: 3px 0px 6px 0px rgba(0, 0, 0, 0.1);
  314. .m_right_hander {
  315. text-align: right;
  316. height: 250rpx;
  317. position: relative;
  318. .m_btn_red {
  319. position: absolute;
  320. height: 80rpx;
  321. line-height: 80rpx;
  322. padding: 0 40rpx;
  323. right: 0;
  324. top: 50%;
  325. transform: translateY(-50%);
  326. background: #EA252C;
  327. color: #fff;
  328. }
  329. }
  330. }
  331. tbody tr {
  332. border-top: 2rpx solid #DDDDDD !important;
  333. }
  334. tbody tr th {
  335. font-weight: 400 !important;
  336. height: 140rpx;
  337. line-height: 140rpx;
  338. }
  339. tbody tr:hover {
  340. // color: #fff;
  341. background: #FDEBEC;
  342. // opacity: 0.08;
  343. }
  344. .m-table-hander {
  345. background-color: #FFF8F7;
  346. height: 140rpx;
  347. line-height: 140rpx;
  348. font-family: MicrosoftYaHei-Bold, MicrosoftYaHei;
  349. font-weight: bold;
  350. }
  351. .m_edit {
  352. position: absolute;
  353. top: 50%;
  354. left: 50%;
  355. transform: translate(-50%, -50%);
  356. background: rgb(67, 127, 250);
  357. color: rgb(255, 255, 255);
  358. min-width: 130rpx;
  359. }
  360. .m_delete {
  361. position: absolute;
  362. top: 50%;
  363. left: 50%;
  364. min-width: 130rpx;
  365. transform: translate(-50%, -50%);
  366. background: rgb(234, 37, 44);
  367. color: rgb(255, 255, 255);
  368. }
  369. .m_right_footer {
  370. margin-top: 80rpx;
  371. margin-bottom: 80rpx;
  372. }
  373. .m_paging {
  374. text-align: right;
  375. .m_paging_item {
  376. padding: 10rpx 18rpx;
  377. border: 1rpx solid #DDDDDD;
  378. border-radius: 8rpx;
  379. margin-right: 10rpx;
  380. }
  381. .p_act {
  382. background: #EA252C;
  383. color: #fff;
  384. border: inherit;
  385. }
  386. }
  387. .m_paging_item:hover {
  388. background: #EA252C;
  389. color: #fff;
  390. border: inherit;
  391. }
  392. .m_act1 {
  393. color: #FF0019;
  394. }
  395. .m_right_container {
  396. width: 100%;
  397. margin-top: px2vw(40);
  398. }
  399. .progress-item {
  400. margin-top: px2vw(40);
  401. }
  402. .progress-box {
  403. width: px2vw(700);
  404. // margin-top: px2vw(40);
  405. }
  406. .xxjd-text {
  407. margin-top: px2vw(40);
  408. }
  409. .progress-text {
  410. font-size: px2vw(24);
  411. color: #070707;
  412. line-height: px2vw(26);
  413. margin-left: px2vw(40);
  414. }
  415. </style>