study.vue 163 KB

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