courseDetail.vue 93 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082
  1. <template>
  2. <div class="pb_content">
  3. <div class="pb_content_body" style="height: 100%">
  4. <div class="body_student">
  5. <div class="student_head">
  6. <div
  7. v-if="screenType != 2"
  8. class="return"
  9. @click.stop="
  10. goTo(
  11. '/index?userid=' +
  12. userid +
  13. '&oid=' +
  14. oid +
  15. '&org=' +
  16. org +
  17. '&cid=' +
  18. classId +
  19. '&tType=' +
  20. tType +
  21. '&screenType=' +
  22. screenType
  23. )
  24. "
  25. >
  26. <div class="returnIndexImg">
  27. <img src="../assets/icon/newIcon/returnIndex.png" alt="" />
  28. </div>
  29. <div>返回</div>
  30. <!-- <img src="../assets/icon/return.png" alt="" /> -->
  31. </div>
  32. <div class="box_course">
  33. <div class="wheel">
  34. <img
  35. style="object-fit: cover"
  36. :src="
  37. this.courseDetail.cover != null &&
  38. this.courseDetail.cover != ''
  39. ? JSON.parse(this.courseDetail.cover).length > 0
  40. ? JSON.parse(this.courseDetail.cover)[0].url
  41. : mr
  42. : mr
  43. "
  44. alt
  45. />
  46. </div>
  47. <div class="right_box">
  48. <div class="rightT">
  49. <div class="right_box_title">{{ courseDetail.title }}</div>
  50. <div class="jd">{{ chapInfo.length }}阶段</div>
  51. <div class="jd">{{ rw }}任务</div>
  52. </div>
  53. <div class="cType" v-if="courseType.length">
  54. <div
  55. class="all_choose"
  56. v-for="(item, index) in courseType"
  57. :key="index"
  58. >
  59. <span style="color: #717c8d; font-weight: 400">{{
  60. "分类" + ":"
  61. }}</span>
  62. <span
  63. class="type_children"
  64. v-for="(item2, index2) in courseTypeJson[item]"
  65. :key="index2"
  66. >{{ item2 }}</span
  67. >
  68. </div>
  69. </div>
  70. <div class="cType" style="align-items: flex-start">
  71. <div
  72. style="
  73. min-width: fit-content;
  74. color: #717c8d;
  75. font-weight: 400;
  76. "
  77. >
  78. 创建者:<span style="font-weight: bold; color: #0e1e33">{{
  79. courseDetail.username
  80. }}</span>
  81. </div>
  82. <div
  83. style="display: flex; align-items: center; margin-left: 32px"
  84. >
  85. <div style="color: #717c8d; font-weight: 400">参与人数:</div>
  86. <!-- <div class="man">
  87. <img src="../assets/people.png" alt />
  88. </div> -->
  89. <div class="person" style="font-weight: bold; color: #0e1e33">
  90. {{
  91. courseDetail.vcount != null ? courseDetail.vcount : 0
  92. }}人
  93. </div>
  94. </div>
  95. </div>
  96. <div class="cType" style="color: #6c6c6c">
  97. <div
  98. class="Tname"
  99. v-if="Tname.length > 0"
  100. @click="TnameCheck = !TnameCheck"
  101. style="color: #717c8d; font-weight: 400"
  102. >
  103. 协同成员:<span
  104. v-for="(tname, tIndex) in TnameCheck
  105. ? Tname
  106. : Tname.slice(0, 6)"
  107. :key="tIndex"
  108. style="margin: 0 5px; font-weight: 400; color: #0e1e33"
  109. >{{ tname }}</span
  110. ><span
  111. style="margin: 0 5px; font-weight: 400; color: #b2b2b2"
  112. v-if="!TnameCheck && Tname.length > 6"
  113. >展开</span
  114. ><span style="margin: 0 5px; font-weight: 400; color: #b2b2b2" v-else-if="TnameCheck && Tname.length > 6">收起</span>
  115. </div>
  116. </div>
  117. <!-- <div
  118. class="cType"
  119. style="font-size: 18px; color: #6c6c6c"
  120. v-if="classList.length && tType != 2"
  121. >
  122. <div class="teaClass">
  123. <div>授课班级:</div>
  124. <div>
  125. <el-button
  126. @click="gotoCourse('')"
  127. style="background: #4a9eed; color: #fff; margin: 0 5px"
  128. v-if="classList.length != 1"
  129. >全部</el-button
  130. ><el-button
  131. @click="gotoCourse(item.id)"
  132. v-for="(item, index) in classList"
  133. :key="index"
  134. style="background: #4a9eed; color: #fff; margin: 0 5px"
  135. >{{ item.name }}</el-button
  136. >
  137. </div>
  138. </div>
  139. </div> -->
  140. <div class="btnBox">
  141. <!-- <div class="now_study" @click="dialogVisible = true">
  142. 立即学习
  143. </div> -->
  144. <div
  145. class="now_study"
  146. @click="setQr(courseDetail.courseId)"
  147. v-if="tType != 2"
  148. >
  149. <div class="returnIndexImg">
  150. <img src="../assets/icon/newIcon/codeIcon.png" alt="" />
  151. </div>
  152. <div>生成二维码</div>
  153. </div>
  154. <div
  155. class="now_study"
  156. @click="dialogVisibleGroup = true"
  157. v-if="courseDetail.state == 1"
  158. >
  159. <div class="returnIndexImg">
  160. <img src="../assets/icon/newIcon/groupIcon.png" alt="" />
  161. </div>
  162. <div>
  163. {{
  164. courseDetail.userid != userid &&
  165. courseDetail.course_teacher &&
  166. courseDetail.course_teacher.indexOf(userid) == -1
  167. ? "加入分组"
  168. : "设置分组"
  169. }}
  170. </div>
  171. </div>
  172. <div class="now_study" @click="exportCourse" v-if="tType != 2">
  173. <div class="returnIndexImg">
  174. <img src="../assets/icon/newIcon/CourseInfo.png" alt="" />
  175. </div>
  176. <div>导出信息</div>
  177. </div>
  178. <!-- -->
  179. <div class="now_study" @click="uploadCourse" v-if="tType != 2">
  180. <div class="returnIndexImg">
  181. <img src="../assets/icon/newIcon/uploadCourse.png" alt="" />
  182. </div>
  183. <div>导出文件</div>
  184. </div>
  185. <!-- <div
  186. class="now_group"
  187. v-if="groupInfo && courseDetail.state == 1"
  188. >
  189. <span>所在分组:</span>{{ groupInfo.name }}
  190. </div> -->
  191. </div>
  192. <div
  193. v-if="tType != 2 && (classList.length || courseDetail.userid == userid)"
  194. class="goToStudy"
  195. @click="goToStudyOrDia(classList)"
  196. >
  197. <div class="returnIndexImg">
  198. <img src="../assets/icon/newIcon/people.png" alt="" />
  199. </div>
  200. <div>以班级授课</div>
  201. </div>
  202. </div>
  203. </div>
  204. </div>
  205. <div class="student_body">
  206. <div class="sLeft" v-if="courseDetail.brief">
  207. <div class="courseT">课程详情</div>
  208. <div class="courseTd" v-html="courseDetail.brief"></div>
  209. </div>
  210. <div :class="courseDetail.brief != '' ? 'rightTd' : 'noBRight'">
  211. <div v-if="tType == 1 || tType == 4" class="checkBox">
  212. <span :class="{ active: type == 2 }" @click="type = 2"
  213. >阶段选择
  214. <div v-show="false">
  215. {{
  216. courseDetail.state == 1
  217. ? "阶段模式"
  218. : courseDetail.state == 2
  219. ? "任务模式"
  220. : "极简模式"
  221. }}
  222. </div></span
  223. >
  224. <span :class="{ active: type == 1 }" @click="getCTwo"
  225. >课程分析</span
  226. >
  227. </div>
  228. <div
  229. v-if="((tType == 1 || tType == 4) && type == 2) || tType == 2"
  230. :class="courseDetail.brief != '' ? 'rightTd' : 'noBRight'"
  231. style="width: 100%; padding-top: 20px"
  232. >
  233. <div
  234. class="courseItem"
  235. v-for="(item, index) in chapInfo"
  236. :key="index"
  237. @click="goToStudyRate(index)"
  238. :class="{
  239. disabled: isFollow == 2 && tType == 2 && followC != index,
  240. }"
  241. >
  242. <div class="jdAndTask">
  243. <div>第{{ index + 1 }}阶段</div>
  244. <div
  245. v-if="courseDetail.state == 2 || courseDetail.state == 3"
  246. >
  247. 任务查看
  248. </div>
  249. <div :title="item.dyName">
  250. {{ item.dyName }}
  251. </div>
  252. </div>
  253. <div style="font-size: 14px; font-weight: 400; color: 3681FC">
  254. {{ item.chapterInfo[0].taskJson.length }}个任务
  255. </div>
  256. </div>
  257. <!-- <div
  258. class="blue_box_one"
  259. v-for="(item, index) in chapInfo"
  260. :key="index"
  261. @click="addUserRate(index)"
  262. :class="{
  263. disabled: isFollow == 2 && tType == 2 && followC != index,
  264. }"
  265. >
  266. <div v-if="courseDetail.state == 1">第{{ index + 1 }}阶段</div>
  267. <div v-if="courseDetail.state == 2 || courseDetail.state == 3">
  268. 任务查看
  269. </div>
  270. <div :title="item.dyName">{{ item.dyName }}</div>
  271. <div>{{ item.chapterInfo[0].taskJson.length }}个任务</div>
  272. </div> -->
  273. </div>
  274. <div
  275. v-if="
  276. (tType == 1 || tType == 4) &&
  277. Object.keys(chaptersJson).length &&
  278. type == 1
  279. "
  280. class="detail"
  281. >
  282. <div class="detail_box">
  283. <div class="title">
  284. <span class="toolIcon">工具分析</span>
  285. <div class="statebox">
  286. <div>
  287. <span class="taskIcon">全部阶段:</span
  288. ><span>{{ chaptersJson.state.stage }}</span>
  289. </div>
  290. <div>
  291. <span class="finishIcon">已进行:</span
  292. ><span>{{ chaptersJson.state.finish }}</span>
  293. </div>
  294. <div>
  295. <span class="learningIcon">未进行:</span
  296. ><span style="color: #fe9999">{{
  297. chaptersJson.state.learing
  298. }}</span>
  299. </div>
  300. </div>
  301. </div>
  302. <div class="box" v-if="chaptersJson.tool.length">
  303. <div class="progress">
  304. <div
  305. v-for="(item, index) in chaptersJson.tool"
  306. :key="index"
  307. class="chapter"
  308. >
  309. <div class="stageCss" @click="addUserRate(index)">
  310. <div
  311. style="
  312. width: 95%;
  313. height: 60px;
  314. display: flex;
  315. justify-content: space-between;
  316. flex-direction: row;
  317. flex-wrap: nowrap;
  318. align-items: center;
  319. "
  320. >
  321. <el-tooltip
  322. class="item"
  323. effect="light"
  324. :content="item.name"
  325. placement="top"
  326. >
  327. <div
  328. class="titleCss"
  329. style="width: 80%; max-width: unset"
  330. >
  331. 第{{ index + 1 }}阶段 {{ item.name }}
  332. </div>
  333. </el-tooltip>
  334. <!-- <div
  335. style="
  336. font-size: 14px;
  337. font-weight: 400;
  338. color: #3681fc;
  339. min-width: 30px;
  340. "
  341. >
  342. 查看
  343. </div> -->
  344. </div>
  345. </div>
  346. <!-- {{ chaptersJson.chapterState[index].isFinsh ? '已完成' : '进行中' }} -->
  347. <div class="task">
  348. <div
  349. v-for="(item2, index2) in item.array"
  350. :key="index + '-' + index2"
  351. class="taskBox"
  352. :class="item.array.length > 1 ? 'borderRight' : ''"
  353. >
  354. <div class="taskName">
  355. <div class="navIndex">任务{{ index2 + 1 }}:</div>
  356. <div>
  357. <el-tooltip
  358. class="item"
  359. effect="light"
  360. :content="item2.name"
  361. placement="top"
  362. >
  363. <div
  364. class="titleCss"
  365. style="
  366. font-size: 14px;
  367. font-weight: 400;
  368. color: #717c8d;
  369. "
  370. >
  371. {{ item2.name }}
  372. </div>
  373. </el-tooltip>
  374. </div>
  375. </div>
  376. <div class="p_tool_box">
  377. <span
  378. v-for="(item3, index3) in item2.array"
  379. :key="index + '-' + index2 + '-' + index3"
  380. class="p_tool"
  381. >
  382. <div v-if="item3.tool == 1">
  383. <img
  384. src="../assets/icon/secondToolList/whiteBoard.png"
  385. alt
  386. />
  387. <div>电子白板</div>
  388. </div>
  389. <div v-if="item3.tool == 3">
  390. <img
  391. src="../assets/icon/secondToolList/mindMapping.png"
  392. alt
  393. />
  394. <div>思维导图</div>
  395. </div>
  396. <div v-if="item3.tool == 6">
  397. <img
  398. src="../assets/icon/secondToolList/doc.png"
  399. alt
  400. />
  401. <div>协同文档</div>
  402. </div>
  403. <div v-if="item3.tool == 7">
  404. <img
  405. src="../assets/icon/secondToolList/mindNetwork.png"
  406. alt
  407. />
  408. <div>思维网格</div>
  409. </div>
  410. <div v-if="item3.tool == 8">
  411. <img
  412. src="../assets/icon/secondToolList/library.png"
  413. alt
  414. />
  415. <div>素材库</div>
  416. </div>
  417. <div v-if="item3.tool == 17">
  418. <img
  419. src="../assets/icon/secondToolList/library.png"
  420. alt
  421. />
  422. <div>学习资料</div>
  423. </div>
  424. <div v-if="item3.tool == 2">
  425. <img
  426. src="../assets/icon/secondToolList/note.png"
  427. alt
  428. />
  429. <div>便签</div>
  430. </div>
  431. <div v-if="item3.tool == 4">
  432. <img
  433. src="../assets/icon/thirdToolList/ask.png"
  434. alt
  435. />
  436. <div>问卷调查</div>
  437. </div>
  438. <div v-if="item3.tool == 45">
  439. <img
  440. src="../assets/icon/thirdToolList/choose.png"
  441. alt
  442. />
  443. <div>选择题</div>
  444. </div>
  445. <!-- <div v-if="item3.tool == 5">
  446. <img
  447. src="../assets/icon/thirdToolList/score.png"
  448. alt
  449. />
  450. <div >量规评分</div>
  451. </div> -->
  452. <div v-if="item3.tool == 10">
  453. <img
  454. src="../assets/icon/thirdToolList/time.png"
  455. alt
  456. />
  457. <div>倒计时</div>
  458. </div>
  459. <div v-if="item3.tool == 15">
  460. <img
  461. src="../assets/icon/thirdToolList/answer.png"
  462. alt
  463. />
  464. <div>问答</div>
  465. </div>
  466. <div v-if="item3.tool == 26">
  467. <img
  468. src="../assets/icon/thirdToolList/courseDesign.png"
  469. alt
  470. />
  471. <div>课程设计</div>
  472. </div>
  473. <div v-if="item3.tool == 18">
  474. <img
  475. src="../assets/icon/thirdToolList/trainPlatform.png"
  476. alt
  477. />
  478. <div>训练服务器</div>
  479. </div>
  480. <div v-if="item3.tool == 16">
  481. <img
  482. src="../assets/icon/thirdToolList/work.png"
  483. alt
  484. />
  485. <div>作业提交</div>
  486. </div>
  487. <div v-if="item3.tool == 21">
  488. <img
  489. src="../assets/icon/fourthToolList/program.png"
  490. alt
  491. />
  492. <div>AIoT Blockly</div>
  493. </div>
  494. <div v-if="item3.tool == 22">
  495. <img
  496. src="../assets/icon/fourthToolList/program.png"
  497. alt
  498. />
  499. <div>AI体验</div>
  500. </div>
  501. <div v-if="item3.tool == 23">
  502. <img
  503. src="../assets/icon/fourthToolList/program.png"
  504. alt
  505. />
  506. <div>AI Python</div>
  507. </div>
  508. <div v-if="item3.tool == 24">
  509. <img
  510. src="../assets/icon/fourthToolList/AIprogram.png"
  511. alt
  512. />
  513. <div>AI Blockly</div>
  514. </div>
  515. <div v-if="item3.tool == 25">
  516. <img
  517. src="../assets/icon/thirdToolList/evalua.png"
  518. alt
  519. />
  520. <div>目标管理</div>
  521. </div>
  522. <div v-if="item3.tool == 31">
  523. <img
  524. src="../assets/icon/secondToolList/networkPanel.png"
  525. alt
  526. />
  527. <div>数学画板</div>
  528. </div>
  529. <div v-if="item3.tool == 28">
  530. <img
  531. src="../assets/icon/secondToolList/translation.png"
  532. alt
  533. />
  534. <div>翻译</div>
  535. </div>
  536. <div v-if="item3.tool == 37">
  537. <img
  538. src="../assets/icon/secondToolList/mohe.png"
  539. alt
  540. />
  541. <div>魔盒识字</div>
  542. </div>
  543. <div v-if="item3.tool == 38">
  544. <img
  545. src="../assets/icon/secondToolList/24game.png"
  546. alt
  547. />
  548. <div>24点</div>
  549. </div>
  550. <div v-if="item3.tool == 39">
  551. <img
  552. src="../assets/icon/secondToolList/GeoGebra.png"
  553. alt
  554. />
  555. <div>GeoGebra</div>
  556. </div>
  557. <div v-if="item3.tool == 32">
  558. <img
  559. src="../assets/icon/thirdToolList/code.png"
  560. alt
  561. />
  562. <div>源码编辑</div>
  563. </div>
  564. <div v-if="item3.tool == 40">
  565. <img
  566. src="../assets/icon/secondToolList/eval.png"
  567. alt
  568. />
  569. <div>学生评价</div>
  570. </div>
  571. <div v-if="item3.tool == 41">
  572. <img
  573. src="../assets/icon/thirdToolList/select.png"
  574. alt
  575. />
  576. <div>选择匹配</div>
  577. </div>
  578. <div v-if="item3.tool == 44">
  579. <img
  580. src="../assets/icon/thirdToolList/hanClass.png"
  581. alt
  582. />
  583. <div>汉字宫</div>
  584. </div>
  585. <div v-if="item3.tool == 47">
  586. <img
  587. src="../assets/icon/fourthToolList/conSentences.png"
  588. alt
  589. />
  590. <div>排序</div>
  591. </div>
  592. <div v-if="item3.tool == 48">
  593. <img
  594. src="../assets/icon/fourthToolList/table.png"
  595. alt
  596. />
  597. <div>表格</div>
  598. </div>
  599. <div v-if="item3.tool == 49">
  600. <img
  601. src="../assets/icon/fourthToolList/group.png"
  602. alt
  603. />
  604. <div>学生分组</div>
  605. </div>
  606. <div v-if="item3.tool == 50">
  607. <img
  608. src="../assets/icon/thirdToolList/plwork.png"
  609. alt
  610. />
  611. <div>批量上传</div>
  612. </div>
  613. <div v-if="item3.tool == 57">
  614. <img
  615. src="../assets/icon/fourthToolList/cocopi.png"
  616. alt
  617. />
  618. <div>CocoPi</div>
  619. </div>
  620. <div v-if="item3.tool == 58">
  621. <img
  622. src="../assets/icon/fourthToolList/car.png"
  623. alt
  624. />
  625. <div>模拟驾驶</div>
  626. </div>
  627. <div v-if="item3.tool == 59">
  628. <img
  629. src="../assets/icon/fourthToolList/lineSearch.png"
  630. alt
  631. />
  632. <div>路径搜索</div>
  633. </div>
  634. <div v-if="item3.tool == 60">
  635. <img
  636. src="../assets/icon/fourthToolList/deepLearning.png"
  637. alt
  638. />
  639. <div>深度学习</div>
  640. </div>
  641. <div v-if="item3.tool == 61">
  642. <img
  643. src="../assets/icon/fourthToolList/allHistory.png"
  644. alt
  645. />
  646. <div>深度学习</div>
  647. </div>
  648. <div v-if="item3.tool == 62">
  649. <img
  650. src="../assets/icon/fourthToolList/interVideo.png"
  651. alt
  652. />
  653. <div>交互视频</div>
  654. </div>
  655. <div v-if="item3.tool == 63">
  656. <img
  657. src="../assets/icon/fourthToolList/Wood.png"
  658. alt
  659. />
  660. <div>海龟编程</div>
  661. </div>
  662. <div v-if="item3.tool == 65">
  663. <img
  664. src="../assets/icon/firstToolList/pickPeople.png"
  665. alt
  666. />
  667. <div>挑人</div>
  668. </div>
  669. <div v-if="item3.tool == 66">
  670. <img
  671. src="../assets/icon/secondToolList/formulaEdi.png"
  672. alt
  673. />
  674. <div>公式编辑</div>
  675. </div>
  676. <div v-if="item3.tool == 67">
  677. <img
  678. src="../assets/icon/secondToolList/molStr.png"
  679. alt
  680. />
  681. <div>分子结构</div>
  682. </div>
  683. <div v-if="item3.tool == 68">
  684. <img
  685. src="../assets/icon/secondToolList/timeAxis.png"
  686. alt
  687. />
  688. <div>时间轴</div>
  689. </div>
  690. <div v-if="item3.tool == 69">
  691. <img
  692. src="../assets/icon/secondToolList/english.png"
  693. alt
  694. />
  695. <div>英语写作</div>
  696. </div>
  697. <div v-if="item3.tool == 70">
  698. <img
  699. src="../assets/icon/thirdToolList/englishVoice.png"
  700. alt
  701. />
  702. <div>英语口语</div>
  703. </div>
  704. <div v-if="item3.tool == undefined">
  705. <img
  706. src="../assets/icon/empytool.png"
  707. alt
  708. style="width: 64px; height: 75px"
  709. />
  710. </div>
  711. </span>
  712. </div>
  713. </div>
  714. </div>
  715. </div>
  716. </div>
  717. </div>
  718. </div>
  719. <div
  720. class="detail_box"
  721. v-if="Object.keys(chaptersJson.time).length"
  722. >
  723. <div class="title">
  724. <span class="frequencyIcon">活跃频率</span>
  725. </div>
  726. <div class="box">
  727. <div>
  728. <Heatmap
  729. :Josn="chaptersJson.time"
  730. :num="chaptersJson.studentCount"
  731. ></Heatmap>
  732. </div>
  733. </div>
  734. </div>
  735. <div class="detail_box">
  736. <div class="title"><span class="timeIcon">实施时间</span></div>
  737. <div class="box">
  738. <div
  739. style="
  740. font-size: 22px;
  741. margin: 15px 0 45px;
  742. font-weight: 700;
  743. "
  744. >
  745. {{ courseDetail.title }}
  746. </div>
  747. <div class="chapter_time_box" style="margin-left: 170px">
  748. <div
  749. v-for="(item, index) in chaptersJson.work"
  750. :key="index"
  751. class="c_box"
  752. >
  753. <div class="stage_box" style="left: -195px">
  754. <div
  755. style="
  756. min-width: 150px;
  757. position: relative;
  758. left: -5px;
  759. "
  760. >
  761. {{ item.time }}
  762. </div>
  763. <div
  764. class="yuan"
  765. :class="
  766. (item.chapter.length == 1 ||
  767. item.chapter.length > 1) &&
  768. (item.chapter[0].task.length == 1 ||
  769. item.chapter[0].task.length > 1) &&
  770. item.chapter[0].task[0].works.length == 0
  771. ? 'bgCss'
  772. : ''
  773. "
  774. ></div>
  775. <div
  776. class="stage"
  777. :style="{
  778. background:
  779. (item.chapter.length == 1 ||
  780. item.chapter.length > 1) &&
  781. (item.chapter[0].task.length == 1 ||
  782. item.chapter[0].task.length > 1) &&
  783. item.chapter[0].task[0].works.length == 0
  784. ? '#ccc'
  785. : '',
  786. }"
  787. >
  788. 第{{ index + 1 }}阶段 {{ item.name }}
  789. </div>
  790. <div
  791. class="s_up"
  792. :style="{
  793. display:
  794. (item.chapter.length == 1 ||
  795. item.chapter.length > 1) &&
  796. (item.chapter[0].task.length == 1 ||
  797. item.chapter[0].task.length > 1) &&
  798. item.chapter[0].task[0].works.length == 0
  799. ? 'none'
  800. : '',
  801. }"
  802. :class="{ s_up2: !item.is }"
  803. @click="item.is = !item.is"
  804. >
  805. <img src="../assets/icon/up.png" alt="" />
  806. </div>
  807. </div>
  808. <div v-show="item.is">
  809. <div
  810. v-for="(item2, index2) in item.chapter"
  811. :key="index + '-' + index2"
  812. >
  813. <div
  814. style="
  815. display: flex;
  816. flex-direction: row;
  817. flex-wrap: nowrap;
  818. align-items: center;
  819. "
  820. v-if="
  821. item2.task[0].tool != undefined && item2.isWork
  822. "
  823. >
  824. <div
  825. style="
  826. width: 13px;
  827. height: 13px;
  828. background: #5a82cb 100%;
  829. border-radius: 50%;
  830. margin-right: 10px;
  831. "
  832. ></div>
  833. <div style="font-size: 20px; font-weight: bold">
  834. 任务{{ index2 + 1 }}:{{ item2.name }}
  835. </div>
  836. </div>
  837. <div class="p_tool_box2">
  838. <span
  839. v-for="(item3, index3) in item2.task"
  840. :key="index + '-' + index2 + '-' + index3"
  841. class="p_tool2"
  842. >
  843. <div
  844. class="toolBigBox"
  845. style="
  846. display: flex;
  847. flex-direction: row;
  848. flex-wrap: nowrap;
  849. align-items: center;
  850. "
  851. v-if="item3.works.length"
  852. >
  853. <div
  854. style="
  855. display: flex;
  856. flex-direction: row;
  857. flex-wrap: nowrap;
  858. align-items: flex-end;
  859. min-width: 140px;
  860. "
  861. >
  862. <div class="lineBox"></div>
  863. <div class="toolbox">
  864. <div
  865. style="font-size: 16px; font-weight: bold"
  866. >
  867. 步骤{{ index3 + 1 }}:
  868. </div>
  869. <div v-if="item3.tool == 1">电子白板</div>
  870. <div v-if="item3.tool == 3">思维导图</div>
  871. <div v-if="item3.tool == 6">协同文档</div>
  872. <div v-if="item3.tool == 7">思维网格</div>
  873. <div v-if="item3.tool == 8">素材库</div>
  874. <div v-if="item3.tool == 17">学习资料</div>
  875. <div v-if="item3.tool == 2">便签</div>
  876. <div v-if="item3.tool == 4">问卷调查</div>
  877. <div v-if="item3.tool == 45">选择题</div>
  878. <div v-if="item3.tool == 10">倒计时</div>
  879. <div v-if="item3.tool == 15">问答</div>
  880. <div v-if="item3.tool == 26">课程设计</div>
  881. <div v-if="item3.tool == 18">
  882. 训练服务器
  883. </div>
  884. <div v-if="item3.tool == 16">作业提交</div>
  885. <div v-if="item3.tool == 21">
  886. AIoT Blockly
  887. </div>
  888. <div v-if="item3.tool == 22">AI体验</div>
  889. <div v-if="item3.tool == 23">AI Python</div>
  890. <div v-if="item3.tool == 24">
  891. AI Blockly
  892. </div>
  893. <div v-if="item3.tool == 25">目标管理</div>
  894. <div v-if="item3.tool == 31">数学画板</div>
  895. <div v-if="item3.tool == 28">翻译</div>
  896. <div v-if="item3.tool == 37">魔盒识字</div>
  897. <div v-if="item3.tool == 38">24点</div>
  898. <div v-if="item3.tool == 39">GeoGebra</div>
  899. <div v-if="item3.tool == 32">源码编辑</div>
  900. <div v-if="item3.tool == 40">学生评价</div>
  901. <div v-if="item3.tool == 41">选择匹配</div>
  902. <div v-if="item3.tool == 44">汉字宫</div>
  903. <div v-if="item3.tool == 47">排序</div>
  904. <div v-if="item3.tool == 48">表格</div>
  905. <div v-if="item3.tool == 49">学生分组</div>
  906. <div v-if="item3.tool == 50">批量上传</div>
  907. <div v-if="item3.tool == 57">CocoPi</div>
  908. <div v-if="item3.tool == 58">模拟驾驶</div>
  909. <div v-if="item3.tool == 59">路径搜索</div>
  910. <div v-if="item3.tool == 60">深度学习</div>
  911. </div>
  912. </div>
  913. <div
  914. v-if="item3.works.length"
  915. style="
  916. display: flex;
  917. flex-direction: row;
  918. flex-wrap: wrap;
  919. align-items: center;
  920. margin-left: 10px;
  921. "
  922. >
  923. <!-- works:[],likeCount: 0, commentCount: 0, score: 0, isScore: 0 -->
  924. <div class="disCss">
  925. <div class="blueBtn">
  926. 作业数量:{{ item3.works.length }}
  927. </div>
  928. <div
  929. v-if="chaptersJson.studentCount"
  930. class="blueBtn"
  931. >
  932. 任务完成率:{{
  933. (
  934. (item3.works.length /
  935. chaptersJson.studentCount) *
  936. 100
  937. ).toFixed(2) > 100.0
  938. ? 100 + "%"
  939. : (
  940. (item3.works.length /
  941. chaptersJson.studentCount) *
  942. 100
  943. ).toFixed(2) + "%"
  944. }}
  945. </div>
  946. <div class="blueBtn">
  947. <div>点赞:{{ item3.likeCount }}</div>
  948. <div style="margin-left: 15px">
  949. 评论:{{ item3.commentCount }}
  950. </div>
  951. </div>
  952. </div>
  953. <div v-if="item3.isScore">
  954. <div class="disCss">
  955. <div class="blueBtn">
  956. 作业评价量:{{ item3.isScore }}
  957. </div>
  958. <div class="blueBtn">
  959. 评价平均分:{{
  960. (item3.score / item3.isScore).toFixed(
  961. 2
  962. )
  963. }}分
  964. </div>
  965. </div>
  966. </div>
  967. </div>
  968. </div>
  969. </span>
  970. </div>
  971. </div>
  972. </div>
  973. </div>
  974. </div>
  975. </div>
  976. </div>
  977. <!-- <div v-for="(item, index) in Object.keys(chaptersJson.time)" :key="index">
  978. {{ '时间:' + item + '次数:' + chaptersJson.time[item] }}</div> -->
  979. <!-- <div>实施时间:{{ chaptersJson.startTime }}</div> -->
  980. </div>
  981. </div>
  982. </div>
  983. <!-- <div
  984. style="
  985. text-align: center;
  986. padding: 30px 0 20px 0;
  987. box-sizing: border-box;
  988. "
  989. >
  990. 此处滚动加载..
  991. </div>-->
  992. <el-dialog
  993. title="阶段选择"
  994. :visible.sync="dialogVisible"
  995. :append-to-body="true"
  996. width="700px"
  997. :before-close="handleClose"
  998. class="dialog_change"
  999. >
  1000. <div style="font-size: 20px">请选择阶段</div>
  1001. <div
  1002. style="
  1003. padding: 20px 30px;
  1004. display: flex;
  1005. flex-direction: row;
  1006. flex-wrap: wrap;
  1007. "
  1008. >
  1009. <div
  1010. class="blue_box"
  1011. v-for="(item, index) in chapInfo"
  1012. :key="index"
  1013. @click="addUserRate(index)"
  1014. >
  1015. <div>第{{ index + 1 }}阶段</div>
  1016. <div>{{ item.dyName }}</div>
  1017. <div>{{ item.chapterInfo[0].taskJson.length }}个任务</div>
  1018. </div>
  1019. </div>
  1020. </el-dialog>
  1021. <Group
  1022. :dialogVisibleGroup.sync="dialogVisibleGroup"
  1023. :classList="classList"
  1024. :cid="id"
  1025. :courseDetail="courseDetail"
  1026. :userid="userid"
  1027. :oid="oid"
  1028. :type="tType"
  1029. :classId="classId"
  1030. @getGroup="getGroup"
  1031. ></Group>
  1032. </div>
  1033. </div>
  1034. <el-dialog title="课程二维码" :visible.sync="dialogVisibleQR" width="400px">
  1035. <div class="qrcode" ref="qrCodeUrl"></div>
  1036. </el-dialog>
  1037. <el-dialog
  1038. title="选择授课班级"
  1039. :visible.sync="dialogVisibleSk"
  1040. width="626px"
  1041. class="diy_sk"
  1042. >
  1043. <div class="classBox">
  1044. <div @click="gotoCourse('')">全部</div>
  1045. <div
  1046. @click="gotoCourse(item.id)"
  1047. v-for="(item, index) in classList"
  1048. :key="index"
  1049. >
  1050. {{ item.name }}
  1051. </div>
  1052. </div>
  1053. <div class="cancelDiy" @click="dialogVisibleSk = false">取消</div>
  1054. </el-dialog>
  1055. </div>
  1056. </template>
  1057. <script>
  1058. import Heatmap from "./tools/heatmap.vue";
  1059. import Group from "./group/group.vue";
  1060. import QRCode from "qrcodejs2";
  1061. import { tools } from "../common/tools";
  1062. import axios from "axios";
  1063. import JSZip from "jszip";
  1064. import FileSaver from "file-saver";
  1065. const getFile = (url) => {
  1066. return new Promise((resolve, reject) => {
  1067. var credentials = {
  1068. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  1069. secretAccessKey: "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",
  1070. }; //秘钥形式的登录上传
  1071. window.AWS.config.update(credentials);
  1072. window.AWS.config.region = "cn-northwest-1"; //设置区域
  1073. let url2 = url;
  1074. let _url2 = "";
  1075. if (
  1076. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  1077. ) {
  1078. _url2 = url2.split(
  1079. "https://view.officeapps.live.com/op/view.aspx?src="
  1080. )[1];
  1081. } else {
  1082. _url2 = url2;
  1083. }
  1084. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  1085. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  1086. var params = {
  1087. Bucket: "ccrb",
  1088. Key: name
  1089. };
  1090. s3.getObject(params, function (err, data) {
  1091. if (err) {
  1092. console.log(err, err.stack)
  1093. resolve({ data: 1 });
  1094. }else {
  1095. resolve({ data: data.Body });
  1096. console.log(data);
  1097. } // sxuccessful response
  1098. });
  1099. // axios({
  1100. // method: "get",
  1101. // url,
  1102. // responseType: "blob",
  1103. // })
  1104. // .then((data) => {
  1105. // resolve({ data: data.data });
  1106. // })
  1107. // .catch((error) => {
  1108. // resolve({ data: 1 });
  1109. // // reject(error.toString());
  1110. // });
  1111. });
  1112. };
  1113. export default {
  1114. components: {
  1115. Heatmap,
  1116. Group,
  1117. },
  1118. data() {
  1119. return {
  1120. choose: 0,
  1121. dialogVisibleSk: false,
  1122. dialogVisible: false,
  1123. dialogVisibleGroup: false,
  1124. id: this.$route.query.courseId,
  1125. userid: this.$route.query.userid,
  1126. oid: this.$route.query.oid,
  1127. org: this.$route.query.org,
  1128. classId: this.$route.query.cid,
  1129. tType: this.$route.query.tType,
  1130. screenType: this.$route.query.screenType,
  1131. courseDetail: {},
  1132. classList: [],
  1133. aStudentName: [],
  1134. chapInfo: [],
  1135. courseType: [],
  1136. Tname: [],
  1137. TnameCheck: false,
  1138. courseTypeJson: {},
  1139. userinfo: [],
  1140. mr: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/noBanner1656409780264.jpg",
  1141. rw: 0,
  1142. chaptersJson: {},
  1143. type: 2,
  1144. inviteCode: [],
  1145. groupInfo: "",
  1146. isFollow: "",
  1147. followC: "",
  1148. dialogVisibleQR: false,
  1149. checkStage: 0,
  1150. tools: tools,
  1151. };
  1152. },
  1153. methods: {
  1154. handleClose(done) {
  1155. done();
  1156. },
  1157. setQr(cid) {
  1158. this.dialogVisibleQR = true;
  1159. setTimeout(() => {
  1160. this.$refs.qrCodeUrl.innerHTML = "";
  1161. var qrcode = new QRCode(this.$refs.qrCodeUrl, {
  1162. text: "https://beta.cloud.cocorobo.cn/#/course?courseid=" + cid, // 需要转换为二维码的内容
  1163. width: 350,
  1164. height: 350,
  1165. colorDark: "#000000",
  1166. colorLight: "#ffffff",
  1167. correctLevel: QRCode.CorrectLevel.H,
  1168. });
  1169. }, 500);
  1170. },
  1171. goTo(path) {
  1172. this.$router.push(path);
  1173. },
  1174. gotoCourse(id) {
  1175. if (this.courseDetail.state == 1) {
  1176. if (this.classList.length) {
  1177. this.goTo(
  1178. "/studyStudent?type=" +
  1179. this.checkStage +
  1180. "&courseId=" +
  1181. this.id +
  1182. "&userid=" +
  1183. this.userid +
  1184. "&oid=" +
  1185. this.oid +
  1186. "&org=" +
  1187. this.org +
  1188. "&cid=" +
  1189. this.classId +
  1190. "&tType=" +
  1191. this.tType +
  1192. "&screenType=" +
  1193. this.screenType +
  1194. "&tcid=" +
  1195. id
  1196. );
  1197. } else {
  1198. this.goTo(
  1199. "/studyStudent?type=" +
  1200. this.checkStage +
  1201. "&courseId=" +
  1202. this.id +
  1203. "&userid=" +
  1204. this.userid +
  1205. "&oid=" +
  1206. this.oid +
  1207. "&org=" +
  1208. this.org +
  1209. "&cid=" +
  1210. this.classId +
  1211. "&tType=" +
  1212. this.tType +
  1213. "&screenType=" +
  1214. this.screenType
  1215. );
  1216. }
  1217. } else if (this.courseDetail.state == 2) {
  1218. if (this.classList.length) {
  1219. this.goTo(
  1220. "/studystudentE2?type=" +
  1221. this.checkStage +
  1222. "&courseId=" +
  1223. this.id +
  1224. "&userid=" +
  1225. this.userid +
  1226. "&oid=" +
  1227. this.oid +
  1228. "&org=" +
  1229. this.org +
  1230. "&cid=" +
  1231. this.classId +
  1232. "&tType=" +
  1233. this.tType +
  1234. "&screenType=" +
  1235. this.screenType +
  1236. "&tcid=" +
  1237. id
  1238. );
  1239. } else {
  1240. this.goTo(
  1241. "/studystudentE2?type=" +
  1242. this.checkStage +
  1243. "&courseId=" +
  1244. this.id +
  1245. "&userid=" +
  1246. this.userid +
  1247. "&oid=" +
  1248. this.oid +
  1249. "&org=" +
  1250. this.org +
  1251. "&cid=" +
  1252. this.classId +
  1253. "&tType=" +
  1254. this.tType +
  1255. "&screenType=" +
  1256. this.screenType
  1257. );
  1258. }
  1259. } else if (this.courseDetail.state == 3) {
  1260. if (this.classList.length) {
  1261. this.goTo(
  1262. "/studystudentE3?type=" +
  1263. this.checkStage +
  1264. "&courseId=" +
  1265. this.id +
  1266. "&userid=" +
  1267. this.userid +
  1268. "&oid=" +
  1269. this.oid +
  1270. "&org=" +
  1271. this.org +
  1272. "&cid=" +
  1273. this.classId +
  1274. "&tType=" +
  1275. this.tType +
  1276. "&screenType=" +
  1277. this.screenType +
  1278. "&tcid=" +
  1279. id
  1280. );
  1281. } else {
  1282. this.goTo(
  1283. "/studystudentE3?type=" +
  1284. this.checkStage +
  1285. "&courseId=" +
  1286. this.id +
  1287. "&userid=" +
  1288. this.userid +
  1289. "&oid=" +
  1290. this.oid +
  1291. "&org=" +
  1292. this.org +
  1293. "&cid=" +
  1294. this.classId +
  1295. "&tType=" +
  1296. this.tType +
  1297. "&screenType=" +
  1298. this.screenType
  1299. );
  1300. }
  1301. }
  1302. },
  1303. goToStudyOrDia(l) {
  1304. if (l.length > 0) {
  1305. this.dialogVisibleSk = true;
  1306. } else {
  1307. const h = this.$createElement;
  1308. this.$confirm("该课程尚未指定授课班级,请放回首页,使用修改功能添加授课班级。","提示",{
  1309. confirmButtonText: '去修改',
  1310. cancelButtonText: '取消',
  1311. type:"error",
  1312. }).then(() => {
  1313. if(this.courseDetail.state == 1 || this.courseDetail.state == 2){
  1314. window.parent.postMessage({ tools: "openCourseUpdate",cid:this.id }, "*");
  1315. }else if(this.courseDetail.state == 3){
  1316. window.parent.postMessage({ tools: "openCourseEUpdate",cid:this.id }, "*");
  1317. }
  1318. })
  1319. // this.addUserRate(0);
  1320. }
  1321. },
  1322. goToStudyRate(i) {
  1323. this.checkStage = i;
  1324. if (this.tType == 2) {
  1325. this.addUserRate(i);
  1326. } else {
  1327. if (this.classList.length > 0) {
  1328. this.dialogVisibleSk = true;
  1329. } else {
  1330. this.addUserRate(i);
  1331. }
  1332. }
  1333. },
  1334. addUserRate(i) {
  1335. // var suid = this.userid;
  1336. // if (
  1337. // JSON.parse(this.courseDetail.course_student).indexOf(suid) == -1 &&
  1338. // JSON.parse(this.courseDetail.userid) != suid
  1339. // ) {
  1340. // this.$message.error("你没有该权限");
  1341. // return;
  1342. // }
  1343. // var a =
  1344. // this.courseDetail.course_student != ""
  1345. // ? JSON.parse(this.courseDetail.course_student)
  1346. // : "";
  1347. // if (this.courseDetail.userid != suid) {
  1348. // if (this.userinfo.type == 2) {
  1349. // if (a != "") {
  1350. // if (
  1351. // JSON.parse(this.courseDetail.course_student).indexOf(suid) == -1
  1352. // ) {
  1353. // this.$message.error("你没有该权限");
  1354. // return;
  1355. // }
  1356. // } else {
  1357. // this.$message.error("暂无项目学员,请联系老师添加项目学员!");
  1358. // return;
  1359. // }
  1360. // }
  1361. // }
  1362. if (this.isFollow == 2 && this.tType == 2 && this.followC != i) {
  1363. return;
  1364. }
  1365. let params = {
  1366. uid: this.userid,
  1367. cid: this.id,
  1368. };
  1369. this.ajax
  1370. .get(this.$store.state.api + "addUserR", params)
  1371. .then((res) => {
  1372. this.updateVc();
  1373. if (this.tType == 1 || this.tType == 4) {
  1374. if (this.courseDetail.state == 1) {
  1375. this.goTo(
  1376. "/studyStudent?type=" +
  1377. i +
  1378. "&courseId=" +
  1379. this.id +
  1380. "&userid=" +
  1381. this.userid +
  1382. "&oid=" +
  1383. this.oid +
  1384. "&org=" +
  1385. this.org +
  1386. "&cid=" +
  1387. this.classId +
  1388. "&tType=" +
  1389. this.tType +
  1390. "&screenType=" +
  1391. this.screenType
  1392. );
  1393. } else if (this.courseDetail.state == 2) {
  1394. this.goTo(
  1395. "/studystudentE2?type=" +
  1396. i +
  1397. "&courseId=" +
  1398. this.id +
  1399. "&userid=" +
  1400. this.userid +
  1401. "&oid=" +
  1402. this.oid +
  1403. "&org=" +
  1404. this.org +
  1405. "&cid=" +
  1406. this.classId +
  1407. "&tType=" +
  1408. this.tType +
  1409. "&screenType=" +
  1410. this.screenType
  1411. );
  1412. } else if (this.courseDetail.state == 3) {
  1413. this.goTo(
  1414. "/studystudentE3?type=" +
  1415. i +
  1416. "&courseId=" +
  1417. this.id +
  1418. "&userid=" +
  1419. this.userid +
  1420. "&oid=" +
  1421. this.oid +
  1422. "&org=" +
  1423. this.org +
  1424. "&cid=" +
  1425. this.classId +
  1426. "&tType=" +
  1427. this.tType +
  1428. "&screenType=" +
  1429. this.screenType
  1430. );
  1431. }
  1432. } else if (this.tType == 2) {
  1433. this.goTo(
  1434. "/studyStudent?type=" +
  1435. i +
  1436. "&courseId=" +
  1437. this.id +
  1438. "&userid=" +
  1439. this.userid +
  1440. "&oid=" +
  1441. this.oid +
  1442. "&org=" +
  1443. this.org +
  1444. "&cid=" +
  1445. this.classId +
  1446. "&tType=" +
  1447. this.tType +
  1448. "&screenType=" +
  1449. this.screenType
  1450. );
  1451. // this.gotoCourse(this.classId);
  1452. } else {
  1453. this.goTo(
  1454. "/study?type=" +
  1455. i +
  1456. "&courseId=" +
  1457. this.id +
  1458. "&userid=" +
  1459. this.userid +
  1460. "&oid=" +
  1461. this.oid +
  1462. "&org=" +
  1463. this.org +
  1464. "&cid=" +
  1465. this.classId +
  1466. "&tType=" +
  1467. this.tType +
  1468. "&screenType=" +
  1469. this.screenType
  1470. );
  1471. }
  1472. })
  1473. .catch((err) => {
  1474. console.error(err);
  1475. });
  1476. },
  1477. updateVc() {
  1478. let params = {
  1479. cid: this.id,
  1480. };
  1481. this.ajax
  1482. .get(this.$store.state.api + "updateVc", params)
  1483. .then((res) => {
  1484. console.log(res.data);
  1485. })
  1486. .catch((err) => {
  1487. console.error(err);
  1488. });
  1489. },
  1490. async getCourseDetail1() {
  1491. const loading = this.$loading.service({
  1492. background: "rgba(255, 255, 255, 0.7)",
  1493. target: document.querySelector(".student_table"),
  1494. });
  1495. let params = {
  1496. courseId: this.id,
  1497. };
  1498. let res = await this.ajax.get(
  1499. this.$store.state.api + "selectCourseDetail2",
  1500. params
  1501. );
  1502. loading.close();
  1503. // this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
  1504. this.courseDetail = res.data[0][0];
  1505. this.isFollow = res.data[0][0].follow;
  1506. this.followC = res.data[0][0].followC
  1507. ? res.data[0][0].followC.split("-")[0]
  1508. : "";
  1509. this.classList = res.data[3];
  1510. let groupData = res.data[5];
  1511. var a = res.data[0];
  1512. var b = res.data[1];
  1513. var c = res.data[2];
  1514. for (var i = 0; i < b.length; i++) {
  1515. // if (!this.id) {
  1516. // this.courseType[b[i].id] = [];
  1517. // }
  1518. for (var j = 0; j < a.length; j++) {
  1519. if (b[i].id == a[j].pid) {
  1520. if (!this.courseTypeJson[b[i].name]) {
  1521. this.courseType.push(b[i].name);
  1522. this.courseTypeJson[b[i].name] = [];
  1523. }
  1524. this.courseTypeJson[b[i].name].push(a[j].name);
  1525. }
  1526. }
  1527. }
  1528. this.Tname = [];
  1529. for (var k = 0; k < c.length; k++) {
  1530. this.Tname.push(c[k].name);
  1531. }
  1532. console.log(this.courseTypeJson.length);
  1533. this.aStudentName = res.data[2];
  1534. this.chapInfo = JSON.parse(this.courseDetail.chapters);
  1535. this.rw = 0
  1536. for (var z = 0; z < this.chapInfo.length; z++) {
  1537. this.rw += this.chapInfo[z].chapterInfo[0].taskJson.length;
  1538. }
  1539. this.inviteCode = [];
  1540. for (var i = 0; i < res.data[4].length; i++) {
  1541. this.inviteCode.push({
  1542. cid: res.data[4][i].classid,
  1543. ic: res.data[4][i].code,
  1544. });
  1545. }
  1546. if (res.data[3].length != this.inviteCode.length) {
  1547. let classArray = [];
  1548. let noClassArray = [];
  1549. for (var i = 0; i < res.data[3].length; i++) {
  1550. classArray.push(res.data[3][i].id);
  1551. noClassArray.push(res.data[3][i].id);
  1552. }
  1553. this.inviteCode = this.inviteCode.filter((el) => {
  1554. if (classArray.indexOf(el.cid) != -1) {
  1555. noClassArray.splice(noClassArray.indexOf(el.cid), 1);
  1556. return el;
  1557. }
  1558. });
  1559. for (var i = 0; i < noClassArray.length; i++) {
  1560. await this.getInviteCode(noClassArray[i]);
  1561. }
  1562. let a = this.inviteCode;
  1563. console.log(this.inviteCode);
  1564. this.addInviteCode();
  1565. }
  1566. this.groupInfo = "";
  1567. if (groupData.length) {
  1568. gp: for (var g = 0; g < groupData.length; g++) {
  1569. if (groupData[g].userid == this.userid) {
  1570. let gid = groupData[g].groupCid;
  1571. let groupA = JSON.parse(groupData[g].group).group;
  1572. for (var gA = 0; gA < groupA.length; gA++) {
  1573. if (groupA[gA].id == gid) {
  1574. this.groupInfo = {
  1575. name: groupA[gA].name,
  1576. };
  1577. break gp;
  1578. }
  1579. }
  1580. }
  1581. }
  1582. }
  1583. // debugger
  1584. },
  1585. addInviteCode() {
  1586. let params = [
  1587. {
  1588. courseId: this.id,
  1589. inviteCode: JSON.stringify(this.inviteCode),
  1590. },
  1591. ];
  1592. this.ajax
  1593. .post(this.$store.state.api + "addInviteCode", params)
  1594. .then((res) => {})
  1595. .catch((err) => {
  1596. console.error(err);
  1597. });
  1598. },
  1599. getCTwo() {
  1600. this.type = 1;
  1601. this.getCourseDetail2();
  1602. },
  1603. getCourseDetail2() {
  1604. const loading = this.$loading.service({
  1605. background: "rgba(255, 255, 255, 0.7)",
  1606. target: document.querySelector(".student_table"),
  1607. });
  1608. let params = {
  1609. courseId: this.id,
  1610. };
  1611. this.ajax
  1612. .get(this.$store.state.api + "selectCourseDetail", params)
  1613. .then((res) => {
  1614. loading.close();
  1615. // this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
  1616. this.courseDetail = res.data[0][0];
  1617. var a = res.data[0];
  1618. var b = res.data[1];
  1619. var c = res.data[2];
  1620. var d = res.data[3];
  1621. for (var i = 0; i < b.length; i++) {
  1622. // if (!this.id) {
  1623. // this.courseType[b[i].id] = [];
  1624. // }
  1625. for (var j = 0; j < a.length; j++) {
  1626. if (b[i].id == a[j].pid) {
  1627. if (!this.courseTypeJson[b[i].name]) {
  1628. this.courseType.push(b[i].name);
  1629. this.courseTypeJson[b[i].name] = [];
  1630. }
  1631. this.courseTypeJson[b[i].name].push(a[j].name);
  1632. }
  1633. }
  1634. }
  1635. this.Tname = [];
  1636. for (var k = 0; k < c.length; k++) {
  1637. this.Tname.push(c[k].name);
  1638. }
  1639. console.log(this.courseTypeJson.length);
  1640. this.aStudentName = res.data[2];
  1641. this.chapInfo = JSON.parse(this.courseDetail.chapters);
  1642. this.rw = 0
  1643. for (var z = 0; z < this.chapInfo.length; z++) {
  1644. this.rw += this.chapInfo[z].chapterInfo[0].taskJson.length;
  1645. }
  1646. let _chapters = JSON.parse(a[0].chapters);
  1647. let _works = res.data[3];
  1648. let _sCont = res.data[4];
  1649. let _comment = res.data[5];
  1650. let _chaptersJson = {
  1651. chapterState: _chapters,
  1652. state: {
  1653. stage: _chapters.length,
  1654. finish: 0,
  1655. learing: 0,
  1656. },
  1657. tool: [],
  1658. chapter: [],
  1659. time: {},
  1660. startTime: _works.length ? _works[0].time : "",
  1661. work: [],
  1662. studentCount: _sCont[0].usercount,
  1663. };
  1664. let timeAarry = [];
  1665. for (var j = 0; j < _works.length; j++) {
  1666. timeAarry.push(_works[j].vtime);
  1667. }
  1668. timeAarry.forEach((item) => {
  1669. _chaptersJson.time[item] = _chaptersJson.time[item] + 1 || 1;
  1670. });
  1671. for (var i = 0; i < _chapters.length; i++) {
  1672. _chaptersJson.chapterState[i].isFinsh = false;
  1673. // _chaptersJson.tool[i] = []
  1674. _chaptersJson.tool[i] = { array: [], name: _chapters[i].dyName };
  1675. _chaptersJson.chapter[i] = [];
  1676. _chaptersJson.work[i] = {
  1677. name: _chapters[i].dyName,
  1678. chapter: [],
  1679. time: "",
  1680. };
  1681. for (var j = 0; j < _works.length; j++) {
  1682. if (i == _works[j].stage) {
  1683. _chaptersJson.chapterState[i].isFinsh = true;
  1684. _chaptersJson.work[i].time = _works[j].time;
  1685. _chaptersJson.state.finish++;
  1686. break;
  1687. }
  1688. }
  1689. let el = _chapters[i].chapterInfo[0].taskJson;
  1690. for (var z = 0; z < el.length; z++) {
  1691. // _chaptersJson.tool[i][z] = [];
  1692. _chaptersJson.tool[i].array[z] = { array: [], name: el[z].task };
  1693. _chaptersJson.chapter[i][z] = [];
  1694. _chaptersJson.work[i].chapter[z] = {
  1695. name: el[z].task,
  1696. task: [],
  1697. isWork: false,
  1698. };
  1699. if (d.length > 0) {
  1700. _chaptersJson.work[i].chapter[z].isWork = true;
  1701. }
  1702. _chaptersJson.work[i].is = false;
  1703. let tools = el[z].toolChoose;
  1704. for (var k = 0; k < tools.length; k++) {
  1705. _chaptersJson.work[i].chapter[z].task[k] = {
  1706. tool: tools[k].tool[0],
  1707. works: [],
  1708. likeCount: 0,
  1709. commentCount: 0,
  1710. score: 0,
  1711. isScore: 0,
  1712. };
  1713. for (var j = 0; j < _works.length; j++) {
  1714. if (
  1715. i == _works[j].stage &&
  1716. z == _works[j].task &&
  1717. k == _works[j].tool
  1718. ) {
  1719. _chaptersJson.work[i].chapter[z].task[k].works.push(
  1720. _works[j]
  1721. );
  1722. if (_works[j].score) {
  1723. _chaptersJson.work[i].chapter[z].task[k].score +=
  1724. JSON.parse(_works[j].score).wScore;
  1725. _chaptersJson.work[i].chapter[z].task[k].isScore++;
  1726. }
  1727. }
  1728. }
  1729. for (var j = 0; j < _comment.length; j++) {
  1730. if (
  1731. i == _comment[j].stage &&
  1732. z == _comment[j].task &&
  1733. k == _comment[j].tool
  1734. ) {
  1735. if (_comment[j].cType == 1) {
  1736. _chaptersJson.work[i].chapter[z].task[k].likeCount++;
  1737. }
  1738. if (_comment[j].cType == 2) {
  1739. _chaptersJson.work[i].chapter[z].task[k].commentCount++;
  1740. }
  1741. }
  1742. }
  1743. // if (_chaptersJson.chapter[i][z].indexOf(tools[k].tool[0]) == -1) {
  1744. // _chaptersJson.tool[i][z].push(tools[k].tool[0])
  1745. // }
  1746. _chaptersJson.chapter[i][z][k] = { tool: tools[k].tool[0] };
  1747. // _chaptersJson.tool[i][z][k] = { tool: tools[k].tool[0] };
  1748. _chaptersJson.tool[i].array[z].array[k] = {
  1749. tool: tools[k].tool[0],
  1750. };
  1751. }
  1752. }
  1753. }
  1754. _chaptersJson.state.learing =
  1755. _chaptersJson.state.stage - _chaptersJson.state.finish;
  1756. this.chaptersJson = _chaptersJson;
  1757. // debugger
  1758. })
  1759. .catch((err) => {
  1760. loading.close();
  1761. console.error(err);
  1762. });
  1763. },
  1764. getGroup() {
  1765. this.getCourseDetail1();
  1766. },
  1767. getUser() {
  1768. let params = { uid: this.userid };
  1769. this.ajax
  1770. .get(this.$store.state.api + "getUser", params)
  1771. .then((res) => {
  1772. this.userinfo = res.data[0][0];
  1773. })
  1774. .catch((err) => {
  1775. console.error(err);
  1776. });
  1777. },
  1778. // getSName() {
  1779. // let params = {
  1780. // uid: JSON.stringify(this.courseDetail.course_student),
  1781. // };
  1782. // this.ajax
  1783. // .get(this.$store.state.api + "selectSName", params)
  1784. // .then((res) => {
  1785. // this.aStudentName = res.data[0];
  1786. // })
  1787. // .catch((err) => {
  1788. // console.error(err);
  1789. // });
  1790. // },
  1791. async getInviteCode(cid) {
  1792. let code = this.randomNumber();
  1793. // let params = {
  1794. // code: code,
  1795. // oid: this.oid,
  1796. // }
  1797. // let type = 1
  1798. // for (var i = 0; i < this.inviteCode.length; i++) {
  1799. // if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  1800. // type = 2
  1801. // }
  1802. // }
  1803. // if (type == 2) {
  1804. // this.getInviteCode(cid)
  1805. // return;
  1806. // }
  1807. // const res = await this.ajax.get(this.$store.state.api + "selectInviteCode2", params)
  1808. // if (res.data.length && res.data[0].length && res.data[0][0].courseId != this.cid) {
  1809. // this.getInviteCode(cid)
  1810. // return;
  1811. // }
  1812. let array = [];
  1813. for (var i = 0; i < this.inviteCode.length; i++) {
  1814. array.push(this.inviteCode[i].cid);
  1815. }
  1816. if (array.indexOf(cid) != -1) {
  1817. this.inviteCode[array.indexOf(cid)].ic = code;
  1818. } else {
  1819. this.inviteCode.push({ cid: cid, ic: code });
  1820. }
  1821. },
  1822. randomNumber() {
  1823. // 随机生成两位数
  1824. // let num = Math.floor(Math.random() * 900) + 100;
  1825. // 生成 0 到 99 之间的随机整数
  1826. const randomNumber = Math.floor(Math.random() * 100);
  1827. // 如果随机数小于 10,补上前导零
  1828. const num =
  1829. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  1830. // 随机生成两个大写字母
  1831. let letters = "";
  1832. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  1833. for (let i = 0; i < 3; i++) {
  1834. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  1835. }
  1836. // 随机生成两位数字和字母的组合
  1837. let mix = "";
  1838. let chars =
  1839. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  1840. for (let i = 0; i < 3; i++) {
  1841. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  1842. mix += char;
  1843. }
  1844. // 随机选择一种类型
  1845. let type = Math.floor(Math.random() * 3);
  1846. return num;
  1847. // 根据类型输出结果
  1848. switch (type) {
  1849. case 0:
  1850. console.log(num); // 输出两位数
  1851. return num;
  1852. case 1:
  1853. console.log(letters); // 输出两个大写字母
  1854. return letters;
  1855. case 2:
  1856. console.log(mix); // 输出两位数字和字母的组合
  1857. return mix;
  1858. }
  1859. },
  1860. exportCourse() {
  1861. let _title = `<div style="font-size:50px;font-weight:bold;">${this.courseDetail.title}</div>`;
  1862. let _type = "";
  1863. if (this.courseType.length) {
  1864. _type = `<div style="font-size:30px;margin-top:10px;"><span style="color: rgb(113, 124, 141); font-weight: 400;">分类:</span><span>${
  1865. this.courseTypeJson[Object.keys(this.courseTypeJson)[0]]
  1866. }</span></div>`;
  1867. }
  1868. let _user = `<div style="font-size:30px;margin-top:10px;"><span style="color: rgb(113, 124, 141); font-weight: 400;">创建者:</span><span>${this.courseDetail.username}</span></div>`;
  1869. const _chapInfo = this.chapInfo;
  1870. let _chap = "";
  1871. for (let i = 0; i < _chapInfo.length; i++) {
  1872. _chap += `<div style="font-size:40px;margin-top:70px;"><span>第${
  1873. i + 1
  1874. }阶段:${_chapInfo[i].dyName}</span></div>`;
  1875. let _task = _chapInfo[i].chapterInfo[0].taskJson;
  1876. for (let j = 0; j < _task.length; j++) {
  1877. _chap += `<div style="font-size:30px;margin-top:50px;"><span>任务${
  1878. j + 1
  1879. }:${_task[j].task}</span></div>`;
  1880. if (_task[j].taskDetail) {
  1881. _chap += `<div style="font-size:25px;margin-top:40px;">任务描述</div>`;
  1882. _chap += `<div style="font-size:25px;margin-top:10px;">${_task[j].taskDetail}</div>`;
  1883. }
  1884. let _tool = _task[j].toolChoose;
  1885. if (_tool[0].tool.length) {
  1886. for (let z = 0; z < _tool.length; z++) {
  1887. _chap += `<div style="font-size:23px;margin-top:30px;"><span>步骤${
  1888. z + 1
  1889. }:</span><span>${
  1890. tools[_tool[z].tool[0]] ? tools[_tool[z].tool[0]].name : ""
  1891. }</span></div>`;
  1892. if (_tool[z].toolDetail) {
  1893. _chap += `<div style="font-size:23px;margin-top:20px;">工具描述</div>`;
  1894. _chap += `<div style="font-size:23px;margin-top:10px;">${_tool[z].toolDetail}</div>`;
  1895. }
  1896. }
  1897. }
  1898. }
  1899. }
  1900. let _html = _title + _type + _user + _chap;
  1901. this.generate(this.courseDetail, _html);
  1902. },
  1903. async generate(a, html) {
  1904. // 将html文件中需要用到的数据挂载到store上
  1905. const content = `<!DOCTYPE html>
  1906. <html lang="en">
  1907. <head>
  1908. <meta charset="UTF-8">
  1909. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  1910. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  1911. <title>${a.title}</title>
  1912. <style>
  1913. </style>
  1914. </head>
  1915. <body>
  1916. ${html}
  1917. </body>
  1918. </html>`;
  1919. // debugger
  1920. // 生成报告
  1921. const link = document.createElement("a");
  1922. let dname = a.title + ".doc";
  1923. // link.download = "报告.html"; // 文件名
  1924. link.download = dname; // 文件名
  1925. link.style.display = "none";
  1926. // 创建文件流
  1927. // 创建bolb实例时,内容一定要放在[]中
  1928. const blob = new Blob([content], {
  1929. type: "text/plain;charset='utf-8'",
  1930. });
  1931. link.href = window.URL.createObjectURL(blob);
  1932. document.body.appendChild(link);
  1933. link.click();
  1934. document.body.removeChild(link);
  1935. // saveAs(
  1936. // htmlDocx.asBlob(content, {
  1937. // orientation: "landscape", //跨域设置
  1938. // }),
  1939. // //文件名
  1940. // "报告.doc"
  1941. // );
  1942. },
  1943. uploadCourse() {
  1944. // this.$confirm("确定导出课件吗?", "提示", {
  1945. // confirmButtonText: "确定",
  1946. // cancelButtonText: "取消",
  1947. // type: "warning",
  1948. // })
  1949. // .then(() => {
  1950. const loading = this.$loading.service({
  1951. background: "rgba(255, 255, 255, 0.7)",
  1952. target: document.body,
  1953. text: "文件加载中...",
  1954. });
  1955. const _chapInfo = this.chapInfo;
  1956. let url = [];
  1957. for (let i = 0; i < _chapInfo.length; i++) {
  1958. let _task = _chapInfo[i].chapterInfo[0].taskJson;
  1959. for (let j = 0; j < _task.length; j++) {
  1960. let _chapterData = _task[j].chapterData;
  1961. for (let k = 0; k < _chapterData.length; k++) {
  1962. if (
  1963. _chapterData[k].url.indexOf(
  1964. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  1965. ) !== -1 &&
  1966. _chapterData[k].url.indexOf("img") === -1
  1967. ) {
  1968. let _point = _chapterData[k].url.split(".")[_chapterData[k].url.split(".").length - 1]
  1969. url.push({
  1970. name: _chapterData[k].name.indexOf(_point) == -1 ? (_chapterData[k].name + '.' + _point) : _chapterData[k].name,
  1971. url: _chapterData[k].url,
  1972. });
  1973. }
  1974. }
  1975. }
  1976. }
  1977. console.log(url);
  1978. this.downLoadAll(url, loading);
  1979. // })
  1980. // .catch(() => {});
  1981. },
  1982. downLoadAll(url, loading) {
  1983. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  1984. const zip = new JSZip();
  1985. const cache = {};
  1986. const promises = [];
  1987. data.forEach((item) => {
  1988. const promise = getFile(item.url).then((data) => {
  1989. if (data.data != 1) {
  1990. // 下载文件, 并存成ArrayBuffer对象
  1991. const file_name = item.name; // 获取文件名
  1992. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  1993. cache[file_name] = data.data;
  1994. }
  1995. });
  1996. promises.push(promise);
  1997. });
  1998. Promise.all(promises).then(() => {
  1999. zip.generateAsync({ type: "blob" }).then((content) => {
  2000. // 生成二进制流
  2001. FileSaver.saveAs(content, this.courseDetail.title + ".zip"); // 利用file-saver保存文件 自定义文件名
  2002. setTimeout(() => {
  2003. loading.close();
  2004. }, 2000);
  2005. });
  2006. });
  2007. },
  2008. },
  2009. created() {
  2010. // if(this.tType == 1 || this.tType == 4){
  2011. // this.getCourseDetail2();
  2012. // }else{
  2013. // this.getCourseDetail1();
  2014. // }
  2015. this.getCourseDetail1();
  2016. this.getUser();
  2017. document.scrollingElement.scrollTop = 0;
  2018. // this.getSName();
  2019. },
  2020. };
  2021. </script>
  2022. <style scoped>
  2023. @media screen and (max-width: 1024px) {
  2024. /* .Tname {
  2025. width: 500px;
  2026. white-space: nowrap;
  2027. overflow: hidden;
  2028. text-overflow: ellipsis;
  2029. } */
  2030. }
  2031. .body_student {
  2032. margin: 10px auto;
  2033. width: 98%;
  2034. height: 100%;
  2035. }
  2036. .student_head {
  2037. width: 100%;
  2038. background: #fff;
  2039. height: 30%;
  2040. position: relative;
  2041. }
  2042. .returnIndexImg {
  2043. width: 18px;
  2044. margin: 0 7px 0 0;
  2045. height: auto;
  2046. box-sizing: border-box;
  2047. display: flex;
  2048. align-items: center;
  2049. }
  2050. .returnIndexImg > img {
  2051. width: 100%;
  2052. }
  2053. .wheel {
  2054. width: 250px;
  2055. max-height: 146px;
  2056. display: flex;
  2057. align-items: center;
  2058. }
  2059. .man {
  2060. width: 16px;
  2061. height: 16px;
  2062. }
  2063. .wheel > img,
  2064. .man > img {
  2065. width: 100%;
  2066. height: 100%;
  2067. }
  2068. .box_course {
  2069. display: flex;
  2070. padding: 25px 0 20px 60px;
  2071. }
  2072. .right_box {
  2073. display: flex;
  2074. flex-direction: column;
  2075. margin-left: 30px;
  2076. align-items: flex-start;
  2077. width: calc(100% - 350px);
  2078. }
  2079. .right_box_title {
  2080. font-size: 20px;
  2081. font-weight: bold;
  2082. max-width: calc(100% - 250px);
  2083. white-space: nowrap;
  2084. overflow: hidden;
  2085. text-overflow: ellipsis;
  2086. }
  2087. .people {
  2088. display: flex;
  2089. margin-top: 20px;
  2090. }
  2091. .person {
  2092. margin-left: 10px;
  2093. /* line-height: 18px; */
  2094. }
  2095. .btnBox {
  2096. display: flex;
  2097. margin-top: 20px;
  2098. }
  2099. .now_study {
  2100. /* width: 120px; */
  2101. padding: 0 10px;
  2102. height: 45px;
  2103. color: #fff;
  2104. background: #3681fc;
  2105. text-align: center;
  2106. line-height: 45px;
  2107. border-radius: 8px;
  2108. font-size: 16px;
  2109. cursor: pointer;
  2110. display: flex;
  2111. flex-direction: row;
  2112. flex-wrap: nowrap;
  2113. align-items: center;
  2114. justify-content: center;
  2115. }
  2116. .now_study + .now_study {
  2117. margin-left: 10px;
  2118. }
  2119. .goToStudy {
  2120. /* width: 120px; */
  2121. padding: 0 10px;
  2122. height: 45px;
  2123. background: #3681fc;
  2124. border-radius: 8px;
  2125. color: #fff;
  2126. display: flex;
  2127. flex-direction: row;
  2128. flex-wrap: nowrap;
  2129. align-items: center;
  2130. justify-content: center;
  2131. position: absolute;
  2132. right: 25px;
  2133. bottom: 25px;
  2134. font-size: 16px;
  2135. cursor: pointer;
  2136. }
  2137. .now_group {
  2138. height: 35px;
  2139. font-size: 14px;
  2140. line-height: 35px;
  2141. margin-left: 32px;
  2142. }
  2143. .now_group > span:nth-child(1) {
  2144. color: rgb(108, 108, 108);
  2145. }
  2146. .choose_who {
  2147. display: flex;
  2148. margin: 15px 0 0 25px;
  2149. }
  2150. .who_choose {
  2151. height: 28px;
  2152. cursor: pointer;
  2153. }
  2154. .choose_who > div:nth-child(2) {
  2155. margin-left: 35px;
  2156. }
  2157. .choose {
  2158. border-bottom: 5px solid #4a9eed;
  2159. color: #4a9eed;
  2160. }
  2161. .student_body {
  2162. display: flex;
  2163. }
  2164. .student_body,
  2165. .right {
  2166. width: 100%;
  2167. margin: 10px auto;
  2168. min-height: 688px;
  2169. }
  2170. .nav {
  2171. margin: auto 25px;
  2172. width: 80%;
  2173. padding-top: 5px;
  2174. text-indent: 25px;
  2175. }
  2176. .pic {
  2177. width: 100%;
  2178. display: flex;
  2179. flex-direction: row;
  2180. flex-wrap: wrap;
  2181. height: 100%;
  2182. justify-content: space-evenly;
  2183. }
  2184. .Img {
  2185. /*width: 30%; */
  2186. width: 300px;
  2187. margin: 20px 50px;
  2188. margin: 20px 10px;
  2189. border: 1px solid #dbdbdb;
  2190. border-radius: 5px;
  2191. overflow: hidden;
  2192. }
  2193. .Img > img {
  2194. width: 100%;
  2195. height: 100%;
  2196. }
  2197. .student_body_one,
  2198. .right_one {
  2199. width: 100%;
  2200. margin: 0 auto;
  2201. background: #fff;
  2202. margin-top: 10px;
  2203. min-height: 688px;
  2204. }
  2205. .student {
  2206. width: 85%;
  2207. display: flex;
  2208. flex-direction: row;
  2209. flex-wrap: wrap;
  2210. justify-content: flex-start;
  2211. margin: auto 10px;
  2212. }
  2213. .student > div {
  2214. width: 12%;
  2215. height: 35px;
  2216. background: #e3759a;
  2217. text-align: center;
  2218. border: 1px solid #e3759a;
  2219. border-radius: 5px;
  2220. color: #fff;
  2221. line-height: 35px;
  2222. margin: 10px;
  2223. }
  2224. .dialog_change >>> .el-dialog {
  2225. border-radius: 5px;
  2226. }
  2227. .dialog_change >>> .el-dialog__header {
  2228. background: #303030;
  2229. height: 36px;
  2230. line-height: 36px;
  2231. padding-left: 10px;
  2232. padding: 0px 10px 0px;
  2233. }
  2234. .dialog_change >>> .el-dialog__headerbtn {
  2235. top: 10px !important;
  2236. right: 10px !important;
  2237. }
  2238. .dialog_change >>> .el-dialog__title {
  2239. color: #fff;
  2240. font-size: 14px;
  2241. line-height: 5px;
  2242. }
  2243. .dialog_change >>> .el-dialog__body {
  2244. background: #f5f5f5;
  2245. }
  2246. .blue_box {
  2247. align-items: center;
  2248. display: flex;
  2249. flex-direction: column;
  2250. justify-content: center;
  2251. }
  2252. .blue_box,
  2253. .blue_box_one {
  2254. width: 30%;
  2255. height: 100px;
  2256. text-align: center;
  2257. color: #fff;
  2258. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  2259. border-radius: 15px;
  2260. margin: 15px 0 15px 15px;
  2261. cursor: pointer;
  2262. }
  2263. .courseItem {
  2264. width: 299px;
  2265. height: 70px;
  2266. background: #ddebf8;
  2267. border-radius: 8px;
  2268. margin-right: 16px;
  2269. margin-bottom: 16px;
  2270. display: flex;
  2271. flex-direction: row;
  2272. flex-wrap: nowrap;
  2273. align-items: flex-start;
  2274. justify-content: center;
  2275. padding-top: 20px;
  2276. cursor: pointer;
  2277. }
  2278. .jdAndTask {
  2279. display: flex;
  2280. flex-direction: column;
  2281. flex-wrap: nowrap;
  2282. justify-content: center;
  2283. align-items: flex-start;
  2284. }
  2285. .jdAndTask > div:nth-child(1) {
  2286. font-size: 18px;
  2287. font-weight: bold;
  2288. color: #000;
  2289. margin-bottom: 10px;
  2290. }
  2291. .jdAndTask > div:nth-child(2) {
  2292. font-size: 14px;
  2293. font-weight: 400;
  2294. color: #000;
  2295. max-width: 180px;
  2296. white-space: nowrap;
  2297. overflow: hidden;
  2298. text-overflow: ellipsis;
  2299. word-break: break-word;
  2300. width: 180px;
  2301. }
  2302. .blue_box_one {
  2303. width: 200px;
  2304. height: 200px;
  2305. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  2306. display: flex;
  2307. flex-direction: column;
  2308. flex-wrap: nowrap;
  2309. align-items: center;
  2310. justify-content: center;
  2311. }
  2312. .blue_box_one > div {
  2313. margin: 5px 0;
  2314. }
  2315. .blue_box_one > div:nth-child(1) {
  2316. font-size: 20px;
  2317. font-weight: bold;
  2318. }
  2319. .blue_box > div:nth-child(2) {
  2320. margin-top: 10px;
  2321. }
  2322. .blue_box_one > div:nth-child(2) {
  2323. white-space: nowrap;
  2324. text-overflow: ellipsis;
  2325. overflow: hidden;
  2326. word-break: break-all;
  2327. width: 100%;
  2328. text-align: center;
  2329. max-width: calc(100% - 85px);
  2330. margin: 0 auto;
  2331. }
  2332. .return {
  2333. background: #f0f4fa;
  2334. width: 75px;
  2335. height: 36px;
  2336. color: #000;
  2337. text-align: center;
  2338. line-height: 36px;
  2339. margin-right: 20px;
  2340. cursor: pointer;
  2341. border-radius: 5px;
  2342. position: absolute;
  2343. right: 10px;
  2344. top: 24px;
  2345. font-size: 14px;
  2346. display: flex;
  2347. flex-direction: row;
  2348. flex-wrap: nowrap;
  2349. justify-content: center;
  2350. align-items: center;
  2351. }
  2352. .return > img {
  2353. width: 100%;
  2354. height: 100%;
  2355. }
  2356. .cType {
  2357. display: flex;
  2358. flex-direction: row;
  2359. justify-content: center;
  2360. align-items: center;
  2361. margin-top: 20px;
  2362. }
  2363. .cType > div > span {
  2364. font-weight: 400;
  2365. color: #717c8d;
  2366. }
  2367. .type_children + .type_children {
  2368. margin-left: 10px;
  2369. }
  2370. .all_choose {
  2371. margin-right: 10px;
  2372. max-width: 250px;
  2373. white-space: nowrap;
  2374. overflow: hidden;
  2375. text-overflow: ellipsis;
  2376. }
  2377. .rightT {
  2378. display: flex;
  2379. flex-direction: row;
  2380. flex-wrap: nowrap;
  2381. align-items: center;
  2382. width: calc(100% - 20px);
  2383. }
  2384. .jd {
  2385. background: #f0f0f0;
  2386. margin-left: 12px;
  2387. border-radius: 4px;
  2388. font-size: 14px;
  2389. color: #3d3d3d;
  2390. width: 90px;
  2391. height: 28px;
  2392. text-align: center;
  2393. line-height: 28px;
  2394. }
  2395. .sLeft {
  2396. width: 343px;
  2397. margin-right: 10px;
  2398. background: rgb(255, 255, 255);
  2399. padding: 20px 20px 0 20px;
  2400. box-sizing: border-box;
  2401. border-radius: 12px;
  2402. }
  2403. .courseT {
  2404. border-left: 3px solid #3681fc;
  2405. padding-left: 5px;
  2406. font-weight: bold;
  2407. }
  2408. .courseTd {
  2409. padding-top: 15px;
  2410. height: 700px;
  2411. overflow: auto;
  2412. word-break: break-word;
  2413. white-space: pre-line;
  2414. }
  2415. .courseTd::-webkit-scrollbar {
  2416. /*滚动条整体样式*/
  2417. width: 6px;
  2418. /*高宽分别对应横竖滚动条的尺寸*/
  2419. height: 6px;
  2420. }
  2421. /*定义滚动条轨道 内阴影+圆角*/
  2422. .courseTd::-webkit-scrollbar {
  2423. border-radius: 10px;
  2424. background-color: #eee;
  2425. }
  2426. /*定义滑块 内阴影+圆角*/
  2427. .courseTd::-webkit-scrollbar-thumb {
  2428. border-radius: 10px;
  2429. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  2430. background-color: rgba(0, 0, 0, 0.1);
  2431. }
  2432. .rightTd,
  2433. .noBRight {
  2434. width: calc(100% - 28% - 10px);
  2435. background: #fff;
  2436. display: flex;
  2437. flex-direction: row;
  2438. flex-wrap: wrap;
  2439. align-content: flex-start;
  2440. align-items: center;
  2441. justify-content: flex-start;
  2442. border-radius: 12px;
  2443. padding-left: 17px;
  2444. }
  2445. .rightTd:nth-child(5n),
  2446. .noBRight:nth-child(5n) {
  2447. margin-right: 0;
  2448. }
  2449. .noBRight {
  2450. width: 100%;
  2451. }
  2452. .Tname {
  2453. word-break: break-all;
  2454. width: auto;
  2455. /* overflow: hidden;
  2456. white-space: nowrap;
  2457. text-overflow: ellipsis; */
  2458. }
  2459. /* .TnameC{
  2460. width:auto;
  2461. overflow: unset;
  2462. white-space: unset;
  2463. text-overflow: unset;
  2464. } */
  2465. .Tname > span {
  2466. cursor: pointer;
  2467. color: #1463eb;
  2468. margin-left: 10px;
  2469. }
  2470. .detail {
  2471. width: 100%;
  2472. padding: 15px;
  2473. box-sizing: border-box;
  2474. }
  2475. .statebox {
  2476. display: flex;
  2477. align-items: center;
  2478. box-sizing: border-box;
  2479. margin-left: 30px;
  2480. }
  2481. .statebox div {
  2482. padding: 10px 20px;
  2483. border-radius: 5px;
  2484. background: #fff;
  2485. display: flex;
  2486. align-items: center;
  2487. height: 46px;
  2488. line-height: 46px;
  2489. box-sizing: border-box;
  2490. }
  2491. .statebox div + div {
  2492. margin-left: 20px;
  2493. }
  2494. .statebox div span {
  2495. font-size: 16px;
  2496. display: flex;
  2497. align-items: center;
  2498. }
  2499. .statebox div span + span {
  2500. margin-left: 10px;
  2501. color: #1463eb;
  2502. }
  2503. .p_tool_box {
  2504. display: flex;
  2505. flex-wrap: wrap;
  2506. /* color: #fff; */
  2507. padding: 0 15px 10px;
  2508. align-items: center;
  2509. justify-content: space-evenly;
  2510. border-radius: 5px;
  2511. height: 200px;
  2512. overflow: auto;
  2513. max-width: 150px;
  2514. }
  2515. .p_tool {
  2516. display: flex;
  2517. margin-top: 10px;
  2518. }
  2519. .p_tool > div {
  2520. display: flex;
  2521. flex-direction: column;
  2522. align-items: center;
  2523. min-width: 60px;
  2524. }
  2525. .p_tool > div img {
  2526. width: 50px;
  2527. height: 50px;
  2528. }
  2529. .p_tool > div > div {
  2530. margin-top: 5px;
  2531. font-size: 12px;
  2532. }
  2533. .p_tool_box2 {
  2534. padding: 10px 15px;
  2535. }
  2536. .p_tool2 {
  2537. margin-right: 20px;
  2538. display: flex;
  2539. flex-direction: column;
  2540. align-items: flex-start;
  2541. /* margin-bottom: 10px; */
  2542. }
  2543. .p_tool2 > div:nth-child(1) {
  2544. margin-bottom: 10px;
  2545. }
  2546. .toolBigBox {
  2547. display: flex;
  2548. flex-direction: column;
  2549. }
  2550. .toolSta {
  2551. display: flex;
  2552. margin: 20px 0 0;
  2553. }
  2554. .toolSta > div {
  2555. display: flex;
  2556. }
  2557. .toolSta > div + div {
  2558. margin-left: 50px;
  2559. }
  2560. .toolSta > div > div:nth-child(1) {
  2561. margin: 10px 10px 0 0;
  2562. }
  2563. .blueBtn {
  2564. background: #61a0f5;
  2565. color: #fff;
  2566. display: flex;
  2567. padding: 10px 15px;
  2568. /* min-width: 150px; */
  2569. min-width: 165px;
  2570. font-size: 16px;
  2571. align-items: center;
  2572. border-radius: 5px;
  2573. }
  2574. .toolSta > div > div:nth-child(2) > div + div {
  2575. margin-top: 10px;
  2576. }
  2577. .toolSta > div > div:nth-child(2) > div > div + div {
  2578. margin: 0 20px;
  2579. }
  2580. .p_tool2 .toolbox {
  2581. display: flex;
  2582. align-items: center;
  2583. margin-top: 10px;
  2584. }
  2585. .p_tool2 .toolbox > div {
  2586. font-size: 16px;
  2587. font-weight: bold;
  2588. }
  2589. .checkBox {
  2590. display: flex;
  2591. padding: 20px 0 0 20px;
  2592. box-sizing: border-box;
  2593. width: 100%;
  2594. }
  2595. .checkBox span {
  2596. padding: 0 5px 5px;
  2597. cursor: pointer;
  2598. font-size: 18px;
  2599. font-weight: 400;
  2600. }
  2601. .checkBox span + span {
  2602. margin-left: 20px;
  2603. }
  2604. .checkBox .active {
  2605. border-bottom: 3px solid #3681fc;
  2606. color: #3681fc;
  2607. font-weight: bold;
  2608. }
  2609. .detail_box {
  2610. background-color: #f0f4fa;
  2611. padding: 15px 20px;
  2612. box-sizing: border-box;
  2613. width: 100%;
  2614. border-radius: 12px;
  2615. }
  2616. .detail_box + .detail_box {
  2617. margin-top: 20px;
  2618. }
  2619. .detail_box .title {
  2620. display: flex;
  2621. align-items: center;
  2622. }
  2623. .detail_box .title > span:nth-child(1) {
  2624. font-size: 18px;
  2625. display: flex;
  2626. align-items: center;
  2627. font-weight: 400;
  2628. color: #0e1e33;
  2629. }
  2630. .detail_box .box {
  2631. margin-top: 20px;
  2632. border-radius: 5px;
  2633. /* width: 100%; */
  2634. box-sizing: border-box;
  2635. overflow: auto;
  2636. }
  2637. .progress {
  2638. display: -webkit-box;
  2639. display: -ms-flexbox;
  2640. width: 100%;
  2641. overflow: auto;
  2642. }
  2643. .chapter {
  2644. margin-right: 30px;
  2645. min-width: 180px;
  2646. background-color: #fff;
  2647. border-radius: 12px;
  2648. }
  2649. .chapter + .chapter {
  2650. padding-left: 10px;
  2651. border-left: 1px solid rgb(220, 220, 220);
  2652. }
  2653. .chapter .stage {
  2654. width: 100%;
  2655. color: #fff;
  2656. background: linear-gradient(90deg, #477cd7, #65b9fc);
  2657. border-radius: 5px;
  2658. height: 50px;
  2659. line-height: 50px;
  2660. font-size: 18px;
  2661. text-align: center;
  2662. min-width: 180px;
  2663. }
  2664. .chapter .task {
  2665. display: flex;
  2666. width: 100%;
  2667. min-width: 180px;
  2668. padding-top: 15px;
  2669. }
  2670. .chapter .task .taskBox {
  2671. min-width: 180px;
  2672. height: 100%;
  2673. }
  2674. .borderRight {
  2675. border-right: 1px solid #eceef7;
  2676. }
  2677. .chapter .task .taskBox + .taskBox {
  2678. margin-left: 10px;
  2679. }
  2680. .chapter .task .taskBox .taskName {
  2681. text-align: center;
  2682. margin: 10px 0 10px 10px;
  2683. display: flex;
  2684. flex-direction: row;
  2685. flex-wrap: nowrap;
  2686. align-items: center;
  2687. min-width: 180px;
  2688. width: 100%;
  2689. }
  2690. /* .toolIcon::before {
  2691. content: "";
  2692. width: 26px;
  2693. height: 26px;
  2694. display: inline-block;
  2695. background-image: url(../assets/icon/toolion.png);
  2696. background-size: 100% 100%;
  2697. }
  2698. .toolIcon::before {
  2699. content: "";
  2700. width: 26px;
  2701. height: 26px;
  2702. display: inline-block;
  2703. background-image: url(../assets/icon/toolion.png);
  2704. background-size: 100% 100%;
  2705. }
  2706. .taskIcon::before {
  2707. content: "";
  2708. width: 26px;
  2709. height: 26px;
  2710. display: inline-block;
  2711. background-image: url(../assets/icon/task.png);
  2712. background-size: 100% 100%;
  2713. }
  2714. .finishIcon::before {
  2715. content: "";
  2716. width: 26px;
  2717. height: 26px;
  2718. display: inline-block;
  2719. background-image: url(../assets/icon/finish.png);
  2720. background-size: 100% 100%;
  2721. } */
  2722. .learningIcon {
  2723. color: #fe9999;
  2724. }
  2725. /* .learningIcon::before {
  2726. content: "";
  2727. width: 22px;
  2728. height: 22px;
  2729. display: inline-block;
  2730. background-image: url(../assets/icon/learning.png);
  2731. background-size: 100% 100%;
  2732. }
  2733. .frequencyIcon::before {
  2734. content: "";
  2735. width: 26px;
  2736. height: 26px;
  2737. display: inline-block;
  2738. background-image: url(../assets/icon/frequency.png);
  2739. background-size: 100% 100%;
  2740. }
  2741. .timeIcon::before {
  2742. content: "";
  2743. width: 26px;
  2744. height: 26px;
  2745. display: inline-block;
  2746. background-image: url(../assets/icon/time.png);
  2747. background-size: 100% 100%;
  2748. } */
  2749. .chapter_time_box {
  2750. border-left: 5px solid #f0f0f0;
  2751. padding: 0 30px;
  2752. box-sizing: border-box;
  2753. margin-top: 35px;
  2754. }
  2755. .c_box {
  2756. padding-top: 40px;
  2757. position: relative;
  2758. margin-top: 45px;
  2759. }
  2760. .c_box .stage_box {
  2761. display: flex;
  2762. align-items: center;
  2763. position: absolute;
  2764. top: -20px;
  2765. left: -45px;
  2766. }
  2767. .c_box .stage_box .yuan {
  2768. width: 25px;
  2769. height: 25px;
  2770. background: rgb(244, 244, 244);
  2771. border-radius: 25px;
  2772. display: flex;
  2773. align-items: center;
  2774. justify-content: center;
  2775. margin-right: 10px;
  2776. }
  2777. .bgCss::before {
  2778. background: #ccc !important;
  2779. }
  2780. .c_box .stage_box .yuan::before {
  2781. content: "";
  2782. width: 15px;
  2783. height: 15px;
  2784. background: rgb(59, 149, 238);
  2785. border-radius: 25px;
  2786. }
  2787. .c_box .stage_box .stage {
  2788. background: linear-gradient(90deg, #478bff, #65b9fc);
  2789. border-radius: 5px;
  2790. height: 50px;
  2791. line-height: 50px;
  2792. font-size: 18px;
  2793. color: #fff;
  2794. width: fit-content;
  2795. padding: 0 20px;
  2796. }
  2797. .s_up {
  2798. cursor: pointer;
  2799. transition: all 0.5s;
  2800. }
  2801. .s_up img {
  2802. width: 35px;
  2803. }
  2804. .s_up2 {
  2805. transform: rotate(90deg);
  2806. }
  2807. .lineBox {
  2808. width: 5px;
  2809. height: 20px;
  2810. background-image: linear-gradient(180deg, #3c65ba, #a1c6ec);
  2811. margin-right: 5px;
  2812. }
  2813. .disCss {
  2814. display: flex;
  2815. flex-direction: row;
  2816. flex-wrap: nowrap;
  2817. align-items: center;
  2818. }
  2819. .disCss > div {
  2820. margin: 10px 10px 0 0;
  2821. }
  2822. .titleCss {
  2823. max-width: 100px;
  2824. white-space: nowrap;
  2825. overflow: hidden;
  2826. text-overflow: ellipsis;
  2827. word-break: break-word;
  2828. margin-left: 10px;
  2829. font-size: 16px;
  2830. font-weight: bold;
  2831. color: #0e1e33;
  2832. }
  2833. .navIndex {
  2834. font-weight: bold;
  2835. color: #0e1e33;
  2836. font-size: 14px;
  2837. }
  2838. .stageCss {
  2839. cursor: pointer;
  2840. display: flex;
  2841. flex-direction: row;
  2842. flex-wrap: nowrap;
  2843. justify-content: center;
  2844. align-items: center;
  2845. border-bottom: 1px solid #e7ebf1;
  2846. }
  2847. .disabled {
  2848. background: rgba(210, 210, 210, 1);
  2849. }
  2850. .teaClass {
  2851. display: flex;
  2852. flex-direction: row;
  2853. flex-wrap: nowrap;
  2854. align-items: center;
  2855. }
  2856. .teaClass > div:nth-child(1) {
  2857. min-width: 90px;
  2858. }
  2859. .diy_sk >>> .el-dialog {
  2860. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  2861. border-radius: 18px 18px 18px 18px;
  2862. }
  2863. .diy_sk >>> .el-dialog__title {
  2864. font-size: 16px;
  2865. font-weight: bold;
  2866. color: #0e1e33;
  2867. }
  2868. .diy_sk >>> .el-dialog__body {
  2869. padding: 0 20px 15px 20px;
  2870. }
  2871. .classBox {
  2872. display: flex;
  2873. flex-direction: row;
  2874. flex-wrap: wrap;
  2875. justify-content: flex-start;
  2876. align-items: flex-start;
  2877. min-height: 300px;
  2878. max-height: 500px;
  2879. overflow: auto;
  2880. align-content: flex-start;
  2881. margin-bottom: 15px;
  2882. }
  2883. .classBox > div {
  2884. width: 106px;
  2885. height: 32px;
  2886. background: #3681fc;
  2887. border-radius: 4px;
  2888. font-weight: 400;
  2889. color: #fff;
  2890. font-size: 14px;
  2891. text-align: center;
  2892. line-height: 32px;
  2893. margin: 0 8px 8px 0;
  2894. cursor: pointer;
  2895. }
  2896. .cancelDiy {
  2897. width: 102px;
  2898. height: 36px;
  2899. background: #e7ebf1;
  2900. border-radius: 4px;
  2901. font-size: 14px;
  2902. font-weight: 400;
  2903. color: #717c8d;
  2904. text-align: center;
  2905. line-height: 32px;
  2906. margin: 0 auto;
  2907. cursor: pointer;
  2908. }
  2909. .confirmButtonClass{
  2910. background-color: #1463eb !important;
  2911. border-color: #1463eb !important;
  2912. }
  2913. </style>