study.vue 156 KB

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