index.vue 42 KB

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