study.vue 118 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012
  1. <template>
  2. <div class="pb_content" style="overflow: unset">
  3. <div
  4. class="pb_content_body"
  5. style="display: flex; height: 900px; position: relative"
  6. >
  7. <div class="pb_left">
  8. <div class="courseTitle">{{ courseDetail.title }}</div>
  9. <div class="ml">目录</div>
  10. <div class="cru_selectBox">
  11. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  12. <div class="blue_box_one" @click="get(stageIndex)">
  13. <div>第{{ stageIndex + 1 }}阶段</div>
  14. <div>{{ item.dyName }}</div>
  15. </div>
  16. <div class="twoChild" :class="{ navActive: item.isOpen }">
  17. <div
  18. class="navChild"
  19. v-for="(nav, navIndex) in item.task"
  20. :key="navIndex"
  21. >
  22. <div
  23. class="navTask"
  24. @click="openTask(stageIndex, navIndex, nav.id)"
  25. :class="{
  26. openTaskActive:
  27. navIndex == taskCount &&
  28. nav.id == navId &&
  29. stageIndex == courseType,
  30. }"
  31. >
  32. <div
  33. class="vedioNav"
  34. style="margin: 0; background: #aee3d2; color: #32a77a"
  35. >
  36. 任务{{ navIndex + 1 }}
  37. </div>
  38. <div class="navTaskname">{{ nav.taskName }}</div>
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. </div>
  44. </div>
  45. <div class="body_student">
  46. <div
  47. class="new_top"
  48. style="position: fixed; top: 0; width: 77%; z-index: 999"
  49. >
  50. <div class="before"></div>
  51. <div class="courseIndex">
  52. <div>第{{ courseType - 0 + 1 }}阶段</div>
  53. <div>{{ chapInfoList[courseType].dyName }}</div>
  54. </div>
  55. <div class="btnAll">
  56. <div class="returnBtn" @click="nextOrpreSteps(0)">上一步</div>
  57. <div class="returnBtn" @click="nextOrpreSteps(1)">下一步</div>
  58. <div class="returnBtn" @click="allScrell">全屏</div>
  59. <div
  60. class="returnBtn"
  61. @click.stop="
  62. goTo(
  63. '/courseDetail?userid=' +
  64. userid +
  65. '&oid=' +
  66. oid +
  67. '&courseId=' +
  68. id
  69. )
  70. "
  71. >
  72. 返回
  73. </div>
  74. </div>
  75. </div>
  76. <!-- v-for="(task, index) in chapInfoList[courseType].chapterInfo[0]
  77. .taskJson"
  78. :key="index"-->
  79. <div class="study_top">
  80. <div
  81. class="vedioBox"
  82. v-if="
  83. vedio[taskCount].length > 0 ||
  84. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  85. .taskDetail != ''
  86. "
  87. >
  88. <div class="checkbox">
  89. <div
  90. class="check"
  91. style="font-size: 25px"
  92. :id="
  93. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].id
  94. "
  95. >
  96. <!-- {{ taskCount + 1 }}
  97. {{ chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task }}-->
  98. 学一学
  99. </div>
  100. </div>
  101. <!-- 有视频 -->
  102. <div class="student_head" v-if="vedio[taskCount].length > 0">
  103. <div class="vedioTaskBox">
  104. <div class="taskBox">
  105. <div
  106. style="
  107. display: flex;
  108. flex-wrap: nowrap;
  109. flex-direction: column;
  110. position: relative;
  111. "
  112. >
  113. <div
  114. style="
  115. padding: 20px;
  116. line-height: 30px;
  117. max-height: 105px;
  118. overflow: auto;
  119. "
  120. v-if="
  121. chapInfoList[courseType].chapterInfo[0].taskJson[
  122. taskCount
  123. ].taskDetail != ''
  124. "
  125. >
  126. <!-- <span style="color: #cbcbcb">任务描述</span> -->
  127. {{
  128. chapInfoList[courseType].chapterInfo[0].taskJson[
  129. taskCount
  130. ].taskDetail
  131. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  132. taskCount
  133. ].taskDetail
  134. : "暂无描述"
  135. }}
  136. </div>
  137. </div>
  138. </div>
  139. <div
  140. class="box_course"
  141. :class="vedio[taskCount].length == 0 ? 'noVedio' : ''"
  142. >
  143. <div
  144. class="wheel"
  145. v-if="
  146. vedio.length &&
  147. vedio[taskCount] &&
  148. vedio[taskCount].length > 0 &&
  149. showType == 0
  150. "
  151. >
  152. <div class="workd_media" style="height: 100%">
  153. <video-player
  154. class="video-player vjs-custom-skin"
  155. :playsinline="true"
  156. :options="playerO[taskCount]"
  157. @play="onPlayerPlay($event)"
  158. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  159. ></video-player>
  160. </div>
  161. </div>
  162. <div
  163. class="wheel"
  164. v-if="showType == 1"
  165. style="
  166. box-shadow: 0 0 6px 1px #f2f2f2;
  167. width: 90%;
  168. margin: 0 0 20px 30px;
  169. background: #f1f1f1;
  170. "
  171. >
  172. <div class="title">查看文档</div>
  173. <el-form class="textBox">
  174. <el-form-item label="文档标题" class="textTitle">
  175. <div style="font-size: 22px">{{ text.name }}</div>
  176. </el-form-item>
  177. <div style="color: #918f8f">文档内容</div>
  178. <div v-html="text.url" class="textContent"></div>
  179. </el-form>
  180. </div>
  181. <div
  182. class="wheel"
  183. v-if="showType == 2"
  184. style="height: 520px; width: 90%; margin: 0 0 20px 30px"
  185. >
  186. <iframe
  187. style="width: 100%; height: 100%; border: none"
  188. :src="pptImgUrl"
  189. ></iframe>
  190. </div>
  191. </div>
  192. </div>
  193. <div
  194. class="vedioList"
  195. :class="vedio[taskCount].length == 0 ? 'listNoVedio' : ''"
  196. v-if="
  197. (vedio.length &&
  198. vedio[taskCount] &&
  199. vedio[taskCount].length > 0) ||
  200. (textList.length &&
  201. textList[taskCount] &&
  202. textList[taskCount].length > 0) ||
  203. (chapToolList.length &&
  204. chapToolList[taskCount] &&
  205. chapToolList[taskCount].length > 0) ||
  206. (lineList.length &&
  207. lineList[taskCount] &&
  208. lineList[taskCount].length > 0)
  209. "
  210. >
  211. <div style="padding: 15px 0 5px 15px">内容列表:</div>
  212. <div class="navBox">
  213. <div
  214. v-show="
  215. vedio.length &&
  216. vedio[taskCount] &&
  217. vedio[taskCount].length > 0
  218. "
  219. >
  220. <div class="vedioNav">视频</div>
  221. <div
  222. class="vedioTimeBox"
  223. v-for="(media, vedioIndex) in vedio[taskCount]"
  224. :key="vedioIndex + '1'"
  225. >
  226. <div
  227. class="media"
  228. style="width: 90px; height: 60px; position: relative"
  229. >
  230. <img
  231. style="height: 90px; width: 160px"
  232. :src="
  233. media.cover != null && media.cover != ''
  234. ? JSON.parse(media.cover).length > 0
  235. ? JSON.parse(media.cover)[0].url
  236. : mr
  237. : mr
  238. "
  239. alt
  240. @click="lookVedio(media.url)"
  241. />
  242. <div class="vedioTime">{{ vedioTime }}</div>
  243. <!-- <div class="vedioName">{{ media.name }}</div> -->
  244. </div>
  245. <div class="vedioName">{{ media.name }}</div>
  246. </div>
  247. </div>
  248. <div
  249. v-show="
  250. textList.length &&
  251. textList[taskCount] &&
  252. textList[taskCount].length > 0
  253. "
  254. class="newNav"
  255. v-for="(text, textIndex) in textList[taskCount]"
  256. :key="textIndex + '2'"
  257. >
  258. <div class="vedioNav">文档</div>
  259. <div>
  260. <div
  261. class="navText"
  262. @click="lookText(taskCount, textIndex)"
  263. >
  264. {{
  265. textList[taskCount].length > 0 ? text.name : ""
  266. }}.doc
  267. </div>
  268. </div>
  269. </div>
  270. <div
  271. v-show="
  272. chapInfoList.length &&
  273. chapToolList[taskCount] &&
  274. chapToolList[taskCount].length > 0
  275. "
  276. class="newNav"
  277. v-for="(tools, toolsIndex) in chapToolList[taskCount]"
  278. :key="toolsIndex + '3'"
  279. >
  280. <div class="vedioNav">工具</div>
  281. <div>
  282. <div
  283. class="navText"
  284. @click="lookTools(taskCount, toolsIndex)"
  285. >
  286. {{
  287. chapToolList[taskCount].length > 0 ? tools.name : ""
  288. }}
  289. </div>
  290. </div>
  291. </div>
  292. <div
  293. v-show="
  294. lineList.length &&
  295. lineList[taskCount] &&
  296. lineList[taskCount].length > 0
  297. "
  298. class="newNav"
  299. v-for="(lines, lineIndex) in lineList[taskCount]"
  300. :key="lineIndex + '4'"
  301. >
  302. <div class="vedioNav">链接</div>
  303. <div>
  304. <div class="navText">
  305. <a
  306. style="text-decoration: none; color: #000"
  307. target="_Blank"
  308. :href="'https://' + lines.url"
  309. >{{ lines.url }}</a
  310. >
  311. </div>
  312. </div>
  313. </div>
  314. <div
  315. class="newNav"
  316. v-show="
  317. file.length &&
  318. file[taskCount] &&
  319. file[taskCount].length > 0
  320. "
  321. v-for="(f, fileIndex) in file[taskCount]"
  322. :key="fileIndex"
  323. >
  324. <div class="vedioNav">文档</div>
  325. <div>
  326. <div class="navText" @click="downFile(f, fileIndex)">
  327. {{ f.name }}
  328. </div>
  329. </div>
  330. </div>
  331. </div>
  332. </div>
  333. </div>
  334. <!-- 没视频 -->
  335. <div class="student_head" style="display: block" v-else>
  336. <div class="taskBox">
  337. <div
  338. style="
  339. display: flex;
  340. flex-wrap: nowrap;
  341. flex-direction: column;
  342. position: relative;
  343. "
  344. >
  345. <div
  346. style="
  347. padding: 20px;
  348. line-height: 30px;
  349. max-height: 105px;
  350. overflow: auto;
  351. "
  352. v-if="
  353. chapInfoList[courseType].chapterInfo[0].taskJson[
  354. taskCount
  355. ].taskDetail != ''
  356. "
  357. >
  358. <!-- <span style="color: #cbcbcb">任务描述</span> -->
  359. {{
  360. chapInfoList[courseType].chapterInfo[0].taskJson[
  361. taskCount
  362. ].taskDetail
  363. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  364. taskCount
  365. ].taskDetail
  366. : "暂无描述"
  367. }}
  368. </div>
  369. </div>
  370. </div>
  371. <div
  372. class="box_course hangVedio"
  373. v-if="
  374. (vedio.length &&
  375. vedio[taskCount] &&
  376. vedio[taskCount].length > 0) ||
  377. (textList.length &&
  378. textList[taskCount] &&
  379. textList[taskCount].length > 0) ||
  380. (chapToolList.length &&
  381. chapToolList[taskCount] &&
  382. chapToolList[taskCount].length > 0) ||
  383. (lineList.length &&
  384. lineList[taskCount] &&
  385. lineList[taskCount].length > 0)
  386. "
  387. >
  388. <div class="vedioList hangVedioList">
  389. <!-- <div
  390. v-if="
  391. vedio.length &&
  392. vedio[taskCount] &&
  393. vedio[taskCount].length > 0
  394. "
  395. >
  396. <div class="vedioNav">视频</div>
  397. <div
  398. class="media"
  399. style="
  400. width: 160px;
  401. margin: 10px auto;
  402. position: relative;
  403. "
  404. v-for="(media, vedioIndex) in vedio[taskCount]"
  405. :key="vedioIndex + '1'"
  406. >
  407. <img
  408. style="height: 90px; width: 160px"
  409. :src="
  410. media.cover != null && media.cover != ''
  411. ? JSON.parse(media.cover).length > 0
  412. ? JSON.parse(media.cover)[0].url
  413. : mr
  414. : mr
  415. "
  416. alt
  417. @click="lookVedio(media.url)"
  418. />
  419. <div class="vedioName">{{ media.name }}</div>
  420. </div>
  421. </div>-->
  422. <div
  423. v-show="
  424. textList.length &&
  425. textList[taskCount] &&
  426. textList[taskCount].length > 0
  427. "
  428. class="newNav"
  429. v-for="(text, textIndex) in textList[taskCount]"
  430. :key="textIndex + '2'"
  431. >
  432. <div class="vedioNav">文档</div>
  433. <div>
  434. <div
  435. class="noNavText"
  436. @click="lookText(taskCount, textIndex)"
  437. >
  438. {{
  439. textList[taskCount].length > 0 ? text.name : ""
  440. }}.doc
  441. </div>
  442. </div>
  443. </div>
  444. <div
  445. v-show="
  446. chapInfoList.length &&
  447. chapToolList[taskCount] &&
  448. chapToolList[taskCount].length > 0
  449. "
  450. class="newNav"
  451. v-for="(tools, toolsIndex) in chapToolList[taskCount]"
  452. :key="toolsIndex + '3'"
  453. >
  454. <div class="vedioNav">工具</div>
  455. <div>
  456. <div
  457. class="noNavText"
  458. @click="lookTools(taskCount, toolsIndex)"
  459. >
  460. {{
  461. chapToolList[taskCount].length > 0 ? tools.name : ""
  462. }}
  463. </div>
  464. </div>
  465. </div>
  466. <div
  467. v-show="
  468. lineList.length &&
  469. lineList[taskCount] &&
  470. lineList[taskCount].length > 0
  471. "
  472. class="newNav"
  473. v-for="(lines, lineIndex) in lineList[taskCount]"
  474. :key="lineIndex + '4'"
  475. >
  476. <div class="vedioNav">链接</div>
  477. <div>
  478. <div class="noNavText">
  479. <a
  480. style="text-decoration: none; color: #000"
  481. target="_Blank"
  482. :href="'https://' + lines.url"
  483. >{{ lines.url }}</a
  484. >
  485. </div>
  486. </div>
  487. </div>
  488. <div
  489. class="newNav"
  490. v-show="
  491. file.length &&
  492. file[taskCount] &&
  493. file[taskCount].length > 0
  494. "
  495. v-for="(f, fileIndex) in file[taskCount]"
  496. :key="fileIndex"
  497. >
  498. <div class="vedioNav">文档</div>
  499. <div>
  500. <div class="navText" @click="downFile(f, fileIndex)">
  501. {{ f.name }}
  502. </div>
  503. </div>
  504. </div>
  505. </div>
  506. </div>
  507. </div>
  508. </div>
  509. <div class="student_body">
  510. <!-- <div
  511. class="vedioBox"
  512. v-if="
  513. file.length && file[taskCount] && file[taskCount].length > 0
  514. "
  515. >
  516. <div class="queTop">
  517. <div class="question" style="width: 30px; margin-top: 5px">
  518. <img src="../assets/icon/fileIcon.png" alt />
  519. </div>
  520. <div class="queTitle">
  521. <div>附件</div>
  522. </div>
  523. </div>
  524. <div class="filebox" style="width: 100%">
  525. <div
  526. class="file"
  527. v-for="(f, fileIndex) in file[taskCount]"
  528. :key="fileIndex"
  529. @click="downFile(f, fileIndex)"
  530. >
  531. <img :src="require('../assets/file.png')" alt />
  532. <div>{{ f.name }}</div>
  533. </div>
  534. </div>
  535. <div class="upFile" v-if="type == 3">提交</div>
  536. </div>-->
  537. <div
  538. class="vedioBox"
  539. v-if="
  540. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  541. .toolChoose[0].tool &&
  542. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  543. .toolChoose[0].tool.length &&
  544. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  545. .toolChoose[0].tool.length > 0
  546. "
  547. >
  548. <div
  549. class="queTop"
  550. style="
  551. font-size: 25px;
  552. padding: 20px 0 20px 30px;
  553. font-weight: bold;
  554. "
  555. >
  556. <!-- <div class="question" style="width: 30px">
  557. <img src="../assets/icon/toolIcon.png" alt />
  558. </div>
  559. <div class="queTitle">
  560. <div>工具</div>
  561. </div>-->
  562. 练一练
  563. </div>
  564. <div class="toolHeng2" style="position: relative">
  565. <div
  566. class="filebox"
  567. style="flex-wrap: nowrap; margin: 0 20px"
  568. v-for="(tool, toolIndex) in chapInfoList[courseType]
  569. .chapterInfo[0].taskJson[taskCount].toolChoose"
  570. :key="toolIndex"
  571. >
  572. <div
  573. style="
  574. font-size: 20px;
  575. font-weight: bold;
  576. padding: 0 0 10px 10px;
  577. "
  578. >
  579. 步骤{{ toolIndex + 1 }}
  580. </div>
  581. <div class="toolBox">
  582. <div>
  583. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  584. :key="indexTool"-->
  585. <!-- <div class="iframeBox">
  586. <div
  587. class="addPoint isBorder"
  588. v-for="(tooC, toolCIndex) in tool.tool"
  589. :key="toolCIndex"
  590. >
  591. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  592. <div
  593. class="iframeName"
  594. >
  595. 电子白板
  596. </div>
  597. <iframe
  598. src="https://iwb.cocorobo.cn/"
  599. ref="whiteBoard"
  600. ></iframe>
  601. </div>
  602. </div>
  603. </div>-->
  604. <div class="noiframeBox">
  605. <div
  606. class="addPoint"
  607. v-for="(tooC, toolCIndex) in tool.tool"
  608. :key="toolCIndex"
  609. >
  610. <div v-if="tooC == 1">
  611. <img
  612. src="../assets/icon/secondToolList/whiteBoard.png"
  613. alt
  614. @click="addTools(tooC, toolIndex, taskCount)"
  615. />
  616. <div style="margin: 5px 0">电子白板</div>
  617. </div>
  618. <div v-if="tooC == 3">
  619. <img
  620. src="../assets/icon/secondToolList/mindMapping.png"
  621. alt
  622. @click="addTools(tooC, toolIndex, taskCount)"
  623. />
  624. <div style="margin: 5px 0">思维导图</div>
  625. </div>
  626. <div v-if="tooC == 6">
  627. <img
  628. src="../assets/icon/secondToolList/doc.png"
  629. alt
  630. @click="addTools(tooC, toolIndex, taskCount)"
  631. />
  632. <div style="margin: 5px 0">协同文档</div>
  633. </div>
  634. <div v-if="tooC == 7">
  635. <img
  636. src="../assets/icon/secondToolList/mindNetwork.png"
  637. alt
  638. @click="addTools(tooC, toolIndex, taskCount)"
  639. />
  640. <div style="margin: 5px 0">思维网格</div>
  641. </div>
  642. <div v-if="tooC == 8">
  643. <img
  644. src="../assets/icon/secondToolList/library.png"
  645. alt
  646. @click="addTools(tooC, toolIndex, taskCount)"
  647. />
  648. <div style="margin: 5px 0">素材库</div>
  649. </div>
  650. <div v-if="tooC == 17">
  651. <img
  652. src="../assets/icon/secondToolList/library.png"
  653. alt
  654. @click="addTools(tooC, toolIndex, taskCount)"
  655. />
  656. <div style="margin: 5px 0">学习资料</div>
  657. </div>
  658. <div v-if="tooC == 2">
  659. <img
  660. @click="addTools(tooC, toolIndex, taskCount)"
  661. src="../assets/icon/secondToolList/note.png"
  662. alt
  663. />
  664. <div style="margin: 5px 0">便签</div>
  665. </div>
  666. <div v-if="tooC == 4">
  667. <img
  668. @click="addTools(tooC, toolIndex, taskCount)"
  669. src="../assets/icon/thirdToolList/ask.png"
  670. alt
  671. />
  672. <div style="margin: 5px 0">问卷调查</div>
  673. </div>
  674. <div v-if="tooC == 5">
  675. <img
  676. @click="addTools(tooC, toolIndex, taskCount)"
  677. src="../assets/icon/thirdToolList/score.png"
  678. alt
  679. />
  680. <div style="margin: 5px 0">量规评分</div>
  681. </div>
  682. <div v-if="tooC == 10">
  683. <img
  684. @click="addTools(tooC, toolIndex, taskCount)"
  685. src="../assets/icon/thirdToolList/time.png"
  686. alt
  687. />
  688. <div style="margin: 5px 0">倒计时</div>
  689. </div>
  690. <div v-if="tooC == 15">
  691. <img
  692. @click="addTools(tooC, toolIndex, taskCount)"
  693. src="../assets/icon/thirdToolList/answer.png"
  694. alt
  695. />
  696. <div style="margin: 5px 0">问答工具</div>
  697. </div>
  698. <div v-if="tooC == 18">
  699. <img
  700. @click="addTools(tooC, toolIndex, taskCount)"
  701. src="../assets/icon/thirdToolList/trainPlatform.png"
  702. alt
  703. />
  704. <div style="margin: 5px 0">训练服务器</div>
  705. </div>
  706. <div v-if="tooC == 16">
  707. <img
  708. @click="addTools(tooC, toolIndex, taskCount)"
  709. src="../assets/icon/thirdToolList/work.png"
  710. alt
  711. />
  712. <div style="margin: 5px 0">作业提交</div>
  713. </div>
  714. <div v-if="tooC == 21">
  715. <img
  716. @click="addTools(tooC, toolIndex, taskCount)"
  717. src="../assets/icon/fourthToolList/program.png"
  718. alt
  719. />
  720. <div style="margin: 5px 0">编程平台</div>
  721. </div>
  722. <div v-if="tooC == 22">
  723. <img
  724. @click="addTools(tooC, toolIndex, taskCount)"
  725. src="../assets/icon/fourthToolList/program.png"
  726. alt
  727. />
  728. <div style="margin: 5px 0">AI体验</div>
  729. </div>
  730. <div v-if="tooC == 23">
  731. <img
  732. @click="addTools(tooC, toolIndex, taskCount)"
  733. src="../assets/icon/fourthToolList/program.png"
  734. alt
  735. />
  736. <div style="margin: 5px 0">python</div>
  737. </div>
  738. <div v-if="tooC == 24">
  739. <img
  740. @click="addTools(tooC, toolIndex, taskCount)"
  741. src="../assets/icon/fourthToolList/program.png"
  742. alt
  743. />
  744. <div style="margin: 5px 0">AI平台</div>
  745. </div>
  746. </div>
  747. </div>
  748. </div>
  749. <div class="tooldetail" v-if="tool.toolDetail != ''">
  750. <!-- <div class="toolTitle">工具描述</div> -->
  751. <div>{{ tool.toolDetail }}</div>
  752. </div>
  753. </div>
  754. <div
  755. v-if="tType && tType == 1 && tool.tool.indexOf(16) != -1"
  756. class="worksBox"
  757. >
  758. <div
  759. class="worksBTitle"
  760. v-if="worksStudent[toolIndex].length > 0"
  761. >
  762. <div class="greenBox"></div>
  763. 作业提交情况
  764. </div>
  765. <div
  766. style="padding-top: 15px; font-size: 18px"
  767. v-if="worksStudent[toolIndex].length > 0"
  768. >
  769. 作业预览
  770. </div>
  771. <div
  772. class="worksDetailBox"
  773. v-if="worksStudent[toolIndex].length > 0"
  774. >
  775. <div
  776. class="works"
  777. style="width: 200px; height: 140px"
  778. v-for="(w, wIndex) in worksStudent[toolIndex]"
  779. :key="wIndex"
  780. >
  781. <div class="workImg" v-if="w.type == 0">
  782. <img
  783. :src="w.works"
  784. @click="previewImg(w.works)"
  785. alt
  786. />
  787. </div>
  788. <div class="workImg" v-if="w.type == 1">
  789. <img
  790. src="../assets/icon/works/noImg.png"
  791. @click="openFile(w.works)"
  792. alt
  793. />
  794. </div>
  795. <div class="worksName">
  796. 姓名:
  797. <span>{{ w.sName }}</span>
  798. </div>
  799. </div>
  800. </div>
  801. <div
  802. style="
  803. padding-top: 15px;
  804. padding-bottom: 15px;
  805. border-bottom: 1px solid #eeeeee;
  806. font-size: 18px;
  807. "
  808. >
  809. 未提交
  810. </div>
  811. <div class="noWorksS">
  812. <div
  813. v-for="(s, sIndex) in noWorksS[toolIndex]"
  814. :key="sIndex"
  815. class="noWorksName"
  816. >
  817. {{ s.student }}
  818. </div>
  819. </div>
  820. </div>
  821. <div
  822. v-if="tType && tType == 1 && tool.tool.indexOf(4) != -1"
  823. class="worksBox"
  824. >
  825. <div
  826. class="worksBTitle"
  827. v-if="worksStudent[toolIndex].length > 0"
  828. >
  829. <div class="greenBox"></div>
  830. 作业提交情况
  831. </div>
  832. <div
  833. style="padding-top: 15px; font-size: 18px"
  834. v-if="worksStudent[toolIndex].length > 0"
  835. >
  836. 作业预览
  837. </div>
  838. <div
  839. class="worksDetailBox"
  840. v-if="worksStudent[toolIndex].length > 0"
  841. >
  842. <div
  843. class="works"
  844. style="width: 200px; height: 140px"
  845. v-for="(w, wIndex) in worksStudent[toolIndex]"
  846. :key="wIndex"
  847. >
  848. <!-- @click="previewImg(w.works)" -->
  849. <div class="workImg">
  850. <img
  851. src="../assets/icon/works/noImg.png"
  852. @click="openTools(4, toolIndex, taskCount, w.works)"
  853. alt
  854. />
  855. </div>
  856. <div class="worksName">
  857. 姓名:
  858. <span>{{ w.sName }}</span>
  859. </div>
  860. </div>
  861. </div>
  862. <div
  863. style="
  864. padding-top: 15px;
  865. padding-bottom: 15px;
  866. border-bottom: 1px solid #eeeeee;
  867. font-size: 18px;
  868. "
  869. >
  870. 未提交
  871. </div>
  872. <div class="noWorksS">
  873. <div
  874. v-for="(s, sIndex) in noWorksS[toolIndex]"
  875. :key="sIndex"
  876. class="noWorksName"
  877. >
  878. {{ s.student }}
  879. </div>
  880. </div>
  881. </div>
  882. <div
  883. v-if="tType && tType == 1 && tool.tool.indexOf(15) != -1"
  884. class="worksBox"
  885. >
  886. <div
  887. class="worksBTitle"
  888. v-if="worksStudent[toolIndex].length > 0"
  889. >
  890. <div class="greenBox"></div>
  891. 作业提交情况
  892. </div>
  893. <div
  894. style="padding-top: 15px; font-size: 18px"
  895. v-if="worksStudent[toolIndex].length > 0"
  896. >
  897. 作业预览
  898. </div>
  899. <div
  900. class="worksDetailBox"
  901. v-if="worksStudent[toolIndex].length > 0"
  902. >
  903. <div
  904. class="works"
  905. v-for="(w, wIndex) in worksStudent[toolIndex]"
  906. :key="wIndex"
  907. >
  908. <div class="workImg">
  909. <!-- <img
  910. src="../assets/icon/works/noImg.png"
  911. @click="openTools(15, toolIndex, taskCount, w.works)"
  912. alt=""
  913. />-->
  914. <div class="answerBg">
  915. <div>{{ w.sName }}</div>
  916. <el-tooltip
  917. class="item"
  918. effect="light"
  919. :content="JSON.parse(w.works)[0].answer"
  920. placement="top"
  921. >
  922. <div class="answerContent">
  923. {{ JSON.parse(w.works)[0].answer }}
  924. </div>
  925. </el-tooltip>
  926. </div>
  927. </div>
  928. </div>
  929. </div>
  930. <div
  931. style="
  932. padding-top: 15px;
  933. padding-bottom: 15px;
  934. border-bottom: 1px solid #eeeeee;
  935. font-size: 18px;
  936. "
  937. >
  938. 未提交
  939. </div>
  940. <div class="noWorksS">
  941. <div
  942. v-for="(s, sIndex) in noWorksS[toolIndex]"
  943. :key="sIndex"
  944. class="noWorksName"
  945. >
  946. {{ s.student }}
  947. </div>
  948. </div>
  949. </div>
  950. <div
  951. v-if="tType && tType == 1 && tool.tool.indexOf(1) != -1"
  952. class="worksBox"
  953. >
  954. <div
  955. class="worksBTitle"
  956. v-if="worksStudent[toolIndex].length > 0"
  957. >
  958. <div class="greenBox"></div>
  959. 作业提交情况
  960. </div>
  961. <div
  962. style="padding-top: 15px; font-size: 18px"
  963. v-if="worksStudent[toolIndex].length > 0"
  964. >
  965. 作业预览
  966. </div>
  967. <div
  968. class="worksDetailBox"
  969. v-if="worksStudent[toolIndex].length > 0"
  970. >
  971. <div
  972. class="works"
  973. style="width: 200px; height: 140px"
  974. v-for="(w, wIndex) in worksStudent[toolIndex]"
  975. :key="wIndex"
  976. >
  977. <!-- @click="previewImg(w.works)" -->
  978. <div class="workImg">
  979. <img
  980. :src="w.works"
  981. @click="previewImg(w.works)"
  982. alt
  983. />
  984. </div>
  985. <div class="worksName">
  986. 姓名:
  987. <span>{{ w.sName }}</span>
  988. </div>
  989. </div>
  990. </div>
  991. <div
  992. style="
  993. padding-top: 15px;
  994. padding-bottom: 15px;
  995. border-bottom: 1px solid #eeeeee;
  996. font-size: 18px;
  997. "
  998. >
  999. 未提交
  1000. </div>
  1001. <div class="noWorksS">
  1002. <div
  1003. v-for="(s, sIndex) in noWorksS[toolIndex]"
  1004. :key="sIndex"
  1005. class="noWorksName"
  1006. >
  1007. {{ s.student }}
  1008. </div>
  1009. </div>
  1010. </div>
  1011. <div
  1012. v-if="tType && tType == 1 && tool.tool.indexOf(3) != -1"
  1013. class="worksBox"
  1014. >
  1015. <div
  1016. class="worksBTitle"
  1017. v-if="worksStudent[toolIndex].length > 0"
  1018. >
  1019. <div class="greenBox"></div>
  1020. 作业提交情况
  1021. </div>
  1022. <div
  1023. style="padding-top: 15px; font-size: 18px"
  1024. v-if="worksStudent[toolIndex].length > 0"
  1025. >
  1026. 作业预览
  1027. </div>
  1028. <div
  1029. class="worksDetailBox"
  1030. v-if="worksStudent[toolIndex].length > 0"
  1031. >
  1032. <div
  1033. class="works"
  1034. style="width: 200px; height: 140px"
  1035. v-for="(w, wIndex) in worksStudent[toolIndex]"
  1036. :key="wIndex"
  1037. >
  1038. <!-- @click="previewImg(w.works)" -->
  1039. <div class="workImg">
  1040. <img
  1041. :src="w.works"
  1042. @click="previewImg(w.works)"
  1043. alt
  1044. />
  1045. </div>
  1046. <div class="worksName">
  1047. 姓名:
  1048. <span>{{ w.sName }}</span>
  1049. </div>
  1050. </div>
  1051. </div>
  1052. <div
  1053. style="
  1054. padding-top: 15px;
  1055. padding-bottom: 15px;
  1056. border-bottom: 1px solid #eeeeee;
  1057. font-size: 18px;
  1058. "
  1059. >
  1060. 未提交
  1061. </div>
  1062. <div class="noWorksS">
  1063. <div
  1064. v-for="(s, sIndex) in noWorksS[toolIndex]"
  1065. :key="sIndex"
  1066. class="noWorksName"
  1067. >
  1068. {{ s.student }}
  1069. </div>
  1070. </div>
  1071. </div>
  1072. <div
  1073. v-if="tType && tType == 1 && tool.tool.indexOf(6) != -1"
  1074. class="worksBox"
  1075. >
  1076. <div
  1077. class="worksBTitle"
  1078. v-if="worksStudent[toolIndex].length > 0"
  1079. >
  1080. <div class="greenBox"></div>
  1081. 作业提交情况
  1082. </div>
  1083. <div
  1084. style="padding-top: 15px; font-size: 18px"
  1085. v-if="worksStudent[toolIndex].length > 0"
  1086. >
  1087. 作业预览
  1088. </div>
  1089. <div
  1090. class="worksDetailBox"
  1091. v-if="worksStudent[toolIndex].length > 0"
  1092. >
  1093. <div
  1094. class="works"
  1095. style="width: 200px; height: 140px"
  1096. v-for="(w, wIndex) in worksStudent[toolIndex]"
  1097. :key="wIndex"
  1098. >
  1099. <!-- @click="previewImg(w.works)" -->
  1100. <div class="workImg">
  1101. <img
  1102. :src="w.works"
  1103. @click="previewImg(w.works)"
  1104. alt
  1105. />
  1106. </div>
  1107. <div class="worksName">
  1108. 姓名:
  1109. <span>{{ w.sName }}</span>
  1110. </div>
  1111. </div>
  1112. </div>
  1113. <div
  1114. style="
  1115. padding-top: 15px;
  1116. padding-bottom: 15px;
  1117. border-bottom: 1px solid #eeeeee;
  1118. font-size: 18px;
  1119. "
  1120. >
  1121. 未提交
  1122. </div>
  1123. <div class="noWorksS">
  1124. <div
  1125. v-for="(s, sIndex) in noWorksS[toolIndex]"
  1126. :key="sIndex"
  1127. class="noWorksName"
  1128. >
  1129. {{ s.student }}
  1130. </div>
  1131. </div>
  1132. </div>
  1133. <div
  1134. v-if="tType && tType == 1 && tool.tool.indexOf(7) != -1"
  1135. class="worksBox"
  1136. >
  1137. <div
  1138. class="worksBTitle"
  1139. v-if="worksStudent[toolIndex].length > 0"
  1140. >
  1141. <div class="greenBox"></div>
  1142. 作业提交情况
  1143. </div>
  1144. <div
  1145. style="padding-top: 15px; font-size: 18px"
  1146. v-if="worksStudent[toolIndex].length > 0"
  1147. >
  1148. 作业预览
  1149. </div>
  1150. <div
  1151. class="worksDetailBox"
  1152. v-if="worksStudent[toolIndex].length > 0"
  1153. >
  1154. <div
  1155. class="works"
  1156. style="width: 200px; height: 140px"
  1157. v-for="(w, wIndex) in worksStudent[toolIndex]"
  1158. :key="wIndex"
  1159. >
  1160. <!-- @click="previewImg(w.works)" -->
  1161. <div class="workImg">
  1162. <img
  1163. :src="w.works"
  1164. @click="previewImg(w.works)"
  1165. alt
  1166. />
  1167. </div>
  1168. <div class="worksName">
  1169. 姓名:
  1170. <span>{{ w.sName }}</span>
  1171. </div>
  1172. </div>
  1173. </div>
  1174. <div
  1175. style="
  1176. padding-top: 15px;
  1177. padding-bottom: 15px;
  1178. border-bottom: 1px solid #eeeeee;
  1179. font-size: 18px;
  1180. "
  1181. >
  1182. 未提交
  1183. </div>
  1184. <div class="noWorksS">
  1185. <div
  1186. v-for="(s, sIndex) in noWorksS[toolIndex]"
  1187. :key="sIndex"
  1188. class="noWorksName"
  1189. >
  1190. {{ s.student }}
  1191. </div>
  1192. </div>
  1193. </div>
  1194. </div>
  1195. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  1196. 上传文件
  1197. <input
  1198. type="file"
  1199. accept="image/png, image/gif, image/jpeg"
  1200. style="display: none"
  1201. @change="beforeUpload1($event, 2, index)"
  1202. />
  1203. </div>-->
  1204. </div>
  1205. </div>
  1206. <!-- <div
  1207. class="project_box"
  1208. style="margin-top: 15px; padding-bottom: 30px"
  1209. >
  1210. <div
  1211. style="
  1212. display: flex;
  1213. flex-wrap: nowrap;
  1214. flex-direction: column;
  1215. position: relative;
  1216. "
  1217. >
  1218. <div class="queTop">
  1219. <div class="question">
  1220. <img src="../assets/icon/homeWork.png" alt="" />
  1221. </div>
  1222. <div class="queTitle">
  1223. <div>作业提交<span>(提交图文视频等)</span></div>
  1224. <div>:任务:{{ task.task }}</div>
  1225. </div>
  1226. </div>
  1227. <div class="ediBottom">
  1228. <div
  1229. class="addEditor"
  1230. style="margin-top: 23px"
  1231. @click="openAddWork"
  1232. v-if="!isNoHomeWork"
  1233. >
  1234. 选择文件
  1235. </div>
  1236. <div
  1237. class="addEditor"
  1238. style="margin-top: 23px"
  1239. @click="openAddWork"
  1240. v-else
  1241. >
  1242. 已提交
  1243. </div>
  1244. </div>
  1245. </div>
  1246. </div>-->
  1247. </div>
  1248. </div>
  1249. <el-dialog
  1250. title="提交实践作业"
  1251. :visible.sync="dialogVisible"
  1252. :append-to-body="true"
  1253. width="500px"
  1254. :before-close="handleClose"
  1255. class="dialog_change"
  1256. >
  1257. <div class="marginT">
  1258. <div>上传文件</div>
  1259. <div
  1260. class="chapter_add"
  1261. @click="addImg($event)"
  1262. v-if="studyJuri[0].cover.length == 0"
  1263. >
  1264. <div class="up_photo">
  1265. <img src="../assets/icon/uploadImg.png" alt />
  1266. </div>
  1267. <input
  1268. type="file"
  1269. accept="application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document,image/png, image/gif, image/jpeg"
  1270. style="display: none"
  1271. @change="beforeUpload1($event, 1)"
  1272. />
  1273. </div>
  1274. <div
  1275. class="chapter_add"
  1276. style="
  1277. display: flex;
  1278. width: 100%;
  1279. flex-direction: row;
  1280. flex-wrap: wrap;
  1281. justify-content: flex-start;
  1282. padding: 15px 0;
  1283. "
  1284. v-if="studyJuri[0].cover.length > 0"
  1285. >
  1286. <div class="upCover">
  1287. <img
  1288. :src="studyJuri[0].cover[0].url"
  1289. alt
  1290. v-if="fileType == 0"
  1291. />
  1292. <img :src="word" alt v-else />
  1293. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  1294. <div class="deleteWord" @click="clean(1)">
  1295. <img src="../assets/icon/deleteWorks.png" alt />
  1296. </div>
  1297. </div>
  1298. </div>
  1299. </div>
  1300. <!-- <div class="first">
  1301. <div>作业名称:</div>
  1302. <div>{{ chapInfoList[courseType].dyName }}</div>
  1303. </div>
  1304. <div style="font-size: 20px; margin-bottom: 10px">上传作业</div>
  1305. <el-input
  1306. type="textarea"
  1307. resize="none"
  1308. rows="7"
  1309. placeholder="输入文字描述..."
  1310. v-model="studyJuri[0].content"
  1311. ></el-input>
  1312. <div class="marginT">
  1313. <div>上传图片</div>
  1314. <div class="chapter_add" @click="addImg($event)">
  1315. <div class="up_photo">
  1316. <img src="../assets/photo.png" alt />
  1317. </div>
  1318. <input
  1319. type="file"
  1320. accept="image/png, image/gif, image/jpeg"
  1321. style="display: none"
  1322. @change="beforeUpload1($event, 1)"
  1323. />
  1324. </div>
  1325. <div
  1326. class="chapter_add"
  1327. style="
  1328. display: flex;
  1329. width: 100%;
  1330. flex-direction: row;
  1331. flex-wrap: wrap;
  1332. justify-content: flex-start;
  1333. "
  1334. v-if="studyJuri[0].cover.length > 0"
  1335. >
  1336. <div
  1337. v-for="(c, cIndex) in studyJuri[0].cover"
  1338. :key="cIndex"
  1339. class="upCover"
  1340. >
  1341. <img :src="c.url != null && c.url != '' ? c.url : mr" alt />
  1342. <span class="picName">{{ c.name }}</span>
  1343. <div class="deleteWord" @click="clean(1)">
  1344. <img src="../assets/icon/delete.png" alt />
  1345. </div>
  1346. </div>
  1347. </div>
  1348. </div>
  1349. <div class="marginT">
  1350. <div>上传视频</div>
  1351. <div class="chapter_add" @click="addImg($event)">
  1352. <div class="up_photo">
  1353. <img src="../assets/vidio.png" alt />
  1354. </div>
  1355. <input
  1356. type="file"
  1357. accept="video/mp4, video/quicktime, video/x-msvideo"
  1358. style="display: none"
  1359. @change="beforeUpload2($event, 2)"
  1360. />
  1361. </div>
  1362. <div
  1363. class="chapter_add"
  1364. style="
  1365. display: flex;
  1366. flex-direction: row;
  1367. flex-wrap: wrap;
  1368. width: 100%;
  1369. justify-content: flex-start;
  1370. "
  1371. v-if="studyJuri[0].upVedio.length > 0"
  1372. >
  1373. <div
  1374. style="
  1375. width: 100%;
  1376. display: flex;
  1377. flex-direction: row;
  1378. flex-wrap: wrap;
  1379. align-content: flex-start;
  1380. justify-content: flex-start;
  1381. align-items: center;
  1382. "
  1383. >
  1384. <div
  1385. class="uploadVedio isAddThings"
  1386. v-for="(v, vIndex) in studyJuri[0].upVedio"
  1387. :key="vIndex"
  1388. >
  1389. <img src="../assets/uploadMp4.png" alt />
  1390. <span>{{ v.name }}</span>
  1391. <div class="deleteWord" @click="clean(2)">
  1392. <img src="../assets/icon/delete.png" alt />
  1393. </div>
  1394. </div>
  1395. </div>
  1396. </div>
  1397. </div>-->
  1398. <div class="upload_send" @click="addCourseWorks(taskCount)">提交</div>
  1399. </el-dialog>
  1400. </div>
  1401. </div>
  1402. <div v-if="proVisible" class="mask">
  1403. <div class="progressBox">
  1404. <div class="lbox">
  1405. <img src="../assets/loading.gif" />上传中,请稍后
  1406. </div>
  1407. <el-progress
  1408. :text-inside="true"
  1409. :stroke-width="20"
  1410. :percentage="progress"
  1411. style="width: 80%"
  1412. ></el-progress>
  1413. </div>
  1414. </div>
  1415. <el-dialog :visible.sync="pictureDialog" size="tiny">
  1416. <img width="100%" :src="dialogImageUrl" alt />
  1417. </el-dialog>
  1418. <el-dialog
  1419. title="查看问卷调查"
  1420. :visible.sync="dialogVisible5"
  1421. :append-to-body="true"
  1422. width="800px"
  1423. :before-close="handleClose"
  1424. class="dialog_diy"
  1425. >
  1426. <div>
  1427. <div
  1428. class="a_add_title"
  1429. style="
  1430. display: flex;
  1431. flex-direction: row;
  1432. align-items: center;
  1433. justify-content: center;
  1434. "
  1435. >
  1436. <div style="margin-right: 20px; font-size: 20px">问卷标题:</div>
  1437. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  1438. </div>
  1439. <div class="a_addBox">
  1440. <div style="font-size: 16px; color: #c7c7c7">问卷内容</div>
  1441. <div
  1442. class="a_add_box"
  1443. v-for="(item1, index1) in askJson.askCount"
  1444. :key="index1"
  1445. >
  1446. <div class="a_add_head">
  1447. <div style="display: flex">
  1448. {{ index1 + 1 + "、" }}
  1449. <div>问卷题目:{{ askJson.askJson[index1].askstitle }}</div>
  1450. </div>
  1451. </div>
  1452. <div class="a_add_body" v-if="!isAnswer">
  1453. <div class="a_add_input">
  1454. <el-radio-group v-model="radio[index1]">
  1455. <el-radio
  1456. v-for="(item2, checkIndex) in askJson.askJson[index1]
  1457. .checkList"
  1458. :key="checkIndex"
  1459. :label="checkIndex"
  1460. class="redioStyle"
  1461. >{{ item2 }}</el-radio
  1462. >
  1463. </el-radio-group>
  1464. </div>
  1465. </div>
  1466. <div class="a_add_body" v-else>
  1467. <div class="a_add_input">
  1468. <el-radio-group v-model="radio[index1]">
  1469. <el-radio
  1470. v-for="(item2, checkIndex) in askJson.askJson[index1]
  1471. .checkList"
  1472. :key="checkIndex"
  1473. :label="checkIndex"
  1474. disabled
  1475. class="redioStyle"
  1476. >{{ item2 }}</el-radio
  1477. >
  1478. </el-radio-group>
  1479. </div>
  1480. </div>
  1481. </div>
  1482. </div>
  1483. </div>
  1484. <span slot="footer" class="dialog-footer">
  1485. <el-button @click="dialogVisible5 = false">取 消</el-button>
  1486. <el-button type="primary" @click="addStudentAsk" v-if="!isAnswer"
  1487. >确 定</el-button
  1488. >
  1489. <el-button type="primary" @click="dialogVisible5 = false" v-else
  1490. >确 定</el-button
  1491. >
  1492. </span>
  1493. </el-dialog>
  1494. <el-dialog
  1495. title="查看富文本"
  1496. :visible.sync="dialogVisible1"
  1497. :append-to-body="true"
  1498. width="500px"
  1499. :before-close="handleClose"
  1500. class="dialog_diy textCss"
  1501. >
  1502. <el-form style="font-size: 20px">
  1503. <el-form-item label="文本标题" class="textTitle">
  1504. <div style="font-size: 20px">{{ text.name }}</div>
  1505. </el-form-item>
  1506. <div>富文本内容</div>
  1507. <div
  1508. v-html="text.url"
  1509. style="font-size: 18px; padding: 40px 0 0 0"
  1510. ></div>
  1511. </el-form>
  1512. <span slot="footer" class="dialog-footer">
  1513. <el-button type="primary" @click="dialogVisible1 = false"
  1514. >确定</el-button
  1515. >
  1516. </span>
  1517. </el-dialog>
  1518. <el-dialog
  1519. title="文件预览"
  1520. :visible.sync="dialogVisible3"
  1521. width="50%"
  1522. :before-close="handleClose"
  1523. class="dialog_diy"
  1524. >
  1525. <iframe
  1526. :src="pptImgUrl"
  1527. frameborder="0"
  1528. width="100%"
  1529. height="600"
  1530. ></iframe>
  1531. </el-dialog>
  1532. <el-dialog
  1533. title="提示"
  1534. :visible.sync="dialogVisible4"
  1535. :append-to-body="true"
  1536. width="800px"
  1537. :before-close="handleClose"
  1538. class="dialog_diy notice"
  1539. >
  1540. <div>此功能暂未开放!</div>
  1541. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  1542. </el-dialog>
  1543. <el-dialog
  1544. title="问答"
  1545. :visible.sync="answerDialogVisible"
  1546. :append-to-body="true"
  1547. width="800px"
  1548. :before-close="handleClose"
  1549. class="dialog_diy"
  1550. >
  1551. <div>
  1552. <div
  1553. style="
  1554. display: flex;
  1555. flex-wrap: nowrap;
  1556. flex-direction: column;
  1557. position: relative;
  1558. "
  1559. >
  1560. <div class="queTop" style="padding: 20px 0 20px 0">
  1561. <div class="question">
  1562. <img src="../assets/icon/question.png" alt />
  1563. </div>
  1564. <div class="queTitle">
  1565. <div>提问:</div>
  1566. <div>{{ answerQ }}</div>
  1567. </div>
  1568. </div>
  1569. <div class="ediBottom">
  1570. <textarea
  1571. rows="6"
  1572. class="binfo_input"
  1573. cols
  1574. style="width: 95%; height: 120px"
  1575. v-model="questionAnswer"
  1576. ></textarea>
  1577. </div>
  1578. </div>
  1579. </div>
  1580. <div slot="footer">
  1581. <el-button @click="answerDialogVisible = false">取 消</el-button>
  1582. <el-button type="primary" @click="addQuestion">提 交</el-button>
  1583. </div>
  1584. </el-dialog>
  1585. <el-dialog
  1586. title="倒计时"
  1587. :visible.sync="timeDialogVisible"
  1588. :append-to-body="true"
  1589. width="800px"
  1590. :before-close="handleClose"
  1591. class="dialog_diy"
  1592. >
  1593. <div>
  1594. <Time v-if="timeDialogVisible"></Time>
  1595. </div>
  1596. <div slot="footer">
  1597. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  1598. </div>
  1599. </el-dialog>
  1600. </div>
  1601. </template>
  1602. <script>
  1603. import "../common/aws-sdk-2.235.1.min.js";
  1604. import EditorBar from "../components/tools/wangEnduit.vue";
  1605. import Time from "../components/tools/time.vue";
  1606. export default {
  1607. components: { EditorBar, Time },
  1608. data() {
  1609. return {
  1610. dialogVisible: false,
  1611. id: this.$route.query.courseId,
  1612. userid: this.$route.query.userid,
  1613. courseTypeLine: this.$route.query.type,
  1614. oid: this.$route.query.oid,
  1615. tType: this.$route.query.tType,
  1616. courseType: 0,
  1617. pptImgUrl: "",
  1618. type: 1,
  1619. vedio: [],
  1620. text: [],
  1621. textList: [],
  1622. line: [],
  1623. lineList: [],
  1624. chapTools: [],
  1625. chapToolList: [],
  1626. file: [],
  1627. vedioTime: "",
  1628. upToolImg: "",
  1629. rateList: {
  1630. ca: 0,
  1631. },
  1632. rateParams: [],
  1633. colors: ["#000", "#000", "#000"],
  1634. studyJuri: [
  1635. {
  1636. content: "",
  1637. cover: [],
  1638. upVedio: [],
  1639. upFile: [],
  1640. },
  1641. ],
  1642. mr: require("../assets/vedioPic.png"),
  1643. word: require("../assets/uploadMp4.png"),
  1644. courseDetail: {},
  1645. chapInfo: [],
  1646. chapInfoList: [],
  1647. taskCount: 0,
  1648. imgList: [],
  1649. noImgList: [],
  1650. navId: "",
  1651. playerOptions: {
  1652. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  1653. autoplay: false, //如果true,浏览器准备好时开始回放。
  1654. muted: false, // 默认情况下将会消除任何音频。
  1655. loop: false, // 导致视频一结束就重新开始。
  1656. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  1657. language: "zh-CN",
  1658. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  1659. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  1660. sources: [
  1661. {
  1662. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  1663. src: "", //url地址require("../../assets/media/aaa.mp4")
  1664. },
  1665. ],
  1666. // poster: require("../../assets/tu31.png"), //你的封面地址
  1667. // poster: dataRes.imgUrl, //你的封面地址
  1668. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  1669. controlBar: {
  1670. timeDivider: true, //当前时间和持续时间的分隔符
  1671. durationDisplay: true, //显示持续时间
  1672. remainingTimeDisplay: false, //是否显示剩余时间功能
  1673. fullscreenToggle: true, //全屏按钮
  1674. },
  1675. },
  1676. playerO: {},
  1677. noneBtnImg: false,
  1678. proVisible: false,
  1679. progress: 0,
  1680. questionAnswer: "",
  1681. answerQ: "", //问答标题
  1682. wbCount: 0,
  1683. wordCount: 0,
  1684. mindCount: 0,
  1685. askCount: 0,
  1686. noteCount: 0,
  1687. mindNetWorkCount: 0,
  1688. libraryCount: 0,
  1689. workCount: 0,
  1690. timeCount: 0,
  1691. answerCount: 0,
  1692. trainCount: 0,
  1693. dialogImageUrl: "",
  1694. pictureDialog: false,
  1695. toolTypeList: [],
  1696. dialogVisible1: false,
  1697. dialogVisible2: false,
  1698. dialogVisible3: false,
  1699. dialogVisible4: false,
  1700. isNoHomeWork: false,
  1701. dialogVisible5: false,
  1702. answerDialogVisible: false,
  1703. timeDialogVisible: false,
  1704. radio: [],
  1705. isAsk: false,
  1706. askJson: {
  1707. askCount: 1,
  1708. askTitle: "",
  1709. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  1710. },
  1711. askList: [],
  1712. answerList: [],
  1713. navList: [],
  1714. worksStudent: [],
  1715. noWorksS: [],
  1716. isWorksS: [],
  1717. noWorksStudent: [],
  1718. toolindex: 0,
  1719. workTypeA: false,
  1720. workTypeB: false,
  1721. workTypeC: false,
  1722. isAnswer: false,
  1723. timer: null,
  1724. showType: 0,
  1725. fileType: 0,
  1726. };
  1727. },
  1728. methods: {
  1729. previewImg(url) {
  1730. this.$hevueImgPreview(url);
  1731. },
  1732. change(val) {
  1733. console.log(val);
  1734. },
  1735. goTo(path) {
  1736. this.$router.push(path);
  1737. },
  1738. handlePictureCardPreview(url) {
  1739. this.dialogImageUrl = url;
  1740. this.pictureDialog = true;
  1741. },
  1742. clean(type) {
  1743. if (type == 1) {
  1744. this.studyJuri[0].cover.splice(0, 1);
  1745. } else if (type == 2) {
  1746. this.studyJuri[0].upVedio.splice(0, 1);
  1747. } else {
  1748. this.studyJuri[0].upFile.splice(0, 1);
  1749. }
  1750. },
  1751. handleClose(done) {
  1752. done();
  1753. },
  1754. imgChange(file, fileList, type) {
  1755. if (type == 1) {
  1756. var _tmp = this.studyJuri[0].cover;
  1757. } else if (type == 2) {
  1758. var _tmp = this.studyJuri[0].upVedio;
  1759. } else {
  1760. var _tmp = this.studyJuri[0].upFile;
  1761. }
  1762. this.noneBtnImg = _tmp.length >= 1;
  1763. },
  1764. addImg(e) {
  1765. var el = e.currentTarget;
  1766. el.getElementsByTagName("input")[0].click();
  1767. },
  1768. addCourseWorks(i) {
  1769. var typesql;
  1770. if (this.fileType == 0) {
  1771. typesql = 0;
  1772. } else {
  1773. typesql = 4;
  1774. }
  1775. if (this.workTypeA == true) {
  1776. this.$confirm(
  1777. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  1778. "提示",
  1779. {
  1780. confirmButtonText: "确定",
  1781. cancelButtonText: "取消",
  1782. type: "warning",
  1783. }
  1784. )
  1785. .then(() => {
  1786. let params = [
  1787. {
  1788. uid: this.userid,
  1789. cid: this.id,
  1790. stage: this.courseType,
  1791. task: i,
  1792. tool: this.toolindex,
  1793. content: this.studyJuri[0].cover[0].url,
  1794. type: typesql,
  1795. },
  1796. ];
  1797. this.ajax
  1798. .post(this.$store.state.api + "addCourseWorks", params)
  1799. .then((res) => {
  1800. this.$message({
  1801. message: "提交成功",
  1802. type: "success",
  1803. });
  1804. this.studyJuri[0].cover = [];
  1805. this.dialogVisible = false;
  1806. this.getCourseDetail();
  1807. })
  1808. .catch((err) => {
  1809. this.$message.error("提交失败");
  1810. console.error(err);
  1811. });
  1812. })
  1813. .catch(() => {});
  1814. } else {
  1815. let params = [
  1816. {
  1817. uid: this.userid,
  1818. cid: this.id,
  1819. stage: this.courseType,
  1820. task: i,
  1821. tool: this.toolindex,
  1822. content: this.studyJuri[0].cover[0].url,
  1823. type: typesql,
  1824. },
  1825. ];
  1826. this.ajax
  1827. .post(this.$store.state.api + "addCourseWorks", params)
  1828. .then((res) => {
  1829. this.$message({
  1830. message: "提交成功",
  1831. type: "success",
  1832. });
  1833. this.studyJuri[0].cover = [];
  1834. this.dialogVisible = false;
  1835. this.getCourseDetail();
  1836. })
  1837. .catch((err) => {
  1838. this.$message.error("提交失败");
  1839. console.error(err);
  1840. });
  1841. }
  1842. },
  1843. selectWorksStudent() {
  1844. let params = {
  1845. oid: this.oid,
  1846. };
  1847. this.ajax
  1848. .get(this.$store.state.api + "selectWorksStudent", params)
  1849. .then((res) => {
  1850. var a = res.data[0];
  1851. for (var i = 0; i < this.isWorksS.length; i++) {
  1852. this.noWorksS[i] = [];
  1853. var studentK = [];
  1854. if (this.isWorksS[i].length > 0) {
  1855. for (var z = 0; z < this.isWorksS[i].length; z++) {
  1856. studentK.push(this.isWorksS[i][z].uid);
  1857. }
  1858. console.log(studentK);
  1859. studentK = studentK.join(",");
  1860. for (var j = 0; j < a.length; j++) {
  1861. if (studentK.indexOf(a[j].userid) == -1) {
  1862. this.noWorksS[i].push({ student: a[j].name });
  1863. }
  1864. }
  1865. } else {
  1866. for (var k = 0; k < a.length; k++) {
  1867. this.noWorksS[i].push({ student: a[k].name });
  1868. }
  1869. }
  1870. }
  1871. this.$forceUpdate();
  1872. })
  1873. .catch((err) => {
  1874. console.error(err);
  1875. });
  1876. },
  1877. selectSWorks() {
  1878. let params = {
  1879. cid: this.id,
  1880. s: this.courseType,
  1881. t: this.taskCount,
  1882. };
  1883. this.ajax
  1884. .get(this.$store.state.api + "selectSWorks", params)
  1885. .then((res) => {
  1886. var a =
  1887. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  1888. this.taskCount
  1889. ].toolChoose;
  1890. var b = res.data[0];
  1891. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  1892. for (var i = 0; i < a.length; i++) {
  1893. this.worksStudent[i] = [];
  1894. this.isWorksS[i] = [];
  1895. for (var j = 0; j < b.length; j++) {
  1896. if (i == b[j].tool) {
  1897. if (b[j].type == 1 || b[j].type == 4) {
  1898. if (
  1899. c.indexOf(
  1900. b[j].content
  1901. .split(".")
  1902. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  1903. ) != -1
  1904. ) {
  1905. this.worksStudent[i].push({
  1906. works: b[j].content,
  1907. sName: b[j].name,
  1908. type: 1,
  1909. });
  1910. } else {
  1911. this.worksStudent[i].push({
  1912. works: b[j].content,
  1913. sName: b[j].name,
  1914. type: 0,
  1915. });
  1916. }
  1917. } else {
  1918. this.worksStudent[i].push({
  1919. works: b[j].content,
  1920. sName: b[j].name,
  1921. type: 2,
  1922. });
  1923. }
  1924. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  1925. }
  1926. }
  1927. }
  1928. this.selectWorksStudent();
  1929. })
  1930. .catch((err) => {
  1931. console.error(err);
  1932. });
  1933. },
  1934. beforeUpload1(event, type, i) {
  1935. var file = event.target.files[0];
  1936. var credentials = {
  1937. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  1938. secretAccessKey: "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",
  1939. }; //秘钥形式的登录上传
  1940. window.AWS.config.update(credentials);
  1941. window.AWS.config.region = "cn-northwest-1"; //设置区域
  1942. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  1943. var _this = this;
  1944. _this.progress = 0;
  1945. _this.proVisible = true;
  1946. if (file) {
  1947. var params = {
  1948. Key:
  1949. file.name.split(".")[0] +
  1950. new Date().getTime() +
  1951. "." +
  1952. file.name.split(".")[1],
  1953. ContentType: file.type,
  1954. Body: file,
  1955. "Access-Control-Allow-Credentials": "*",
  1956. ACL: "public-read",
  1957. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  1958. var options = {
  1959. partSize: 2048 * 1024 * 1024,
  1960. queueSize: 2,
  1961. leavePartsOnError: true,
  1962. };
  1963. bucket
  1964. .upload(params, options)
  1965. .on("httpUploadProgress", function (evt) {
  1966. //这里可以写进度条
  1967. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  1968. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  1969. })
  1970. .send(function (err, data) {
  1971. _this.progress = 100;
  1972. setTimeout(() => {
  1973. _this.proVisible = false;
  1974. }, 1000);
  1975. if (err) {
  1976. var a = _this.$refs.upload1.uploadFiles;
  1977. a.splice(a.length - 1, a.length);
  1978. _this.$message.error("上传失败");
  1979. } else {
  1980. if (type == 1) {
  1981. _this.studyJuri[0].cover.push({
  1982. name: file.name,
  1983. url: data.Location,
  1984. uid: file.uid,
  1985. });
  1986. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  1987. if (
  1988. b.indexOf(
  1989. _this.studyJuri[0].cover[0].url
  1990. .split(".")
  1991. [
  1992. _this.studyJuri[0].cover[0].url.split(".").length - 1
  1993. ].toLocaleUpperCase()
  1994. ) != -1
  1995. ) {
  1996. _this.fileType = 1;
  1997. } else {
  1998. _this.fileType = 0;
  1999. }
  2000. _this.imgChange(null, null, type);
  2001. } else if (type == 2) {
  2002. _this.upToolImg = data.Location;
  2003. _this.imgChange(null, null, type);
  2004. _this.addCourseWorks(i);
  2005. }
  2006. _this.imgChange(null, null, type);
  2007. console.log(data.Location);
  2008. }
  2009. });
  2010. }
  2011. },
  2012. beforeUpload2(event, type) {
  2013. var file = event.target.files[0];
  2014. var credentials = {
  2015. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  2016. secretAccessKey: "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",
  2017. }; //秘钥形式的登录上传
  2018. window.AWS.config.update(credentials);
  2019. window.AWS.config.region = "cn-northwest-1"; //设置区域
  2020. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  2021. var _this = this;
  2022. _this.progress = 0;
  2023. _this.proVisible = true;
  2024. if (file) {
  2025. var params = {
  2026. Key:
  2027. file.name.split(".")[0] +
  2028. new Date().getTime() +
  2029. "." +
  2030. file.name.split(".")[1],
  2031. ContentType: file.type,
  2032. Body: file,
  2033. "Access-Control-Allow-Credentials": "*",
  2034. ACL: "public-read",
  2035. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  2036. var options = {
  2037. partSize: 2048 * 1024 * 1024,
  2038. queueSize: 2,
  2039. leavePartsOnError: true,
  2040. };
  2041. bucket
  2042. .upload(params, options)
  2043. .on("httpUploadProgress", function (evt) {
  2044. //这里可以写进度条
  2045. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  2046. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  2047. })
  2048. .send(function (err, data) {
  2049. _this.progress = 100;
  2050. setTimeout(() => {
  2051. _this.proVisible = false;
  2052. }, 1000);
  2053. if (err) {
  2054. var a = _this.$refs.upload1.uploadFiles;
  2055. a.splice(a.length - 1, a.length);
  2056. _this.$message.error("上传失败");
  2057. } else {
  2058. if (type == 2) {
  2059. _this.studyJuri[0].upVedio.push({
  2060. name: file.name,
  2061. url: data.Location,
  2062. uid: file.uid,
  2063. });
  2064. _this.imgChange(null, null, type);
  2065. } else if (type == 3) {
  2066. _this.studyJuri[0].upFile.push({
  2067. name: file.name,
  2068. url: data.Location,
  2069. uid: file.uid,
  2070. });
  2071. _this.imgChange(null, null, type);
  2072. }
  2073. console.log(data.Location);
  2074. }
  2075. });
  2076. }
  2077. },
  2078. allScrell() {
  2079. window.parent.postMessage({ allScreen: "1" }, "*");
  2080. },
  2081. nextOrpreSteps(t) {
  2082. this.showType = 0;
  2083. var b = this.chapInfoList.length - 1;
  2084. if (t == 0) {
  2085. if (this.courseType == 0) {
  2086. if (this.taskCount == 0) {
  2087. this.navList[this.courseType].isOpen = false;
  2088. this.courseType = b;
  2089. this.taskCount =
  2090. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  2091. .length - 1;
  2092. this.navList[this.courseType].isOpen = true;
  2093. } else {
  2094. this.taskCount--;
  2095. }
  2096. } else {
  2097. if (this.taskCount == 0) {
  2098. this.navList[this.courseType].isOpen = false;
  2099. this.courseType--;
  2100. this.taskCount =
  2101. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  2102. .length - 1;
  2103. this.navList[this.courseType].isOpen = true;
  2104. } else {
  2105. this.taskCount--;
  2106. }
  2107. }
  2108. } else {
  2109. var b = this.chapInfoList.length - 1;
  2110. if (this.courseType == b) {
  2111. if (
  2112. this.taskCount ==
  2113. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  2114. 1
  2115. ) {
  2116. this.navList[this.courseType].isOpen = false;
  2117. this.courseType = 0;
  2118. this.taskCount = 0;
  2119. this.navList[this.courseType].isOpen = true;
  2120. } else {
  2121. this.taskCount++;
  2122. }
  2123. } else {
  2124. if (
  2125. this.taskCount ==
  2126. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  2127. 1
  2128. ) {
  2129. this.navList[this.courseType].isOpen = false;
  2130. this.courseType++;
  2131. this.taskCount = 0;
  2132. this.navList[this.courseType].isOpen = true;
  2133. } else {
  2134. this.taskCount++;
  2135. }
  2136. }
  2137. // if (
  2138. // this.taskCount ==
  2139. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  2140. // ) {
  2141. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  2142. // } else {
  2143. // this.taskCount++;
  2144. // }
  2145. }
  2146. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  2147. if (this.vedio[this.taskCount].length > 0) {
  2148. var a =
  2149. document.getElementsByClassName("vedioTaskBox")[this.taskCount]
  2150. .offsetHeight;
  2151. document.getElementsByClassName("vedioList")[
  2152. this.taskCount
  2153. ].style.height = a - 15 + "px";
  2154. document.getElementsByClassName("navBox")[this.taskCount].style.height =
  2155. a - 100 + "px";
  2156. }
  2157. this.isNoHomeWork = false;
  2158. (this.studyJuri = [
  2159. {
  2160. content: "",
  2161. cover: [],
  2162. upVedio: [],
  2163. upFile: [],
  2164. },
  2165. ]),
  2166. (this.radio = []);
  2167. this.getHomeWork();
  2168. this.getCourseDetail();
  2169. },
  2170. openTask(s, n, i) {
  2171. this.courseType = s;
  2172. this.navId = i;
  2173. this.taskCount = n;
  2174. this.showType = 0;
  2175. this.isNoHomeWork = false;
  2176. (this.studyJuri = [
  2177. {
  2178. content: "",
  2179. cover: [],
  2180. upVedio: [],
  2181. upFile: [],
  2182. },
  2183. ]),
  2184. (this.radio = []);
  2185. setTimeout(() => {
  2186. let a = document.getElementById(i);
  2187. if (a.offsetTop - 110 == 0) {
  2188. window.scrollTo(0, 0);
  2189. } else {
  2190. window.scrollTo(0, a.offsetTop);
  2191. }
  2192. }, 0);
  2193. this.getHomeWork();
  2194. this.getCourseDetail();
  2195. this.vedioTime = document.getElementsByClassName(
  2196. "vjs-duration-display"
  2197. )[0].textContent;
  2198. },
  2199. get(i) {
  2200. this.navList[i].isOpen = !this.navList[i].isOpen;
  2201. },
  2202. addQuestion() {
  2203. this.answerList.push({
  2204. answerTitle: this.answerQ,
  2205. answer: this.questionAnswer,
  2206. });
  2207. let params = [
  2208. {
  2209. uid: this.userid,
  2210. cid: this.id,
  2211. stage: this.courseType,
  2212. task: this.taskCount,
  2213. tool: this.toolindex,
  2214. content: JSON.stringify(this.answerList),
  2215. type: 3,
  2216. },
  2217. ];
  2218. this.ajax
  2219. .post(this.$store.state.api + "addCourseWorks", params)
  2220. .then((res) => {
  2221. this.$message({
  2222. message: "提交成功",
  2223. type: "success",
  2224. });
  2225. this.answerList = [];
  2226. this.answerDialogVisible = false;
  2227. })
  2228. .catch((err) => {
  2229. this.$message.error("提交失败");
  2230. console.error(err);
  2231. });
  2232. },
  2233. getCourseDetail() {
  2234. const loading = this.$loading.service({
  2235. background: "rgba(255, 255, 255, 0.7)",
  2236. target: document.querySelector(".student_table"),
  2237. });
  2238. var t = this.courseType;
  2239. let params = {
  2240. courseId: this.id,
  2241. };
  2242. this.ajax
  2243. .get(this.$store.state.api + "selectCourseDetail", params)
  2244. .then((res) => {
  2245. loading.close();
  2246. var a = JSON.parse(res.data[0][0].chapters)[t].chapterInfo[0]
  2247. .taskJson;
  2248. var b = [
  2249. "AVI",
  2250. "NAVI",
  2251. "MPEG",
  2252. "ASF",
  2253. "MOV",
  2254. "WMV",
  2255. "3GP",
  2256. "RM",
  2257. "RMVB",
  2258. "FLV",
  2259. "F4V",
  2260. "H.264",
  2261. "H.265",
  2262. "REAL VIDEO",
  2263. "MKV",
  2264. "WebM",
  2265. "HDDVD",
  2266. "MP4",
  2267. "MPG",
  2268. "M4V",
  2269. "MGV",
  2270. "OGV",
  2271. "QTM",
  2272. "STR",
  2273. "AMC",
  2274. "DVX",
  2275. "EVO",
  2276. "DAT",
  2277. "OGG",
  2278. "OGM",
  2279. ];
  2280. for (var i = 0; i < a.length; i++) {
  2281. var c = a[i].chapterData;
  2282. this.vedio[i] = [];
  2283. this.textList[i] = [];
  2284. this.lineList[i] = [];
  2285. this.chapToolList[i] = [];
  2286. this.file[i] = [];
  2287. for (var j = 0; j < c.length; j++) {
  2288. if (c[j].type == 7) {
  2289. this.chapToolList[i].push(c[j]);
  2290. } else if (c[j].type == 8) {
  2291. this.lineList[i].push(c[j]);
  2292. } else if (c[j].type == 6) {
  2293. this.textList[i].push(c[j]);
  2294. } else {
  2295. if (
  2296. b.indexOf(
  2297. c[j].url
  2298. .split(".")
  2299. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  2300. ) != -1
  2301. ) {
  2302. this.vedio[i].push(c[j]);
  2303. } else {
  2304. this.file[i].push(c[j]);
  2305. }
  2306. }
  2307. }
  2308. var d = JSON.parse(JSON.stringify(this.playerOptions));
  2309. d.sources[0].src =
  2310. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  2311. this.playerO[i] = d;
  2312. }
  2313. this.courseDetail = res.data[0][0];
  2314. this.chapInfo = JSON.parse(this.courseDetail.chapters)[t];
  2315. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  2316. if (this.navList.length == 0) {
  2317. this.navList = [];
  2318. for (var l = 0; l < this.chapInfoList.length; l++) {
  2319. var q = this.chapInfoList[l].dyName;
  2320. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  2321. var e;
  2322. this.navList.push({
  2323. dyName: q,
  2324. isOpen: l === 0 ? true : false,
  2325. task: [],
  2326. });
  2327. for (var r = 0; r < w.length; r++) {
  2328. e = w[r].task;
  2329. this.navList[l].task.push({ taskName: e, id: l + "-" + r });
  2330. this.navId = this.navId ? this.navId : l + "-" + r;
  2331. }
  2332. }
  2333. }
  2334. for (var l = 0; l < this.chapInfoList.length; l++) {
  2335. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  2336. for (var m = 0; m < w.length; m++) {
  2337. w[m].id = l + "-" + m;
  2338. }
  2339. }
  2340. this.$nextTick(function () {
  2341. setTimeout(() => {
  2342. // for (
  2343. // var i = 0;
  2344. // i < document.getElementsByClassName("video-player").length;
  2345. // i++
  2346. // ) {
  2347. // var a =
  2348. // document.getElementsByClassName("video-player")[i]
  2349. // .offsetHeight;
  2350. // document.getElementsByClassName("vedioList")[i].style.height =
  2351. // a + "px";
  2352. // }
  2353. var a =
  2354. document.getElementsByClassName("vedioTaskBox")[0].offsetHeight;
  2355. document.getElementsByClassName("vedioList")[0].style.height =
  2356. a - 15 + "px";
  2357. document.getElementsByClassName("navBox")[0].style.height =
  2358. a - 100 + "px";
  2359. }, 500);
  2360. });
  2361. this.selectSWorks();
  2362. let _this = this;
  2363. _this.timer = setInterval(function () {
  2364. _this.selectSWorks();
  2365. }, 5000);
  2366. })
  2367. .catch((err) => {
  2368. loading.close();
  2369. console.error(err);
  2370. });
  2371. },
  2372. getHomeWork() {
  2373. let params = {
  2374. cid: this.id,
  2375. stage: this.courseType,
  2376. task: this.taskCount,
  2377. uid: this.userid,
  2378. };
  2379. this.ajax
  2380. .get(this.$store.state.api + "selectWork", params)
  2381. .then((res) => {
  2382. if (res.data[0].length > 0) {
  2383. this.studyJuri = JSON.parse(res.data[0][0].content);
  2384. this.isNoHomeWork = true;
  2385. }
  2386. })
  2387. .catch((err) => {
  2388. console.error(err);
  2389. });
  2390. },
  2391. isAssetTypeAnImage(ext) {
  2392. return (
  2393. [
  2394. "png",
  2395. "jpg",
  2396. "jpeg",
  2397. "bmp",
  2398. "gif",
  2399. "webp",
  2400. "psd",
  2401. "svg",
  2402. "tiff",
  2403. ].indexOf(ext) !== -1
  2404. );
  2405. },
  2406. switchVideo(media) {
  2407. this.playerO = {};
  2408. this.playerOptions.poster = "";
  2409. this.playerOptions.sources[0].src = media;
  2410. this.playerO = this.playerOptions;
  2411. },
  2412. onPlayerPlay() {},
  2413. lookVedio(u) {
  2414. // this.playerOptions.sources[0].src = u;
  2415. var d = JSON.parse(JSON.stringify(this.playerOptions));
  2416. d.sources[0].src = u;
  2417. this.playerO[0] = d;
  2418. this.showType = 0;
  2419. },
  2420. lookText(i, t) {
  2421. this.text = this.textList[i][t];
  2422. // this.dialogVisible1 = true;
  2423. this.showType = 1;
  2424. },
  2425. lookTools(i, t) {
  2426. this.chapTools = this.chapToolList[i][t];
  2427. this.dialogVisible2 = true;
  2428. },
  2429. openFile(f) {
  2430. this.pptImgUrl = "";
  2431. var a = ["PPT", "PPTX", "PDF", "XLSX", "XLS", "DOC", "DOCX"];
  2432. if (
  2433. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  2434. -1
  2435. ) {
  2436. this.pptImgUrl =
  2437. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  2438. this.dialogVisible3 = true;
  2439. }
  2440. },
  2441. downFile(f, i) {
  2442. this.pptImgUrl = "";
  2443. var a = ["PPT", "PPTX", "PDF", "XLSX", "XLS", "DOC", "DOCX"];
  2444. if (
  2445. a.indexOf(
  2446. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  2447. ) != -1
  2448. ) {
  2449. this.pptImgUrl =
  2450. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  2451. // this.dialogVisible3 = true;
  2452. this.showType = 2;
  2453. } else {
  2454. window.open(this.file[i].url);
  2455. }
  2456. },
  2457. downFileList(i) {
  2458. window.open(this.noImgList[i].url);
  2459. },
  2460. openAddWork() {
  2461. this.dialogVisible = true;
  2462. },
  2463. addStudentAsk() {
  2464. this.askList.push({ askJson: this.askJson, anwer: this.radio.join(",") });
  2465. let params = [
  2466. {
  2467. uid: this.userid,
  2468. cid: this.id,
  2469. stage: this.courseType,
  2470. task: this.taskCount,
  2471. tool: this.toolindex,
  2472. content: JSON.stringify(this.askList),
  2473. type: 2,
  2474. },
  2475. ];
  2476. this.ajax
  2477. .post(this.$store.state.api + "addCourseWorks", params)
  2478. .then((res) => {
  2479. this.$message({
  2480. message: "提交成功",
  2481. type: "success",
  2482. });
  2483. this.askList = [];
  2484. this.dialogVisible5 = false;
  2485. })
  2486. .catch((err) => {
  2487. this.$message.error("提交失败");
  2488. console.error(err);
  2489. });
  2490. },
  2491. addWork() {
  2492. if (this.studyJuri[0].content == "") {
  2493. this.$message.error("请将信息填写完整");
  2494. return;
  2495. } else if (this.studyJuri[0].cover.length == 0) {
  2496. this.$message.error("请将信息填写完整");
  2497. return;
  2498. } else if (this.studyJuri[0].upVedio.length == 0) {
  2499. this.$message.error("请将信息填写完整");
  2500. return;
  2501. }
  2502. if (this.isNoHomeWork) {
  2503. this.$confirm(
  2504. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  2505. "提示",
  2506. {
  2507. confirmButtonText: "确定",
  2508. cancelButtonText: "取消",
  2509. type: "warning",
  2510. }
  2511. )
  2512. .then(() => {
  2513. let params = [
  2514. {
  2515. uid: this.userid,
  2516. cid: this.id,
  2517. stage: this.courseType,
  2518. task: this.taskCount,
  2519. content: JSON.stringify(this.studyJuri),
  2520. },
  2521. ];
  2522. this.ajax
  2523. .post(this.$store.state.api + "addWorks", params)
  2524. .then((res) => {
  2525. this.$message({
  2526. message: "提交成功",
  2527. type: "success",
  2528. });
  2529. this.isNoHomeWork = true;
  2530. this.dialogVisible = false;
  2531. })
  2532. .catch((err) => {
  2533. this.$message.error("提交失败");
  2534. console.error(err);
  2535. });
  2536. })
  2537. .catch(() => {});
  2538. } else {
  2539. let params = [
  2540. {
  2541. uid: this.userid,
  2542. cid: this.id,
  2543. stage: this.courseType,
  2544. task: this.taskCount,
  2545. content: JSON.stringify(this.studyJuri),
  2546. },
  2547. ];
  2548. this.ajax
  2549. .post(this.$store.state.api + "addWorks", params)
  2550. .then((res) => {
  2551. this.$message({
  2552. message: "提交成功",
  2553. type: "success",
  2554. });
  2555. this.isNoHomeWork = true;
  2556. this.dialogVisible = false;
  2557. })
  2558. .catch((err) => {
  2559. this.$message.error("提交失败");
  2560. console.error(err);
  2561. });
  2562. }
  2563. },
  2564. selectCount() {
  2565. let params = {
  2566. cid: this.id,
  2567. chid: this.courseType,
  2568. uid: this.userid,
  2569. };
  2570. this.ajax
  2571. .get(this.$store.state.api + "selectToolsCount", params)
  2572. .then((res) => {
  2573. for (var i = 0; i < res.data[0].length; i++) {
  2574. if (res.data[0][i].tools == 1) {
  2575. this.wbCount = res.data[0][i].count;
  2576. } else if (res.data[0][i].tools == 2) {
  2577. this.wordCount = res.data[0][i].count;
  2578. } else if (res.data[0][i].tools == 3) {
  2579. this.mindCount = res.data[0][i].count;
  2580. } else if (res.data[0][i].tools == 4) {
  2581. this.askCount = res.data[0][i].count;
  2582. } else if (res.data[0][i].tools == 6) {
  2583. this.noteCount = res.data[0][i].count;
  2584. } else if (res.data[0][i].tools == 7) {
  2585. this.mindNetWorkCount = res.data[0][i].count;
  2586. } else if (res.data[0][i].tools == 8) {
  2587. this.libraryCount = res.data[0][i].count;
  2588. } else if (res.data[0][i].tools == 16) {
  2589. this.workCount = res.data[0][i].count;
  2590. } else if (res.data[0][i].tools == 10) {
  2591. this.timeCount = res.data[0][i].count;
  2592. } else if (res.data[0][i].tools == 15) {
  2593. this.answerCount = res.data[0][i].count;
  2594. } else if (res.data[0][i].tools == 18) {
  2595. this.trainCount = res.data[0][i].count;
  2596. }
  2597. }
  2598. })
  2599. .catch((err) => {
  2600. console.error(err);
  2601. });
  2602. },
  2603. openTools(t, i, index, c) {
  2604. var z = JSON.parse(c);
  2605. if (t == 4) {
  2606. this.radio = [];
  2607. this.isAnswer = false;
  2608. for (var i = 0; i < z.length; i++) {
  2609. let a = z[i];
  2610. let b = a.anwer.split(",");
  2611. let d = [];
  2612. for (var j = 0; j < b.length; j++) {
  2613. d.push(parseInt(b[j]));
  2614. }
  2615. this.radio = d;
  2616. this.askJson = a.askJson;
  2617. }
  2618. this.isAnswer = true;
  2619. this.dialogVisible5 = true;
  2620. }
  2621. // else if (t == 15) {
  2622. // this.answerQ = "";
  2623. // this.questionAnswer = "";
  2624. // this.answerQ = z[0].answerTitle;
  2625. // this.questionAnswer = z[0].answer;
  2626. // this.answerDialogVisible = true;
  2627. // }
  2628. },
  2629. addTools(t, i, index) {
  2630. var a = 0;
  2631. // this.taskCount = index;
  2632. this.toolindex = i;
  2633. if (t == 1) {
  2634. if (this.wbCount > 0) {
  2635. this.updateCount(this.wbCount, t);
  2636. } else {
  2637. this.wbCount++;
  2638. a = this.wbCount;
  2639. this.toolsCount(a, t);
  2640. }
  2641. window.parent.postMessage(
  2642. {
  2643. tools: "1",
  2644. cid: this.id,
  2645. stage: this.courseType,
  2646. task: this.taskCount,
  2647. tool: i,
  2648. },
  2649. "*"
  2650. );
  2651. } else if (t == 2) {
  2652. if (this.wordCount > 0) {
  2653. this.updateCount(this.wordCount, t);
  2654. } else {
  2655. this.wordCount++;
  2656. a = this.wordCount;
  2657. this.toolsCount(a, t);
  2658. }
  2659. window.parent.postMessage({ tools: "2" }, "*");
  2660. } else if (t == 3) {
  2661. if (this.mindCount > 0) {
  2662. this.updateCount(this.mindCount, t);
  2663. } else {
  2664. this.mindCount++;
  2665. a = this.mindCount;
  2666. this.toolsCount(a, t);
  2667. }
  2668. window.parent.postMessage(
  2669. {
  2670. tools: "3",
  2671. cid: this.id,
  2672. stage: this.courseType,
  2673. task: this.taskCount,
  2674. tool: i,
  2675. },
  2676. "*"
  2677. );
  2678. } else if (t == 4) {
  2679. this.radio = [];
  2680. this.isAnswer = false;
  2681. if (this.askCount > 0) {
  2682. this.updateCount(this.askCount, t);
  2683. } else {
  2684. this.askCount++;
  2685. a = this.askCount;
  2686. this.toolsCount(a, t);
  2687. }
  2688. if (!this.dialogVisible2) {
  2689. this.askJson.askJson =
  2690. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  2691. index
  2692. ].toolChoose[i].askJson;
  2693. this.askJson.askTitle =
  2694. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  2695. index
  2696. ].toolChoose[i].askTitle;
  2697. this.askJson.askCount =
  2698. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  2699. index
  2700. ].toolChoose[i].askCount;
  2701. } else {
  2702. this.askJson.askJson = this.chapTools.askJson.askJson;
  2703. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  2704. this.askJson.askCount = this.chapTools.askJson.askCount;
  2705. }
  2706. this.dialogVisible5 = true;
  2707. // window.parent.postMessage({ tools: "4" }, "*");
  2708. } else if (t == 5) {
  2709. if (this.scoreCount > 0) {
  2710. this.updateCount(this.scoreCount, t);
  2711. } else {
  2712. this.scoreCount++;
  2713. a = this.scoreCount;
  2714. this.toolsCount(a, t);
  2715. }
  2716. this.dialogVisible4 = true;
  2717. // window.parent.postMessage({ tools: "5" }, "*");
  2718. } else if (t == 6) {
  2719. if (this.noteCount > 0) {
  2720. this.updateCount(this.noteCount, t);
  2721. } else {
  2722. this.noteCount++;
  2723. a = this.noteCount;
  2724. this.toolsCount(a, t);
  2725. }
  2726. window.parent.postMessage(
  2727. {
  2728. tools: "6",
  2729. cid: this.id,
  2730. stage: this.courseType,
  2731. task: this.taskCount,
  2732. tool: i,
  2733. },
  2734. "*"
  2735. );
  2736. } else if (t == 7) {
  2737. if (this.mindNetWorkCount > 0) {
  2738. this.updateCount(this.mindNetWorkCount, t);
  2739. } else {
  2740. this.mindNetWorkCount++;
  2741. a = this.mindNetWorkCount;
  2742. this.toolsCount(a, t);
  2743. }
  2744. window.parent.postMessage(
  2745. {
  2746. tools: "7",
  2747. cid: this.id,
  2748. stage: this.courseType,
  2749. task: this.taskCount,
  2750. tool: i,
  2751. },
  2752. "*"
  2753. );
  2754. } else if (t == 16) {
  2755. if (this.workCount > 0) {
  2756. this.updateCount(this.workCount, t);
  2757. } else {
  2758. this.workCount++;
  2759. a = this.workCount;
  2760. this.toolsCount(a, t);
  2761. }
  2762. this.dialogVisible = true;
  2763. } else if (t == 8) {
  2764. if (this.libraryCount > 0) {
  2765. this.updateCount(this.libraryCount, t);
  2766. } else {
  2767. this.libraryCount++;
  2768. a = this.libraryCount;
  2769. this.toolsCount(a, t);
  2770. }
  2771. window.parent.postMessage({ tools: "8" }, "*");
  2772. } else if (t == 17) {
  2773. if (this.libraryCount > 0) {
  2774. this.updateCount(this.libraryCount, t);
  2775. } else {
  2776. this.libraryCount++;
  2777. a = this.libraryCount;
  2778. this.toolsCount(a, t);
  2779. }
  2780. window.parent.postMessage({ tools: "17" }, "*");
  2781. } else if (t == 18) {
  2782. if (this.trainCount > 0) {
  2783. this.updateCount(this.trainCount, t);
  2784. } else {
  2785. this.trainCount++;
  2786. a = this.trainCount;
  2787. this.toolsCount(a, t);
  2788. }
  2789. window.parent.postMessage({ tools: "18" }, "*");
  2790. } else if (t == 10) {
  2791. if (this.timeCount > 0) {
  2792. this.updateCount(this.timeCount, t);
  2793. } else {
  2794. this.timeCount++;
  2795. a = this.timeCount;
  2796. this.toolsCount(a, t);
  2797. }
  2798. this.timeDialogVisible = true;
  2799. } else if (t == 15) {
  2800. this.answerQ = "";
  2801. this.questionAnswer = "";
  2802. if (this.answerCount > 0) {
  2803. this.updateCount(this.answerCount, t);
  2804. } else {
  2805. this.answerCount++;
  2806. a = this.answerCount;
  2807. this.toolsCount(a, t);
  2808. }
  2809. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  2810. .taskJson[index].toolChoose[i].answerQ
  2811. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  2812. .toolChoose[i].answerQ
  2813. : "";
  2814. this.answerDialogVisible = true;
  2815. } else if (t == 21) {
  2816. window.parent.postMessage({ tools: "21" }, "*");
  2817. } else if (t == 22) {
  2818. window.parent.postMessage({ tools: "22" }, "*");
  2819. } else if (t == 23) {
  2820. window.parent.postMessage({ tools: "23" }, "*");
  2821. } else if (t == 24) {
  2822. window.parent.postMessage({ tools: "24" }, "*");
  2823. }
  2824. },
  2825. toolsCount(a, t) {
  2826. let params = {
  2827. cid: this.id,
  2828. chid: this.courseType,
  2829. uid: this.userid,
  2830. tid: t,
  2831. count: a,
  2832. };
  2833. this.ajax
  2834. .get(this.$store.state.api + "insertToolsCount", params)
  2835. .then((res) => {
  2836. this.selectCount();
  2837. })
  2838. .catch((err) => {
  2839. console.error(err);
  2840. });
  2841. },
  2842. updateCount(c, t) {
  2843. c++;
  2844. let params = {
  2845. cid: this.id,
  2846. chid: this.courseType,
  2847. uid: this.userid,
  2848. tid: t,
  2849. count: c,
  2850. };
  2851. this.ajax
  2852. .get(this.$store.state.api + "updateToolsCount", params)
  2853. .then((res) => {
  2854. this.selectCount();
  2855. })
  2856. .catch((err) => {
  2857. console.error(err);
  2858. });
  2859. },
  2860. },
  2861. destroyed() {
  2862. window.onresize = null;
  2863. },
  2864. created() {
  2865. this.getCourseDetail();
  2866. this.selectCount();
  2867. this.getHomeWork();
  2868. document.scrollingElement.scrollTop = 0;
  2869. window.addEventListener("resize", () => {
  2870. var a = document.getElementsByClassName("vedioTaskBox")[0].offsetHeight;
  2871. document.getElementsByClassName("vedioList")[0].style.height =
  2872. a - 15 + "px";
  2873. document.getElementsByClassName("navBox")[0].style.height =
  2874. a - 100 + "px";
  2875. });
  2876. setTimeout(() => {
  2877. this.vedioTime = document.getElementsByClassName(
  2878. "vjs-duration-display"
  2879. )[0].textContent;
  2880. }, 1000);
  2881. },
  2882. };
  2883. </script>
  2884. <style scoped>
  2885. .body_student {
  2886. width: 77%;
  2887. height: 100%;
  2888. position: absolute;
  2889. left: 22%;
  2890. top: 0;
  2891. }
  2892. .student_head {
  2893. width: 100%;
  2894. margin: 0 auto;
  2895. padding-bottom: 50px;
  2896. display: flex;
  2897. flex-direction: row;
  2898. flex-wrap: nowrap;
  2899. align-items: flex-start;
  2900. justify-content: flex-start;
  2901. }
  2902. .pb_left {
  2903. width: 20%;
  2904. margin-right: 10px;
  2905. background: rgb(255, 255, 255);
  2906. padding-right: 10px;
  2907. position: fixed;
  2908. height: 100%;
  2909. }
  2910. .wheel > img,
  2911. .project > img,
  2912. .star > img,
  2913. .evaluate > img,
  2914. .up_photo > img,
  2915. .chapter_add > img,
  2916. .upCover > img,
  2917. .deleteWord > img,
  2918. .question > img,
  2919. .homework > img {
  2920. width: 100%;
  2921. height: 100%;
  2922. }
  2923. .upCover {
  2924. width: calc(100% / 3.5);
  2925. position: relative;
  2926. margin: 0 15px 10px 0;
  2927. display: flex;
  2928. flex-direction: column;
  2929. flex-wrap: nowrap;
  2930. justify-content: center;
  2931. align-content: center;
  2932. align-items: center;
  2933. }
  2934. .chapter_add {
  2935. width: 120px;
  2936. position: relative;
  2937. text-align: center;
  2938. }
  2939. .isAddThings {
  2940. margin-top: 20px;
  2941. position: relative;
  2942. text-align: center;
  2943. background: #f7f8fa;
  2944. height: 90px;
  2945. width: 90px;
  2946. display: flex;
  2947. flex-direction: column;
  2948. justify-content: center;
  2949. }
  2950. .deleteWord {
  2951. width: 22px;
  2952. height: 22px;
  2953. position: absolute;
  2954. right: -5px;
  2955. top: -5px;
  2956. cursor: pointer;
  2957. }
  2958. .box_course {
  2959. display: flex;
  2960. flex-direction: row;
  2961. justify-content: flex-start;
  2962. align-items: center;
  2963. }
  2964. .wheel {
  2965. width: 100%;
  2966. height: 100%;
  2967. }
  2968. .right_box {
  2969. display: flex;
  2970. flex-direction: column;
  2971. margin-left: 30px;
  2972. justify-content: space-around;
  2973. }
  2974. .right_box_title {
  2975. font-size: 23px;
  2976. }
  2977. .people {
  2978. display: flex;
  2979. }
  2980. .student_body {
  2981. width: 100%;
  2982. margin: 0 auto;
  2983. margin-top: 20px;
  2984. padding: 0 0 20px;
  2985. }
  2986. .study_top {
  2987. margin-top: 90px;
  2988. width: 100%;
  2989. overflow: auto;
  2990. height: auto;
  2991. }
  2992. .study_top .checkbox {
  2993. display: flex;
  2994. align-items: center;
  2995. padding: 20px 0 20px 30px;
  2996. flex: 0 0 auto;
  2997. font-weight: bold;
  2998. border-bottom: 1px solid #eee;
  2999. }
  3000. .study_top .check {
  3001. padding-bottom: 5px;
  3002. text-align: center;
  3003. cursor: pointer;
  3004. height: 30px;
  3005. box-sizing: border-box;
  3006. display: flex;
  3007. }
  3008. .study_top .checked {
  3009. border-bottom: 4px solid #3fc6a0;
  3010. padding-bottom: 5px;
  3011. color: #3fc6a0;
  3012. display: flex;
  3013. height: 35px;
  3014. }
  3015. .study_top .checked > div,
  3016. .study_top .check > div {
  3017. margin-right: 5px;
  3018. }
  3019. .videoTop {
  3020. display: flex;
  3021. flex-direction: row;
  3022. justify-content: space-between;
  3023. background: #fff;
  3024. align-items: center;
  3025. width: 95%;
  3026. padding: 20px;
  3027. }
  3028. .upbtn {
  3029. margin: 25px;
  3030. background: #70afdb;
  3031. color: #fff;
  3032. width: 120px;
  3033. text-align: center;
  3034. height: 30px;
  3035. line-height: 30px;
  3036. font-size: 13px;
  3037. border-radius: 5px;
  3038. cursor: pointer;
  3039. }
  3040. .filebox {
  3041. display: flex;
  3042. flex-wrap: wrap;
  3043. flex-direction: column;
  3044. padding: 15px 0 25px;
  3045. }
  3046. .filebox .tooldetail {
  3047. width: 100%;
  3048. margin: 0px 12px;
  3049. background: rgb(247, 247, 247);
  3050. padding: 20px;
  3051. line-height: 30px;
  3052. max-height: 105px;
  3053. overflow: auto;
  3054. height: 70px;
  3055. }
  3056. .file {
  3057. display: flex;
  3058. flex-direction: column;
  3059. align-items: center;
  3060. justify-content: center;
  3061. cursor: pointer;
  3062. width: 200px;
  3063. }
  3064. .file div {
  3065. margin-top: 10px;
  3066. width: 150px;
  3067. text-align: center;
  3068. overflow: hidden;
  3069. white-space: nowrap;
  3070. text-overflow: ellipsis;
  3071. }
  3072. .media {
  3073. display: flex;
  3074. flex-direction: column;
  3075. align-items: center;
  3076. justify-content: center;
  3077. margin: 0 20px 20px 0;
  3078. cursor: pointer;
  3079. margin: 12px 0 5px 15px;
  3080. overflow: hidden;
  3081. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  3082. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  3083. box-sizing: border-box;
  3084. }
  3085. .media img {
  3086. height: 90px;
  3087. width: 160px;
  3088. object-fit: cover;
  3089. }
  3090. .media .title {
  3091. padding: 5px;
  3092. text-align: left;
  3093. width: 100%;
  3094. box-sizing: border-box;
  3095. }
  3096. .media .btn {
  3097. width: 100%;
  3098. height: 35px;
  3099. line-height: 35px;
  3100. color: #fff;
  3101. background: #606060;
  3102. text-align: center;
  3103. overflow: hidden;
  3104. white-space: nowrap;
  3105. text-overflow: ellipsis;
  3106. }
  3107. .detail_content_top {
  3108. width: 100%;
  3109. padding: 25px 0 25px 0;
  3110. }
  3111. .detail_title {
  3112. text-align: center;
  3113. font-size: 24px;
  3114. }
  3115. .detail_time {
  3116. font-size: 13px;
  3117. padding: 15px 0 0 40px;
  3118. }
  3119. .detail_content {
  3120. line-height: 2pc;
  3121. width: 90%;
  3122. margin: 0 auto;
  3123. padding-top: 30px;
  3124. text-indent: 30px;
  3125. overflow: auto;
  3126. height: 200px;
  3127. }
  3128. .score_box >>> .el-rate {
  3129. margin-left: 10px;
  3130. }
  3131. .dialog_change >>> .el-dialog {
  3132. border-radius: 5px;
  3133. }
  3134. .dialog_change >>> .el-dialog__header {
  3135. background: #f2f2f2;
  3136. text-align: center;
  3137. }
  3138. .dialog_change >>> .el-dialog__title {
  3139. line-height: 5px;
  3140. }
  3141. .dialog_change >>> .el-dialog__body {
  3142. background: #fff;
  3143. padding: 10px 20px;
  3144. }
  3145. .score_box {
  3146. display: flex;
  3147. align-items: center;
  3148. margin-bottom: 18px;
  3149. margin-top: 20px;
  3150. }
  3151. .up_photo {
  3152. width: 120px;
  3153. cursor: pointer;
  3154. margin-top: 10px;
  3155. }
  3156. .upload_send {
  3157. margin: 200px auto 30px;
  3158. width: 60%;
  3159. background: #169bd6;
  3160. text-align: center;
  3161. height: 35px;
  3162. line-height: 35px;
  3163. color: #fff;
  3164. border-radius: 5px;
  3165. cursor: pointer;
  3166. }
  3167. .marginT {
  3168. margin-top: 20px;
  3169. }
  3170. .cd_content_steps {
  3171. display: flex;
  3172. width: 90%;
  3173. justify-content: space-around;
  3174. border-top: 1px solid #eeeeee;
  3175. }
  3176. .cd_steps_box {
  3177. display: flex;
  3178. justify-content: center;
  3179. align-items: center;
  3180. flex-direction: column;
  3181. cursor: pointer;
  3182. }
  3183. .first {
  3184. display: flex;
  3185. align-items: center;
  3186. margin: 15px 0 20px 0;
  3187. font-size: 20px;
  3188. }
  3189. .first > div:nth-child(2) {
  3190. font-size: 16px !important;
  3191. padding-left: 10px;
  3192. line-height: 26px;
  3193. box-sizing: border-box;
  3194. }
  3195. .blue_box_one {
  3196. text-align: center;
  3197. color: #fff;
  3198. background-image: linear-gradient(to right, #30c499, #75ceba);
  3199. border-radius: 7px;
  3200. margin: 10px;
  3201. cursor: pointer;
  3202. width: 95%;
  3203. height: 45px;
  3204. display: flex;
  3205. flex-direction: row;
  3206. justify-content: flex-start;
  3207. align-items: center;
  3208. }
  3209. .blue_box_one > div:nth-child(1) {
  3210. line-height: 65px;
  3211. margin: 0 5px 0 10px;
  3212. width: 30%;
  3213. min-width: 70px;
  3214. }
  3215. .blue_box_one > div:nth-child(2) {
  3216. white-space: nowrap;
  3217. text-overflow: ellipsis;
  3218. overflow: hidden;
  3219. word-break: break-all;
  3220. width: 70%;
  3221. text-align: left;
  3222. margin-right: 10px;
  3223. max-width: calc(100% - 85px);
  3224. }
  3225. .blue_box_one > div:nth-child(2):hover {
  3226. overflow: hidden;
  3227. text-overflow: ellipsis;
  3228. white-space: nowrap;
  3229. cursor: pointer;
  3230. }
  3231. .upFile {
  3232. margin: 0 auto;
  3233. width: 120px;
  3234. background: #70afdb;
  3235. color: #fff;
  3236. height: 30px;
  3237. text-align: center;
  3238. line-height: 30px;
  3239. border-radius: 5px;
  3240. font-size: 14px;
  3241. cursor: pointer;
  3242. }
  3243. .courseTitle {
  3244. background: #329c74;
  3245. width: 95%;
  3246. margin: 10px auto;
  3247. height: 40px;
  3248. color: #fff;
  3249. line-height: 40px;
  3250. text-indent: 15px;
  3251. }
  3252. .ml {
  3253. margin-left: 15px;
  3254. color: #d1d1d1;
  3255. }
  3256. .return {
  3257. width: 2rem;
  3258. height: 2rem;
  3259. cursor: pointer;
  3260. }
  3261. .return > img {
  3262. width: 100%;
  3263. height: 100%;
  3264. }
  3265. .returnBtn {
  3266. background: rgb(238, 238, 238);
  3267. width: 58px;
  3268. height: 30px;
  3269. color: rgb(22, 22, 22);
  3270. text-align: center;
  3271. line-height: 32px;
  3272. margin-right: 20px;
  3273. cursor: pointer;
  3274. }
  3275. .tool {
  3276. display: flex;
  3277. flex-direction: column;
  3278. flex-wrap: nowrap;
  3279. width: 13%;
  3280. margin: 0 30px;
  3281. align-items: center;
  3282. }
  3283. .whiteBIcon {
  3284. width: 150px;
  3285. cursor: pointer;
  3286. }
  3287. .whiteBIcon > img {
  3288. width: 100%;
  3289. height: 100%;
  3290. }
  3291. .mask {
  3292. background-color: rgba(0, 0, 0, 0);
  3293. position: fixed;
  3294. top: 0;
  3295. left: 0;
  3296. width: 100%;
  3297. height: 100%;
  3298. z-index: 20000;
  3299. display: flex;
  3300. align-items: center;
  3301. justify-content: center;
  3302. }
  3303. .progressBox {
  3304. width: 500px;
  3305. height: 180px;
  3306. background: #fff;
  3307. border-radius: 10px;
  3308. box-shadow: 0 0 6px 1px #bfbfbf;
  3309. display: flex;
  3310. align-items: center;
  3311. justify-content: center;
  3312. flex-direction: column;
  3313. }
  3314. .progressBox .lbox {
  3315. height: 100px;
  3316. font-size: 19px;
  3317. display: flex;
  3318. align-items: center;
  3319. }
  3320. .progressBox .lbox img {
  3321. width: 40px;
  3322. margin-right: 20px;
  3323. }
  3324. .progressBox >>> .el-progress-bar__outer {
  3325. background-color: #d1dfff !important;
  3326. }
  3327. .progressBox .lbox {
  3328. height: 100px;
  3329. font-size: 19px;
  3330. display: flex;
  3331. align-items: center;
  3332. }
  3333. .progressBox .lbox img {
  3334. width: 40px;
  3335. margin-right: 20px;
  3336. }
  3337. .uploadVedio {
  3338. display: flex;
  3339. flex-direction: column;
  3340. flex-wrap: nowrap;
  3341. justify-content: center;
  3342. align-items: center;
  3343. margin: 0 15px 10px 0;
  3344. }
  3345. .uploadVedio > img {
  3346. width: 30px;
  3347. height: 30px;
  3348. }
  3349. .uploadVedio > span {
  3350. white-space: nowrap;
  3351. overflow: hidden;
  3352. text-overflow: ellipsis;
  3353. width: 75px;
  3354. margin-top: 7px;
  3355. }
  3356. .picName {
  3357. white-space: nowrap;
  3358. overflow: hidden;
  3359. text-overflow: ellipsis;
  3360. width: 75px;
  3361. margin-top: 7px;
  3362. }
  3363. .new_top {
  3364. display: flex;
  3365. background: #fff;
  3366. flex-direction: row;
  3367. justify-content: flex-start;
  3368. align-items: center;
  3369. height: 60px;
  3370. position: relative;
  3371. }
  3372. .before {
  3373. position: absolute;
  3374. background: #c3dad4;
  3375. width: 6px;
  3376. height: 100%;
  3377. }
  3378. .courseIndex {
  3379. display: flex;
  3380. flex-direction: row;
  3381. align-items: baseline;
  3382. }
  3383. .courseIndex > div:nth-child(1) {
  3384. margin: 0 20px;
  3385. padding-bottom: 5px;
  3386. color: #288a6e;
  3387. font-size: 20px;
  3388. width: 80px;
  3389. font-weight: bold;
  3390. border-bottom: 4px solid #41c4a4;
  3391. text-align: center;
  3392. }
  3393. .courseIndex > div:nth-child(2) {
  3394. font-size: 23px;
  3395. }
  3396. .course_text {
  3397. padding: 20px 0 0 15px;
  3398. text-indent: 30px;
  3399. width: 80%;
  3400. min-height: 20px;
  3401. }
  3402. .vedioList {
  3403. background: #f2f2f2;
  3404. border: 1px solid #ececec;
  3405. width: 213px;
  3406. height: 530px;
  3407. border-radius: 10px;
  3408. margin-top: 15px;
  3409. }
  3410. .vedioNav {
  3411. margin: 10px 0 0 15px;
  3412. border-bottom: 1px solid #d7d7d7;
  3413. padding-bottom: 5px;
  3414. background: #d2e3ff;
  3415. width: 70px;
  3416. min-width: 70px;
  3417. border-radius: 5px;
  3418. color: #4d97d6;
  3419. text-align: center;
  3420. height: 20px;
  3421. line-height: 26px;
  3422. font-size: 14px;
  3423. }
  3424. .queTop {
  3425. display: flex;
  3426. padding: 20px 0 20px 30px;
  3427. width: 100%;
  3428. flex-direction: row;
  3429. justify-content: flex-start;
  3430. align-items: center;
  3431. border-bottom: 1px solid #eeeeee;
  3432. box-sizing: border-box;
  3433. }
  3434. .question {
  3435. width: 40px;
  3436. margin-right: 10px;
  3437. margin-top: 7px;
  3438. }
  3439. .queTitle {
  3440. margin-left: 5px;
  3441. font-size: 25px;
  3442. display: flex;
  3443. align-items: center;
  3444. }
  3445. .addEditor {
  3446. width: 100px;
  3447. height: 30px;
  3448. background: #42cda6;
  3449. color: #fff;
  3450. border-radius: 5px;
  3451. text-align: center;
  3452. line-height: 30px;
  3453. box-shadow: 1px 3px 6px 1px #bfbfbf;
  3454. cursor: pointer;
  3455. }
  3456. .vedioName {
  3457. width: 90px;
  3458. text-overflow: ellipsis;
  3459. position: absolute;
  3460. top: 8px;
  3461. font-size: 14px;
  3462. left: 110px;
  3463. height: 60px;
  3464. }
  3465. .vedioTime {
  3466. width: 35px;
  3467. position: absolute;
  3468. color: #fff;
  3469. bottom: 0px;
  3470. right: 0px;
  3471. text-align: center;
  3472. background: #46411f;
  3473. height: 20px;
  3474. font-size: 14px;
  3475. line-height: 20px;
  3476. }
  3477. .homework {
  3478. width: 200px;
  3479. display: flex;
  3480. flex-direction: column;
  3481. flex-wrap: nowrap;
  3482. align-items: center;
  3483. cursor: pointer;
  3484. }
  3485. .homebox {
  3486. display: flex;
  3487. flex-wrap: wrap;
  3488. flex-direction: row;
  3489. justify-content: flex-start;
  3490. align-items: center;
  3491. padding: 15px 0;
  3492. }
  3493. .isChooseActive {
  3494. color: #3e88f4;
  3495. border-bottom: 2px solid #2f80f3;
  3496. }
  3497. .chooseWho {
  3498. display: flex;
  3499. width: 100%;
  3500. flex-direction: row;
  3501. flex-wrap: nowrap;
  3502. justify-content: flex-start;
  3503. padding-bottom: 10px;
  3504. }
  3505. .chooseWho > div {
  3506. cursor: pointer;
  3507. padding-bottom: 10px;
  3508. margin: 0 30px;
  3509. }
  3510. .addPoint > div > img {
  3511. cursor: pointer;
  3512. margin: 0 10px;
  3513. width: 85px;
  3514. border-radius: 15px;
  3515. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  3516. }
  3517. .addPoint > div {
  3518. display: flex;
  3519. flex-direction: column;
  3520. flex-wrap: nowrap;
  3521. align-items: center;
  3522. }
  3523. .isBorder > div {
  3524. margin: 0 0 10px 0;
  3525. align-items: flex-start !important;
  3526. }
  3527. .noiframeBox {
  3528. display: flex;
  3529. flex-wrap: wrap;
  3530. }
  3531. .iframeBox iframe {
  3532. width: 100%;
  3533. height: 800px;
  3534. border: none;
  3535. margin-bottom: 20px;
  3536. border: 1px solid #ccc;
  3537. }
  3538. .upload_toolBtn {
  3539. background: #6b92c9;
  3540. color: #fff;
  3541. width: 110px;
  3542. text-align: center;
  3543. height: 35px;
  3544. line-height: 35px;
  3545. font-size: 14px;
  3546. border-radius: 5px;
  3547. cursor: pointer;
  3548. position: absolute;
  3549. right: 10px;
  3550. bottom: 0;
  3551. }
  3552. .binfo_input {
  3553. font: inherit;
  3554. color: currentColor;
  3555. width: 100%;
  3556. margin: 0;
  3557. padding: 15px 14px;
  3558. display: block;
  3559. min-width: 0;
  3560. outline: none;
  3561. box-sizing: content-box;
  3562. background: none;
  3563. -webkit-tap-highlight-color: transparent;
  3564. border: 1px solid rgba(0, 0, 0, 0.23);
  3565. border-radius: 4px;
  3566. box-sizing: border-box;
  3567. resize: none;
  3568. }
  3569. .binfo_input:focus-visible {
  3570. border: 1px solid rgba(61, 103, 188);
  3571. }
  3572. .dialog_diy >>> .el-dialog__header {
  3573. background: #484848 !important;
  3574. padding: 15px 20px;
  3575. }
  3576. .dialog_diy >>> .el-dialog__title {
  3577. color: #fff;
  3578. }
  3579. .dialog_diy >>> .el-dialog__headerbtn {
  3580. top: 19px;
  3581. }
  3582. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close {
  3583. color: #fff;
  3584. }
  3585. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover {
  3586. color: #fff;
  3587. }
  3588. .dialog_diy >>> .el-dialog__body,
  3589. .dialog_diy >>> .el-dialog__footer {
  3590. background: #fafafa;
  3591. }
  3592. .a_addBox {
  3593. margin: 10px 0;
  3594. background: #fff;
  3595. padding: 15px;
  3596. max-height: 400px;
  3597. overflow: auto;
  3598. }
  3599. .a_add_box {
  3600. border-bottom: 2px solid #eee;
  3601. padding-bottom: 10px;
  3602. }
  3603. .a_add_head {
  3604. display: flex;
  3605. align-items: center;
  3606. justify-content: space-between;
  3607. margin: 10px 0;
  3608. font-size: 18px;
  3609. }
  3610. .a_add_head .a_add_head_input {
  3611. width: 300px;
  3612. }
  3613. .a_add_head .a_add_head_div {
  3614. display: flex;
  3615. align-items: center;
  3616. justify-content: space-between;
  3617. }
  3618. .a_add_body {
  3619. display: flex;
  3620. align-items: center;
  3621. }
  3622. .a_add_input {
  3623. display: flex;
  3624. align-items: center;
  3625. flex-wrap: wrap;
  3626. }
  3627. .a_add_input >>> el-radio-group {
  3628. margin: 10px 0;
  3629. }
  3630. .a_add_input >>> .el-radio {
  3631. margin-bottom: 10px;
  3632. }
  3633. .redioStyle >>> .el-radio__label {
  3634. font-size: 18px;
  3635. }
  3636. .toolHeng2 {
  3637. width: 100%;
  3638. }
  3639. .toolHeng {
  3640. display: flex;
  3641. flex-direction: row;
  3642. flex-wrap: wrap;
  3643. justify-content: flex-start;
  3644. align-items: center;
  3645. width: 100%;
  3646. }
  3647. .toolHeng > div {
  3648. padding-left: 20px;
  3649. }
  3650. .isWidth {
  3651. width: 20%;
  3652. }
  3653. .textTitle {
  3654. display: flex;
  3655. flex-direction: row;
  3656. flex-wrap: nowrap;
  3657. align-items: center;
  3658. }
  3659. .textTitle >>> .el-form-item__label {
  3660. font-size: 22px;
  3661. color: #918f8f;
  3662. }
  3663. .textCss >>> .el-dialog {
  3664. width: 800px !important;
  3665. height: 400px;
  3666. background: #fafafa;
  3667. }
  3668. .textCss >>> .el-dialog__body {
  3669. margin: 55px 8% 0 8%;
  3670. padding: 0 !important;
  3671. }
  3672. .textCss >>> .el-dialog__footer {
  3673. padding-top: 38px;
  3674. }
  3675. .toolsCss >>> .el-dialog__body {
  3676. padding: 20px;
  3677. }
  3678. .lineCss >>> .el-dialog__body {
  3679. display: flex;
  3680. flex-direction: row;
  3681. align-items: center;
  3682. justify-content: center;
  3683. }
  3684. .newNav {
  3685. display: flex;
  3686. flex-direction: row;
  3687. align-items: baseline;
  3688. justify-content: flex-start;
  3689. }
  3690. .navText {
  3691. cursor: pointer;
  3692. margin: 0px 0px 10px 5px;
  3693. width: 112px;
  3694. white-space: nowrap;
  3695. overflow: hidden;
  3696. text-overflow: ellipsis;
  3697. }
  3698. .noVedio {
  3699. display: flex;
  3700. flex-direction: row;
  3701. justify-content: center;
  3702. align-content: center;
  3703. }
  3704. .noNavText {
  3705. cursor: pointer;
  3706. margin: 0px 0px 10px 5px;
  3707. width: 112px;
  3708. }
  3709. .listNoVedio {
  3710. margin-top: 10px;
  3711. }
  3712. .video-player >>> .video-js {
  3713. height: 100%;
  3714. }
  3715. .hangVedioList {
  3716. width: 90% !important;
  3717. height: 150px !important;
  3718. margin: 20px 0 0 30px;
  3719. }
  3720. .hangVedio {
  3721. width: 100%;
  3722. height: 170px !important;
  3723. align-items: flex-start !important;
  3724. }
  3725. .hangHand {
  3726. height: 150px !important;
  3727. }
  3728. .twoChild {
  3729. width: 95%;
  3730. margin: 10px;
  3731. border-radius: 5px;
  3732. background: #f2f2f2;
  3733. display: flex;
  3734. flex-direction: column;
  3735. flex-wrap: nowrap;
  3736. justify-content: flex-start;
  3737. align-items: flex-start;
  3738. transition: all 0.5s;
  3739. overflow: hidden;
  3740. height: 0;
  3741. }
  3742. .twoChild > div:nth-child(1) {
  3743. margin-top: 5px;
  3744. }
  3745. .navChild {
  3746. width: 100%;
  3747. cursor: pointer;
  3748. margin-bottom: 10px;
  3749. }
  3750. .navActive {
  3751. height: auto;
  3752. }
  3753. .navTask {
  3754. display: flex;
  3755. flex-direction: row;
  3756. flex-wrap: nowrap;
  3757. align-items: center;
  3758. align-content: flex-start;
  3759. height: 40px;
  3760. justify-content: flex-start;
  3761. padding: 0 10px;
  3762. width: 100%;
  3763. }
  3764. .navTaskname {
  3765. white-space: nowrap;
  3766. text-overflow: ellipsis;
  3767. overflow: hidden;
  3768. word-break: break-all;
  3769. padding-left: 5px;
  3770. }
  3771. .openTaskActive {
  3772. color: #43a078;
  3773. background: #e8e8e8;
  3774. }
  3775. .iframeName {
  3776. margin: 5px 0;
  3777. border-left: 4px solid #41c4a4;
  3778. padding-left: 4px;
  3779. }
  3780. .toolTitle {
  3781. margin: 0px 0px 20px;
  3782. font-size: 20px;
  3783. font-weight: 500;
  3784. border-left: 4px solid #41c4a4;
  3785. padding-left: 4px;
  3786. }
  3787. .cru_selectBox {
  3788. overflow: auto;
  3789. height: calc(100% - 40px - 21px - 20px);
  3790. }
  3791. .cru_selectBox::-webkit-scrollbar,
  3792. .study_top::-webkit-scrollbar,
  3793. .textContent::-webkit-scrollbar {
  3794. /*滚动条整体样式*/
  3795. width: 6px;
  3796. /*高宽分别对应横竖滚动条的尺寸*/
  3797. height: 6px;
  3798. }
  3799. /*定义滚动条轨道 内阴影+圆角*/
  3800. .cru_selectBox::-webkit-scrollbar-track,
  3801. .study_top::-webkit-scrollbar-track,
  3802. .textContent::-webkit-scrollbar {
  3803. border-radius: 10px;
  3804. background-color: #eee;
  3805. }
  3806. /*定义滑块 内阴影+圆角*/
  3807. .cru_selectBox::-webkit-scrollbar-thumb,
  3808. .study_top::-webkit-scrollbar-thumb,
  3809. .textContent::-webkit-scrollbar-thumb {
  3810. border-radius: 10px;
  3811. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  3812. background-color: rgba(0, 0, 0, 0.1);
  3813. }
  3814. .vedioBox {
  3815. border-radius: 20px;
  3816. background: #fff;
  3817. margin-bottom: 10px;
  3818. }
  3819. .taskBox {
  3820. margin: 15px 0 20px 30px;
  3821. background: #f7f7f7;
  3822. width: 90%;
  3823. border-radius: 5px;
  3824. }
  3825. .vedioTaskBox {
  3826. width: 70%;
  3827. }
  3828. .toolBox {
  3829. padding: 20px 0 0 0;
  3830. display: flex;
  3831. }
  3832. .btnAll {
  3833. position: absolute;
  3834. right: 0;
  3835. display: flex;
  3836. flex-direction: row;
  3837. flex-wrap: nowrap;
  3838. align-items: center;
  3839. }
  3840. .vedioTimeBox {
  3841. display: flex;
  3842. flex-direction: row;
  3843. align-items: center;
  3844. flex-wrap: nowrap;
  3845. position: relative;
  3846. }
  3847. .navBox {
  3848. background: rgb(255, 255, 255);
  3849. margin: 10px 0 0 0;
  3850. height: 530px;
  3851. padding: 5px 1px 0 1px;
  3852. overflow: auto;
  3853. }
  3854. .worksBox {
  3855. padding: 80px 0 15px 10px;
  3856. }
  3857. .worksBTitle {
  3858. font-size: 20px;
  3859. padding-bottom: 15px;
  3860. border-bottom: 1px solid #eeeeee;
  3861. display: flex;
  3862. align-items: center;
  3863. }
  3864. .greenBox {
  3865. width: 5px;
  3866. height: 30px;
  3867. background: #41c4a4;
  3868. margin-right: 5px;
  3869. }
  3870. .worksDetailBox {
  3871. display: flex;
  3872. width: 100%;
  3873. flex-direction: row;
  3874. flex-wrap: wrap;
  3875. align-items: center;
  3876. justify-content: flex-start;
  3877. }
  3878. .works {
  3879. padding: 15px 10px 0 0;
  3880. display: flex;
  3881. flex-direction: column;
  3882. flex-wrap: nowrap;
  3883. align-items: flex-start;
  3884. justify-content: flex-start;
  3885. align-content: center;
  3886. width: 260px;
  3887. height: 140px;
  3888. margin-right: 10px;
  3889. }
  3890. .workImg {
  3891. width: 100%;
  3892. height: calc(100% - 25px);
  3893. }
  3894. .workImg > img {
  3895. width: 100%;
  3896. height: 100%;
  3897. }
  3898. .worksName {
  3899. margin: 5px 0 0 0;
  3900. }
  3901. .noWorksS {
  3902. padding: 15px 0;
  3903. display: flex;
  3904. flex-direction: row;
  3905. flex-wrap: wrap;
  3906. align-items: center;
  3907. justify-content: flex-start;
  3908. }
  3909. .noWorksName {
  3910. background: #efefef;
  3911. width: 90px;
  3912. height: 25px;
  3913. text-align: center;
  3914. line-height: 25px;
  3915. border-radius: 5px;
  3916. margin: 10px 15px 10px 0;
  3917. white-space: nowrap;
  3918. overflow: hidden;
  3919. padding: 5px;
  3920. text-overflow: ellipsis;
  3921. }
  3922. .noWorksName:hover {
  3923. background: #e7e7e7 !important;
  3924. }
  3925. .title {
  3926. background: rgb(72, 72, 72);
  3927. width: 98%;
  3928. height: 45px;
  3929. color: #fff;
  3930. line-height: 45px;
  3931. padding-left: 20px;
  3932. }
  3933. .textBox {
  3934. font-size: 20px;
  3935. margin: 15px 0px 20px 30px;
  3936. width: 90%;
  3937. padding: 30px 0 0 50px;
  3938. }
  3939. .textContent {
  3940. font-size: 18px;
  3941. padding: 30px 0px 0px;
  3942. height: 300px;
  3943. width: 85%;
  3944. overflow: auto;
  3945. line-height: 30px;
  3946. }
  3947. .answerBg {
  3948. background: url("../assets/icon/answerBg.png") no-repeat;
  3949. background-size: 100% 100%;
  3950. width: 100%;
  3951. height: 100%;
  3952. color: #fff;
  3953. text-align: center;
  3954. display: flex;
  3955. flex-direction: column;
  3956. flex-wrap: nowrap;
  3957. align-items: center;
  3958. }
  3959. .answerBg > div:nth-child(1) {
  3960. font-size: 22px;
  3961. padding: 25px 0 10px;
  3962. }
  3963. .answerContent {
  3964. width: 215px;
  3965. height: 60px;
  3966. word-break: break-all;
  3967. text-align: center;
  3968. white-space: nowrap;
  3969. overflow: hidden;
  3970. text-overflow: ellipsis;
  3971. }
  3972. </style>