index.vue 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489
  1. <template>
  2. <div class="body1" v-loading="isLoading">
  3. <!-- 综合数据 -->
  4. <div class="left">
  5. <div class="top">
  6. <div class="titleBox">
  7. <div class="title">综合成绩配置</div>
  8. </div>
  9. <div class="dataBox">
  10. <cateRank :monthArray="loginCountMonthArray"></cateRank>
  11. </div>
  12. </div>
  13. <div class="bottom">
  14. <div class="titleBox">
  15. <div class="title">整体表现</div>
  16. <div>
  17. <el-select v-model="cType" @change="typeChange" class="selectBox" @focus="setMinWidth" style="width: 100px;">
  18. <el-option label="三年级" value=""></el-option>
  19. </el-select>
  20. <el-select v-model="cType" @change="typeChange" class="selectBox" @focus="setMinWidth" style="width: 180px;">
  21. <el-option label="2022-2023第二学期" value=""></el-option>
  22. </el-select>
  23. </div>
  24. </div>
  25. <div class="dataBox">
  26. <div class="info_box">
  27. <div class="info blueBG">
  28. <span>实有人数</span>
  29. <!-- <span>{{ loginTime.toFixed(0) }}小时</span> -->
  30. <span>{{ 323 }}</span>
  31. </div>
  32. <div class="info blueBG">
  33. <span>考试人数</span>
  34. <!-- <span>{{ (loginTime / count).toFixed(0) }}小时</span> -->
  35. <span>{{ 320 }}</span>
  36. </div>
  37. </div>
  38. <div class="depth_box" style="height: calc(100% - 70px)">
  39. <div class="depth">
  40. <span>优秀率</span>
  41. <div>
  42. <el-progress :width="80" type="circle" :percentage="80" :stroke-width="5" :format="format"
  43. color="#106BFF"></el-progress>
  44. </div>
  45. </div>
  46. <div class="depth">
  47. <span>合格率</span>
  48. <div>
  49. <el-progress :width="80" type="circle" :percentage="80" :stroke-width="5" :format="format"
  50. color="#106BFF"></el-progress>
  51. </div>
  52. </div>
  53. </div>
  54. </div>
  55. </div>
  56. </div>
  57. <div class="center">
  58. <div class="top">
  59. <div class="titleBox">
  60. <div class="title">班级表现</div>
  61. <div>
  62. <el-select v-model="cType" @change="typeChange" class="selectBox" @focus="setMinWidth" style="width: 100px;">
  63. <el-option label="三年级" value=""></el-option>
  64. </el-select>
  65. <el-select v-model="cType" @change="typeChange" class="selectBox" @focus="setMinWidth" style="width: 180px;">
  66. <el-option label="2022-2023第二学期" value=""></el-option>
  67. </el-select>
  68. </div>
  69. </div>
  70. <div class="dataBox">
  71. <teacherInfo style="height: calc(100%)" :courseArray="courseArray" @openCourse="openCourse"></teacherInfo>
  72. </div>
  73. </div>
  74. <div class="bottom">
  75. <div class="titleBox">
  76. <div class="title">成绩分布</div>
  77. <div>
  78. <el-select v-model="cType" @change="typeChange" class="selectBox" @focus="setMinWidth" style="width: 100px;">
  79. <el-option label="三年级" value=""></el-option>
  80. </el-select>
  81. <el-select v-model="cType" @change="typeChange" class="selectBox" @focus="setMinWidth" style="width: 180px;">
  82. <el-option label="2022-2023第二学期" value=""></el-option>
  83. </el-select>
  84. </div>
  85. </div>
  86. <div class="dataBox">
  87. <studentInfo2 :evCourseArray="evCourseArray" :eva="eva"></studentInfo2>
  88. </div>
  89. </div>
  90. </div>
  91. <div class="right">
  92. <div class="top">
  93. <div class="titleBox">
  94. <div class="title">公开课情况</div>
  95. <div>
  96. <el-select v-model="cType" @change="typeChange" class="selectBox" @focus="setMinWidth" style="width: 180px;">
  97. <el-option label="2022-2023第二学期" value=""></el-option>
  98. </el-select>
  99. </div>
  100. </div>
  101. <div class="dataBox">
  102. <courseInfo :courseNumberArray="courseNumberArray" @openCourse="openCourse2"></courseInfo>
  103. </div>
  104. </div>
  105. <div class="bottom">
  106. <div class="titleBox">
  107. <div class="title">教学成果统计</div>
  108. </div>
  109. <div class="dataBox">
  110. <!-- <studentInfo :evCourseArray="evCourseArray" :eva="eva"></studentInfo> -->
  111. <loginTime :yearArray="loginCountYearArray"></loginTime>
  112. </div>
  113. </div>
  114. </div>
  115. </div>
  116. </template>
  117. <script>
  118. import loginCount from "./loginCount";
  119. import loginTime from "./loginTime";
  120. import teacherInfo from "./teacherInfo";
  121. import courseInfo from "./courseInfo";
  122. import studentInfo from "./studentInfo";
  123. import studentInfo2 from "./studentInfo2";
  124. import cateRank from "./cateRank";
  125. export default {
  126. components: {
  127. loginCount,
  128. loginTime,
  129. teacherInfo,
  130. courseInfo,
  131. studentInfo,
  132. studentInfo2,
  133. cateRank,
  134. },
  135. props: {
  136. oid: {
  137. type: String,
  138. },
  139. org: {
  140. type: String,
  141. },
  142. },
  143. data() {
  144. return {
  145. isLoading: false,
  146. count: 0,
  147. loginCount: 0,
  148. loginTime: 0,
  149. courseCount: 0,
  150. teacherCount: 0,
  151. loginCountMonthArray: [],
  152. weekCount: 0,
  153. loginCountYearArray: [],
  154. gradeCourse: 0,
  155. subjectCourse: 0,
  156. courseArray: [],
  157. cType: '',
  158. gradeArray: [],
  159. subjectArray: [],
  160. themeArray: [],
  161. allArray: [],
  162. courseNumberArray: [],
  163. typeCount: 0,
  164. typeCourseCount: 0,
  165. lightJson: {
  166. users: 0,
  167. teachers: 0,
  168. students: 0,
  169. upCourseTeachers: 0,
  170. gCourseTeachers: 0,
  171. upCourseUsers: 0,
  172. gCourseUsers: 0,
  173. toolUsers: 0,
  174. rateUser: 0,
  175. upgCourseTeachers: 0,
  176. commentUsers: 0,
  177. },
  178. evArray: [],
  179. eva: '',
  180. evCourseArray: [],
  181. minWidth: 0
  182. }
  183. },
  184. mounted() {
  185. this.getData();
  186. },
  187. methods: {
  188. setMinWidth(val) {
  189. this.minWidth = val.srcElement.clientWidth
  190. },
  191. openCourse(classIndex, subIndex) {
  192. },
  193. openCourse2(index) {
  194. },
  195. getData() {
  196. },
  197. typeChange() {
  198. },
  199. typeChange2() {
  200. },
  201. format(percentage) {
  202. return percentage + '%';
  203. },
  204. },
  205. };
  206. </script>
  207. <style scoped>
  208. .body1 {
  209. width: 100%;
  210. height: 100%;
  211. display: flex;
  212. padding: 20px;
  213. box-sizing: border-box;
  214. overflow: hidden;
  215. }
  216. .left {
  217. width: calc(100% / 4 * 1);
  218. height: 100%;
  219. }
  220. .left>.top {
  221. width: 100%;
  222. height: calc(100% / 5 * 2.8 - 20px);
  223. background: #fff;
  224. border-radius: 5px;
  225. margin: 0 0 20px 0;
  226. }
  227. .left>.bottom {
  228. width: 100%;
  229. height: calc(100% / 5 * 2.2);
  230. background: #fff;
  231. border-radius: 5px;
  232. }
  233. .center {
  234. width: calc(100% / 4 * 2 - 40px);
  235. height: 100%;
  236. margin: 0 20px;
  237. }
  238. .center>.top {
  239. width: 100%;
  240. height: calc(100% / 5 * 2.5 - 20px);
  241. background: #fff;
  242. border-radius: 5px;
  243. margin: 0 0 20px 0;
  244. }
  245. .center>.bottom {
  246. width: 100%;
  247. height: calc(100% / 5 * 2.5);
  248. background: #fff;
  249. border-radius: 5px;
  250. }
  251. .right {
  252. width: calc(100% / 4 * 1);
  253. height: 100%;
  254. }
  255. .right>.top {
  256. width: 100%;
  257. height: calc(100% / 5 * 2.8 - 20px);
  258. background: #fff;
  259. border-radius: 5px;
  260. margin: 0 0 20px 0;
  261. }
  262. .right>.bottom {
  263. width: 100%;
  264. height: calc(100% / 5 * 2.2);
  265. background: #fff;
  266. border-radius: 5px;
  267. }
  268. .titleBox {
  269. height: 40px;
  270. display: flex;
  271. align-items: center;
  272. justify-content: space-between;
  273. padding: 0 15px;
  274. width: 100%;
  275. box-sizing: border-box;
  276. }
  277. .titleBox>.title {
  278. font-weight: 700;
  279. }
  280. .dataBox {
  281. height: calc(100% - 40px);
  282. width: 100%;
  283. }
  284. .info_box {
  285. display: flex;
  286. flex-wrap: wrap;
  287. align-items: center;
  288. justify-content: space-between;
  289. width: 90%;
  290. margin: 0 auto;
  291. }
  292. .info_box>.info2,
  293. .info_box>.info3,
  294. .info_box>.info {
  295. width: calc(50% - 10px);
  296. display: flex;
  297. height: 60px;
  298. justify-content: space-between;
  299. align-items: center;
  300. padding: 0 10px;
  301. box-sizing: border-box;
  302. margin-bottom: 10px;
  303. border-radius: 5px;
  304. }
  305. .info_box>.info2 {
  306. width: calc(100% / 4 - 10px);
  307. /* align-items: flex-end; */
  308. }
  309. .info_box>.info3 {
  310. width: 100%;
  311. margin-bottom: 5px;
  312. }
  313. .info_box>.info2>span:nth-child(1),
  314. .info_box>.info3>span:nth-child(1),
  315. .info_box>.info>span:nth-child(1) {
  316. font-size: 14px;
  317. /* margin: 0 0 0 20px; */
  318. color: #565e6a;
  319. width: 60px;
  320. white-space: pre-wrap;
  321. word-break: break-all;
  322. }
  323. .info_box>.info2>span:nth-child(2),
  324. .info_box>.info3>span:nth-child(2),
  325. .info_box>.info>span:nth-child(2) {
  326. font-size: 24px;
  327. /* font-weight: 700; */
  328. }
  329. .blueBG {
  330. background: rgb(243, 248, 253);
  331. border: 2px solid rgb(234, 246, 255);
  332. }
  333. .greenBG {
  334. background: linear-gradient(180deg,
  335. rgb(211, 246, 228, 0.2) 0%,
  336. rgb(23, 196, 105, 0.3) 100%);
  337. }
  338. .depth_box {
  339. display: flex;
  340. flex-wrap: wrap;
  341. height: 100%;
  342. width: 95%;
  343. margin: 0 auto;
  344. overflow: hidden;
  345. justify-content: space-between;
  346. }
  347. .depth {
  348. width: calc(100% / 2 - 10px);
  349. display: flex;
  350. flex-direction: column;
  351. align-items: center;
  352. justify-content: center;
  353. }
  354. .depth>span:nth-child(1) {
  355. font-size: 14px;
  356. font-weight: 700;
  357. margin: 0 0 10px;
  358. }
  359. .depth>div:nth-child(1) {}
  360. .course_box {
  361. display: flex;
  362. height: 50%;
  363. width: 95%;
  364. margin: 0 auto;
  365. }
  366. .course_box .info_box {
  367. height: 100%;
  368. width: 100px;
  369. flex-direction: column;
  370. margin: 0;
  371. flex-wrap: nowrap;
  372. }
  373. .course_box_p {
  374. width: calc(100% - 100px);
  375. }
  376. .selectBox {
  377. width: 80px;
  378. margin-left: 10px;
  379. }
  380. .selectBox>>>.el-input__inner {
  381. height: 30px;
  382. line-height: 30px;
  383. }
  384. .selectBox>>>.el-input__icon {
  385. line-height: 30px;
  386. }
  387. .pe_box {
  388. display: flex;
  389. width: 100%;
  390. height: 100px;
  391. background: rgb(221, 240, 234);
  392. padding: 0 20px;
  393. justify-content: space-between;
  394. box-sizing: border-box;
  395. }
  396. .orange_pe {
  397. background: rgb(254, 119, 1);
  398. }
  399. .red_pe {
  400. background: rgb(216, 35, 254);
  401. }
  402. .purple_pe {
  403. background: rgb(255, 13, 11);
  404. }
  405. .pe_child {
  406. display: flex;
  407. flex-direction: column;
  408. align-items: center;
  409. justify-content: space-between;
  410. padding: 20px 0;
  411. height: 100%;
  412. box-sizing: border-box;
  413. }
  414. .pe_f {
  415. display: flex;
  416. align-items: center;
  417. font-size: 13px;
  418. }
  419. .blue_pe {
  420. background: rgb(78, 241, 238);
  421. }
  422. .pe_img {
  423. border-radius: 50%;
  424. width: 40px;
  425. height: 40px;
  426. display: flex;
  427. align-items: center;
  428. justify-content: center;
  429. }
  430. .pe_img>img {
  431. width: 60%;
  432. }
  433. .pe_s {
  434. font-weight: 700;
  435. color: #5a5a5a;
  436. }
  437. </style>