studyStudent.vue 165 KB

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