stuTestDetails.vue 8.8 KB

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