study.vue 154 KB

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