index.vue 67 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069
  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="cType7" 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>{{ count }}</span> -->
  18. <span>{{ allCourse }}</span>
  19. </div>
  20. <div class="info blueBG">
  21. <span>本月新增课程环比</span>
  22. <span v-if="loginCountMonthArray.length">{{
  23. loginCountMonthArray[loginCountMonthArray.length - 1].course > 0
  24. ? (
  25. (loginCountMonthArray[loginCountMonthArray.length - 1]
  26. .course /
  27. allCourse) *
  28. 100
  29. ).toFixed(0) + "%"
  30. : 0
  31. }}</span>
  32. <!-- <span>{{ weekCount }}</span> -->
  33. <!-- <span v-if="loginCountMonthArray.length">{{
  34. loginCountMonthArray[loginCountMonthArray.length - 1].course -
  35. loginCountMonthArray[loginCountMonthArray.length - 2].course < 0 ? 0 : (
  36. ((loginCountMonthArray[loginCountMonthArray.length - 1].course -
  37. loginCountMonthArray[loginCountMonthArray.length - 2].course) / (allCourse -
  38. loginCountMonthArray[loginCountMonthArray.length - 1].course)) * 100).toFixed(0) + "%" }}</span> -->
  39. </div>
  40. <div class="info blueBG">
  41. <span>模板课程总数</span>
  42. <span>{{ 0 }}</span>
  43. <!-- <span>{{ courseTemplate }}</span> -->
  44. </div>
  45. <div class="info blueBG">
  46. <span>本月新增课程总数</span>
  47. <!-- <span>{{ weekCount }}</span> -->
  48. <span v-if="loginCountMonthArray.length">{{
  49. loginCountMonthArray[loginCountMonthArray.length - 1].course
  50. }}</span>
  51. </div>
  52. </div>
  53. <TeaFre style="height: calc(100% - 140px)" :monthArray="loginCountMonthArray"></TeaFre>
  54. </div>
  55. </div>
  56. <div class="bottom">
  57. <div class="titleBox">
  58. <div class="title" :class="{ isClick: skType == 0, noClick: skType != 0 }" @click="skType = 0"
  59. style="cursor: pointer; padding: 0 0 5px 0">
  60. 授课时长
  61. </div>
  62. <div class="title" :class="{ isClick: skType == 1, noClick: skType != 1 }" @click="skType = 1"
  63. style="cursor: pointer; padding: 0 0 5px 0">
  64. 作业数量
  65. </div>
  66. <el-select v-if="skType == 0" v-model="lType" @change="typeChange1" class="selectBox" style="margin-left: auto">
  67. <!-- <el-option label="全部" value="all"></el-option> -->
  68. <el-option label="年级" value="grade"></el-option>
  69. <el-option label="主题" value="theme"></el-option>
  70. <el-option label="学科" value="subject"></el-option>
  71. </el-select>
  72. <el-select v-if="skType == 1" v-model="lType1" @change="typeChange2" class="selectBox"
  73. style="margin-left: auto">
  74. <!-- <el-option label="全部" value="all"></el-option> -->
  75. <el-option label="年级" value="grade"></el-option>
  76. <el-option label="主题" value="theme"></el-option>
  77. <el-option label="学科" value="subject"></el-option>
  78. </el-select>
  79. <!-- <el-select v-model="cType" class="selectBox" style="width: 110px">
  80. <el-option label="全部年级" value="全部年级"></el-option>
  81. <el-option label="一年级" value="一年级"></el-option>
  82. <el-option label="二年级" value="二年级"></el-option>
  83. <el-option label="三年级" value="三年级"></el-option>
  84. </el-select>
  85. <div class="timeDiv">
  86. <div @click="tType = 0" :class="{ isClick: tType == 0 }">周</div>
  87. <div @click="tType = 1" :class="{ isClick: tType == 1 }">月</div>
  88. <div @click="tType = 2" :class="{ isClick: tType == 2 }">学期</div>
  89. </div> -->
  90. </div>
  91. <div class="dataBox">
  92. <div class="info_box" style="width: 96%" v-if="skType == 0">
  93. <div class="info blueBG" style="width: calc(100% / 3 - 10px)">
  94. <span>累计时长</span>
  95. <!-- <span>{{ count }}</span> -->
  96. <span>{{ allTime }}</span>
  97. </div>
  98. <div class="info blueBG" style="width: calc(100% / 3 - 10px)">
  99. <span>课程实施总数</span>
  100. <!-- <span>{{ weekCount }}</span> -->
  101. <span>{{ courseLength }}</span>
  102. </div>
  103. <div class="info blueBG" style="width: calc(100% / 3 - 10px)">
  104. <span>课均时长</span>
  105. <!-- <span>{{ weekCount }}</span> -->
  106. <span>{{
  107. allTime == 0 ? 0 : (allTime / courseLength).toFixed(0)
  108. }}</span>
  109. </div>
  110. </div>
  111. <div class="info_box" style="width: 96%" v-if="skType == 1">
  112. <div class="info blueBG" style="width: calc(100% / 3 - 10px)">
  113. <span>作业数量</span>
  114. <!-- <span>{{ count }}</span> -->
  115. <span>{{ worksCount }}</span>
  116. </div>
  117. <div class="info blueBG" style="width: calc(100% / 3 - 10px)">
  118. <span>课程开展总数</span>
  119. <!-- <span>{{ weekCount }}</span> -->
  120. <span>{{ haveWorksCourse }}</span>
  121. </div>
  122. <div class="info blueBG" style="width: calc(100% / 3 - 10px)">
  123. <span>课程平均作业数量</span>
  124. <!-- <span>{{ weekCount }}</span> -->
  125. <span>{{
  126. worksCount == 0 ? 0 : (worksCount / haveWorksCourse).toFixed(0)
  127. }}</span>
  128. </div>
  129. </div>
  130. <Bar style="height: calc(100% - 120px)" v-if="skType == 0 && !oType" :workList="tedurArray"></Bar>
  131. <ToolUse2 style="height: calc(100% - 120px)" v-if="skType == 0 && oType" :Josn="courseWorksCountYearArray2">
  132. </ToolUse2>
  133. <ToolUse style="height: calc(100% - 120px)" v-if="skType == 1 && !oType2" :Josn="courseWorksCountYearArray">
  134. </ToolUse>
  135. <Bar2 style="height: calc(100% - 120px)" v-if="skType == 1 && oType2" :workList="tedurArray2"></Bar2>
  136. <!-- <div class="otherCss" v-if="skType == 0">
  137. <div v-if="!oType">切换为热力图</div>
  138. <div v-if="oType">切换为柱状图</div>
  139. <div class="otherImg" @click="otherEchart">
  140. <img src="../../../../assets/icon/other.png" alt="" />
  141. </div>
  142. </div>
  143. <div class="otherCss" v-if="skType == 1">
  144. <div v-if="!oType2">切换为柱状图</div>
  145. <div v-if="oType2">切换为热力图</div>
  146. <div class="otherImg" @click="otherEchart2">
  147. <img src="../../../../assets/icon/other.png" alt="" />
  148. </div>
  149. </div> -->
  150. <div class="dataBoard_check_box" v-if="skType == 0">
  151. <div class="icon zz_icon2" :class="{ active: !oType }" @click="oType = false"><span>柱状图</span></div>
  152. <div class="icon rl_icon" :class="{ active: oType }" @click="oType = true"><span>热力图</span></div>
  153. </div>
  154. <div class="dataBoard_check_box" v-if="skType == 1">
  155. <div class="icon zz_icon2" :class="{ active: oType2 }" @click="oType2 = true"><span>柱状图</span></div>
  156. <div class="icon rl_icon" :class="{ active: !oType2 }" @click="oType2 = false"><span>热力图</span></div>
  157. </div>
  158. </div>
  159. </div>
  160. </div>
  161. <div class="center">
  162. <div class="top">
  163. <div class="courseCenterTop">
  164. <div class="titleBox">
  165. <div class="title" :class="{ isClick: courseType == 0, noClick: courseType != 0 }" @click="courseType = 0"
  166. style="cursor: pointer; padding: 0 0 5px 0">
  167. 课程分布
  168. </div>
  169. <div class="title" :class="{ isClick: courseType == 1, noClick: courseType != 1 }" @click="courseType = 1"
  170. style="cursor: pointer; padding: 0 0 5px 0">
  171. 课程总数变化
  172. </div>
  173. </div>
  174. <div class="allScreen" @click="allScreen = true">
  175. <img src="../../../../assets/icon/new/allScreen.png" alt="" />
  176. </div>
  177. </div>
  178. <div class="dataBox">
  179. <CateRank v-if="courseType == 0" style="height: calc(100% - 10px)" :courseArray="courseArray"></CateRank>
  180. <CourseNum v-if="courseType == 1" style="height: calc(100%)" :weekCourse2="weekCourse2"></CourseNum>
  181. </div>
  182. </div>
  183. <div class="bottom">
  184. <div class="titleBox" style="justify-content: space-between">
  185. <div class="title">课程实施程度</div>
  186. </div>
  187. <div class="dataBox">
  188. <div class="allBox" v-if="!shType" style="height: calc(100% - 50px)">
  189. <div class="allBox_left">
  190. <CourseTime v-if="!shType" :pusaDep="pusaDep"></CourseTime>
  191. </div>
  192. <div class="allBox_right">
  193. <div class="depth">
  194. <span>已提交作业</span>
  195. <div>
  196. <el-progress :width="80" type="circle" :percentage="allCourse
  197. ? parseInt(
  198. ((haveWorksCourse / allCourse) * 100).toFixed(0)
  199. )
  200. : 0
  201. " :stroke-width="5" :format="format" color="#106BFF"></el-progress>
  202. </div>
  203. </div>
  204. <div class="depth">
  205. <span>设置评价</span>
  206. <div>
  207. <el-progress :width="80" type="circle" :percentage="allCourse
  208. ? parseInt(((evaCount / allCourse) * 100).toFixed(0))
  209. : 0
  210. " :stroke-width="5" :format="format" color="#106BFF"></el-progress>
  211. </div>
  212. </div>
  213. <div class="depth">
  214. <span>已评价课程</span>
  215. <div>
  216. <el-progress :width="80" type="circle" :percentage="allCourse
  217. ? parseInt(
  218. ((evaWorksCount / allCourse) * 100).toFixed(0)
  219. )
  220. : 0
  221. " :stroke-width="5" :format="format" color="#106BFF"></el-progress>
  222. </div>
  223. </div>
  224. <div class="depth">
  225. <span>教学评一体化</span>
  226. <div>
  227. <el-progress :width="80" type="circle" :percentage="allCourse
  228. ? parseInt(
  229. ((evaWorksCount / allCourse) * 100).toFixed(0)
  230. )
  231. : 0
  232. " :stroke-width="5" :format="format" color="#106BFF"></el-progress>
  233. </div>
  234. </div>
  235. </div>
  236. </div>
  237. <div class="info_box" v-if="shType">
  238. <div class="info blueBG" style="width: calc(100% / 4 - 10px)">
  239. <span>平台实施课程总数</span>
  240. <!-- <span>{{ count }}</span> -->
  241. <span>{{ isCourseCount }}</span>
  242. </div>
  243. <div class="info blueBG" style="width: calc(100% / 4 - 10px)">
  244. <span>平台实施课程占比</span>
  245. <!-- <span>{{ weekCount }}</span> -->
  246. <span>{{
  247. isCourseCount
  248. ? ((isCourseCount / allCourseCount) * 100).toFixed(0) + "%"
  249. : "0%"
  250. }}</span>
  251. </div>
  252. <div class="info blueBG" style="width: calc(100% / 4 - 10px)">
  253. <span>课程平均任务数量</span>
  254. <!-- <span>{{ weekCount }}</span> -->
  255. <span>{{
  256. isCourseCount ? (taskCount / isCourseCount).toFixed(0) : 0
  257. }}</span>
  258. </div>
  259. <div class="info blueBG" style="width: calc(100% / 4 - 10px)">
  260. <span>课程平均作业数量</span>
  261. <!-- <span>{{ weekCount }}</span> -->
  262. <span>{{
  263. isCourseCount ? (workCount / isCourseCount).toFixed(0) : 0
  264. }}</span>
  265. </div>
  266. </div>
  267. <WorkNum style="height: calc(100% - 115px)" :workNumList="workNumList" @openCourse="openCourse" v-if="shType">
  268. </WorkNum>
  269. <!-- <div class="otherCss">
  270. <div v-if="!shType">转换为散点图</div>
  271. <div v-if="shType">转换为漏斗图</div>
  272. <div class="otherImg" @click="shEchart">
  273. <img src="../../../../assets/icon/other.png" alt="" />
  274. </div>
  275. </div> -->
  276. <div class="dataBoard_check_box">
  277. <div class="icon sd_icon" :class="{ active: shType }" @click="shType = true"><span>散点图</span></div>
  278. <div class="icon ld_icon" :class="{ active: !shType }" @click="shType = false"><span>漏斗图</span></div>
  279. </div>
  280. </div>
  281. </div>
  282. </div>
  283. <div class="right">
  284. <div class="top" style="border-radius: 5px">
  285. <div class="titleBox" style="justify-content: space-between">
  286. <div style="
  287. display: flex;
  288. flex-direction: row;
  289. flex-wrap: nowrap;
  290. align-items: center;
  291. ">
  292. <div class="title" :class="{ isClick: toolType == 0, noClick: toolType != 0 }" @click="toolType = 0"
  293. style="cursor: pointer; padding: 0 0 5px 0">
  294. 课程占比
  295. </div>
  296. <div class="title" :class="{ isClick: toolType == 1, noClick: toolType != 1 }" @click="toolType = 1"
  297. style="cursor: pointer; padding: 0 0 5px 0">
  298. 工具使用
  299. </div>
  300. </div>
  301. <el-select v-model="cType4" @change="typeChange" class="selectBox" v-if="toolType == 0">
  302. <!-- <el-option label="全部" value=""></el-option> -->
  303. <el-option label="年级" value="grade"></el-option>
  304. <el-option label="主题" value="theme"></el-option>
  305. <el-option label="学科" value="subject"></el-option>
  306. </el-select>
  307. </div>
  308. <div class="dataBox">
  309. <CourseAna style="height: calc(100%)" :courseNumberArray="courseNumberArray" v-if="toolType == 0"></CourseAna>
  310. <ToolChart style="height: calc(100%)" :toolArray="toolList" v-if="toolType == 1"></ToolChart>
  311. </div>
  312. </div>
  313. <div class="bottom">
  314. <div class="titleBox">
  315. <div class="title">课程协同情况</div>
  316. </div>
  317. <div class="dataBox">
  318. <WorkTime style="height: calc(100% - 45px)" :personArray="personList" v-if="xtType"></WorkTime>
  319. <Subjuect style="height: calc(100% - 45px)" v-if="!xtType" :resultSubject="resultSubject"></Subjuect>
  320. <!-- <div class="otherCss">
  321. <div v-if="!xtType">转换为人员协同</div>
  322. <div v-if="xtType">转换为学科协同</div>
  323. <div class="otherImg" @click="xtEchart">
  324. <img src="../../../../assets/icon/other.png" alt="" />
  325. </div>
  326. </div> -->
  327. <div class="dataBoard_check_box">
  328. <div class="icon hx_icon" :class="{ active: !xtType }" @click="xtType = false"><span>和弦图</span></div>
  329. <div class="icon bz_icon" :class="{ active: xtType }" @click="xtType = true"><span>饼状图</span></div>
  330. </div>
  331. </div>
  332. </div>
  333. </div>
  334. <el-dialog title="课程分布" :visible.sync="allScreen" :append-to-body="true" width="100%" :before-close="handleClose"
  335. class="dialog_diy">
  336. <CateRank v-if="courseType == 0" style="height: calc(100%)" :courseArray="courseArray"></CateRank>
  337. <CourseNum v-if="courseType == 1" style="height: calc(100%)" :weekCourse2="weekCourse2"></CourseNum>
  338. </el-dialog>
  339. </div>
  340. </template>
  341. <script>
  342. import TeaFre from "./chartList/teaFre.vue";
  343. import ToolUse from "./chartList/toolUse.vue";
  344. import ToolUse2 from "./chartList/toolUse2.vue";
  345. import CateRank from "./chartList/cateRank.vue";
  346. import WorkNum from "./chartList/workNum.vue";
  347. import CourseTime from "./chartList/courseTime.vue";
  348. import CourseAna from "./chartList/courseAna.vue";
  349. import WorkTime from "./chartList/workTime.vue";
  350. import Bar from "./chartList/bar.vue";
  351. import Bar2 from "./chartList/bar2.vue";
  352. import CourseNum from "./chartList/courseNum.vue";
  353. import ToolChart from "./chartList/toolChart.vue";
  354. import Subjuect from "./chartList/subjuect.vue";
  355. import loading from "../../components/loading.vue";
  356. export default {
  357. components: {
  358. TeaFre,
  359. ToolUse,
  360. ToolUse2,
  361. CateRank,
  362. WorkNum,
  363. CourseTime,
  364. CourseAna,
  365. WorkTime,
  366. Bar,
  367. Bar2,
  368. CourseNum,
  369. ToolChart,
  370. Subjuect,
  371. loading,
  372. },
  373. props: {
  374. oid: {
  375. type: String,
  376. },
  377. org: {
  378. type: String,
  379. },
  380. },
  381. data() {
  382. return {
  383. isLoading: false,
  384. cType: "全部年级",
  385. cType4: "grade",
  386. cType7: "全部课程",
  387. toolType: 0,
  388. tType: 0,
  389. skType: 0,
  390. courseType: 0,
  391. sType: 0,
  392. oType: false,
  393. oType2: false,
  394. shType: true,
  395. xtType: false,
  396. allCourse: 0,
  397. courseTemplate: 0,
  398. loginCountMonthArray: [],
  399. lType: "grade",
  400. lType1: "grade",
  401. allTimeList: [],
  402. tedurArray: [],
  403. tedurArray2: [],
  404. classList: [],
  405. subjectList: [],
  406. themeList: [],
  407. allTime: 0,
  408. allTimeLength: 0,
  409. gradeLength: 0,
  410. subjectLength: 0,
  411. themeLength: 0,
  412. courseTList: [],
  413. courseLength: 0,
  414. courseWorksCountYearArray: [],
  415. courseWorksCountYearArray2: [],
  416. allCourseWorks: [],
  417. allCourseWorks1: [],
  418. gradeList: [],
  419. subjectList2: [],
  420. thList: [],
  421. worksCount: 0,
  422. haveWorksCourse: 0,
  423. courseNumberArray: [],
  424. gradeArray: [],
  425. subjectArray: [],
  426. themeArray: [],
  427. allArray: [],
  428. toolList: [],
  429. personList: [],
  430. workNumList: [],
  431. taskCount: 0,
  432. workCount: 0,
  433. isCourseCount: 0,
  434. allCourseCount: 0,
  435. courseArray: [],
  436. evaCount: 0,
  437. evaWorksCount: 0,
  438. pusaDep: [
  439. { value: 0, name: "课程总数" },
  440. { value: 0, name: "设置评价课程" },
  441. { value: 0, name: "已提交作业课程" },
  442. { value: 0, name: "已评价课程" },
  443. { value: 0, name: "教学评一体化课程" },
  444. ],
  445. weekCourse2: [],
  446. resultSubject: [],
  447. allScreen: false,
  448. };
  449. },
  450. mounted() {
  451. this.getData();
  452. },
  453. methods: {
  454. handleClose(done) {
  455. done();
  456. },
  457. openCourse(cid) {
  458. window.parent.postMessage({ cid: cid, screenType: "3" }, "*");
  459. },
  460. otherEchart() {
  461. this.oType = !this.oType;
  462. },
  463. otherEchart2() {
  464. this.oType2 = !this.oType2;
  465. },
  466. shEchart() {
  467. this.shType = !this.shType;
  468. },
  469. xtEchart() {
  470. this.xtType = !this.xtType;
  471. },
  472. format(percentage) {
  473. return percentage + "%";
  474. },
  475. getMonth() {
  476. // 获取当前时间
  477. var currentDate = new Date();
  478. // 获取本月的年份和月份
  479. var currentYear = currentDate.getFullYear();
  480. var currentMonth = currentDate.getMonth() + 1; // 月份从0开始,需要加1
  481. // 获取上个月的年份和月份
  482. var lastMonthYear, lastMonth;
  483. if (currentMonth === 1) {
  484. lastMonthYear = currentYear - 1;
  485. lastMonth = 12;
  486. } else {
  487. lastMonthYear = currentYear;
  488. lastMonth = currentMonth - 1;
  489. }
  490. // 获取本月的第一天和最后一天的日期
  491. var firstDayOfMonth = new Date(currentYear, currentMonth - 1, 1);
  492. var lastDayOfMonth = new Date(currentYear, currentMonth, 0);
  493. // 获取上个月的第一天和最后一天的日期
  494. var firstDayOfLastMonth = new Date(lastMonthYear, lastMonth - 1, 1);
  495. var lastDayOfLastMonth = new Date(lastMonthYear, lastMonth, 0);
  496. // 构建本月日期的数组
  497. var currentMonthDates = [];
  498. for (var i = 1; i <= lastDayOfMonth.getDate(); i++) {
  499. let a = new Date(currentYear, currentMonth - 1, i);
  500. currentMonthDates.push(
  501. a.getFullYear() + "-" + (a.getMonth() + 1) + "-" + a.getDate()
  502. );
  503. }
  504. // 构建上个月日期的数组
  505. var lastMonthDates = [];
  506. for (
  507. var j = firstDayOfLastMonth.getDate();
  508. j <= lastDayOfLastMonth.getDate();
  509. j++
  510. ) {
  511. let a = new Date(lastMonthYear, lastMonth - 1, j);
  512. lastMonthDates.push(
  513. a.getFullYear() + "-" + (a.getMonth() + 1) + "-" + a.getDate()
  514. );
  515. }
  516. return {
  517. lastWeek: lastMonthDates, //上月
  518. toWeek: currentMonthDates, //本月
  519. };
  520. },
  521. typeChange1() {
  522. var a = [];
  523. if (this.lType == "all") {
  524. // a = this.classList.concat(this.subjectList, this.themeList);
  525. a = this.allTimeList;
  526. this.courseLength = this.allTimeLength;
  527. } else if (this.lType == "grade") {
  528. a = this.classList;
  529. this.courseLength = this.gradeLength;
  530. } else if (this.lType == "subject") {
  531. a = this.subjectList;
  532. this.courseLength = this.subjectLength;
  533. } else {
  534. a = this.themeList;
  535. this.courseLength = this.themeLength;
  536. }
  537. this.tedurArray = a;
  538. var time = 0;
  539. for (var i = 0; i < a.length; i++) {
  540. if (a[i].time) {
  541. time += a[i].time;
  542. }
  543. }
  544. this.allTime = time;
  545. const date = new Date();
  546. var Month = date.getMonth() + 1;
  547. var Year = date.getFullYear();
  548. let courseWorksCountYearArray = {};
  549. let timeArray = [];
  550. for (var i = 0; i < this.courseTList.length; i++) {
  551. timeArray.push({
  552. vtime: this.courseTList[i].time,
  553. time: this.courseTList[i].text,
  554. });
  555. }
  556. for (var i = 0; i < this.courseTList.length; i++) {
  557. let _type = this.courseTList[i].type
  558. ? this.courseTList[i].type.split(",")
  559. : [];
  560. if (this.lType1 == "all") {
  561. if (this.courseTList[i].text) {
  562. timeArray.forEach((item) => {
  563. courseWorksCountYearArray[item.vtime] = parseInt(
  564. (item.time / 60 / 60).toFixed(0)
  565. );
  566. });
  567. }
  568. } else if (this.lType1 == "grade") {
  569. if (this.hasCommonValue(this.gradeList, _type)) {
  570. if (this.courseTList[i].text) {
  571. timeArray.forEach((item) => {
  572. courseWorksCountYearArray[item.vtime] = parseInt(
  573. (item.time / 60 / 60).toFixed(0)
  574. );
  575. });
  576. }
  577. }
  578. } else if (this.lType1 == "subject") {
  579. if (this.hasCommonValue(this.subjectList2, _type)) {
  580. if (this.courseTList[i].text) {
  581. timeArray.forEach((item) => {
  582. courseWorksCountYearArray[item.vtime] = parseInt(
  583. (item.time / 60 / 60).toFixed(0)
  584. );
  585. });
  586. }
  587. }
  588. } else {
  589. if (this.hasCommonValue(this.thList, _type)) {
  590. if (this.courseTList[i].text) {
  591. timeArray.forEach((item) => {
  592. courseWorksCountYearArray[item.vtime] = parseInt(
  593. (item.time / 60 / 60).toFixed(0)
  594. );
  595. });
  596. }
  597. }
  598. }
  599. }
  600. // for (var i = Month; i > Month - 12; i--) {
  601. // if (i <= 0) {
  602. // courseWorksCountYearArray.push({
  603. // Year: Year - 1,
  604. // Month: 12 + i,
  605. // mon: 0,
  606. // tue: 0,
  607. // wed: 0,
  608. // thur: 0,
  609. // fri: 0,
  610. // sat: 0,
  611. // sun: 0,
  612. // });
  613. // } else {
  614. // courseWorksCountYearArray.push({
  615. // Month: i,
  616. // Year: Year,
  617. // mon: 0,
  618. // tue: 0,
  619. // wed: 0,
  620. // thur: 0,
  621. // fri: 0,
  622. // sat: 0,
  623. // sun: 0,
  624. // });
  625. // }
  626. // }
  627. // courseWorksCountYearArray = courseWorksCountYearArray.reverse();
  628. // for (var i = 0; i < this.courseTList.length; i++) {
  629. // let _date = new Date(this.courseTList[i].create_at);
  630. // let _type = this.courseTList[i].type
  631. // ? this.courseTList[i].type.split(",")
  632. // : [];
  633. // var _month = _date.getMonth() + 1;
  634. // var _year = _date.getFullYear();
  635. // var _day = _date.getDay();
  636. // let dayArray = ["sun", "mon", "tue", "wed", "thur", "fri", "sat"];
  637. // for (var j = 0; j < courseWorksCountYearArray.length; j++) {
  638. // let time = (this.courseTList[i].text / 3600).toFixed(0);
  639. // time = parseInt(time) ? parseInt(time) : 0;
  640. // if (this.lType1 == "all") {
  641. // if (
  642. // _month == courseWorksCountYearArray[j].Month &&
  643. // _year == courseWorksCountYearArray[j].Year
  644. // ) {
  645. // courseWorksCountYearArray[j][dayArray[_day]] += time;
  646. // break;
  647. // }
  648. // } else if (this.lType1 == "grade") {
  649. // if (
  650. // _month == courseWorksCountYearArray[j].Month &&
  651. // _year == courseWorksCountYearArray[j].Year &&
  652. // this.hasCommonValue(this.gradeList, _type)
  653. // ) {
  654. // courseWorksCountYearArray[j][dayArray[_day]] += time;
  655. // break;
  656. // }
  657. // } else if (this.lType1 == "subject") {
  658. // if (
  659. // _month == courseWorksCountYearArray[j].Month &&
  660. // _year == courseWorksCountYearArray[j].Year &&
  661. // this.hasCommonValue(this.subjectList2, _type)
  662. // ) {
  663. // courseWorksCountYearArray[j][dayArray[_day]] += time;
  664. // break;
  665. // }
  666. // } else {
  667. // if (
  668. // _month == courseWorksCountYearArray[j].Month &&
  669. // _year == courseWorksCountYearArray[j].Year &&
  670. // this.hasCommonValue(this.thList, _type)
  671. // ) {
  672. // courseWorksCountYearArray[j][dayArray[_day]] += time;
  673. // break;
  674. // }
  675. // }
  676. // }
  677. // }
  678. this.courseWorksCountYearArray2 = courseWorksCountYearArray;
  679. this.$forceUpdate();
  680. },
  681. typeChange2() {
  682. const date = new Date();
  683. var Month = date.getMonth() + 1;
  684. var Year = date.getFullYear();
  685. let courseWorksCountYearArray = {};
  686. let timeArray = [];
  687. for (var i = 0; i < this.allCourseWorks1.length; i++) {
  688. timeArray.push(this.allCourseWorks1[i].time);
  689. }
  690. for (var i = 0; i < this.allCourseWorks1.length; i++) {
  691. let _type = this.allCourseWorks1[i].type
  692. ? this.allCourseWorks1[i].type.split(",")
  693. : [];
  694. let time = this.allCourseWorks1[i].time;
  695. if (this.lType1 == "all") {
  696. courseWorksCountYearArray[time] =
  697. courseWorksCountYearArray[time] + 1 || 1;
  698. } else if (this.lType1 == "grade") {
  699. if (this.hasCommonValue(this.gradeList, _type)) {
  700. courseWorksCountYearArray[time] =
  701. courseWorksCountYearArray[time] + 1 || 1;
  702. }
  703. } else if (this.lType1 == "subject") {
  704. if (this.hasCommonValue(this.subjectList2, _type)) {
  705. courseWorksCountYearArray[time] =
  706. courseWorksCountYearArray[time] + 1 || 1;
  707. }
  708. } else {
  709. if (this.hasCommonValue(this.thList, _type)) {
  710. courseWorksCountYearArray[time] =
  711. courseWorksCountYearArray[time] + 1 || 1;
  712. }
  713. }
  714. }
  715. // for (var i = Month; i > Month - 12; i--) {
  716. // if (i <= 0) {
  717. // courseWorksCountYearArray.push({
  718. // Year: Year - 1,
  719. // Month: 12 + i,
  720. // mon: 0,
  721. // tue: 0,
  722. // wed: 0,
  723. // thur: 0,
  724. // fri: 0,
  725. // sat: 0,
  726. // sun: 0,
  727. // });
  728. // } else {
  729. // courseWorksCountYearArray.push({
  730. // Month: i,
  731. // Year: Year,
  732. // mon: 0,
  733. // tue: 0,
  734. // wed: 0,
  735. // thur: 0,
  736. // fri: 0,
  737. // sat: 0,
  738. // sun: 0,
  739. // });
  740. // }
  741. // }
  742. // courseWorksCountYearArray = courseWorksCountYearArray.reverse();
  743. // for (var i = 0; i < this.allCourseWorks.length; i++) {
  744. // let _date = new Date(this.allCourseWorks[i].create_at);
  745. // let _type = this.allCourseWorks[i].type
  746. // ? this.allCourseWorks[i].typeid.split(",")
  747. // : [];
  748. // var _month = _date.getMonth() + 1;
  749. // var _year = _date.getFullYear();
  750. // var _day = _date.getDay();
  751. // let dayArray = ["sun", "mon", "tue", "wed", "thur", "fri", "sat"];
  752. // for (var j = 0; j < courseWorksCountYearArray.length; j++) {
  753. // if (this.lType1 == "all") {
  754. // if (
  755. // _month == courseWorksCountYearArray[j].Month &&
  756. // _year == courseWorksCountYearArray[j].Year
  757. // ) {
  758. // courseWorksCountYearArray[j][dayArray[_day]]++;
  759. // break;
  760. // }
  761. // } else if (this.lType1 == "grade") {
  762. // if (
  763. // _month == courseWorksCountYearArray[j].Month &&
  764. // _year == courseWorksCountYearArray[j].Year &&
  765. // this.hasCommonValue(this.gradeList, _type)
  766. // ) {
  767. // courseWorksCountYearArray[j][dayArray[_day]]++;
  768. // break;
  769. // }
  770. // } else if (this.lType1 == "subject") {
  771. // if (
  772. // _month == courseWorksCountYearArray[j].Month &&
  773. // _year == courseWorksCountYearArray[j].Year &&
  774. // this.hasCommonValue(this.subjectList2, _type)
  775. // ) {
  776. // courseWorksCountYearArray[j][dayArray[_day]]++;
  777. // break;
  778. // }
  779. // } else {
  780. // if (
  781. // _month == courseWorksCountYearArray[j].Month &&
  782. // _year == courseWorksCountYearArray[j].Year &&
  783. // this.hasCommonValue(this.thList, _type)
  784. // ) {
  785. // courseWorksCountYearArray[j][dayArray[_day]]++;
  786. // break;
  787. // }
  788. // }
  789. // }
  790. // }
  791. var worksCount = 0,
  792. haveWorksCourse = [];
  793. for (var i = 0; i < this.allCourseWorks1.length; i++) {
  794. // if (!this.allCourseWorks[i].pcount > 0) {
  795. // continue;
  796. // }
  797. let _type = this.allCourseWorks1[i].type
  798. ? this.allCourseWorks1[i].type.split(",")
  799. : [];
  800. if (this.lType1 == "all") {
  801. if (this.allCourseWorks1[i].id) {
  802. worksCount++;
  803. }
  804. if (haveWorksCourse.length == 0) {
  805. haveWorksCourse.push(this.allCourseWorks1[i].courseid);
  806. } else {
  807. if (
  808. haveWorksCourse.indexOf(this.allCourseWorks1[i].courseid) == -1
  809. ) {
  810. haveWorksCourse.push(this.allCourseWorks1[i].courseid);
  811. }
  812. }
  813. } else if (this.lType1 == "grade") {
  814. if (this.hasCommonValue(this.gradeList, _type)) {
  815. if (this.allCourseWorks1[i].id) {
  816. worksCount++
  817. }
  818. if (haveWorksCourse.length == 0) {
  819. haveWorksCourse.push(this.allCourseWorks1[i].courseid);
  820. } else {
  821. if (
  822. haveWorksCourse.indexOf(this.allCourseWorks1[i].courseid) == -1
  823. ) {
  824. haveWorksCourse.push(this.allCourseWorks1[i].courseid);
  825. }
  826. }
  827. }
  828. } else if (this.lType1 == "subject") {
  829. if (this.hasCommonValue(this.subjectList2, _type)) {
  830. if (this.allCourseWorks1[i].id) {
  831. worksCount++
  832. }
  833. if (haveWorksCourse.length == 0) {
  834. haveWorksCourse.push(this.allCourseWorks1[i].courseid);
  835. } else {
  836. if (
  837. haveWorksCourse.indexOf(this.allCourseWorks1[i].courseid) == -1
  838. ) {
  839. haveWorksCourse.push(this.allCourseWorks1[i].courseid);
  840. }
  841. }
  842. }
  843. } else {
  844. if (this.hasCommonValue(this.thList, _type)) {
  845. if (this.allCourseWorks1[i].id) {
  846. worksCount++
  847. }
  848. if (haveWorksCourse.length == 0) {
  849. haveWorksCourse.push(this.allCourseWorks1[i].courseid);
  850. } else {
  851. if (
  852. haveWorksCourse.indexOf(this.allCourseWorks1[i].courseid) == -1
  853. ) {
  854. haveWorksCourse.push(this.allCourseWorks1[i].courseid);
  855. }
  856. }
  857. }
  858. }
  859. }
  860. var courseJson = this.allCourseWorks;
  861. let _allTime = JSON.parse(JSON.stringify(this.allTimeList)).filter(
  862. (el) => {
  863. el.time = 0;
  864. return el;
  865. }
  866. );
  867. let _grade = JSON.parse(JSON.stringify(this.classList)).filter((el) => {
  868. el.time = 0;
  869. return el;
  870. });
  871. let _subject = JSON.parse(JSON.stringify(this.subjectList)).filter(
  872. (el) => {
  873. el.time = 0;
  874. return el;
  875. }
  876. );
  877. let _themeList = JSON.parse(JSON.stringify(this.themeList)).filter(
  878. (el) => {
  879. el.time = 0;
  880. return el;
  881. }
  882. );
  883. for (var i = 0; i < courseJson.length; i++) {
  884. for (var j = 0; j < _allTime.length; j++) {
  885. if (
  886. courseJson[i].typeid &&
  887. courseJson[i].typeid.indexOf(_allTime[j].id) != -1
  888. ) {
  889. if (_allTime[j].time) {
  890. _allTime[j].time += 1;
  891. } else {
  892. _allTime[j].time = 1;
  893. }
  894. }
  895. }
  896. for (var j = 0; j < _grade.length; j++) {
  897. if (
  898. courseJson[i].typeid &&
  899. courseJson[i].typeid.indexOf(_grade[j].id) != -1
  900. ) {
  901. if (_grade[j].time) {
  902. _grade[j].time += 1;
  903. } else {
  904. _grade[j].time = 1;
  905. }
  906. }
  907. }
  908. for (var k = 0; k < _subject.length; k++) {
  909. if (
  910. courseJson[i].typeid &&
  911. courseJson[i].typeid.indexOf(_subject[k].id) != -1
  912. ) {
  913. if (_subject[k].time) {
  914. _subject[k].time += 1;
  915. } else {
  916. _subject[k].time = 1;
  917. }
  918. }
  919. }
  920. for (var l = 0; l < _themeList.length; l++) {
  921. if (
  922. courseJson[i].typeid &&
  923. courseJson[i].typeid.indexOf(_themeList[l].id) != -1
  924. ) {
  925. if (_themeList[l].time) {
  926. _themeList[l].time += 1;
  927. } else {
  928. _themeList[l].time = 1;
  929. }
  930. }
  931. }
  932. }
  933. if (this.lType1 == "all") {
  934. this.tedurArray2 = _allTime;
  935. } else if (this.lType1 == "grade") {
  936. this.tedurArray2 = _grade;
  937. } else if (this.lType1 == "subject") {
  938. this.tedurArray2 = _subject;
  939. } else {
  940. this.tedurArray2 = _themeList;
  941. }
  942. this.courseWorksCountYearArray = courseWorksCountYearArray;
  943. this.worksCount = worksCount;
  944. this.haveWorksCourse = haveWorksCourse.length;
  945. this.$forceUpdate();
  946. },
  947. typeChange() {
  948. if (this.cType4 === "") {
  949. this.courseNumberArray = this.allArray;
  950. } else if (this.cType4 === "grade") {
  951. this.courseNumberArray = this.gradeArray;
  952. } else if (this.cType4 === "theme") {
  953. this.courseNumberArray = this.themeArray;
  954. } else if (this.cType4 === "subject") {
  955. this.courseNumberArray = this.subjectArray;
  956. }
  957. this.$forceUpdate();
  958. },
  959. getData() {
  960. this.isLoading = true;
  961. let params = [
  962. {
  963. oid: this.oid,
  964. org: this.org,
  965. },
  966. ];
  967. this.ajax
  968. .post(this.$store.state.api + "selectDataBoardCourseNew", params)
  969. .then((res) => {
  970. this.isLoading = false;
  971. let _grade = res.data[0]; //年级
  972. let _subject = JSON.parse(JSON.stringify(res.data[1])); //学科
  973. let _themeList = res.data[2]; //主题
  974. let _allTime = [..._grade, ..._subject, ..._themeList]; //年级 + 学科 + 主题
  975. this.allCourse = res.data[3][0].count; //课程总数
  976. let _timeCourse = res.data[4]; //查询半年内全部课程
  977. this.courseTemplate = res.data[5][0].count; //查询模板课程总数
  978. let tList = res.data[6]; //授课时长
  979. // let countCourseWorks = res.data[8][0].count; //获取有作业的课程
  980. this.courseTList = tList;
  981. //将数据根据time里面的月份分成多个数组
  982. let loginCountMonthArray = [];
  983. const date = new Date();
  984. var Month = date.getMonth() + 1;
  985. var Year = date.getFullYear();
  986. for (var i = Month; i > Month - 6; i--) {
  987. if (i <= 0) {
  988. loginCountMonthArray.push({
  989. Year: Year - 1,
  990. Month: 12 + i,
  991. course: 0,
  992. });
  993. } else {
  994. loginCountMonthArray.push({
  995. Month: i,
  996. Year: Year,
  997. course: 0,
  998. });
  999. }
  1000. }
  1001. loginCountMonthArray = loginCountMonthArray.reverse();
  1002. for (var i = 0; i < _timeCourse.length; i++) {
  1003. let _date = new Date(_timeCourse[i].time);
  1004. var _month = _date.getMonth() + 1;
  1005. var _year = _date.getFullYear();
  1006. for (var j = 0; j < loginCountMonthArray.length; j++) {
  1007. if (
  1008. _month == loginCountMonthArray[j].Month &&
  1009. _year == loginCountMonthArray[j].Year
  1010. ) {
  1011. loginCountMonthArray[j].course++;
  1012. break;
  1013. }
  1014. }
  1015. }
  1016. this.loginCountMonthArray = loginCountMonthArray;
  1017. tList.forEach((element) => {
  1018. element.text = element.text ? element.text : 0;
  1019. });
  1020. var courseJson = Object.values(
  1021. tList.reduce(function (acc, obj) {
  1022. if (!acc[obj.courseId]) {
  1023. acc[obj.courseId] = { ...obj };
  1024. acc[obj.courseId].typeid = [acc[obj.courseId].typeid];
  1025. } else {
  1026. // if (!acc[obj.courseId].typeid.includes(obj.typeid)) {
  1027. // acc[obj.courseId].typeid.push(obj.typeid);
  1028. // }
  1029. let _typeA = obj.type ? obj.type.split(",") : [];
  1030. for (var i = 0; i < _typeA.length; i++) {
  1031. if (!acc[obj.courseId].typeid.includes(_typeA[i])) {
  1032. acc[obj.courseId].typeid.push(_typeA[i]);
  1033. }
  1034. }
  1035. acc[obj.courseId].text =
  1036. parseInt(acc[obj.courseId].text) + parseInt(obj.text);
  1037. }
  1038. return acc;
  1039. }, {})
  1040. ).map(function (obj) {
  1041. var totalTime = parseInt(obj.text);
  1042. obj.text = (totalTime / (60 * 60)).toFixed(0);
  1043. return obj;
  1044. });
  1045. for (var i = 0; i < courseJson.length; i++) {
  1046. for (var j = 0; j < _allTime.length; j++) {
  1047. if (
  1048. courseJson[i].typeid &&
  1049. courseJson[i].typeid.indexOf(_allTime[j].id) != -1
  1050. ) {
  1051. if (_allTime[j].time && courseJson[i].text) {
  1052. _allTime[j].time += parseInt(courseJson[i].text);
  1053. } else if (courseJson[i].text) {
  1054. _allTime[j].time = parseInt(courseJson[i].text);
  1055. }
  1056. }
  1057. }
  1058. for (var j = 0; j < _grade.length; j++) {
  1059. if (
  1060. courseJson[i].typeid &&
  1061. courseJson[i].typeid.indexOf(_grade[j].id) != -1
  1062. ) {
  1063. if (_grade[j].time && courseJson[i].text) {
  1064. _grade[j].time += parseInt(courseJson[i].text);
  1065. } else if (courseJson[i].text) {
  1066. _grade[j].time = parseInt(courseJson[i].text);
  1067. }
  1068. }
  1069. }
  1070. for (var k = 0; k < _subject.length; k++) {
  1071. if (
  1072. courseJson[i].typeid &&
  1073. courseJson[i].typeid.indexOf(_subject[k].id) != -1
  1074. ) {
  1075. if (_subject[k].time && courseJson[i].text) {
  1076. _subject[k].time += parseInt(courseJson[i].text);
  1077. } else if (courseJson[i].text) {
  1078. _subject[k].time = parseInt(courseJson[i].text);
  1079. }
  1080. }
  1081. }
  1082. for (var l = 0; l < _themeList.length; l++) {
  1083. if (
  1084. courseJson[i].typeid &&
  1085. courseJson[i].typeid.indexOf(_themeList[l].id) != -1
  1086. ) {
  1087. if (_themeList[l].time && courseJson[i].text) {
  1088. _themeList[l].time += parseInt(courseJson[i].text);
  1089. } else if (courseJson[i].text) {
  1090. _themeList[l].time = parseInt(courseJson[i].text);
  1091. }
  1092. }
  1093. }
  1094. }
  1095. this.allTimeList = _allTime;
  1096. this.classList = _grade;
  1097. this.subjectList = _subject;
  1098. this.themeList = _themeList;
  1099. var _gradeList = [],
  1100. _subjectList = [],
  1101. _thList = [];
  1102. for (var i = 0; i < _grade.length; i++) {
  1103. _gradeList.push(_grade[i].id);
  1104. }
  1105. for (var i = 0; i < _subject.length; i++) {
  1106. _subjectList.push(_subject[i].id);
  1107. }
  1108. for (var i = 0; i < _themeList.length; i++) {
  1109. _thList.push(_themeList[i].id);
  1110. }
  1111. var _courseTypeList = this.courseTList;
  1112. var _gList = [],
  1113. _sList = [],
  1114. _tList = [],
  1115. _timeList = [];
  1116. for (var i = 0; i < _courseTypeList.length; i++) {
  1117. if (_timeList.length == 0) {
  1118. _timeList.push(_courseTypeList[i].courseId);
  1119. } else {
  1120. if (_timeList.indexOf(_courseTypeList[i].courseId) == -1) {
  1121. _timeList.push(_courseTypeList[i].courseId);
  1122. }
  1123. }
  1124. if (_gradeList.indexOf(_courseTypeList[i].typeid) != -1) {
  1125. if (_gList.length == 0) {
  1126. _gList.push(_courseTypeList[i].courseId);
  1127. } else {
  1128. if (_gList.indexOf(_courseTypeList[i].courseId) == -1) {
  1129. _gList.push(_courseTypeList[i].courseId);
  1130. }
  1131. }
  1132. }
  1133. if (_subjectList.indexOf(_courseTypeList[i].typeid) != -1) {
  1134. if (_sList.length == 0) {
  1135. _sList.push(_courseTypeList[i].courseId);
  1136. } else {
  1137. if (_sList.indexOf(_courseTypeList[i].courseId) == -1) {
  1138. _sList.push(_courseTypeList[i].courseId);
  1139. }
  1140. }
  1141. }
  1142. if (_thList.indexOf(_courseTypeList[i].typeid) != -1) {
  1143. if (_tList.length == 0) {
  1144. _tList.push(_courseTypeList[i].courseId);
  1145. } else {
  1146. if (_tList.indexOf(_courseTypeList[i].courseId) == -1) {
  1147. _tList.push(_courseTypeList[i].courseId);
  1148. }
  1149. }
  1150. }
  1151. }
  1152. this.allTimeLength = _timeList.length;
  1153. this.gradeLength = _gList.length;
  1154. this.subjectLength = _sList.length;
  1155. this.themeLength = _tList.length;
  1156. let allCourseWorks = res.data[7]; //作业总数量
  1157. let threeMouthCourseWorks = res.data[10]; //近三个月作业总数量
  1158. this.allCourseWorks = allCourseWorks;
  1159. this.allCourseWorks1 = threeMouthCourseWorks;
  1160. this.gradeList = _gradeList;
  1161. this.subjectList2 = _subjectList;
  1162. this.thList = _thList;
  1163. this.typeChange2();
  1164. this.typeChange1();
  1165. let _course = res.data[6]; //课程
  1166. let _gradeArray = [];
  1167. let _subjectArray = [];
  1168. let _themeArray = [];
  1169. for (var i = 0; i < _grade.length; i++) {
  1170. _gradeArray.push({
  1171. name: _grade[i].name,
  1172. typeid: _grade[i].id,
  1173. course: 0,
  1174. array: [],
  1175. });
  1176. for (var z = 0; z < _course.length; z++) {
  1177. if (
  1178. _course[z].type &&
  1179. _course[z].type.indexOf(_grade[i].id) !== -1
  1180. ) {
  1181. _gradeArray[i].course++;
  1182. _gradeArray[i].array.push(_course[z].courseId);
  1183. }
  1184. }
  1185. }
  1186. for (var i = 0; i < _subject.length; i++) {
  1187. _subjectArray.push({
  1188. name: _subject[i].name,
  1189. typeid: _subject[i].id,
  1190. course: 0,
  1191. array: [],
  1192. });
  1193. for (var z = 0; z < _course.length; z++) {
  1194. if (
  1195. _course[z].typeid &&
  1196. _course[z].typeid.indexOf(_subject[i].id) !== -1
  1197. ) {
  1198. _subjectArray[i].course++;
  1199. _subjectArray[i].array.push(_course[z].courseId);
  1200. }
  1201. }
  1202. }
  1203. for (var i = 0; i < _themeList.length; i++) {
  1204. _themeArray.push({
  1205. name: _themeList[i].name,
  1206. typeid: _themeList[i].id,
  1207. course: 0,
  1208. array: [],
  1209. });
  1210. for (var z = 0; z < _course.length; z++) {
  1211. if (
  1212. _course[z].typeid &&
  1213. _course[z].typeid.indexOf(_themeList[i].id) !== -1
  1214. ) {
  1215. _themeArray[i].course++;
  1216. _themeArray[i].array.push(_course[z].courseId);
  1217. }
  1218. }
  1219. }
  1220. this.gradeArray = _gradeArray;
  1221. this.subjectArray = _subjectArray;
  1222. this.themeArray = _themeArray;
  1223. this.allArray = [..._gradeArray, ..._subjectArray, ..._themeArray];
  1224. this.typeChange();
  1225. var courseList = res.data[6];
  1226. var cList = [];
  1227. for (var i = 0; i < courseList.length; i++) {
  1228. cList.push(JSON.parse(courseList[i].chapters));
  1229. }
  1230. var toolList = [
  1231. [10, 65], //互动类
  1232. [7, 1, 52, 3, 48], //思维类
  1233. [49], //协作类
  1234. [4, 45, 15, 16, 50, 41, 47], //测评类
  1235. [40], //评价类
  1236. [18, 21, 22, 23, 24, 32, 57, 63], //编程类
  1237. [28, 31, 39, 66, 67, 68], //学科类
  1238. ];
  1239. var toolAllArray = [
  1240. { name: "互动类", value: 0 },
  1241. { name: "思维类", value: 0 },
  1242. { name: "协作类", value: 0 },
  1243. { name: "测评类", value: 0 },
  1244. { name: "评价类", value: 0 },
  1245. { name: "编程类", value: 0 },
  1246. { name: "学科类", value: 0 },
  1247. ];
  1248. for (var p = 0; p < toolList.length; p++) {
  1249. for (var i = 0; i < cList.length; i++) {
  1250. for (var j = 0; j < cList[i].length; j++) {
  1251. for (
  1252. var k = 0;
  1253. k < cList[i][j].chapterInfo[0].taskJson.length;
  1254. k++
  1255. ) {
  1256. for (
  1257. var q = 0;
  1258. q <
  1259. cList[i][j].chapterInfo[0].taskJson[k].toolChoose.length;
  1260. q++
  1261. ) {
  1262. if (
  1263. toolList[p].indexOf(
  1264. cList[i][j].chapterInfo[0].taskJson[k].toolChoose[q]
  1265. .tool[0]
  1266. ) != -1
  1267. ) {
  1268. toolAllArray[p].value++;
  1269. }
  1270. }
  1271. }
  1272. }
  1273. }
  1274. }
  1275. this.toolList = toolAllArray;
  1276. var twoPerson = 0,
  1277. threePerson = 0,
  1278. fivePerson = 0,
  1279. sevenPerson = 0;
  1280. var personList = [];
  1281. for (var i = 0; i < courseList.length; i++) {
  1282. if (courseList[i].course_teacher) {
  1283. if (courseList[i].course_teacher.split(",").length <= 2) {
  1284. twoPerson++;
  1285. } else if (
  1286. 4 >= courseList[i].course_teacher.split(",").length &&
  1287. courseList[i].course_teacher.split(",").length > 2
  1288. ) {
  1289. threePerson++;
  1290. } else if (
  1291. 6 >= courseList[i].course_teacher.split(",").length &&
  1292. courseList[i].course_teacher.split(",").length > 4
  1293. ) {
  1294. fivePerson++;
  1295. } else if (courseList[i].course_teacher.split(",").length > 7) {
  1296. sevenPerson++;
  1297. }
  1298. }
  1299. }
  1300. personList.push(
  1301. { name: "2人以下", value: twoPerson },
  1302. { name: "3-4人", value: threePerson },
  1303. { name: "5-6人", value: fivePerson },
  1304. { name: "7人以上", value: sevenPerson }
  1305. );
  1306. this.personList = personList;
  1307. // let _workCourse = res.data[10]; //带作业的课程
  1308. let _workCourse = res.data[7].filter((el) => {
  1309. return el.pcount > 0;
  1310. }); //带作业的课程
  1311. let _taskCount = 0; //任务数量
  1312. var wList = [];
  1313. for (var i = 0; i < _workCourse.length; i++) {
  1314. if (!wList[_workCourse[i].courseId]) {
  1315. wList[_workCourse[i].courseId] = {
  1316. cid: _workCourse[i].courseId,
  1317. title: _workCourse[i].title,
  1318. task: 0,
  1319. work: _workCourse[i].pcount,
  1320. };
  1321. let chapters = JSON.parse(_workCourse[i].chapters);
  1322. for (var j = 0; j < chapters.length; j++) {
  1323. if (wList[_workCourse[i].courseId].task == 0) {
  1324. wList[_workCourse[i].courseId].task =
  1325. chapters[j].chapterInfo[0].taskJson.length;
  1326. } else {
  1327. wList[_workCourse[i].courseId].task +=
  1328. chapters[j].chapterInfo[0].taskJson.length;
  1329. }
  1330. _taskCount += chapters[j].chapterInfo[0].taskJson.length;
  1331. }
  1332. }
  1333. }
  1334. // for (var i = 0; i < _workCourse.length; i++) {
  1335. // let a = Object.keys(wList);
  1336. // for (var j = 0; j < Object.keys(wList).length; j++) {
  1337. // if (
  1338. // _workCourse[i].courseId == wList[a[j]].cid &&
  1339. // _workCourse[i].id
  1340. // ) {
  1341. // wList[a[j]].work++;
  1342. // }
  1343. // }
  1344. // }
  1345. var workNumList = Object.values(wList).map((item) => [
  1346. item.task,
  1347. item.work,
  1348. item.title,
  1349. item.cid,
  1350. ]);
  1351. this.workNumList = workNumList;
  1352. this.taskCount = _taskCount;
  1353. this.workCount = _workCourse.length;
  1354. let kcourse = res.data[6];
  1355. let kJson = {};
  1356. for (let i = 0; i < kcourse.length; i++) {
  1357. if (!kJson[kcourse[i].courseId] && kcourse[i].text > 0) {
  1358. kJson[kcourse[i].courseId] = {
  1359. cid: kcourse[i].courseId,
  1360. title: kcourse[i].title,
  1361. };
  1362. }
  1363. }
  1364. let kArray = Object.values(kJson);
  1365. // this.isCourseCount = res.data[11][0].count; //课程开展总数
  1366. this.isCourseCount = kArray.length; //课程开展总数
  1367. // this.allCourseCount = res.data[9].length; //课程总数
  1368. this.allCourseCount = res.data[3][0].count;
  1369. let _gradeCourse = 0; //各年级上传课程
  1370. let _subjectCourse = 0; //各学科上传课程
  1371. let _courseArray = [];
  1372. // _subject.push({ name: "其他" });
  1373. for (var i = 0; i < _grade.length; i++) {
  1374. _courseArray.push({
  1375. name: _grade[i].name,
  1376. id: _grade[i].id,
  1377. courseid: [],
  1378. subject: [],
  1379. });
  1380. for (var z = 0; z < _course.length; z++) {
  1381. if (
  1382. _course[z].type &&
  1383. _course[z].type.indexOf(_grade[i].id) !== -1
  1384. ) {
  1385. _gradeCourse++;
  1386. if (
  1387. _courseArray[i].courseid.indexOf(_course[z].courseId) === -1
  1388. ) {
  1389. _courseArray[i].courseid.push(_course[z].courseId);
  1390. }
  1391. }
  1392. }
  1393. for (var j = 0; j < _subject.length; j++) {
  1394. _courseArray[i].subject.push({
  1395. name: _subject[j].name,
  1396. id: _subject[j].id,
  1397. course: 0,
  1398. });
  1399. for (var z = 0; z < _course.length; z++) {
  1400. if (
  1401. _course[z].type &&
  1402. _course[z].type.indexOf(_subject[j].id) !== -1 &&
  1403. _courseArray[i].courseid.indexOf(_course[z].courseId) !== -1
  1404. ) {
  1405. _courseArray[i].subject[j].course++;
  1406. }
  1407. }
  1408. }
  1409. let sum = 0;
  1410. for (var j = 0; j < _courseArray[i].subject.length - 1; j++) {
  1411. sum += _courseArray[i].subject[j].course;
  1412. }
  1413. // _courseArray[i].subject[_courseArray[i].subject.length - 1].course =
  1414. // _courseArray[i].courseid.length - sum < 0
  1415. // ? 0
  1416. // : _courseArray[i].courseid.length - sum;
  1417. }
  1418. for (var j = 0; j < _subject.length; j++) {
  1419. for (var z = 0; z < _course.length; z++) {
  1420. if (
  1421. _course[z].typeid &&
  1422. _course[z].typeid.indexOf(_subject[j].id) !== -1
  1423. ) {
  1424. _subjectCourse++;
  1425. }
  1426. }
  1427. }
  1428. this.courseArray = _courseArray;
  1429. this.evaCount = res.data[8][0].count; //设置评价
  1430. this.evaWorksCount = res.data[9][0].count; //查询有目标并且有评价的作业
  1431. for (var i = 0; i < this.pusaDep.length; i++) {
  1432. if (this.pusaDep[i].name == "课程总数") {
  1433. this.pusaDep[i].value = (
  1434. (this.allCourse / this.allCourse) *
  1435. 100
  1436. ).toFixed(0);
  1437. } else if (this.pusaDep[i].name == "设置评价课程") {
  1438. this.pusaDep[i].value = (
  1439. (this.evaCount / this.allCourse) *
  1440. 100
  1441. ).toFixed(0);
  1442. } else if (this.pusaDep[i].name == "已提交作业课程") {
  1443. this.pusaDep[i].value = (
  1444. (this.haveWorksCourse / this.allCourse) *
  1445. 100
  1446. ).toFixed(0);
  1447. } else if (this.pusaDep[i].name == "已评价课程") {
  1448. this.pusaDep[i].value = (
  1449. (this.evaWorksCount / this.allCourse) *
  1450. 100
  1451. ).toFixed(0);
  1452. } else if (this.pusaDep[i].name == "教学评一体化课程") {
  1453. this.pusaDep[i].value = (
  1454. (this.evaWorksCount / this.allCourse) *
  1455. 100
  1456. ).toFixed(0);
  1457. }
  1458. }
  1459. var today = new Date();
  1460. var lastDayOfWeek = new Date(
  1461. today.setDate(today.getDate() - today.getDay() + 7)
  1462. ); //本周周日
  1463. let weekArray = {
  1464. lastWeek: [], //上周
  1465. toWeek: [], //本周
  1466. };
  1467. // for (var i = 0; i < 14; i++) {
  1468. // let time = JSON.parse(JSON.stringify(lastDayOfWeek));
  1469. // let time2 = new Date(time);
  1470. // var a = new Date(time2.setDate(time2.getDate() - i));
  1471. // if (i > 6) {
  1472. // weekArray.lastWeek.push(
  1473. // a.getFullYear() + "-" + (a.getMonth() + 1) + "-" + a.getDate()
  1474. // );
  1475. // } else {
  1476. // weekArray.toWeek.push(
  1477. // a.getFullYear() + "-" + (a.getMonth() + 1) + "-" + a.getDate()
  1478. // );
  1479. // }
  1480. // }
  1481. weekArray = this.getMonth();
  1482. let weekCourse = [];
  1483. let weekCourse2 = [];
  1484. let lastWeekCouseCount = 0;
  1485. let toWeekCouseCount = 0;
  1486. for (var z = 0; z < _course.length; z++) {
  1487. let _date = new Date(weekArray.lastWeek[0]);
  1488. if (
  1489. new Date(_course[z].create_at) > _date
  1490. // && _course[z].pid == "34628934-d02f-11ec-8c78-005056b86db5"
  1491. ) {
  1492. weekCourse.push(_course[z]);
  1493. var a = new Date(_course[z].create_at);
  1494. var string =
  1495. a.getFullYear() + "-" + (a.getMonth() + 1) + "-" + a.getDate();
  1496. if (weekArray.lastWeek.indexOf(string) != -1) {
  1497. lastWeekCouseCount++;
  1498. } else {
  1499. toWeekCouseCount++;
  1500. }
  1501. }
  1502. }
  1503. let lastCourseidWeek = [];
  1504. let toCourseidWeek = [];
  1505. for (var i = 0; i < _grade.length; i++) {
  1506. weekCourse2.push({
  1507. name: _grade[i].name,
  1508. id: _grade[i].id,
  1509. lastCourse: 0,
  1510. toCourse: 0,
  1511. });
  1512. for (var z = 0; z < weekCourse.length; z++) {
  1513. if (
  1514. weekCourse[z].type &&
  1515. weekCourse[z].type.indexOf(_grade[i].id) !== -1
  1516. ) {
  1517. var a = new Date(weekCourse[z].create_at);
  1518. var string =
  1519. a.getFullYear() +
  1520. "-" +
  1521. (a.getMonth() + 1) +
  1522. "-" +
  1523. a.getDate();
  1524. if (weekArray.lastWeek.indexOf(string) != -1) {
  1525. weekCourse2[i].lastCourse++;
  1526. if (lastCourseidWeek.indexOf(weekCourse[z].courseId) === -1) {
  1527. lastCourseidWeek.push(weekCourse[z].courseId);
  1528. }
  1529. } else {
  1530. weekCourse2[i].toCourse++;
  1531. if (toCourseidWeek.indexOf(weekCourse[z].courseId) === -1) {
  1532. toCourseidWeek.push(weekCourse[z].courseId);
  1533. }
  1534. }
  1535. }
  1536. }
  1537. }
  1538. // weekCourse2.push({
  1539. // name: "其他",
  1540. // id: "",
  1541. // lastCourse:
  1542. // lastWeekCouseCount - lastCourseidWeek.length > 0
  1543. // ? lastWeekCouseCount - lastCourseidWeek.length
  1544. // : 0,
  1545. // toCourse:
  1546. // toWeekCouseCount - toCourseidWeek.length > 0
  1547. // ? toWeekCouseCount - toCourseidWeek.length
  1548. // : 0,
  1549. // });
  1550. this.weekCourse2 = weekCourse2;
  1551. let CourseLabel = res.data[6]; //带分类的课程
  1552. let _subject2 = JSON.parse(JSON.stringify(res.data[1]));
  1553. const resultSubject = [];
  1554. for (let i = 0; i < _subject2.length - 1; i++) {
  1555. for (let j = i + 1; j < _subject2.length; j++) {
  1556. resultSubject.push({
  1557. id: [_subject2[i].id, _subject2[j].id],
  1558. name: [_subject2[i].name, _subject2[j].name],
  1559. count: 0,
  1560. });
  1561. }
  1562. }
  1563. for (var i = 0; i < CourseLabel.length; i++) {
  1564. if (!CourseLabel[i].type) {
  1565. continue;
  1566. }
  1567. let array = CourseLabel[i].type.split(",");
  1568. for (var j = 0; j < resultSubject.length; j++) {
  1569. if (this.checkArrayInclusion(resultSubject[j].id, array)) {
  1570. resultSubject[j].count++;
  1571. }
  1572. }
  1573. }
  1574. let resultSubject2 = [];
  1575. for (var i = 0; i < resultSubject.length; i++) {
  1576. let el = resultSubject[i];
  1577. if (el.count > 0) {
  1578. resultSubject2.push([el.name[0], el.name[1], el.count]);
  1579. }
  1580. }
  1581. this.resultSubject = resultSubject2;
  1582. console.log(resultSubject);
  1583. this.$forceUpdate();
  1584. })
  1585. .catch((err) => {
  1586. this.isLoading = false;
  1587. this.$message.error(
  1588. "因加载数据量过大,服务器统计异常,请联系管理员。"
  1589. );
  1590. console.error(err);
  1591. });
  1592. },
  1593. checkArrayInclusion(arr1, arr2) {
  1594. return arr1.every((item) => arr2.includes(item));
  1595. },
  1596. hasCommonValue(arr1, arr2) {
  1597. const set1 = new Set(arr1);
  1598. for (const val of arr2) {
  1599. if (set1.has(val)) {
  1600. return true;
  1601. }
  1602. }
  1603. return false;
  1604. },
  1605. },
  1606. };
  1607. </script>
  1608. <style scoped>
  1609. .body1 {
  1610. width: 100%;
  1611. height: 100%;
  1612. display: flex;
  1613. padding: 20px;
  1614. box-sizing: border-box;
  1615. overflow: hidden;
  1616. position: relative;
  1617. }
  1618. .left {
  1619. width: calc(100% / 4 * 1);
  1620. height: 100%;
  1621. }
  1622. .left>.top {
  1623. width: 100%;
  1624. height: calc(100% / 5 * 2.7 - 5px);
  1625. /* background: #fff; */
  1626. border-radius: 5px;
  1627. margin: 0 0 10px 0;
  1628. background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(224, 234, 251, 0.8) 100%);
  1629. border: 2px solid #fff;
  1630. box-sizing: border-box;
  1631. }
  1632. .left>.bottom {
  1633. width: 100%;
  1634. height: calc(100% / 5 * 2.3 - 5px);
  1635. /* background: #fff; */
  1636. border-radius: 5px;
  1637. background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(224, 234, 251, 0.8) 100%);
  1638. border: 2px solid #fff;
  1639. box-sizing: border-box;
  1640. }
  1641. .center {
  1642. width: calc(100% / 4 * 2 - 20px);
  1643. height: 100%;
  1644. margin: 0 10px;
  1645. }
  1646. .center>.top {
  1647. width: 100%;
  1648. height: calc(100% / 5 * 2.7 - 5px);
  1649. /* background: #fff; */
  1650. border-radius: 5px;
  1651. margin: 0 0 10px 0;
  1652. background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(224, 234, 251, 0.8) 100%);
  1653. border: 2px solid #fff;
  1654. box-sizing: border-box;
  1655. }
  1656. .center>.bottom {
  1657. width: 100%;
  1658. height: calc(100% / 5 * 2.3 - 5px);
  1659. /* background: #fff; */
  1660. border-radius: 5px;
  1661. background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(224, 234, 251, 0.8) 100%);
  1662. border: 2px solid #fff;
  1663. box-sizing: border-box;
  1664. }
  1665. .right {
  1666. width: calc(100% / 4 * 1);
  1667. height: 100%;
  1668. }
  1669. .right>.top {
  1670. width: 100%;
  1671. height: calc(100% / 5 * 2.7 - 5px);
  1672. /* background: #fff; */
  1673. border-radius: 16px;
  1674. margin: 0 0 10px 0;
  1675. background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(224, 234, 251, 0.8) 100%);
  1676. border: 2px solid #fff;
  1677. box-sizing: border-box;
  1678. }
  1679. .right>.bottom {
  1680. width: 100%;
  1681. height: calc(100% / 5 * 2.3 - 5px);
  1682. /* background: #fff; */
  1683. border-radius: 5px;
  1684. background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(224, 234, 251, 0.8) 100%);
  1685. border: 2px solid #fff;
  1686. box-sizing: border-box;
  1687. }
  1688. .courseCenterTop {
  1689. display: flex;
  1690. justify-content: space-between;
  1691. align-items: center;
  1692. }
  1693. .titleBox {
  1694. height: 40px;
  1695. display: flex;
  1696. align-items: center;
  1697. padding: 0 15px;
  1698. box-sizing: border-box;
  1699. width: 100%;
  1700. position: relative;
  1701. }
  1702. .titleBox::after {
  1703. content: '';
  1704. position: absolute;
  1705. height: 2px;
  1706. width: calc(100% - 30px);
  1707. bottom: 0;
  1708. background: linear-gradient(90deg, rgba(54, 129, 252, 0.6) 0%, rgba(54, 129, 252, 0.1) 100%);
  1709. }
  1710. .allScreen {
  1711. min-width: 20px;
  1712. width: 20px;
  1713. height: 20px;
  1714. padding: 0 15px;
  1715. cursor: pointer;
  1716. }
  1717. .allScreen>img {
  1718. width: 100%;
  1719. height: 100%;
  1720. }
  1721. .dataBox {
  1722. height: calc(100% - 40px);
  1723. width: 100%;
  1724. }
  1725. .middleBox {
  1726. display: flex;
  1727. flex-direction: row;
  1728. flex-wrap: nowrap;
  1729. align-items: flex-start;
  1730. }
  1731. .title {
  1732. color: #060e17;
  1733. margin-right: 25px;
  1734. font-weight: 700;
  1735. display: flex;
  1736. align-items: center;
  1737. }
  1738. .title::before{
  1739. content: '';
  1740. background-image: url('../../../../assets/icon/test/data_title_icon.png');
  1741. background-size: 100% 100%;
  1742. width: 20px;
  1743. height: 20px;
  1744. margin-right: 5px;
  1745. }
  1746. .teaMiddle {
  1747. width: calc(100% / 2 - 10px);
  1748. height: 60px;
  1749. border-radius: 8px;
  1750. /* border: 1px solid #e0eafb; */
  1751. display: flex;
  1752. flex-direction: column;
  1753. align-items: flex-start;
  1754. justify-content: center;
  1755. padding: 0 10px;
  1756. margin: 0 10px;
  1757. }
  1758. .teaMiddle {
  1759. width: calc(100% / 3 - 10px);
  1760. }
  1761. .cNum {
  1762. background: linear-gradient(180deg,
  1763. rgb(125, 227, 174, 0.2) 0%,
  1764. rgb(23, 196, 105, 0.3) 100%) !important;
  1765. }
  1766. .tNum {
  1767. background: linear-gradient(180deg,
  1768. rgb(174, 204, 254, 0.2) 0%,
  1769. rgb(54, 129, 252, 0.3) 100%) !important;
  1770. }
  1771. .tSum {
  1772. background: linear-gradient(180deg,
  1773. rgb(125, 227, 174, 0.2) 0%,
  1774. rgb(23, 196, 105, 0.3) 100%) !important;
  1775. }
  1776. .teaLeft>div:first-child,
  1777. .teaMiddle>div:first-child {
  1778. font-size: 12px;
  1779. font-weight: 400;
  1780. color: #565e6a;
  1781. }
  1782. .teaLeft>div:last-child,
  1783. .teaMiddle>div:last-child {
  1784. font-size: 22px;
  1785. font-weight: bold;
  1786. color: #060e17;
  1787. }
  1788. .halfBox {
  1789. width: 50%;
  1790. height: 100%;
  1791. }
  1792. .selectBox {
  1793. width: 80px;
  1794. margin-left: 10px;
  1795. }
  1796. .selectBox>>>.el-input__inner {
  1797. height: 30px;
  1798. line-height: 30px;
  1799. border: 1px solid #3681FC;
  1800. }
  1801. .selectBox>>>.el-input__icon {
  1802. line-height: 30px;
  1803. }
  1804. .timeDiv {
  1805. display: flex;
  1806. flex-direction: row;
  1807. flex-wrap: nowrap;
  1808. align-items: center;
  1809. margin: 0 0 0 15px;
  1810. }
  1811. .timeDiv>div {
  1812. margin-right: 10px;
  1813. cursor: pointer;
  1814. }
  1815. .isClick {
  1816. /* color: #1684fc;
  1817. border-bottom: 2px solid #1684fc; */
  1818. box-sizing: border-box;
  1819. }
  1820. .noClick{
  1821. font-weight: 500;
  1822. opacity: .6;
  1823. }
  1824. .otherCss {
  1825. display: flex;
  1826. flex-direction: row;
  1827. flex-wrap: nowrap;
  1828. align-items: center;
  1829. justify-content: flex-end;
  1830. }
  1831. .otherImg {
  1832. width: 20px;
  1833. height: 20px;
  1834. margin: 0 10px;
  1835. cursor: pointer;
  1836. }
  1837. .otherImg>img {
  1838. width: 100%;
  1839. height: 100%;
  1840. }
  1841. .allBox {
  1842. width: 100%;
  1843. height: 100%;
  1844. display: flex;
  1845. flex-direction: row;
  1846. flex-wrap: nowrap;
  1847. align-items: center;
  1848. }
  1849. .allBox_left {
  1850. width: 30%;
  1851. height: 100%;
  1852. }
  1853. .allBox_right {
  1854. display: flex;
  1855. flex-wrap: wrap;
  1856. height: 100%;
  1857. width: 70%;
  1858. margin: 0 auto;
  1859. overflow: hidden;
  1860. justify-content: space-between;
  1861. }
  1862. .depth {
  1863. width: calc(100% / 4 - 10px);
  1864. display: flex;
  1865. flex-direction: column;
  1866. align-items: center;
  1867. justify-content: center;
  1868. }
  1869. .depth>span:nth-child(1) {
  1870. font-size: 14px;
  1871. font-weight: 700;
  1872. margin: 0 0 10px;
  1873. }
  1874. .depth>div:nth-child(1) {}
  1875. .info_box {
  1876. display: flex;
  1877. flex-wrap: wrap;
  1878. align-items: center;
  1879. justify-content: space-between;
  1880. width: 90%;
  1881. margin: 0 auto;
  1882. }
  1883. .info_box>.info2,
  1884. .info_box>.info3,
  1885. .info_box>.info {
  1886. width: calc(50% - 10px);
  1887. display: flex;
  1888. flex-direction: column-reverse;
  1889. flex-wrap: nowrap;
  1890. height: 60px;
  1891. justify-content: center;
  1892. /* align-items: center; */
  1893. padding: 0 10px;
  1894. box-sizing: border-box;
  1895. margin-bottom: 10px;
  1896. border-radius: 5px;
  1897. }
  1898. .info_box>.info2 {
  1899. width: calc(100% / 4 - 10px);
  1900. /* align-items: flex-end; */
  1901. }
  1902. .info_box>.info3 {
  1903. width: 100%;
  1904. margin-bottom: 5px;
  1905. }
  1906. .info_box>.info2>span:nth-child(1),
  1907. .info_box>.info3>span:nth-child(1),
  1908. .info_box>.info>span:nth-child(1) {
  1909. font-size: 12px;
  1910. /* margin: 0 0 0 20px; */
  1911. color: #565e6a;
  1912. /* width: 60px; */
  1913. white-space: pre-wrap;
  1914. word-break: break-all;
  1915. }
  1916. .info_box>.info2>span:nth-child(2),
  1917. .info_box>.info3>span:nth-child(2),
  1918. .info_box>.info>span:nth-child(2) {
  1919. font-size: 24px;
  1920. font-weight: 700;
  1921. }
  1922. .blueBG {
  1923. /* background: rgb(243, 248, 253);
  1924. border: 2px solid rgb(234, 246, 255); */
  1925. }
  1926. .dialog_diy>>>.el-dialog {
  1927. height: 100%;
  1928. margin: 0vh auto !important;
  1929. }
  1930. .dialog_diy>>>.el-dialog__header {
  1931. background: #454545 !important;
  1932. padding: 15px 20px;
  1933. }
  1934. .dialog_diy>>>.el-dialog__body {
  1935. height: calc(100% - 124px);
  1936. box-sizing: border-box;
  1937. padding: 0px;
  1938. }
  1939. .dialog_diy>>>.el-dialog__title {
  1940. color: #fff;
  1941. }
  1942. .dialog_diy>>>.el-dialog__headerbtn {
  1943. top: 19px;
  1944. }
  1945. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  1946. color: #fff;
  1947. }
  1948. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  1949. color: #fff;
  1950. }
  1951. .dialog_diy>>>.el-dialog__body,
  1952. .dialog_diy>>>.el-dialog__footer {
  1953. background: rgb(rgb(240, 242, 245));
  1954. overflow: hidden;
  1955. }
  1956. </style>