studyStudent.vue 169 KB

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