index.vue 48 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439
  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.parent.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. },
  584. ];
  585. this.ajax
  586. .post(this.$store.state.api + "selectDataBoardSchoolNew", params)
  587. .then((res) => {
  588. this.isLoading = false;
  589. let _grade = res.data[0]; //年级
  590. let _subject = JSON.parse(JSON.stringify(res.data[1])); //学科
  591. let _theme = res.data[2]; //主题
  592. this.allUser = res.data[3][0].count; //总人数
  593. let _loginCount = res.data[4]; //统计半年的登录用户
  594. let loginCountMonthArray = [];
  595. const date = new Date();
  596. var Month = date.getMonth() + 1;
  597. var Year = date.getFullYear();
  598. for (var i = Month; i > Month - 6; i--) {
  599. if (i <= 0) {
  600. loginCountMonthArray.push({
  601. Year: Year - 1,
  602. Month: 12 + i,
  603. user: 0,
  604. });
  605. } else {
  606. loginCountMonthArray.push({
  607. Month: i,
  608. Year: Year,
  609. user: 0,
  610. });
  611. }
  612. }
  613. loginCountMonthArray = loginCountMonthArray.reverse();
  614. for (var i = 0; i < _loginCount.length; i++) {
  615. let _date = new Date(_loginCount[i].time);
  616. var _month = _date.getMonth() + 1;
  617. var _year = _date.getFullYear();
  618. for (var j = 0; j < loginCountMonthArray.length; j++) {
  619. if (
  620. _month == loginCountMonthArray[j].Month &&
  621. _year == loginCountMonthArray[j].Year
  622. ) {
  623. // loginCountMonthArray[j].user++
  624. loginCountMonthArray[j].user += _loginCount[i].usernum;
  625. break;
  626. }
  627. }
  628. }
  629. this.loginCountMonthArray = loginCountMonthArray;
  630. let countLogin = res.data[5][0].count; //总的登录频次
  631. this.countLogin = countLogin;
  632. let loginCountYear = res.data[6]; //一年的登录频次
  633. let loginCountYearArray = {};
  634. let timeArray = [];
  635. for (var i = 0; i < loginCountYear.length; i++) {
  636. timeArray.push({ time: loginCountYear[i].time, num: loginCountYear[i].usernum });
  637. }
  638. timeArray.forEach((item) => {
  639. loginCountYearArray[item.time] = loginCountYearArray[item.time] + item.num || item.num;
  640. });
  641. // for (var i = Month; i > Month - 12; i--) {
  642. // if (i <= 0) {
  643. // loginCountYearArray.push({
  644. // Year: Year - 1,
  645. // Month: 12 + i,
  646. // mon: 0,
  647. // tue: 0,
  648. // wed: 0,
  649. // thur: 0,
  650. // fri: 0,
  651. // sat: 0,
  652. // sun: 0,
  653. // })
  654. // } else {
  655. // loginCountYearArray.push({
  656. // Month: i,
  657. // Year: Year,
  658. // mon: 0,
  659. // tue: 0,
  660. // wed: 0,
  661. // thur: 0,
  662. // fri: 0,
  663. // sat: 0,
  664. // sun: 0,
  665. // })
  666. // }
  667. // }
  668. // loginCountYearArray = loginCountYearArray.reverse()
  669. // for (var i = 0; i < loginCountYear.length; i++) {
  670. // let _date = new Date(loginCountYear[i].time)
  671. // var _month = _date.getMonth() + 1
  672. // var _year = _date.getFullYear()
  673. // var _day = _date.getDay()
  674. // let dayArray = ['sun', 'mon', 'tue', 'wed', 'thur', 'fri', 'sat']
  675. // for (var j = 0; j < loginCountYearArray.length; j++) {
  676. // if (_month == loginCountYearArray[j].Month && _year == loginCountYearArray[j].Year) {
  677. // loginCountYearArray[j][dayArray[_day]]+=loginCountYear[i].usernum
  678. // break;
  679. // }
  680. // }
  681. // }
  682. this.loginCountYearArray = loginCountYearArray;
  683. let _userOnlineTime = res.data[7][0].time; //在线时长 所有用户
  684. let _teacherOnlineTime = res.data[8][0].time; //在线时长 老师
  685. let _studentOnlineTime = res.data[9][0].time; //在线时长 学生
  686. _userOnlineTime = (_userOnlineTime / 60 / 60).toFixed(0);
  687. _teacherOnlineTime = (_teacherOnlineTime / 60 / 60).toFixed(0);
  688. _studentOnlineTime = (_studentOnlineTime / 60 / 60).toFixed(0);
  689. this.userOnlineTime = _userOnlineTime;
  690. this.teacherOnlineTime = _teacherOnlineTime;
  691. this.studentOnlineTime = _studentOnlineTime;
  692. let _course = res.data[10]; //课程
  693. let _gradeCourse = 0; //各年级上传课程
  694. let _subjectCourse = 0; //各学科上传课程
  695. let _courseArray = [];
  696. // _subject.push({ name: '其他' })
  697. for (var i = 0; i < _grade.length; i++) {
  698. _courseArray.push({
  699. name: _grade[i].name,
  700. id: _grade[i].id,
  701. courseid: [],
  702. subject: [],
  703. });
  704. for (var z = 0; z < _course.length; z++) {
  705. if (_course[z].typeid == _grade[i].id) {
  706. _gradeCourse++;
  707. if (
  708. _courseArray[i].courseid.indexOf(_course[z].courseid) === -1
  709. ) {
  710. _courseArray[i].courseid.push(_course[z].courseid);
  711. }
  712. }
  713. }
  714. for (var j = 0; j < _subject.length; j++) {
  715. _courseArray[i].subject.push({
  716. name: _subject[j].name,
  717. id: _subject[j].id,
  718. course: 0,
  719. });
  720. for (var z = 0; z < _course.length; z++) {
  721. if (
  722. _course[z].typeid == _subject[j].id &&
  723. _courseArray[i].courseid.indexOf(_course[z].courseid) !== -1
  724. ) {
  725. _courseArray[i].subject[j].course++;
  726. }
  727. }
  728. }
  729. let sum = 0;
  730. for (var j = 0; j < _courseArray[i].subject.length - 1; j++) {
  731. sum += _courseArray[i].subject[j].course;
  732. }
  733. // _courseArray[i].subject[_courseArray[i].subject.length - 1].course = (_courseArray[i].courseid.length - sum) < 0 ? 0 : _courseArray[i].courseid.length - sum
  734. }
  735. for (var j = 0; j < _subject.length; j++) {
  736. for (var z = 0; z < _course.length; z++) {
  737. if (_course[z].typeid == _subject[j].id) {
  738. _subjectCourse++;
  739. }
  740. }
  741. }
  742. // this.gradeCourse = _gradeCourse / _grade.length
  743. // this.subjectCourse = _subjectCourse / _subject.length
  744. this.courseArray = _courseArray;
  745. let _workCourse = res.data[11]; //带作业的课程
  746. let _taskCount = 0; //任务数量
  747. var wList = [];
  748. for (var i = 0; i < _workCourse.length; i++) {
  749. if (!wList[_workCourse[i].courseId]) {
  750. wList[_workCourse[i].courseId] = {
  751. cid: _workCourse[i].courseId,
  752. title: _workCourse[i].title,
  753. task: 0,
  754. work: _workCourse[i].pcount,
  755. };
  756. let chapters = JSON.parse(_workCourse[i].chapters);
  757. for (var j = 0; j < chapters.length; j++) {
  758. if (wList[_workCourse[i].courseId].task == 0) {
  759. wList[_workCourse[i].courseId].task =
  760. chapters[j].chapterInfo[0].taskJson.length;
  761. } else {
  762. wList[_workCourse[i].courseId].task +=
  763. chapters[j].chapterInfo[0].taskJson.length;
  764. }
  765. _taskCount += chapters[j].chapterInfo[0].taskJson.length;
  766. }
  767. }
  768. }
  769. // for (var i = 0; i < _workCourse.length; i++) {
  770. // let a = Object.keys(wList);
  771. // for (var j = 0; j < Object.keys(wList).length; j++) {
  772. // if (_workCourse[i].courseId == wList[a[j]].cid && _workCourse[i].id) {
  773. // wList[a[j]].work++;
  774. // }
  775. // }
  776. // }
  777. var workNumList = Object.values(wList).map((item) => [
  778. item.task,
  779. item.work,
  780. item.title,
  781. item.cid,
  782. ]);
  783. this.workNumList = workNumList;
  784. this.taskCount = _taskCount;
  785. this.workCount = _workCourse.length;
  786. this.isCourseCount = res.data[12][0].count; //课程开展总数
  787. this.allCourseCount = res.data[13][0].count; //课程总数
  788. let _gradeArray = [];
  789. let _subjectArray = [];
  790. let _themeArray = [];
  791. for (var i = 0; i < _grade.length; i++) {
  792. _gradeArray.push({
  793. name: _grade[i].name,
  794. typeid: _grade[i].id,
  795. course: 0,
  796. array: [],
  797. });
  798. for (var z = 0; z < _course.length; z++) {
  799. if (_course[z].typeid == _grade[i].id) {
  800. _gradeArray[i].course++;
  801. _gradeArray[i].array.push(_course[z].courseid);
  802. }
  803. }
  804. }
  805. for (var i = 0; i < _subject.length; i++) {
  806. _subjectArray.push({
  807. name: _subject[i].name,
  808. typeid: _subject[i].id,
  809. course: 0,
  810. array: [],
  811. });
  812. for (var z = 0; z < _course.length; z++) {
  813. if (_course[z].typeid == _subject[i].id) {
  814. _subjectArray[i].course++;
  815. _subjectArray[i].array.push(_course[z].courseid);
  816. }
  817. }
  818. }
  819. for (var i = 0; i < _theme.length; i++) {
  820. _themeArray.push({
  821. name: _theme[i].name,
  822. typeid: _theme[i].id,
  823. course: 0,
  824. array: [],
  825. });
  826. for (var z = 0; z < _course.length; z++) {
  827. if (_course[z].typeid == _theme[i].id) {
  828. _themeArray[i].course++;
  829. _themeArray[i].array.push(_course[z].courseid);
  830. }
  831. }
  832. }
  833. this.gradeArray = _gradeArray;
  834. this.subjectArray = _subjectArray;
  835. this.themeArray = _themeArray;
  836. this.allArray = [..._gradeArray, ..._subjectArray, ..._themeArray];
  837. this.typeChange();
  838. this.lightJson.teachers = res.data[14][0].count; //教师总数
  839. this.lightJson.students = res.data[15][0].count; //学生总数
  840. this.lightJson.upCourseTeachers = res.data[16][0].count; //上传课程老师数量
  841. this.lightJson.upSCourseTeachers = res.data[17][0].count; //上传项目老师数量
  842. this.lightJson.toolTeachers = res.data[18][0].count; //使用工具老师数量
  843. this.lightJson.gCourseTeachers = res.data[19][0].count; //协同课程老师数量
  844. this.lightJson.commentTeachers = res.data[20][0].count; //互动交流老师数量
  845. this.lightJson.courseStudents = res.data[21][0].count; //参与课程学生数量
  846. this.lightJson.scourseStudents = res.data[22][0].count; //参与项目学生数量
  847. this.lightJson.toolStudents = res.data[23][0].count; //使用工具数量
  848. this.lightJson.gsCourseStudents = res.data[24][0].count; //获取协同项目数量
  849. this.lightJson.commentStudents = res.data[25][0].count; //互动交流学生数量
  850. var today = new Date();
  851. var lastDayOfWeek = new Date(
  852. today.setDate(today.getDate() - today.getDay() + 7)
  853. ); //本周周日
  854. let weekArray = {
  855. lastWeek: [], //上周
  856. toWeek: [], //本周
  857. };
  858. // for (var i = 0; i < 14; i++) {
  859. // let time = JSON.parse(JSON.stringify(lastDayOfWeek))
  860. // let time2 = new Date(time)
  861. // var a = new Date(time2.setDate(time2.getDate() - i));
  862. // if (i > 6) {
  863. // weekArray.lastWeek.push(a.getFullYear() + '-' + (a.getMonth() + 1) + '-' + a.getDate());
  864. // } else {
  865. // weekArray.toWeek.push(a.getFullYear() + '-' + (a.getMonth() + 1) + '-' + a.getDate());
  866. // }
  867. // }
  868. weekArray = this.getMonth();
  869. let weekCourse = [];
  870. let weekCourse2 = [];
  871. let lastWeekCouseCount = 0;
  872. let toWeekCouseCount = 0;
  873. for (var z = 0; z < _course.length; z++) {
  874. let _date = new Date(weekArray.lastWeek[0]);
  875. console.log(_date);
  876. if (
  877. new Date(_course[z].create_at) > _date &&
  878. _course[z].pid == "34628934-d02f-11ec-8c78-005056b86db5"
  879. ) {
  880. weekCourse.push(_course[z]);
  881. var a = new Date(_course[z].create_at);
  882. var string =
  883. a.getFullYear() + "-" + (a.getMonth() + 1) + "-" + a.getDate();
  884. if (weekArray.lastWeek.indexOf(string) != -1) {
  885. lastWeekCouseCount++;
  886. } else {
  887. toWeekCouseCount++;
  888. }
  889. // if (weekArray.toWeek.indexOf(string) == -1) {
  890. // lastWeekCouseCount++
  891. // }
  892. }
  893. }
  894. let lastCourseidWeek = [];
  895. let toCourseidWeek = [];
  896. for (var i = 0; i < _grade.length; i++) {
  897. weekCourse2.push({
  898. name: _grade[i].name,
  899. id: _grade[i].id,
  900. lastCourse: 0,
  901. toCourse: 0,
  902. });
  903. for (var z = 0; z < weekCourse.length; z++) {
  904. if (weekCourse[z].typeid == _grade[i].id) {
  905. var a = new Date(weekCourse[z].create_at);
  906. var string =
  907. a.getFullYear() +
  908. "-" +
  909. (a.getMonth() + 1) +
  910. "-" +
  911. a.getDate();
  912. if (weekArray.lastWeek.indexOf(string) != -1) {
  913. weekCourse2[i].lastCourse++;
  914. if (lastCourseidWeek.indexOf(weekCourse[z].courseid) === -1) {
  915. lastCourseidWeek.push(weekCourse[z].courseid);
  916. }
  917. } else {
  918. weekCourse2[i].toCourse++;
  919. if (toCourseidWeek.indexOf(weekCourse[z].courseid) === -1) {
  920. toCourseidWeek.push(weekCourse[z].courseid);
  921. }
  922. }
  923. // if (weekArray.toWeek.indexOf(string) == -1) {
  924. // weekCourse2[i].lastCourse++
  925. // if (lastCourseidWeek.indexOf(weekCourse[z].courseid) === -1) {
  926. // lastCourseidWeek.push(weekCourse[z].courseid)
  927. // }
  928. // }
  929. // weekCourse2[i].toCourse++
  930. // if (toCourseidWeek.indexOf(weekCourse[z].courseid) === -1) {
  931. // toCourseidWeek.push(weekCourse[z].courseid)
  932. // }
  933. }
  934. }
  935. }
  936. // weekCourse2.push({
  937. // name: '其他',
  938. // id: '',
  939. // lastCourse: (lastWeekCouseCount - lastCourseidWeek.length) > 0 ? (lastWeekCouseCount - lastCourseidWeek.length) : 0,
  940. // toCourse: (toWeekCouseCount - toCourseidWeek.length) > 0 ? (toWeekCouseCount - toCourseidWeek.length) : 0,
  941. // })
  942. this.weekCourse2 = weekCourse2;
  943. let allTimeYear = res.data[26]; //累计时长热力图
  944. this.teacherLoginCount = res.data[27][0].count; //教师登录频次柱状图
  945. this.studentLoginCount = res.data[28][0].count; //学生登录频次柱状图
  946. let allTimeYearArray = {};
  947. let timeArray1 = [];
  948. for (var i = 0; i < allTimeYear.length; i++) {
  949. timeArray1.push({
  950. vtime: allTimeYear[i].vtime,
  951. time: allTimeYear[i].time,
  952. });
  953. }
  954. timeArray1.forEach((item) => {
  955. allTimeYearArray[item.vtime] = parseInt((item.time / 60 / 60).toFixed(0))
  956. });
  957. // for (var i = Month; i > Month - 12; i--) {
  958. // if (i <= 0) {
  959. // allTimeYearArray.push({
  960. // Year: Year - 1,
  961. // Month: 12 + i,
  962. // mon: 0,
  963. // tue: 0,
  964. // wed: 0,
  965. // thur: 0,
  966. // fri: 0,
  967. // sat: 0,
  968. // sun: 0,
  969. // })
  970. // } else {
  971. // allTimeYearArray.push({
  972. // Month: i,
  973. // Year: Year,
  974. // mon: 0,
  975. // tue: 0,
  976. // wed: 0,
  977. // thur: 0,
  978. // fri: 0,
  979. // sat: 0,
  980. // sun: 0,
  981. // })
  982. // }
  983. // }
  984. // allTimeYearArray = allTimeYearArray.reverse()
  985. // for (var i = 0; i < allTimeYear.length; i++) {
  986. // let _date = new Date(allTimeYear[i].create_at)
  987. // var _month = _date.getMonth() + 1
  988. // var _year = _date.getFullYear()
  989. // var _day = _date.getDay()
  990. // let dayArray = ['sun', 'mon', 'tue', 'wed', 'thur', 'fri', 'sat']
  991. // for (var j = 0; j < allTimeYearArray.length; j++) {
  992. // if (_month == allTimeYearArray[j].Month && _year == allTimeYearArray[j].Year) {
  993. // allTimeYearArray[j][dayArray[_day]] += parseInt((parseInt(allTimeYear[i].time) / 3600).toFixed(0));
  994. // break;
  995. // }
  996. // }
  997. // }
  998. this.allTimeYearArray = allTimeYearArray;
  999. let CourseLabel = res.data[29]; //带分类的课程
  1000. let _subject2 = JSON.parse(JSON.stringify(res.data[1]));
  1001. const resultSubject = [];
  1002. for (let i = 0; i < _subject2.length - 1; i++) {
  1003. for (let j = i + 1; j < _subject2.length; j++) {
  1004. resultSubject.push({
  1005. id: [_subject2[i].id, _subject2[j].id],
  1006. name: [_subject2[i].name, _subject2[j].name],
  1007. count: 0,
  1008. });
  1009. }
  1010. }
  1011. for (var i = 0; i < CourseLabel.length; i++) {
  1012. let array = CourseLabel[i].type.split(",");
  1013. for (var j = 0; j < resultSubject.length; j++) {
  1014. if (this.checkArrayInclusion(resultSubject[j].id, array)) {
  1015. resultSubject[j].count++;
  1016. }
  1017. }
  1018. }
  1019. let resultSubject2 = [];
  1020. for (var i = 0; i < resultSubject.length; i++) {
  1021. let el = resultSubject[i];
  1022. if (el.count > 0) {
  1023. resultSubject2.push([el.name[0], el.name[1], el.count]);
  1024. }
  1025. }
  1026. this.resultSubject = resultSubject2;
  1027. console.log(resultSubject);
  1028. this.$forceUpdate();
  1029. })
  1030. .catch((err) => {
  1031. this.isLoading = false;
  1032. this.$message.error(
  1033. "因加载数据量过大,服务器统计异常,请联系管理员。"
  1034. );
  1035. console.error(err);
  1036. });
  1037. },
  1038. checkArrayInclusion(arr1, arr2) {
  1039. return arr1.every((item) => arr2.includes(item));
  1040. },
  1041. typeChange() {
  1042. // if (this.cType === '') {
  1043. // this.courseNumberArray = this.allArray
  1044. // } else
  1045. if (this.cType === "grade") {
  1046. this.courseNumberArray = this.gradeArray;
  1047. } else if (this.cType === "theme") {
  1048. this.courseNumberArray = this.themeArray;
  1049. } else if (this.cType === "subject") {
  1050. this.courseNumberArray = this.subjectArray;
  1051. }
  1052. this.$forceUpdate();
  1053. },
  1054. },
  1055. };
  1056. </script>
  1057. <style scoped>
  1058. .body1 {
  1059. width: 100%;
  1060. height: 100%;
  1061. display: flex;
  1062. padding: 20px;
  1063. box-sizing: border-box;
  1064. overflow: hidden;
  1065. position: relative;
  1066. }
  1067. .left {
  1068. width: calc(100% / 4 * 1);
  1069. height: 100%;
  1070. }
  1071. .left>.top {
  1072. width: 100%;
  1073. height: calc(100% / 5 * 2.7 - 5px);
  1074. /* background: #fff; */
  1075. border-radius: 5px;
  1076. margin: 0 0 10px 0;
  1077. background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(224, 234, 251, 0.8) 100%);
  1078. border: 2px solid #fff;
  1079. box-sizing: border-box;
  1080. }
  1081. .left>.bottom {
  1082. width: 100%;
  1083. height: calc(100% / 5 * 2.3 - 5px);
  1084. /* background: #fff; */
  1085. border-radius: 5px;
  1086. background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(224, 234, 251, 0.8) 100%);
  1087. border: 2px solid #fff;
  1088. box-sizing: border-box;
  1089. }
  1090. .center {
  1091. width: calc(100% / 4 * 2 - 20px);
  1092. height: 100%;
  1093. margin: 0 10px;
  1094. }
  1095. .center>.top {
  1096. width: 100%;
  1097. height: calc(100% / 5 * 2.7 - 5px);
  1098. /* background: #fff; */
  1099. border-radius: 5px;
  1100. margin: 0 0 10px 0;
  1101. background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(224, 234, 251, 0.8) 100%);
  1102. border: 2px solid #fff;
  1103. box-sizing: border-box;
  1104. }
  1105. .center>.bottom {
  1106. width: 100%;
  1107. height: calc(100% / 5 * 2.3 - 5px);
  1108. /* background: #fff; */
  1109. border-radius: 5px;
  1110. background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(224, 234, 251, 0.8) 100%);
  1111. border: 2px solid #fff;
  1112. box-sizing: border-box;
  1113. }
  1114. .right {
  1115. width: calc(100% / 4 * 1);
  1116. height: 100%;
  1117. }
  1118. .right>.top {
  1119. width: 100%;
  1120. height: calc(100% / 5 * 2.7 - 5px);
  1121. /* background: #fff; */
  1122. border-radius: 5px;
  1123. margin: 0 0 10px 0;
  1124. background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(224, 234, 251, 0.8) 100%);
  1125. border: 2px solid #fff;
  1126. box-sizing: border-box;
  1127. }
  1128. .right>.bottom {
  1129. width: 100%;
  1130. height: calc(100% / 5 * 2.3 - 5px);
  1131. /* background: #fff; */
  1132. border-radius: 5px;
  1133. background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(224, 234, 251, 0.8) 100%);
  1134. border: 2px solid #fff;
  1135. box-sizing: border-box;
  1136. }
  1137. .titleBox {
  1138. height: 40px;
  1139. display: flex;
  1140. align-items: center;
  1141. padding: 0 15px;
  1142. box-sizing: border-box;
  1143. width: 100%;
  1144. position: relative;
  1145. }
  1146. .titleBox::after {
  1147. content: '';
  1148. position: absolute;
  1149. height: 2px;
  1150. width: calc(100% - 30px);
  1151. bottom: 0;
  1152. background: linear-gradient(90deg, rgba(54, 129, 252, 0.6) 0%, rgba(54, 129, 252, 0.1) 100%);
  1153. }
  1154. .title {
  1155. color: #060e17;
  1156. margin-right: 25px;
  1157. font-weight: 700;
  1158. display: flex;
  1159. align-items: center;
  1160. }
  1161. .title::before {
  1162. content: '';
  1163. background-image: url('../../../../assets/icon/test/data_title_icon.png');
  1164. background-size: 100% 100%;
  1165. width: 20px;
  1166. height: 20px;
  1167. margin-right: 5px;
  1168. }
  1169. .dataBox {
  1170. height: calc(100% - 40px);
  1171. width: 100%;
  1172. }
  1173. .greenBG {
  1174. background: linear-gradient(180deg,
  1175. rgb(211, 246, 228, 0.2) 0%,
  1176. rgb(23, 196, 105, 0.3) 100%);
  1177. }
  1178. .depth_box {
  1179. display: flex;
  1180. flex-wrap: wrap;
  1181. height: 100%;
  1182. width: 95%;
  1183. margin: 0 auto;
  1184. overflow: hidden;
  1185. justify-content: space-between;
  1186. }
  1187. .depth {
  1188. width: calc(100% / 5 - 10px);
  1189. display: flex;
  1190. flex-direction: column;
  1191. align-items: center;
  1192. justify-content: center;
  1193. }
  1194. .depth>span:nth-child(1) {
  1195. font-size: 14px;
  1196. font-weight: 700;
  1197. margin: 0 0 10px;
  1198. }
  1199. .depth>div:nth-child(1) {}
  1200. .course_box {
  1201. display: flex;
  1202. height: 50%;
  1203. width: 95%;
  1204. margin: 0 auto;
  1205. }
  1206. .course_box .info_box {
  1207. height: 100%;
  1208. width: 100px;
  1209. flex-direction: column;
  1210. margin: 0;
  1211. flex-wrap: nowrap;
  1212. }
  1213. .course_box_p {
  1214. width: calc(100% - 100px);
  1215. }
  1216. .selectBox {
  1217. width: 80px;
  1218. margin-left: 10px;
  1219. }
  1220. .selectBox>>>.el-input__inner {
  1221. height: 30px;
  1222. line-height: 30px;
  1223. border: 1px solid #3681FC;
  1224. }
  1225. .selectBox>>>.el-input__icon {
  1226. line-height: 30px;
  1227. }
  1228. .teaMiddle {
  1229. width: calc(100% / 2 - 10px);
  1230. height: 60px;
  1231. border-radius: 8px;
  1232. /* border: 1px solid #e0eafb; */
  1233. display: flex;
  1234. flex-direction: column;
  1235. align-items: flex-start;
  1236. justify-content: center;
  1237. padding: 0 10px;
  1238. margin: 0 10px;
  1239. }
  1240. .teaMiddle {
  1241. width: calc(100% / 3 - 10px);
  1242. }
  1243. .timeDiv {
  1244. display: flex;
  1245. flex-direction: row;
  1246. flex-wrap: nowrap;
  1247. align-items: center;
  1248. margin: 0 0 0 15px;
  1249. }
  1250. .timeDiv>div {
  1251. margin-right: 10px;
  1252. cursor: pointer;
  1253. }
  1254. .isClick {
  1255. /* color: #1684fc;
  1256. border-bottom: 2px solid #1684fc; */
  1257. box-sizing: border-box;
  1258. }
  1259. .noClick {
  1260. font-weight: 500;
  1261. opacity: .6;
  1262. }
  1263. .otherCss {
  1264. display: flex;
  1265. flex-direction: row;
  1266. flex-wrap: nowrap;
  1267. align-items: center;
  1268. justify-content: flex-end;
  1269. }
  1270. .otherImg {
  1271. width: 20px;
  1272. height: 20px;
  1273. margin: 0 10px;
  1274. cursor: pointer;
  1275. }
  1276. .otherImg>img {
  1277. width: 100%;
  1278. height: 100%;
  1279. }
  1280. .info_box {
  1281. display: flex;
  1282. flex-wrap: wrap;
  1283. align-items: center;
  1284. justify-content: space-between;
  1285. width: 90%;
  1286. margin: 0 auto;
  1287. }
  1288. .info_box>.info2,
  1289. .info_box>.info3,
  1290. .info_box>.info {
  1291. width: calc(50% - 10px);
  1292. display: flex;
  1293. flex-direction: column-reverse;
  1294. flex-wrap: nowrap;
  1295. height: 60px;
  1296. justify-content: center;
  1297. /* align-items: center; */
  1298. padding: 0 10px;
  1299. box-sizing: border-box;
  1300. margin-bottom: 10px;
  1301. border-radius: 5px;
  1302. }
  1303. .info_box>.info2 {
  1304. width: calc(100% / 4 - 10px);
  1305. /* align-items: flex-end; */
  1306. }
  1307. .info_box>.info3 {
  1308. width: 100%;
  1309. margin-bottom: 5px;
  1310. }
  1311. .info_box>.info2>span:nth-child(1),
  1312. .info_box>.info3>span:nth-child(1),
  1313. .info_box>.info>span:nth-child(1) {
  1314. font-size: 12px;
  1315. /* margin: 0 0 0 20px; */
  1316. color: #565e6a;
  1317. /* width: 60px; */
  1318. white-space: pre-wrap;
  1319. word-break: break-all;
  1320. }
  1321. .info_box>.info2>span:nth-child(2),
  1322. .info_box>.info3>span:nth-child(2),
  1323. .info_box>.info>span:nth-child(2) {
  1324. font-size: 24px;
  1325. font-weight: 700;
  1326. }
  1327. .blueBG {
  1328. /* background: rgb(243, 248, 253);
  1329. border: 2px solid rgb(234, 246, 255); */
  1330. }
  1331. .tCircleC {
  1332. display: flex;
  1333. align-items: center;
  1334. }
  1335. .tCircleBox {
  1336. display: flex;
  1337. align-items: center;
  1338. }
  1339. .tCircleBox>span+span {
  1340. margin-left: 5px;
  1341. }
  1342. .tCircleBox+.tCircleBox {
  1343. margin-left: 10px;
  1344. }
  1345. .tCircleBox .tCircle {
  1346. width: 10px;
  1347. height: 10px;
  1348. border-radius: 50%;
  1349. display: inline-block;
  1350. }
  1351. .tCircleBox .tt {
  1352. background: #53c95f;
  1353. }
  1354. .tCircleBox .ts {
  1355. background: #106bff;
  1356. }
  1357. </style>