addCourse.vue 343 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219
  1. <template>
  2. <div class="pb_content">
  3. <div class="pb_content_body" style="position: relative; margin: 0">
  4. <div class="right">
  5. <!-- <div style="display: flex; margin-top: 20px; position: relative"> -->
  6. <div style="width: 100%; height: 100%; overflow: auto" ref="stepBox">
  7. <div class="courseTop">
  8. <div class="stepsNav">
  9. <h3 class="info_title" v-if="steps == 1">填写基本信息</h3>
  10. <h3 class="info_title" v-if="steps == 4">上传课程</h3>
  11. <el-breadcrumb separator-class="el-icon-arrow-right" style="margin-top: 15px">
  12. <el-breadcrumb-item :to="{
  13. path:
  14. '/course?userid=' +
  15. userid +
  16. '&oid=' +
  17. oid +
  18. '&org=' +
  19. org +
  20. '&role=' +
  21. role,
  22. }">课程管理</el-breadcrumb-item>
  23. <el-breadcrumb-item>
  24. <span style="color: rgb(15, 126, 255)">添加课程</span>
  25. </el-breadcrumb-item>
  26. </el-breadcrumb>
  27. </div>
  28. </div>
  29. <div class="rightBox" v-if="this.steps == 1" @mousewheel="scrollChange">
  30. <div class="updateMask" :style="{
  31. height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
  32. }" v-if="cid && userid != courseUserid && role != '1'"></div>
  33. <div class="whiteBg">
  34. <div class="right_title" :class="{ updateTips: cid && userid != courseUserid && role != '1' }">
  35. 课程基本信息
  36. </div>
  37. <div class="basic_box">
  38. <div class="big_box">
  39. <div class="left_first">
  40. <div>
  41. <div>
  42. <div class="bInfo_title" style="margin-bottom: 15px">
  43. <!-- <span style="color: red">*</span> -->
  44. 课程名称
  45. </div>
  46. <div style="display: flex; margin-right: 20px">
  47. <img src="../../../assets/icon/projectName.png" alt style="margin-right: 8px" />
  48. <input type="text" placeholder="请输入课程名称" class="binfo_input" v-model="courseName" />
  49. </div>
  50. </div>
  51. <div class="pType_box all_choose" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  52. <span>类型</span>
  53. <!-- 学科+ 主题+ 未来+ -->
  54. <el-radio-group @change="CourseType2Change" v-model="pTypeCheckName"
  55. style="display: flex; align-items: center">
  56. <div class="all_choose" style="width: 100px" v-for="(item, index) in CourseType2" :key="index">
  57. <el-radio :label="item.name">{{
  58. item.name
  59. }}</el-radio>
  60. </div>
  61. </el-radio-group>
  62. </div>
  63. <div class="both">
  64. <div class="choose">
  65. <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index">
  66. <span v-if="CourseTypeJson[item.id].length > 0 &&
  67. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  68. ? pTypeCheck.indexOf(item.id) != -1
  69. : true)
  70. ">{{ item.name }}</span>
  71. <el-checkbox-group v-model="courseTypeId" v-if="CourseTypeJson[item.id].length > 0 &&
  72. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  73. ? pTypeCheck.indexOf(item.id) != -1
  74. : true)
  75. ">
  76. <el-checkbox v-for="item1 in CourseTypeJson[item.id]" :key="item1.id" :label="item1.id">{{
  77. item1.name }}</el-checkbox>
  78. </el-checkbox-group>
  79. <!-- <div
  80. v-else
  81. style="font-size: 14px; margin-left: -8px"
  82. >
  83. 暂无
  84. </div> -->
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. </div>
  92. </div>
  93. <div class="whiteBg" style="border-radius: 0">
  94. <div class="right_first">
  95. <div class="right_title">上传封面</div>
  96. <div style="
  97. padding: 0 0 50px 20px;
  98. display: flex;
  99. align-items: baseline;
  100. justify-content: flex-start;
  101. margin: 0 auto;
  102. ">
  103. <div>
  104. <div class="bInfo_title" style="margin-top: 0 !important">
  105. 课程封面
  106. </div>
  107. <div class="uploadFm" @click="choosePicVisible = true" v-if="cover.length == 0">
  108. <img src="../../../assets/icon/addPoster.png" alt="" />
  109. </div>
  110. <el-upload :class="{ disUoloadSty: noneBtnImg }" class="upCss" action="#" list-type="picture"
  111. v-loading="uploadLoading1" :http-request="beforeUpload1" ref="upload1"
  112. :on-preview="handlePictureCardPreview" :on-remove="handle_remove1" :show-file-list="true"
  113. :file-list="cover" accept="image/*" :limit="1" :on-exceed="onExceed" v-else>
  114. <i class="el-icon-plus"></i>
  115. </el-upload>
  116. </div>
  117. <div style="
  118. display: flex;
  119. flex-flow: row nowrap;
  120. flex-direction: row;
  121. flex-wrap: wrap;
  122. align-items: baseline;
  123. margin: 0 30px;
  124. ">
  125. <div style="margin: 0 30px 0 0; width: 150px">
  126. <div class="bInfo_title">添加班级</div>
  127. <div class="addPeople" @click="(dialogVisibleClass = true),
  128. (classSearch = ''),
  129. getClass()
  130. ">
  131. 添加班级
  132. </div>
  133. <div v-if="checkboxList2.length" style="
  134. max-width: 100%;
  135. word-break: break-all;
  136. overflow: hidden;
  137. margin-top: 10px;
  138. font-size: 14px;
  139. color: #6e6e6e;
  140. ">
  141. <span :class="{ tcMember: getClassC(tc) }" v-for="(tc, tcIndex) in checkboxList2"
  142. :key="tcIndex">{{ getClassC(tc) }}</span>
  143. </div>
  144. </div>
  145. </div>
  146. </div>
  147. </div>
  148. </div>
  149. <div class="whiteBg" style="border-radius: 0; margin-top: 15px" v-if="false">
  150. <div class="right_title">课程简要描述</div>
  151. <div style="width: 95%; padding: 15px 0px 15px 20px">
  152. <div style="width: 55%">
  153. <textarea rows="8" class="binfo_input" cols v-model="courseText" :placeholder="'1、课程内容说明' +
  154. '\n' +
  155. '2、课程学习知识目标' +
  156. '\n' +
  157. '3、课程学习技能目标'
  158. "></textarea>
  159. </div>
  160. </div>
  161. </div>
  162. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  163. <div class="right_title">
  164. <span>上传课程内容</span>
  165. <el-button type="primary" @click="pasteTask" size="small">智能粘贴</el-button>
  166. </div>
  167. <div style=" padding: 0 0 50px 20px;display: flex;">
  168. <div class="course_left">
  169. <div class="stepsBottom2">
  170. <div class="navTop">辅助导航</div>
  171. <div class="navBottom">
  172. <div class="navTask" :class="{
  173. isNavTask: isClickColor > 0 && isClickColor == tIndex + 1,
  174. }" v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  175. .taskJson" :key="tIndex" @click="goToTask(tIndex)">
  176. <div>任务{{ tIndex + 1 }}</div>
  177. <div>
  178. <el-tooltip effect="light" :content="t.task" placement="top">
  179. <span>{{ t.task }}</span>
  180. </el-tooltip>
  181. </div>
  182. <div class="moveBtn" v-if="unitJson[unitIndex].chapterInfo[0].taskJson.length > 1">
  183. <div class="chapter_upload_up" style="width: 15px; height: 15px"
  184. @click.stop="taskMove(1, tIndex)">
  185. </div>
  186. <div class="chapter_upload_down" style="width: 15px; height: 15px; margin: 2px 0 0"
  187. @click.stop="taskMove(2, tIndex)"></div>
  188. </div>
  189. </div>
  190. </div>
  191. </div>
  192. </div>
  193. <div class="basic_box2">
  194. <div style="margin: 0 0 40px 0; padding: 0 20px 0 20px"
  195. v-for="(item, index) in unitJson[unitIndex].chapterInfo" :key="index">
  196. <div class="taskBorder">
  197. <div class="basic_box" style="
  198. margin: 0;
  199. min-height: 0;
  200. width: 90% !important;
  201. padding-top: 10px !important;
  202. ">
  203. <div style="
  204. display: flex;
  205. margin: 0 0 20px 0;
  206. flex-direction: row;
  207. justify-content: flex-start;
  208. align-items: center;
  209. ">
  210. <div class="lineTitle">学习内容</div>
  211. <div class="line"></div>
  212. </div>
  213. <div>
  214. <div class="add_chapters_box" v-if="item.taskJson[0].chapterData &&
  215. item.taskJson[0].chapterData.length == 0
  216. " style="height: 185px"></div>
  217. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  218. <div class="chapter_upload" v-for="(item1, index1) in item.taskJson[0].chapterData" :key="item1.id"
  219. @click="getChapterData(
  220. $event,
  221. unitIndex,
  222. index,
  223. index1,
  224. item1.type
  225. )
  226. ">
  227. <div class="chapter_upload_t" style="width: 100%"></div>
  228. <div class="chapter_upload_o" style="
  229. position: relative;
  230. display: flex;
  231. align-items: center;
  232. ">
  233. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  234. <div v-if="item1.type == 2" class="chapter_upload_l_i1"></div>
  235. <div v-if="item1.type == 3 ||
  236. item1.type == 12 ||
  237. item1.type == 6 ||
  238. item1.type == 7
  239. " class="chapter_upload_l_i5" style="margin-left: 1px"></div>
  240. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  241. </div>
  242. <div class="chapter_upload_ic" style="
  243. cursor: pointer;
  244. position: absolute;
  245. width: 45px;
  246. right: 0;
  247. top: 0;
  248. ">
  249. <div class="chapter_upload_ic_l"></div>
  250. <div class="chapter_upload_ic_r" style="position: absolute" @click.stop="deleteChapterData(
  251. $event,
  252. unitIndex,
  253. index,
  254. index1,
  255. 0
  256. )
  257. ">
  258. <div></div>
  259. </div>
  260. </div>
  261. <div class="chapter_upload_n">
  262. <input v-if="item1.type == 2 ||
  263. item1.type == 3 ||
  264. item1.type == 12 ||
  265. item1.type == 7
  266. " :placeholder="item1.name" @change="updataVideoT(
  267. $event,
  268. unitIndex,
  269. chapterIndex,
  270. index1
  271. )
  272. " style="
  273. border: none;
  274. outline: none;
  275. width: 80%;
  276. minwidth: 215px;
  277. z-index: 99;
  278. font-size: 14px;
  279. white-space: nowrap;
  280. overflow: hidden;
  281. text-overflow: ellipsis;
  282. " />
  283. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  284. border: none;
  285. outline: none;
  286. width: 80%;
  287. white-space: nowrap;
  288. overflow: hidden;
  289. text-overflow: ellipsis;
  290. " readonly="true" @click="selectAttText(0, index1)" />
  291. <input :placeholder="item1.title ? item1.title : '链接'
  292. " v-if="item1.type == 8" style="
  293. border: none;
  294. outline: none;
  295. width: 80%;
  296. white-space: nowrap;
  297. overflow: hidden;
  298. text-overflow: ellipsis;
  299. " readonly="true" @click="selectLine(0, index1)" />
  300. <div class="chapter_upload_ud" style="z-index: 99">
  301. <div class="chapter_upload_up" @click="upCd(
  302. $event,
  303. unitIndex,
  304. index,
  305. 0,
  306. index1
  307. )
  308. "></div>
  309. <div class="chapter_upload_down" @click="downCd(
  310. $event,
  311. unitIndex,
  312. index,
  313. 0,
  314. index1
  315. )
  316. "></div>
  317. </div>
  318. </div>
  319. </div>
  320. </div>
  321. </div>
  322. </div>
  323. <div class="add_info_box">
  324. <button class="info_btn" @click="addImg($event)">
  325. 添加视频
  326. <!-- capture="camera" -->
  327. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  328. v-if="inputShow" @change="beforeUpload2($event, unitIndex, 2, 0)
  329. " />
  330. </button>
  331. <button class="info_btn" @click="addImg($event)">
  332. 添加文档
  333. <input type="file"
  334. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  335. style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 3, 0)
  336. " />
  337. </button>
  338. <button class="info_btn" @click="addAttText(0)">
  339. 添加图文
  340. </button>
  341. <button class="info_btn" @click="openLine(0)">
  342. 添加链接
  343. </button>
  344. <button class="info_btn" @click="pasteLine(0)">
  345. 嵌入代码
  346. </button>
  347. <button class="info_btn" @click="openSource(0)">
  348. 添加资源
  349. </button>
  350. <button class="info_btn" @click="addImg($event)">
  351. 其他附件
  352. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  353. " />
  354. </button>
  355. </div>
  356. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  357. 0
  358. ].proVisible
  359. " class="mask">
  360. <div class="progressBox">
  361. <!-- <div id="closePro" class="closeCss">
  362. <img src="../../../../assets/icon/close.png" alt />
  363. </div> -->
  364. <div class="lbox">
  365. <img src="../../../assets/loading.gif" />上传中,请稍后
  366. </div>
  367. <div style="margin-bottom: 10px">
  368. <span>{{
  369. unitJson[unitIndex].chapterInfo[0].taskJson[
  370. 0
  371. ].isFinishSize
  372. }}M</span>
  373. /
  374. <span>{{
  375. unitJson[unitIndex].chapterInfo[0].taskJson[
  376. 0
  377. ].isAllSize
  378. }}M</span>
  379. </div>
  380. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  381. 0
  382. ].progress
  383. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  384. 0
  385. ].progress
  386. : 0
  387. " style="width: 80%"></el-progress>
  388. </div>
  389. </div>
  390. </div>
  391. </div>
  392. <div class="taskBorder" :style="{ minHeight: unitJson[unitIndex].easy && 'unset' }"
  393. v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  394. <div v-if="unitJson[unitIndex].easy != 1">
  395. <div :style="{
  396. marginBottom:
  397. unitJson[unitIndex].easy == 3 ||
  398. (unitJson[unitIndex].easy == 5 &&
  399. itemTask.taskType == 1)
  400. ? '75px'
  401. : '0',
  402. }">
  403. <div style="font-size: 22px; color: #8e8e8e" :id="'task' + itemTaskIndex">
  404. 任务{{ itemTaskIndex + 1 }}
  405. </div>
  406. <div class="chapter_contentbox" style="
  407. flex-direction: row;
  408. justify-content: flex-start;
  409. align-items: center;
  410. ">
  411. <div style="
  412. border-left: 6px solid #5699e8;
  413. height: 20px;
  414. padding-left: 10px;
  415. line-height: 22px;
  416. ">
  417. 任务名称
  418. </div>
  419. <div>
  420. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px"
  421. v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  422. itemTaskIndex
  423. ].task
  424. " />
  425. </div>
  426. <div class="remove" v-if="item.taskJson.length > 1" @click="deleteTask(itemTaskIndex)"
  427. style="position: absolute; right: 55px">
  428. </div>
  429. </div>
  430. </div>
  431. </div>
  432. <div style="padding: 25px 0 10px 30px;">
  433. <!-- <editor-bar style="width: 90% !important; margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  434. itemTaskIndex
  435. ].taskDetail
  436. " @change="change"></editor-bar> -->
  437. <textarea
  438. rows="2"
  439. class="binfo_input"
  440. placeholder="请输入任务描述"
  441. cols
  442. style="width: 90% !important; resize:none"
  443. v-model="
  444. unitJson[unitIndex].chapterInfo[0].taskJson[
  445. itemTaskIndex
  446. ].taskDetail
  447. "
  448. ></textarea>
  449. </div>
  450. </div>
  451. <div class="addTaskBorder" @click="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  452. <div>
  453. <img src="../../../assets/icon/addHw.png" alt />
  454. <span>添加任务</span>
  455. </div>
  456. </div>
  457. </div>
  458. </div>
  459. </div>
  460. </div>
  461. </div>
  462. <div class="rightBox" v-if="this.steps == 2">
  463. <div class="basic_box" style="padding: 20px 30px 0px !important; box-sizing: border-box">
  464. <div class="right_title" style="border: none; margin: 0; padding: 0">
  465. 请选择合适的课程模板
  466. </div>
  467. <div class="wordbox">
  468. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkTemplate(aa)">
  469. <div class="wordPic">
  470. <img src="../../../assets/icon/wordMub.png" alt />
  471. </div>
  472. <div style="
  473. margin-top: 10px;
  474. line-height: 19px;
  475. overflow: hidden;
  476. text-overflow: ellipsis;
  477. white-space: nowrap;
  478. padding: 0 20px;
  479. ">
  480. {{ aa.title }}
  481. </div>
  482. </div>
  483. <div class="wordTeacher" @click="checkTemplate2()">
  484. <div class="wordPic">
  485. <img src="../../../assets/icon/wordMub.png" alt />
  486. </div>
  487. <div style="
  488. margin-top: 10px;
  489. line-height: 19px;
  490. overflow: hidden;
  491. text-overflow: ellipsis;
  492. white-space: nowrap;
  493. padding: 0 20px;
  494. ">
  495. 任务模式
  496. </div>
  497. </div>
  498. <div class="wordTeacher" @click="checkTemplate3()">
  499. <div class="wordPic">
  500. <img src="../../../assets/icon/wordMub.png" alt />
  501. </div>
  502. <div style="
  503. margin-top: 10px;
  504. line-height: 19px;
  505. overflow: hidden;
  506. text-overflow: ellipsis;
  507. white-space: nowrap;
  508. padding: 0 20px;
  509. ">
  510. 简易模式
  511. </div>
  512. </div>
  513. <div class="wordTeacher" @click="pasteStage()">
  514. <div class="wordPic">
  515. <img src="../../../assets/icon/wordMub.png" alt />
  516. </div>
  517. <div style="
  518. margin-top: 10px;
  519. line-height: 19px;
  520. overflow: hidden;
  521. text-overflow: ellipsis;
  522. white-space: nowrap;
  523. padding: 0 20px;
  524. ">
  525. 智能粘贴模式
  526. </div>
  527. </div>
  528. <!-- <div class="wordTeacher" @click="checkTemplate4()">
  529. <div class="wordPic">
  530. <img src="../../../assets/icon/wordMub.png" alt />
  531. </div>
  532. <div style="
  533. margin-top: 10px;
  534. line-height: 19px;
  535. overflow: hidden;
  536. text-overflow: ellipsis;
  537. white-space: nowrap;
  538. padding: 0 20px;
  539. ">
  540. 未来小学课程设计
  541. </div>
  542. </div> -->
  543. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  544. <div class="wordPic">
  545. <img src="../../../assets/icon/wordMub.png" alt />
  546. </div>
  547. <div style="
  548. margin-top: 10px;
  549. line-height: 19px;
  550. overflow: hidden;
  551. text-overflow: ellipsis;
  552. white-space: nowrap;
  553. padding: 0 20px;
  554. ">
  555. 我的课程
  556. </div>
  557. </div> -->
  558. </div>
  559. </div>
  560. </div>
  561. <div class="rightBox" v-if="this.steps == 3" ref="rightboxR">
  562. <div class="basic_box">
  563. <div style="
  564. display: flex;
  565. flex-direction: row;
  566. align-items: center;
  567. position: sticky;
  568. top: 0;
  569. background: #fff;
  570. z-index: 99;
  571. width: 100%;
  572. padding: 0 20px 0 20px;
  573. box-sizing: border-box;
  574. ">
  575. <div class="cru_selectBox">
  576. <div v-for="(item, index) in unitJson" :key="index" class="cru_select"
  577. :class="unitIndex == index ? 'cru_selected' : ''" @click="unitSet(index)">
  578. <!-- item.dyName ? item.dyName : -->
  579. {{
  580. "第" + (index + 1) + "阶段"
  581. }}
  582. </div>
  583. <img src="../../../assets/line.png" class="cru_line" :style="{
  584. left: offsetLetfPx + 'px',
  585. }" />
  586. </div>
  587. <div class="addStageImg" @click="addunit()" v-if="!(unitJson[unitJson.length - 1].easy == 4) &&
  588. !(unitJson[unitJson.length - 1].easy == 6)
  589. ">
  590. <img src="../../../assets/icon/add.png" alt />
  591. </div>
  592. </div>
  593. <div style="margin: 0 0 40px 0; padding: 0 20px 0 20px"
  594. v-for="(item, index) in unitJson[unitIndex].chapterInfo" :key="index">
  595. <div>
  596. <div class="chapter_contentbox">
  597. <div>第{{ unitIndex + 1 }}阶段</div>
  598. <div>
  599. <input type="text" placeholder="阶段标题" class="binfo_input" v-model="unitJson[unitIndex].dyName" />
  600. </div>
  601. <div v-if="unitJson.length > 1 &&
  602. !(unitJson[unitJson.length - 1].easy == 4) &&
  603. !(unitJson[unitJson.length - 1].easy == 6)
  604. " @click="deleteUnit(unitIndex)"></div>
  605. </div>
  606. </div>
  607. <div v-if="!unitJson[unitIndex].easy" style="
  608. margin: 50px 0px 10px;
  609. font-size: 1.5em;
  610. font-weight: 700;
  611. color: #0f7eff;
  612. ">
  613. 添加任务
  614. </div>
  615. <div class="taskBorder" :style="{ minHeight: unitJson[unitIndex].easy && 'unset' }"
  616. v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  617. <div v-if="unitJson[unitIndex].easy != 1">
  618. <div :style="{
  619. marginBottom:
  620. unitJson[unitIndex].easy == 3 ||
  621. (unitJson[unitIndex].easy == 5 &&
  622. itemTask.taskType == 1)
  623. ? '75px'
  624. : '0',
  625. }">
  626. <div style="font-size: 22px; color: #8e8e8e" :id="'task' + itemTaskIndex">
  627. 任务{{ itemTaskIndex + 1 }}
  628. </div>
  629. <div class="chapter_contentbox" style="
  630. flex-direction: row;
  631. justify-content: flex-start;
  632. align-items: center;
  633. ">
  634. <div style="
  635. border-left: 6px solid #5699e8;
  636. height: 20px;
  637. padding-left: 10px;
  638. line-height: 22px;
  639. ">
  640. 任务名称
  641. </div>
  642. <div>
  643. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  644. itemTaskIndex
  645. ].task
  646. " />
  647. </div>
  648. <div class="remove" v-if="item.taskJson.length > 1 &&
  649. (!unitJson[unitIndex].easy ||
  650. unitJson[unitIndex].easy == 6)
  651. " @click="deleteTask(itemTaskIndex)" style="position: absolute; right: 55px"></div>
  652. </div>
  653. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1" style="
  654. display: flex;
  655. margin: 0 0 20px 0;
  656. flex-direction: row;
  657. justify-content: flex-start;
  658. align-items: center;
  659. width: 70.5% !important;
  660. padding-top: 30px;
  661. ">
  662. <div class="lineTitle">任务描述</div>
  663. <div class="line"></div>
  664. </div>
  665. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1">
  666. <editor-bar style="width: 90% !important; margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  667. itemTaskIndex
  668. ].taskDetail
  669. " @change="change"></editor-bar>
  670. <!-- <textarea
  671. rows="6"
  672. class="binfo_input"
  673. placeholder="请输入任务描述"
  674. cols
  675. style="width: 70.5% !important; height: 120px"
  676. v-model="
  677. unitJson[unitIndex].chapterInfo[0].taskJson[
  678. itemTaskIndex
  679. ].taskDetail
  680. "
  681. ></textarea>-->
  682. </div>
  683. </div>
  684. </div>
  685. <div v-if="!unitJson[unitIndex].easy ||
  686. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  687. " class="basic_box" style="
  688. margin: 0;
  689. min-height: 0;
  690. width: 90% !important;
  691. padding-top: 10px !important;
  692. ">
  693. <div style="
  694. display: flex;
  695. margin: 0 0 20px 0;
  696. flex-direction: row;
  697. justify-content: flex-start;
  698. align-items: center;
  699. ">
  700. <div class="lineTitle">学习内容</div>
  701. <div class="line"></div>
  702. </div>
  703. <div>
  704. <div class="add_chapters_box" v-if="itemTask.chapterData &&
  705. itemTask.chapterData.length == 0
  706. " style="height: 185px"></div>
  707. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  708. <div class="chapter_upload" v-for="(item1, index1) in itemTask.chapterData" :key="item1.id"
  709. @click="getChapterData(
  710. $event,
  711. unitIndex,
  712. index,
  713. index1,
  714. item1.type
  715. )
  716. ">
  717. <div class="chapter_upload_t" style="width: 100%"></div>
  718. <div class="chapter_upload_o" style="
  719. position: relative;
  720. display: flex;
  721. align-items: center;
  722. ">
  723. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  724. <div v-if="item1.type == 2" class="chapter_upload_l_i1"></div>
  725. <div v-if="item1.type == 3 ||
  726. item1.type == 12 ||
  727. item1.type == 6 ||
  728. item1.type == 7
  729. " class="chapter_upload_l_i5" style="margin-left: 1px"></div>
  730. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  731. </div>
  732. <div class="chapter_upload_ic" style="
  733. cursor: pointer;
  734. position: absolute;
  735. width: 45px;
  736. right: 0;
  737. top: 0;
  738. ">
  739. <div class="chapter_upload_ic_l"></div>
  740. <div class="chapter_upload_ic_r" style="position: absolute" @click.stop="deleteChapterData(
  741. $event,
  742. unitIndex,
  743. index,
  744. index1,
  745. itemTaskIndex
  746. )
  747. ">
  748. <div></div>
  749. </div>
  750. </div>
  751. <div class="chapter_upload_n">
  752. <input v-if="item1.type == 2 ||
  753. item1.type == 3 ||
  754. item1.type == 12 ||
  755. item1.type == 7
  756. " :placeholder="item1.name" @change="updataVideoT(
  757. $event,
  758. unitIndex,
  759. chapterIndex,
  760. index1
  761. )
  762. " style="
  763. border: none;
  764. outline: none;
  765. width: 80%;
  766. minwidth: 215px;
  767. z-index: 99;
  768. font-size: 14px;
  769. white-space: nowrap;
  770. overflow: hidden;
  771. text-overflow: ellipsis;
  772. " />
  773. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  774. border: none;
  775. outline: none;
  776. width: 80%;
  777. white-space: nowrap;
  778. overflow: hidden;
  779. text-overflow: ellipsis;
  780. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  781. <input :placeholder="item1.title ? item1.title : '链接'
  782. " v-if="item1.type == 8" style="
  783. border: none;
  784. outline: none;
  785. width: 80%;
  786. white-space: nowrap;
  787. overflow: hidden;
  788. text-overflow: ellipsis;
  789. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  790. <div class="chapter_upload_ud" style="z-index: 99">
  791. <div class="chapter_upload_up" @click="upCd(
  792. $event,
  793. unitIndex,
  794. index,
  795. itemTaskIndex,
  796. index1
  797. )
  798. "></div>
  799. <div class="chapter_upload_down" @click="downCd(
  800. $event,
  801. unitIndex,
  802. index,
  803. itemTaskIndex,
  804. index1
  805. )
  806. "></div>
  807. </div>
  808. </div>
  809. </div>
  810. </div>
  811. </div>
  812. </div>
  813. <div class="add_info_box">
  814. <button class="info_btn" @click="addImg($event)">
  815. 添加视频
  816. <!-- capture="camera" -->
  817. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  818. v-if="inputShow" @change="beforeUpload2($event, unitIndex, 2, itemTaskIndex)
  819. " />
  820. </button>
  821. <button class="info_btn" @click="addImg($event)">
  822. 添加文档
  823. <input type="file"
  824. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  825. style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 3, itemTaskIndex)
  826. " />
  827. </button>
  828. <button class="info_btn" @click="addAttText(itemTaskIndex)">
  829. 添加图文
  830. </button>
  831. <button class="info_btn" @click="openLine(itemTaskIndex)">
  832. 添加链接
  833. </button>
  834. <button class="info_btn" @click="pasteLine(itemTaskIndex)">
  835. 嵌入代码
  836. </button>
  837. <button class="info_btn" @click="openSource(itemTaskIndex)">
  838. 添加资源
  839. </button>
  840. <button class="info_btn" @click="addImg($event)">
  841. 其他附件
  842. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  843. " />
  844. </button>
  845. </div>
  846. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  847. itemTaskIndex
  848. ].proVisible
  849. " class="mask">
  850. <div class="progressBox">
  851. <!-- <div id="closePro" class="closeCss">
  852. <img src="../../../../assets/icon/close.png" alt />
  853. </div> -->
  854. <div class="lbox">
  855. <img src="../../../assets/loading.gif" />上传中,请稍后
  856. </div>
  857. <div style="margin-bottom: 10px">
  858. <span>{{
  859. unitJson[unitIndex].chapterInfo[0].taskJson[
  860. itemTaskIndex
  861. ].isFinishSize
  862. }}M</span>
  863. /
  864. <span>{{
  865. unitJson[unitIndex].chapterInfo[0].taskJson[
  866. itemTaskIndex
  867. ].isAllSize
  868. }}M</span>
  869. </div>
  870. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  871. itemTaskIndex
  872. ].progress
  873. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  874. itemTaskIndex
  875. ].progress
  876. : 0
  877. " style="width: 80%"></el-progress>
  878. </div>
  879. </div>
  880. </div>
  881. <div v-if="unitJson[unitIndex].easy == 1 ||
  882. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  883. " class="basic_box" style="
  884. margin: 0 auto;
  885. min-height: 0;
  886. width: 95% !important;
  887. padding: 20px 10px 10px;
  888. ">
  889. <div>
  890. <div class="add_chapters_box" v-if="itemTask.chapterData &&
  891. itemTask.chapterData.length == 0
  892. " style="height: 185px"></div>
  893. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  894. <div v-for="(item1, index1) in itemTask.chapterData" :key="item1.id">
  895. <div class="chapter_upload" @click="getChapterData(
  896. $event,
  897. unitIndex,
  898. index,
  899. index1,
  900. item1.type
  901. )
  902. ">
  903. <div class="chapter_upload_t" style="width: 100%"></div>
  904. <div class="chapter_upload_o" style="
  905. position: relative;
  906. display: flex;
  907. align-items: center;
  908. ">
  909. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  910. <div v-if="item1.type == 2" class="chapter_upload_l_i1"></div>
  911. <div v-if="item1.type == 3 ||
  912. item1.type == 6 ||
  913. item1.type == 7
  914. " class="chapter_upload_l_i5" style="margin-left: 1px"></div>
  915. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  916. </div>
  917. <div class="chapter_upload_ic" style="
  918. cursor: pointer;
  919. position: absolute;
  920. width: 45px;
  921. right: 0;
  922. top: 0;
  923. ">
  924. <div class="chapter_upload_ic_l"></div>
  925. <div class="chapter_upload_ic_r" style="position: absolute" @click.stop="deleteChapterData(
  926. $event,
  927. unitIndex,
  928. index,
  929. index1,
  930. itemTaskIndex
  931. )
  932. ">
  933. <div></div>
  934. </div>
  935. </div>
  936. <div class="chapter_upload_n">
  937. <span style="
  938. font-size: 14px;
  939. color: rgb(109, 109, 109);
  940. height: 14px;
  941. line-height: 12px;
  942. " v-if="item1.type == 2 ||
  943. item1.type == 3 ||
  944. item1.type == 7
  945. ">{{ item1.text }}-</span>
  946. <input v-if="item1.type == 2 ||
  947. item1.type == 3 ||
  948. item1.type == 7
  949. " :placeholder="item1.name" @change="updataVideoT(
  950. $event,
  951. unitIndex,
  952. chapterIndex,
  953. index1
  954. )
  955. " style="
  956. border: none;
  957. outline: none;
  958. width: 80%;
  959. minwidth: 215px;
  960. z-index: 99;
  961. font-size: 14px;
  962. white-space: nowrap;
  963. overflow: hidden;
  964. text-overflow: ellipsis;
  965. " />
  966. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  967. border: none;
  968. outline: none;
  969. width: 80%;
  970. white-space: nowrap;
  971. overflow: hidden;
  972. text-overflow: ellipsis;
  973. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  974. <input :placeholder="item1.title ? item1.title : '链接'
  975. " v-if="item1.type == 8" style="
  976. border: none;
  977. outline: none;
  978. width: 80%;
  979. white-space: nowrap;
  980. overflow: hidden;
  981. text-overflow: ellipsis;
  982. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  983. <div class="chapter_upload_ud" style="z-index: 99">
  984. <div class="chapter_upload_up" @click="upCd(
  985. $event,
  986. unitIndex,
  987. index,
  988. itemTaskIndex,
  989. index1
  990. )
  991. "></div>
  992. <div class="chapter_upload_down" @click="downCd(
  993. $event,
  994. unitIndex,
  995. index,
  996. itemTaskIndex,
  997. index1
  998. )
  999. "></div>
  1000. </div>
  1001. </div>
  1002. </div>
  1003. </div>
  1004. </div>
  1005. </div>
  1006. </div>
  1007. <div class="add_info_box" style="margin: 10px 0 0">
  1008. <button class="info_btn" @click="addImg($event)">
  1009. <span style="color: red">*</span>
  1010. 教学设计
  1011. <input type="file"
  1012. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1013. style="display: none" v-if="inputShow" @change="beforeUpload3(
  1014. $event,
  1015. unitIndex,
  1016. 3,
  1017. itemTaskIndex,
  1018. '教学设计'
  1019. )
  1020. " />
  1021. </button>
  1022. <button class="info_btn" @click="addImg($event)">
  1023. <span style="color: red">*</span>
  1024. 教学课件
  1025. <input type="file"
  1026. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1027. style="display: none" v-if="inputShow" @change="beforeUpload3(
  1028. $event,
  1029. unitIndex,
  1030. 3,
  1031. itemTaskIndex,
  1032. '教学课件'
  1033. )
  1034. " />
  1035. </button>
  1036. <button class="info_btn" @click="addImg($event)">
  1037. 教学视频
  1038. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  1039. v-if="inputShow" @change="beforeUpload3(
  1040. $event,
  1041. unitIndex,
  1042. 2,
  1043. itemTaskIndex,
  1044. '教学视频'
  1045. )
  1046. " />
  1047. </button>
  1048. <button class="info_btn" @click="addImg($event)">
  1049. 教学音频
  1050. <input type="file" accept="audio/*" style="display: none" v-if="inputShow" @change="beforeUpload3(
  1051. $event,
  1052. unitIndex,
  1053. 2,
  1054. itemTaskIndex,
  1055. '教学音频'
  1056. )
  1057. " />
  1058. </button>
  1059. <button class="info_btn" @click="addImg($event)">
  1060. 学习单
  1061. <input type="file"
  1062. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1063. style="display: none" v-if="inputShow" @change="beforeUpload3(
  1064. $event,
  1065. unitIndex,
  1066. 3,
  1067. itemTaskIndex,
  1068. '学习单'
  1069. )
  1070. " />
  1071. </button>
  1072. </div>
  1073. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  1074. itemTaskIndex
  1075. ].proVisible
  1076. " class="mask">
  1077. <div class="progressBox">
  1078. <!-- <div id="closePro" class="closeCss">
  1079. <img src="../../../../assets/icon/close.png" alt />
  1080. </div> -->
  1081. <div class="lbox">
  1082. <img src="../../../assets/loading.gif" />上传中,请稍后
  1083. </div>
  1084. <div style="margin-bottom: 10px">
  1085. <span>{{
  1086. unitJson[unitIndex].chapterInfo[0].taskJson[
  1087. itemTaskIndex
  1088. ].isFinishSize
  1089. }}M</span>
  1090. /
  1091. <span>{{
  1092. unitJson[unitIndex].chapterInfo[0].taskJson[
  1093. itemTaskIndex
  1094. ].isAllSize
  1095. }}M</span>
  1096. </div>
  1097. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  1098. itemTaskIndex
  1099. ].progress
  1100. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  1101. itemTaskIndex
  1102. ].progress
  1103. : 0
  1104. " style="width: 80%"></el-progress>
  1105. </div>
  1106. </div>
  1107. </div>
  1108. <div v-if="unitJson[unitIndex].easy != 3 &&
  1109. !(unitJson[unitIndex].easy == 5 && itemTask.taskType == 1)
  1110. " style="
  1111. flex-direction: row;
  1112. justify-content: flex-start;
  1113. align-items: center;
  1114. padding: 0 0 0 30px;
  1115. paddint-top: 10px !important;
  1116. ">
  1117. <div style="
  1118. display: flex;
  1119. flex-direction: row;
  1120. align-items: center;
  1121. margin-bottom: 20px;
  1122. ">
  1123. <div class="lineTitle">
  1124. {{
  1125. !unitJson[unitIndex].easy ||
  1126. unitJson[unitIndex].easy == 6 ||
  1127. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  1128. ? "练习内容"
  1129. : "评价内容"
  1130. }}
  1131. </div>
  1132. <div class="line" style="width: 90%"></div>
  1133. </div>
  1134. </div>
  1135. <div v-if="unitJson[unitIndex].easy == 6 || !unitJson[unitIndex].easy
  1136. " class="toolChoose" style="padding: 0 0 0 30px">
  1137. <div class="tools">
  1138. <div class="leftTools" style="
  1139. width: 95%;
  1140. padding: 0 0 15px 0;
  1141. border-bottom: 1px solid #efefef;
  1142. margin-bottom: 15px;
  1143. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  1144. <div>
  1145. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input"
  1146. style="margin: 0 0 20px 0; width: 71.5% !important" v-model="itemTool.toolDetail"></textarea>
  1147. </div>
  1148. <div style="
  1149. display: flex;
  1150. flex-direction: row;
  1151. align-items: baseline;
  1152. flex-wrap: nowrap;
  1153. justify-content: flex-start;
  1154. position: relative;
  1155. ">
  1156. <div style="margin-right: 20px; font-weight: bold">
  1157. 步骤 {{ toolIndex + 1 }} :
  1158. </div>
  1159. <div class="chooseWho">
  1160. <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
  1161. " @click="(itemTool.toolType = 0), $forceUpdate()">
  1162. 互动类
  1163. </div>
  1164. <div :class="itemTool.toolType == 1 ? 'isChooseActive' : ''
  1165. " @click="(itemTool.toolType = 1), $forceUpdate()">
  1166. 思维类
  1167. </div>
  1168. <div :class="itemTool.toolType == 2 ? 'isChooseActive' : ''
  1169. " @click="(itemTool.toolType = 2), $forceUpdate()">
  1170. 评价类
  1171. </div>
  1172. <div :class="itemTool.toolType == 3 ? 'isChooseActive' : ''
  1173. " @click="(itemTool.toolType = 3), $forceUpdate()">
  1174. 编程类
  1175. </div>
  1176. <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
  1177. " @click="(itemTool.toolType = 5), $forceUpdate()">
  1178. 学科类
  1179. </div>
  1180. <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  1181. " @click="(itemTool.toolType = 4), $forceUpdate()">
  1182. 其他
  1183. </div>
  1184. </div>
  1185. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  1186. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 55px"></div>
  1187. </div>
  1188. <div style="min-height: 163px">
  1189. <div class="toolSort" v-if="itemTool.toolType == 0">
  1190. <!-- <div class="tool">
  1191. <div
  1192. class="whiteBIcon"
  1193. @click="addTools(8, itemTaskIndex, toolIndex)"
  1194. >
  1195. <img src="../../../assets/icon/secondToolList/library.png" alt />
  1196. <div style="margin: 5px 0">素材库</div>
  1197. </div>
  1198. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  1199. <img
  1200. src="../../../assets/icon/checkNo.png"
  1201. alt
  1202. v-if="itemTool.tool.indexOf(8) == -1"
  1203. />
  1204. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  1205. alt /><span>已选择</span></div>
  1206. </div>
  1207. </div>-->
  1208. <!-- <div class="tool">
  1209. <div
  1210. class="whiteBIcon"
  1211. @click="addTools(17, itemTaskIndex, toolIndex)"
  1212. >
  1213. <img
  1214. src="../../../assets/icon/secondToolList/library.png"
  1215. alt
  1216. />
  1217. <div style="margin: 5px 0">学习资料</div>
  1218. </div>
  1219. <div
  1220. class="check"
  1221. @click="addTools(17, itemTaskIndex, toolIndex)"
  1222. >
  1223. <img
  1224. src="../../../assets/icon/checkNo.png"
  1225. alt
  1226. v-if="itemTool.tool.indexOf(17) == -1"
  1227. />
  1228. <img
  1229. src="../../../assets/icon/checkedIs.png"
  1230. alt
  1231. v-else
  1232. />
  1233. </div>10
  1234. </div> -->
  1235. <div class="tool">
  1236. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 10, toolIndex)">
  1237. <img src="../../../assets/icon/thirdToolList/time.png" alt />
  1238. <div style="margin: 5px 0">倒计时</div>
  1239. </div>
  1240. <div class="check" @click="addTools(10, itemTaskIndex, toolIndex)">
  1241. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(10) == -1" />
  1242. <div class="checkDiv" v-else>
  1243. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1244. </div>
  1245. </div>
  1246. </div>
  1247. <div class="tool">
  1248. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 49, toolIndex)">
  1249. <img src="../../../assets/icon/fourthToolList/group.png" alt />
  1250. <div style="margin: 5px 0">学生分组</div>
  1251. </div>
  1252. <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  1253. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(49) == -1" />
  1254. <div class="checkDiv" v-else>
  1255. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1256. </div>
  1257. </div>
  1258. </div>
  1259. <div class="tool">
  1260. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 62, toolIndex)">
  1261. <img src="../../../assets/icon/fourthToolList/interVideo.png" alt />
  1262. <div style="margin: 5px 0">交互视频</div>
  1263. </div>
  1264. <div class="check" @click="addTools(62, itemTaskIndex, toolIndex)">
  1265. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(62) == -1" />
  1266. <div class="checkDiv" v-else>
  1267. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1268. </div>
  1269. </div>
  1270. </div>
  1271. </div>
  1272. <div class="toolSort" v-if="itemTool.toolType == 1">
  1273. <div class="tool">
  1274. <div class="whiteBIcon" @click="addTools(7, itemTaskIndex, toolIndex)">
  1275. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  1276. <div style="margin: 5px 0">思维网格</div>
  1277. </div>
  1278. <div class="check" @click="addTools(7, itemTaskIndex, toolIndex)">
  1279. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(7) == -1" />
  1280. <div class="checkDiv" v-else>
  1281. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1282. </div>
  1283. </div>
  1284. </div>
  1285. <div class="tool">
  1286. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 1, toolIndex)">
  1287. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  1288. <div style="margin: 5px 0">电子白板</div>
  1289. </div>
  1290. <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  1291. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(1) == -1" />
  1292. <div class="checkDiv" v-else>
  1293. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1294. </div>
  1295. </div>
  1296. </div>
  1297. <!-- <div class="tool">
  1298. <div
  1299. class="whiteBIcon"
  1300. @click="addTools(2, itemTaskIndex, toolIndex)"
  1301. >
  1302. <img
  1303. src="../../../assets/icon/secondToolList/note.png"
  1304. alt
  1305. />
  1306. <div style="margin: 5px 0">便签</div>
  1307. </div>
  1308. <div
  1309. class="check"
  1310. @click="addTools(2, itemTaskIndex, toolIndex)"
  1311. >
  1312. <img
  1313. src="../../../assets/icon/checkNo.png"
  1314. alt
  1315. v-if="itemTool.tool.indexOf(2) == -1"
  1316. />
  1317. <div class="checkDiv" v-else>
  1318. <img
  1319. src="../../../assets/icon/checkedIs.png"
  1320. alt
  1321. /><span>已选择</span>
  1322. </div>
  1323. </div>
  1324. </div> -->
  1325. <!-- <div class="tool">
  1326. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  1327. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  1328. <div style="margin: 5px 0">协同文档</div>
  1329. </div>
  1330. <div
  1331. class="check"
  1332. @click="addTools(6, itemTaskIndex, toolIndex)"
  1333. >
  1334. <img
  1335. src="../../../assets/icon/checkNo.png"
  1336. alt
  1337. v-if="itemTool.tool.indexOf(6) == -1"
  1338. />
  1339. <div class="checkDiv" v-else>
  1340. <img
  1341. src="../../../assets/icon/checkedIs.png"
  1342. alt
  1343. /><span>已选择</span>
  1344. </div>
  1345. </div>
  1346. </div> -->
  1347. <div class="tool">
  1348. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 52, toolIndex)">
  1349. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  1350. <div style="margin: 5px 0">文档</div>
  1351. </div>
  1352. <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  1353. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(52) == -1" />
  1354. <div class="checkDiv" v-else>
  1355. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1356. </div>
  1357. </div>
  1358. </div>
  1359. <div class="tool">
  1360. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 3, toolIndex)">
  1361. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  1362. <div style="margin: 5px 0">思维导图</div>
  1363. </div>
  1364. <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  1365. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(3) == -1" />
  1366. <div class="checkDiv" v-else>
  1367. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1368. </div>
  1369. </div>
  1370. </div>
  1371. <div class="tool">
  1372. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
  1373. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  1374. <div style="margin: 5px 0">表格</div>
  1375. </div>
  1376. <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  1377. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(48) == -1" />
  1378. <div class="checkDiv" v-else>
  1379. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1380. </div>
  1381. </div>
  1382. </div>
  1383. </div>
  1384. <div class="toolSort" v-if="itemTool.toolType == 2">
  1385. <!-- <div class="tool">
  1386. <div
  1387. class="whiteBIcon"
  1388. @click="addTools(5, itemTaskIndex, toolIndex)"
  1389. >
  1390. <img
  1391. src="../../../assets/icon/thirdToolList/score.png"
  1392. alt
  1393. />
  1394. <div style="margin: 5px 0">量规评分</div>
  1395. </div>
  1396. <div
  1397. class="check"
  1398. @click="addTools(5, itemTaskIndex, toolIndex)"
  1399. >
  1400. <img
  1401. src="../../../assets/icon/checkNo.png"
  1402. alt
  1403. v-if="itemTool.tool.indexOf(5) == -1"
  1404. />
  1405. <img
  1406. src="../../../assets/icon/checkedIs.png"
  1407. alt
  1408. v-else
  1409. />
  1410. </div>
  1411. </div>-->
  1412. <div class="tool">
  1413. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
  1414. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  1415. <div style="margin: 5px 0">问卷调查</div>
  1416. </div>
  1417. <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  1418. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(4) == -1" />
  1419. <div class="checkDiv" v-else>
  1420. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1421. </div>
  1422. </div>
  1423. </div>
  1424. <div class="tool">
  1425. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  1426. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  1427. <div style="margin: 5px 0">选择题</div>
  1428. </div>
  1429. <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  1430. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(45) == -1" />
  1431. <div class="checkDiv" v-else>
  1432. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1433. </div>
  1434. </div>
  1435. </div>
  1436. <div class="tool">
  1437. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 15, toolIndex)">
  1438. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  1439. <div style="margin: 5px 0">问答工具</div>
  1440. </div>
  1441. <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  1442. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(15) == -1" />
  1443. <div class="checkDiv" v-else>
  1444. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1445. </div>
  1446. </div>
  1447. </div>
  1448. <div class="tool">
  1449. <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
  1450. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  1451. <div style="margin: 5px 0">作业提交</div>
  1452. </div>
  1453. <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  1454. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(16) == -1" />
  1455. <div class="checkDiv" v-else>
  1456. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1457. </div>
  1458. </div>
  1459. </div>
  1460. <div class="tool">
  1461. <div class="whiteBIcon" @click="addTools(50, itemTaskIndex, toolIndex)">
  1462. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  1463. <div style="margin: 5px 0">批量上传</div>
  1464. </div>
  1465. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  1466. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  1467. <div class="checkDiv" v-else>
  1468. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1469. </div>
  1470. </div>
  1471. </div>
  1472. <div class="tool">
  1473. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 40, toolIndex)">
  1474. <img src="../../../assets/icon/thirdToolList/eval.png" alt />
  1475. <div style="margin: 5px 0">个人评价</div>
  1476. </div>
  1477. <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  1478. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(40) == -1" />
  1479. <div class="checkDiv" v-else>
  1480. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1481. </div>
  1482. </div>
  1483. </div>
  1484. <div class="tool">
  1485. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
  1486. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  1487. <div style="margin: 5px 0">选择填空</div>
  1488. </div>
  1489. <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  1490. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(41) == -1" />
  1491. <div class="checkDiv" v-else>
  1492. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1493. </div>
  1494. </div>
  1495. </div>
  1496. <div class="tool">
  1497. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
  1498. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  1499. <div style="margin: 5px 0">连词成句</div>
  1500. </div>
  1501. <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  1502. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(47) == -1" />
  1503. <div class="checkDiv" v-else>
  1504. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1505. </div>
  1506. </div>
  1507. </div>
  1508. <!-- <div class="tool">
  1509. <div
  1510. class="whiteBIcon"
  1511. @click="openTools(itemTaskIndex, 42, toolIndex)"
  1512. >
  1513. <img
  1514. src="../../../assets/icon/thirdToolList/mp3.png"
  1515. alt
  1516. />
  1517. <div style="margin: 5px 0">上传音频</div>
  1518. </div>
  1519. <div
  1520. class="check"
  1521. @click="addTools(42, itemTaskIndex, toolIndex)"
  1522. >
  1523. <img
  1524. src="../../../assets/icon/checkNo.png"
  1525. alt
  1526. v-if="itemTool.tool.indexOf(42) == -1"
  1527. />
  1528. <img
  1529. src="../../../assets/icon/checkedIs.png"
  1530. alt
  1531. v-else
  1532. />
  1533. </div>
  1534. </div> -->
  1535. </div>
  1536. <div class="toolSort" v-if="itemTool.toolType == 3">
  1537. <div class="tool">
  1538. <div class="whiteBIcon" @click="addTools(18, itemTaskIndex, toolIndex)">
  1539. <img src="../../../assets/icon/thirdToolList/trainPlatform.png" alt />
  1540. <div style="margin: 5px 0">训练平台</div>
  1541. </div>
  1542. <div class="check" @click="addTools(18, itemTaskIndex, toolIndex)">
  1543. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(18) == -1" />
  1544. <div class="checkDiv" v-else>
  1545. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1546. </div>
  1547. </div>
  1548. </div>
  1549. <div class="tool">
  1550. <div class="whiteBIcon" @click="addTools(21, itemTaskIndex, toolIndex)">
  1551. <img src="../../../assets/icon/fourthToolList/program.png" alt />
  1552. <div style="margin: 5px 0">编程平台</div>
  1553. </div>
  1554. <div class="check" @click="addTools(21, itemTaskIndex, toolIndex)">
  1555. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(21) == -1" />
  1556. <div class="checkDiv" v-else>
  1557. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1558. </div>
  1559. </div>
  1560. </div>
  1561. <div class="tool">
  1562. <div class="whiteBIcon" @click="addTools(22, itemTaskIndex, toolIndex)">
  1563. <img src="../../../assets/icon/fourthToolList/AIprogram2.png" alt />
  1564. <div style="margin: 5px 0">AI体验</div>
  1565. </div>
  1566. <div class="check" @click="addTools(22, itemTaskIndex, toolIndex)">
  1567. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(22) == -1" />
  1568. <div class="checkDiv" v-else>
  1569. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1570. </div>
  1571. </div>
  1572. </div>
  1573. <div class="tool">
  1574. <div class="whiteBIcon" @click="addTools(23, itemTaskIndex, toolIndex)">
  1575. <img src="../../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  1576. <div style="margin: 5px 0">Python</div>
  1577. </div>
  1578. <div class="check" @click="addTools(23, itemTaskIndex, toolIndex)">
  1579. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(23) == -1" />
  1580. <div class="checkDiv" v-else>
  1581. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1582. </div>
  1583. </div>
  1584. </div>
  1585. <div class="tool">
  1586. <div class="whiteBIcon" @click="addTools(24, itemTaskIndex, toolIndex)">
  1587. <img src="../../../assets/icon/fourthToolList/AIprogram.png" alt />
  1588. <div style="margin: 5px 0">AI平台</div>
  1589. </div>
  1590. <div class="check" @click="addTools(24, itemTaskIndex, toolIndex)">
  1591. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(24) == -1" />
  1592. <div class="checkDiv" v-else>
  1593. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1594. </div>
  1595. </div>
  1596. </div>
  1597. <div class="tool">
  1598. <div class="whiteBIcon" @click="addTools(32, itemTaskIndex, toolIndex)">
  1599. <img src="../../../assets/icon/thirdToolList/code.png" alt />
  1600. <div style="margin: 5px 0">源码编辑</div>
  1601. </div>
  1602. <div class="check" @click="addTools(32, itemTaskIndex, toolIndex)">
  1603. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(32) == -1" />
  1604. <div class="checkDiv" v-else>
  1605. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1606. </div>
  1607. </div>
  1608. </div>
  1609. <div class="tool">
  1610. <div class="whiteBIcon" @click="addTools(57, itemTaskIndex, toolIndex)">
  1611. <img src="../../../assets/icon/fourthToolList/cocopi.png" alt />
  1612. <div style="margin: 5px 0">CocoPi</div>
  1613. </div>
  1614. <div class="check" @click="addTools(57, itemTaskIndex, toolIndex)">
  1615. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(57) == -1" />
  1616. <div class="checkDiv" v-else>
  1617. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1618. </div>
  1619. </div>
  1620. </div>
  1621. <div class="tool">
  1622. <div class="whiteBIcon" @click="addTools(63, itemTaskIndex, toolIndex)">
  1623. <img src="../../../assets/icon/fourthToolList/Wood.png" alt />
  1624. <div style="margin: 5px 0">海龟编程</div>
  1625. </div>
  1626. <div class="check" @click="addTools(63, itemTaskIndex, toolIndex)">
  1627. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(63) == -1" />
  1628. <div class="checkDiv" v-else>
  1629. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1630. </div>
  1631. </div>
  1632. </div>
  1633. </div>
  1634. <div class="toolSort" v-if="itemTool.toolType == 5">
  1635. <div class="tool">
  1636. <div class="whiteBIcon" @click="addTools(28, itemTaskIndex, toolIndex)">
  1637. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  1638. <div style="margin: 5px 0">翻译</div>
  1639. </div>
  1640. <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  1641. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(28) == -1" />
  1642. <div class="checkDiv" v-else>
  1643. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1644. </div>
  1645. </div>
  1646. </div>
  1647. <div class="tool">
  1648. <div class="whiteBIcon" @click="addTools(37, itemTaskIndex, toolIndex)">
  1649. <img src="../../../assets/icon/secondToolList/mohe.png" alt />
  1650. <div style="margin: 5px 0">魔盒识字</div>
  1651. </div>
  1652. <div class="check" @click="addTools(37, itemTaskIndex, toolIndex)">
  1653. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(37) == -1" />
  1654. <div class="checkDiv" v-else>
  1655. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1656. </div>
  1657. </div>
  1658. </div>
  1659. <div class="tool">
  1660. <div class="whiteBIcon" @click="addTools(38, itemTaskIndex, toolIndex)">
  1661. <img src="../../../assets/icon/secondToolList/24game.png" alt />
  1662. <div style="margin: 5px 0">24点</div>
  1663. </div>
  1664. <div class="check" @click="addTools(38, itemTaskIndex, toolIndex)">
  1665. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(38) == -1" />
  1666. <div class="checkDiv" v-else>
  1667. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1668. </div>
  1669. </div>
  1670. </div>
  1671. <div class="tool">
  1672. <div class="whiteBIcon" @click="addTools(31, itemTaskIndex, toolIndex)">
  1673. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  1674. <div style="margin: 5px 0">数学画板</div>
  1675. </div>
  1676. <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  1677. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(31) == -1" />
  1678. <div class="checkDiv" v-else>
  1679. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1680. </div>
  1681. </div>
  1682. </div>
  1683. <div class="tool">
  1684. <div class="whiteBIcon" @click="addTools(39, itemTaskIndex, toolIndex)">
  1685. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  1686. <div style="margin: 5px 0">GeoGebra</div>
  1687. </div>
  1688. <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  1689. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(39) == -1" />
  1690. <div class="checkDiv" v-else>
  1691. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1692. </div>
  1693. </div>
  1694. </div>
  1695. <div class="tool">
  1696. <div class="whiteBIcon" @click="addTools(58, itemTaskIndex, toolIndex)">
  1697. <img src="../../../assets/icon/fourthToolList/car.png" alt />
  1698. <div style="margin: 5px 0">模拟驾驶</div>
  1699. </div>
  1700. <div class="check" @click="addTools(58, itemTaskIndex, toolIndex)">
  1701. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(58) == -1" />
  1702. <div class="checkDiv" v-else>
  1703. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1704. </div>
  1705. </div>
  1706. </div>
  1707. <div class="tool">
  1708. <div class="whiteBIcon" @click="addTools(59, itemTaskIndex, toolIndex)">
  1709. <img src="../../../assets/icon/fourthToolList/lineSearch.png" alt />
  1710. <div style="margin: 5px 0">路径搜索</div>
  1711. </div>
  1712. <div class="check" @click="addTools(59, itemTaskIndex, toolIndex)">
  1713. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(59) == -1" />
  1714. <div class="checkDiv" v-else>
  1715. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1716. </div>
  1717. </div>
  1718. </div>
  1719. <div class="tool">
  1720. <div class="whiteBIcon" @click="addTools(60, itemTaskIndex, toolIndex)">
  1721. <img src="../../../assets/icon/fourthToolList/deepLearning.png" alt />
  1722. <div style="margin: 5px 0">深度学习</div>
  1723. </div>
  1724. <div class="check" @click="addTools(60, itemTaskIndex, toolIndex)">
  1725. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(60) == -1" />
  1726. <div class="checkDiv" v-else>
  1727. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1728. </div>
  1729. </div>
  1730. </div>
  1731. <div class="tool">
  1732. <div class="whiteBIcon" @click="addTools(61, itemTaskIndex, toolIndex)">
  1733. <img src="../../../assets/icon/fourthToolList/allHistory.png" alt />
  1734. <div style="margin: 5px 0">全历史</div>
  1735. </div>
  1736. <div class="check" @click="addTools(61, itemTaskIndex, toolIndex)">
  1737. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(61) == -1" />
  1738. <div class="checkDiv" v-else>
  1739. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1740. </div>
  1741. </div>
  1742. </div>
  1743. </div>
  1744. <div class="toolSort" v-if="itemTool.toolType == 4">
  1745. <div class="tool">
  1746. <div class="whiteBIcon" @click="addTools(26, itemTaskIndex, toolIndex)">
  1747. <img src="../../../assets/icon/thirdToolList/courseDesign.png" alt />
  1748. <div style="margin: 5px 0">课程设计</div>
  1749. </div>
  1750. <div class="check" @click="addTools(26, itemTaskIndex, toolIndex)">
  1751. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(26) == -1" />
  1752. <div class="checkDiv" v-else>
  1753. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1754. </div>
  1755. </div>
  1756. </div>
  1757. <div class="tool">
  1758. <div class="whiteBIcon" @click="addTools(25, itemTaskIndex, toolIndex)">
  1759. <img src="../../../assets/icon/thirdToolList/evalua.png" alt />
  1760. <div style="margin: 5px 0">目标管理</div>
  1761. </div>
  1762. <div class="check" @click="addTools(25, itemTaskIndex, toolIndex)">
  1763. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(25) == -1" />
  1764. <div class="checkDiv" v-else>
  1765. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1766. </div>
  1767. </div>
  1768. </div>
  1769. <!-- <div class="tool">
  1770. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  1771. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  1772. <div style="margin: 5px 0">汉字宫</div>
  1773. </div>
  1774. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  1775. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  1776. <div class="checkDiv" v-else>
  1777. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1778. </div>
  1779. </div>
  1780. </div> -->
  1781. </div>
  1782. </div>
  1783. </div>
  1784. <div class="addToolFun" @click="addToolFun(itemTaskIndex)">
  1785. <div class="addToolImg">
  1786. <img src="../../../assets/icon/add.png" alt />
  1787. </div>
  1788. <div>添加工具</div>
  1789. </div>
  1790. </div>
  1791. </div>
  1792. <div v-else-if="unitJson[unitIndex].easy == 2 ||
  1793. unitJson[unitIndex].easy == 4
  1794. " class="toolChoose" style="padding: 0 0 0 30px">
  1795. <div class="tools">
  1796. <div class="leftTools" style="width: 95%" v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  1797. :key="toolIndex">
  1798. <div>
  1799. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input"
  1800. style="margin: 0 0 20px 0; width: 71.5% !important" v-model="itemTool.toolDetail"></textarea>
  1801. </div>
  1802. <div style="
  1803. display: flex;
  1804. flex-direction: row;
  1805. align-items: baseline;
  1806. flex-wrap: nowrap;
  1807. justify-content: flex-start;
  1808. position: relative;
  1809. ">
  1810. <div style="margin-right: 20px; font-weight: bold">
  1811. 步骤 {{ toolIndex + 1 }} :
  1812. </div>
  1813. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  1814. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 55px"></div>
  1815. </div>
  1816. <div style="min-height: 163px">
  1817. <div class="toolSort">
  1818. <div class="tool">
  1819. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 1, toolIndex)">
  1820. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  1821. <div style="margin: 5px 0">电子白板</div>
  1822. </div>
  1823. <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  1824. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(1) == -1" />
  1825. <div class="checkDiv" v-else>
  1826. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1827. </div>
  1828. </div>
  1829. </div>
  1830. <div class="tool">
  1831. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 52, toolIndex)">
  1832. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  1833. <div style="margin: 5px 0">文档</div>
  1834. </div>
  1835. <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  1836. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(52) == -1" />
  1837. <div class="checkDiv" v-else>
  1838. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1839. </div>
  1840. </div>
  1841. </div>
  1842. <div class="tool">
  1843. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 3, toolIndex)">
  1844. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  1845. <div style="margin: 5px 0">思维导图</div>
  1846. </div>
  1847. <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  1848. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(3) == -1" />
  1849. <div class="checkDiv" v-else>
  1850. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1851. </div>
  1852. </div>
  1853. </div>
  1854. <div class="tool">
  1855. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
  1856. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  1857. <div style="margin: 5px 0">问卷调查</div>
  1858. </div>
  1859. <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  1860. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(4) == -1" />
  1861. <div class="checkDiv" v-else>
  1862. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1863. </div>
  1864. </div>
  1865. </div>
  1866. <div class="tool">
  1867. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  1868. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  1869. <div style="margin: 5px 0">选择题</div>
  1870. </div>
  1871. <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  1872. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(45) == -1" />
  1873. <div class="checkDiv" v-else>
  1874. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1875. </div>
  1876. </div>
  1877. </div>
  1878. <div class="tool">
  1879. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 15, toolIndex)">
  1880. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  1881. <div style="margin: 5px 0">问答工具</div>
  1882. </div>
  1883. <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  1884. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(15) == -1" />
  1885. <div class="checkDiv" v-else>
  1886. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1887. </div>
  1888. </div>
  1889. </div>
  1890. <div class="tool">
  1891. <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
  1892. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  1893. <div style="margin: 5px 0">作业提交</div>
  1894. </div>
  1895. <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  1896. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(16) == -1" />
  1897. <div class="checkDiv" v-else>
  1898. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1899. </div>
  1900. </div>
  1901. </div>
  1902. <div class="tool">
  1903. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  1904. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  1905. <div style="margin: 5px 0">批量上传</div>
  1906. </div>
  1907. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  1908. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  1909. <div class="checkDiv" v-else>
  1910. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1911. </div>
  1912. </div>
  1913. </div>
  1914. <div class="tool">
  1915. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
  1916. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  1917. <div style="margin: 5px 0">选择填空</div>
  1918. </div>
  1919. <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  1920. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(41) == -1" />
  1921. <div class="checkDiv" v-else>
  1922. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1923. </div>
  1924. </div>
  1925. </div>
  1926. <div class="tool">
  1927. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
  1928. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  1929. <div style="margin: 5px 0">连词成句</div>
  1930. </div>
  1931. <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  1932. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(47) == -1" />
  1933. <div class="checkDiv" v-else>
  1934. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1935. </div>
  1936. </div>
  1937. </div>
  1938. <div class="tool">
  1939. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
  1940. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  1941. <div style="margin: 5px 0">表格</div>
  1942. </div>
  1943. <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  1944. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(48) == -1" />
  1945. <div class="checkDiv" v-else>
  1946. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1947. </div>
  1948. </div>
  1949. </div>
  1950. </div>
  1951. </div>
  1952. </div>
  1953. <div class="addToolFun" style="margin-bottom: 20px" @click="addToolFun(itemTaskIndex)">
  1954. <div class="addToolImg">
  1955. <img src="../../../assets/icon/add.png" alt />
  1956. </div>
  1957. <div>添加工具</div>
  1958. </div>
  1959. </div>
  1960. </div>
  1961. <div v-else-if="unitJson[unitIndex].easy == 1 ||
  1962. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  1963. " class="toolChoose" style="padding: 0 0 0 30px">
  1964. <div class="tools">
  1965. <div class="leftTools" style="
  1966. width: 95%;
  1967. padding: 0 0 15px 0;
  1968. margin-bottom: 15px;
  1969. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  1970. <div style="min-height: 163px">
  1971. <div class="toolSort">
  1972. <div class="tool">
  1973. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  1974. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  1975. <div style="margin: 5px 0">批量上传</div>
  1976. </div>
  1977. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  1978. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  1979. <div class="checkDiv" v-else>
  1980. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1981. </div>
  1982. </div>
  1983. </div>
  1984. </div>
  1985. </div>
  1986. </div>
  1987. </div>
  1988. </div>
  1989. <div class="elist_css" v-if="!(unitJson[unitJson.length - 1].easy == 4)">
  1990. <div class="elist_title">
  1991. <div style="
  1992. display: flex;
  1993. flex-direction: row;
  1994. align-items: center;
  1995. margin-bottom: 20px;
  1996. ">
  1997. <div class="lineTitle">评价设置</div>
  1998. <div class="line" style="width: 90%"></div>
  1999. </div>
  2000. </div>
  2001. <div class="mbCss">
  2002. <div class="pjCss">
  2003. <div v-if="itemTask.eList && itemTask.eList.length" class="elist_input">
  2004. <div v-for="(eItem, eIndex) in itemTask.eList" :key="eIndex" class="elist_input_box">
  2005. <span>评价名称:</span>
  2006. <input type="input" v-model="itemTask.eList[eIndex].value" placeholder="填写评价名称" />
  2007. <span>评星等级:</span>
  2008. <el-rate v-model="itemTask.eList[eIndex].score" @change="setEListStar()" disabled></el-rate>
  2009. <div class="remove" @click="deletEList(unitIndex, itemTaskIndex, eIndex)
  2010. "></div>
  2011. <div class="elist_inptu_text">
  2012. <span>评价描述:</span>
  2013. <input type="input" v-model="itemTask.eList[eIndex].detail" placeholder="填写评价描述" />
  2014. </div>
  2015. <div class="elist_inptu_text" v-if="evalua">
  2016. <span>目标:</span>
  2017. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写评价描述" /> -->
  2018. <!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
  2019. @change="forceUpdate()">
  2020. <el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
  2021. :value="e.name">
  2022. </el-option>
  2023. </el-select> -->
  2024. <el-cascader :options="targetArray" v-model="itemTask.eList[eIndex].target"
  2025. :props="{ checkStrictly: true }" :show-all-levels="false" clearable></el-cascader>
  2026. </div>
  2027. </div>
  2028. </div>
  2029. <div class="addToolFun" @click="addEList(unitIndex, itemTaskIndex)" style="margin: 35px 35px 0 0">
  2030. <div class="addToolImg">
  2031. <img src="../../../assets/icon/add.png" alt />
  2032. </div>
  2033. <div>添加</div>
  2034. </div>
  2035. </div>
  2036. <div v-if="evalua" style="
  2037. border: 1px solid #e5e5e5;
  2038. width: 55%;
  2039. margin-top: 20px;
  2040. box-shadow: 3px 1px 15px 3px #e0e0e0;
  2041. " class="evaCss">
  2042. <div class="e_add_top">
  2043. <div class="e_add_title">
  2044. <span>当前使用目标管理</span>
  2045. <span>{{ eTitle }}</span>
  2046. <img src="../../../assets/line.png" class="cru_line" style="
  2047. width: 125px;
  2048. height: 20px;
  2049. bottom: -10px;
  2050. left: 155px;
  2051. " />
  2052. </div>
  2053. </div>
  2054. <div class="e_add_content" style="width: 100%">
  2055. <div class="e_add_list_pbox" style="width: 100%">
  2056. <div class="e_add_list_pbox_title">
  2057. <span class="type_title">切换模式</span>
  2058. <div class="type_content">
  2059. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1)">目标树</span>
  2060. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2)">目标罗盘</span>
  2061. <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span>
  2062. </div>
  2063. </div>
  2064. <div class="e_add_list_pbox_content">
  2065. <Mind :showBar="false" :mindData="data" style="width: 100%" :jsmindId="unitIndex + '-' + itemTaskIndex + 'mind'
  2066. " v-if="typeMode == 1"></Mind>
  2067. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2">
  2068. </Sunburst>
  2069. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  2070. v-if="typeMode == 3"></SeeBoard>
  2071. </div>
  2072. </div>
  2073. </div>
  2074. </div>
  2075. </div>
  2076. </div>
  2077. <div class="funBlock" style="padding: 0">
  2078. <div class="fold" @click="fold(itemTaskIndex, $event, 1)">
  2079. <div>折叠</div>
  2080. <div class="arrow">
  2081. <img src="../../../assets/icon/fold.png" alt />
  2082. </div>
  2083. </div>
  2084. <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  2085. <div>展开</div>
  2086. <div class="arrow">
  2087. <img src="../../../assets/icon/expand.png" alt />
  2088. </div>
  2089. </div>
  2090. </div>
  2091. </div>
  2092. <div class="addTaskBorder" @click="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  2093. <div>
  2094. <img src="../../../assets/icon/addHw.png" alt />
  2095. <span>添加任务</span>
  2096. </div>
  2097. </div>
  2098. </div>
  2099. </div>
  2100. </div>
  2101. <div class="rightBox" v-if="this.steps == 4">
  2102. <div class="basic_box_success">
  2103. <div class="right_img">
  2104. <img src="../../../assets/icon/right.png" alt />
  2105. </div>
  2106. <div style="font-weight: bold">成功</div>
  2107. <!-- <div>您的课程编号</div>
  2108. <div class="number">{{ number }}</div>-->
  2109. <!-- <div class="success_button">
  2110. <div class="look_course" @click="isNoFinsh">
  2111. 邀请老师协同编辑
  2112. </div>
  2113. <div class="attend_others" @click="goCourse">预览课程</div>
  2114. </div> -->
  2115. </div>
  2116. </div>
  2117. <div class="info_btnBox">
  2118. <button class="info_btn" @click="goTo(
  2119. '/course?userid=' +
  2120. userid +
  2121. '&oid=' +
  2122. oid +
  2123. '&org=' +
  2124. org +
  2125. '&role=' +
  2126. role
  2127. )
  2128. ">
  2129. 返回课程
  2130. </button>
  2131. <button class="info_btn" @click="nextSteps" v-if="this.steps == 1">
  2132. 确认上传
  2133. </button>
  2134. </div>
  2135. </div>
  2136. </div>
  2137. </div>
  2138. <el-dialog title="提示" :visible.sync="dialogVisible" :append-to-body="true" width="25%" :before-close="handleClose"
  2139. class="dialog_diy2 customWidth">
  2140. <div>请复制该链接邀请协同编辑</div>
  2141. <div>http://www.boomyon.com/index-zhang.com</div>
  2142. <span slot="footer" class="dialog-footer">
  2143. <el-button type="primary">复制链接分享</el-button>
  2144. <el-button @click="dialogVisible = false">取消</el-button>
  2145. </span>
  2146. </el-dialog>
  2147. <el-dialog :title="updateBoolean2 ? '查看文档' : '添加文档'" :visible.sync="dialogVisible1" :append-to-body="true" width="25%"
  2148. :before-close="handleClose" class="dialog_diy2 customWidth">
  2149. <el-form>
  2150. <el-form-item label="文档标题">
  2151. <el-input v-model="tTitle" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  2152. </el-form-item>
  2153. <div>文档简介</div>
  2154. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  2155. </el-form>
  2156. <span slot="footer" class="dialog-footer">
  2157. <el-button @click="dialogVisible1 = false">取 消</el-button>
  2158. <el-button type="primary" @click="addWord" v-if="!updateBoolean2">添加</el-button>
  2159. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  2160. </span>
  2161. </el-dialog>
  2162. <el-dialog title="添加文档" :visible.sync="dialogVisible2" :append-to-body="true" width="500px"
  2163. :before-close="handleClose" class="dialog_diy">
  2164. <el-form>
  2165. <el-form-item label="文档标题">
  2166. <el-input v-model="templateC.title" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  2167. </el-form-item>
  2168. <div>文档内容</div>
  2169. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  2170. </el-form>
  2171. <span slot="footer" class="dialog-footer">
  2172. <el-button @click="clearChoose">取 消</el-button>
  2173. <el-button type="primary" @click="wordNext()">确定</el-button>
  2174. </span>
  2175. </el-dialog>
  2176. <el-dialog title="添加富文本" :visible.sync="dialogVisible6" :append-to-body="true" width="500px"
  2177. :before-close="handleClose" class="dialog_diy">
  2178. <el-form>
  2179. <el-form-item label="文本标题">
  2180. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  2181. </el-form-item>
  2182. <div>富文本内容</div>
  2183. <editor-bar v-model="AttText.text" @change="change" v-if="dialogVisible6"></editor-bar>
  2184. </el-form>
  2185. <span slot="footer" class="dialog-footer">
  2186. <el-button @click="clearAttText">取 消</el-button>
  2187. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  2188. </span>
  2189. </el-dialog>
  2190. <el-dialog title="添加链接" :visible.sync="dialogVisible7" :append-to-body="true" width="500px"
  2191. :before-close="handleClose" class="dialog_diy lineCss">
  2192. <el-form>
  2193. <el-form-item label="标题" :label-width="formLabelWidth">
  2194. <span>
  2195. <el-input placeholder="请输入链接标题" clearable v-model="lineTitle" class="add_input"></el-input>
  2196. </span>
  2197. </el-form-item>
  2198. <el-form-item label="链接" :label-width="formLabelWidth">
  2199. <span>
  2200. <el-input placeholder="请输入链接" clearable v-model="line" class="add_input"></el-input>
  2201. </span>
  2202. </el-form-item>
  2203. </el-form>
  2204. <span slot="footer" class="dialog-footer">
  2205. <el-button @click="clearLine">取 消</el-button>
  2206. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  2207. </span>
  2208. </el-dialog>
  2209. <el-dialog title="添加资源" :visible.sync="dialogVisibleSource" :append-to-body="true" width="100%"
  2210. :before-close="handleClose" class="dialog_diy source_diy">
  2211. <div>
  2212. <sourceDialog :sourceData="sourceData"></sourceDialog>
  2213. </div>
  2214. <span slot="footer" class="dialog-footer">
  2215. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  2216. <el-button type="primary" @click="addSource">确定</el-button>
  2217. </span>
  2218. </el-dialog>
  2219. <el-dialog title="添加课程成员" :visible.sync="dialogVisible3" :append-to-body="true" width="25%" height="80%"
  2220. :before-close="handleClose" class="addNewPP customWidth">
  2221. <div class="people">
  2222. <div class="people_top">
  2223. <div class="people_nav">选择成员</div>
  2224. <div class="people_top_right">
  2225. <div class="people_search">
  2226. <el-input style="height: 100%" placeholder="搜索成员名称" v-model="searchPeople"></el-input>
  2227. <div class="search_img" @click="searchStudent">
  2228. <img src="../../../assets/icon/search.png" alt />
  2229. </div>
  2230. </div>
  2231. </div>
  2232. </div>
  2233. <el-checkbox-group v-model="checkboxList" class="people_name">
  2234. <el-checkbox v-for="item in studentJuri" :key="item.userid" :label="item.userid">{{ item.name ? item.name :
  2235. "暂无学生可选" }}</el-checkbox>
  2236. </el-checkbox-group>
  2237. </div>
  2238. <span slot="footer" class="dialog-footer">
  2239. <el-button @click="dialogVisible3 = false">取 消</el-button>
  2240. <el-button type="primary" @click="isAddPP">确定</el-button>
  2241. </span>
  2242. </el-dialog>
  2243. <el-dialog title="添加班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="400px" height="80%"
  2244. :before-close="handleClose" class="addNewPP">
  2245. <div class="people" style="height: 300px">
  2246. <div class="people_top">
  2247. <div class="people_top_right">
  2248. <div class="people_search">
  2249. <el-input placeholder="搜索班级名称" v-model="classSearch" @input="getClass()"></el-input>
  2250. <!-- @click="getClass()"
  2251. @keyup.enter.native="getClass()"
  2252. -->
  2253. <div class="search_img">
  2254. <img src="../../../assets/icon/search.png" alt />
  2255. </div>
  2256. </div>
  2257. </div>
  2258. <div class="people_nav">选择班级</div>
  2259. </div>
  2260. <el-checkbox-group v-model="checkboxList2" class="people_name people_name2" @change="InviteChange">
  2261. <div v-for="item in grade2" :key="item.id" class="p_box">
  2262. <el-checkbox :label="item.id">
  2263. {{ item.name }}
  2264. </el-checkbox>
  2265. <!-- <div class="inviteCode" :class="{ noneInvite: !isInvite(item.id) }" v-if="isInvite(item.id)">
  2266. 邀请码:{{ getInviteCodeC(item.id) }}</div> -->
  2267. <!-- <div class="inviteCode" :class="{ noneInvite: !isInvite(item.id) }" v-if="checkboxList2.indexOf(item.id) != -1"
  2268. @click="OpenInviteD(item.id)">随机码设置</div>
  2269. <img src="../../../assets/icon/rightInvite.png" class="inviteImg" v-if="isInvite(item.id)" /> -->
  2270. </div>
  2271. </el-checkbox-group>
  2272. </div>
  2273. <span slot="footer" class="dialog-footer">
  2274. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  2275. <el-button type="primary" @click="isAddClass">确定</el-button>
  2276. </span>
  2277. </el-dialog>
  2278. <el-dialog title="添加协同成员" :visible.sync="dialogVisibleMember" :append-to-body="true" width="25%" height="80%"
  2279. :before-close="handleClose" class="addNewPP customWidth">
  2280. <div class="people">
  2281. <div class="people_top">
  2282. <div class="people_top_right">
  2283. <div class="people_search">
  2284. <el-input placeholder="搜索成员名称" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  2285. <div class="search_img" @click="getTeacher">
  2286. <img src="../../../assets/icon/search.png" alt />
  2287. </div>
  2288. </div>
  2289. </div>
  2290. <div class="people_nav">选择成员</div>
  2291. </div>
  2292. <el-checkbox-group v-model="checkboxList3" class="people_name" v-if="teacherJuri.length">
  2293. <el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
  2294. <div class="t_j_box">
  2295. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  2296. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  2297. </el-tooltip>
  2298. <el-tooltip placement="top" :content="item.username">
  2299. <span>{{ item.username }}</span>
  2300. </el-tooltip>
  2301. <el-tooltip placement="top" :content="item.school">
  2302. <span>{{ item.school }}</span>
  2303. </el-tooltip>
  2304. </div>
  2305. </el-checkbox>
  2306. </el-checkbox-group>
  2307. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  2308. </div>
  2309. <span slot="footer" class="dialog-footer">
  2310. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  2311. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  2312. </span>
  2313. </el-dialog>
  2314. <el-dialog title="创建问卷" :visible.sync="dialogVisible5" :append-to-body="true" width="800px"
  2315. :before-close="handleClose" class="dialog_diy">
  2316. <div>
  2317. <div class="a_add_title" style="
  2318. display: flex;
  2319. flex-direction: row;
  2320. align-items: center;
  2321. justify-content: center;
  2322. ">
  2323. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  2324. <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  2325. </div>
  2326. <div class="a_addBox">
  2327. <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div>
  2328. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  2329. <div class="a_add_checkType">
  2330. <span :class="{ active: askJson.askJson[index1].type == '1' || !askJson.askJson[index1].type }"
  2331. @click="checkAskType('1', askJson.askJson[index1])">单选题</span>
  2332. <span :class="{ active: askJson.askJson[index1].type == '2' }"
  2333. @click="checkAskType('2', askJson.askJson[index1])">多选题</span>
  2334. </div>
  2335. <div class="a_add_head">
  2336. <div>
  2337. {{ index1 + 1 + "、" }}
  2338. <el-input class="a_add_head_input" v-model="askJson.askJson[index1].askstitle" placeholder="请输入题目...">
  2339. </el-input>
  2340. </div>
  2341. <div class="a_add_head_div">
  2342. <el-button type="primary" size="small" @click="addAskList()">添加</el-button>
  2343. <el-button type="primary" size="small" @click="deleteAskList(index1)" v-if="askJson.askCount != 1">删除
  2344. </el-button>
  2345. </div>
  2346. </div>
  2347. <div class="a_add_body">
  2348. <div class="a_add_input">
  2349. <el-input v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex"
  2350. v-model="askJson.askJson[index1].checkList[checkIndex]" placeholder="请输入选项..."
  2351. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  2352. </div>
  2353. <div class="a_add_body_div">
  2354. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  2355. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  2356. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  2357. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  2358. </el-button>
  2359. </div>
  2360. </div>
  2361. </div>
  2362. </div>
  2363. </div>
  2364. <span slot="footer" class="dialog-footer">
  2365. <el-button @click="dialogVisible5 = false">取 消</el-button>
  2366. <el-button type="primary" @click="addAsk">确 定</el-button>
  2367. </span>
  2368. </el-dialog>
  2369. <el-dialog title="创建选择题" :visible.sync="dialogVisibleChoice" :append-to-body="true" width="800px"
  2370. :before-close="handleClose" class="dialog_diy">
  2371. <div>
  2372. <!-- <div class="a_add_title" style="
  2373. display: flex;
  2374. flex-direction: row;
  2375. align-items: center;
  2376. justify-content: center;
  2377. ">
  2378. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  2379. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  2380. </div> -->
  2381. <div class="a_addBox">
  2382. <div style="font-size: 16px; color: #c7c7c7">
  2383. 请输入题目内容
  2384. <el-button type="primary" size="small" @click="pasteOption" style="margin-left:10px">智能粘贴</el-button>
  2385. </div>
  2386. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  2387. <div class="a_add_checkType">
  2388. <span :class="{ active: testJson.testJson[index1].type == '1' }"
  2389. @click="checkTestType('1', testJson.testJson[index1])">单选题</span>
  2390. <span :class="{ active: testJson.testJson[index1].type == '2' }"
  2391. @click="checkTestType('2', testJson.testJson[index1])">多选题</span>
  2392. </div>
  2393. <div class="a_add_head">
  2394. <div class="timuUpImg">
  2395. <div>
  2396. {{ index1 + 1 + "、" }}
  2397. <el-input class="a_add_head_input" v-model="testJson.testJson[index1].teststitle"
  2398. placeholder="请输入题目...">
  2399. </el-input>
  2400. </div>
  2401. <div class="xzUpImg" @click.stop="addImg($event)">
  2402. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  2403. <input type="file" accept="image/*" style="display: none" @change="beforeUploadTiMu($event, index1)" />
  2404. </div>
  2405. </div>
  2406. <div class="a_add_head_div">
  2407. <el-button type="primary" size="small" @click="addTestList()">添加</el-button>
  2408. <el-button type="primary" size="small" @click="deleteTestList(index1)" v-if="testJson.testCount != 1">删除
  2409. </el-button>
  2410. </div>
  2411. </div>
  2412. <div class="timuImgBox" v-if="testJson.testJson[index1].timuList &&
  2413. testJson.testJson[index1].timuList.length
  2414. ">
  2415. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  2416. @click.stop="previewImg(timg.src)">
  2417. <img :src="timg.src" alt="" />
  2418. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  2419. <img src="../../../assets/icon/delete.png" alt="" />
  2420. </div>
  2421. </div>
  2422. </div>
  2423. <div class="a_add_body">
  2424. <div class="a_add_input a_add_input_choice">
  2425. <el-radio-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == 1">
  2426. <div class="radioBox">
  2427. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  2428. .testItem" :key="checkIndex" :label="checkIndex">
  2429. <div style="margin-right: 10px">
  2430. 选项{{ checkIndex + 1 }}
  2431. </div>
  2432. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex] &&
  2433. testJson.testJson[index1].checkList[checkIndex]
  2434. .imgType &&
  2435. testJson.testJson[index1].checkList[checkIndex]
  2436. .imgType == 1
  2437. ">
  2438. <div class="inImg" @click.stop="previewImg(
  2439. testJson.testJson[index1].checkList[checkIndex]
  2440. .src
  2441. )
  2442. ">
  2443. <el-image :src="testJson.testJson[index1].checkList[checkIndex]
  2444. .src
  2445. " lazy />
  2446. <!-- <img :src="
  2447. testJson.testJson[index1].checkList[checkIndex]
  2448. .src
  2449. " alt="" /> -->
  2450. </div>
  2451. </div>
  2452. <el-input v-else v-model="testJson.testJson[index1].checkList[checkIndex]
  2453. " placeholder="请输入选项..." style="width: 300px; margin-right: 10px"></el-input>
  2454. <div class="xzUpImg" @click.stop="addImg($event)">
  2455. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  2456. <input type="file" accept="image/*" style="display: none"
  2457. @change="beforeUploadTi($event, index1, checkIndex)" />
  2458. </div>
  2459. </el-radio>
  2460. </div>
  2461. </el-radio-group>
  2462. <el-checkbox-group v-model="testJson.testJson[index1].answer"
  2463. v-if="testJson.testJson[index1].type == '2'">
  2464. <div class="radioBox">
  2465. <el-checkbox v-for="(item2, checkIndex1) in testJson.testJson[index1]
  2466. .testItem" :key="checkIndex1" :label="checkIndex1">
  2467. <div style="margin-right: 10px">
  2468. 选项{{ checkIndex1 + 1 }}
  2469. </div>
  2470. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex1] &&
  2471. testJson.testJson[index1].checkList[checkIndex1]
  2472. .imgType &&
  2473. testJson.testJson[index1].checkList[checkIndex1]
  2474. .imgType == 1
  2475. ">
  2476. <div class="inImg" @click.stop="previewImg(
  2477. testJson.testJson[index1].checkList[checkIndex1]
  2478. .src
  2479. )
  2480. ">
  2481. <el-image :src="testJson.testJson[index1].checkList[checkIndex1]
  2482. .src
  2483. " lazy />
  2484. <!-- <img :src="
  2485. testJson.testJson[index1].checkList[checkIndex1]
  2486. .src
  2487. " alt="" /> -->
  2488. </div>
  2489. </div>
  2490. <el-input v-else v-model="testJson.testJson[index1].checkList[checkIndex1]
  2491. " placeholder="请输入选项..." style="width: 300px; margin-right: 10px"></el-input>
  2492. <div class="xzUpImg" @click.stop="addImg($event)">
  2493. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  2494. <input type="file" accept="image/*" style="display: none"
  2495. @change="beforeUploadTi($event, index1, checkIndex1)" />
  2496. </div>
  2497. </el-checkbox>
  2498. </div>
  2499. </el-checkbox-group>
  2500. </div>
  2501. <div class="a_add_body_div" style="margin-bottom: 3px">
  2502. <el-button type="primary" size="small" @click="addTcheckList(testJson.testJson[index1])">添加</el-button>
  2503. <el-button type="primary" size="small" @click="deleteTcheckList(testJson.testJson[index1])"
  2504. v-if="testJson.testJson[index1].testItem != 1">删除
  2505. </el-button>
  2506. </div>
  2507. </div>
  2508. </div>
  2509. </div>
  2510. </div>
  2511. <span slot="footer" class="dialog-footer">
  2512. <el-button @click="dialogVisibleChoice = false">取 消</el-button>
  2513. <el-button type="primary" @click="addTest">确 定</el-button>
  2514. </span>
  2515. </el-dialog>
  2516. <el-dialog title="添加工具" :visible.sync="dialogVisible4" :append-to-body="true" width="600px"
  2517. :before-close="handleClose" class="dialog_diy addToolsDia">
  2518. <div class="toolChoose" style="padding: 0 0 0 30px">
  2519. <div class="tools">
  2520. <div class="leftTools" style="
  2521. width: 95%;
  2522. padding: 0 0 15px 0;
  2523. border-bottom: 1px solid #efefef;
  2524. margin-bottom: 15px;
  2525. " v-for="(itemTools, itemToolsIndex) in chapTools" :key="itemToolsIndex">
  2526. <div style="
  2527. display: flex;
  2528. flex-direction: row;
  2529. align-items: baseline;
  2530. flex-wrap: nowrap;
  2531. justify-content: flex-start;
  2532. position: relative;
  2533. ">
  2534. <div class="chooseWho">
  2535. <div :class="chapToolsType == 0 ? 'isChooseActive' : ''" @click="chapToolsType = 0">
  2536. 互动类
  2537. </div>
  2538. <div :class="chapToolsType == 1 ? 'isChooseActive' : ''" @click="chapToolsType = 1">
  2539. 思维类
  2540. </div>
  2541. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  2542. 评价类
  2543. </div>
  2544. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  2545. 其他
  2546. </div>
  2547. </div>
  2548. </div>
  2549. <div style="min-height: 163px">
  2550. <div class="toolSort" v-if="chapToolsType == 0">
  2551. <div class="tool">
  2552. <div class="whiteBIcon" @click="chapAddTools(8)">
  2553. <img src="../../../assets/icon/secondToolList/library.png" alt />
  2554. <div style="margin: 5px 0">素材库</div>
  2555. </div>
  2556. <div class="check" @click="chapAddTools(8)">
  2557. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(8) == -1" />
  2558. <div class="checkDiv" v-else>
  2559. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2560. </div>
  2561. </div>
  2562. </div>
  2563. </div>
  2564. <div class="toolSort" v-if="chapToolsType == 1">
  2565. <div class="tool">
  2566. <div class="whiteBIcon" @click="chapAddTools(7)">
  2567. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  2568. <div style="margin: 5px 0">思维网格</div>
  2569. </div>
  2570. <div class="check" @click="chapAddTools(7)">
  2571. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(7) == -1" />
  2572. <div class="checkDiv" v-else>
  2573. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2574. </div>
  2575. </div>
  2576. </div>
  2577. <div class="tool">
  2578. <div class="whiteBIcon" @click="chapAddTools(1)">
  2579. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  2580. <div style="margin: 5px 0">电子白板</div>
  2581. </div>
  2582. <div class="check" @click="chapAddTools(1)">
  2583. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(1) == -1" />
  2584. <div class="checkDiv" v-else>
  2585. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2586. </div>
  2587. </div>
  2588. </div>
  2589. <div class="tool">
  2590. <div class="whiteBIcon" @click="chapAddTools(2)">
  2591. <img src="../../../assets/icon/secondToolList/note.png" alt />
  2592. <div style="margin: 5px 0">便签</div>
  2593. </div>
  2594. <div class="check" @click="chapAddTools(2)">
  2595. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(2) == -1" />
  2596. <div class="checkDiv" v-else>
  2597. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2598. </div>
  2599. </div>
  2600. </div>
  2601. <div class="tool">
  2602. <div class="whiteBIcon" @click="chapAddTools(6)">
  2603. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  2604. <div style="margin: 5px 0">协同文档</div>
  2605. </div>
  2606. <div class="check" @click="chapAddTools(6)">
  2607. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(6) == -1" />
  2608. <div class="checkDiv" v-else>
  2609. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2610. </div>
  2611. </div>
  2612. </div>
  2613. <div class="tool">
  2614. <div class="whiteBIcon" @click="chapAddTools(3)">
  2615. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  2616. <div style="margin: 5px 0">思维导图</div>
  2617. </div>
  2618. <div class="check" @click="chapAddTools(3)">
  2619. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(3) == -1" />
  2620. <div class="checkDiv" v-else>
  2621. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2622. </div>
  2623. </div>
  2624. </div>
  2625. <div class="tool">
  2626. <div class="whiteBIcon" @click="chapAddTools(31)">
  2627. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  2628. <div style="margin: 5px 0">数学画板</div>
  2629. </div>
  2630. <div class="check" @click="chapAddTools(31)">
  2631. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(31) == -1" />
  2632. <div class="checkDiv" v-else>
  2633. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2634. </div>
  2635. </div>
  2636. </div>
  2637. </div>
  2638. <div class="toolSort" v-if="chapToolsType == 2">
  2639. <div class="tool">
  2640. <div class="whiteBIcon" @click="chapAddTools(5)">
  2641. <img src="../../../assets/icon/thirdToolList/score.png" alt />
  2642. <div style="margin: 5px 0">量规评分</div>
  2643. </div>
  2644. <div class="check" @click="chapAddTools(5)">
  2645. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(5) == -1" />
  2646. <div class="checkDiv" v-else>
  2647. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2648. </div>
  2649. </div>
  2650. </div>
  2651. <div class="tool">
  2652. <div class="whiteBIcon" @click="openTools(chapCount, 4, null)">
  2653. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  2654. <div style="margin: 5px 0">问卷调查</div>
  2655. </div>
  2656. <div class="check" @click="chapAddTools(4)">
  2657. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(4) == -1" />
  2658. <div class="checkDiv" v-else>
  2659. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2660. </div>
  2661. </div>
  2662. </div>
  2663. </div>
  2664. </div>
  2665. <div>
  2666. <input type="text" placeholder="添加工具描述" class="binfo_input" style="margin: 20px 0; width: 71.5% !important"
  2667. v-model="itemTools.toolDetail" />
  2668. </div>
  2669. </div>
  2670. </div>
  2671. </div>
  2672. <span slot="footer" class="dialog-footer">
  2673. <el-button @click="dialogVisible4 = false">取 消</el-button>
  2674. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  2675. </span>
  2676. </el-dialog>
  2677. <el-dialog title="添加问答" :visible.sync="dialogVisible8" :append-to-body="true" width="500px"
  2678. :before-close="handleClose" class="dialog_diy">
  2679. <div>
  2680. <div class="a_add_title" style="
  2681. display: flex;
  2682. flex-direction: column;
  2683. align-items: flex-start;
  2684. justify-content: center;
  2685. ">
  2686. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  2687. <el-input v-model="answerQ" placeholder="请输入您要问的问题"></el-input>
  2688. </div>
  2689. </div>
  2690. <span slot="footer" class="dialog-footer">
  2691. <el-button @click="dialogVisible8 = false">取 消</el-button>
  2692. <el-button type="primary" @click="addAnswer">确 定</el-button>
  2693. </span>
  2694. </el-dialog>
  2695. <el-dialog title="添加问题" :visible.sync="dialogVisibleMp3" :append-to-body="true" width="500px"
  2696. :before-close="handleClose" class="dialog_diy">
  2697. <div>
  2698. <div class="a_add_title" style="
  2699. display: flex;
  2700. flex-direction: column;
  2701. align-items: flex-start;
  2702. justify-content: center;
  2703. ">
  2704. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  2705. <el-input v-model="answerQ" placeholder="请输入您想要回答的问题"></el-input>
  2706. </div>
  2707. </div>
  2708. <span slot="footer" class="dialog-footer">
  2709. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  2710. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  2711. </span>
  2712. </el-dialog>
  2713. <el-dialog title="上传图片" :visible.sync="choosePicVisible" :append-to-body="true" width="500px"
  2714. :before-close="handleClose" class="dialog_diy">
  2715. <div>
  2716. <div class="fileCss" style="padding-top: 20px">
  2717. <div>
  2718. <button class="info_btn" @click="addImg($event)">
  2719. 选择本地文件
  2720. <input type="file" accept="image/*" style="display: none" @change="beforeUpload1" />
  2721. </button>
  2722. </div>
  2723. <div>
  2724. <el-button @click="getAllBanner" v-if="isSysPic == false && cover.length == 0">选择系统文件</el-button>
  2725. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  2726. <img :src="cover[0].url" alt="" />
  2727. <div class="deletePic" @click="deleteSysPic">
  2728. <img src="../../../assets/icon/delete.png" alt="" />
  2729. </div>
  2730. </div>
  2731. </div>
  2732. </div>
  2733. <div class="fileCss">
  2734. <div>选择本地文件</div>
  2735. <div>选择系统文件</div>
  2736. </div>
  2737. </div>
  2738. <span slot="footer" class="dialog-footer">
  2739. <el-button @click="choosePicVisible = false">取 消</el-button>
  2740. <el-button type="primary" @click="choosePicVisible = false">确 定</el-button>
  2741. </span>
  2742. </el-dialog>
  2743. <el-dialog title="选择系统文件" :visible.sync="sysPicVisible" :append-to-body="true" width="710px"
  2744. :before-close="handleClose" class="dialog_diy">
  2745. <div class="cru_selectBox" style="margin: 0">
  2746. <div @click="getChoosePic(1)" class="cru_select" :class="chooseType == 1 ? 'cru_selected' : ''">
  2747. 绘画
  2748. </div>
  2749. <div @click="getChoosePic(2)" class="cru_select" :class="chooseType == 2 ? 'cru_selected' : ''">
  2750. 科技
  2751. </div>
  2752. <div @click="getChoosePic(3)" class="cru_select" :class="chooseType == 3 ? 'cru_selected' : ''">
  2753. 人文
  2754. </div>
  2755. <div @click="getChoosePic(4)" class="cru_select" :class="chooseType == 4 ? 'cru_selected' : ''">
  2756. 艺术
  2757. </div>
  2758. </div>
  2759. <div class="sysPicBox">
  2760. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  2761. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  2762. </div>
  2763. </div>
  2764. <span slot="footer" class="dialog-footer">
  2765. <el-button @click="sysPicVisible = false">取 消</el-button>
  2766. <el-button type="primary">确 定</el-button>
  2767. </span>
  2768. </el-dialog>
  2769. <el-dialog title="选择填空" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="800px"
  2770. :before-close="handleClose" class="dialog_diy dialog_diy3">
  2771. <div v-if="selectJson">
  2772. <div class="select_box1" v-if="selectSteps == 1">
  2773. <div class="select_box1_img">
  2774. <div class="select_box1_title">
  2775. <span>上传题目图片</span><span>提示:请将题目以图片的方式上传</span>
  2776. </div>
  2777. <div class="select_box1_add_img">
  2778. <div class="uploadFm" @click="addImg($event)" v-if="!selectJson.url">
  2779. <input type="file" accept="image/*" style="display: none" @change="beforeUploadSelect" />
  2780. <img src="../../../assets/icon/addPoster.png" alt="" />
  2781. </div>
  2782. <div class="isSysPic" v-else>
  2783. <img :src="selectJson.url" alt="" />
  2784. <div class="deletePic" @click="deleteSelectPic">
  2785. <img src="../../../assets/icon/delete.png" alt="" />
  2786. </div>
  2787. </div>
  2788. </div>
  2789. </div>
  2790. <div class="select_box1_select">
  2791. <div class="select_box1_title">
  2792. <span>添加选项</span><span>提示:请输入题目选项</span>
  2793. </div>
  2794. <div class="select_box1_select_box">
  2795. <el-input v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex"
  2796. v-model="selectJson.select[checkIndex]" placeholder="请输入选项..."
  2797. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  2798. <div class="select_box1_select_box_add">
  2799. <el-button style="margin: 10px 0px 0 0" type="primary" size="small" @click="addSelectList(selectJson)">
  2800. 添加</el-button>
  2801. <el-button type="primary" size="small" style="margin: 10px 0 0 0" @click="deleteSelectList(selectJson)"
  2802. v-if="selectJson.select && selectJson.select.length > 0">删除</el-button>
  2803. </div>
  2804. </div>
  2805. </div>
  2806. </div>
  2807. <div v-if="selectSteps == 2">
  2808. <div class="select_box2">
  2809. <div class="select_box2_title">设置答案</div>
  2810. <div class="select_box2_box">
  2811. <div class="select_box2_img">
  2812. <img :src="selectJson.url" alt="" />
  2813. </div>
  2814. <div class="select_box2_answer">
  2815. <div class="select_answer_title">根据题目选择对应答案</div>
  2816. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  2817. <span>{{ checkIndex + 1 }}、</span>
  2818. <el-select v-model="selectJson.answer[checkIndex]" placeholder="请选择正确答案">
  2819. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  2820. </el-option>
  2821. </el-select>
  2822. </div>
  2823. </div>
  2824. </div>
  2825. </div>
  2826. </div>
  2827. </div>
  2828. <span slot="footer" class="dialog-footer">
  2829. <el-button type="primary" @click="nextSelectSteps()" v-if="selectSteps == 1">下一步</el-button>
  2830. <el-button @click="selectSteps--" v-if="selectSteps == 2">上一步</el-button>
  2831. <el-button type="primary" @click="addSelectAnswer" v-if="selectSteps == 2">确 定</el-button>
  2832. </span>
  2833. </el-dialog>
  2834. <el-dialog title="添加评价" :visible.sync="dialogVisibleRate" :append-to-body="true" width="650px"
  2835. :before-close="handleClose" class="dialog_diy">
  2836. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  2837. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  2838. <div class="pjCss" style="width: 100%">
  2839. <div v-if="rateJson.length" class="elist_input" style="height: 360px; overflow: auto">
  2840. <div v-for="(eItem, eIndex) in rateJson" :key="eIndex" class="elist_input_box">
  2841. <span style="min-width: 100px; text-align: right">个人评价指标:</span>
  2842. <input type="input" v-model="eItem.value" placeholder="填写评价名称" />
  2843. <div class="remove" @click="deletRateList(eIndex)"></div>
  2844. <div style="width: 100%; display: flex">
  2845. <span style="min-width: 100px; text-align: right">评星等级:</span>
  2846. <el-rate v-model="eItem.score" disabled></el-rate>
  2847. </div>
  2848. <div class="elist_inptu_text" style="align-items: flex-start">
  2849. <span style="min-width: 100px; text-align: right">描述:</span>
  2850. <textarea class="rate_textarea" :rows="3" v-model="eItem.detail" placeholder="填写评价描述"></textarea>
  2851. </div>
  2852. </div>
  2853. </div>
  2854. <div class="addToolFun" @click="addRateList()">
  2855. <div class="addToolImg">
  2856. <img src="../../../assets/icon/add.png" alt />
  2857. </div>
  2858. <div>添加</div>
  2859. </div>
  2860. </div>
  2861. </div>
  2862. <span slot="footer" class="dialog-footer">
  2863. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  2864. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  2865. </span>
  2866. </el-dialog>
  2867. <el-dialog title="连词成句设置" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  2868. :before-close="handleClose" class="dialog_diy dialog_diy3">
  2869. <div>
  2870. <div class="sentenBox">
  2871. <div class="addSen" @click="addSt">添加题目</div>
  2872. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" style="padding-bottom: 20px">
  2873. <div class="sentenTopBox">
  2874. <div class="sentenTop">
  2875. <div>题目设置</div>
  2876. <div>
  2877. <el-input placeholder="请输入卡片内容" v-model="st.sentenceTitle"></el-input>
  2878. </div>
  2879. <div @click="addSen(stIndex)">添加</div>
  2880. </div>
  2881. <div class="remove1" v-if="sentenceList.length > 1" @click="deleteSentence(stIndex)"></div>
  2882. </div>
  2883. <div class="cardList">
  2884. <div v-if="st.addSentence.length > 0" class="cardBox">
  2885. <div class="isCard" v-for="(s, sIndex) in st.addSentence" :key="sIndex"
  2886. @click="setRightAnswer(s, stIndex, sIndex)">
  2887. <el-tooltip class="item" effect="light" :content="s" placement="top">
  2888. <div>{{ s }}</div>
  2889. </el-tooltip>
  2890. <div class="deleteWord" @click.stop="deleteS(s, stIndex, sIndex)">
  2891. <img src="../../../assets/icon/delete.png" alt="" />
  2892. </div>
  2893. </div>
  2894. </div>
  2895. <div class="card">
  2896. <img src="../../../assets/icon/conSentences/noTitle.png" alt="" />
  2897. </div>
  2898. </div>
  2899. <div class="rightCardBox">
  2900. <div>正确顺序</div>
  2901. <div class="rightCardList">
  2902. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  2903. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex" class="cardCss">
  2904. <div class="isCard1" @click="returnCard(r, stIndex, rIndex)">
  2905. <el-tooltip class="item" effect="light" :content="r" placement="top">
  2906. <div>{{ r }}</div>
  2907. </el-tooltip>
  2908. </div>
  2909. <div>{{ rIndex + 1 }}</div>
  2910. </div>
  2911. </div>
  2912. <div class="card" v-if="st.rightAnswer.length == 0">
  2913. <img src="../../../assets/icon/conSentences/noAnswer.png" alt="" />
  2914. </div>
  2915. </div>
  2916. </div>
  2917. </div>
  2918. </div>
  2919. </div>
  2920. <span slot="footer" class="dialog-footer">
  2921. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  2922. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  2923. </span>
  2924. </el-dialog>
  2925. <el-dialog title="添加表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  2926. :before-close="handleClose" class="dialog_diy">
  2927. <el-form>
  2928. <!-- <el-form-item label="文本标题">
  2929. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  2930. </el-form-item> -->
  2931. <div>表格内容</div>
  2932. <Table v-model="tableJson.text" @change="change"></Table>
  2933. </el-form>
  2934. <span slot="footer" class="dialog-footer">
  2935. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  2936. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  2937. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  2938. </span>
  2939. </el-dialog>
  2940. <el-dialog title="添加文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="800px"
  2941. :before-close="handleClose" class="dialog_diy">
  2942. <el-form>
  2943. <!-- <el-form-item label="文本标题">
  2944. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  2945. </el-form-item> -->
  2946. <div>文档内容</div>
  2947. <editor-bar v-model="wordJson.text"></editor-bar>
  2948. </el-form>
  2949. <span slot="footer" class="dialog-footer">
  2950. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  2951. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  2952. </span>
  2953. </el-dialog>
  2954. <el-dialog title="添加班级" :visible.sync="dialogVisibleMoreUpload" :append-to-body="true" width="30%"
  2955. :before-close="handleClose" class="dialog_diy">
  2956. <div style="
  2957. width: 100%;
  2958. display: flex;
  2959. flex-direction: row;
  2960. flex-wrap: nowrap;
  2961. align-items: center;
  2962. justify-content: center;
  2963. ">
  2964. <div>班级:</div>
  2965. <el-select multiple v-model="uploadJson" placeholder="请选择">
  2966. <el-option v-for="item in classJuri" :key="item.id" :label="item.name" :value="item.id">
  2967. </el-option>
  2968. </el-select>
  2969. </div>
  2970. <span slot="footer" class="dialog-footer">
  2971. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  2972. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  2973. </span>
  2974. </el-dialog>
  2975. <el-dialog title="设置随机码" :visible.sync="dialogVisibleInvite" :append-to-body="true" width="360px"
  2976. :before-close="handleClose" class="dialog_diy">
  2977. <div style="
  2978. width: 100%;
  2979. display: flex;
  2980. flex-direction: row;
  2981. flex-wrap: nowrap;
  2982. align-items: center;
  2983. justify-content: center;
  2984. ">
  2985. <div>随机码:</div>
  2986. <el-input v-model="icode" style="width: 240px" placeholder="请输入随机码"></el-input>
  2987. </div>
  2988. <span slot="footer" class="dialog-footer">
  2989. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  2990. <el-button type="primary" @click="addInvite">确定</el-button>
  2991. </span>
  2992. </el-dialog>
  2993. <el-dialog title="添加预设时间" :visible.sync="dialogVisiblePreTime" :append-to-body="true" width="30%"
  2994. :before-close="handleClose" class="dialog_diy">
  2995. <div>
  2996. <Time :preTime="preTime" @updateTimeNum="updateTime" v-if="dialogVisiblePreTime"></Time>
  2997. </div>
  2998. <span slot="footer" class="dialog-footer">
  2999. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  3000. <el-button type="primary" @click="addPreTime">确定</el-button>
  3001. </span>
  3002. </el-dialog>
  3003. <el-dialog title="导入目标" :visible.sync="dialogVisiblemb" :append-to-body="true" width="70%" :before-close="handleClose"
  3004. class="dialog_diy">
  3005. <div>
  3006. <div style="
  3007. width: 100%;
  3008. display: flex;
  3009. flex-direction: row;
  3010. flex-wrap: nowrap;
  3011. align-content: center;
  3012. align-items: center;
  3013. justify-content: space-between;
  3014. ">
  3015. <div style="
  3016. display: flex;
  3017. flex-flow: row nowrap;
  3018. align-items: flex-start;
  3019. width: 100%;
  3020. flex-direction: column;
  3021. flex-wrap: nowrap;
  3022. position: relative;
  3023. ">
  3024. <div class="e_box">
  3025. <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  3026. <div class="e_card_picture">
  3027. <img src="../../../assets/e_picture.png" />
  3028. </div>
  3029. <div class="e_card_name">
  3030. <span>{{ item.title }}</span>
  3031. </div>
  3032. <div class="e_card_btn">
  3033. <span @click="checkEva(item.id, 2)">导入</span>
  3034. </div>
  3035. </div>
  3036. <div class="addEva" @click="openT">
  3037. <img src="../../../assets/icon/addEva.png" alt="" />
  3038. </div>
  3039. <div v-if="evaJuri.length === 0" style="margin: 0 auto; color: #6e6e6e">
  3040. 暂无数据
  3041. </div>
  3042. </div>
  3043. </div>
  3044. </div>
  3045. </div>
  3046. <span slot="footer" class="dialog-footer">
  3047. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  3048. </span>
  3049. </el-dialog>
  3050. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="650px"
  3051. :before-close="handleClose" class="dialog_diy">
  3052. <div class="groupBox">
  3053. <div v-if="groupJson.group" class="groupContent">
  3054. <div class="groupTitle">请设置小组数量</div>
  3055. <div v-for="(item, index) in groupJson.group" :key="index" class="groupName">
  3056. <span class="groupn">组{{ index + 1 }}名称:</span>
  3057. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  3058. <div class="groupBtn">
  3059. <el-button type="primary" size="small" @click="addGroup(index)">
  3060. 添加</el-button>
  3061. <el-button type="primary" size="small" @click="deleteGroup(index)"
  3062. v-if="groupJson.group && groupJson.group.length > 1">删除</el-button>
  3063. </div>
  3064. </div>
  3065. </div>
  3066. <div class="groupContent">
  3067. <div class="groupTitle">请设置每组人数数量</div>
  3068. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  3069. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  3070. <el-input-number v-model="groupJson.number" :controls="false" :min="2" :max="10"
  3071. placeholder="2-10人以内"></el-input-number>
  3072. </div>
  3073. </div>
  3074. <span slot="footer" class="dialog-footer">
  3075. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  3076. <el-button type="primary" @click="addGroupJson">确定</el-button>
  3077. </span>
  3078. </el-dialog>
  3079. <interVideo :dialogVisibleVideo.sync="dialogVisibleVideo" :videoJson="videoJson" @add="addVideoJson"></interVideo>
  3080. </div>
  3081. </template>
  3082. <script>
  3083. import "../../../common/aws-sdk-2.235.1.min.js";
  3084. import $ from "jquery";
  3085. import EditorBar from "../../../components/tools/wangEnduit";
  3086. import Table from "../../../components/tools/table";
  3087. import Mind from "../../tools/jsmind2";
  3088. import Time from "../../tools/time.vue";
  3089. import Sunburst from "../../tools/sunburst";
  3090. import SeeBoard from "../../tools/seeBoard";
  3091. import weilaiData from "../components/weilai.js";
  3092. import sourceDialog from "../teacherSource/dialog.vue";
  3093. import interVideo from "../interVideo/index.vue";
  3094. export default {
  3095. components: { EditorBar, Mind, Time, Sunburst, SeeBoard, Table, sourceDialog, interVideo },
  3096. data() {
  3097. return {
  3098. checkAll: false,
  3099. chooseType: 1,
  3100. checkedCities: [],
  3101. isIndeterminate: true,
  3102. isSysPic: false,
  3103. steps: 1,
  3104. nbOrder: 0,
  3105. courseId: "",
  3106. chapToolsType: 0,
  3107. chapTools: [
  3108. {
  3109. tools: [],
  3110. toolDetail: "",
  3111. },
  3112. ],
  3113. line: "",
  3114. lineTitle: "",
  3115. sysPic: [],
  3116. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  3117. isPushTitleList: [],
  3118. lineCount: 0,
  3119. lineType: 0,
  3120. chapCount: 0,
  3121. courseName: "",
  3122. isTeacherSee: true,
  3123. courseText: "",
  3124. preTime: 0,
  3125. formLabelWidth: "100px",
  3126. choosePicVisible: false,
  3127. sysPicVisible: false,
  3128. uploadLoading1: false,
  3129. noneBtnImg: false,
  3130. updateBoolean2: false,
  3131. unitIndex: 0,
  3132. taskCount: 0,
  3133. dialogVisible: false,
  3134. dialogVisible1: false,
  3135. dialogVisible2: false,
  3136. dialogVisible3: false,
  3137. dialogVisible4: false,
  3138. dialogVisible5: false,
  3139. dialogVisible6: false,
  3140. dialogVisible7: false,
  3141. dialogVisible8: false,
  3142. dialogVisible9: false,
  3143. dialogVisibleClass: false,
  3144. dialogVisibleMember: false,
  3145. dialogVisibleMp3: false,
  3146. dialogVisibleSelect: false,
  3147. dialogVisibleSentence: false,
  3148. dialogVisibleRate: false,
  3149. dialogVisibleChoice: false,
  3150. dialogVisiblemb: false,
  3151. dialogVisibleInvite: false,
  3152. dialogVisibleSource: false,
  3153. dialogVisibleVideo: false,
  3154. isClickColor: 0,
  3155. publicTool: 0,
  3156. searchPeople: "",
  3157. searchTN: "",
  3158. userid: this.$route.query.userid,
  3159. oid: this.$route.query.oid,
  3160. org: this.$route.query.org,
  3161. role: this.$route.query.role,
  3162. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  3163. dialogVisibleTable: false,
  3164. dialogVisibleWord: false,
  3165. tableJson: { text: "" },
  3166. wordJson: { text: "" },
  3167. dialogVisibleMoreUpload: false,
  3168. dialogVisiblePreTime: false,
  3169. uploadJson: [],
  3170. classJuri: [],
  3171. cover: [], //课程封面
  3172. myWord: [],
  3173. evaJuri: [],
  3174. evalua: "",
  3175. targetArray: [],
  3176. eTitle: "",
  3177. eJson: {},
  3178. fid: "", //一级
  3179. sid: "", //二级
  3180. tid: "", //二级
  3181. typeMode: 1,
  3182. eJSONNum: 0,
  3183. data: {
  3184. meta: {
  3185. name: "example",
  3186. author: "dd@163.com",
  3187. version: "0.2",
  3188. },
  3189. format: "node_array",
  3190. data: [{ id: "root", isroot: true, topic: "" }],
  3191. },
  3192. askJson: {
  3193. askCount: 1,
  3194. askTitle: "",
  3195. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3196. },
  3197. testJson: {},
  3198. selectJson: {},
  3199. rateJson: [],
  3200. unitJson2: [],
  3201. unitJson: [
  3202. {
  3203. dyName: "", //单元标题
  3204. chapterInfo: [
  3205. {
  3206. isread: false,
  3207. chapterid: this.guid(),
  3208. title: "",
  3209. courseName: "",
  3210. taskJson: [
  3211. {
  3212. task: "",
  3213. taskDetail: "",
  3214. chapterData: [],
  3215. toolChoose: [
  3216. {
  3217. tool: [],
  3218. toolDetail: "",
  3219. toolType: 0,
  3220. askCount: 1,
  3221. askTitle: "",
  3222. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3223. },
  3224. ],
  3225. toolText: "",
  3226. isShowTools: false,
  3227. askCount: 1,
  3228. isFold: 0,
  3229. askTitle: "",
  3230. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3231. checkJson: [{ checkCount: [], checkPerent: [] }],
  3232. homeworkList: [],
  3233. },
  3234. ],
  3235. itemCount: 1,
  3236. fileList1: [],
  3237. video: [],
  3238. testData: [],
  3239. pData: [],
  3240. templateArray: [],
  3241. },
  3242. ],
  3243. },
  3244. ],
  3245. studentJuri: [],
  3246. teacherJuri: [],
  3247. checkboxList: [],
  3248. checkboxList2: [],
  3249. checkboxList3: [],
  3250. classSearch: "",
  3251. number: "",
  3252. tTitle: "",
  3253. tdetail: "",
  3254. templateC: {},
  3255. AttText: {},
  3256. AttTextType: 0,
  3257. AttTextIndex: 0,
  3258. cTemplate: "",
  3259. CourseType: [],
  3260. CourseType2: [],
  3261. CourseTypeJson: {},
  3262. courseTypeId: [],
  3263. courseTypeSon: [],
  3264. clearArray: [],
  3265. pTypeCheck: [],
  3266. pTypeCheckName: [],
  3267. loading: false,
  3268. toolType: 0,
  3269. inputShow: true,
  3270. inputShow2: true,
  3271. toolIndex: 0,
  3272. cidType: 0,
  3273. answerQ: "",
  3274. grade: [],
  3275. grade2: [],
  3276. courseUserid: "",
  3277. timer: null,
  3278. timer2: null,
  3279. checkId: "",
  3280. isDelete: 1,
  3281. addindex: 0,
  3282. selectSteps: 1,
  3283. groupJson: {},
  3284. dialogVisibleGroup: false,
  3285. rightBoxHeight: 0,
  3286. ManAarray: [],
  3287. checkBoolean: false,
  3288. inviteCode: [],
  3289. inviteId: "",
  3290. icode: "",
  3291. easyArray: [2, 4],
  3292. sourceData: {},
  3293. videoJson: {}
  3294. };
  3295. },
  3296. computed: {
  3297. // rightBoxHeight: function () {
  3298. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  3299. // },
  3300. offsetLetfPx: function () {
  3301. //addnum可以直接在模板语法里面用,相当于data内的值
  3302. return (
  3303. $(".cru_select")[this.unitIndex] &&
  3304. $(".cru_select")[this.unitIndex].offsetLeft
  3305. );
  3306. },
  3307. getMan2() {
  3308. return function (people) {
  3309. let _people = people;
  3310. let _people2 = "";
  3311. if (this.ManAarray.length) {
  3312. for (var i = 0; i < this.ManAarray.length; i++) {
  3313. if (this.ManAarray[i].userid == people) {
  3314. _people2 = this.ManAarray[i].name;
  3315. break;
  3316. }
  3317. }
  3318. }
  3319. if (people == this.courseUserid) {
  3320. return "";
  3321. }
  3322. return this.ManAarray.length ? _people2 : "";
  3323. };
  3324. },
  3325. isInvite() {
  3326. return function (cid) {
  3327. let array = [];
  3328. for (var i = 0; i < this.inviteCode.length; i++) {
  3329. array.push(this.inviteCode[i].cid);
  3330. }
  3331. return array.indexOf(cid) != -1;
  3332. };
  3333. },
  3334. getInviteCodeC() {
  3335. return function (cid) {
  3336. let array = [];
  3337. for (var i = 0; i < this.inviteCode.length; i++) {
  3338. array.push(this.inviteCode[i].cid);
  3339. }
  3340. return this.inviteCode[array.indexOf(cid)].ic;
  3341. };
  3342. },
  3343. getClassC() {
  3344. return function (c) {
  3345. let _c2 = "";
  3346. if (this.grade.length) {
  3347. for (var i = 0; i < this.grade.length; i++) {
  3348. if (this.grade[i].id == c) {
  3349. _c2 = this.grade[i].name;
  3350. break;
  3351. }
  3352. }
  3353. }
  3354. return this.grade.length ? _c2 : "";
  3355. };
  3356. },
  3357. },
  3358. watch: {
  3359. unitIndex(newValue, oldValue) {
  3360. if (this.isDelete == 2) {
  3361. this.isDelete = 1;
  3362. return;
  3363. }
  3364. if (this.cid != "") {
  3365. let _unitIndex = oldValue;
  3366. if (
  3367. JSON.stringify(this.unitJson2[_unitIndex]) ==
  3368. JSON.stringify(this.unitJson[_unitIndex])
  3369. ) {
  3370. this.$refs.rightboxR.scrollTop = 0;
  3371. return;
  3372. }
  3373. let cPan = 1;
  3374. for (
  3375. var j = 0;
  3376. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  3377. j++
  3378. ) {
  3379. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  3380. j
  3381. ].proVisible = false;
  3382. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  3383. j
  3384. ].proVisible2 = false;
  3385. if (
  3386. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  3387. .length > 1
  3388. ) {
  3389. for (
  3390. var z = 0;
  3391. z <
  3392. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  3393. .length;
  3394. z++
  3395. ) {
  3396. if (
  3397. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  3398. .toolChoose[z].tool.length
  3399. ) {
  3400. this.$message.error("请把工具添加完整");
  3401. cPan = 2;
  3402. break;
  3403. }
  3404. }
  3405. }
  3406. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  3407. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  3408. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  3409. (ele) => {
  3410. return ele.value != "";
  3411. }
  3412. );
  3413. }
  3414. }
  3415. if (cPan == 2) {
  3416. this.unitIndex = oldValue;
  3417. return;
  3418. }
  3419. for (var i = 0; i < this.unitJson.length; i++) {
  3420. if (this.addindex != i) {
  3421. delete this.unitJson[i].isUpdate;
  3422. }
  3423. }
  3424. this.$refs.rightboxR.scrollTop = 0;
  3425. this.addindex = -1;
  3426. let params = [
  3427. {
  3428. cid: this.cid,
  3429. chapters: JSON.stringify(this.unitJson),
  3430. uid: this.userid,
  3431. unitIndex: _unitIndex,
  3432. },
  3433. ];
  3434. this.ajax
  3435. .post(this.$store.state.api + "updateWorkNew4", params)
  3436. .then((res) => {
  3437. // this.$message({
  3438. // message: "修改成功",
  3439. // type: "success",
  3440. // });
  3441. // this.courseId = this.cid;
  3442. })
  3443. .catch((err) => {
  3444. this.$message.error("网络不佳");
  3445. console.error(err);
  3446. });
  3447. }
  3448. },
  3449. steps(newValue) {
  3450. if (newValue == 4) {
  3451. this.goTo(
  3452. "/course?userid=" +
  3453. this.userid +
  3454. "&oid=" +
  3455. this.oid +
  3456. "&org=" +
  3457. this.org +
  3458. "&role=" +
  3459. this.role
  3460. );
  3461. }
  3462. }
  3463. },
  3464. methods: {
  3465. setMan() {
  3466. // let teacherJuri = this.teacherJuri2;
  3467. this.ManAarray = [];
  3468. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  3469. if (_user.indexOf(this.courseUserid || this.userid) == -1) {
  3470. _user.push(this.courseUserid || this.userid);
  3471. }
  3472. let params = {
  3473. uid: _user.join(","),
  3474. };
  3475. this.ajax
  3476. .get(this.$store.state.api + "getAllUserById", params)
  3477. .then((res) => {
  3478. let teacherJuri = res.data[0];
  3479. this.ManAarray = teacherJuri;
  3480. })
  3481. .catch((err) => {
  3482. console.error(err);
  3483. });
  3484. },
  3485. previewImg(url) {
  3486. this.$hevueImgPreview(url);
  3487. },
  3488. scrollChange() {
  3489. this.rightBoxHeight = $(".rightBox")[0].scrollHeight;
  3490. // document.querySelector('.course_left').scrollHeight
  3491. // document.querySelector('.stepsBottom2').scrollHeight
  3492. let stepsBottom2 = $(".stepsBottom2")[0].clientHeight
  3493. // let client = $(".course_left")[0].clientHeight - stepsBottom2
  3494. let client = $(".course_left")[0].clientHeight - stepsBottom2
  3495. let top = $(".rightBox")[0].scrollTop - 400 - stepsBottom2
  3496. // if (top < client) {
  3497. // $('.stepsBottom2')[0].style.position = 'absolute'
  3498. // $('.stepsBottom2')[0].style.top = 0 + 'px'
  3499. // // $('.stepsBottom2')[0].style.top = client + 'px'
  3500. // } else
  3501. if (top > 0) {
  3502. let top = $(".rightBox")[0].offsetTop
  3503. $('.stepsBottom2')[0].style.position = 'fixed'
  3504. $('.stepsBottom2')[0].style.top = top + 'px'
  3505. // $('.stepsBottom2')[0].style.top = top + 'px'
  3506. } else {
  3507. $('.stepsBottom2')[0].style.position = 'absolute'
  3508. $('.stepsBottom2')[0].style.top = '0px'
  3509. }
  3510. },
  3511. handleCheckAllChange(val) {
  3512. this.checkedCities = val ? cityOptions : [];
  3513. this.isIndeterminate = false;
  3514. },
  3515. handleCheckedCitiesChange(value) {
  3516. let checkedCount = value.length;
  3517. this.checkAll = checkedCount === this.cities.length;
  3518. this.isIndeterminate =
  3519. checkedCount > 0 && checkedCount < this.cities.length;
  3520. },
  3521. addHw(e) {
  3522. var el = e.currentTarget;
  3523. el.getElementsByTagName("input")[0].click();
  3524. },
  3525. change(val) {
  3526. console.log(val);
  3527. },
  3528. change2(val) {
  3529. console.log(val);
  3530. this.$forceUpdate();
  3531. },
  3532. handleClose(done) {
  3533. done();
  3534. },
  3535. imgChange2(i, j) {
  3536. var _tmp = this.testJson.testJson[i].checkList[j];
  3537. this.noneBtnImg = _tmp.length >= 1;
  3538. },
  3539. imgChange3(i) {
  3540. var _tmp = this.testJson.testJson[i];
  3541. this.noneBtnImg = _tmp.length >= 1;
  3542. },
  3543. imgChange1(file, fileList, type, itemTaskIndex) {
  3544. if (type == 1) {
  3545. var _tmp = this.cover;
  3546. } else if (
  3547. type == 2 ||
  3548. type == 3 ||
  3549. type == 6 ||
  3550. type == 7 ||
  3551. type == 8
  3552. ) {
  3553. var _tmp =
  3554. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3555. .chapterData;
  3556. } else if (type == 4) {
  3557. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  3558. } else {
  3559. var _tmp =
  3560. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3561. .homeworkList;
  3562. }
  3563. this.noneBtnImg = _tmp.length >= 1;
  3564. },
  3565. goTo(path) {
  3566. this.$router.push(path);
  3567. },
  3568. guid() {
  3569. var _num,
  3570. i,
  3571. _guid = "";
  3572. for (i = 0; i < 32; i++) {
  3573. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  3574. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  3575. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  3576. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  3577. _guid += "-";
  3578. }
  3579. }
  3580. return _guid;
  3581. },
  3582. lastSteps() {
  3583. this.goTo(
  3584. "/course?userid=" +
  3585. this.userid +
  3586. "&oid=" +
  3587. this.oid +
  3588. "&org=" +
  3589. this.org +
  3590. "&role=" +
  3591. this.role
  3592. );
  3593. },
  3594. nextSteps() {
  3595. if (this.cid == "" || this.cid == undefined) {
  3596. if (this.courseName == "") {
  3597. this.$message.error("请将信息填写完整");
  3598. return;
  3599. } else {
  3600. this.addWork();
  3601. this.steps = 4
  3602. }
  3603. } else {
  3604. if (this.courseName == "") {
  3605. this.$message.error("请将信息填写完整");
  3606. return;
  3607. } else {
  3608. if (this.userid != this.courseUserid && this.role != '1') {
  3609. this.updateWork2();
  3610. } else {
  3611. this.updateWork();
  3612. }
  3613. this.steps = 4
  3614. }
  3615. }
  3616. this.$refs.stepBox.scrollTop = 0;
  3617. },
  3618. unitSet(i) {
  3619. this.unitIndex = i;
  3620. // this.$refs.rightboxR.scrollTop = 0;
  3621. },
  3622. time() {
  3623. if (!this.now) {
  3624. this.now = new Date().getTime();
  3625. return true;
  3626. } else {
  3627. let time = new Date().getTime();
  3628. if (time - this.now > 3000) {
  3629. this.now = time;
  3630. return true;
  3631. } else {
  3632. return false;
  3633. }
  3634. }
  3635. },
  3636. deleteUnit(i) {
  3637. var _this = this;
  3638. if (_this.time()) {
  3639. _this
  3640. .$confirm("确定删除此单元吗?", "提示", {
  3641. confirmButtonText: "确定",
  3642. cancelButtonText: "取消",
  3643. type: "warning",
  3644. })
  3645. .then(() => {
  3646. _this.isDelete = 2;
  3647. // _this.unitIndex = _this.unitIndex - 1;
  3648. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  3649. // _this.$message.success("删除成功");
  3650. })
  3651. .catch(() => {
  3652. return;
  3653. });
  3654. }
  3655. },
  3656. deleteWork(chapid) {
  3657. let params = [
  3658. {
  3659. cid: this.cid,
  3660. chapters: JSON.stringify(this.unitJson),
  3661. uid: this.userid,
  3662. chapid: chapid,
  3663. },
  3664. ];
  3665. this.ajax
  3666. .post(this.$store.state.api + "deleteWork", params)
  3667. .then((res) => {
  3668. this.$message({
  3669. message: "删除成功",
  3670. type: "success",
  3671. });
  3672. this.unitJson.splice(this.unitIndex, 1);
  3673. this.unitIndex = this.unitIndex - 1;
  3674. })
  3675. .catch((err) => {
  3676. this.$message.error("网络不佳");
  3677. console.error(err);
  3678. });
  3679. },
  3680. deleteTool(itemTaskIndex, i) {
  3681. var _this = this;
  3682. if (_this.time()) {
  3683. _this
  3684. .$confirm("确定删除此工具吗?", "提示", {
  3685. confirmButtonText: "确定",
  3686. cancelButtonText: "取消",
  3687. type: "warning",
  3688. })
  3689. .then(() => {
  3690. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  3691. itemTaskIndex
  3692. ].toolChoose.splice(i, 1);
  3693. _this.$message.success("删除成功");
  3694. })
  3695. .catch(() => {
  3696. return;
  3697. });
  3698. }
  3699. },
  3700. deleteSentence(i) {
  3701. var _this = this;
  3702. if (_this.time()) {
  3703. _this
  3704. .$confirm("确定删除此题目吗?", "提示", {
  3705. confirmButtonText: "确定",
  3706. cancelButtonText: "取消",
  3707. type: "warning",
  3708. })
  3709. .then(() => {
  3710. _this.sentenceList.splice(i, 1);
  3711. _this.$message.success("删除成功");
  3712. })
  3713. .catch(() => {
  3714. return;
  3715. });
  3716. }
  3717. },
  3718. deleteS(s, i, j) {
  3719. this.sentenceList[i].addSentence.splice(j, 1);
  3720. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  3721. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  3722. this.sentenceList[i].rightAnswer.splice(a, 1);
  3723. }
  3724. },
  3725. openT() {
  3726. window.parent.postMessage({ tools: "25" }, "*");
  3727. },
  3728. deleteTask(i) {
  3729. var _this = this;
  3730. //((_this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length - 1) == i) ? "确定删除此任务吗?" : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?"
  3731. _this
  3732. .$confirm("确定删除此任务吗?" , "提示", {
  3733. confirmButtonText: "确定",
  3734. cancelButtonText: "取消",
  3735. type: "warning",
  3736. })
  3737. .then(() => {
  3738. if(i == 0){
  3739. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[i+1].chapterData = JSON.parse(JSON.stringify(_this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[i].chapterData))
  3740. }
  3741. _this.$forceUpdate();
  3742. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(
  3743. i,
  3744. 1
  3745. );
  3746. _this.$message.success("删除成功");
  3747. // this.$nextTick(() => {
  3748. // $('.stepsBottom2')[0].style.transition = 'unset'
  3749. // setTimeout(() => {
  3750. // let stepsBottom2 = $(".stepsBottom2")[0].clientHeight
  3751. // let client = $(".basic_box2")[0].clientHeight - stepsBottom2 - 100
  3752. // let top = $('.stepsBottom2')[0].offsetTop - 20
  3753. // if (top > client) {
  3754. // $('.stepsBottom2')[0].style.top = client + 'px'
  3755. // }
  3756. // $('.stepsBottom2')[0].style.transition = 'all .5s'
  3757. // this.$forceUpdate()
  3758. // }, 500)
  3759. // })
  3760. })
  3761. .catch(() => {
  3762. return;
  3763. });
  3764. },
  3765. handlePictureCardPreview(file) {
  3766. this.dialogImageUrl = file.url;
  3767. },
  3768. clean(i, c) {
  3769. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  3770. },
  3771. handle_remove1(file, fileList, type) {
  3772. var _tmp = this.cover;
  3773. // for (var i = 0, len = _tmp.length; i < len; i++) {
  3774. // if (_tmp[i].uid == file.uid) {
  3775. // _tmp.splice(i, 1);
  3776. // break;
  3777. // }
  3778. // this.cover = _tmp;
  3779. // }
  3780. this.cover = [];
  3781. this.noneBtnImg = this.cover.length >= 1;
  3782. this.isSysPic = false;
  3783. this.$forceUpdate();
  3784. },
  3785. addImg(e) {
  3786. var el = e.currentTarget;
  3787. el.getElementsByTagName("input")[0].click();
  3788. e.target.value = "";
  3789. },
  3790. addChaptersTools(i) {
  3791. this.chapTools = [
  3792. {
  3793. tools: [],
  3794. toolDetail: "",
  3795. },
  3796. ];
  3797. this.chapCount = i;
  3798. this.dialogVisible4 = true;
  3799. },
  3800. isNoFinsh() {
  3801. this.$message.warning("功能正在开发中");
  3802. },
  3803. addAttText(i) {
  3804. this.AttText = {
  3805. title: "",
  3806. text: "",
  3807. };
  3808. this.taskCount = i;
  3809. this.AttTextType = 0;
  3810. this.$forceUpdate();
  3811. this.dialogVisible6 = true;
  3812. },
  3813. openLine(i) {
  3814. this.line = "";
  3815. this.lineCount = i;
  3816. this.lineType = 0;
  3817. this.$forceUpdate();
  3818. this.dialogVisible7 = true;
  3819. },
  3820. pasteLine(i) {
  3821. navigator.clipboard
  3822. .readText()
  3823. .then((v) => {
  3824. console.log("获取剪贴板成功:", v);
  3825. const html = v;
  3826. const regex = /src="(.*?)"/g;
  3827. const match = regex.exec(html);
  3828. if (match && match[1]) {
  3829. console.log(match[1]);
  3830. this.$message.success("粘贴成功")
  3831. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3832. i
  3833. ].chapterData.push({
  3834. name: "链接",
  3835. title: "嵌入代码",
  3836. url: match[1],
  3837. type: 8,
  3838. });
  3839. } else {
  3840. // console.log("未找到包含 src 属性的 iframe");
  3841. this.$message.error("没有找到粘贴的链接")
  3842. }
  3843. })
  3844. .catch((v) => {
  3845. console.log("获取剪贴板失败: ", v);
  3846. });
  3847. },
  3848. openSource(i) {
  3849. this.lineCount = i;
  3850. this.sourceData = {}
  3851. this.dialogVisibleSource = true;
  3852. },
  3853. addSource() {
  3854. if (!Object.keys(this.sourceData).length) {
  3855. this.$message.error("请选择要上传的资源")
  3856. return;
  3857. }
  3858. let keys = Object.keys(this.sourceData)
  3859. for (var i = 0; i < keys.length; i++) {
  3860. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3861. this.lineCount
  3862. ].chapterData.push({
  3863. name: "链接",
  3864. title: this.sourceData[keys[i]].name,
  3865. url: this.sourceData[keys[i]].url,
  3866. type: 8,
  3867. });
  3868. }
  3869. this.$forceUpdate();
  3870. this.dialogVisibleSource = false;
  3871. },
  3872. deleteM(i, j) {
  3873. this.testJson.testJson[i].timuList.splice(j, 1);
  3874. },
  3875. beforeUploadTiMu(event, i) {
  3876. const loading = this.openLoading();
  3877. var file = event.target.files[0];
  3878. var credentials = {
  3879. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  3880. secretAccessKey: "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",
  3881. }; //秘钥形式的登录上传
  3882. window.AWS.config.update(credentials);
  3883. window.AWS.config.region = "cn-northwest-1"; //设置区域
  3884. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  3885. var _this = this;
  3886. if (file) {
  3887. var params = {
  3888. Key:
  3889. file.name.split(".")[0] +
  3890. new Date().getTime() +
  3891. "." +
  3892. file.name.split(".")[file.name.split(".").length - 1],
  3893. ContentType: file.type,
  3894. Body: file,
  3895. "Access-Control-Allow-Credentials": "*",
  3896. ACL: "public-read",
  3897. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  3898. var options = {
  3899. partSize: 2048 * 1024 * 1024,
  3900. queueSize: 2,
  3901. leavePartsOnError: true,
  3902. };
  3903. bucket
  3904. .upload(params, options)
  3905. .on("httpUploadProgress", function (evt) {
  3906. //这里可以写进度条
  3907. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  3908. })
  3909. .send(function (err, data) {
  3910. loading.close();
  3911. if (err) {
  3912. _this.$message.error("上传失败");
  3913. } else {
  3914. if (_this.testJson.testJson[i].timuList) {
  3915. _this.testJson.testJson[i].timuList.push({
  3916. src: data.Location,
  3917. });
  3918. } else {
  3919. _this.testJson.testJson[i].timuList = [];
  3920. _this.testJson.testJson[i].timuList.push({
  3921. src: data.Location,
  3922. });
  3923. }
  3924. _this.imgChange3(i);
  3925. _this.$forceUpdate();
  3926. }
  3927. });
  3928. }
  3929. },
  3930. beforeUploadTi(event, i, j) {
  3931. const loading = this.openLoading();
  3932. var file = event.target.files[0];
  3933. var credentials = {
  3934. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  3935. secretAccessKey: "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",
  3936. }; //秘钥形式的登录上传
  3937. window.AWS.config.update(credentials);
  3938. window.AWS.config.region = "cn-northwest-1"; //设置区域
  3939. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  3940. var _this = this;
  3941. if (file) {
  3942. var params = {
  3943. Key:
  3944. file.name.split(".")[0] +
  3945. new Date().getTime() +
  3946. "." +
  3947. file.name.split(".")[file.name.split(".").length - 1],
  3948. ContentType: file.type,
  3949. Body: file,
  3950. "Access-Control-Allow-Credentials": "*",
  3951. ACL: "public-read",
  3952. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  3953. var options = {
  3954. partSize: 2048 * 1024 * 1024,
  3955. queueSize: 2,
  3956. leavePartsOnError: true,
  3957. };
  3958. bucket
  3959. .upload(params, options)
  3960. .on("httpUploadProgress", function (evt) {
  3961. //这里可以写进度条
  3962. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  3963. })
  3964. .send(function (err, data) {
  3965. loading.close();
  3966. if (err) {
  3967. _this.$message.error("上传失败");
  3968. } else {
  3969. _this.testJson.testJson[i].checkList[j] = {};
  3970. _this.testJson.testJson[i].checkList[j].src = data.Location;
  3971. _this.testJson.testJson[i].checkList[j].imgType = 1;
  3972. _this.imgChange2(i, j);
  3973. _this.$forceUpdate();
  3974. }
  3975. });
  3976. }
  3977. },
  3978. beforeUpload1(event, type) {
  3979. // const loading = this.openLoading();
  3980. var file = event.target.files[0];
  3981. var credentials = {
  3982. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  3983. secretAccessKey: "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",
  3984. }; //秘钥形式的登录上传
  3985. window.AWS.config.update(credentials);
  3986. window.AWS.config.region = "cn-northwest-1"; //设置区域
  3987. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  3988. var _this = this;
  3989. if (file) {
  3990. var params = {
  3991. Key:
  3992. file.name.split(".")[0] +
  3993. new Date().getTime() +
  3994. "." +
  3995. file.name.split(".")[file.name.split(".").length - 1],
  3996. ContentType: file.type,
  3997. Body: file,
  3998. "Access-Control-Allow-Credentials": "*",
  3999. ACL: "public-read",
  4000. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4001. var options = {
  4002. partSize: 2048 * 1024 * 1024,
  4003. queueSize: 2,
  4004. leavePartsOnError: true,
  4005. };
  4006. bucket
  4007. .upload(params, options)
  4008. .on("httpUploadProgress", function (evt) {
  4009. //这里可以写进度条
  4010. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4011. })
  4012. .send(function (err, data) {
  4013. // loading.close();
  4014. if (err) {
  4015. // var a = _this.$refs.upload1.uploadFiles;
  4016. // a.splice(a.length - 1, a.length);
  4017. _this.$message.error("上传失败");
  4018. } else {
  4019. _this.cover.push({
  4020. name: file.name,
  4021. url: data.Location,
  4022. uid: file.uid,
  4023. });
  4024. _this.imgChange1(null, null, 1, null);
  4025. _this.choosePicVisible = false;
  4026. console.log(data.Location);
  4027. }
  4028. });
  4029. }
  4030. },
  4031. beforeUploadSelect(event, type) {
  4032. // const loading = this.openLoading();
  4033. var file = event.target.files[0];
  4034. var credentials = {
  4035. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4036. secretAccessKey: "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",
  4037. }; //秘钥形式的登录上传
  4038. window.AWS.config.update(credentials);
  4039. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4040. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4041. var _this = this;
  4042. if (file) {
  4043. var params = {
  4044. Key:
  4045. file.name.split(".")[0] +
  4046. new Date().getTime() +
  4047. "." +
  4048. file.name.split(".")[file.name.split(".").length - 1],
  4049. ContentType: file.type,
  4050. Body: file,
  4051. "Access-Control-Allow-Credentials": "*",
  4052. ACL: "public-read",
  4053. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4054. var options = {
  4055. partSize: 2048 * 1024 * 1024,
  4056. queueSize: 2,
  4057. leavePartsOnError: true,
  4058. };
  4059. bucket
  4060. .upload(params, options)
  4061. .on("httpUploadProgress", function (evt) {
  4062. //这里可以写进度条
  4063. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4064. })
  4065. .send(function (err, data) {
  4066. // loading.close();
  4067. if (err) {
  4068. _this.$message.error("上传失败");
  4069. } else {
  4070. _this.selectJson.url = data.Location;
  4071. console.log(data.Location);
  4072. }
  4073. });
  4074. }
  4075. },
  4076. chooseSysPic(p) {
  4077. this.cover.push({
  4078. name: "系统图片.png",
  4079. url: p,
  4080. });
  4081. this.imgChange1(null, null, 1, null);
  4082. this.isSysPic = true;
  4083. this.sysPicVisible = false;
  4084. },
  4085. beforeUpload(data) {
  4086. this.$refs.upload1.uploadFiles;
  4087. this.uploadLoading1 = true;
  4088. var file = data.file;
  4089. var credentials = {
  4090. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4091. secretAccessKey: "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",
  4092. }; //秘钥形式的登录上传
  4093. window.AWS.config.update(credentials);
  4094. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4095. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4096. var _this = this;
  4097. if (file) {
  4098. var params = {
  4099. Key:
  4100. file.name.split(".")[0] +
  4101. new Date().getTime() +
  4102. "." +
  4103. file.name.split(".")[file.name.split(".").length - 1],
  4104. ContentType: file.type,
  4105. Body: file,
  4106. "Access-Control-Allow-Credentials": "*",
  4107. ACL: "public-read",
  4108. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4109. var options = {
  4110. partSize: 2048 * 1024 * 1024,
  4111. queueSize: 2,
  4112. leavePartsOnError: true,
  4113. };
  4114. bucket
  4115. .upload(params, options)
  4116. .on("httpUploadProgress", function (evt) {
  4117. //这里可以写进度条
  4118. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4119. })
  4120. .send(function (err, data) {
  4121. _this.uploadLoading1 = false;
  4122. if (err) {
  4123. // var a = _this.$refs.upload1.uploadFiles;
  4124. // a.splice(a.length - 1, a.length);
  4125. _this.$message.error("上传失败");
  4126. } else {
  4127. //上传成功处理
  4128. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  4129. name: file.name,
  4130. url: data.Location,
  4131. uid: file.uid,
  4132. });
  4133. _this.imgChange();
  4134. console.log(data.Location);
  4135. }
  4136. });
  4137. }
  4138. },
  4139. onExceed() {
  4140. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  4141. },
  4142. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  4143. // const loading = this.openLoading();
  4144. var file = event.target.files[0];
  4145. var credentials = {
  4146. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4147. secretAccessKey: "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",
  4148. }; //秘钥形式的登录上传
  4149. window.AWS.config.update(credentials);
  4150. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4151. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4152. var _this = this;
  4153. if (type == 3) {
  4154. var b = [
  4155. "DOC",
  4156. "DOCX",
  4157. "DOCM",
  4158. "DOTM",
  4159. "DOTX",
  4160. "PPTX",
  4161. "PPSX",
  4162. "PPT",
  4163. "PPS",
  4164. "PPTM",
  4165. "POTM",
  4166. "PPAM",
  4167. "POTX",
  4168. "PPSM",
  4169. ];
  4170. if (
  4171. b.indexOf(
  4172. file.name
  4173. .split(".")
  4174. [file.name.split(".").length - 1].toLocaleUpperCase()
  4175. ) != -1
  4176. ) {
  4177. if (file.size / 1024 / 1024 > 80) {
  4178. this.$message.error("上传文件大于80兆,请重新选择文件!");
  4179. this.inputShow = true;
  4180. // var a = _this.$refs.upload1.uploadFiles;
  4181. // a.splice(a.length - 1, a.length);
  4182. // loading.close();
  4183. return;
  4184. }
  4185. } else if (
  4186. file.name
  4187. .split(".")
  4188. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  4189. ) {
  4190. if (file.size / 1024 / 1024 > 80) {
  4191. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  4192. this.inputShow = true;
  4193. // var a = _this.$refs.upload1.uploadFiles;
  4194. // a.splice(a.length - 1, a.length);
  4195. // loading.close();
  4196. return;
  4197. }
  4198. }
  4199. }
  4200. this.inputShow = false;
  4201. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4202. itemTaskIndex
  4203. ].progress = 0;
  4204. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4205. itemTaskIndex
  4206. ].proVisible = true;
  4207. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4208. itemTaskIndex
  4209. ].isFinishSize = 0;
  4210. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4211. itemTaskIndex
  4212. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  4213. _this.$forceUpdate();
  4214. if (file) {
  4215. var params = {
  4216. Key:
  4217. file.name.split(".")[0] +
  4218. new Date().getTime() +
  4219. "." +
  4220. file.name.split(".")[file.name.split(".").length - 1],
  4221. ContentType: file.type,
  4222. Body: file,
  4223. "Access-Control-Allow-Credentials": "*",
  4224. ACL: "public-read",
  4225. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4226. var options = {
  4227. partSize: 2048 * 1024 * 1024,
  4228. queueSize: 2,
  4229. leavePartsOnError: true,
  4230. };
  4231. bucket
  4232. .upload(params, options)
  4233. .on("httpUploadProgress", function (evt) {
  4234. //这里可以写进度条
  4235. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4236. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4237. itemTaskIndex
  4238. ].progress = parseInt((evt.loaded / evt.total) * 100);
  4239. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4240. itemTaskIndex
  4241. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  4242. _this.$forceUpdate();
  4243. })
  4244. .send(function (err, data) {
  4245. // loading.close();
  4246. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4247. itemTaskIndex
  4248. ].progress = 100;
  4249. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4250. itemTaskIndex
  4251. ].isFinishSize =
  4252. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4253. itemTaskIndex
  4254. ].isAllSize;
  4255. _this.$forceUpdate();
  4256. setTimeout(() => {
  4257. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4258. itemTaskIndex
  4259. ].proVisible = false;
  4260. _this.$forceUpdate();
  4261. }, 1000);
  4262. _this.inputShow = true;
  4263. if (err) {
  4264. // var a = _this.$refs.upload1.uploadFiles;
  4265. // a.splice(a.length - 1, a.length);
  4266. _this.$message.error("上传失败");
  4267. } else {
  4268. if (type == 2 || type == 3 || type == 12) {
  4269. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4270. itemTaskIndex
  4271. ].chapterData.push({
  4272. name: file.name,
  4273. url: data.Location,
  4274. uid: file.uid,
  4275. type: type,
  4276. });
  4277. _this.imgChange1(null, null, type, itemTaskIndex);
  4278. } else if (type == 4) {
  4279. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4280. itemTaskIndex
  4281. ].fileList1.push({
  4282. name: file.name,
  4283. url: data.Location,
  4284. uid: file.uid,
  4285. });
  4286. _this.imgChange1(null, null, type, itemTaskIndex);
  4287. } else if (type == 5) {
  4288. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4289. itemTaskIndex
  4290. ].homeworkList.push({
  4291. name: file.name,
  4292. url: data.Location,
  4293. uid: file.uid,
  4294. });
  4295. _this.imgChange1(null, null, type, itemTaskIndex);
  4296. }
  4297. console.log(data.Location);
  4298. }
  4299. });
  4300. }
  4301. },
  4302. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  4303. // const loading = this.openLoading();
  4304. var file = event.target.files[0];
  4305. var credentials = {
  4306. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4307. secretAccessKey: "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",
  4308. }; //秘钥形式的登录上传
  4309. window.AWS.config.update(credentials);
  4310. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4311. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4312. var _this = this;
  4313. if (type == 3) {
  4314. var b = [
  4315. "DOC",
  4316. "DOCX",
  4317. "DOCM",
  4318. "DOTM",
  4319. "DOTX",
  4320. "PPTX",
  4321. "PPSX",
  4322. "PPT",
  4323. "PPS",
  4324. "PPTM",
  4325. "POTM",
  4326. "PPAM",
  4327. "POTX",
  4328. "PPSM",
  4329. ];
  4330. if (
  4331. b.indexOf(
  4332. file.name
  4333. .split(".")
  4334. [file.name.split(".").length - 1].toLocaleUpperCase()
  4335. ) != -1
  4336. ) {
  4337. if (file.size / 1024 / 1024 > 80) {
  4338. this.$message.error("上传文件大于80兆,请重新选择文件!");
  4339. this.inputShow = true;
  4340. // var a = _this.$refs.upload1.uploadFiles;
  4341. // a.splice(a.length - 1, a.length);
  4342. // loading.close();
  4343. return;
  4344. }
  4345. } else if (
  4346. file.name
  4347. .split(".")
  4348. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  4349. ) {
  4350. if (file.size / 1024 / 1024 > 80) {
  4351. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  4352. this.inputShow = true;
  4353. // var a = _this.$refs.upload1.uploadFiles;
  4354. // a.splice(a.length - 1, a.length);
  4355. // loading.close();
  4356. return;
  4357. }
  4358. }
  4359. }
  4360. this.inputShow = false;
  4361. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4362. itemTaskIndex
  4363. ].progress = 0;
  4364. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4365. itemTaskIndex
  4366. ].proVisible = true;
  4367. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4368. itemTaskIndex
  4369. ].isFinishSize = 0;
  4370. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4371. itemTaskIndex
  4372. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  4373. _this.$forceUpdate();
  4374. if (file) {
  4375. var params = {
  4376. Key:
  4377. file.name.split(".")[0] +
  4378. new Date().getTime() +
  4379. "." +
  4380. file.name.split(".")[file.name.split(".").length - 1],
  4381. ContentType: file.type,
  4382. Body: file,
  4383. "Access-Control-Allow-Credentials": "*",
  4384. ACL: "public-read",
  4385. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4386. var options = {
  4387. partSize: 2048 * 1024 * 1024,
  4388. queueSize: 2,
  4389. leavePartsOnError: true,
  4390. };
  4391. bucket
  4392. .upload(params, options)
  4393. .on("httpUploadProgress", function (evt) {
  4394. //这里可以写进度条
  4395. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4396. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4397. itemTaskIndex
  4398. ].progress = parseInt((evt.loaded / evt.total) * 100);
  4399. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4400. itemTaskIndex
  4401. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  4402. _this.$forceUpdate();
  4403. })
  4404. .send(function (err, data) {
  4405. // loading.close();
  4406. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4407. itemTaskIndex
  4408. ].progress = 100;
  4409. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4410. itemTaskIndex
  4411. ].isFinishSize =
  4412. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4413. itemTaskIndex
  4414. ].isAllSize;
  4415. _this.$forceUpdate();
  4416. setTimeout(() => {
  4417. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4418. itemTaskIndex
  4419. ].proVisible = false;
  4420. _this.$forceUpdate();
  4421. }, 1000);
  4422. _this.inputShow = true;
  4423. if (err) {
  4424. // var a = _this.$refs.upload1.uploadFiles;
  4425. // a.splice(a.length - 1, a.length);
  4426. _this.$message.error("上传失败");
  4427. } else {
  4428. if (type == 2 || type == 3) {
  4429. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4430. itemTaskIndex
  4431. ].chapterData.push({
  4432. name: file.name,
  4433. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4434. // itemTaskIndex
  4435. // ].chapterData.length+1),
  4436. url: data.Location,
  4437. uid: file.uid,
  4438. type: type,
  4439. text: string,
  4440. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4441. // itemTaskIndex
  4442. // ].chapterData.length + 1),
  4443. });
  4444. _this.imgChange1(null, null, type, itemTaskIndex);
  4445. } else if (type == 4) {
  4446. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4447. itemTaskIndex
  4448. ].fileList1.push({
  4449. name: file.name,
  4450. url: data.Location,
  4451. uid: file.uid,
  4452. });
  4453. _this.imgChange1(null, null, type, itemTaskIndex);
  4454. } else if (type == 5) {
  4455. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4456. itemTaskIndex
  4457. ].homeworkList.push({
  4458. name: file.name,
  4459. url: data.Location,
  4460. uid: file.uid,
  4461. });
  4462. _this.imgChange1(null, null, type, itemTaskIndex);
  4463. }
  4464. console.log(data.Location);
  4465. }
  4466. });
  4467. }
  4468. },
  4469. addunit() {
  4470. this.unitJson.push({
  4471. dyName: "", //单元标题
  4472. isUpdate: 1,
  4473. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  4474. chapterInfo: [
  4475. {
  4476. isread: false,
  4477. chapterid: this.guid(),
  4478. title: "",
  4479. courseName: "",
  4480. taskJson: [
  4481. {
  4482. task: "",
  4483. taskDetail: "",
  4484. chapterData: [],
  4485. toolText: "",
  4486. toolChoose: [
  4487. {
  4488. tool: [],
  4489. toolDetail: "",
  4490. toolType: 0,
  4491. askCount: 1,
  4492. askTitle: "",
  4493. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4494. },
  4495. ],
  4496. isShowTools: false,
  4497. askCount: 1,
  4498. isFold: 0,
  4499. askTitle: "",
  4500. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4501. checkJson: [{ checkCount: [], checkPerent: [] }],
  4502. homeworkList: [],
  4503. },
  4504. ],
  4505. itemCount: 1,
  4506. fileList1: [],
  4507. video: [],
  4508. testData: [],
  4509. pData: [],
  4510. templateArray: [],
  4511. },
  4512. ],
  4513. });
  4514. this.addindex = this.unitJson.length - 1;
  4515. setTimeout(() => {
  4516. this.unitIndex = this.unitJson.length - 1;
  4517. this.unitSet(this.unitIndex);
  4518. }, 0);
  4519. },
  4520. addToolFun(itemTaskIndex) {
  4521. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4522. itemTaskIndex
  4523. ].toolChoose.push({
  4524. tool: [],
  4525. toolDetail: "",
  4526. toolType: 0,
  4527. askCount: 1,
  4528. askTitle: "",
  4529. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4530. });
  4531. },
  4532. addTaskBorder() {
  4533. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  4534. task: "",
  4535. taskDetail: "",
  4536. chapterData: [],
  4537. toolChoose: [
  4538. {
  4539. tool: [],
  4540. toolDetail: "",
  4541. toolType: 0,
  4542. askCount: 1,
  4543. askTitle: "",
  4544. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4545. },
  4546. ],
  4547. toolText: "",
  4548. isShowTools: false,
  4549. askCount: 1,
  4550. isFold: 0,
  4551. askTitle: "",
  4552. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4553. checkJson: [{ checkCount: [], checkPerent: [] }],
  4554. homeworkList: [],
  4555. });
  4556. },
  4557. add(e, i) {
  4558. var el = e.currentTarget;
  4559. el.getElementsByTagName("input")[0].click();
  4560. },
  4561. fold(i, e, type) {
  4562. var a = e.currentTarget.parentElement.parentElement;
  4563. var b = e.currentTarget.parentElement;
  4564. if (type == 1) {
  4565. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  4566. a.className += " smallTaskBorder";
  4567. b.className += " funBlockTop";
  4568. } else {
  4569. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  4570. a.className = "taskBorder";
  4571. b.className = "funBlock";
  4572. }
  4573. console.log(e);
  4574. },
  4575. deleteHomeworkBox(unitIndex, index, i) {
  4576. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  4577. this.taskCount
  4578. ].homeworkList.splice(i, 1);
  4579. },
  4580. getStudent() {
  4581. let params = {
  4582. oid: this.oid,
  4583. cu: "",
  4584. cn: this.searchPeople,
  4585. };
  4586. this.ajax
  4587. .get(this.$store.state.api + "selectStudentAdd", params)
  4588. .then((res) => {
  4589. this.studentJuri = res.data[0];
  4590. })
  4591. .catch((err) => {
  4592. this.isLoading = false;
  4593. console.error(err);
  4594. });
  4595. },
  4596. getTeacher() {
  4597. let params = {
  4598. oid:
  4599. this.org && this.org != "undefined" && this.org != "null"
  4600. ? this.org
  4601. : this.oid,
  4602. cu: "",
  4603. cn: this.searchTN,
  4604. };
  4605. this.ajax
  4606. .get(
  4607. this.$store.state.api +
  4608. (this.org && this.org != "undefined" && this.org != "null"
  4609. ? "selectTeacherAddOrg"
  4610. : "selectTeacherAdd"),
  4611. params
  4612. )
  4613. .then((res) => {
  4614. let teacherJuri = res.data[0];
  4615. for (var i = 0; i < teacherJuri.length; i++) {
  4616. if (teacherJuri[i].userid == this.userid) {
  4617. teacherJuri.splice(i, 1);
  4618. break;
  4619. }
  4620. }
  4621. this.teacherJuri = teacherJuri;
  4622. })
  4623. .catch((err) => {
  4624. console.error(err);
  4625. });
  4626. },
  4627. searchStudent() {
  4628. this.getStudent();
  4629. },
  4630. //获取班级列表
  4631. getClass() {
  4632. let params = {
  4633. oid: this.oid,
  4634. cn: this.classSearch,
  4635. };
  4636. this.ajax
  4637. .get(this.$store.state.api + "selectClassBySchoolSearch", params)
  4638. .then((res) => {
  4639. if (!this.grade.length) {
  4640. this.grade = res.data[0];
  4641. }
  4642. this.grade2 = res.data[0];
  4643. this.classJuri = res.data[0];
  4644. })
  4645. .catch((err) => {
  4646. this.isLoading = false;
  4647. console.error(err);
  4648. });
  4649. },
  4650. CourseType2Change(val) {
  4651. this.pTypeCheck = [];
  4652. for (var i = 0; i < this.CourseType2.length; i++) {
  4653. let typeA = this.CourseType2[i];
  4654. if (val.indexOf(typeA.name) != -1) {
  4655. this.pTypeCheck.push(...typeA.id);
  4656. }
  4657. }
  4658. },
  4659. getChapterData(e, i, j, ic, type) {
  4660. e.stopPropagation();
  4661. this.updataC = true;
  4662. this.icc = ic;
  4663. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  4664. console.log("还不能下载图片喔");
  4665. }
  4666. },
  4667. deleteChapterData(e, i, j, ic, taskI) {
  4668. e.stopPropagation();
  4669. this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(ic, 1);
  4670. },
  4671. updataVideoT(e, i, j, ic) {
  4672. e.stopPropagation();
  4673. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  4674. ic
  4675. ].name = e.target.value;
  4676. },
  4677. upCd(e, i, j, taskCount, ic) {
  4678. e.stopPropagation();
  4679. if (ic == 0) {
  4680. return;
  4681. }
  4682. var a =
  4683. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1];
  4684. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  4685. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic];
  4686. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  4687. this.$forceUpdate();
  4688. },
  4689. downCd(e, i, j, taskCount, ic) {
  4690. e.stopPropagation();
  4691. if (
  4692. ic ==
  4693. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  4694. 1
  4695. ) {
  4696. return;
  4697. }
  4698. var a =
  4699. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1];
  4700. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  4701. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic];
  4702. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  4703. this.$forceUpdate();
  4704. },
  4705. addWork() {
  4706. let cPan = 1;
  4707. for (var i = 0; i < this.unitJson.length; i++) {
  4708. for (
  4709. var j = 0;
  4710. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  4711. j++
  4712. ) {
  4713. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  4714. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  4715. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  4716. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  4717. i
  4718. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  4719. return ele.value != "";
  4720. });
  4721. }
  4722. }
  4723. }
  4724. this.inputShow = true;
  4725. if (cPan == 2) {
  4726. this.steps--;
  4727. return;
  4728. }
  4729. for (var i = 0; i < this.unitJson.length; i++) {
  4730. delete this.unitJson[i].isUpdate;
  4731. }
  4732. let params = [
  4733. {
  4734. uid: this.userid,
  4735. title: this.courseName.replace(/%/g, "%25"),
  4736. brief: this.courseText.replace(/%/g, "%25"),
  4737. cover:
  4738. this.cover.length > 0
  4739. ? JSON.stringify(this.cover)
  4740. : JSON.stringify([
  4741. {
  4742. name: "noBanner.jpg",
  4743. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  4744. uid: 1656409780264,
  4745. status: "success",
  4746. },
  4747. ]),
  4748. evaId: this.evalua,
  4749. astudent:
  4750. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  4751. see: this.isTeacherSee == true ? 1 : 0,
  4752. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  4753. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  4754. courseType: JSON.stringify(this.courseTypeId),
  4755. ateacher:
  4756. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  4757. inviteCode: JSON.stringify(this.inviteCode),
  4758. },
  4759. ];
  4760. this.ajax
  4761. .post(this.$store.state.api + "addWorkNew2T", params)
  4762. .then((res) => {
  4763. console.log(this.steps);
  4764. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  4765. this.$message({
  4766. message: "新增成功",
  4767. type: "success",
  4768. });
  4769. }
  4770. this.number = res.data.ordernumber;
  4771. this.courseId = res.data.courseId;
  4772. this.cid = res.data.courseId;
  4773. this.courseUserid = this.userid;
  4774. this.islogin = true;
  4775. })
  4776. .catch((err) => {
  4777. this.$message.error("网络不佳");
  4778. console.error(err);
  4779. });
  4780. },
  4781. goCourse() {
  4782. window.parent.postMessage({ cid: this.courseId, type: "1" }, "*");
  4783. },
  4784. updateWork2() {
  4785. let _unitIndex = this.unitIndex;
  4786. let cPan = 1;
  4787. for (
  4788. var j = 0;
  4789. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  4790. j++
  4791. ) {
  4792. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  4793. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4794. j
  4795. ].proVisible2 = false;
  4796. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  4797. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  4798. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  4799. (ele) => {
  4800. return ele.value != "";
  4801. }
  4802. );
  4803. }
  4804. }
  4805. this.inputShow = true;
  4806. if (cPan == 2) {
  4807. this.steps--;
  4808. return;
  4809. }
  4810. let params = [
  4811. {
  4812. cid: this.cid,
  4813. chapters: JSON.stringify(this.unitJson),
  4814. uid: this.userid,
  4815. unitIndex: _unitIndex,
  4816. },
  4817. ];
  4818. this.ajax
  4819. .post(this.$store.state.api + "updateWorkNew4", params)
  4820. .then((res) => {
  4821. this.$message({
  4822. message: "修改成功",
  4823. type: "success",
  4824. });
  4825. this.courseId = this.cid;
  4826. })
  4827. .catch((err) => {
  4828. this.$message.error("网络不佳");
  4829. console.error(err);
  4830. });
  4831. },
  4832. updateWork() {
  4833. let cPan = 1;
  4834. for (var i = 0; i < this.unitJson.length; i++) {
  4835. for (
  4836. var j = 0;
  4837. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  4838. j++
  4839. ) {
  4840. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  4841. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  4842. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  4843. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  4844. i
  4845. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  4846. return ele.value != "";
  4847. });
  4848. }
  4849. }
  4850. }
  4851. this.inputShow = true;
  4852. if (cPan == 2) {
  4853. this.steps--;
  4854. return;
  4855. }
  4856. for (var i = 0; i < this.unitJson.length; i++) {
  4857. delete this.unitJson[i].isUpdate;
  4858. }
  4859. let params = [
  4860. {
  4861. cid: this.cid,
  4862. title: this.courseName.replace(/%/g, "%25"),
  4863. brief: this.courseText.replace(/%/g, "%25"),
  4864. cover:
  4865. this.cover.length > 0
  4866. ? JSON.stringify(this.cover)
  4867. : JSON.stringify([
  4868. {
  4869. name: "noBanner.jpg",
  4870. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  4871. uid: 1656409780264,
  4872. status: "success",
  4873. },
  4874. ]),
  4875. evaId: this.evalua,
  4876. astudent:
  4877. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  4878. see: this.isTeacherSee == true ? 1 : 0,
  4879. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  4880. template: this.myWord != "undefined" ? this.myWord : [],
  4881. uid: this.userid,
  4882. courseType: JSON.stringify(this.courseTypeId),
  4883. ateacher:
  4884. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  4885. inviteCode: JSON.stringify(this.inviteCode),
  4886. },
  4887. ];
  4888. this.ajax
  4889. .post(this.$store.state.api + "updateWorkNew2", params)
  4890. .then((res) => {
  4891. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  4892. if (this.cidType == 1) {
  4893. this.$message({
  4894. message: "修改成功",
  4895. type: "success",
  4896. });
  4897. } else {
  4898. this.$message({
  4899. message: "新增成功",
  4900. type: "success",
  4901. });
  4902. }
  4903. }
  4904. this.number = this.nbOrder;
  4905. this.courseId = this.cid;
  4906. })
  4907. .catch((err) => {
  4908. this.$message.error("网络不佳");
  4909. console.error(err);
  4910. });
  4911. },
  4912. guid() {
  4913. var _num,
  4914. i,
  4915. _guid = "";
  4916. for (i = 0; i < 32; i++) {
  4917. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  4918. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  4919. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  4920. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  4921. _guid += "-";
  4922. }
  4923. }
  4924. return _guid;
  4925. },
  4926. insertWord() {
  4927. this.dialogVisible1 = true;
  4928. this.updateBoolean2 = false;
  4929. this.tTitle = "";
  4930. this.tdetail = "";
  4931. },
  4932. addWord() {
  4933. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  4934. name: this.tTitle,
  4935. content: this.tdetail,
  4936. uid: this.guid(),
  4937. });
  4938. this.dialogVisible1 = false;
  4939. },
  4940. upWord() { },
  4941. selectWord(uid, i, c) {
  4942. this.dialogVisible1 = true;
  4943. this.updateBoolean2 = true;
  4944. if (
  4945. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  4946. ) {
  4947. this.tTitle =
  4948. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  4949. this.tdetail =
  4950. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  4951. }
  4952. },
  4953. isAddPP() {
  4954. if (this.checkboxList.length > 0) {
  4955. this.$message({
  4956. message: "添加成功",
  4957. type: "success",
  4958. });
  4959. this.dialogVisible3 = false;
  4960. } else {
  4961. this.$message({
  4962. message: "请添加课程成员",
  4963. type: "error",
  4964. });
  4965. }
  4966. },
  4967. isAddClass() {
  4968. this.dialogVisibleClass = false;
  4969. },
  4970. isAddPPTeacher() {
  4971. this.dialogVisibleMember = false;
  4972. this.setMan();
  4973. },
  4974. getTemplate() {
  4975. this.ajax
  4976. .get(this.$store.state.api + "getCourseTemplateT", "")
  4977. .then((res) => {
  4978. this.templateArray = res.data[0];
  4979. this.getTemplateOid();
  4980. this.$forceUpdate();
  4981. })
  4982. .catch((err) => { });
  4983. },
  4984. getTemplateOid() {
  4985. let params = {
  4986. oid: this.oid,
  4987. };
  4988. this.ajax
  4989. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  4990. .then((res) => {
  4991. if (res.data[0].length) {
  4992. this.templateArray = [...res.data[0], ...this.templateArray];
  4993. }
  4994. this.getTemplateOrg();
  4995. this.$forceUpdate();
  4996. })
  4997. .catch((err) => { });
  4998. },
  4999. getTemplateOrg() {
  5000. let params = {
  5001. oid: this.org,
  5002. };
  5003. this.ajax
  5004. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  5005. .then((res) => {
  5006. if (res.data[0].length) {
  5007. this.templateArray = [...res.data[0], ...this.templateArray];
  5008. }
  5009. this.$forceUpdate();
  5010. })
  5011. .catch((err) => { });
  5012. },
  5013. clearChoose() {
  5014. this.clearArray.splice(this.templateC.id, 1);
  5015. this.dialogVisible2 = false;
  5016. },
  5017. clearAttText() {
  5018. this.AttText = {
  5019. title: "",
  5020. text: "",
  5021. };
  5022. this.dialogVisible6 = false;
  5023. },
  5024. clearLine() {
  5025. this.line = "";
  5026. this.dialogVisible7 = false;
  5027. },
  5028. checkTemplate(res) {
  5029. let _this = this;
  5030. _this
  5031. .$confirm("确定选择此模板吗?", "提示", {
  5032. confirmButtonText: "确定",
  5033. cancelButtonText: "取消",
  5034. type: "warning",
  5035. })
  5036. .then(() => {
  5037. _this.unitJson = JSON.parse(res.chapters);
  5038. _this.steps++;
  5039. setTimeout(() => {
  5040. this.checkEva(this.checkId);
  5041. }, 1000);
  5042. })
  5043. .catch(() => {
  5044. return;
  5045. });
  5046. },
  5047. checkTemplate1(w) {
  5048. this.steps++;
  5049. },
  5050. checkTemplate2() {
  5051. let _this = this;
  5052. _this
  5053. .$confirm("确定选择空模板吗?", "提示", {
  5054. confirmButtonText: "确定",
  5055. cancelButtonText: "取消",
  5056. type: "warning",
  5057. })
  5058. .then(() => {
  5059. _this.unitIndex = 0;
  5060. _this.unitJson = [
  5061. {
  5062. dyName: "", //单元标题
  5063. chapterInfo: [
  5064. {
  5065. isread: false,
  5066. chapterid: this.guid(),
  5067. title: "",
  5068. courseName: "",
  5069. taskJson: [
  5070. {
  5071. task: "",
  5072. taskDetail: "",
  5073. chapterData: [],
  5074. toolText: "",
  5075. toolChoose: [
  5076. {
  5077. tool: [],
  5078. toolDetail: "",
  5079. toolType: 0,
  5080. askCount: 1,
  5081. askTitle: "",
  5082. askJson: [
  5083. { askstitle: "", askItem: 1, checkList: [] },
  5084. ],
  5085. },
  5086. ],
  5087. isShowTools: false,
  5088. askCount: 1,
  5089. isFold: 0,
  5090. askTitle: "",
  5091. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5092. checkJson: [{ checkCount: [], checkPerent: [] }],
  5093. homeworkList: [],
  5094. },
  5095. ],
  5096. itemCount: 1,
  5097. fileList1: [],
  5098. video: [],
  5099. testData: [],
  5100. pData: [],
  5101. templateArray: [],
  5102. },
  5103. ],
  5104. },
  5105. ];
  5106. this.steps++;
  5107. this.updateWork();
  5108. })
  5109. .catch(() => {
  5110. return;
  5111. });
  5112. },
  5113. checkTemplate3() {
  5114. let _this = this;
  5115. _this
  5116. .$confirm("确定选择简易模式吗?", "提示", {
  5117. confirmButtonText: "确定",
  5118. cancelButtonText: "取消",
  5119. type: "warning",
  5120. })
  5121. .then(() => {
  5122. _this.unitIndex = 0;
  5123. _this.unitJson = [
  5124. {
  5125. dyName: "", //单元标题
  5126. easy: 1,
  5127. chapterInfo: [
  5128. {
  5129. isread: false,
  5130. chapterid: this.guid(),
  5131. title: "",
  5132. courseName: "",
  5133. taskJson: [
  5134. {
  5135. task: "",
  5136. taskDetail: "",
  5137. chapterData: [],
  5138. toolText: "",
  5139. toolChoose: [
  5140. {
  5141. tool: [],
  5142. toolDetail: "",
  5143. toolType: 0,
  5144. askCount: 1,
  5145. askTitle: "",
  5146. askJson: [
  5147. { askstitle: "", askItem: 1, checkList: [] },
  5148. ],
  5149. },
  5150. ],
  5151. isShowTools: false,
  5152. askCount: 1,
  5153. isFold: 0,
  5154. askTitle: "",
  5155. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5156. checkJson: [{ checkCount: [], checkPerent: [] }],
  5157. homeworkList: [],
  5158. },
  5159. ],
  5160. itemCount: 1,
  5161. fileList1: [],
  5162. video: [],
  5163. testData: [],
  5164. pData: [],
  5165. templateArray: [],
  5166. },
  5167. ],
  5168. },
  5169. ];
  5170. this.steps++;
  5171. this.updateWork();
  5172. })
  5173. .catch(() => {
  5174. return;
  5175. });
  5176. },
  5177. checkTemplate4() {
  5178. let _this = this;
  5179. _this
  5180. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  5181. confirmButtonText: "确定",
  5182. cancelButtonText: "取消",
  5183. type: "warning",
  5184. })
  5185. .then(() => {
  5186. _this.unitIndex = 0;
  5187. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  5188. this.steps++;
  5189. this.updateWork();
  5190. })
  5191. .catch(() => {
  5192. return;
  5193. });
  5194. },
  5195. wordNext() {
  5196. this.dialogVisible2 = false;
  5197. },
  5198. isAddOrUpdateAttText() {
  5199. if (this.AttTextType == 0) {
  5200. this.addAttTextMessage();
  5201. } else {
  5202. this.updateAttText();
  5203. }
  5204. },
  5205. isAddOrUpdateLine() {
  5206. if (!this.lineTitle) {
  5207. this.$message.error("请填写链接标题");
  5208. return;
  5209. }
  5210. if (this.lineType == 0) {
  5211. this.addLine();
  5212. } else {
  5213. this.updateLine();
  5214. }
  5215. },
  5216. addAttTextMessage() {
  5217. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5218. this.taskCount
  5219. ].chapterData.push({
  5220. name: this.AttText.title,
  5221. url: this.AttText.text,
  5222. type: 6,
  5223. });
  5224. this.imgChange1(null, null, 6, this.taskCount);
  5225. this.dialogVisible6 = false;
  5226. },
  5227. selectAttText(itemTaskIndex, i) {
  5228. this.AttText.title =
  5229. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5230. itemTaskIndex
  5231. ].chapterData[i].name;
  5232. this.AttText.text =
  5233. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5234. itemTaskIndex
  5235. ].chapterData[i].url;
  5236. this.taskCount = itemTaskIndex;
  5237. this.AttTextIndex = i;
  5238. this.AttTextType = 1;
  5239. this.dialogVisible6 = true;
  5240. },
  5241. updateAttText() {
  5242. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5243. this.taskCount
  5244. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  5245. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5246. this.taskCount
  5247. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  5248. this.dialogVisible6 = false;
  5249. },
  5250. addLine() {
  5251. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5252. this.lineCount
  5253. ].chapterData.push({
  5254. name: "链接",
  5255. title: this.lineTitle,
  5256. url: this.line,
  5257. type: 8,
  5258. });
  5259. this.imgChange1(null, null, 8, this.lineCount);
  5260. this.dialogVisible7 = false;
  5261. },
  5262. selectLine(itemTaskIndex, i) {
  5263. this.line =
  5264. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5265. itemTaskIndex
  5266. ].chapterData[i].url;
  5267. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5268. itemTaskIndex
  5269. ].chapterData[i].title
  5270. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5271. .chapterData[i].title
  5272. : "";
  5273. this.taskCount = itemTaskIndex;
  5274. this.lineCount = i;
  5275. this.lineType = 1;
  5276. this.dialogVisible7 = true;
  5277. },
  5278. updateLine() {
  5279. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5280. this.taskCount
  5281. ].chapterData[this.lineCount].url = this.line;
  5282. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5283. this.taskCount
  5284. ].chapterData[this.lineCount].title = this.lineTitle;
  5285. this.dialogVisible7 = false;
  5286. },
  5287. addPP() {
  5288. this.dialogVisible3 = true;
  5289. },
  5290. goTo(path) {
  5291. this.$router.push(path);
  5292. },
  5293. openTools(itemTaskIndex, i, toolIndex) {
  5294. this.toolIndex = toolIndex;
  5295. this.taskCount = itemTaskIndex;
  5296. if (i == 4) {
  5297. if (toolIndex == null) {
  5298. var a =
  5299. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5300. .chapterData;
  5301. for (var i = 0; i < a.length; i++) {
  5302. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  5303. this.askJson =
  5304. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5305. itemTaskIndex
  5306. ].chapterData[i].askJson;
  5307. }
  5308. }
  5309. } else {
  5310. this.askJson = JSON.parse(
  5311. JSON.stringify(
  5312. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5313. itemTaskIndex
  5314. ].toolChoose[toolIndex]
  5315. )
  5316. );
  5317. }
  5318. this.dialogVisible5 = true;
  5319. } else if (i == 45) {
  5320. if (
  5321. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5322. .toolChoose[toolIndex].testJson
  5323. ) {
  5324. this.testJson = JSON.parse(
  5325. JSON.stringify(
  5326. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5327. itemTaskIndex
  5328. ].toolChoose[toolIndex].testJson
  5329. )
  5330. );
  5331. } else {
  5332. var testJson = {
  5333. testCount: 1,
  5334. testTitle: "",
  5335. testJson: [
  5336. {
  5337. teststitle: "",
  5338. testItem: 1,
  5339. checkList: [],
  5340. timuList: [],
  5341. answer: [],
  5342. type: "1",
  5343. },
  5344. ],
  5345. };
  5346. this.testJson = testJson;
  5347. }
  5348. this.dialogVisibleChoice = true;
  5349. } else if (i == 47) {
  5350. if (
  5351. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5352. .toolChoose[toolIndex].sentenceList
  5353. ) {
  5354. this.sentenceList = JSON.parse(
  5355. JSON.stringify(
  5356. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5357. itemTaskIndex
  5358. ].toolChoose[toolIndex].sentenceList
  5359. )
  5360. );
  5361. } else {
  5362. var sentenceList = [
  5363. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  5364. ];
  5365. this.sentenceList = sentenceList;
  5366. }
  5367. this.dialogVisibleSentence = true;
  5368. } else if (i == 48) {
  5369. if (
  5370. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5371. .toolChoose[toolIndex].tableJson
  5372. ) {
  5373. this.tableJson = JSON.parse(
  5374. JSON.stringify(
  5375. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5376. itemTaskIndex
  5377. ].toolChoose[toolIndex].tableJson
  5378. )
  5379. );
  5380. } else {
  5381. var tableJson = { text: "" };
  5382. this.tableJson = tableJson;
  5383. }
  5384. this.dialogVisibleTable = true;
  5385. } else if (i == 52) {
  5386. if (
  5387. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5388. .toolChoose[toolIndex].wordJson
  5389. ) {
  5390. this.wordJson = JSON.parse(
  5391. JSON.stringify(
  5392. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5393. itemTaskIndex
  5394. ].toolChoose[toolIndex].wordJson
  5395. )
  5396. );
  5397. } else {
  5398. var wordJson = { text: "" };
  5399. this.wordJson = wordJson;
  5400. }
  5401. this.dialogVisibleWord = true;
  5402. // else if (i == 50) {
  5403. // if (
  5404. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5405. // .toolChoose[toolIndex].uploadJson
  5406. // ) {
  5407. // this.uploadJson = JSON.parse(
  5408. // JSON.stringify(
  5409. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5410. // itemTaskIndex
  5411. // ].toolChoose[toolIndex].uploadJson
  5412. // )
  5413. // );
  5414. // } else {
  5415. // var uploadJson = [];
  5416. // this.uploadJson = uploadJson;
  5417. // }
  5418. // this.dialogVisibleMoreUpload = true;
  5419. // }
  5420. } else if (i == 10) {
  5421. if (
  5422. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5423. .toolChoose[toolIndex].preTime
  5424. ) {
  5425. this.preTime = JSON.parse(
  5426. JSON.stringify(
  5427. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5428. itemTaskIndex
  5429. ].toolChoose[toolIndex].preTime
  5430. )
  5431. );
  5432. } else {
  5433. var preTime = 0;
  5434. this.preTime = preTime;
  5435. }
  5436. this.dialogVisiblePreTime = true;
  5437. } else if (i == 49) {
  5438. if (
  5439. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5440. .toolChoose[toolIndex].groupJson
  5441. ) {
  5442. this.groupJson = JSON.parse(
  5443. JSON.stringify(
  5444. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5445. itemTaskIndex
  5446. ].toolChoose[toolIndex].groupJson
  5447. )
  5448. );
  5449. } else {
  5450. var groupJson = {
  5451. group: [{ name: "第1组" }],
  5452. number: undefined,
  5453. islock: 1,
  5454. };
  5455. this.groupJson = groupJson;
  5456. }
  5457. this.dialogVisibleGroup = true;
  5458. } else if (i == 62) {
  5459. if (
  5460. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5461. .toolChoose[toolIndex].videoJson
  5462. ) {
  5463. this.videoJson = JSON.parse(
  5464. JSON.stringify(
  5465. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5466. itemTaskIndex
  5467. ].toolChoose[toolIndex].videoJson
  5468. )
  5469. );
  5470. } else {
  5471. var videoJson = {
  5472. video: "",
  5473. setting: []
  5474. };
  5475. this.videoJson = videoJson;
  5476. }
  5477. this.dialogVisibleVideo = true;
  5478. } else if (i == 15) {
  5479. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5480. itemTaskIndex
  5481. ].toolChoose[toolIndex].answerQ
  5482. ? JSON.parse(
  5483. JSON.stringify(
  5484. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5485. itemTaskIndex
  5486. ].toolChoose[toolIndex].answerQ
  5487. )
  5488. )
  5489. : "";
  5490. this.dialogVisible8 = true;
  5491. } else if (i == 40) {
  5492. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5493. itemTaskIndex
  5494. ].toolChoose[toolIndex].rateJson
  5495. ? JSON.parse(
  5496. JSON.stringify(
  5497. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5498. itemTaskIndex
  5499. ].toolChoose[toolIndex].rateJson
  5500. )
  5501. )
  5502. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  5503. this.selectSteps = 1;
  5504. this.dialogVisibleRate = true;
  5505. } else if (i == 42) {
  5506. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5507. itemTaskIndex
  5508. ].toolChoose[toolIndex].answerQ
  5509. ? JSON.parse(
  5510. JSON.stringify(
  5511. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5512. itemTaskIndex
  5513. ].toolChoose[toolIndex].answerQ
  5514. )
  5515. )
  5516. : "";
  5517. this.dialogVisibleMp3 = true;
  5518. } else if (i == 41) {
  5519. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5520. itemTaskIndex
  5521. ].toolChoose[toolIndex].selectJson
  5522. ? JSON.parse(
  5523. JSON.stringify(
  5524. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5525. itemTaskIndex
  5526. ].toolChoose[toolIndex].selectJson
  5527. )
  5528. )
  5529. : { url: "", select: [], answer: [] };
  5530. this.selectSteps = 1;
  5531. this.dialogVisibleSelect = true;
  5532. } else if (i == 3) {
  5533. window.parent.postMessage(
  5534. {
  5535. tools: "3y",
  5536. cid: this.cid,
  5537. stage: this.unitIndex,
  5538. task: itemTaskIndex,
  5539. tool: toolIndex,
  5540. },
  5541. "*"
  5542. );
  5543. } else if (i == 1) {
  5544. window.parent.postMessage(
  5545. {
  5546. tools: "1y",
  5547. cid: this.cid,
  5548. stage: this.unitIndex,
  5549. task: itemTaskIndex,
  5550. tool: toolIndex,
  5551. },
  5552. "*"
  5553. );
  5554. }
  5555. },
  5556. chapAddTools(i) {
  5557. if (this.chapTools[0].tools.length == 0) {
  5558. this.chapTools[0].tools.push(i);
  5559. } else {
  5560. if (this.chapTools[0].tools.indexOf(i) != -1) {
  5561. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  5562. } else {
  5563. this.chapTools[0].tools.push(i);
  5564. }
  5565. }
  5566. this.$forceUpdate();
  5567. },
  5568. addChaptersDataTools() {
  5569. if (this.chapTools[0].tools.indexOf(4) != -1) {
  5570. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5571. this.chapCount
  5572. ].chapterData.push({
  5573. name: this.chapTools[0].toolDetail,
  5574. url: this.chapTools[0].tools,
  5575. type: 7,
  5576. askJson: this.askJson,
  5577. });
  5578. } else {
  5579. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5580. this.chapCount
  5581. ].chapterData.push({
  5582. name: this.chapTools[0].toolDetail,
  5583. url: this.chapTools[0].tools,
  5584. type: 7,
  5585. });
  5586. }
  5587. this.imgChange1(null, null, 7, this.chapCount);
  5588. this.dialogVisible4 = false;
  5589. },
  5590. addTools(i, itemTaskIndex, toolIndex) {
  5591. // if (
  5592. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5593. // .toolChoose[toolIndex].tool.length == 0
  5594. // ) {
  5595. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5596. // itemTaskIndex
  5597. // ].toolChoose[toolIndex].tool.push(i);
  5598. // } else {
  5599. // if (
  5600. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5601. // itemTaskIndex
  5602. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  5603. // ) {
  5604. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5605. // itemTaskIndex
  5606. // ].toolChoose[toolIndex].tool.splice(
  5607. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5608. // itemTaskIndex
  5609. // ].toolChoose[toolIndex].tool.indexOf(i),
  5610. // 1
  5611. // );
  5612. // } else {
  5613. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5614. // itemTaskIndex
  5615. // ].toolChoose[toolIndex].tool.push(i);
  5616. // }
  5617. // console.log(
  5618. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5619. // .toolChoose[toolIndex].tool
  5620. // );
  5621. // }
  5622. if (i == 4) {
  5623. if (
  5624. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5625. .toolChoose[toolIndex].askJson.askTitle == "" ||
  5626. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5627. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  5628. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5629. .toolChoose[toolIndex].askJson[0].checkList < 2
  5630. ) {
  5631. this.openTools(itemTaskIndex, 4, toolIndex);
  5632. // this.$message({
  5633. // message: "请填写完整问卷内容",
  5634. // type: "error",
  5635. // });
  5636. return;
  5637. }
  5638. }
  5639. if (i == 45) {
  5640. if (
  5641. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5642. .toolChoose[toolIndex].testJson ||
  5643. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5644. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  5645. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5646. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  5647. ) {
  5648. this.openTools(itemTaskIndex, 45, toolIndex);
  5649. // this.$message({
  5650. // message: "请填写完整问卷内容",
  5651. // type: "error",
  5652. // });
  5653. return;
  5654. }
  5655. }
  5656. if (i == 47) {
  5657. if (
  5658. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5659. .toolChoose[toolIndex].sentenceList ||
  5660. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5661. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  5662. ) {
  5663. this.openTools(itemTaskIndex, 47, toolIndex);
  5664. return;
  5665. }
  5666. }
  5667. // if (i == 48) {
  5668. // if (
  5669. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5670. // .toolChoose[toolIndex].tableJson
  5671. // ) {
  5672. // this.openTools(itemTaskIndex, 48, toolIndex);
  5673. // return;
  5674. // }
  5675. // }
  5676. // if (i == 50) {
  5677. // if (
  5678. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5679. // .toolChoose[toolIndex].uploadJson
  5680. // ) {
  5681. // this.openTools(itemTaskIndex, 50, toolIndex);
  5682. // return;
  5683. // }
  5684. // }
  5685. if (i == 49) {
  5686. if (
  5687. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5688. .toolChoose[toolIndex].groupJson
  5689. ) {
  5690. this.openTools(itemTaskIndex, 49, toolIndex);
  5691. return;
  5692. }
  5693. }
  5694. if (i == 62) {
  5695. if (
  5696. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5697. .toolChoose[toolIndex].videoJson
  5698. ) {
  5699. this.openTools(itemTaskIndex, 62, toolIndex);
  5700. return;
  5701. }
  5702. }
  5703. if (i == 15) {
  5704. if (
  5705. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5706. .toolChoose[toolIndex].answerQ ||
  5707. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5708. .toolChoose[toolIndex].answerQ == ""
  5709. ) {
  5710. this.openTools(itemTaskIndex, 15, toolIndex);
  5711. // this.$message({
  5712. // message: "请填写问答内容",
  5713. // type: "error",
  5714. // });
  5715. return;
  5716. }
  5717. }
  5718. if (i == 40) {
  5719. if (
  5720. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5721. .toolChoose[toolIndex].rateJson ||
  5722. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5723. .toolChoose[toolIndex].rateJson.length
  5724. ) {
  5725. this.openTools(itemTaskIndex, 40, toolIndex);
  5726. return;
  5727. }
  5728. }
  5729. if (i == 41) {
  5730. if (
  5731. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5732. .toolChoose[toolIndex].selectJson ||
  5733. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5734. .toolChoose[toolIndex].selectJson.url == "" ||
  5735. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5736. .toolChoose[toolIndex].selectJson.select.length ||
  5737. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5738. .toolChoose[toolIndex].selectJson.answer.length
  5739. ) {
  5740. this.openTools(itemTaskIndex, 41, toolIndex);
  5741. return;
  5742. }
  5743. }
  5744. if (i == 42) {
  5745. if (
  5746. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5747. .toolChoose[toolIndex].answerQ ||
  5748. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5749. .toolChoose[toolIndex].answerQ == ""
  5750. ) {
  5751. this.openTools(itemTaskIndex, 42, toolIndex);
  5752. return;
  5753. }
  5754. }
  5755. if (
  5756. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5757. .toolChoose[toolIndex].tool.length > 0
  5758. ) {
  5759. if (
  5760. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5761. itemTaskIndex
  5762. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  5763. ) {
  5764. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5765. itemTaskIndex
  5766. ].toolChoose[toolIndex].tool.splice(
  5767. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5768. itemTaskIndex
  5769. ].toolChoose[toolIndex].tool.indexOf(i),
  5770. 1
  5771. );
  5772. } else {
  5773. // this.$message({
  5774. // message: "每个工具只能添加一个",
  5775. // type: "error",
  5776. // });
  5777. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5778. itemTaskIndex
  5779. ].toolChoose[toolIndex].tool = [];
  5780. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5781. itemTaskIndex
  5782. ].toolChoose[toolIndex].tool.push(i);
  5783. }
  5784. } else {
  5785. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5786. itemTaskIndex
  5787. ].toolChoose[toolIndex].tool.push(i);
  5788. }
  5789. this.$forceUpdate();
  5790. },
  5791. addAskList() {
  5792. this.askJson.askJson.push({
  5793. askstitle: "",
  5794. askItem: 1,
  5795. checkList: [],
  5796. });
  5797. this.askJson.askCount++;
  5798. },
  5799. addTestList() {
  5800. this.testJson.testJson.push({
  5801. teststitle: "",
  5802. testItem: 1,
  5803. checkList: [],
  5804. timuList: [],
  5805. answer: [],
  5806. type: "1",
  5807. });
  5808. this.testJson.testCount++;
  5809. },
  5810. deleteAskList(index) {
  5811. this.askJson.askJson.splice(index, 1);
  5812. this.askJson.askCount--;
  5813. },
  5814. deleteTestList(index) {
  5815. this.testJson.testJson.splice(index, 1);
  5816. this.testJson.testCount--;
  5817. },
  5818. addcheckList(json) {
  5819. json.checkList.length++;
  5820. json.askItem++;
  5821. },
  5822. deletecheckList(json) {
  5823. json.checkList.length--;
  5824. json.askItem--;
  5825. },
  5826. addTcheckList(json) {
  5827. json.checkList.length++;
  5828. json.testItem++;
  5829. },
  5830. deleteTcheckList(json) {
  5831. json.checkList.length--;
  5832. json.testItem--;
  5833. },
  5834. checkTestType(type, json) {
  5835. json.type = type;
  5836. json.answer = [];
  5837. },
  5838. checkAskType(type, json) {
  5839. json.type = type;
  5840. json.checkList = [];
  5841. },
  5842. addSelectList(json) {
  5843. json.select.push("");
  5844. json.answer.push("");
  5845. },
  5846. deleteSelectList(json) {
  5847. // json.select.length--;
  5848. // json.answer.length--;
  5849. json.select.splice(json.select.length - 1, 1);
  5850. json.answer.splice(json.answer.length - 1, 1);
  5851. },
  5852. addAsk() {
  5853. if (this.askJson.askTitle === "") {
  5854. this.$message.error("标题不能为空!");
  5855. return;
  5856. }
  5857. var aj = this.askJson.askJson;
  5858. var b = 1;
  5859. for (var i = 0; i < aj.length; i++) {
  5860. if (aj[i].askstitle === "") {
  5861. var a = 1;
  5862. for (let index = 0; index < aj[i].askItem; index++) {
  5863. const element = aj[i].checkList[index]
  5864. ? aj[i].checkList[index]
  5865. : "";
  5866. if (element != "") {
  5867. b++;
  5868. this.$message.error("填写了选项,题目不能为空!");
  5869. return;
  5870. } else {
  5871. a++;
  5872. }
  5873. }
  5874. if (b == 1) {
  5875. this.$message.error("至少填写一个问题");
  5876. return;
  5877. }
  5878. } else if (aj[i].askstitle != "") {
  5879. for (let index = 0; index < aj[i].askItem; index++) {
  5880. const element = aj[i].checkList[index]
  5881. ? aj[i].checkList[index]
  5882. : "";
  5883. var index = 0;
  5884. for (var z = 0; z < aj[i].checkList.length; z++) {
  5885. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  5886. if (checkC != "") {
  5887. index++;
  5888. } else {
  5889. this.$message.error("选项不能为空!");
  5890. return;
  5891. }
  5892. }
  5893. b++;
  5894. if (index < 2) {
  5895. this.$message.error("填写了的题目,选项至少要有两项!");
  5896. return;
  5897. }
  5898. }
  5899. }
  5900. }
  5901. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  5902. var elc = el.checkList.filter((element) => {
  5903. return element != "";
  5904. });
  5905. return el.askstitle != "" && elc.length != 0;
  5906. });
  5907. if (!this.dialogVisible4) {
  5908. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5909. this.taskCount
  5910. ].toolChoose[this.toolIndex] = this.askJson;
  5911. }
  5912. this.dialogVisible5 = false;
  5913. if (
  5914. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  5915. .toolChoose[this.toolIndex].tool != 4
  5916. ) {
  5917. this.addTools(4, this.taskCount, this.toolIndex);
  5918. }
  5919. },
  5920. addTest() {
  5921. // if (this.testJson.testTitle === "") {
  5922. // this.$message.error("标题不能为空!");
  5923. // return;
  5924. // }
  5925. var aj = this.testJson.testJson;
  5926. var b = 1;
  5927. for (var i = 0; i < aj.length; i++) {
  5928. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  5929. var a = 1;
  5930. for (let index = 0; index < aj[i].testItem; index++) {
  5931. const element = aj[i].checkList[index]
  5932. ? aj[i].checkList[index]
  5933. : "";
  5934. if (element != "") {
  5935. b++;
  5936. this.$message.error("填写了选项,题目不能为空!");
  5937. return;
  5938. } else {
  5939. a++;
  5940. }
  5941. }
  5942. if (b == 1) {
  5943. this.$message.error("至少填写一个问题");
  5944. return;
  5945. }
  5946. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  5947. for (let index = 0; index < aj[i].testItem; index++) {
  5948. const element = aj[i].checkList[index]
  5949. ? aj[i].checkList[index]
  5950. : "";
  5951. var index = 0;
  5952. for (var z = 0; z < aj[i].checkList.length; z++) {
  5953. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  5954. if (checkC != "") {
  5955. index++;
  5956. } else {
  5957. this.$message.error("选项不能为空!");
  5958. return;
  5959. }
  5960. }
  5961. b++;
  5962. if (index < 2) {
  5963. this.$message.error("填写了的题目,选项至少要有两项!");
  5964. return;
  5965. }
  5966. if (
  5967. (aj[i].type == "2" && !aj[i].answer.length) ||
  5968. (aj[i].type == "1" && aj[i].answer !== 0 && !aj[i].answer)
  5969. ) {
  5970. this.$message.error("有题目未选择答案请选择答案");
  5971. return;
  5972. }
  5973. }
  5974. }
  5975. }
  5976. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  5977. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  5978. var elc = el.checkList.filter((element) => {
  5979. return element != "";
  5980. });
  5981. return (
  5982. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  5983. );
  5984. });
  5985. isTestJson.testCount = isTestJson.testJson.length;
  5986. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5987. this.taskCount
  5988. ].toolChoose[this.toolIndex].testJson = isTestJson;
  5989. this.dialogVisibleChoice = false;
  5990. if (
  5991. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  5992. .toolChoose[this.toolIndex].tool != 45
  5993. ) {
  5994. this.addTools(45, this.taskCount, this.toolIndex);
  5995. }
  5996. },
  5997. addVideoJson(videoJson) {
  5998. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5999. this.taskCount
  6000. ].toolChoose[this.toolIndex].videoJson = videoJson;
  6001. this.dialogVisibleVideo = false;
  6002. if (
  6003. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6004. .toolChoose[this.toolIndex].tool != 62
  6005. ) {
  6006. this.addTools(62, this.taskCount, this.toolIndex);
  6007. }
  6008. },
  6009. //自动获取剪贴板
  6010. pasteOption() {
  6011. let iframe = top.document.querySelectorAll("#AIChat iframe")[0]
  6012. if (!iframe) {
  6013. this.$message.error("请使用AI共创生成题目")
  6014. return;
  6015. }
  6016. let copyData = iframe.contentWindow.copyData
  6017. if (!copyData || !copyData.selectData.length) {
  6018. this.$message.error("请使用AI共创生成题目")
  6019. return;
  6020. }
  6021. let selectData = copyData.selectData;
  6022. for (var i = 0; i < selectData.length; i++) {
  6023. let answer = 0
  6024. switch (selectData[i].answer[0]) {
  6025. case 'A':
  6026. answer = 0
  6027. break;
  6028. case 'B':
  6029. answer = 1
  6030. break;
  6031. case 'C':
  6032. answer = 2
  6033. break;
  6034. case 'D':
  6035. answer = 3
  6036. break;
  6037. case 'E':
  6038. answer = 4
  6039. break;
  6040. default:
  6041. break;
  6042. }
  6043. this.testJson.testJson.push({
  6044. teststitle: selectData[i].subject,
  6045. testItem: selectData[i].options.length,
  6046. checkList: selectData[i].options,
  6047. timuList: [],
  6048. answer: answer,
  6049. type: "1",
  6050. });
  6051. this.testJson.testCount++;
  6052. }
  6053. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  6054. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  6055. var elc = el.checkList.filter((element) => {
  6056. return element != "";
  6057. });
  6058. return (
  6059. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  6060. );
  6061. });
  6062. isTestJson.testCount = isTestJson.testJson.length;
  6063. this.testJson = isTestJson
  6064. this.$forceUpdate();
  6065. },
  6066. pasteTask() {
  6067. let iframe = top.document.querySelectorAll("#AIChat iframe")[0]
  6068. if (!iframe) {
  6069. this.$message.error("请使用AI共创生成")
  6070. return;
  6071. }
  6072. let copyData = iframe.contentWindow.copyData
  6073. if (!copyData || !copyData.tasksData || !copyData.tasksData.length) {
  6074. this.$message.error("请使用AI共创生成")
  6075. return;
  6076. }
  6077. let stageTasksData = copyData.tasksData;
  6078. let taskA = []
  6079. let tasks = stageTasksData
  6080. for (var j = 0; j < tasks.length; j++) {
  6081. taskA.push({
  6082. task: tasks[j].taskName,
  6083. taskDetail: tasks[j].taskDecs,
  6084. chapterData: [],
  6085. toolText: "",
  6086. toolChoose: [
  6087. {
  6088. tool: [],
  6089. toolDetail: "",
  6090. toolType: 0,
  6091. askCount: 1,
  6092. askTitle: "",
  6093. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6094. },
  6095. ],
  6096. isShowTools: false,
  6097. askCount: 1,
  6098. isFold: 0,
  6099. askTitle: "",
  6100. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6101. checkJson: [{ checkCount: [], checkPerent: [] }],
  6102. homeworkList: [],
  6103. })
  6104. }
  6105. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA
  6106. this.$forceUpdate();
  6107. },
  6108. pasteStage() {
  6109. let iframe = top.document.querySelectorAll("#AIChat iframe")[0]
  6110. if (!iframe) {
  6111. this.$message.error("请使用AI共创生成")
  6112. return;
  6113. }
  6114. let copyData = iframe.contentWindow.copyData
  6115. if (!copyData || !copyData.stageData || !copyData.stageData.length) {
  6116. this.$message.error("请使用AI共创生成")
  6117. return;
  6118. }
  6119. let stageData = copyData.stageData;
  6120. let stage = []
  6121. for (var i = 0; i < stageData.length; i++) {
  6122. stage.push({
  6123. dyName: stageData[i], //单元标题
  6124. chapterInfo: [
  6125. {
  6126. isread: false,
  6127. chapterid: this.guid(),
  6128. title: "",
  6129. courseName: "",
  6130. taskJson: [
  6131. {
  6132. task: "",
  6133. taskDetail: "",
  6134. chapterData: [],
  6135. toolText: "",
  6136. toolChoose: [
  6137. {
  6138. tool: [],
  6139. toolDetail: "",
  6140. toolType: 0,
  6141. askCount: 1,
  6142. askTitle: "",
  6143. askJson: [
  6144. { askstitle: "", askItem: 1, checkList: [] },
  6145. ],
  6146. },
  6147. ],
  6148. isShowTools: false,
  6149. askCount: 1,
  6150. isFold: 0,
  6151. askTitle: "",
  6152. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6153. checkJson: [{ checkCount: [], checkPerent: [] }],
  6154. homeworkList: [],
  6155. },
  6156. ],
  6157. itemCount: 1,
  6158. fileList1: [],
  6159. video: [],
  6160. testData: [],
  6161. pData: [],
  6162. templateArray: [],
  6163. },
  6164. ],
  6165. },)
  6166. }
  6167. let _this = this;
  6168. _this
  6169. .$confirm("确定选择智能粘贴模式吗?", "提示", {
  6170. confirmButtonText: "确定",
  6171. cancelButtonText: "取消",
  6172. type: "warning",
  6173. })
  6174. .then(() => {
  6175. _this.unitIndex = 0;
  6176. _this.unitJson = stage;
  6177. _this.steps++;
  6178. _this.updateWork();
  6179. })
  6180. .catch(() => {
  6181. return;
  6182. });
  6183. },
  6184. addAnswer() {
  6185. if (this.answerQ == "") {
  6186. this.$message.error("请输入您想要问的问题");
  6187. return;
  6188. }
  6189. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6190. this.taskCount
  6191. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  6192. this.dialogVisible8 = false;
  6193. if (
  6194. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6195. .toolChoose[this.toolIndex].tool != 15
  6196. ) {
  6197. this.addTools(15, this.taskCount, this.toolIndex);
  6198. }
  6199. },
  6200. addMp3Answer() {
  6201. if (this.answerQ == "") {
  6202. this.$message.error("请输入您想要回答的问题");
  6203. return;
  6204. }
  6205. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6206. this.taskCount
  6207. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  6208. this.dialogVisibleMp3 = false;
  6209. },
  6210. addRateAnswer() {
  6211. var a = 1;
  6212. for (var i = 0; i < this.rateJson.length; i++) {
  6213. if (this.rateJson[i].value == "") {
  6214. a = 2;
  6215. break;
  6216. }
  6217. }
  6218. if (a == 2) {
  6219. this.$message.error("请把评价信息填写完整");
  6220. return;
  6221. }
  6222. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6223. this.taskCount
  6224. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  6225. this.dialogVisibleRate = false;
  6226. if (
  6227. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6228. .toolChoose[this.toolIndex].tool != 40
  6229. ) {
  6230. this.addTools(40, this.taskCount, this.toolIndex);
  6231. }
  6232. },
  6233. addSelectAnswer() {
  6234. if (this.selectJson.url == "") {
  6235. this.$message.error("请上传题目");
  6236. return;
  6237. }
  6238. if (!this.selectJson.select.length) {
  6239. this.$message.error("请添加选项");
  6240. return;
  6241. }
  6242. if (!this.selectJson.answer.length) {
  6243. this.$message.error("请设置答案");
  6244. return;
  6245. }
  6246. var a = 1;
  6247. for (var i = 0; i < this.selectJson.answer.length; i++) {
  6248. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  6249. a = 2;
  6250. }
  6251. }
  6252. if (a == 2) {
  6253. this.$message.error("请设置答案");
  6254. return;
  6255. }
  6256. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6257. this.taskCount
  6258. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  6259. this.dialogVisibleSelect = false;
  6260. if (
  6261. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6262. .toolChoose[this.toolIndex].tool != 41
  6263. ) {
  6264. this.addTools(41, this.taskCount, this.toolIndex);
  6265. }
  6266. },
  6267. nextSelectSteps() {
  6268. if (this.selectJson.url == "") {
  6269. this.$message.error("请上传题目");
  6270. return;
  6271. }
  6272. if (!this.selectJson.select.length) {
  6273. this.$message.error("请添加选项");
  6274. return;
  6275. }
  6276. var a = 1;
  6277. for (var i = 0; i < this.selectJson.select.length; i++) {
  6278. if (!this.selectJson.select[i]) {
  6279. a = 2;
  6280. }
  6281. }
  6282. if (a == 2) {
  6283. this.$message.error("添加的选项不能为空");
  6284. return;
  6285. }
  6286. this.selectSteps++;
  6287. },
  6288. selectCourseDetail() {
  6289. if (this.cid == "" || this.cid == undefined) {
  6290. console.log("这是新增课程");
  6291. this.selectAllType();
  6292. } else {
  6293. this.cidType = 1;
  6294. let params = {
  6295. cid: this.cid,
  6296. };
  6297. this.ajax
  6298. .get(this.$store.state.api + "select_course_detail", params)
  6299. .then((res) => {
  6300. this.loading = true;
  6301. this.unitJson = JSON.parse(res.data[0][0].chapters);
  6302. for (var j = 0; j < this.unitJson.length; j++) {
  6303. for (
  6304. var k = 0;
  6305. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  6306. k++
  6307. ) {
  6308. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  6309. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  6310. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  6311. : [];
  6312. let _chapterData = [];
  6313. for (
  6314. var c = 0;
  6315. c <
  6316. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  6317. .length;
  6318. c++
  6319. ) {
  6320. if (
  6321. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  6322. ) {
  6323. _chapterData.push(
  6324. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  6325. );
  6326. }
  6327. }
  6328. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  6329. _chapterData;
  6330. }
  6331. }
  6332. this.$forceUpdate();
  6333. this.courseName = res.data[0][0].title;
  6334. this.courseText = res.data[0][0].brief;
  6335. this.evalua = res.data[0][0].evaId;
  6336. this.cover = JSON.parse(res.data[0][0].cover);
  6337. this.noneBtnImg = this.cover.length >= 1;
  6338. // this.checkboxList =
  6339. // res.data[0][0].course_student.length > 0
  6340. // ? JSON.parse(res.data[0][0].course_student)
  6341. // : [];
  6342. this.checkboxList2 = res.data[0][0].juri
  6343. ? res.data[0][0].juri.split(",")
  6344. : [];
  6345. this.inviteCode = [];
  6346. for (var i = 0; i < res.data[2].length; i++) {
  6347. this.inviteCode.push({
  6348. cid: res.data[2][i].classid,
  6349. ic: res.data[2][i].code,
  6350. });
  6351. }
  6352. this.checkboxList3 = res.data[0][0].course_teacher
  6353. ? res.data[0][0].course_teacher.split(",")
  6354. : [];
  6355. // this.isTeacherSee =
  6356. // res.data[0][0].is_teacher_look == 0 ? true : false;
  6357. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  6358. this.myWord = res.data[0][0].template;
  6359. this.templateC.id = "123";
  6360. this.courseUserid = res.data[0][0].userid;
  6361. // if(this.courseUserid == this.userid){
  6362. // this.InviteChange(this.checkboxList2)
  6363. // }
  6364. this.nbOrder = res.data[0][0].ordernumber;
  6365. this.courseTypeId = [];
  6366. for (var i = 0; i < res.data[1].length; i++) {
  6367. this.courseTypeId.push(res.data[1][i].typeid);
  6368. }
  6369. console.log(this.courseTypeId);
  6370. // if (this.timer) clearInterval(this.timer);
  6371. if (this.timer) clearTimeout(this.timer);
  6372. this.timer = null;
  6373. // this.timer = setInterval(() => {
  6374. // this.seleteCourseUpdate();
  6375. this.setMan();
  6376. this.selectAllType();
  6377. // }, 5000);
  6378. this.$forceUpdate();
  6379. setTimeout(() => {
  6380. this.checkEva(this.evalua);
  6381. }, 0);
  6382. })
  6383. .catch((err) => {
  6384. console.error(err);
  6385. });
  6386. }
  6387. },
  6388. seleteCourseUpdate() {
  6389. let params = {
  6390. cid: this.cid,
  6391. };
  6392. this.ajax
  6393. .get(this.$store.state.api + "select_course_detail", params)
  6394. .then((res) => {
  6395. // console.log(this.unitJson);
  6396. let unitJson = JSON.parse(res.data[0][0].chapters);
  6397. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  6398. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  6399. let _unitJson = [];
  6400. let _chapAarry = [];
  6401. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  6402. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  6403. let index = 1;
  6404. let chapindex;
  6405. if (_unitJson2.length > unitJson.length) {
  6406. for (let c = 0; c < _unitJson2.length; c++) {
  6407. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  6408. }
  6409. for (let j = 0; j < unitJson.length; j++) {
  6410. let count = 0;
  6411. for (let k = 0; k < _unitJson2.length; k++) {
  6412. if (
  6413. unitJson[j].chapterInfo[0].chapterid ==
  6414. _unitJson2[k].chapterInfo[0].chapterid
  6415. ) {
  6416. count++;
  6417. _chapAarry.splice(
  6418. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  6419. 1
  6420. );
  6421. _unitJson.push(unitJson[j]);
  6422. break;
  6423. }
  6424. }
  6425. // if(count === 0){
  6426. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  6427. // }
  6428. }
  6429. for (let k = 0; k < _unitJson2.length; k++) {
  6430. if (_unitJson2[k].isUpdate == 1) {
  6431. _chapAarry.splice(
  6432. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  6433. 1
  6434. );
  6435. _unitJson.push(_unitJson2[k]);
  6436. }
  6437. }
  6438. console.log(_chapAarry);
  6439. for (let d = 0; d < _unitJson2.length; d++) {
  6440. if (
  6441. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  6442. ) {
  6443. if (_unitIndex == d) {
  6444. index = 2;
  6445. }
  6446. chapindex = d;
  6447. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  6448. }
  6449. }
  6450. } else {
  6451. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  6452. }
  6453. for (let i = 0; i < unitJson.length; i++) {
  6454. if (
  6455. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  6456. _unitJson[i].chapterInfo[0].chapterid !=
  6457. unitJson[i].chapterInfo[0].chapterid
  6458. ) {
  6459. if (i == _unitJson.length - 1) {
  6460. // this.unitIndex++
  6461. _unitIndex2++;
  6462. }
  6463. _unitJson.splice(i, 0, unitJson[i]);
  6464. } else if (i > _unitJson.length - 1) {
  6465. _unitJson.push(unitJson[i]);
  6466. } else if (
  6467. _unitJson[i].chapterInfo[0].chapterid ==
  6468. unitJson[i].chapterInfo[0].chapterid
  6469. ) {
  6470. _unitJson[i] = unitJson[i];
  6471. }
  6472. // if (i == _unitIndex) {
  6473. // continue;
  6474. // } else
  6475. }
  6476. if (_chapAarry.length && index != 2) {
  6477. if (chapindex < _unitIndex) {
  6478. this.isDelete = 2;
  6479. // this.unitIndex--;
  6480. _unitIndex2--;
  6481. } else if (
  6482. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  6483. _unitJson[_unitIndex].chapterInfo[0].chapterid
  6484. ) {
  6485. this.isDelete = 2;
  6486. for (let n = 0; n < _unitJson.length; n++) {
  6487. if (
  6488. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  6489. _unitJson[n].chapterInfo[0].chapterid
  6490. ) {
  6491. // this.unitIndex = n;
  6492. _unitIndex2 = n;
  6493. _unitJson[n] = _unitJson2[_unitIndex];
  6494. break;
  6495. }
  6496. }
  6497. }
  6498. } else if (index != 2) {
  6499. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  6500. _unitJson2[_unitIndex];
  6501. for (
  6502. var ci = 0;
  6503. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  6504. ci++
  6505. ) {
  6506. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  6507. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  6508. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  6509. .toolChoose
  6510. : [];
  6511. let _chapterData = [];
  6512. for (
  6513. var c = 0;
  6514. c <
  6515. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  6516. .length;
  6517. c++
  6518. ) {
  6519. if (
  6520. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  6521. .chapterData[c]
  6522. ) {
  6523. _chapterData.push(
  6524. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  6525. .chapterData[c]
  6526. );
  6527. }
  6528. }
  6529. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  6530. _chapterData;
  6531. }
  6532. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  6533. }
  6534. if (index == 1) {
  6535. this.unitJson = _unitJson;
  6536. this.$forceUpdate();
  6537. setTimeout(() => {
  6538. if (this.unitIndex != _unitIndex2) {
  6539. this.isDelete = 2;
  6540. this.unitIndex = _unitIndex2;
  6541. }
  6542. }, 0);
  6543. this.timer = setTimeout(() => {
  6544. this.seleteCourseUpdate();
  6545. }, 1000);
  6546. } else if (index == 2) {
  6547. let _this = this;
  6548. _this
  6549. .$confirm(
  6550. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  6551. "提示",
  6552. {
  6553. confirmButtonText: "需要",
  6554. cancelButtonText: "取消",
  6555. type: "warning",
  6556. }
  6557. )
  6558. .then(() => {
  6559. if (_this.time()) {
  6560. _this.restoreWork(
  6561. _chapAarry[0],
  6562. _unitJson,
  6563. chapindex,
  6564. _unitJson2,
  6565. _unitIndex2
  6566. );
  6567. }
  6568. })
  6569. .catch(() => {
  6570. _this.unitJson = _unitJson;
  6571. _this.$forceUpdate();
  6572. setTimeout(() => {
  6573. if (this.unitIndex != _unitIndex2) {
  6574. this.isDelete = 2;
  6575. this.unitIndex = _unitIndex2;
  6576. }
  6577. }, 0);
  6578. _this.timer = setTimeout(() => {
  6579. _this.seleteCourseUpdate();
  6580. }, 1000);
  6581. });
  6582. }
  6583. })
  6584. .catch((err) => {
  6585. console.error(err);
  6586. });
  6587. },
  6588. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  6589. let params = [
  6590. {
  6591. cid: this.cid,
  6592. chapters: JSON.stringify(this.unitJson),
  6593. uid: this.userid,
  6594. chapid: chapid,
  6595. },
  6596. ];
  6597. this.ajax
  6598. .post(this.$store.state.api + "restoreWork", params)
  6599. .then((res) => {
  6600. this.$message({
  6601. message: "恢复成功",
  6602. type: "success",
  6603. });
  6604. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  6605. this.unitJson = unitJson;
  6606. this.$forceUpdate();
  6607. setTimeout(() => {
  6608. if (this.unitIndex != unitIndex2) {
  6609. this.isDelete = 2;
  6610. this.unitIndex = unitIndex2;
  6611. }
  6612. }, 0);
  6613. this.timer = setTimeout(() => {
  6614. this.seleteCourseUpdate();
  6615. }, 1000);
  6616. })
  6617. .catch((err) => {
  6618. this.$message.error("网络不佳");
  6619. console.error(err);
  6620. });
  6621. },
  6622. getTypeName() {
  6623. console.log(this.courseTypeId);
  6624. this.$forceUpdate();
  6625. },
  6626. selectAllType() {
  6627. let params = {
  6628. org: this.org && this.org != "" ? this.org : "",
  6629. oid: this.oid && this.oid != "" ? this.oid : "",
  6630. };
  6631. this.ajax
  6632. .get(this.$store.state.api + "selectAllType", params)
  6633. .then((res) => {
  6634. this.CourseType = res.data;
  6635. this.CourseType2 = [
  6636. { name: "智见课程", id: [] },
  6637. { name: "智行课程", id: [] },
  6638. { name: "智创课程", id: [] },
  6639. ];
  6640. for (var cti = 0; cti < res.data[0].length; cti++) {
  6641. if (
  6642. res.data[0][cti].name == "年级" ||
  6643. res.data[0][cti].name == "学科"
  6644. ) {
  6645. this.CourseType2[1].id.push(res.data[0][cti].id);
  6646. this.CourseType2[0].id.push(res.data[0][cti].id);
  6647. } else if (res.data[0][cti].name == "主题") {
  6648. this.CourseType2[2].id.push(res.data[0][cti].id);
  6649. }
  6650. }
  6651. let _courseTypeId = [];
  6652. for (var i = 0; i < res.data[0].length; i++) {
  6653. if (!this.cid) {
  6654. this.courseTypeId[res.data[0][i].id] = [];
  6655. }
  6656. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  6657. // }
  6658. this.CourseTypeJson[res.data[0][i].id] = [];
  6659. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  6660. if (res.data[0][i].name == "栏目") {
  6661. this.CourseType[0][i].name = "主题";
  6662. }
  6663. }
  6664. if (res.data[2].length == 0 && res.data[3].length == 0) {
  6665. for (var j = 0; j < res.data[1].length; j++) {
  6666. if (
  6667. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  6668. _courseTypeId.indexOf(res.data[1][j].id) == -1
  6669. ) {
  6670. _courseTypeId.push(res.data[1][j].id);
  6671. }
  6672. if (res.data[0][i].id == res.data[1][j].pid) {
  6673. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  6674. }
  6675. }
  6676. } else {
  6677. if (res.data[2].length > 0) {
  6678. for (var j = 0; j < res.data[2].length; j++) {
  6679. if (
  6680. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  6681. _courseTypeId.indexOf(res.data[2][j].id) == -1
  6682. ) {
  6683. _courseTypeId.push(res.data[2][j].id);
  6684. }
  6685. if (res.data[0][i].id == res.data[2][j].pid) {
  6686. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  6687. }
  6688. }
  6689. }
  6690. if (res.data[3].length > 0) {
  6691. for (var j = 0; j < res.data[3].length; j++) {
  6692. if (
  6693. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  6694. _courseTypeId.indexOf(res.data[3][j].id) == -1
  6695. ) {
  6696. _courseTypeId.push(res.data[3][j].id);
  6697. }
  6698. if (res.data[0][i].id == res.data[3][j].pid) {
  6699. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  6700. }
  6701. }
  6702. }
  6703. }
  6704. }
  6705. this.courseTypeId = _courseTypeId;
  6706. })
  6707. .catch((err) => {
  6708. console.error(err);
  6709. });
  6710. },
  6711. selectType() {
  6712. this.ajax
  6713. .get(this.$store.state.api + "selectType")
  6714. .then((res) => {
  6715. this.CourseType = res.data;
  6716. for (var i = 0; i < res.data[0].length; i++) {
  6717. if (!this.cid) {
  6718. this.courseTypeId[res.data[0][i].id] = "";
  6719. }
  6720. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  6721. if (res.data[0][i].name == "栏目") {
  6722. this.CourseType[0][i].name = "主题";
  6723. }
  6724. }
  6725. for (var j = 0; j < res.data[1].length; j++) {
  6726. if (res.data[0][i].id == res.data[1][j].pid) {
  6727. if (!this.CourseTypeJson[res.data[0][i].id]) {
  6728. this.CourseTypeJson[res.data[0][i].id] = [];
  6729. }
  6730. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  6731. }
  6732. }
  6733. }
  6734. this.selectTypeByOid();
  6735. this.selectTypeByOrg();
  6736. })
  6737. .catch((err) => {
  6738. console.error(err);
  6739. });
  6740. },
  6741. selectTypeByOid() {
  6742. let params = {
  6743. oid: this.oid,
  6744. };
  6745. this.ajax
  6746. .get(this.$store.state.api + "selectTypeByOid", params)
  6747. .then((res) => {
  6748. for (var i = 0; i < res.data[0].length; i++) {
  6749. for (var j = 0; j < res.data[1].length; j++) {
  6750. if (res.data[0][i].id == res.data[1][j].pid) {
  6751. if (!this.CourseTypeJson[res.data[0][i].id]) {
  6752. this.CourseTypeJson[res.data[0][i].id] = [];
  6753. }
  6754. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  6755. }
  6756. }
  6757. }
  6758. })
  6759. .catch((err) => {
  6760. console.error(err);
  6761. });
  6762. },
  6763. selectTypeByOrg() {
  6764. let params = {
  6765. oid: this.org,
  6766. };
  6767. this.ajax
  6768. .get(this.$store.state.api + "selectTypeByOrg", params)
  6769. .then((res) => {
  6770. for (var i = 0; i < res.data[0].length; i++) {
  6771. for (var j = 0; j < res.data[1].length; j++) {
  6772. if (res.data[0][i].id == res.data[1][j].pid) {
  6773. if (!this.CourseTypeJson[res.data[0][i].id]) {
  6774. this.CourseTypeJson[res.data[0][i].id] = [];
  6775. }
  6776. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  6777. }
  6778. }
  6779. }
  6780. this.$forceUpdate();
  6781. })
  6782. .catch((err) => {
  6783. console.error(err);
  6784. });
  6785. },
  6786. OtherMb(type) {
  6787. this.typeMode = type;
  6788. setTimeout(() => {
  6789. this.checkEva(this.checkId);
  6790. }, 0);
  6791. },
  6792. openMember() {
  6793. this.searchTN = "";
  6794. this.getTeacher();
  6795. this.dialogVisibleMember = true;
  6796. },
  6797. checkEva(id, type) {
  6798. this.dialogVisiblemb = false;
  6799. this.selectEva();
  6800. if (this.evalua != id && type == 2) {
  6801. this.$message.success("导入成功");
  6802. }
  6803. this.evalua = id;
  6804. this.checkId = id;
  6805. if (this.evalua != "") {
  6806. for (var i = 0; i < this.evaJuri.length; i++) {
  6807. if (this.evalua == this.evaJuri[i].id) {
  6808. this.eTitle = this.evaJuri[i].title;
  6809. this.eJson = JSON.parse(this.evaJuri[i].content);
  6810. }
  6811. }
  6812. this.data.data = [];
  6813. this.$forceUpdate();
  6814. setTimeout(() => {
  6815. this.setMindData();
  6816. }, 500);
  6817. }
  6818. },
  6819. deleteEva() {
  6820. let _this = this;
  6821. if (_this.evalua == "") {
  6822. this.$message.warning("内容已经清空了,请勿重复清空");
  6823. return;
  6824. }
  6825. _this
  6826. .$confirm("确定删除此目标吗?", "提示", {
  6827. confirmButtonText: "确定",
  6828. cancelButtonText: "取消",
  6829. type: "warning",
  6830. })
  6831. .then(() => {
  6832. _this.evalua = "";
  6833. _this.checkId = "";
  6834. _this.eTitle = "";
  6835. let _unitJson = _this.unitJson;
  6836. for (var i = 0; i < _unitJson.length; i++) {
  6837. let _task = _unitJson[i].chapterInfo[0].taskJson;
  6838. for (var j = 0; j < _task.length; j++) {
  6839. let _eList = _task[j].eList;
  6840. for (var k = 0; k < _eList.length; k++) {
  6841. delete _eList[k].target;
  6842. }
  6843. }
  6844. }
  6845. _this.$forceUpdate();
  6846. if (_this.cid) {
  6847. _this.updateWork();
  6848. }
  6849. })
  6850. .catch(() => {
  6851. return;
  6852. });
  6853. },
  6854. selectEva() {
  6855. let params = {
  6856. oid: this.oid,
  6857. };
  6858. this.ajax
  6859. .get(this.$store.state.api + "selectAllEvaluation", params)
  6860. .then((res) => {
  6861. this.evaJuri = res.data[0];
  6862. })
  6863. .catch((err) => {
  6864. console.error(err);
  6865. });
  6866. },
  6867. setMindData() {
  6868. let targetArray = [];
  6869. this.data.data = [];
  6870. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  6871. let _eJson = Object.keys(this.eJson);
  6872. let _e = this.eJson;
  6873. for (let i = 0; i < _eJson.length; i++) {
  6874. let element = _e[_eJson[i]];
  6875. this.data.data.push({
  6876. id: element.id,
  6877. parentid: "root",
  6878. topic: element.name,
  6879. });
  6880. // targetArray.push({
  6881. // id: element.id,
  6882. // parentid: "root",
  6883. // name: element.name,
  6884. // });
  6885. targetArray.push({
  6886. value: element.name,
  6887. label: element.name,
  6888. children: [],
  6889. });
  6890. let _eJsonc = Object.keys(element.child);
  6891. let _e2 = element.child;
  6892. for (let j = 0; j < _eJsonc.length; j++) {
  6893. let _ec = _e2[_eJsonc[j]];
  6894. this.data.data.push({
  6895. id: _ec.id,
  6896. parentid: element.id,
  6897. topic: _ec.name,
  6898. });
  6899. // targetArray.push({
  6900. // id: _ec.id,
  6901. // parentid: element.id,
  6902. // name: _ec.name,
  6903. // });
  6904. targetArray[i].children.push({
  6905. value: _ec.name,
  6906. label: _ec.name,
  6907. children: [],
  6908. });
  6909. let _eJsonz = Object.keys(_ec.child);
  6910. let _e3 = _ec.child;
  6911. for (let z = 0; z < _eJsonz.length; z++) {
  6912. let _ez = _e3[_eJsonz[z]];
  6913. this.data.data.push({
  6914. id: _ez.id,
  6915. parentid: _ec.id,
  6916. topic: _ez.name,
  6917. });
  6918. // targetArray.push({
  6919. // id: _ez.id,
  6920. // parentid: _ec.id,
  6921. // name: _ez.name,
  6922. // });
  6923. targetArray[i].children[j].children.push({
  6924. value: _ez.name,
  6925. label: _ez.name,
  6926. });
  6927. }
  6928. }
  6929. }
  6930. this.targetArray = targetArray;
  6931. this.$forceUpdate();
  6932. },
  6933. /*添加评价 */
  6934. addEList(index, tIndex) {
  6935. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  6936. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  6937. value: "",
  6938. detail: "",
  6939. score: 5,
  6940. })
  6941. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  6942. { value: "", detail: "", score: 5 },
  6943. ]);
  6944. this.$forceUpdate();
  6945. },
  6946. forceUpdate() {
  6947. this.$forceUpdate();
  6948. },
  6949. deletEList(index, tIndex, eIndex) {
  6950. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  6951. eIndex,
  6952. 1
  6953. );
  6954. this.$forceUpdate();
  6955. },
  6956. getChoosePic(t) {
  6957. this.chooseType = t;
  6958. this.getAllBanner();
  6959. },
  6960. getAllBanner() {
  6961. this.sysPicVisible = true;
  6962. let params = {
  6963. t: this.chooseType,
  6964. };
  6965. this.ajax
  6966. .get(this.$store.state.api + "selectAllBanner", params)
  6967. .then((res) => {
  6968. this.sysPic = res.data[0];
  6969. })
  6970. .catch((err) => {
  6971. console.error(err);
  6972. });
  6973. },
  6974. // getClass() {
  6975. // let params = {
  6976. // oid: this.oid,
  6977. // };
  6978. // this.ajax
  6979. // .get(this.$store.state.api + "selectClassBySchool", params)
  6980. // .then((res) => {
  6981. // this.classJuri = res.data[0];
  6982. // })
  6983. // .catch((err) => {
  6984. // console.error(err);
  6985. // });
  6986. // },
  6987. deleteSysPic() {
  6988. this.cover = [];
  6989. this.isSysPic = false;
  6990. },
  6991. deleteSelectPic() {
  6992. this.selectJson.url = "";
  6993. },
  6994. setEListStar() {
  6995. this.$forceUpdate();
  6996. },
  6997. deletRateList(i) {
  6998. this.rateJson.splice(i, 1);
  6999. },
  7000. addRateList() {
  7001. this.rateJson.push({ detail: "", score: 5, value: "" });
  7002. },
  7003. addSt() {
  7004. this.sentenceList.push({
  7005. sentenceTitle: "",
  7006. addSentence: [],
  7007. rightAnswer: [],
  7008. });
  7009. },
  7010. addSen(i) {
  7011. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  7012. // this.isPushTitleList.push(this.sentenceTitle);
  7013. this.sentenceList[i].sentenceTitle = "";
  7014. },
  7015. setRightAnswer(s, i, j) {
  7016. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  7017. this.sentenceList[i].rightAnswer.push(s);
  7018. }
  7019. },
  7020. returnCard(r, i, j) {
  7021. this.sentenceList[i].rightAnswer.splice(j, 1);
  7022. },
  7023. addSentenceTool() {
  7024. for (var i = 0; i < this.sentenceList.length; i++) {
  7025. if (this.sentenceList[i].rightAnswer.length == 0) {
  7026. this.$message.error("请将信息填写完整!");
  7027. return;
  7028. }
  7029. if (
  7030. this.sentenceList[i].addSentence.length !=
  7031. this.sentenceList[i].rightAnswer.length
  7032. ) {
  7033. this.$message.error("请将信息填写完整!");
  7034. return;
  7035. }
  7036. }
  7037. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7038. this.taskCount
  7039. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  7040. this.sentenceList = [
  7041. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  7042. ];
  7043. this.dialogVisibleSentence = false;
  7044. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7045. // itemTaskIndex
  7046. // ].toolChoose[toolIndex].tool = [];
  7047. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7048. // itemTaskIndex
  7049. // ].toolChoose[toolIndex].tool.push(i);
  7050. if (
  7051. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7052. .toolChoose[this.toolIndex].tool != 47
  7053. ) {
  7054. this.addTools(47, this.taskCount, this.toolIndex);
  7055. }
  7056. },
  7057. addTableJson() {
  7058. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  7059. // this.$message.error("请将信息填写完整!");
  7060. // return;
  7061. // }
  7062. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7063. this.taskCount
  7064. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  7065. // this.tableJson = [{ text: "" }];
  7066. // this.dialogVisibleTable = false;
  7067. this.$message.success("上传成功");
  7068. if (
  7069. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7070. .toolChoose[this.toolIndex].tool != 48
  7071. ) {
  7072. this.addTools(48, this.taskCount, this.toolIndex);
  7073. }
  7074. },
  7075. addWordJson() {
  7076. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7077. this.taskCount
  7078. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  7079. // this.wordJson = [{ text: "" }];
  7080. // this.dialogVisibleWord = false;
  7081. this.$message.success("上传成功");
  7082. if (
  7083. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7084. .toolChoose[this.toolIndex].tool != 52
  7085. ) {
  7086. this.addTools(52, this.taskCount, this.toolIndex);
  7087. }
  7088. },
  7089. addMoreUpload() {
  7090. if (this.uploadJson.length == 0) {
  7091. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7092. this.taskCount
  7093. ].toolChoose[this.toolIndex].uploadJson = [];
  7094. } else {
  7095. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7096. this.taskCount
  7097. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  7098. }
  7099. this.uploadJson = [];
  7100. this.dialogVisibleMoreUpload = false;
  7101. if (
  7102. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7103. .toolChoose[this.toolIndex].tool != 50
  7104. ) {
  7105. this.addTools(50, this.taskCount, this.toolIndex);
  7106. }
  7107. },
  7108. addPreTime() {
  7109. if (this.preTime == 0) {
  7110. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7111. this.taskCount
  7112. ].toolChoose[this.toolIndex].preTime = 0;
  7113. } else {
  7114. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7115. this.taskCount
  7116. ].toolChoose[this.toolIndex].preTime = this.preTime;
  7117. }
  7118. this.preTime = 0;
  7119. this.dialogVisiblePreTime = false;
  7120. if (
  7121. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7122. .toolChoose[this.toolIndex].tool != 10
  7123. ) {
  7124. this.addTools(10, this.taskCount, this.toolIndex);
  7125. }
  7126. },
  7127. goToTask(i) {
  7128. $(".rightBox")[0].scrollTop = $(".taskBorder")[i].offsetTop + $(".taskBorder")[i].parentElement.parentElement.offsetTop;
  7129. this.isClickColor = i + 1;
  7130. },
  7131. taskMove(type, index) {
  7132. // this
  7133. // .$confirm("切换任务顺序将删除所有工具的提交成果,是否继续此操作?", "提示", {
  7134. // confirmButtonText: "确定",
  7135. // cancelButtonText: "取消",
  7136. // type: "warning",
  7137. // })
  7138. // .then(() => {
  7139. if (type == 1) {
  7140. if (index > 0) {
  7141. let a = JSON.parse(
  7142. JSON.stringify(
  7143. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1]
  7144. )
  7145. );
  7146. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  7147. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  7148. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  7149. }
  7150. } else {
  7151. if (
  7152. index <
  7153. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  7154. ) {
  7155. let a = JSON.parse(
  7156. JSON.stringify(
  7157. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1]
  7158. )
  7159. );
  7160. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  7161. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  7162. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  7163. }
  7164. }
  7165. this.$forceUpdate();
  7166. // })
  7167. // .catch(() => {
  7168. // return;
  7169. // })
  7170. },
  7171. addGroup(i) {
  7172. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  7173. this.groupJson.group.push({
  7174. name: "第" + (this.groupJson.group.length + 1) + "组",
  7175. });
  7176. },
  7177. deleteGroup(i) {
  7178. this.groupJson.group.splice(i, 1);
  7179. },
  7180. addGroupJson() {
  7181. for (var i = 0; i < this.groupJson.group.length; i++) {
  7182. if (!this.groupJson.group[i].name) {
  7183. this.$message.error("请将信息填写完整!");
  7184. return;
  7185. }
  7186. }
  7187. if (!this.groupJson.number) {
  7188. this.$message.error("请将信息填写完整!");
  7189. return;
  7190. }
  7191. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7192. this.taskCount
  7193. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  7194. JSON.stringify(this.groupJson)
  7195. );
  7196. this.dialogVisibleGroup = false;
  7197. this.groupJson = {};
  7198. if (
  7199. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7200. .toolChoose[this.toolIndex].tool != 49
  7201. ) {
  7202. this.addTools(49, this.taskCount, this.toolIndex);
  7203. }
  7204. },
  7205. updateTime(preTime) {
  7206. this.preTime = preTime;
  7207. },
  7208. InviteChange(val) {
  7209. console.log(val);
  7210. return;
  7211. let array = JSON.parse(JSON.stringify(val));
  7212. this.inviteCode = this.inviteCode.filter((el) => {
  7213. if (val.indexOf(el.cid) != -1) {
  7214. array.splice(array.indexOf(el.cid), 1);
  7215. return el;
  7216. }
  7217. });
  7218. for (var i = 0; i < array.length; i++) {
  7219. this.getInviteCode(array[i]);
  7220. }
  7221. },
  7222. async getInviteCode(cid) {
  7223. let code = this.randomNumber();
  7224. let params = {
  7225. code: code,
  7226. oid: this.oid,
  7227. };
  7228. let type = 1;
  7229. for (var i = 0; i < this.inviteCode.length; i++) {
  7230. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  7231. type = 2;
  7232. }
  7233. }
  7234. if (type == 2) {
  7235. this.getInviteCode(cid);
  7236. return;
  7237. }
  7238. const res = await this.ajax.get(
  7239. this.$store.state.api + "selectInviteCode2",
  7240. params
  7241. );
  7242. if (
  7243. res.data.length &&
  7244. res.data[0].length &&
  7245. res.data[0][0].courseId != this.cid
  7246. ) {
  7247. this.getInviteCode(cid);
  7248. return;
  7249. }
  7250. let array = [];
  7251. for (var i = 0; i < this.inviteCode.length; i++) {
  7252. array.push(this.inviteCode[i].cid);
  7253. }
  7254. if (array.indexOf(cid) != -1) {
  7255. this.inviteCode[array.indexOf(cid)].ic = code;
  7256. } else {
  7257. this.inviteCode.push({ cid: cid, ic: code });
  7258. }
  7259. },
  7260. OpenInviteD(cid) {
  7261. let array = [];
  7262. this.icode = "";
  7263. for (var i = 0; i < this.inviteCode.length; i++) {
  7264. array.push(this.inviteCode[i].cid);
  7265. }
  7266. if (array.indexOf(cid) != -1) {
  7267. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  7268. }
  7269. this.inviteId = cid;
  7270. this.dialogVisibleInvite = true;
  7271. },
  7272. addInvite() {
  7273. let reg = /^[A-Za-z0-9]{4,}$/;
  7274. if (!reg.test(this.icode)) {
  7275. this.$message.error("请输入至少四位数字或英文组合的随机码");
  7276. return;
  7277. }
  7278. let type = 1;
  7279. for (var i = 0; i < this.inviteCode.length; i++) {
  7280. if (
  7281. this.inviteCode[i].cid != this.inviteId &&
  7282. this.icode == this.inviteCode[i].ic
  7283. ) {
  7284. type = 2;
  7285. }
  7286. }
  7287. if (type == 2) {
  7288. this.$message.error("已有此随机码,不能重复");
  7289. return;
  7290. }
  7291. let params = {
  7292. code: this.icode,
  7293. oid: this.oid,
  7294. };
  7295. this.ajax
  7296. .get(this.$store.state.api + "selectInviteCode", params)
  7297. .then((res) => {
  7298. if (
  7299. res.data.length &&
  7300. res.data[0].length &&
  7301. res.data[0][0].courseId != this.cid
  7302. ) {
  7303. this.$message.error("已有此随机码,不能重复");
  7304. return;
  7305. }
  7306. let array = [];
  7307. for (var i = 0; i < this.inviteCode.length; i++) {
  7308. array.push(this.inviteCode[i].cid);
  7309. }
  7310. if (array.indexOf(this.inviteId) != -1) {
  7311. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  7312. } else {
  7313. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  7314. }
  7315. this.icode = "";
  7316. this.dialogVisibleInvite = false;
  7317. })
  7318. .catch((err) => {
  7319. console.error(err);
  7320. });
  7321. },
  7322. randomNumber() {
  7323. // 随机生成两位数
  7324. // let num = Math.floor(Math.random() * 900) + 100;
  7325. // 生成 0 到 99 之间的随机整数
  7326. const randomNumber = Math.floor(Math.random() * 100);
  7327. // 如果随机数小于 10,补上前导零
  7328. const num =
  7329. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  7330. // 随机生成两个大写字母
  7331. let letters = "";
  7332. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  7333. for (let i = 0; i < 3; i++) {
  7334. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  7335. }
  7336. // 随机生成两位数字和字母的组合
  7337. let mix = "";
  7338. let chars =
  7339. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  7340. for (let i = 0; i < 3; i++) {
  7341. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  7342. mix += char;
  7343. }
  7344. // 随机选择一种类型
  7345. let type = Math.floor(Math.random() * 3);
  7346. return num;
  7347. // 根据类型输出结果
  7348. switch (type) {
  7349. case 0:
  7350. console.log(num); // 输出两位数
  7351. return num;
  7352. case 1:
  7353. console.log(letters); // 输出两个大写字母
  7354. return letters;
  7355. case 2:
  7356. console.log(mix); // 输出两位数字和字母的组合
  7357. return mix;
  7358. }
  7359. },
  7360. },
  7361. beforeDestroy() {
  7362. clearTimeout(this.timer);
  7363. this.timer = null;
  7364. clearInterval(this.timer2);
  7365. this.timer2 = null;
  7366. },
  7367. beforeRouteLeave(to, from, next) {
  7368. clearTimeout(this.timer);
  7369. this.timer = null;
  7370. clearInterval(this.timer2);
  7371. this.timer2 = null;
  7372. next();
  7373. },
  7374. created() {
  7375. this.getStudent();
  7376. this.getTeacher();
  7377. this.getClass();
  7378. this.getTemplate();
  7379. // this.selectType();
  7380. this.selectEva();
  7381. this.loading = false;
  7382. this.timer2 = setInterval(() => {
  7383. this.selectEva();
  7384. }, 5000);
  7385. setTimeout(() => {
  7386. this.selectCourseDetail();
  7387. }, 500);
  7388. },
  7389. mounted() {
  7390. this.$nextTick(() => {
  7391. //监听这个dom的scroll事件
  7392. $('.rightBox')[0].addEventListener("scroll", this.scrollChange);
  7393. });;
  7394. },
  7395. };
  7396. </script>
  7397. <style scoped>
  7398. @media screen and (max-width: 1280px) {
  7399. .mbCss {
  7400. flex-direction: column !important;
  7401. }
  7402. .pjCss {
  7403. width: 100% !important;
  7404. }
  7405. .evaCss {
  7406. width: 100% !important;
  7407. }
  7408. }
  7409. .dialog_diy>>>.el-dialog__header {
  7410. background: #3c3c3c !important;
  7411. padding: 15px 20px;
  7412. }
  7413. .dialog_diy>>>.el-dialog__title {
  7414. color: #fff;
  7415. }
  7416. .dialog_diy>>>.el-dialog__headerbtn {
  7417. top: 19px;
  7418. }
  7419. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  7420. color: #fff;
  7421. }
  7422. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  7423. color: #fff;
  7424. }
  7425. .dialog_diy>>>.el-dialog__body,
  7426. .dialog_diy>>>.el-dialog__footer {
  7427. background: #fafafa;
  7428. }
  7429. .dialog_diy3>>>.el-dialog__body,
  7430. .dialog_diy3>>>.el-dialog__footer {
  7431. background: #eee !important;
  7432. }
  7433. .dialog_diy3>>>.el-dialog__body {
  7434. padding: 20px 20px;
  7435. }
  7436. .source_diy>>>.el-dialog {
  7437. height: 100% !important;
  7438. margin: 0 auto !important;
  7439. }
  7440. .source_diy>>>.el-dialog__body {
  7441. height: calc(100% - 185px);
  7442. overflow: auto;
  7443. background: #e6eaf0;
  7444. }
  7445. .source_diy>>>.el-dialog__footer {
  7446. background: #e6eaf0 !important;
  7447. }
  7448. .left {
  7449. border-right: 1px solid rgb(60, 94, 143);
  7450. display: flex;
  7451. flex-direction: column;
  7452. align-items: center;
  7453. min-height: 600px;
  7454. width: 385px;
  7455. height: 80%;
  7456. }
  7457. .tips {
  7458. color: rgb(128, 128, 128);
  7459. font-size: 12px;
  7460. width: 270px;
  7461. margin: 40px;
  7462. }
  7463. .pb_content {
  7464. height: 100% !important;
  7465. /* margin: 0 20px 0 20px; */
  7466. }
  7467. .pb_content_body {
  7468. width: 100% !important;
  7469. height: 100%;
  7470. }
  7471. .info_solid {
  7472. width: 270px;
  7473. height: 30px;
  7474. border-left: 1px solid #bdbdbd;
  7475. margin: 10px 0px 10px 30px;
  7476. }
  7477. .info_steps {
  7478. width: 270px;
  7479. font-size: 0.875rem;
  7480. display: flex;
  7481. align-items: center;
  7482. }
  7483. .info_steps span:nth-child(1) {
  7484. width: 30px;
  7485. height: 30px;
  7486. background: rgba(0, 0, 0, 0.38);
  7487. display: block;
  7488. color: #fff;
  7489. border-radius: 40px;
  7490. text-align: center;
  7491. line-height: 30px;
  7492. }
  7493. .steps_active {
  7494. background: #3d67bc !important;
  7495. }
  7496. .info_steps span:nth-child(2) {
  7497. margin-left: 5px;
  7498. }
  7499. .right {
  7500. height: 100%;
  7501. width: 100%;
  7502. display: flex;
  7503. overflow: hidden;
  7504. }
  7505. .basic_box {
  7506. margin: 0 auto;
  7507. position: relative;
  7508. padding: 0 20px 0 20px;
  7509. }
  7510. .basic_box2 {
  7511. position: relative;
  7512. width: calc(100% - 300px);
  7513. }
  7514. .basic_box_success {
  7515. width: 100%;
  7516. height: 100%;
  7517. padding: 50px 0;
  7518. position: relative;
  7519. text-align: center;
  7520. /* border-bottom: 1px solid #bfbfbf; */
  7521. box-sizing: border-box;
  7522. display: flex;
  7523. align-items: center;
  7524. flex-direction: column;
  7525. justify-content: center;
  7526. }
  7527. .info_title {
  7528. font-size: 1.5em;
  7529. margin-right: 25px;
  7530. /* margin: 20px 30px 20px 30px; */
  7531. }
  7532. .bInfo_title {
  7533. text-align: left;
  7534. margin: 10px 0;
  7535. }
  7536. .small_title {
  7537. font-size: 14px;
  7538. line-height: 40px;
  7539. }
  7540. .chapter_beizhu {
  7541. font-size: 12px;
  7542. font-weight: bold;
  7543. float: right;
  7544. color: rgb(128, 128, 128);
  7545. margin-top: 5px;
  7546. }
  7547. .chapter_uploadBox1 {
  7548. text-align: left;
  7549. background-color: rgb(242, 242, 242);
  7550. width: 100%;
  7551. height: 67px;
  7552. padding: 0px 15px;
  7553. border-radius: 8px;
  7554. overflow: hidden;
  7555. font-size: 16px;
  7556. box-sizing: border-box;
  7557. position: relative;
  7558. }
  7559. .chapter_add {
  7560. width: 100%;
  7561. height: 32px;
  7562. margin-top: 15px;
  7563. cursor: pointer;
  7564. }
  7565. .chapter_add_l {
  7566. margin-left: 5px;
  7567. width: 30px;
  7568. height: 30px;
  7569. float: left;
  7570. border: 1px solid #aaa;
  7571. color: #aaa;
  7572. border-radius: 50%;
  7573. font-size: 25px;
  7574. text-align: center;
  7575. }
  7576. .chapter_add_r {
  7577. font-size: 18px;
  7578. height: 40px;
  7579. line-height: 30px;
  7580. text-indent: 10px;
  7581. color: #aaa;
  7582. }
  7583. .chapter_add_r span {
  7584. font-size: 12px;
  7585. color: rgb(204, 204, 204);
  7586. }
  7587. .chapter_add_input {
  7588. display: none;
  7589. }
  7590. .line {
  7591. width: 85%;
  7592. margin: 0 auto;
  7593. border-top: 1px solid #e5e5e5;
  7594. margin-top: 20px;
  7595. }
  7596. .info_btnBox {
  7597. width: 100%;
  7598. display: flex;
  7599. justify-content: space-evenly;
  7600. margin: 10px 0 10px 0;
  7601. }
  7602. .info_btn,
  7603. .teacherWord {
  7604. color: #fff;
  7605. background-color: #0f7eff;
  7606. padding: 8px 24px;
  7607. font-size: 0.9375rem;
  7608. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  7609. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  7610. min-width: 64px;
  7611. font-weight: 500;
  7612. border-radius: 4px;
  7613. box-sizing: border-box;
  7614. border: none;
  7615. cursor: pointer;
  7616. }
  7617. .teacherWord {
  7618. width: 105px !important;
  7619. text-align: center !important;
  7620. line-height: 36px !important;
  7621. padding: 0 !important;
  7622. font-size: 14px !important;
  7623. margin: 10px 0 !important;
  7624. }
  7625. .wordTeacher {
  7626. display: flex;
  7627. flex-direction: column;
  7628. width: 20%;
  7629. text-align: center;
  7630. font-size: 14px;
  7631. margin: 30px 30px 0 10px;
  7632. background: #fff;
  7633. position: relative;
  7634. border-radius: 5px;
  7635. padding: 25px 0px;
  7636. }
  7637. .wordPic {
  7638. margin: 0 auto;
  7639. width: 60px;
  7640. height: 60px;
  7641. cursor: pointer;
  7642. }
  7643. .deleteWord {
  7644. width: 22px;
  7645. height: 22px;
  7646. position: absolute;
  7647. right: 5px;
  7648. top: -15px;
  7649. cursor: pointer;
  7650. display: none;
  7651. z-index: 999;
  7652. }
  7653. .wordPic>img,
  7654. .deleteWord>img,
  7655. .addToolImg>img {
  7656. width: 100%;
  7657. height: 100%;
  7658. }
  7659. .info_btn:hover {
  7660. background-color: #4f7cd5 !important;
  7661. }
  7662. .cru_selectBox {
  7663. display: flex;
  7664. margin: 24px 0 10px;
  7665. flex-wrap: nowrap;
  7666. white-space: nowrap;
  7667. overflow: auto;
  7668. position: relative;
  7669. height: 47px;
  7670. }
  7671. .cru_selectBox::-webkit-scrollbar {
  7672. /*滚动条整体样式*/
  7673. width: 6px;
  7674. /*高宽分别对应横竖滚动条的尺寸*/
  7675. height: 6px;
  7676. }
  7677. /*定义滚动条轨道 内阴影+圆角*/
  7678. .cru_selectBox::-webkit-scrollbar-track {
  7679. border-radius: 10px;
  7680. background-color: #eee;
  7681. }
  7682. /*定义滑块 内阴影+圆角*/
  7683. .cru_selectBox::-webkit-scrollbar-thumb {
  7684. border-radius: 10px;
  7685. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  7686. background-color: rgba(0, 0, 0, 0.1);
  7687. }
  7688. .cru_line {
  7689. position: absolute;
  7690. bottom: 0px;
  7691. transition: all 0.5s;
  7692. left: 0px;
  7693. width: 125px;
  7694. margin-left: -25px;
  7695. }
  7696. .cru_select {
  7697. font-size: 21px;
  7698. margin-right: 37px;
  7699. margin-left: 5px;
  7700. cursor: pointer;
  7701. color: #a6a6a6;
  7702. }
  7703. .cru_selected {
  7704. color: #0b7fc2 !important;
  7705. }
  7706. .chapter_contentbox {
  7707. display: flex;
  7708. align-items: center;
  7709. margin-top: 15px;
  7710. }
  7711. .chapter_contentbox div:nth-child(1) {
  7712. /* width: 150px; */
  7713. margin: 0px;
  7714. /* font-size: 2em; */
  7715. color: black;
  7716. display: block;
  7717. white-space: nowrap;
  7718. overflow: hidden;
  7719. text-overflow: ellipsis;
  7720. /* font-weight: 600; */
  7721. margin-right: 20px;
  7722. font-size: 18px;
  7723. }
  7724. .chapter_contentbox div:nth-child(2) {
  7725. width: 380px;
  7726. }
  7727. .chapter_contentbox div:nth-child(3),
  7728. .remove {
  7729. background-image: url("../../../assets/remove.png");
  7730. cursor: pointer;
  7731. opacity: 0.5;
  7732. width: 40px;
  7733. height: 50px;
  7734. background-repeat: no-repeat;
  7735. background-position: 5px 10px;
  7736. }
  7737. .remove1 {
  7738. background-image: url("../../../assets/remove1.png");
  7739. background-repeat: no-repeat;
  7740. background-position: 5px 10px;
  7741. width: 40px;
  7742. height: 50px;
  7743. cursor: pointer;
  7744. }
  7745. .binfo_input {
  7746. font: inherit;
  7747. color: currentColor;
  7748. width: 100%;
  7749. margin: 0;
  7750. /* padding: 15px 14px; */
  7751. padding: 8px 14px;
  7752. display: block;
  7753. min-width: 0;
  7754. outline: none;
  7755. box-sizing: content-box;
  7756. background: none;
  7757. border: 1px solid rgba(0, 0, 0, 0.23);
  7758. border-radius: 4px;
  7759. box-sizing: border-box;
  7760. background: #fff;
  7761. font-size: 18px;
  7762. }
  7763. .binfo_input:focus-visible {
  7764. border: 1px solid rgba(61, 103, 188);
  7765. }
  7766. .time {
  7767. display: flex;
  7768. margin: 35px 0 80px 0;
  7769. }
  7770. .chapter_btnbox {
  7771. width: 160px;
  7772. border-radius: 5px;
  7773. border: 2px dashed gray;
  7774. display: flex;
  7775. padding: 8px 50px;
  7776. align-items: center;
  7777. justify-content: center;
  7778. margin: 30px auto 0;
  7779. cursor: pointer;
  7780. }
  7781. .icon_add {
  7782. position: relative;
  7783. width: 24px;
  7784. padding-top: 20px;
  7785. border-radius: 100%;
  7786. border-width: 2px;
  7787. border-style: solid;
  7788. border-color: gray;
  7789. }
  7790. .icon_add i:nth-child(1) {
  7791. position: absolute;
  7792. left: 50%;
  7793. top: 50%;
  7794. height: 60%;
  7795. transform: translate(-50%, -50%);
  7796. border-width: 1px;
  7797. border-style: solid;
  7798. border-color: inherit;
  7799. }
  7800. .icon_add i:nth-child(2) {
  7801. position: absolute;
  7802. top: 50%;
  7803. left: 50%;
  7804. width: 60%;
  7805. transform: translate(-50%, -50%);
  7806. border-width: 1px;
  7807. border-style: solid;
  7808. border-color: inherit;
  7809. }
  7810. .chapter_btn_w {
  7811. font-size: 0.9375rem;
  7812. font-weight: bold;
  7813. color: gray;
  7814. margin-left: 20px;
  7815. }
  7816. .disUoloadSty>>>.el-icon-plus {
  7817. display: none !important;
  7818. /* 上传按钮隐藏 */
  7819. }
  7820. .imgLeft {
  7821. margin: 15px 0;
  7822. }
  7823. .add_info_box {
  7824. margin: 20px 0;
  7825. }
  7826. .add_info_box button {
  7827. margin: 0 10px 10px 0;
  7828. }
  7829. .add_info_box2 {
  7830. display: flex;
  7831. align-items: center;
  7832. flex-wrap: wrap;
  7833. }
  7834. .add_info_box2::after {
  7835. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  7836. color: red;
  7837. font-size: 14px;
  7838. margin-bottom: 10px;
  7839. }
  7840. .add_chapters_box {
  7841. text-align: left;
  7842. background-color: rgb(232 234 237);
  7843. width: 100%;
  7844. padding: 0px 15px;
  7845. border-radius: 15px;
  7846. font-size: 16px;
  7847. box-sizing: border-box;
  7848. position: relative;
  7849. padding: 0 10px 5px 10px;
  7850. height: 185px;
  7851. overflow-y: auto;
  7852. overflow-x: hidden;
  7853. }
  7854. .homework_box {
  7855. display: flex;
  7856. align-items: flex-start;
  7857. flex-wrap: wrap;
  7858. margin: 15px 0 0 0;
  7859. flex-direction: column;
  7860. align-content: flex-start;
  7861. }
  7862. .course_homework {
  7863. display: flex;
  7864. justify-content: center;
  7865. flex-direction: row;
  7866. align-items: center;
  7867. margin: 0 10px 0 0;
  7868. }
  7869. .course_homework>>>.el-input__inner {
  7870. width: 140px;
  7871. margin-left: 15px;
  7872. }
  7873. .chapter_upload_move {
  7874. position: relative;
  7875. background-color: #fff;
  7876. position: absolute;
  7877. width: 100%;
  7878. top: 0px;
  7879. left: 0px;
  7880. border: 1px solid #eee;
  7881. border-radius: 5px;
  7882. transition: width 2s;
  7883. -moz-transition: width 2s;
  7884. -webkit-transition: width 2s;
  7885. -o-transition: width 2s;
  7886. }
  7887. .chapter_upload_l_i {
  7888. background-image: url("../../../assets/icon.png");
  7889. background-position: 3px -165px;
  7890. width: 30px;
  7891. height: 30px;
  7892. margin: 10px auto 0 auto;
  7893. }
  7894. .left_first {
  7895. display: flex;
  7896. flex-direction: column;
  7897. flex-wrap: nowrap;
  7898. }
  7899. .right_first {
  7900. width: 100%;
  7901. height: 100%;
  7902. margin-top: 15px;
  7903. }
  7904. .right_title {
  7905. height: 30px;
  7906. padding: 15px 20px 15px 20px;
  7907. border-bottom: 1px solid #f2f2f2;
  7908. font-size: 1.5em;
  7909. font-weight: bold;
  7910. color: #0f7eff;
  7911. margin: 0 auto;
  7912. display: flex;
  7913. justify-content: space-between;
  7914. }
  7915. .people {
  7916. border: 1px solid rgb(229 229 229);
  7917. height: 495px;
  7918. border-radius: 5px;
  7919. width: 100%;
  7920. overflow: auto;
  7921. }
  7922. .people_top {
  7923. display: flex;
  7924. width: 100%;
  7925. /* justify-content: space-between; */
  7926. /* align-items: center; */
  7927. flex-direction: column;
  7928. padding: 10px 25px 0;
  7929. box-sizing: border-box;
  7930. }
  7931. .people_nav,
  7932. .people_top_right {
  7933. /* padding: 20px 0 0 20px; */
  7934. }
  7935. .people_top_right {
  7936. height: 40px;
  7937. margin-bottom: 10px;
  7938. }
  7939. .people_search {
  7940. display: flex;
  7941. position: relative;
  7942. }
  7943. .people_search>>>.el-input__inner {
  7944. /* height: 25px; */
  7945. width: 95%;
  7946. }
  7947. .search_img {
  7948. width: 20px;
  7949. height: 20px;
  7950. position: absolute;
  7951. right: 30px;
  7952. top: 50%;
  7953. transform: translateY(-50%);
  7954. }
  7955. .search_img>img {
  7956. width: 100%;
  7957. height: 100%;
  7958. }
  7959. .people_name {
  7960. display: flex;
  7961. justify-content: flex-start;
  7962. padding: 20px 0 0 25px;
  7963. flex-direction: column;
  7964. flex-wrap: wrap;
  7965. }
  7966. .p_box {
  7967. position: relative;
  7968. }
  7969. .people_name>>>.el-checkbox {
  7970. width: 100%;
  7971. display: flex;
  7972. align-items: center;
  7973. margin-bottom: 10px;
  7974. }
  7975. .people_name>>>.el-checkbox__label {
  7976. text-overflow: ellipsis;
  7977. overflow: hidden;
  7978. width: calc(100%);
  7979. }
  7980. .people_name2>>>.el-checkbox__label {
  7981. width: calc(100% - 130px);
  7982. }
  7983. .inviteCode {
  7984. position: absolute;
  7985. right: 30px;
  7986. color: #237ade;
  7987. top: 0;
  7988. cursor: pointer;
  7989. font-size: 13px;
  7990. }
  7991. .noneInvite {
  7992. color: #a8a8a8;
  7993. }
  7994. .inviteImg {
  7995. position: absolute;
  7996. right: 5px;
  7997. top: 0;
  7998. width: 20px;
  7999. }
  8000. .right_img {
  8001. width: 150px;
  8002. height: 150px;
  8003. margin: 20px auto;
  8004. }
  8005. .right_img>img {
  8006. width: 100%;
  8007. height: 100%;
  8008. }
  8009. .number {
  8010. margin-top: 20px;
  8011. color: #4aa6ff;
  8012. text-decoration: underline;
  8013. }
  8014. .success_button {
  8015. display: flex;
  8016. text-align: center;
  8017. margin: 5% 0 auto;
  8018. flex-direction: row;
  8019. justify-content: center;
  8020. }
  8021. .look_course {
  8022. margin-right: 40px;
  8023. background: #3d67bc;
  8024. width: 200px;
  8025. height: 35px;
  8026. line-height: 35px;
  8027. color: #fff;
  8028. text-align: center;
  8029. font-size: 14px;
  8030. border-radius: 5px;
  8031. cursor: pointer;
  8032. }
  8033. .attend_others {
  8034. width: 250px;
  8035. background: #4fb13c;
  8036. height: 35px;
  8037. line-height: 35px;
  8038. color: #fff;
  8039. text-align: center;
  8040. font-size: 14px;
  8041. border-radius: 5px;
  8042. cursor: pointer;
  8043. }
  8044. .dialog_diy2>>>.el-dialog__body {
  8045. text-align: center;
  8046. }
  8047. .write_togother {
  8048. position: absolute;
  8049. right: 45px;
  8050. display: flex;
  8051. top: 5%;
  8052. }
  8053. .write_people {
  8054. font-size: 14px;
  8055. line-height: 50px;
  8056. padding-right: 10px;
  8057. }
  8058. .end_write {
  8059. background: #3d67bc;
  8060. color: #fff;
  8061. width: 100px;
  8062. height: 35px;
  8063. line-height: 35px;
  8064. text-align: center;
  8065. font-size: 14px;
  8066. border-radius: 5px;
  8067. cursor: pointer;
  8068. }
  8069. .chapter_upload {
  8070. height: 50px;
  8071. margin-top: 12px;
  8072. position: relative;
  8073. display: flex;
  8074. align-items: center;
  8075. width: 100%;
  8076. min-height: 50px;
  8077. }
  8078. .chapter_upload_t {
  8079. background-color: #fff;
  8080. position: absolute;
  8081. height: 100%;
  8082. top: 0px;
  8083. left: 0px;
  8084. border-radius: 40px;
  8085. box-sizing: border-box;
  8086. box-shadow: 0 0 3px 3px #dfdfdf;
  8087. }
  8088. .chapter_upload_o {
  8089. width: 100%;
  8090. height: 100%;
  8091. position: relative;
  8092. z-index: 1;
  8093. }
  8094. .chapter_upload_ic {
  8095. height: 30px;
  8096. float: right;
  8097. }
  8098. .chapter_upload_ic_l {
  8099. width: 50px;
  8100. height: 50px;
  8101. float: left;
  8102. }
  8103. .chapter_upload_ic_l div {
  8104. width: 30px;
  8105. height: 35px;
  8106. background: url("../../../assets/icon/icon.png");
  8107. }
  8108. .chapter_upload_ic_r {
  8109. width: 50px;
  8110. height: 50px;
  8111. float: left;
  8112. margin-left: 0px;
  8113. display: flex;
  8114. align-items: center;
  8115. }
  8116. .chapter_upload_ic_r div {
  8117. width: 25px;
  8118. height: 25px;
  8119. background-image: url("../../../assets/delete.png");
  8120. background-size: 100% 100%;
  8121. }
  8122. .chapter_upload_n {
  8123. display: flex;
  8124. text-indent: 10px;
  8125. text-decoration: none;
  8126. text-overflow: ellipsis;
  8127. white-space: nowrap;
  8128. overflow: hidden;
  8129. width: 55%;
  8130. margin-left: 10px;
  8131. cursor: pointer;
  8132. margin-top: 2px;
  8133. align-items: center;
  8134. }
  8135. .chapter_upload_l_i1 {
  8136. background-image: url("../../../assets/icon/video.png");
  8137. width: 28px;
  8138. height: 28px;
  8139. background-size: 100% 100%;
  8140. }
  8141. .chapter_upload_l_i5 {
  8142. background-image: url("../../../assets/icon/word.png");
  8143. width: 24px;
  8144. height: 24px;
  8145. background-size: 100% 100%;
  8146. }
  8147. .chapter_upload_l_i8 {
  8148. background-image: url("../../../assets/icon/line.png");
  8149. width: 24px;
  8150. height: 24px;
  8151. background-size: 100% 100%;
  8152. }
  8153. .chapter_upload_ud {
  8154. display: flex;
  8155. flex-direction: column;
  8156. margin-left: 5px;
  8157. justify-content: center;
  8158. }
  8159. .chapter_upload_up {
  8160. background-image: url("../../../assets/icon/up.png");
  8161. width: 17px;
  8162. height: 15px;
  8163. background-size: 100% 100%;
  8164. cursor: pointer;
  8165. }
  8166. .chapter_upload_down {
  8167. background-image: url("../../../assets/icon/down.png");
  8168. width: 17px;
  8169. height: 15px;
  8170. margin: 2px auto 0 auto;
  8171. background-size: 100% 100%;
  8172. cursor: pointer;
  8173. }
  8174. .addWordStyle {
  8175. display: flex;
  8176. flex-direction: row;
  8177. justify-content: flex-start;
  8178. overflow-x: auto;
  8179. white-space: nowrap;
  8180. flex-wrap: wrap;
  8181. }
  8182. /* table 样式 */
  8183. .cont>>>table {
  8184. border-top: 1px solid #ccc;
  8185. border-left: 1px solid #ccc;
  8186. }
  8187. .cont>>>table td,
  8188. .cont>>>table th {
  8189. border-bottom: 1px solid #ccc;
  8190. border-right: 1px solid #ccc;
  8191. /* padding: 20px 5px; */
  8192. padding: 5px 10px;
  8193. max-width: 0px;
  8194. height: 30px;
  8195. vertical-align: baseline;
  8196. }
  8197. .cont>>>table th {
  8198. border-bottom: 2px solid #ccc;
  8199. text-align: center;
  8200. }
  8201. /* blockquote 样式 */
  8202. .cont>>>blockquote {
  8203. display: block;
  8204. border-left: 8px solid #d0e5f2;
  8205. padding: 5px 10px;
  8206. margin: 10px 0;
  8207. line-height: 1.4;
  8208. font-size: 100%;
  8209. background-color: #f1f1f1;
  8210. }
  8211. /* code 样式 */
  8212. .cont>>>code {
  8213. display: inline-block;
  8214. *display: inline;
  8215. *zoom: 1;
  8216. background-color: #f1f1f1;
  8217. border-radius: 3px;
  8218. padding: 3px 5px;
  8219. margin: 0 3px;
  8220. }
  8221. .cont>>>pre code {
  8222. display: block;
  8223. }
  8224. /* ul ol 样式 */
  8225. .cont>>>ul,
  8226. ol {
  8227. margin: 10px 0 10px 20px;
  8228. }
  8229. .wordbox {
  8230. display: flex;
  8231. flex-wrap: wrap;
  8232. cursor: pointer;
  8233. width: 100%;
  8234. }
  8235. .checkword {
  8236. width: 22px;
  8237. height: 22px;
  8238. margin: 10px auto 0;
  8239. cursor: pointer;
  8240. }
  8241. .checkword img {
  8242. width: 100%;
  8243. }
  8244. .stepBg {
  8245. display: flex;
  8246. flex-direction: column;
  8247. justify-content: space-between;
  8248. align-items: center;
  8249. background: #fff;
  8250. width: 300px;
  8251. margin: 0 25px 0 0;
  8252. }
  8253. .stepTop {
  8254. min-width: 300px;
  8255. width: 300px;
  8256. /* border-radius: 10px; */
  8257. display: flex;
  8258. flex-direction: column;
  8259. justify-content: flex-start;
  8260. align-items: center;
  8261. flex-wrap: nowrap;
  8262. background: #fff;
  8263. /* top: 18%; */
  8264. }
  8265. .stepTop>div {
  8266. height: 80px;
  8267. width: 85%;
  8268. cursor: pointer;
  8269. margin: 10px 0;
  8270. border-radius: 10px;
  8271. }
  8272. .first,
  8273. .second,
  8274. .third,
  8275. .four {
  8276. background: #4a83d0;
  8277. height: 90px;
  8278. color: #fff;
  8279. display: flex;
  8280. flex-direction: row;
  8281. align-items: center;
  8282. justify-content: center;
  8283. }
  8284. .first>div:nth-child(1),
  8285. .second>div:nth-child(1),
  8286. .third>div:nth-child(1),
  8287. .four>div:nth-child(1) {
  8288. margin: 5px 10px 0 0;
  8289. width: 2rem;
  8290. }
  8291. .firstNo,
  8292. .secondNo,
  8293. .thirdNo,
  8294. .fourNo {
  8295. background: #e7e7e7;
  8296. color: #adadad;
  8297. display: flex;
  8298. flex-direction: row;
  8299. align-items: center;
  8300. justify-content: center;
  8301. }
  8302. .firstNo>div:nth-child(1),
  8303. .secondNo>div:nth-child(1),
  8304. .thirdNo>div:nth-child(1),
  8305. .fourNo>div:nth-child(1) {
  8306. margin: 5px 10px 0 0;
  8307. width: 2rem;
  8308. }
  8309. .uploadWidth>>>.el-upload {
  8310. width: 60px;
  8311. height: 60px;
  8312. position: relative;
  8313. }
  8314. .addPeople {
  8315. background: #fa6060;
  8316. width: 150px;
  8317. height: 40px;
  8318. color: #fff;
  8319. border-radius: 5px;
  8320. text-align: center;
  8321. line-height: 40px;
  8322. font-size: 14px;
  8323. cursor: pointer;
  8324. margin-top: 20px;
  8325. }
  8326. .kcImg {
  8327. width: 60px;
  8328. margin-left: 10px;
  8329. }
  8330. .zyImg {
  8331. width: 55px;
  8332. margin: 0 10px;
  8333. }
  8334. .deleteZy {
  8335. width: 20px;
  8336. position: absolute;
  8337. top: 5px;
  8338. right: 5px;
  8339. cursor: pointer;
  8340. }
  8341. .kcImg>img,
  8342. .zyImg>img,
  8343. .deleteZy>img {
  8344. width: 100%;
  8345. height: 100%;
  8346. }
  8347. .zyBox {
  8348. display: flex;
  8349. flex-direction: row;
  8350. align-items: center;
  8351. background: #67d37d;
  8352. color: #fff;
  8353. width: 210px;
  8354. margin: 20px 20px 0 0;
  8355. border-radius: 10px;
  8356. height: 70px;
  8357. position: relative;
  8358. }
  8359. .upCss {
  8360. display: flex;
  8361. flex-direction: row;
  8362. justify-content: flex-start;
  8363. }
  8364. .upCss>>>.el-icon-plus {
  8365. position: none !important;
  8366. width: 200px;
  8367. height: 100px;
  8368. display: flex;
  8369. flex-wrap: nowrap;
  8370. flex-direction: column;
  8371. align-items: center;
  8372. justify-content: center;
  8373. border: 1px dashed #ccc;
  8374. min-width: 78px;
  8375. min-height: 100px;
  8376. z-index: 999;
  8377. }
  8378. .upCss>>>.el-upload-list__item-name {
  8379. width: 100px;
  8380. white-space: nowrap;
  8381. overflow: hidden;
  8382. text-overflow: ellipsis;
  8383. }
  8384. .addStageImg {
  8385. min-width: 25px;
  8386. min-height: 25px;
  8387. width: 25px;
  8388. height: 25px;
  8389. cursor: pointer;
  8390. }
  8391. .addHW {
  8392. width: 28px;
  8393. height: 28px;
  8394. cursor: pointer;
  8395. }
  8396. .addStageImg>img,
  8397. .addHW>img {
  8398. width: 100%;
  8399. height: 100%;
  8400. }
  8401. .addNewPP>>>.el-dialog__body {
  8402. padding: 5px 20px;
  8403. }
  8404. .isHeight {
  8405. height: 680px;
  8406. }
  8407. .toolChoose {
  8408. display: flex;
  8409. /* width: 100%; */
  8410. flex-direction: row;
  8411. flex-wrap: wrap;
  8412. }
  8413. .tool {
  8414. display: flex;
  8415. flex-direction: column;
  8416. flex-wrap: nowrap;
  8417. width: fit-content;
  8418. margin: 10px 0 10px 0;
  8419. align-items: center;
  8420. }
  8421. .tool+.tool {
  8422. margin-right: 45px;
  8423. }
  8424. .whiteBIcon {
  8425. width: 80px;
  8426. cursor: pointer;
  8427. display: flex;
  8428. flex-direction: column;
  8429. flex-wrap: nowrap;
  8430. align-items: center;
  8431. }
  8432. .whiteBIcon>img,
  8433. .toolIcon>img,
  8434. .arrow>img {
  8435. width: 100%;
  8436. height: 100%;
  8437. }
  8438. .check img {
  8439. width: 20px;
  8440. height: 20px;
  8441. }
  8442. .whiteBIcon>img {
  8443. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  8444. border-radius: 15px;
  8445. }
  8446. .check {
  8447. /* width: 20px;
  8448. height: 20px; */
  8449. cursor: pointer;
  8450. margin: 10px 0;
  8451. }
  8452. .checkDiv {
  8453. display: flex;
  8454. align-items: center;
  8455. }
  8456. .checkDiv span {
  8457. margin-left: 5px;
  8458. color: #858585;
  8459. }
  8460. .customWidth>>>.el-dialog {
  8461. min-width: 500px !important;
  8462. }
  8463. .a_addBox {
  8464. margin: 10px 0;
  8465. background: #fff;
  8466. padding: 15px;
  8467. max-height: 600px;
  8468. overflow: auto;
  8469. }
  8470. .a_add_box {
  8471. border-bottom: 2px solid #eee;
  8472. padding-bottom: 25px;
  8473. }
  8474. .a_add_head {
  8475. display: flex;
  8476. align-items: center;
  8477. justify-content: space-between;
  8478. margin: 10px 0 0 0;
  8479. font-size: 18px;
  8480. }
  8481. .a_add_checkType {
  8482. margin-top: 10px;
  8483. display: flex;
  8484. font-size: 16px;
  8485. align-items: center;
  8486. }
  8487. .a_add_checkType span {
  8488. box-sizing: border-box;
  8489. padding: 0 0 5px 0;
  8490. cursor: pointer;
  8491. }
  8492. .a_add_checkType span+span {
  8493. margin-left: 10px;
  8494. }
  8495. .a_add_checkType .active {
  8496. border-bottom: 2px solid #409eff;
  8497. color: #409eff;
  8498. }
  8499. .a_add_head .a_add_head_input {
  8500. width: 300px;
  8501. }
  8502. .a_add_head .a_add_head_div {
  8503. display: flex;
  8504. align-items: center;
  8505. justify-content: space-between;
  8506. }
  8507. .a_add_body {
  8508. display: flex;
  8509. /* align-items: center; */
  8510. align-items: flex-end;
  8511. }
  8512. .a_add_input {
  8513. display: flex;
  8514. align-items: center;
  8515. flex-wrap: wrap;
  8516. }
  8517. .a_add_input_choice {
  8518. flex-direction: column;
  8519. margin-right: 10px;
  8520. }
  8521. .a_add_input_choice>>>.el-radio {
  8522. display: flex;
  8523. align-items: center;
  8524. flex-direction: row-reverse;
  8525. margin: 30px 0 0 0;
  8526. }
  8527. .a_add_input_choice>>>.el-checkbox {
  8528. display: flex;
  8529. align-items: center;
  8530. flex-direction: row-reverse;
  8531. margin: 30px 0 0 0;
  8532. }
  8533. .width100 {
  8534. width: 100%;
  8535. }
  8536. .a_add_input .a_add_persent {
  8537. width: 100%;
  8538. }
  8539. .a_add_persent_div {
  8540. width: 100%;
  8541. display: flex;
  8542. align-items: center;
  8543. }
  8544. .a_add_persent_div span {
  8545. margin: 5px 0;
  8546. }
  8547. .a_add_persent_div span:nth-child(1) {
  8548. width: 30%;
  8549. }
  8550. .a_add_persent_div span:nth-child(2) {
  8551. width: 7%;
  8552. }
  8553. .a_add_persent_div span:nth-child(3) {
  8554. width: 40%;
  8555. }
  8556. .a_add_body_div {
  8557. display: flex;
  8558. align-items: center;
  8559. justify-content: center;
  8560. /* flex-direction: column; */
  8561. }
  8562. .all_choose {
  8563. display: flex;
  8564. flex-direction: row;
  8565. align-items: flex-start;
  8566. width: 100%;
  8567. }
  8568. .all_choose>span {
  8569. min-width: 100px;
  8570. display: block;
  8571. letter-spacing: 14px;
  8572. white-space: nowrap;
  8573. overflow: hidden;
  8574. text-overflow: ellipsis;
  8575. }
  8576. .all_choose>>>.el-checkbox-group {
  8577. display: flex;
  8578. flex-direction: row;
  8579. width: 100%;
  8580. flex-wrap: wrap;
  8581. align-content: center;
  8582. justify-content: flex-start;
  8583. align-items: center;
  8584. margin-top: 3px;
  8585. }
  8586. .all_choose>.el-checkbox-group>>>.el-checkbox {
  8587. margin-bottom: 10px;
  8588. display: flex;
  8589. flex-direction: row;
  8590. align-items: center;
  8591. }
  8592. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  8593. min-width: 80px;
  8594. overflow: hidden;
  8595. width: 80px;
  8596. text-overflow: ellipsis;
  8597. white-space: nowrap;
  8598. }
  8599. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  8600. width: auto;
  8601. }
  8602. .choose>div:nth-child(3)>span {
  8603. /* letter-spacing: 0 !important; */
  8604. }
  8605. .choose {
  8606. display: flex;
  8607. flex-direction: column;
  8608. flex-wrap: nowrap;
  8609. height: 100%;
  8610. justify-content: space-evenly;
  8611. align-items: flex-start;
  8612. }
  8613. .both {
  8614. display: flex;
  8615. flex-direction: row;
  8616. flex-wrap: wrap;
  8617. width: 100%;
  8618. align-items: center;
  8619. justify-content: flex-start;
  8620. margin: 15px 0;
  8621. }
  8622. .notice>>>.el-dialog {
  8623. width: 500px !important;
  8624. text-align: center;
  8625. }
  8626. .notice>>>.el-button {
  8627. margin-top: 20px;
  8628. }
  8629. .whiteBg {
  8630. background: #fff;
  8631. border-radius: 10px;
  8632. }
  8633. .chooseWho {
  8634. display: flex;
  8635. width: 380px;
  8636. flex-direction: row;
  8637. flex-wrap: nowrap;
  8638. justify-content: space-between;
  8639. padding-bottom: 10px;
  8640. }
  8641. .chooseWho>div {
  8642. cursor: pointer;
  8643. padding-bottom: 10px;
  8644. font-weight: bold;
  8645. }
  8646. .isChooseActive {
  8647. color: #3e88f4;
  8648. border-bottom: 2px solid #2f80f3;
  8649. }
  8650. .toolSort {
  8651. display: flex;
  8652. flex-direction: row;
  8653. flex-wrap: wrap;
  8654. justify-content: flex-start;
  8655. align-items: flex-start;
  8656. }
  8657. .toolSort>div {
  8658. margin-right: 45px;
  8659. }
  8660. .tools {
  8661. width: 100%;
  8662. display: flex;
  8663. flex-direction: column;
  8664. flex-wrap: nowrap;
  8665. align-items: flex-start;
  8666. }
  8667. .leftTools,
  8668. .rightTools {
  8669. width: 50%;
  8670. }
  8671. .rightTools {
  8672. display: flex;
  8673. flex-direction: row;
  8674. flex-wrap: nowrap;
  8675. justify-content: space-around;
  8676. }
  8677. .firstToolList {
  8678. display: flex;
  8679. flex-direction: column;
  8680. flex-wrap: nowrap;
  8681. align-items: center;
  8682. }
  8683. .iconList {
  8684. display: flex;
  8685. flex-direction: row;
  8686. flex-wrap: wrap;
  8687. justify-content: flex-start;
  8688. align-items: center;
  8689. margin: 20px 0 5px 0;
  8690. width: 240px;
  8691. min-width: 240px;
  8692. }
  8693. .iconTool {
  8694. display: flex;
  8695. flex-direction: column;
  8696. flex-wrap: nowrap;
  8697. align-items: center;
  8698. justify-content: flex-start;
  8699. margin: 15px 10px;
  8700. }
  8701. .toolIcon {
  8702. width: 50px;
  8703. }
  8704. .taskBorder {
  8705. border: 1px solid #e1e1e1;
  8706. border-radius: 10px;
  8707. margin-top: 20px;
  8708. /* min-height: 1160px; */
  8709. position: relative;
  8710. background: #fbfbfb;
  8711. }
  8712. .smallTaskBorder {
  8713. height: 170px;
  8714. min-height: 170px !important;
  8715. overflow: hidden;
  8716. }
  8717. .taskBorder>div {
  8718. padding: 30px 0 10px 30px;
  8719. }
  8720. .addTaskBorder {
  8721. border: 2px solid #e1e1e1;
  8722. border-radius: 10px;
  8723. margin-top: 25px;
  8724. cursor: pointer;
  8725. }
  8726. .addTaskBorder>div {
  8727. margin: 0 auto;
  8728. display: flex;
  8729. align-items: center;
  8730. justify-content: center;
  8731. }
  8732. .addTaskBorder>div>img {
  8733. width: 100px;
  8734. }
  8735. .addTaskBorder>div>span {
  8736. font-size: 23px;
  8737. color: #dbdbdb;
  8738. }
  8739. .funBlock {
  8740. display: flex;
  8741. padding: 15px 0;
  8742. flex-direction: row;
  8743. justify-content: flex-end;
  8744. align-items: center;
  8745. position: absolute;
  8746. right: 15px;
  8747. bottom: 35px;
  8748. }
  8749. .fold {
  8750. display: flex;
  8751. margin: 0 10px;
  8752. flex-direction: row;
  8753. align-items: center;
  8754. cursor: pointer;
  8755. }
  8756. .arrow {
  8757. width: 15px;
  8758. height: 15px;
  8759. margin-left: 10px;
  8760. }
  8761. .addToolFun {
  8762. display: flex;
  8763. width: 150px;
  8764. flex-direction: row;
  8765. align-items: center;
  8766. justify-content: center;
  8767. border: 1px dashed;
  8768. border-radius: 5px;
  8769. height: 50px;
  8770. margin: 35px auto 0;
  8771. cursor: pointer;
  8772. }
  8773. .addToolImg {
  8774. width: 30px;
  8775. height: 30px;
  8776. margin-right: 20px;
  8777. }
  8778. .addToolsDia>>>.el-dialog__body {
  8779. padding: 20px;
  8780. }
  8781. .addToolsDia>>>.el-dialog__body>.toolChoose {
  8782. padding: 0;
  8783. }
  8784. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools {
  8785. padding: 0;
  8786. border-bottom: none;
  8787. margin-bottom: 0;
  8788. }
  8789. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools>.chooseWho {
  8790. width: 100%;
  8791. }
  8792. .lineCss>>>.el-form-item__label {
  8793. width: auto !important;
  8794. }
  8795. .lineCss>>>.el-form-item__content {
  8796. margin-left: 50px !important;
  8797. }
  8798. .newSteps {
  8799. display: flex;
  8800. width: 100% !important;
  8801. height: 80px;
  8802. cursor: pointer;
  8803. margin: 10px 0;
  8804. border-radius: 10px;
  8805. flex-direction: row;
  8806. align-content: center;
  8807. justify-content: center;
  8808. align-items: center;
  8809. margin: 0 !important;
  8810. }
  8811. /* 评价样式 */
  8812. .elist_css {
  8813. padding-bottom: 60px !important;
  8814. }
  8815. .elist_title {
  8816. margin-bottom: 10px;
  8817. }
  8818. .elist_input {}
  8819. .elist_input_box {
  8820. display: flex;
  8821. align-items: center;
  8822. flex-wrap: wrap;
  8823. }
  8824. .elist_input_box+.elist_input_box {
  8825. margin-top: 30px;
  8826. }
  8827. .elist_input .elist_input_box input {
  8828. font: inherit;
  8829. color: currentColor;
  8830. /* width: 200px; */
  8831. max-width: 200px;
  8832. padding: 8px 14px;
  8833. display: block;
  8834. min-width: 0;
  8835. outline: none;
  8836. border: 1px solid rgba(0, 0, 0, 0.23);
  8837. border-radius: 4px;
  8838. box-sizing: border-box;
  8839. background: #fff;
  8840. margin: 0 20px 0 0;
  8841. }
  8842. .elist_input .elist_input_box span {
  8843. height: 36px;
  8844. line-height: 36px;
  8845. color: rgb(82, 82, 82);
  8846. min-width: 80px;
  8847. }
  8848. .elist_input .elist_input_box .remove {
  8849. height: 20px;
  8850. width: 20px;
  8851. background-size: 100% 100%;
  8852. background-position: unset;
  8853. margin-left: 5px;
  8854. }
  8855. .elist_input_box>>>.el-rate {
  8856. display: flex;
  8857. height: 36px;
  8858. align-items: center;
  8859. }
  8860. .elist_input_box .elist_inptu_text {
  8861. width: 100%;
  8862. display: flex;
  8863. align-items: center;
  8864. margin-top: 10px;
  8865. }
  8866. .elist_input_box .elist_inptu_text input {
  8867. /* width: 500px; */
  8868. width: 100%;
  8869. max-width: unset;
  8870. }
  8871. .elist_input_box>>>.el-rate__icon {
  8872. font-size: 24px;
  8873. }
  8874. .elist_btn {
  8875. margin-top: 10px;
  8876. }
  8877. .lineTitle {
  8878. margin-top: 15px;
  8879. width: 110px;
  8880. }
  8881. .courseTop {
  8882. display: flex;
  8883. flex-direction: row;
  8884. justify-content: flex-start;
  8885. align-items: center;
  8886. width: calc(100% - 40px);
  8887. padding: 20px 0;
  8888. margin: 0 auto;
  8889. }
  8890. .stepsNav {
  8891. display: flex;
  8892. flex-direction: row;
  8893. justify-content: flex-start;
  8894. align-items: center;
  8895. }
  8896. .stepsWord {
  8897. font-size: 18px;
  8898. color: #fff;
  8899. font-weight: bold;
  8900. margin-left: auto;
  8901. background: rgb(15, 126, 255);
  8902. border-radius: 5px;
  8903. padding: 3px 25px;
  8904. box-sizing: border-box;
  8905. }
  8906. .rightBox {
  8907. width: calc(100% - 40px);
  8908. background: rgb(255, 255, 255);
  8909. border-radius: 10px;
  8910. overflow: auto;
  8911. height: calc(100% - 160px);
  8912. position: relative;
  8913. margin: 0px auto 0;
  8914. }
  8915. .e_add_top {
  8916. display: flex;
  8917. justify-content: space-between;
  8918. padding: 20px 20px 0 20px;
  8919. border-radius: 3px;
  8920. background: #fff;
  8921. }
  8922. .e_add_title2 {
  8923. display: flex;
  8924. align-items: center;
  8925. }
  8926. .e_add_title2 span {
  8927. width: 40px;
  8928. }
  8929. .e_add_title {
  8930. display: flex;
  8931. align-items: center;
  8932. color: #b8b8b8;
  8933. font-size: 18px;
  8934. position: relative;
  8935. height: 40px;
  8936. }
  8937. .e_add_title span {
  8938. margin-right: 10px;
  8939. }
  8940. .e_add_title .el_input {
  8941. width: 300px;
  8942. }
  8943. .e_add_title>>>.el-input__inner {
  8944. width: 400px;
  8945. }
  8946. .e_add_btn {}
  8947. .e_add_content {
  8948. display: flex;
  8949. width: 100%;
  8950. }
  8951. .e_add_list {
  8952. background: #fff;
  8953. height: 500px;
  8954. width: 210px;
  8955. position: relative;
  8956. margin: 15px 5px 0 0;
  8957. flex-shrink: 0;
  8958. display: flex;
  8959. flex-direction: column;
  8960. }
  8961. .e_add_list_title {
  8962. font-size: 20px;
  8963. width: 100%;
  8964. box-sizing: border-box;
  8965. padding: 15px 40px;
  8966. text-align: center;
  8967. border-bottom: 1px solid #eaeaea;
  8968. position: relative;
  8969. display: flex;
  8970. align-items: center;
  8971. justify-content: center;
  8972. height: 57px;
  8973. background: #f6f6f6;
  8974. }
  8975. .e_add_list_title span {
  8976. overflow: hidden;
  8977. white-space: nowrap;
  8978. text-overflow: ellipsis;
  8979. }
  8980. .e_add_list_title img {
  8981. position: absolute;
  8982. right: 15px;
  8983. width: 25px;
  8984. cursor: pointer;
  8985. top: 50%;
  8986. transform: translateY(-50%);
  8987. }
  8988. .e_add_list_body {
  8989. height: calc(100% - 187px);
  8990. overflow: auto;
  8991. }
  8992. .e_add_list_child {
  8993. width: 100%;
  8994. display: flex;
  8995. align-items: center;
  8996. justify-content: center;
  8997. position: relative;
  8998. box-sizing: border-box;
  8999. padding: 15px 40px;
  9000. text-align: center;
  9001. }
  9002. .e_add_list_child span {
  9003. overflow: hidden;
  9004. white-space: nowrap;
  9005. text-overflow: ellipsis;
  9006. cursor: pointer;
  9007. }
  9008. .e_add_list_child img {
  9009. position: absolute;
  9010. right: 10px;
  9011. width: 21px;
  9012. cursor: pointer;
  9013. top: 50%;
  9014. transform: translateY(-50%);
  9015. }
  9016. .e_add_list_child+.e_add_list_child {
  9017. border-top: 1px solid #eaeaea;
  9018. }
  9019. .e_add_list_child .active {
  9020. color: #409eff;
  9021. }
  9022. .e_add_list_btn {
  9023. position: absolute;
  9024. bottom: 0;
  9025. height: 50px;
  9026. background: rgb(120, 120, 254);
  9027. width: 100%;
  9028. color: #fff;
  9029. font-size: 16px;
  9030. text-align: center;
  9031. line-height: 50px;
  9032. cursor: pointer;
  9033. }
  9034. .e_add_list_detail {
  9035. position: absolute;
  9036. bottom: 0;
  9037. height: 130px;
  9038. background: rgb(120, 120, 254);
  9039. width: 100%;
  9040. color: #fff;
  9041. font-size: 16px;
  9042. display: flex;
  9043. align-items: center;
  9044. justify-content: center;
  9045. }
  9046. .e_add_list_detail textarea {
  9047. height: 90%;
  9048. width: 95%;
  9049. border: none;
  9050. resize: none;
  9051. outline: none;
  9052. padding: 5px;
  9053. box-sizing: border-box;
  9054. }
  9055. .e_add_list_pbox {
  9056. width: 100%;
  9057. }
  9058. .e_add_list_pbox_title {
  9059. height: 50px;
  9060. background: #fff;
  9061. display: flex;
  9062. align-items: center;
  9063. width: 100%;
  9064. box-sizing: border-box;
  9065. padding: 0 20px;
  9066. flex-direction: row;
  9067. flex-wrap: wrap;
  9068. }
  9069. .type_title {
  9070. font-size: 18px;
  9071. font-weight: 700;
  9072. }
  9073. .type_content {
  9074. font-size: 16px;
  9075. margin-left: 30px;
  9076. }
  9077. .type_content span+span {
  9078. margin-left: 20px;
  9079. }
  9080. .type_content span {
  9081. cursor: pointer;
  9082. padding-bottom: 5px;
  9083. box-sizing: border-box;
  9084. }
  9085. .type_content .active {
  9086. color: #409eff;
  9087. border-bottom: 2px solid #409eff;
  9088. }
  9089. .e_add_list_pbox_content {
  9090. height: calc(100% - 50px);
  9091. display: flex;
  9092. align-items: center;
  9093. width: 100%;
  9094. background: #fff;
  9095. }
  9096. .mbCss {
  9097. width: 100%;
  9098. display: flex;
  9099. flex-direction: row;
  9100. flex-wrap: nowrap;
  9101. align-content: center;
  9102. align-items: flex-start;
  9103. justify-content: flex-start;
  9104. }
  9105. .pjCss {
  9106. /* width: 42%; */
  9107. width: calc(100% - 55%);
  9108. display: flex;
  9109. flex-direction: column;
  9110. flex-wrap: nowrap;
  9111. align-items: flex-start;
  9112. margin-top: 1.5%;
  9113. }
  9114. .e_box {
  9115. display: flex;
  9116. flex-wrap: wrap;
  9117. max-height: 500px;
  9118. align-items: flex-start;
  9119. overflow: auto;
  9120. }
  9121. .e_card {
  9122. border: 1px solid #ccc;
  9123. background: #fff;
  9124. margin-right: 20px;
  9125. width: 270px;
  9126. display: flex;
  9127. flex-direction: column;
  9128. align-items: center;
  9129. border-radius: 5px;
  9130. margin-top: 10px;
  9131. text-align: center;
  9132. }
  9133. .e_card_picture {
  9134. margin: 10px 0;
  9135. }
  9136. .e_card_picture>img {
  9137. width: 50px;
  9138. }
  9139. .e_card_name {
  9140. width: 100%;
  9141. padding: 0 10px;
  9142. box-sizing: border-box;
  9143. margin-bottom: 10px;
  9144. overflow: hidden;
  9145. text-overflow: ellipsis;
  9146. white-space: nowrap;
  9147. }
  9148. .e_card_time {
  9149. width: 100%;
  9150. padding: 0 10px;
  9151. box-sizing: border-box;
  9152. font-size: 15px;
  9153. color: #c3c3c3;
  9154. margin-bottom: 10px;
  9155. }
  9156. .e_card_btn {
  9157. height: 40px;
  9158. display: flex;
  9159. align-items: center;
  9160. width: 100%;
  9161. background: rgb(244, 244, 244);
  9162. }
  9163. .e_card_btn:hover {
  9164. background: rgb(221 221 221);
  9165. }
  9166. .e_card_btn span {
  9167. flex: 1 1 auto;
  9168. text-align: center;
  9169. cursor: pointer;
  9170. }
  9171. .addEva {
  9172. border: 1px solid #ccc;
  9173. background: #fff;
  9174. margin-right: 20px;
  9175. width: 270px;
  9176. height: 149px;
  9177. display: flex;
  9178. flex-direction: column;
  9179. align-items: center;
  9180. border-radius: 5px;
  9181. margin-top: 10px;
  9182. text-align: center;
  9183. cursor: pointer;
  9184. justify-content: center;
  9185. }
  9186. .addEva>img {
  9187. width: 50px;
  9188. object-fit: cover;
  9189. }
  9190. .uploadFm {
  9191. border: 1px dashed #ccc;
  9192. width: 202px;
  9193. height: 102px;
  9194. position: relative;
  9195. cursor: pointer;
  9196. }
  9197. .uploadFm>img {
  9198. position: absolute;
  9199. top: 25px;
  9200. left: 35%;
  9201. width: 50px;
  9202. }
  9203. .fileCss {
  9204. width: 100%;
  9205. display: flex;
  9206. flex-direction: row;
  9207. flex-wrap: nowrap;
  9208. justify-content: space-around;
  9209. align-items: center;
  9210. padding-top: 15px;
  9211. }
  9212. .sysPicBox {
  9213. display: flex;
  9214. flex-direction: row;
  9215. flex-wrap: wrap;
  9216. align-content: flex-start;
  9217. height: 435px;
  9218. overflow: auto;
  9219. }
  9220. .sysPic {
  9221. width: 200px;
  9222. height: 115px;
  9223. margin: 0 20px 20px 0;
  9224. cursor: pointer;
  9225. }
  9226. .sysPic>img,
  9227. .isSysPic>img,
  9228. .deletePic>img {
  9229. width: 100%;
  9230. height: 100%;
  9231. object-fit: cover;
  9232. }
  9233. .isSysPic {
  9234. width: 200px;
  9235. height: 115px;
  9236. position: relative;
  9237. }
  9238. .deletePic {
  9239. width: 20px;
  9240. height: 20px;
  9241. position: absolute;
  9242. top: 0;
  9243. right: 0;
  9244. cursor: pointer;
  9245. }
  9246. .select_box1 {}
  9247. .select_box1_img {
  9248. background: #fff;
  9249. border-radius: 5px;
  9250. padding: 15px;
  9251. box-sizing: border-box;
  9252. margin-bottom: 20px;
  9253. }
  9254. .select_box1_title {
  9255. padding: 0 0 15px 0;
  9256. border-bottom: 1px solid #eee;
  9257. margin-bottom: 15px;
  9258. }
  9259. .select_box1_title span:nth-child(1) {
  9260. font-size: 16px;
  9261. margin-right: 20px;
  9262. color: #000;
  9263. }
  9264. .select_box1_title span:nth-child(2) {
  9265. font-size: 14px;
  9266. color: rgb(112, 112, 112);
  9267. }
  9268. .select_box1_add_img {}
  9269. .select_box1_select {
  9270. background: #fff;
  9271. border-radius: 5px;
  9272. padding: 15px;
  9273. box-sizing: border-box;
  9274. }
  9275. .select_box2 {}
  9276. .select_box2_title {
  9277. background: #fff;
  9278. border-radius: 5px;
  9279. padding: 5px 10px;
  9280. box-sizing: border-box;
  9281. margin-bottom: 10px;
  9282. }
  9283. .select_box2_box {
  9284. display: flex;
  9285. height: 500px;
  9286. }
  9287. .select_box2_img {
  9288. width: calc(100% - 310px);
  9289. height: 100%;
  9290. overflow: auto;
  9291. background: #fff;
  9292. border-radius: 5px;
  9293. }
  9294. .select_box2_img img {
  9295. width: 100%;
  9296. }
  9297. .select_box2_answer {
  9298. background: #fff;
  9299. margin-left: 10px;
  9300. border-radius: 5px;
  9301. width: 300px;
  9302. overflow: auto;
  9303. height: 100%;
  9304. display: flex;
  9305. flex-direction: column;
  9306. align-items: center;
  9307. padding-top: 10px;
  9308. box-sizing: border-box;
  9309. }
  9310. .select_box2_answer_box {
  9311. margin: 0 0 10px 0;
  9312. width: 85%;
  9313. }
  9314. .rate_textarea {
  9315. font: inherit;
  9316. color: currentColor;
  9317. width: 100%;
  9318. padding: 8px 14px;
  9319. display: block;
  9320. min-width: 0;
  9321. outline: none;
  9322. border: 1px solid rgba(0, 0, 0, 0.23);
  9323. border-radius: 4px;
  9324. box-sizing: border-box;
  9325. background: #fff;
  9326. margin: 0 20px 0 0;
  9327. resize: none;
  9328. }
  9329. .select_answer_title {
  9330. text-align: left;
  9331. width: 85%;
  9332. margin-bottom: 10px;
  9333. font-size: 18px;
  9334. color: #8e8e8e;
  9335. }
  9336. .mask {
  9337. background-color: rgb(0 0 0 / 30%);
  9338. /* position: fixed; */
  9339. position: absolute;
  9340. top: 0;
  9341. left: 0;
  9342. width: 100%;
  9343. height: 100%;
  9344. z-index: 90;
  9345. display: flex;
  9346. align-items: center;
  9347. justify-content: center;
  9348. }
  9349. .progressBox {
  9350. width: 300px;
  9351. height: 150px;
  9352. background: #fff;
  9353. border-radius: 10px;
  9354. box-shadow: 0 0 6px 1px #bfbfbf;
  9355. display: flex;
  9356. align-items: center;
  9357. justify-content: center;
  9358. flex-direction: column;
  9359. position: relative;
  9360. color: #6c6c6c;
  9361. }
  9362. .progressBox>>>.el-progress-bar__outer {
  9363. background-color: #d1dfff !important;
  9364. }
  9365. .progressBox .lbox {
  9366. height: 50px;
  9367. font-size: 19px;
  9368. display: flex;
  9369. align-items: center;
  9370. color: #747474;
  9371. }
  9372. .progressBox .lbox img {
  9373. width: 40px;
  9374. margin-right: 20px;
  9375. }
  9376. .closeCss {
  9377. position: absolute;
  9378. top: 8px;
  9379. right: 8px;
  9380. cursor: pointer;
  9381. width: 20px;
  9382. height: 20px;
  9383. }
  9384. .closeCss>img {
  9385. width: 100%;
  9386. height: 100%;
  9387. }
  9388. .updateTips::after {
  9389. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  9390. font-size: 14px;
  9391. margin-left: 20px;
  9392. font-weight: 400;
  9393. color: #ff3a3a;
  9394. }
  9395. .updateMask {
  9396. width: 100%;
  9397. z-index: 3;
  9398. top: 0;
  9399. position: absolute;
  9400. /* background-color: rgba(0,0,0,.3); */
  9401. }
  9402. .t_j_box {
  9403. display: flex;
  9404. }
  9405. .t_j_box span:nth-child(1) {
  9406. width: 15%;
  9407. overflow: hidden;
  9408. margin-right: 10px;
  9409. text-overflow: ellipsis;
  9410. white-space: nowrap;
  9411. }
  9412. .t_j_box span:nth-child(2) {
  9413. width: 30%;
  9414. overflow: hidden;
  9415. text-overflow: ellipsis;
  9416. margin-right: 10px;
  9417. }
  9418. .t_j_box span:nth-child(3) {
  9419. max-width: calc(55% - 20px);
  9420. overflow: hidden;
  9421. text-overflow: ellipsis;
  9422. }
  9423. .sentenBox {
  9424. background: #fff;
  9425. height: 600px;
  9426. overflow: auto;
  9427. background-image: url("../../../assets/icon/conSentences/csBg.png");
  9428. background-position: 102%;
  9429. background-repeat: no-repeat;
  9430. background-size: 60%;
  9431. }
  9432. .addSen {
  9433. background: #409efe;
  9434. width: 90px;
  9435. color: #fff;
  9436. height: 35px;
  9437. text-align: center;
  9438. line-height: 35px;
  9439. border-radius: 5px;
  9440. float: right;
  9441. margin: 10px 20px 0 0;
  9442. cursor: pointer;
  9443. }
  9444. .sentenTop {
  9445. display: flex;
  9446. flex-direction: row;
  9447. flex-wrap: nowrap;
  9448. align-items: center;
  9449. }
  9450. .sentenTop>div:nth-child(2) {
  9451. width: 300px;
  9452. margin: 0 15px;
  9453. }
  9454. .sentenTop>div:nth-child(3) {
  9455. background: #409efe;
  9456. color: #fff;
  9457. width: 65px;
  9458. height: 35px;
  9459. text-align: center;
  9460. line-height: 35px;
  9461. border-radius: 5px;
  9462. cursor: pointer;
  9463. }
  9464. .cardList {
  9465. padding: 30px 0 20px 0;
  9466. display: flex;
  9467. flex-direction: row;
  9468. flex-wrap: wrap;
  9469. align-items: center;
  9470. box-sizing: border-box;
  9471. border-bottom: 1px solid #f4f4f4;
  9472. width: 98%;
  9473. margin: 0 auto;
  9474. }
  9475. .cardBox {
  9476. display: flex;
  9477. flex-direction: row;
  9478. flex-wrap: wrap;
  9479. align-items: center;
  9480. align-content: center;
  9481. }
  9482. .isCard,
  9483. .isCard1 {
  9484. width: 140px;
  9485. height: 65px;
  9486. text-align: center;
  9487. line-height: 65px;
  9488. font-size: 20px;
  9489. cursor: pointer;
  9490. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  9491. background-size: cover;
  9492. position: relative;
  9493. z-index: 99;
  9494. }
  9495. .isCard1 {
  9496. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  9497. }
  9498. .isCard:hover .deleteWord {
  9499. display: block;
  9500. }
  9501. .isCard>div:nth-child(1),
  9502. .isCard1>div:nth-child(1) {
  9503. white-space: nowrap;
  9504. overflow: hidden;
  9505. text-overflow: ellipsis;
  9506. width: 80%;
  9507. margin: 0 auto;
  9508. }
  9509. .card {
  9510. width: 140px;
  9511. height: 65px;
  9512. }
  9513. .card>img {
  9514. width: 100%;
  9515. height: 100%;
  9516. }
  9517. .rightCardBox {
  9518. margin: 10px 0 0 10px;
  9519. }
  9520. .rightCardBox>div:nth-child(1) {
  9521. margin-bottom: 10px;
  9522. }
  9523. .cardCss {
  9524. display: flex;
  9525. flex-direction: column;
  9526. flex-wrap: nowrap;
  9527. align-items: center;
  9528. border-bottom: 3px solid #b4c3d3;
  9529. padding: 0 0 5px 0;
  9530. margin-right: 10px;
  9531. }
  9532. .cardCss>div:nth-child(2) {
  9533. background: #5b7b9d;
  9534. color: #fff;
  9535. width: 20px;
  9536. height: 20px;
  9537. border-radius: 50%;
  9538. text-align: center;
  9539. line-height: 20px;
  9540. }
  9541. .sentenTopBox {
  9542. display: flex;
  9543. flex-direction: row;
  9544. flex-wrap: nowrap;
  9545. align-items: center;
  9546. justify-content: space-between;
  9547. padding: 55px 0 0 20px;
  9548. box-sizing: border-box;
  9549. width: 85%;
  9550. }
  9551. .stepsBottom {
  9552. width: 85%;
  9553. margin-bottom: 20px;
  9554. box-shadow: 0 0 10px 10px #f7f7f7;
  9555. background: #f7f7f7;
  9556. border-radius: 10px;
  9557. overflow: hidden;
  9558. }
  9559. .course_left {
  9560. width: 300px;
  9561. height: auto;
  9562. position: relative;
  9563. }
  9564. .stepsBottom2 {
  9565. width: 300px;
  9566. margin: 20px 0;
  9567. /* box-shadow: 0 0 10px 10px #f7f7f7; */
  9568. /* background: #f7f7f7; */
  9569. border-radius: 10px;
  9570. overflow: hidden;
  9571. height: fit-content;
  9572. position: relative;
  9573. /* transition: all .5s; */
  9574. }
  9575. .navTop {
  9576. background: #53749b;
  9577. color: #fff;
  9578. height: 40px;
  9579. line-height: 40px;
  9580. padding-left: 15px;
  9581. font-size: 18px;
  9582. }
  9583. .navBottom {
  9584. background: #6b91b7;
  9585. height: 300px;
  9586. overflow: auto;
  9587. }
  9588. .navTask {
  9589. display: flex;
  9590. flex-direction: row;
  9591. flex-wrap: nowrap;
  9592. align-items: center;
  9593. padding: 5px 5px 5px 0;
  9594. cursor: pointer;
  9595. background: #ffffff;
  9596. width: 95%;
  9597. margin: 10px auto;
  9598. box-sizing: border-box;
  9599. border-radius: 5px;
  9600. }
  9601. .isNavTask {
  9602. /* background: #7e9ebd; */
  9603. }
  9604. .navTask>div:nth-child(1) {
  9605. background: #468fe4;
  9606. color: #fff;
  9607. width: 65px;
  9608. height: 25px;
  9609. line-height: 25px;
  9610. text-align: center;
  9611. border-radius: 5px;
  9612. margin: 0 10px 0 5px;
  9613. font-size: 14px;
  9614. }
  9615. .navTask>div:nth-child(2) {
  9616. /* color: #fff; */
  9617. /* max-width: 130px; */
  9618. width: 130px;
  9619. white-space: nowrap;
  9620. overflow: hidden;
  9621. text-overflow: ellipsis;
  9622. font-size: 15px;
  9623. }
  9624. .groupBox {}
  9625. .groupContent+.groupContent {
  9626. margin-top: 30px;
  9627. }
  9628. .groupTitle {
  9629. font-size: 24px;
  9630. color: rgb(80, 80, 80);
  9631. margin-bottom: 20px;
  9632. }
  9633. .groupName {
  9634. display: flex;
  9635. align-items: center;
  9636. }
  9637. .groupn {
  9638. font-size: 15px;
  9639. margin-right: 10px;
  9640. }
  9641. .groupName+.groupName {
  9642. margin-top: 15px;
  9643. }
  9644. .groupBtn {
  9645. margin-left: 10px;
  9646. }
  9647. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  9648. text-align: left;
  9649. }
  9650. .radioBox>div {
  9651. margin: 10px 0 0 10px;
  9652. }
  9653. .radioBox>>>.el-radio__input,
  9654. .radioBox>>>.el-checkbox__inner {
  9655. margin-left: 10px;
  9656. }
  9657. .radioBox>>>.el-radio__label,
  9658. .radioBox>>>.el-checkbox__label {
  9659. display: flex;
  9660. align-items: center;
  9661. }
  9662. .inImg {
  9663. width: 50px;
  9664. }
  9665. .inImg>img {
  9666. width: 100%;
  9667. height: 100%;
  9668. object-fit: cover;
  9669. }
  9670. .upCss>>>.el-upload-list--picture .el-upload-list__item {
  9671. height: auto;
  9672. }
  9673. .upCss>>>.el-upload-list--picture .el-upload-list__item-thumbnail {
  9674. width: 200px;
  9675. height: 100px;
  9676. object-fit: contain;
  9677. background: unset;
  9678. }
  9679. .upCss>>>.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name {
  9680. display: none;
  9681. }
  9682. .tcMember+.tcMember::before {
  9683. content: "、";
  9684. }
  9685. .xzUpImg {
  9686. width: 25px;
  9687. height: 25px;
  9688. cursor: pointer;
  9689. }
  9690. .xzUpImg>img {
  9691. width: 100%;
  9692. height: 100%;
  9693. }
  9694. .closeCss {
  9695. position: absolute;
  9696. top: 8px;
  9697. right: 8px;
  9698. cursor: pointer;
  9699. width: 20px;
  9700. height: 20px;
  9701. }
  9702. .closeCss>img {
  9703. width: 100%;
  9704. height: 100%;
  9705. }
  9706. .moveBtn {
  9707. display: flex;
  9708. flex-direction: column;
  9709. align-items: flex-end;
  9710. width: 40px;
  9711. }
  9712. .timuUpImg {
  9713. display: flex;
  9714. flex-direction: row;
  9715. align-items: center;
  9716. }
  9717. .timuUpImg>div:nth-child(1) {
  9718. margin-right: 10px;
  9719. }
  9720. .timuImgBox {
  9721. margin: 10px 0;
  9722. display: flex;
  9723. flex-direction: column;
  9724. flex-wrap: wrap;
  9725. align-items: flex-start;
  9726. }
  9727. .timuImg {
  9728. width: 100px;
  9729. margin: 5px 0;
  9730. cursor: pointer;
  9731. position: relative;
  9732. }
  9733. .timuImg:hover .deleteWord {
  9734. display: block;
  9735. }
  9736. .deleteWord {
  9737. width: 25px;
  9738. height: 25px;
  9739. position: absolute;
  9740. right: -5px;
  9741. top: -5px;
  9742. cursor: pointer;
  9743. display: none;
  9744. }
  9745. .timuImg>img,
  9746. .deleteWord>img {
  9747. width: 100%;
  9748. height: 100%;
  9749. object-fit: cover;
  9750. }
  9751. .e_add_delete {
  9752. cursor: pointer;
  9753. margin-left: 10px;
  9754. }
  9755. .pType_box {
  9756. margin-top: 30px;
  9757. align-items: flex-end;
  9758. }
  9759. .noneBox {
  9760. height: 100%;
  9761. width: 100%;
  9762. display: flex;
  9763. align-items: center;
  9764. justify-content: center;
  9765. margin-top: 150px;
  9766. }
  9767. .noneBox>img {
  9768. width: 300px;
  9769. }
  9770. </style>