study.vue 149 KB

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