study.vue 147 KB

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