index.vue 48 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441
  1. <template>
  2. <div class="body1">
  3. <loading :isLoading="isLoading"></loading>
  4. <!-- 综合数据 -->
  5. <div class="left">
  6. <div class="top">
  7. <div class="titleBox" style="justify-content: space-between">
  8. <div class="title">基础概况</div>
  9. <!-- <el-select v-model="cType" class="selectBox" style="width: 110px">
  10. <el-option label="全部" value="全部"></el-option>
  11. </el-select> -->
  12. </div>
  13. <div class="dataBox">
  14. <div class="info_box">
  15. <div class="info blueBG">
  16. <span>用户总数</span>
  17. <span>{{ allUser }}</span>
  18. </div>
  19. <div class="info blueBG">
  20. <span>本月新增登录用户</span>
  21. <span v-if="loginCountMonthArray.length">{{
  22. loginCountMonthArray[loginCountMonthArray.length - 1].user -
  23. loginCountMonthArray[loginCountMonthArray.length - 2].user < 0 ? 0 :
  24. loginCountMonthArray[loginCountMonthArray.length - 1].user -
  25. loginCountMonthArray[loginCountMonthArray.length - 2].user }}</span>
  26. </div>
  27. <div class="info blueBG">
  28. <span>本月登录用户总数</span>
  29. <span v-if="loginCountMonthArray.length">{{
  30. loginCountMonthArray[loginCountMonthArray.length - 1].user
  31. }}</span>
  32. </div>
  33. <div class="info blueBG">
  34. <span>月登录环比</span>
  35. <span v-if="loginCountMonthArray.length">{{
  36. loginCountMonthArray[loginCountMonthArray.length - 1].user > 0
  37. ? (
  38. (loginCountMonthArray[loginCountMonthArray.length - 1]
  39. .user /
  40. allUser) *
  41. 100
  42. ).toFixed(0) + "%"
  43. : 0
  44. }}</span>
  45. <!-- <span v-if="loginCountMonthArray.length">{{ (loginCountMonthArray[loginCountMonthArray.length - 1].user -
  46. loginCountMonthArray[loginCountMonthArray.length - 2].user) < 0 ? 0 :
  47. (((loginCountMonthArray[loginCountMonthArray.length - 1].user -
  48. loginCountMonthArray[loginCountMonthArray.length - 2].user) /
  49. loginCountMonthArray[loginCountMonthArray.length - 2].user) * 100).toFixed(0) + '%' }}</span> -->
  50. </div>
  51. </div>
  52. <loginCount style="height: calc(100% - 140px)" :monthArray="loginCountMonthArray"></loginCount>
  53. </div>
  54. </div>
  55. <div class="bottom">
  56. <div class="titleBox">
  57. <div class="title" :class="{ isClick: skType == 0, noClick: skType != 0 }" @click="skType = 0"
  58. style="cursor: pointer; padding: 0 0 5px 0">
  59. 在线时长
  60. </div>
  61. <div class="title" :class="{ isClick: skType == 1, noClick: skType != 1 }" @click="skType = 1"
  62. style="cursor: pointer; padding: 0 0 5px 0">
  63. 登录频次
  64. </div>
  65. <!-- <el-select v-model="cType1" class="selectBox" style="width: 110px;margin-left:auto;">
  66. <el-option label="全部年级" value="全部年级"></el-option>
  67. <el-option label="一年级" value="一年级"></el-option>
  68. <el-option label="二年级" value="二年级"></el-option>
  69. <el-option label="三年级" value="三年级"></el-option>
  70. </el-select> -->
  71. <!-- <div class="timeDiv">
  72. <div @click="tType = 0" :class="{ isClick: tType == 0 }">周</div>
  73. <div @click="tType = 1" :class="{ isClick: tType == 1 }">月</div>
  74. <div @click="tType = 2" :class="{ isClick: tType == 2 }">学期</div>
  75. </div> -->
  76. </div>
  77. <div class="info_box" v-if="skType == 1">
  78. <div class="info blueBG">
  79. <span>登录频次</span>
  80. <span>{{ countLogin }}</span>
  81. </div>
  82. <div class="info blueBG">
  83. <span>人均登录频次</span>
  84. <span>{{
  85. countLogin > 0 ? (countLogin / allUser).toFixed(0) : 0
  86. }}</span>
  87. </div>
  88. </div>
  89. <div class="info_box" v-if="skType == 0">
  90. <div class="info blueBG">
  91. <span>累计时长</span>
  92. <span>{{ userOnlineTime }}</span>
  93. </div>
  94. <div class="info blueBG">
  95. <span>人均使用时长</span>
  96. <span>{{
  97. userOnlineTime > 0 ? (userOnlineTime / allUser).toFixed(0) : 0
  98. }}</span>
  99. </div>
  100. </div>
  101. <div class="dataBox" style="height: calc(100% - 155px)">
  102. <!-- 登录频次热力图 -->
  103. <toolUser style="height: calc(100%)" v-if="skType == 1 && !oType1" :Josn="loginCountYearArray"></toolUser>
  104. <!-- 登录频次柱状图 -->
  105. <toolUserBar style="height: calc(100%)" v-if="skType == 1 && oType1"
  106. :loginArray="[teacherLoginCount, studentLoginCount]"></toolUserBar>
  107. <!-- 在线时长柱状图 -->
  108. <!-- <bar style="height: calc(100%)" v-if="skType == 0 && !oType" :loginArray="[teacherOnlineTime, studentOnlineTime]"></bar> -->
  109. <loginTime style="height: calc(100%)" v-if="skType == 0 && !oType" :yearArray="userOnlineTime"></loginTime>
  110. <!-- 在线时长热力图 -->
  111. <barToolUser style="height: calc(100%)" v-if="skType == 0 && oType" :Josn="allTimeYearArray"></barToolUser>
  112. <!-- <div class="otherCss" v-if="skType == 0">
  113. <div v-if="!oType">切换为热力图</div>
  114. <div v-if="oType">切换为仪表盘</div>
  115. <div class="otherImg" @click="otherEchart">
  116. <img src="../../../../assets/icon/other.png" alt="" />
  117. </div>
  118. </div>
  119. <div class="otherCss" v-if="skType == 1">
  120. <div v-if="!oType1">切换为柱状图</div>
  121. <div v-if="oType1">切换为热力图</div>
  122. <div class="otherImg" @click="otherEchart1">
  123. <img src="../../../../assets/icon/other.png" alt="" />
  124. </div>
  125. </div> -->
  126. </div>
  127. <div class="dataBoard_check_box" v-if="skType == 0">
  128. <div class="icon yb_icon" :class="{ active: !oType }" @click="oType = false"><span>仪表盘</span></div>
  129. <div class="icon rl_icon" :class="{ active: oType }" @click="oType = true"><span>热力图</span></div>
  130. </div>
  131. <div class="dataBoard_check_box" v-if="skType == 1">
  132. <div class="icon zz_icon" :class="{ active: oType1 }" @click="oType1 = true"><span>柱状图</span></div>
  133. <div class="icon rl_icon" :class="{ active: !oType1 }" @click="oType1 = false"><span>热力图</span></div>
  134. </div>
  135. </div>
  136. </div>
  137. <div class="center">
  138. <div class="top">
  139. <div class="titleBox" style="justify-content: space-between">
  140. <div style="
  141. display: flex;
  142. flex-direction: row;
  143. flex-wrap: nowrap;
  144. align-items: center;
  145. ">
  146. <div class="title" :class="{ isClick: courseType == 0, noClick: courseType != 0 }" @click="courseType = 0"
  147. style="cursor: pointer; padding: 0 0 5px 0">
  148. 整体分布
  149. </div>
  150. <div class="title" :class="{ isClick: courseType == 1, noClick: courseType != 1 }" @click="courseType = 1"
  151. style="cursor: pointer; padding: 0 0 5px 0">
  152. 总量增幅
  153. </div>
  154. <div class="title" :class="{ isClick: courseType == 2, noClick: courseType != 2 }" @click="courseType = 2"
  155. style="cursor: pointer; padding: 0 0 5px 0">
  156. 实施情况
  157. </div>
  158. </div>
  159. <!-- <div style="
  160. display: flex;
  161. flex-direction: row;
  162. flex-wrap: nowrap;
  163. align-items: center;
  164. ">
  165. <el-select v-model="cType3" class="selectBox" style="width: 110px" v-if="courseType == 1">
  166. <el-option label="按年级" value="按年级"></el-option>
  167. </el-select>
  168. <el-select v-model="cType2" class="selectBox" style="width: 110px">
  169. <el-option label="全部活动" value="全部活动"></el-option>
  170. </el-select>
  171. </div> -->
  172. </div>
  173. <div class="dataBox">
  174. <teacherInfo v-if="courseType == 0" style="height: calc(100% - 10px)" :courseArray="courseArray"></teacherInfo>
  175. <courseNum v-if="courseType == 1" style="height: calc(100%)" :weekCourse2="weekCourse2"></courseNum>
  176. <div style="height: calc(100%)" v-if="courseType == 2">
  177. <div class="info_box" style="width: 96%">
  178. <div class="info blueBG" style="width: calc(100% / 4 - 10px)">
  179. <span>平台实施课程总数</span>
  180. <span>{{ isCourseCount }}</span>
  181. </div>
  182. <div class="info blueBG" style="width: calc(100% / 4 - 10px)">
  183. <span>平台实施课程占比</span>
  184. <span>{{
  185. isCourseCount
  186. ? ((isCourseCount / allCourseCount) * 100).toFixed(0) + "%"
  187. : "0%"
  188. }}</span>
  189. </div>
  190. <div class="info blueBG" style="width: calc(100% / 4 - 10px)">
  191. <span>课程平均任务数量</span>
  192. <span>{{
  193. isCourseCount ? (taskCount / isCourseCount).toFixed(0) : 0
  194. }}</span>
  195. </div>
  196. <div class="info blueBG" style="width: calc(100% / 4 - 10px)">
  197. <span>课程平均作业数量</span>
  198. <span>{{
  199. isCourseCount ? (workCount / isCourseCount).toFixed(0) : 0
  200. }}</span>
  201. </div>
  202. </div>
  203. <workNum style="height: calc(100% - 70px)" :workNumList="workNumList" @openCourse="openCourse"></workNum>
  204. </div>
  205. </div>
  206. </div>
  207. <div class="bottom">
  208. <div class="titleBox" style="justify-content: space-between">
  209. <div class="title">平台使用概况</div>
  210. <div class="tCircleC">
  211. <div class="tCircleBox">
  212. <span class="tCircle ts"></span>
  213. <span class="tname">老师</span>
  214. </div>
  215. <div class="tCircleBox">
  216. <span class="tCircle tt"></span>
  217. <span class="tname">学生</span>
  218. </div>
  219. </div>
  220. <!-- <div class="timeDiv">
  221. <div @click="tType = 0" :class="{ isClick: tType == 0 }">周</div>
  222. <div @click="tType = 1" :class="{ isClick: tType == 1 }">月</div>
  223. <div @click="tType = 2" :class="{ isClick: tType == 2 }">学期</div>
  224. </div> -->
  225. </div>
  226. <div class="dataBox">
  227. <div class="depth_box" style="height: calc(100%)">
  228. <div class="depth">
  229. <span>上传课程</span>
  230. <div>
  231. <el-progress :width="80" type="circle" :percentage="lightJson.upCourseTeachers
  232. ? parseInt(
  233. (
  234. (lightJson.upCourseTeachers / lightJson.teachers) *
  235. 100
  236. ).toFixed(0)
  237. )
  238. : 0
  239. " :stroke-width="5" :format="format" color="#106BFF"></el-progress>
  240. </div>
  241. </div>
  242. <div class="depth">
  243. <span>上传项目</span>
  244. <div>
  245. <el-progress :width="80" type="circle" :percentage="lightJson.upSCourseTeachers
  246. ? parseInt(
  247. (
  248. (lightJson.upSCourseTeachers / lightJson.teachers) *
  249. 100
  250. ).toFixed(0)
  251. )
  252. : 0
  253. " :stroke-width="5" :format="format" color="#106BFF"></el-progress>
  254. </div>
  255. </div>
  256. <div class="depth">
  257. <span>使用工具</span>
  258. <div>
  259. <el-progress :width="80" type="circle" :percentage="lightJson.toolTeachers
  260. ? parseInt(
  261. (
  262. (lightJson.toolTeachers / lightJson.teachers) *
  263. 100
  264. ).toFixed(0)
  265. )
  266. : 0
  267. " :stroke-width="5" :format="format" color="#106BFF"></el-progress>
  268. </div>
  269. </div>
  270. <div class="depth">
  271. <span>协同合作</span>
  272. <div>
  273. <el-progress :width="80" type="circle" :percentage="lightJson.gCourseTeachers
  274. ? parseInt(
  275. (
  276. (lightJson.gCourseTeachers / lightJson.teachers) *
  277. 100
  278. ).toFixed(0)
  279. )
  280. : 0
  281. " :stroke-width="5" :format="format" color="#106BFF"></el-progress>
  282. </div>
  283. </div>
  284. <div class="depth">
  285. <span>互动交流</span>
  286. <div>
  287. <el-progress :width="80" type="circle" :percentage="lightJson.commentTeachers
  288. ? parseInt(
  289. (
  290. (lightJson.commentTeachers / lightJson.teachers) *
  291. 100
  292. ).toFixed(0)
  293. )
  294. : 0
  295. " :stroke-width="5" :format="format" color="#106BFF"></el-progress>
  296. </div>
  297. </div>
  298. <div class="depth">
  299. <span>参与课程</span>
  300. <div>
  301. <el-progress :width="80" type="circle" :percentage="lightJson.courseStudents
  302. ? parseInt(
  303. (
  304. (lightJson.courseStudents / lightJson.students) *
  305. 100
  306. ).toFixed(0)
  307. )
  308. : 0
  309. " :stroke-width="5" :format="format" color="#53c95f"></el-progress>
  310. </div>
  311. </div>
  312. <div class="depth">
  313. <span>参与项目</span>
  314. <div>
  315. <el-progress :width="80" type="circle" :percentage="lightJson.scourseStudents
  316. ? parseInt(
  317. (
  318. (lightJson.scourseStudents / lightJson.students) *
  319. 100
  320. ).toFixed(0)
  321. )
  322. : 0
  323. " :stroke-width="5" :format="format" color="#53c95f"></el-progress>
  324. </div>
  325. </div>
  326. <div class="depth">
  327. <span>使用工具</span>
  328. <div>
  329. <el-progress :width="80" type="circle" :percentage="lightJson.toolStudents
  330. ? parseInt(
  331. (
  332. (lightJson.toolStudents / lightJson.students) *
  333. 100
  334. ).toFixed(0)
  335. )
  336. : 0
  337. " :stroke-width="5" :format="format" color="#53c95f"></el-progress>
  338. </div>
  339. </div>
  340. <div class="depth">
  341. <span>协同合作</span>
  342. <div>
  343. <el-progress :width="80" type="circle" :percentage="lightJson.gsCourseStudents
  344. ? parseInt(
  345. (
  346. (lightJson.gsCourseStudents / lightJson.students) *
  347. 100
  348. ).toFixed(0)
  349. )
  350. : 0
  351. " :stroke-width="5" :format="format" color="#53c95f"></el-progress>
  352. </div>
  353. </div>
  354. <div class="depth">
  355. <span>互动交流</span>
  356. <div>
  357. <el-progress :width="80" type="circle" :percentage="lightJson.commentStudents
  358. ? parseInt(
  359. (
  360. (lightJson.commentStudents / lightJson.students) *
  361. 100
  362. ).toFixed(0)
  363. )
  364. : 0
  365. " :stroke-width="5" :format="format" color="#53c95f"></el-progress>
  366. </div>
  367. </div>
  368. </div>
  369. <!-- <div class="otherCss">
  370. <div v-if="!shType">切换为散点图</div>
  371. <div v-if="shType">切换为进度条</div>
  372. <div class="otherImg" @click="shEchart">
  373. <img src="../../../../assets/icon/other.png" alt="" />
  374. </div>
  375. </div> -->
  376. </div>
  377. </div>
  378. </div>
  379. <div class="right">
  380. <div class="top" style="border-radius: 5px">
  381. <div class="titleBox" style="justify-content: space-between">
  382. <div class="title">整体分布</div>
  383. <div style="
  384. display: flex;
  385. flex-direction: row;
  386. flex-wrap: nowrap;
  387. align-items: center;
  388. ">
  389. <el-select v-model="cType" @change="typeChange" class="selectBox">
  390. <!-- <el-option label="全部" value=""></el-option> -->
  391. <el-option label="年级" value="grade"></el-option>
  392. <el-option label="主题" value="theme"></el-option>
  393. <el-option label="学科" value="subject"></el-option>
  394. </el-select>
  395. <!-- <el-select v-model="cType4" class="selectBox" style="width: 110px">
  396. <el-option label="全部" value="全部"></el-option>
  397. </el-select>
  398. <el-select v-model="cType5" class="selectBox" style="width: 110px">
  399. <el-option label="总量占比" value="总量占比"></el-option>
  400. </el-select> -->
  401. </div>
  402. </div>
  403. <div class="dataBox">
  404. <courseInfo style="height: calc(100% - 40px)" :courseNumberArray="courseNumberArray"></courseInfo>
  405. </div>
  406. </div>
  407. <div class="bottom">
  408. <div class="titleBox" style="justify-content: space-between">
  409. <div class="title">跨学科教学情况</div>
  410. <!-- <el-select v-model="cType6" class="selectBox" style="width: 110px">
  411. <el-option label="全部" value="全部"></el-option>
  412. </el-select> -->
  413. </div>
  414. <div class="dataBox">
  415. <cateRank style="height: calc(100%)" :resultSubject="resultSubject"></cateRank>
  416. </div>
  417. </div>
  418. </div>
  419. </div>
  420. </template>
  421. <script>
  422. import loginCount from "./loginCount";
  423. import teacherInfo from "./teacherInfo";
  424. import courseInfo from "./courseInfo";
  425. import cateRank from "./cateRank";
  426. import toolUser from "./toolUser";
  427. import bar from "./bar";
  428. import courseNum from "./courseNum";
  429. import workNum from "./workNum";
  430. import barToolUser from "./barToolUser";
  431. import toolUserBar from "./toolUserBar";
  432. import loginTime from "./loginTime";
  433. import loading from "../../components/loading.vue";
  434. export default {
  435. components: {
  436. loginCount,
  437. teacherInfo,
  438. courseInfo,
  439. cateRank,
  440. toolUser,
  441. bar,
  442. courseNum,
  443. workNum,
  444. barToolUser,
  445. toolUserBar,
  446. loginTime,
  447. loading,
  448. },
  449. props: {
  450. oid: {
  451. type: String,
  452. },
  453. org: {
  454. type: String,
  455. },
  456. },
  457. data() {
  458. return {
  459. isLoading: false,
  460. cType: "grade",
  461. cType1: "全部年级",
  462. cType2: "全部活动",
  463. cType3: "按年级",
  464. cType4: "全部",
  465. cType5: "总量占比",
  466. cType6: "全部",
  467. skType: 0,
  468. tType: 0,
  469. courseType: 0,
  470. oType: false,
  471. oType1: false,
  472. shType: false,
  473. allUser: 0,
  474. loginCountMonthArray: [],
  475. countLogin: 0,
  476. loginCountYearArray: {},
  477. userOnlineTime: "",
  478. teacherOnlineTime: [],
  479. studentOnlineTime: [],
  480. courseArray: [],
  481. workNumList: [],
  482. taskCount: 0,
  483. workCount: 0,
  484. isCourseCount: 0,
  485. allCourseCount: 0,
  486. allArray: [],
  487. gradeArray: [],
  488. themeArray: [],
  489. subjectArray: [],
  490. courseNumberArray: [],
  491. lightJson: {
  492. teachers: 0,
  493. students: 0,
  494. upCourseTeachers: 0, //上传课程
  495. upSCourseTeachers: 0, //上传项目
  496. gCourseTeachers: 0, //协同课程
  497. toolTeachers: 0, //使用工具
  498. commentTeachers: 0, //交流
  499. courseStudents: 0, //参与课程
  500. scourseStudents: 0, //参与项目
  501. toolStudents: 0, //使用工具
  502. gsCourseStudents: 0, //协同课程
  503. commentStudents: 0, //协同交流
  504. },
  505. weekCourse2: [],
  506. allTimeYearArray: {},
  507. teacherLoginCount: 0,
  508. studentLoginCount: 0,
  509. resultSubject: [],
  510. };
  511. },
  512. mounted() {
  513. this.getData();
  514. },
  515. methods: {
  516. openCourse(cid) {
  517. window.topU.postMessage({ cid: cid, screenType: "3" }, "*");
  518. },
  519. otherEchart() {
  520. this.oType = !this.oType;
  521. },
  522. otherEchart1() {
  523. this.oType1 = !this.oType1;
  524. },
  525. shEchart() {
  526. this.shType = !this.shType;
  527. },
  528. format(percentage) {
  529. return percentage + "%";
  530. },
  531. getMonth() {
  532. // 获取当前时间
  533. var currentDate = new Date();
  534. // 获取本月的年份和月份
  535. var currentYear = currentDate.getFullYear();
  536. var currentMonth = currentDate.getMonth() + 1; // 月份从0开始,需要加1
  537. // 获取上个月的年份和月份
  538. var lastMonthYear, lastMonth;
  539. if (currentMonth === 1) {
  540. lastMonthYear = currentYear - 1;
  541. lastMonth = 12;
  542. } else {
  543. lastMonthYear = currentYear;
  544. lastMonth = currentMonth - 1;
  545. }
  546. // 获取本月的第一天和最后一天的日期
  547. var firstDayOfMonth = new Date(currentYear, currentMonth - 1, 1);
  548. var lastDayOfMonth = new Date(currentYear, currentMonth, 0);
  549. // 获取上个月的第一天和最后一天的日期
  550. var firstDayOfLastMonth = new Date(lastMonthYear, lastMonth - 1, 1);
  551. var lastDayOfLastMonth = new Date(lastMonthYear, lastMonth, 0);
  552. // 构建本月日期的数组
  553. var currentMonthDates = [];
  554. for (var i = 1; i <= lastDayOfMonth.getDate(); i++) {
  555. let a = new Date(currentYear, currentMonth - 1, i);
  556. currentMonthDates.push(
  557. a.getFullYear() + "-" + (a.getMonth() + 1) + "-" + a.getDate()
  558. );
  559. }
  560. // 构建上个月日期的数组
  561. var lastMonthDates = [];
  562. for (
  563. var j = firstDayOfLastMonth.getDate();
  564. j <= lastDayOfLastMonth.getDate();
  565. j++
  566. ) {
  567. let a = new Date(lastMonthYear, lastMonth - 1, j);
  568. lastMonthDates.push(
  569. a.getFullYear() + "-" + (a.getMonth() + 1) + "-" + a.getDate()
  570. );
  571. }
  572. return {
  573. lastWeek: lastMonthDates, //上月
  574. toWeek: currentMonthDates, //本月
  575. };
  576. },
  577. getData() {
  578. this.isLoading = true;
  579. let params = [
  580. {
  581. oid: this.oid,
  582. org: this.org,
  583. type: '1'
  584. },
  585. ];//selectDataBoardSchoolNew
  586. this.ajax
  587. .post(this.$store.state.api + "getDataBoardSchoolNew", params)
  588. .then((res) => {
  589. this.isLoading = false;
  590. let _grade = res.data[0]; //年级
  591. let _subject = JSON.parse(JSON.stringify(res.data[1])); //学科
  592. let _theme = res.data[2]; //主题
  593. this.allUser = res.data[3][0].count; //总人数
  594. let _loginCount = res.data[4]; //统计半年的登录用户
  595. let loginCountMonthArray = [];
  596. const date = new Date();
  597. var Month = date.getMonth() + 1;
  598. var Year = date.getFullYear();
  599. for (var i = Month; i > Month - 6; i--) {
  600. if (i <= 0) {
  601. loginCountMonthArray.push({
  602. Year: Year - 1,
  603. Month: 12 + i,
  604. user: 0,
  605. });
  606. } else {
  607. loginCountMonthArray.push({
  608. Month: i,
  609. Year: Year,
  610. user: 0,
  611. });
  612. }
  613. }
  614. loginCountMonthArray = loginCountMonthArray.reverse();
  615. for (var i = 0; i < _loginCount.length; i++) {
  616. let _date = new Date(_loginCount[i].time);
  617. var _month = _date.getMonth() + 1;
  618. var _year = _date.getFullYear();
  619. for (var j = 0; j < loginCountMonthArray.length; j++) {
  620. if (
  621. _month == loginCountMonthArray[j].Month &&
  622. _year == loginCountMonthArray[j].Year
  623. ) {
  624. // loginCountMonthArray[j].user++
  625. loginCountMonthArray[j].user += _loginCount[i].usernum;
  626. break;
  627. }
  628. }
  629. }
  630. this.loginCountMonthArray = loginCountMonthArray;
  631. let countLogin = res.data[5][0].count; //总的登录频次
  632. this.countLogin = countLogin;
  633. let loginCountYear = res.data[6]; //一年的登录频次
  634. let loginCountYearArray = {};
  635. let timeArray = [];
  636. for (var i = 0; i < loginCountYear.length; i++) {
  637. timeArray.push({ time: loginCountYear[i].time, num: loginCountYear[i].usernum });
  638. }
  639. timeArray.forEach((item) => {
  640. loginCountYearArray[item.time] = loginCountYearArray[item.time] + item.num || item.num;
  641. });
  642. // for (var i = Month; i > Month - 12; i--) {
  643. // if (i <= 0) {
  644. // loginCountYearArray.push({
  645. // Year: Year - 1,
  646. // Month: 12 + i,
  647. // mon: 0,
  648. // tue: 0,
  649. // wed: 0,
  650. // thur: 0,
  651. // fri: 0,
  652. // sat: 0,
  653. // sun: 0,
  654. // })
  655. // } else {
  656. // loginCountYearArray.push({
  657. // Month: i,
  658. // Year: Year,
  659. // mon: 0,
  660. // tue: 0,
  661. // wed: 0,
  662. // thur: 0,
  663. // fri: 0,
  664. // sat: 0,
  665. // sun: 0,
  666. // })
  667. // }
  668. // }
  669. // loginCountYearArray = loginCountYearArray.reverse()
  670. // for (var i = 0; i < loginCountYear.length; i++) {
  671. // let _date = new Date(loginCountYear[i].time)
  672. // var _month = _date.getMonth() + 1
  673. // var _year = _date.getFullYear()
  674. // var _day = _date.getDay()
  675. // let dayArray = ['sun', 'mon', 'tue', 'wed', 'thur', 'fri', 'sat']
  676. // for (var j = 0; j < loginCountYearArray.length; j++) {
  677. // if (_month == loginCountYearArray[j].Month && _year == loginCountYearArray[j].Year) {
  678. // loginCountYearArray[j][dayArray[_day]]+=loginCountYear[i].usernum
  679. // break;
  680. // }
  681. // }
  682. // }
  683. this.loginCountYearArray = loginCountYearArray;
  684. let _userOnlineTime = res.data[7][0].time; //在线时长 所有用户
  685. let _teacherOnlineTime = res.data[8][0].time; //在线时长 老师
  686. let _studentOnlineTime = res.data[9][0].time; //在线时长 学生
  687. _userOnlineTime = (_userOnlineTime / 60 / 60).toFixed(0);
  688. _teacherOnlineTime = (_teacherOnlineTime / 60 / 60).toFixed(0);
  689. _studentOnlineTime = (_studentOnlineTime / 60 / 60).toFixed(0);
  690. this.userOnlineTime = _userOnlineTime;
  691. this.teacherOnlineTime = _teacherOnlineTime;
  692. this.studentOnlineTime = _studentOnlineTime;
  693. let _course = res.data[10]; //课程
  694. let _gradeCourse = 0; //各年级上传课程
  695. let _subjectCourse = 0; //各学科上传课程
  696. let _courseArray = [];
  697. // _subject.push({ name: '其他' })
  698. for (var i = 0; i < _grade.length; i++) {
  699. _courseArray.push({
  700. name: _grade[i].name,
  701. id: _grade[i].id,
  702. courseid: [],
  703. subject: [],
  704. });
  705. for (var z = 0; z < _course.length; z++) {
  706. if (_course[z].typeid == _grade[i].id) {
  707. _gradeCourse++;
  708. if (
  709. _courseArray[i].courseid.indexOf(_course[z].courseid) === -1
  710. ) {
  711. _courseArray[i].courseid.push(_course[z].courseid);
  712. }
  713. }
  714. }
  715. for (var j = 0; j < _subject.length; j++) {
  716. _courseArray[i].subject.push({
  717. name: _subject[j].name,
  718. id: _subject[j].id,
  719. course: 0,
  720. });
  721. for (var z = 0; z < _course.length; z++) {
  722. if (
  723. _course[z].typeid == _subject[j].id &&
  724. _courseArray[i].courseid.indexOf(_course[z].courseid) !== -1
  725. ) {
  726. _courseArray[i].subject[j].course++;
  727. }
  728. }
  729. }
  730. let sum = 0;
  731. for (var j = 0; j < _courseArray[i].subject.length - 1; j++) {
  732. sum += _courseArray[i].subject[j].course;
  733. }
  734. // _courseArray[i].subject[_courseArray[i].subject.length - 1].course = (_courseArray[i].courseid.length - sum) < 0 ? 0 : _courseArray[i].courseid.length - sum
  735. }
  736. for (var j = 0; j < _subject.length; j++) {
  737. for (var z = 0; z < _course.length; z++) {
  738. if (_course[z].typeid == _subject[j].id) {
  739. _subjectCourse++;
  740. }
  741. }
  742. }
  743. // this.gradeCourse = _gradeCourse / _grade.length
  744. // this.subjectCourse = _subjectCourse / _subject.length
  745. this.courseArray = _courseArray;
  746. let _workCourse = res.data[11]; //带作业的课程
  747. let _taskCount = 0; //任务数量
  748. var wList = [];
  749. for (var i = 0; i < _workCourse.length; i++) {
  750. if (!wList[_workCourse[i].courseId]) {
  751. wList[_workCourse[i].courseId] = {
  752. cid: _workCourse[i].courseId,
  753. title: _workCourse[i].title,
  754. task: 0,
  755. work: _workCourse[i].pcount,
  756. };
  757. let chapters = JSON.parse(_workCourse[i].chapters);
  758. for (var j = 0; j < chapters.length; j++) {
  759. if (wList[_workCourse[i].courseId].task == 0) {
  760. wList[_workCourse[i].courseId].task =
  761. chapters[j].chapterInfo[0].taskJson.length;
  762. } else {
  763. wList[_workCourse[i].courseId].task +=
  764. chapters[j].chapterInfo[0].taskJson.length;
  765. }
  766. _taskCount += chapters[j].chapterInfo[0].taskJson.length;
  767. }
  768. }
  769. }
  770. // for (var i = 0; i < _workCourse.length; i++) {
  771. // let a = Object.keys(wList);
  772. // for (var j = 0; j < Object.keys(wList).length; j++) {
  773. // if (_workCourse[i].courseId == wList[a[j]].cid && _workCourse[i].id) {
  774. // wList[a[j]].work++;
  775. // }
  776. // }
  777. // }
  778. var workNumList = Object.values(wList).map((item) => [
  779. item.task,
  780. item.work,
  781. item.title,
  782. item.cid,
  783. ]);
  784. this.workNumList = workNumList;
  785. this.taskCount = _taskCount;
  786. this.workCount = _workCourse.length;
  787. this.isCourseCount = res.data[12][0].count; //课程开展总数
  788. this.allCourseCount = res.data[13][0].count; //课程总数
  789. let _gradeArray = [];
  790. let _subjectArray = [];
  791. let _themeArray = [];
  792. for (var i = 0; i < _grade.length; i++) {
  793. _gradeArray.push({
  794. name: _grade[i].name,
  795. typeid: _grade[i].id,
  796. course: 0,
  797. array: [],
  798. });
  799. for (var z = 0; z < _course.length; z++) {
  800. if (_course[z].typeid == _grade[i].id) {
  801. _gradeArray[i].course++;
  802. _gradeArray[i].array.push(_course[z].courseid);
  803. }
  804. }
  805. }
  806. for (var i = 0; i < _subject.length; i++) {
  807. _subjectArray.push({
  808. name: _subject[i].name,
  809. typeid: _subject[i].id,
  810. course: 0,
  811. array: [],
  812. });
  813. for (var z = 0; z < _course.length; z++) {
  814. if (_course[z].typeid == _subject[i].id) {
  815. _subjectArray[i].course++;
  816. _subjectArray[i].array.push(_course[z].courseid);
  817. }
  818. }
  819. }
  820. for (var i = 0; i < _theme.length; i++) {
  821. _themeArray.push({
  822. name: _theme[i].name,
  823. typeid: _theme[i].id,
  824. course: 0,
  825. array: [],
  826. });
  827. for (var z = 0; z < _course.length; z++) {
  828. if (_course[z].typeid == _theme[i].id) {
  829. _themeArray[i].course++;
  830. _themeArray[i].array.push(_course[z].courseid);
  831. }
  832. }
  833. }
  834. this.gradeArray = _gradeArray;
  835. this.subjectArray = _subjectArray;
  836. this.themeArray = _themeArray;
  837. this.allArray = [..._gradeArray, ..._subjectArray, ..._themeArray];
  838. this.typeChange();
  839. this.lightJson.teachers = res.data[14][0].count; //教师总数
  840. this.lightJson.students = res.data[15][0].count; //学生总数
  841. this.lightJson.upCourseTeachers = res.data[16][0].count; //上传课程老师数量
  842. this.lightJson.upSCourseTeachers = res.data[17][0].count; //上传项目老师数量
  843. this.lightJson.toolTeachers = res.data[18][0].count; //使用工具老师数量
  844. this.lightJson.gCourseTeachers = res.data[19][0].count; //协同课程老师数量
  845. this.lightJson.commentTeachers = res.data[20][0].count; //互动交流老师数量
  846. this.lightJson.courseStudents = res.data[21][0].count; //参与课程学生数量
  847. this.lightJson.scourseStudents = res.data[22][0].count; //参与项目学生数量
  848. this.lightJson.toolStudents = res.data[23][0].count; //使用工具数量
  849. this.lightJson.gsCourseStudents = res.data[24][0].count; //获取协同项目数量
  850. this.lightJson.commentStudents = res.data[25][0].count; //互动交流学生数量
  851. var today = new Date();
  852. var lastDayOfWeek = new Date(
  853. today.setDate(today.getDate() - today.getDay() + 7)
  854. ); //本周周日
  855. let weekArray = {
  856. lastWeek: [], //上周
  857. toWeek: [], //本周
  858. };
  859. // for (var i = 0; i < 14; i++) {
  860. // let time = JSON.parse(JSON.stringify(lastDayOfWeek))
  861. // let time2 = new Date(time)
  862. // var a = new Date(time2.setDate(time2.getDate() - i));
  863. // if (i > 6) {
  864. // weekArray.lastWeek.push(a.getFullYear() + '-' + (a.getMonth() + 1) + '-' + a.getDate());
  865. // } else {
  866. // weekArray.toWeek.push(a.getFullYear() + '-' + (a.getMonth() + 1) + '-' + a.getDate());
  867. // }
  868. // }
  869. weekArray = this.getMonth();
  870. let weekCourse = [];
  871. let weekCourse2 = [];
  872. let lastWeekCouseCount = 0;
  873. let toWeekCouseCount = 0;
  874. for (var z = 0; z < _course.length; z++) {
  875. let _date = new Date(weekArray.lastWeek[0]);
  876. console.log(_date);
  877. if (
  878. new Date(_course[z].create_at) > _date &&
  879. _course[z].pid == "34628934-d02f-11ec-8c78-005056b86db5"
  880. ) {
  881. weekCourse.push(_course[z]);
  882. var a = new Date(_course[z].create_at);
  883. var string =
  884. a.getFullYear() + "-" + (a.getMonth() + 1) + "-" + a.getDate();
  885. if (weekArray.lastWeek.indexOf(string) != -1) {
  886. lastWeekCouseCount++;
  887. } else {
  888. toWeekCouseCount++;
  889. }
  890. // if (weekArray.toWeek.indexOf(string) == -1) {
  891. // lastWeekCouseCount++
  892. // }
  893. }
  894. }
  895. let lastCourseidWeek = [];
  896. let toCourseidWeek = [];
  897. for (var i = 0; i < _grade.length; i++) {
  898. weekCourse2.push({
  899. name: _grade[i].name,
  900. id: _grade[i].id,
  901. lastCourse: 0,
  902. toCourse: 0,
  903. totalCourse: 0,
  904. });
  905. for (var z = 0; z < weekCourse.length; z++) {
  906. if (weekCourse[z].typeid == _grade[i].id) {
  907. var a = new Date(weekCourse[z].create_at);
  908. var string =
  909. a.getFullYear() +
  910. "-" +
  911. (a.getMonth() + 1) +
  912. "-" +
  913. a.getDate();
  914. if (weekArray.lastWeek.indexOf(string) != -1) {
  915. weekCourse2[i].lastCourse++;
  916. if (lastCourseidWeek.indexOf(weekCourse[z].courseid) === -1) {
  917. lastCourseidWeek.push(weekCourse[z].courseid);
  918. }
  919. } else {
  920. weekCourse2[i].toCourse++;
  921. if (toCourseidWeek.indexOf(weekCourse[z].courseid) === -1) {
  922. toCourseidWeek.push(weekCourse[z].courseid);
  923. }
  924. }
  925. // if (weekArray.toWeek.indexOf(string) == -1) {
  926. // weekCourse2[i].lastCourse++
  927. // if (lastCourseidWeek.indexOf(weekCourse[z].courseid) === -1) {
  928. // lastCourseidWeek.push(weekCourse[z].courseid)
  929. // }
  930. // }
  931. // weekCourse2[i].toCourse++
  932. // if (toCourseidWeek.indexOf(weekCourse[z].courseid) === -1) {
  933. // toCourseidWeek.push(weekCourse[z].courseid)
  934. // }
  935. }
  936. }
  937. }
  938. // weekCourse2.push({
  939. // name: '其他',
  940. // id: '',
  941. // lastCourse: (lastWeekCouseCount - lastCourseidWeek.length) > 0 ? (lastWeekCouseCount - lastCourseidWeek.length) : 0,
  942. // toCourse: (toWeekCouseCount - toCourseidWeek.length) > 0 ? (toWeekCouseCount - toCourseidWeek.length) : 0,
  943. // })
  944. this.weekCourse2 = weekCourse2;
  945. let allTimeYear = res.data[26]; //累计时长热力图
  946. this.teacherLoginCount = res.data[27][0].count; //教师登录频次柱状图
  947. this.studentLoginCount = res.data[28][0].count; //学生登录频次柱状图
  948. let allTimeYearArray = {};
  949. let timeArray1 = [];
  950. for (var i = 0; i < allTimeYear.length; i++) {
  951. timeArray1.push({
  952. vtime: allTimeYear[i].vtime,
  953. time: allTimeYear[i].time,
  954. });
  955. }
  956. timeArray1.forEach((item) => {
  957. allTimeYearArray[item.vtime] = parseInt((item.time / 60 / 60).toFixed(0))
  958. });
  959. // for (var i = Month; i > Month - 12; i--) {
  960. // if (i <= 0) {
  961. // allTimeYearArray.push({
  962. // Year: Year - 1,
  963. // Month: 12 + i,
  964. // mon: 0,
  965. // tue: 0,
  966. // wed: 0,
  967. // thur: 0,
  968. // fri: 0,
  969. // sat: 0,
  970. // sun: 0,
  971. // })
  972. // } else {
  973. // allTimeYearArray.push({
  974. // Month: i,
  975. // Year: Year,
  976. // mon: 0,
  977. // tue: 0,
  978. // wed: 0,
  979. // thur: 0,
  980. // fri: 0,
  981. // sat: 0,
  982. // sun: 0,
  983. // })
  984. // }
  985. // }
  986. // allTimeYearArray = allTimeYearArray.reverse()
  987. // for (var i = 0; i < allTimeYear.length; i++) {
  988. // let _date = new Date(allTimeYear[i].create_at)
  989. // var _month = _date.getMonth() + 1
  990. // var _year = _date.getFullYear()
  991. // var _day = _date.getDay()
  992. // let dayArray = ['sun', 'mon', 'tue', 'wed', 'thur', 'fri', 'sat']
  993. // for (var j = 0; j < allTimeYearArray.length; j++) {
  994. // if (_month == allTimeYearArray[j].Month && _year == allTimeYearArray[j].Year) {
  995. // allTimeYearArray[j][dayArray[_day]] += parseInt((parseInt(allTimeYear[i].time) / 3600).toFixed(0));
  996. // break;
  997. // }
  998. // }
  999. // }
  1000. this.allTimeYearArray = allTimeYearArray;
  1001. let CourseLabel = res.data[29]; //带分类的课程
  1002. let _subject2 = JSON.parse(JSON.stringify(res.data[1]));
  1003. const resultSubject = [];
  1004. for (let i = 0; i < _subject2.length - 1; i++) {
  1005. for (let j = i + 1; j < _subject2.length; j++) {
  1006. resultSubject.push({
  1007. id: [_subject2[i].id, _subject2[j].id],
  1008. name: [_subject2[i].name, _subject2[j].name],
  1009. count: 0,
  1010. });
  1011. }
  1012. }
  1013. for (var i = 0; i < CourseLabel.length; i++) {
  1014. let array = CourseLabel[i].type.split(",");
  1015. for (var j = 0; j < resultSubject.length; j++) {
  1016. if (this.checkArrayInclusion(resultSubject[j].id, array)) {
  1017. resultSubject[j].count++;
  1018. }
  1019. }
  1020. }
  1021. let resultSubject2 = [];
  1022. for (var i = 0; i < resultSubject.length; i++) {
  1023. let el = resultSubject[i];
  1024. if (el.count > 0) {
  1025. resultSubject2.push([el.name[0], el.name[1], el.count]);
  1026. }
  1027. }
  1028. this.resultSubject = resultSubject2;
  1029. console.log(resultSubject);
  1030. this.$forceUpdate();
  1031. })
  1032. .catch((err) => {
  1033. this.isLoading = false;
  1034. this.$message.error(
  1035. "因加载数据量过大,服务器统计异常,请联系管理员。"
  1036. );
  1037. console.error(err);
  1038. });
  1039. },
  1040. checkArrayInclusion(arr1, arr2) {
  1041. return arr1.every((item) => arr2.includes(item));
  1042. },
  1043. typeChange() {
  1044. // if (this.cType === '') {
  1045. // this.courseNumberArray = this.allArray
  1046. // } else
  1047. if (this.cType === "grade") {
  1048. this.courseNumberArray = this.gradeArray;
  1049. } else if (this.cType === "theme") {
  1050. this.courseNumberArray = this.themeArray;
  1051. } else if (this.cType === "subject") {
  1052. this.courseNumberArray = this.subjectArray;
  1053. }
  1054. this.$forceUpdate();
  1055. },
  1056. },
  1057. };
  1058. </script>
  1059. <style scoped>
  1060. .body1 {
  1061. width: 100%;
  1062. height: 100%;
  1063. display: flex;
  1064. padding: 20px;
  1065. box-sizing: border-box;
  1066. overflow: hidden;
  1067. position: relative;
  1068. }
  1069. .left {
  1070. width: calc(100% / 4 * 1);
  1071. height: 100%;
  1072. }
  1073. .left>.top {
  1074. width: 100%;
  1075. height: calc(100% / 5 * 2.7 - 5px);
  1076. /* background: #fff; */
  1077. border-radius: 5px;
  1078. margin: 0 0 10px 0;
  1079. background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(224, 234, 251, 0.8) 100%);
  1080. border: 2px solid #fff;
  1081. box-sizing: border-box;
  1082. }
  1083. .left>.bottom {
  1084. width: 100%;
  1085. height: calc(100% / 5 * 2.3 - 5px);
  1086. /* background: #fff; */
  1087. border-radius: 5px;
  1088. background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(224, 234, 251, 0.8) 100%);
  1089. border: 2px solid #fff;
  1090. box-sizing: border-box;
  1091. }
  1092. .center {
  1093. width: calc(100% / 4 * 2 - 20px);
  1094. height: 100%;
  1095. margin: 0 10px;
  1096. }
  1097. .center>.top {
  1098. width: 100%;
  1099. height: calc(100% / 5 * 2.7 - 5px);
  1100. /* background: #fff; */
  1101. border-radius: 5px;
  1102. margin: 0 0 10px 0;
  1103. background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(224, 234, 251, 0.8) 100%);
  1104. border: 2px solid #fff;
  1105. box-sizing: border-box;
  1106. }
  1107. .center>.bottom {
  1108. width: 100%;
  1109. height: calc(100% / 5 * 2.3 - 5px);
  1110. /* background: #fff; */
  1111. border-radius: 5px;
  1112. background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(224, 234, 251, 0.8) 100%);
  1113. border: 2px solid #fff;
  1114. box-sizing: border-box;
  1115. }
  1116. .right {
  1117. width: calc(100% / 4 * 1);
  1118. height: 100%;
  1119. }
  1120. .right>.top {
  1121. width: 100%;
  1122. height: calc(100% / 5 * 2.7 - 5px);
  1123. /* background: #fff; */
  1124. border-radius: 5px;
  1125. margin: 0 0 10px 0;
  1126. background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(224, 234, 251, 0.8) 100%);
  1127. border: 2px solid #fff;
  1128. box-sizing: border-box;
  1129. }
  1130. .right>.bottom {
  1131. width: 100%;
  1132. height: calc(100% / 5 * 2.3 - 5px);
  1133. /* background: #fff; */
  1134. border-radius: 5px;
  1135. background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(224, 234, 251, 0.8) 100%);
  1136. border: 2px solid #fff;
  1137. box-sizing: border-box;
  1138. }
  1139. .titleBox {
  1140. height: 40px;
  1141. display: flex;
  1142. align-items: center;
  1143. padding: 0 15px;
  1144. box-sizing: border-box;
  1145. width: 100%;
  1146. position: relative;
  1147. }
  1148. .titleBox::after {
  1149. content: '';
  1150. position: absolute;
  1151. height: 2px;
  1152. width: calc(100% - 30px);
  1153. bottom: 0;
  1154. background: linear-gradient(90deg, rgba(54, 129, 252, 0.6) 0%, rgba(54, 129, 252, 0.1) 100%);
  1155. }
  1156. .title {
  1157. color: #060e17;
  1158. margin-right: 25px;
  1159. font-weight: 700;
  1160. display: flex;
  1161. align-items: center;
  1162. }
  1163. .title::before {
  1164. content: '';
  1165. background-image: url('../../../../assets/icon/test/data_title_icon.png');
  1166. background-size: 100% 100%;
  1167. width: 20px;
  1168. height: 20px;
  1169. margin-right: 5px;
  1170. }
  1171. .dataBox {
  1172. height: calc(100% - 40px);
  1173. width: 100%;
  1174. }
  1175. .greenBG {
  1176. background: linear-gradient(180deg,
  1177. rgb(211, 246, 228, 0.2) 0%,
  1178. rgb(23, 196, 105, 0.3) 100%);
  1179. }
  1180. .depth_box {
  1181. display: flex;
  1182. flex-wrap: wrap;
  1183. height: 100%;
  1184. width: 95%;
  1185. margin: 0 auto;
  1186. overflow: hidden;
  1187. justify-content: space-between;
  1188. }
  1189. .depth {
  1190. width: calc(100% / 5 - 10px);
  1191. display: flex;
  1192. flex-direction: column;
  1193. align-items: center;
  1194. justify-content: center;
  1195. }
  1196. .depth>span:nth-child(1) {
  1197. font-size: 14px;
  1198. font-weight: 700;
  1199. margin: 0 0 10px;
  1200. }
  1201. .depth>div:nth-child(1) {}
  1202. .course_box {
  1203. display: flex;
  1204. height: 50%;
  1205. width: 95%;
  1206. margin: 0 auto;
  1207. }
  1208. .course_box .info_box {
  1209. height: 100%;
  1210. width: 100px;
  1211. flex-direction: column;
  1212. margin: 0;
  1213. flex-wrap: nowrap;
  1214. }
  1215. .course_box_p {
  1216. width: calc(100% - 100px);
  1217. }
  1218. .selectBox {
  1219. width: 80px;
  1220. margin-left: 10px;
  1221. }
  1222. .selectBox>>>.el-input__inner {
  1223. height: 30px;
  1224. line-height: 30px;
  1225. border: 1px solid #3681FC;
  1226. }
  1227. .selectBox>>>.el-input__icon {
  1228. line-height: 30px;
  1229. }
  1230. .teaMiddle {
  1231. width: calc(100% / 2 - 10px);
  1232. height: 60px;
  1233. border-radius: 8px;
  1234. /* border: 1px solid #e0eafb; */
  1235. display: flex;
  1236. flex-direction: column;
  1237. align-items: flex-start;
  1238. justify-content: center;
  1239. padding: 0 10px;
  1240. margin: 0 10px;
  1241. }
  1242. .teaMiddle {
  1243. width: calc(100% / 3 - 10px);
  1244. }
  1245. .timeDiv {
  1246. display: flex;
  1247. flex-direction: row;
  1248. flex-wrap: nowrap;
  1249. align-items: center;
  1250. margin: 0 0 0 15px;
  1251. }
  1252. .timeDiv>div {
  1253. margin-right: 10px;
  1254. cursor: pointer;
  1255. }
  1256. .isClick {
  1257. /* color: #1684fc;
  1258. border-bottom: 2px solid #1684fc; */
  1259. box-sizing: border-box;
  1260. }
  1261. .noClick {
  1262. font-weight: 500;
  1263. opacity: .6;
  1264. }
  1265. .otherCss {
  1266. display: flex;
  1267. flex-direction: row;
  1268. flex-wrap: nowrap;
  1269. align-items: center;
  1270. justify-content: flex-end;
  1271. }
  1272. .otherImg {
  1273. width: 20px;
  1274. height: 20px;
  1275. margin: 0 10px;
  1276. cursor: pointer;
  1277. }
  1278. .otherImg>img {
  1279. width: 100%;
  1280. height: 100%;
  1281. }
  1282. .info_box {
  1283. display: flex;
  1284. flex-wrap: wrap;
  1285. align-items: center;
  1286. justify-content: space-between;
  1287. width: 90%;
  1288. margin: 0 auto;
  1289. }
  1290. .info_box>.info2,
  1291. .info_box>.info3,
  1292. .info_box>.info {
  1293. width: calc(50% - 10px);
  1294. display: flex;
  1295. flex-direction: column-reverse;
  1296. flex-wrap: nowrap;
  1297. height: 60px;
  1298. justify-content: center;
  1299. /* align-items: center; */
  1300. padding: 0 10px;
  1301. box-sizing: border-box;
  1302. margin-bottom: 10px;
  1303. border-radius: 5px;
  1304. }
  1305. .info_box>.info2 {
  1306. width: calc(100% / 4 - 10px);
  1307. /* align-items: flex-end; */
  1308. }
  1309. .info_box>.info3 {
  1310. width: 100%;
  1311. margin-bottom: 5px;
  1312. }
  1313. .info_box>.info2>span:nth-child(1),
  1314. .info_box>.info3>span:nth-child(1),
  1315. .info_box>.info>span:nth-child(1) {
  1316. font-size: 12px;
  1317. /* margin: 0 0 0 20px; */
  1318. color: #565e6a;
  1319. /* width: 60px; */
  1320. white-space: pre-wrap;
  1321. word-break: break-all;
  1322. }
  1323. .info_box>.info2>span:nth-child(2),
  1324. .info_box>.info3>span:nth-child(2),
  1325. .info_box>.info>span:nth-child(2) {
  1326. font-size: 24px;
  1327. font-weight: 700;
  1328. }
  1329. .blueBG {
  1330. /* background: rgb(243, 248, 253);
  1331. border: 2px solid rgb(234, 246, 255); */
  1332. }
  1333. .tCircleC {
  1334. display: flex;
  1335. align-items: center;
  1336. }
  1337. .tCircleBox {
  1338. display: flex;
  1339. align-items: center;
  1340. }
  1341. .tCircleBox>span+span {
  1342. margin-left: 5px;
  1343. }
  1344. .tCircleBox+.tCircleBox {
  1345. margin-left: 10px;
  1346. }
  1347. .tCircleBox .tCircle {
  1348. width: 10px;
  1349. height: 10px;
  1350. border-radius: 50%;
  1351. display: inline-block;
  1352. }
  1353. .tCircleBox .tt {
  1354. background: #53c95f;
  1355. }
  1356. .tCircleBox .ts {
  1357. background: #106bff;
  1358. }
  1359. </style>