studyStudent.vue 166 KB

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