stuTestDetails.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536
  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. <!-- <canvas canvas-id="canvasRadar" id="canvasRadar" class="charts"></canvas> -->
  45. <!-- 五维图暂缓 -->
  46. </view>
  47. </view>
  48. </view>
  49. <view class="box2 df ">
  50. <view class="box2-content">
  51. <view class="title df fdr aic">
  52. <view class="df">
  53. <img src="../../assets/user/pic_user_02.png"></img>
  54. </view>
  55. <view class="title-text">学习进度</view>
  56. </view>
  57. <view class="box2-table-box df fdc">
  58. <view class="progress-item df fdr aic">
  59. <view class="progress-box">
  60. <progress :percent=YLRZ_P activeColor="#e93f52" active stroke-width="8" />
  61. </view>
  62. <view class="progress-text">{{YLRZ_P}}%</view>
  63. </view>
  64. <view class="progress-item df fdr aic">
  65. <view class="progress-box">
  66. <progress :percent=SJKC_P activeColor="#d6ebbf" active stroke-width="8" />
  67. </view>
  68. <view class="progress-text">{{SJKC_P}}%</view>
  69. </view>
  70. <view class="progress-item df fdr aic">
  71. <view class="progress-box">
  72. <progress :percent=XNSY_P activeColor="#60b4f0" active stroke-width="8" />
  73. </view>
  74. <view class="progress-text">{{XNSY_P}}%</view>
  75. </view>
  76. <view class="xxjd-text">红色为原理认知,绿色为实景勘察,蓝色为虚拟实验</view>
  77. </view>
  78. </view>
  79. </view>
  80. <view class="box3 df ">
  81. <view class="box2-content">
  82. <view class="title df fdr aic">
  83. <view class="df">
  84. <img src="../../assets/user/pic_user_02.png"></img>
  85. </view>
  86. <view class="title-text">测试成绩</view>
  87. </view>
  88. <view class="box2-table-box df fdr">
  89. <view class="m_right_container">
  90. <table style="width: 100%;border: 1px solid #DDDDDD;border-collapse: collapse">
  91. <thead class="m-table-hander">
  92. <tr>
  93. <th>测试项目</th>
  94. <th>是否学习</th>
  95. <th>是否通过</th>
  96. <th>分值</th>
  97. </tr>
  98. </thead>
  99. <tbody>
  100. <tr>
  101. <th>原理认知</th>
  102. <th>{{model.Score_ylrz>0?'是':'否'}}</th>
  103. <th>{{model.Score_ylrz>=10?'是':'否'}}</th>
  104. <th>{{model.Score_ylrz>0?model.Score_ylrz:'0'}}</th>
  105. </tr>
  106. <tr>
  107. <th>实景勘察</th>
  108. <th>{{model.Score_sjkc>0?'是':'否'}}</th>
  109. <th>{{model.Score_sjkc>=10?'是':'否'}}</th>
  110. <th>{{model.Score_sjkc>0?model.Score_sjkc:'0'}}</th>
  111. </tr>
  112. <tr>
  113. <th>虚拟技术搭建</th>
  114. <th>{{model.Score_xnjsdj>0?'是':'否'}}</th>
  115. <th>{{model.Score_xnjsdj>=10?'是':'否'}}</th>
  116. <th>{{model.Score_xnjsdj>0?model.Score_xnjsdj:'0'}}</th>
  117. </tr>
  118. <tr>
  119. <th>虚拟艺术创作</th>
  120. <th>{{model.Score_xnyscz>0?'是':'否'}}</th>
  121. <th>{{model.Score_xnyscz>=10?'是':'否'}}</th>
  122. <th>{{model.Score_xnyscz>0?model.Score_xnyscz:'0'}}</th>
  123. </tr>
  124. </tbody>
  125. </table>
  126. </view>
  127. </view>
  128. <view class="btn-box df fdr aic jcc">
  129. <view class="btn-submit df aic jcc">成绩添加与修改</view>
  130. </view>
  131. </view>
  132. </view>
  133. </view>
  134. </template>
  135. <script>
  136. // import uCharts from '@/components/u-charts/u-charts.js';
  137. // var _self;
  138. // var canvaRadar=null;
  139. export default {
  140. components: {
  141. // uCharts
  142. },
  143. data() {
  144. return {
  145. // cWidth:'',
  146. // cHeight:'',
  147. // pixelRatio:1,
  148. // textarea:'',
  149. //0添加1个人
  150. showIndex_userInfo: 1,
  151. sexIndex: 0,
  152. zjIndex: 0,
  153. mzIndex: 0,
  154. //学习进度
  155. YLRZ_P:80,
  156. SJKC_P:10,
  157. XNSY_P:10,
  158. model: {
  159. "Name": "", //姓名
  160. "Class": "", //班级
  161. "StudentID": '', //学号
  162. "Score_ylrz": null, //原理认知分数
  163. "Score_sjkc": null, //实景勘察分数
  164. "Score_xnjsdj": null, //虚拟技术搭建分数
  165. "Score_xnyscz": null, //虚拟艺术创作分数
  166. },
  167. array_sex: ['男', '女'],
  168. array_zj: ['身份证', '护照'],
  169. array_mz: ['汉族', '少数民族'],
  170. testResults:['原理认知', '实景勘察', '虚拟技术搭建', '虚拟艺术创作']
  171. }
  172. },
  173. // mounted() {
  174. // _self = this;
  175. // //#ifdef MP-ALIPAY
  176. // uni.getSystemInfo({
  177. // success: function (res) {
  178. // if(res.pixelRatio>1){
  179. // //正常这里给2就行,如果pixelRatio=3性能会降低一点
  180. // //_self.pixelRatio =res.pixelRatio;
  181. // _self.pixelRatio =2;
  182. // }
  183. // }
  184. // });
  185. // //#endif
  186. // this.cWidth=uni.upx2px(750);
  187. // this.cHeight=uni.upx2px(500);
  188. // this.getServerData();
  189. // },
  190. methods: {
  191. //点击添加个人信息
  192. onClick_p1_add() {
  193. this.showIndex_userInfo = 1;
  194. },
  195. bindPickerChange_sex: function(e) {
  196. console.log('picker发送选择改变,携带值为', e.target.value)
  197. this.sexIndex = e.target.value
  198. },
  199. bindPickerChange_zj: function(e) {
  200. this.zjIndex = e.target.value
  201. },
  202. bindPickerChange_mz: function(e) {
  203. this.mzIndex = e.target.value
  204. },
  205. updateInfo(data) {
  206. console.log('data=',data)
  207. this.model.Name = data.Name;
  208. this.model.Class = data.Class;
  209. this.model.StudentID = data.StudentID;
  210. userController.data_scores = data.UserScore;
  211. this.model.Score_ylrz=userController.getScore_ylrz();
  212. this.model.Score_sjkc=userController.getScore_sjck();
  213. this.model.Score_xnjsdj=userController.getScore_xnjsdj();
  214. this.model.Score_xnyscz=userController.getScore_xnyscz();
  215. },
  216. // getServerData(){
  217. // let data = {"categories":["维度1","维度2","维度3","维度4","维度5","维度6"],"series":[{"name":"成交量1","data":[90,110,165,195,187,172]},{"name":"成交量2","data":[190,210,105,35,27,102]}]}
  218. // _self.showRadar("canvasRadar",data);
  219. // },
  220. // showRadar(canvasId,chartData){
  221. // canvaRadar=new uCharts({
  222. // $this:_self,
  223. // canvasId: canvasId,
  224. // type: 'radar',
  225. // fontSize:11,
  226. // padding:[15,15,0,15],
  227. // legend:{
  228. // show:true,
  229. // padding:5,
  230. // lineHeight:11,
  231. // margin:0,
  232. // },
  233. // background:'#FFFFFF',
  234. // pixelRatio:_self.pixelRatio,
  235. // animation: true,
  236. // dataLabel: true,
  237. // categories: chartData.categories,
  238. // series: chartData.series,
  239. // width: _self.cWidth*_self.pixelRatio,
  240. // height: _self.cHeight*_self.pixelRatio,
  241. // extra: {
  242. // radar: {
  243. // max: 200,//雷达数值的最大值
  244. // gridType:'radar'//radar或者circle可选,网格样式,默认radar
  245. // }
  246. // }
  247. // });
  248. // },
  249. }
  250. }
  251. </script>
  252. <style lang="scss">
  253. .user-full {
  254. width: 100%;
  255. height: 100%;
  256. }
  257. .user-right-box {
  258. // background: #FFFFFF;
  259. background: #F4F4F4;
  260. box-shadow: px2vw(3) 0px px2vw(6) 0px rgba(0, 0, 0, 0.1);
  261. flex: 1;
  262. margin-left: px2vw(10);
  263. }
  264. .user-right-01-tip {
  265. font-size: px2vw(22);
  266. color: #FF7373;
  267. line-height: px2vw(29);
  268. margin-top: px2vw(37);
  269. }
  270. .self-btn01 {
  271. width: px2vw(200);
  272. height: px2vw(58);
  273. background: #EA252C;
  274. border-radius: px2vw(8);
  275. font-size: px2vw(24);
  276. color: #FFFFFF;
  277. line-height: px2vw(31);
  278. margin-top: px2vw(94);
  279. }
  280. .user-right-self01 {
  281. background: #FFFFFF;
  282. }
  283. .box1 {
  284. height: px2vw(200);
  285. background: #FFFFFF;
  286. }
  287. .self-avatar {
  288. margin-left: px2vw(227);
  289. }
  290. .self-avatar img {
  291. width: px2vw(120);
  292. }
  293. .self-btn02 {
  294. width: px2vw(200);
  295. height: px2vw(58);
  296. background: #EA252C;
  297. border-radius: px2vw(8);
  298. font-size: px2vw(24);
  299. color: #FFFFFF;
  300. line-height: px2vw(31);
  301. margin-left: px2vw(57);
  302. }
  303. .box2 {
  304. // height: px2vw(553);
  305. background: #FFFFFF;
  306. margin-top: px2vw(10);
  307. }
  308. .box2-content {
  309. margin-left: px2vw(71);
  310. margin-top: px2vw(31);
  311. margin-bottom: px2vw(57);
  312. }
  313. .form-input {
  314. width: px2vw(355);
  315. height: px2vw(54);
  316. padding: px2vw(14) px2vw(20);
  317. font-size: px2vw(20);
  318. color: #070707;
  319. line-height: px2vw(26);
  320. background: #FFFFFF;
  321. border-radius: px2vw(4);
  322. border: 1px solid #B4B4B4;
  323. }
  324. .title-text {
  325. margin-left: px2vw(16);
  326. }
  327. .box2-table-box {
  328. // margin-top: px2vw(44);
  329. // margin-bottom: px2vw(44);
  330. width: px2vw(1377);
  331. }
  332. .box2-table-box-left {
  333. width: px2vw(500);
  334. }
  335. .box2-table-box-left-item {
  336. width: 100%;
  337. margin-top: px2vw(30);
  338. }
  339. .table-title {
  340. font-size: px2vw(22);
  341. color: #555555;
  342. line-height: px2vw(29);
  343. }
  344. .box2-table-box-right {
  345. width: px2vw(500);
  346. margin-left: px2vw(92);
  347. }
  348. .box3 {
  349. // height: px2vw(553);
  350. background: #FFFFFF;
  351. margin-top: px2vw(10);
  352. }
  353. .btn-box {
  354. // margin-top: px2vw(10);
  355. }
  356. .btn-submit {
  357. width: px2vw(353);
  358. height: px2vw(58);
  359. background: #EA252C;
  360. border-radius: px2vw(8);
  361. font-size: px2vw(24);
  362. color: #FFFFFF;
  363. line-height: px2vw(31);
  364. margin-top: px2vw(94);
  365. }
  366. .btn-cancel {
  367. width: px2vw(200);
  368. height: px2vw(58);
  369. background: #D8D8D8;
  370. border-radius: px2vw(8);
  371. font-size: px2vw(24);
  372. color: #FFFFFF;
  373. line-height: px2vw(31);
  374. margin-top: px2vw(94);
  375. margin-left: px2vw(30);
  376. }
  377. .m_right {
  378. width: 100%;
  379. height: 100%;
  380. margin-top: 5rpx;
  381. padding: 0 150rpx;
  382. background-color: #fff;
  383. box-shadow: 3px 0px 6px 0px rgba(0, 0, 0, 0.1);
  384. .m_right_hander {
  385. text-align: right;
  386. height: 250rpx;
  387. position: relative;
  388. .m_btn_red {
  389. position: absolute;
  390. height: 80rpx;
  391. line-height: 80rpx;
  392. padding: 0 40rpx;
  393. right: 0;
  394. top: 50%;
  395. transform: translateY(-50%);
  396. background: #EA252C;
  397. color: #fff;
  398. }
  399. }
  400. }
  401. tbody tr {
  402. border-top: 2rpx solid #DDDDDD !important;
  403. }
  404. tbody tr th {
  405. font-weight: 400 !important;
  406. height: 140rpx;
  407. line-height: 140rpx;
  408. }
  409. tbody tr:hover {
  410. // color: #fff;
  411. background: #FDEBEC;
  412. // opacity: 0.08;
  413. }
  414. .m-table-hander {
  415. background-color: #FFF8F7;
  416. height: 140rpx;
  417. line-height: 140rpx;
  418. font-family: MicrosoftYaHei-Bold, MicrosoftYaHei;
  419. font-weight: bold;
  420. }
  421. .m_edit {
  422. position: absolute;
  423. top: 50%;
  424. left: 50%;
  425. transform: translate(-50%, -50%);
  426. background: rgb(67, 127, 250);
  427. color: rgb(255, 255, 255);
  428. min-width: 130rpx;
  429. }
  430. .m_delete {
  431. position: absolute;
  432. top: 50%;
  433. left: 50%;
  434. min-width: 130rpx;
  435. transform: translate(-50%, -50%);
  436. background: rgb(234, 37, 44);
  437. color: rgb(255, 255, 255);
  438. }
  439. .m_right_footer {
  440. margin-top: 80rpx;
  441. margin-bottom: 80rpx;
  442. }
  443. .m_paging {
  444. text-align: right;
  445. .m_paging_item {
  446. padding: 10rpx 18rpx;
  447. border: 1rpx solid #DDDDDD;
  448. border-radius: 8rpx;
  449. margin-right: 10rpx;
  450. }
  451. .p_act {
  452. background: #EA252C;
  453. color: #fff;
  454. border: inherit;
  455. }
  456. }
  457. .m_paging_item:hover {
  458. background: #EA252C;
  459. color: #fff;
  460. border: inherit;
  461. }
  462. .m_act1 {
  463. color: #FF0019;
  464. }
  465. .m_right_container {
  466. width: 100%;
  467. margin-top: px2vw(40);
  468. }
  469. .progress-item{
  470. margin-top: px2vw(40);
  471. }
  472. .progress-box {
  473. width: px2vw(700);
  474. // margin-top: px2vw(40);
  475. }
  476. .xxjd-text {
  477. margin-top: px2vw(40);
  478. }
  479. .progress-text {
  480. font-size: px2vw(24);
  481. color: #070707;
  482. line-height: px2vw(26);
  483. margin-left: px2vw(40);
  484. }
  485. </style>