record.vue 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364
  1. <template>
  2. <view class="m_right">
  3. <view class="m_right_container">
  4. <view class="m_row_class">
  5. <view class="m_row">
  6. <view class="m_row_link">
  7. </view>
  8. <view class="m_row_title" v-text="'学生信息'">
  9. </view>
  10. <view style="position: relative;margin-left: 40rpx;">
  11. <div class="triangle_border_down">
  12. <span></span>
  13. </div>
  14. </view>
  15. </view>
  16. <table style="width: 100%;border: 1px solid #DDDDDD;border-collapse: collapse">
  17. <thead class="m-table-hander">
  18. <tr>
  19. <th>姓名</th>
  20. <th>班级</th>
  21. <th>学号</th>
  22. </tr>
  23. </thead>
  24. <tbody>
  25. <tr v-for="(item,index) in studentData" :key="index">
  26. <th>{{item.name}}</th>
  27. <th>{{item.Class}}</th>
  28. <th>{{item.PhoneNum}}</th>
  29. </tr>
  30. </tbody>
  31. </table>
  32. </view>
  33. <view class="m_row_class">
  34. <view class="m_row">
  35. <view class="m_row_link">
  36. </view>
  37. <view class="m_row_title" v-text="'成绩分布'">
  38. </view>
  39. <view style="position: relative;margin-left: 40rpx;">
  40. <div class="triangle_border_down">
  41. <span></span>
  42. </div>
  43. </view>
  44. </view>
  45. </view>
  46. <view class="m_row_class">
  47. <view class="m_row">
  48. <view class="m_row_link">
  49. </view>
  50. <view class="m_row_title" v-text="'学习进度'">
  51. </view>
  52. <view style="position: relative;margin-left: 40rpx;">
  53. <div class="triangle_border_down">
  54. <span></span>
  55. </div>
  56. </view>
  57. </view>
  58. <!-- <echats ref="echats" ></echats> -->
  59. </view>
  60. <view class="m_row_class">
  61. <view class="" style="display: flex;justify-content: space-between;">
  62. <view class="m_row">
  63. <view class="m_row_link">
  64. </view>
  65. <view class="m_row_title" v-text="'测试成绩'">
  66. </view>
  67. <view style="position: relative;margin-left: 40rpx;">
  68. <div class="triangle_border_down">
  69. <span></span>
  70. </div>
  71. </view>
  72. </view>
  73. </view>
  74. <table style="width: 100%;border: 1px solid #DDDDDD;border-collapse: collapse">
  75. <thead class="m-table-hander">
  76. <tr>
  77. <th>测试项目</th>
  78. <th>是否学习</th>
  79. <th>是否通过</th>
  80. <th>分值</th>
  81. </tr>
  82. </thead>
  83. <tbody>
  84. <tr v-for="(item,index) in 4" :key="index">
  85. <th></th>
  86. <th></th>
  87. <th></th>
  88. <th></th>
  89. </tr>
  90. </tbody>
  91. </table>
  92. </view>
  93. </view>
  94. <!-- <msg ref="msg" :title="title" @determine="determine" :btnArr="arr" v-show="show"></msg>
  95. <audit ref="audit" v-show="auditshow" @determine="determine"></audit> -->
  96. <!-- <locationtemp ref="location_temp"></locationtemp> -->
  97. </view>
  98. </template>
  99. <script>
  100. // import msg from "./msg.vue"
  101. // import audit from "./audit.vue"
  102. // import locationtemp from "./location_temp.vue"
  103. // import api from "../../../api/project.js"
  104. // export echarts from "./echarts.js"
  105. // import echats from "./echats.vue"
  106. export default {
  107. name: "home_projec1",
  108. data() {
  109. return {
  110. index: 1,
  111. title: "",
  112. studentData: [],
  113. queryList: {
  114. UserID: "",
  115. BeginNum: 0,
  116. EndNum: 1000,
  117. },
  118. }
  119. },
  120. components: {
  121. // echats
  122. // locationtemp
  123. },
  124. created() {
  125. },
  126. methods: {
  127. paging(obj) {
  128. this.pageIndex = obj;
  129. this.queryList.BeginNum = (this.pageIndex - 1) * this.pageSize;
  130. this.queryList.EndNum = this.pageIndex * this.pageSize - 1;
  131. this.getlist();
  132. },
  133. getlist() {
  134. this.queryList.UserID = this.$UserId;
  135. uni.request({
  136. url: this.$Api + "/backstage/getalluser",
  137. data: this.queryList,
  138. method: "POST",
  139. dataType: "json",
  140. success: res => {
  141. var {
  142. data
  143. } = res;
  144. if (data.code == 100) {
  145. this.studentData = res.Users
  146. } else {
  147. this.studentData = [];
  148. // this.pageCount = 0;
  149. }
  150. }
  151. })
  152. }
  153. }
  154. }
  155. </script>
  156. <style lang="scss">
  157. .m_right {
  158. width: 100%;
  159. margin-top: 5rpx;
  160. // padding: 0 150rpx;
  161. background-color: #fff;
  162. box-shadow: 3px 0px 6px 0px rgba(0, 0, 0, 0.1);
  163. .m_right_container {
  164. padding: 150rpx;
  165. }
  166. .s_logo {
  167. width: 100%;
  168. height: 800rpx;
  169. }
  170. .m_right_hander {
  171. text-align: right;
  172. height: 250rpx;
  173. position: relative;
  174. .m_btn_red {
  175. position: absolute;
  176. height: 80rpx;
  177. line-height: 80rpx;
  178. padding: 0 40rpx;
  179. right: 0;
  180. top: 50%;
  181. transform: translateY(-50%);
  182. background: #EA252C;
  183. color: #fff;
  184. }
  185. }
  186. }
  187. .echarts {
  188. margin-top: 100px;
  189. width: 100%;
  190. height: 300px;
  191. }
  192. .m_btn_download {
  193. height: 80rpx;
  194. line-height: 80rpx;
  195. padding: 0 70rpx;
  196. background: #EA252C;
  197. color: #fff;
  198. font-family: MicrosoftYaHei;
  199. }
  200. tbody tr {
  201. border-top: 2rpx solid #DDDDDD !important;
  202. }
  203. tbody tr th:first-child {
  204. position: relative;
  205. }
  206. tbody tr th {
  207. font-weight: 400 !important;
  208. height: 140rpx;
  209. line-height: 140rpx;
  210. }
  211. tbody tr:hover {
  212. // color: #fff;
  213. background: #FDEBEC;
  214. // opacity: 0.08;
  215. }
  216. .m-table-hander {
  217. background-color: #FFF8F7;
  218. height: 140rpx;
  219. line-height: 140rpx;
  220. font-family: MicrosoftYaHei-Bold, MicrosoftYaHei;
  221. font-weight: bold;
  222. }
  223. .m_edit {
  224. position: absolute;
  225. top: 50%;
  226. left: 50%;
  227. transform: translate(-50%, -50%);
  228. background: rgb(67, 127, 250);
  229. color: rgb(255, 255, 255);
  230. min-width: 130rpx;
  231. }
  232. .m_delete {
  233. position: absolute;
  234. top: 50%;
  235. left: 50%;
  236. min-width: 130rpx;
  237. transform: translate(-50%, -50%);
  238. background: rgb(234, 37, 44);
  239. color: rgb(255, 255, 255);
  240. }
  241. .m_right_footer {
  242. margin-top: 80rpx;
  243. }
  244. .m_logoimg {
  245. width: 80rpx;
  246. height: 80rpx;
  247. position: absolute;
  248. top: 50%;
  249. left: 50%;
  250. transform: translate(-50%, -50%);
  251. }
  252. .m_paging {
  253. text-align: right;
  254. .m_paging_item {
  255. padding: 10rpx 18rpx;
  256. border: 1rpx solid #DDDDDD;
  257. border-radius: 8rpx;
  258. margin-right: 10rpx;
  259. }
  260. .p_act {
  261. background: #EA252C;
  262. color: #fff;
  263. border: inherit;
  264. }
  265. }
  266. .m_paging_item:hover {
  267. background: #EA252C;
  268. color: #fff;
  269. border: inherit;
  270. }
  271. .m_act1 {
  272. color: #FF0019;
  273. }
  274. .m_row {
  275. display: flex;
  276. height: 60rpx;
  277. line-height: 60rpx;
  278. font-size: 30rpx;
  279. color: #ea252c;
  280. padding: 0 0 80rpx 0;
  281. }
  282. .m_audit {
  283. position: absolute;
  284. top: 50%;
  285. left: 50%;
  286. min-width: 65px;
  287. -webkit-transform: translate(-50%, -50%);
  288. transform: translate(-50%, -50%);
  289. color: white;
  290. background-color: #FF791B;
  291. }
  292. .m_row_link {
  293. width: 10rpx;
  294. height: 60rpx;
  295. background-color: #ea252c;
  296. margin-right: 40rpx;
  297. }
  298. .m_row_title {
  299. color: #ea252c;
  300. font-weight: bold;
  301. font-size: 40rpx;
  302. }
  303. /*向下*/
  304. .triangle_border_down {
  305. width: 0;
  306. height: 0;
  307. border-width: 25rpx 25rpx 0;
  308. border-style: solid;
  309. border-color: #ea252c transparent transparent;
  310. /*灰 透明 透明 */
  311. margin: 20rpx auto;
  312. position: relative;
  313. }
  314. .m_row_class {
  315. margin-bottom: 60rpx;
  316. }
  317. </style>