stuTestDetails.vue 10 KB

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