addCourse.vue 484 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197
  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
  12. separator-class="el-icon-arrow-right"
  13. style="margin-top: 15px"
  14. >
  15. <el-breadcrumb-item
  16. :to="{
  17. path:
  18. '/course?userid=' +
  19. userid +
  20. '&oid=' +
  21. oid +
  22. '&org=' +
  23. org +
  24. '&role=' +
  25. role,
  26. }"
  27. >课程管理</el-breadcrumb-item
  28. >
  29. <el-breadcrumb-item>
  30. <span style="color: rgb(15, 126, 255)">添加课程</span>
  31. </el-breadcrumb-item>
  32. </el-breadcrumb>
  33. </div>
  34. </div>
  35. <div
  36. class="rightBox"
  37. v-if="this.steps == 1"
  38. @mousewheel="scrollChange"
  39. >
  40. <div
  41. class="updateMask"
  42. :style="{
  43. height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
  44. }"
  45. v-if="cid && userid != courseUserid && role != '1'"
  46. ></div>
  47. <div class="whiteBg">
  48. <div
  49. class="right_title"
  50. :class="{
  51. updateTips: cid && userid != courseUserid && role != '1',
  52. }"
  53. >
  54. 课程基本信息
  55. </div>
  56. <div class="basic_box">
  57. <div class="big_box">
  58. <div class="left_first">
  59. <div>
  60. <div>
  61. <div class="bInfo_title" style="margin-bottom: 15px">
  62. <!-- <span style="color: red">*</span> -->
  63. 课程名称
  64. </div>
  65. <div style="display: flex; margin-right: 20px">
  66. <img
  67. src="../../../assets/icon/projectName.png"
  68. alt
  69. style="margin-right: 8px"
  70. />
  71. <input
  72. type="text"
  73. placeholder="请输入课程名称"
  74. class="binfo_input"
  75. v-model="courseName"
  76. />
  77. </div>
  78. </div>
  79. <div
  80. class="pType_box all_choose"
  81. v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'"
  82. >
  83. <span>类型</span>
  84. <!-- 学科+ 主题+ 未来+ -->
  85. <el-radio-group
  86. @change="CourseType2Change"
  87. v-model="pTypeCheckName"
  88. style="display: flex; align-items: center"
  89. >
  90. <div
  91. class="all_choose"
  92. style="width: 100px"
  93. v-for="(item, index) in CourseType2"
  94. :key="index"
  95. >
  96. <el-radio :label="item.name">{{
  97. item.name
  98. }}</el-radio>
  99. </div>
  100. </el-radio-group>
  101. </div>
  102. <div class="both">
  103. <div class="choose">
  104. <div
  105. class="all_choose"
  106. v-for="(item, index) in CourseType[0]"
  107. :key="index"
  108. >
  109. <span
  110. v-if="
  111. CourseTypeJson[item.id].length > 0 &&
  112. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  113. ? pTypeCheck.indexOf(item.id) != -1
  114. : true)
  115. "
  116. >{{ item.name }}</span
  117. >
  118. <el-checkbox-group
  119. v-model="courseTypeId"
  120. v-if="
  121. CourseTypeJson[item.id].length > 0 &&
  122. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  123. ? pTypeCheck.indexOf(item.id) != -1
  124. : true)
  125. "
  126. >
  127. <el-checkbox
  128. v-for="item1 in CourseTypeJson[item.id]"
  129. :key="item1.id"
  130. :label="item1.id"
  131. >{{ item1.name }}</el-checkbox
  132. >
  133. </el-checkbox-group>
  134. <!-- <div
  135. v-else
  136. style="font-size: 14px; margin-left: -8px"
  137. >
  138. 暂无
  139. </div> -->
  140. </div>
  141. </div>
  142. </div>
  143. </div>
  144. </div>
  145. </div>
  146. </div>
  147. </div>
  148. <div class="whiteBg" style="border-radius: 0">
  149. <div class="right_first">
  150. <div class="right_title">上传封面</div>
  151. <div
  152. style="
  153. padding: 0 0 50px 20px;
  154. display: flex;
  155. align-items: baseline;
  156. justify-content: flex-start;
  157. margin: 0 auto;
  158. "
  159. >
  160. <div>
  161. <div class="bInfo_title" style="margin-top: 0 !important">
  162. 课程封面
  163. </div>
  164. <div
  165. class="uploadFm"
  166. @click="choosePicVisible = true"
  167. v-if="cover.length == 0"
  168. >
  169. <img src="../../../assets/icon/addPoster.png" alt="" />
  170. </div>
  171. <el-upload
  172. :class="{ disUoloadSty: noneBtnImg }"
  173. class="upCss"
  174. action="#"
  175. list-type="picture"
  176. v-loading="uploadLoading1"
  177. :http-request="beforeUpload1"
  178. ref="upload1"
  179. :on-preview="handlePictureCardPreview"
  180. :on-remove="handle_remove1"
  181. :show-file-list="true"
  182. :file-list="cover"
  183. accept="image/*"
  184. :limit="1"
  185. :on-exceed="onExceed"
  186. v-else
  187. >
  188. <i class="el-icon-plus"></i>
  189. </el-upload>
  190. </div>
  191. <div
  192. style="
  193. display: flex;
  194. flex-flow: row nowrap;
  195. flex-direction: row;
  196. flex-wrap: wrap;
  197. align-items: baseline;
  198. margin: 0 30px;
  199. "
  200. >
  201. <div style="margin: 0 30px 0 0; width: 150px">
  202. <div class="bInfo_title">添加班级</div>
  203. <div
  204. class="addPeople"
  205. @click="
  206. (dialogVisibleClass = true),
  207. (classSearch = ''),
  208. getClass()
  209. "
  210. >
  211. 添加班级
  212. </div>
  213. <div
  214. v-if="checkboxList2.length"
  215. style="
  216. max-width: 100%;
  217. word-break: break-all;
  218. overflow: hidden;
  219. margin-top: 10px;
  220. font-size: 14px;
  221. color: #6e6e6e;
  222. "
  223. >
  224. <span
  225. :class="{ tcMember: getClassC(tc) }"
  226. v-for="(tc, tcIndex) in checkboxList2"
  227. :key="tcIndex"
  228. >{{ getClassC(tc) }}</span
  229. >
  230. </div>
  231. </div>
  232. </div>
  233. </div>
  234. <div style="width: 95%; padding: 15px 0px 15px 20px">
  235. <el-switch
  236. v-model="isTeacherSee"
  237. active-text="是否公开此课程"
  238. style="padding-bottom: 30px"
  239. ></el-switch>
  240. </div>
  241. </div>
  242. </div>
  243. <div
  244. class="whiteBg"
  245. style="border-radius: 0; margin-top: 15px"
  246. v-if="false"
  247. >
  248. <div class="right_title">课程简要描述</div>
  249. <div style="width: 95%; padding: 15px 0px 15px 20px">
  250. <div style="width: 55%">
  251. <textarea
  252. rows="8"
  253. class="binfo_input"
  254. cols
  255. v-model="courseText"
  256. :placeholder="
  257. '1、课程内容说明' +
  258. '\n' +
  259. '2、课程学习知识目标' +
  260. '\n' +
  261. '3、课程学习技能目标'
  262. "
  263. ></textarea>
  264. </div>
  265. </div>
  266. </div>
  267. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  268. <div class="right_title">
  269. <span>上传课程内容</span>
  270. <el-button type="primary" @click="pasteTask" size="mini" style="margin-left:10px"
  271. >智能粘贴</el-button
  272. >
  273. </div>
  274. <div style="padding: 0 0 50px 20px; display: flex">
  275. <div class="course_left">
  276. <div class="stepsBottom2">
  277. <div class="navTop">辅助导航</div>
  278. <div class="navBottom">
  279. <div
  280. class="navTask"
  281. :class="{
  282. isNavTask:
  283. isClickColor > 0 && isClickColor == tIndex + 1,
  284. }"
  285. v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  286. .taskJson"
  287. :key="tIndex"
  288. @click="goToTask(tIndex)"
  289. >
  290. <div>任务{{ tIndex + 1 }}</div>
  291. <div>
  292. <el-tooltip
  293. effect="light"
  294. :content="t.task"
  295. placement="top"
  296. >
  297. <span>{{ t.task }}</span>
  298. </el-tooltip>
  299. </div>
  300. <div
  301. class="moveBtn"
  302. v-if="
  303. unitJson[unitIndex].chapterInfo[0].taskJson.length >
  304. 1
  305. "
  306. >
  307. <div
  308. class="chapter_upload_up"
  309. style="width: 15px; height: 15px"
  310. @click.stop="taskMove(1, tIndex)"
  311. ></div>
  312. <div
  313. class="chapter_upload_down"
  314. style="width: 15px; height: 15px; margin: 2px 0 0"
  315. @click.stop="taskMove(2, tIndex)"
  316. ></div>
  317. </div>
  318. </div>
  319. </div>
  320. </div>
  321. </div>
  322. <div class="basic_box2">
  323. <div
  324. style="margin: 0 0 40px 0; padding: 0 20px 0 20px"
  325. v-for="(item, index) in unitJson[unitIndex].chapterInfo"
  326. :key="index"
  327. >
  328. <div
  329. class="taskBorder"
  330. :style="{
  331. minHeight: unitJson[unitIndex].easy && 'unset',
  332. }"
  333. v-for="(itemTask, itemTaskIndex) in item.taskJson"
  334. :key="itemTaskIndex"
  335. >
  336. <div v-if="unitJson[unitIndex].easy != 1">
  337. <div
  338. :style="{
  339. marginBottom:
  340. unitJson[unitIndex].easy == 3 ||
  341. (unitJson[unitIndex].easy == 5 &&
  342. itemTask.taskType == 1)
  343. ? '75px'
  344. : '0',
  345. }"
  346. >
  347. <div
  348. style="font-size: 22px; color: #8e8e8e"
  349. :id="'task' + itemTaskIndex"
  350. >
  351. 任务{{ itemTaskIndex + 1 }}
  352. </div>
  353. <div
  354. class="chapter_contentbox"
  355. style="
  356. flex-direction: row;
  357. justify-content: flex-start;
  358. align-items: center;
  359. "
  360. >
  361. <div
  362. style="
  363. border-left: 6px solid #5699e8;
  364. height: 20px;
  365. padding-left: 10px;
  366. line-height: 22px;
  367. "
  368. >
  369. 任务名称
  370. </div>
  371. <div>
  372. <input
  373. type="text"
  374. placeholder="输入任务名称"
  375. class="binfo_input"
  376. style="border-radius: 4px"
  377. v-model="
  378. unitJson[unitIndex].chapterInfo[0].taskJson[
  379. itemTaskIndex
  380. ].task
  381. "
  382. />
  383. </div>
  384. <div
  385. class="remove"
  386. v-if="item.taskJson.length > 1"
  387. @click="deleteTask(itemTaskIndex)"
  388. style="position: absolute; right: 55px"
  389. ></div>
  390. </div>
  391. </div>
  392. </div>
  393. <div style="padding: 25px 0 10px 30px">
  394. <!-- <editor-bar style="width: 90% !important; margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  395. itemTaskIndex
  396. ].taskDetail
  397. " @change="change"></editor-bar> -->
  398. <textarea
  399. rows="2"
  400. class="binfo_input"
  401. placeholder="请输入任务描述"
  402. cols
  403. style="width: 90% !important; resize: none"
  404. v-model="
  405. unitJson[unitIndex].chapterInfo[0].taskJson[
  406. itemTaskIndex
  407. ].taskDetail
  408. "
  409. ></textarea>
  410. </div>
  411. <div
  412. class="basic_box"
  413. style="
  414. margin: 0;
  415. min-height: 0;
  416. width: 90% !important;
  417. padding-top: 10px !important;
  418. "
  419. >
  420. <div
  421. style="
  422. display: flex;
  423. margin: 0 0 20px 0;
  424. flex-direction: row;
  425. justify-content: flex-start;
  426. align-items: center;
  427. "
  428. >
  429. <div class="lineTitle">学习内容</div>
  430. <div class="line"></div>
  431. </div>
  432. <div>
  433. <div
  434. class="add_chapters_box"
  435. v-if="
  436. itemTask.chapterData &&
  437. itemTask.chapterData.length == 0
  438. "
  439. style="height: 185px"
  440. ></div>
  441. <div
  442. v-else
  443. class="add_chapters_box"
  444. style="display: flex; flex-direction: column"
  445. >
  446. <div
  447. class="chapter_upload"
  448. v-for="(item1, index1) in itemTask.chapterData"
  449. :key="item1.id"
  450. @click="
  451. getChapterData(
  452. $event,
  453. unitIndex,
  454. index,
  455. index1,
  456. item1.type
  457. )
  458. "
  459. >
  460. <div
  461. class="chapter_upload_t"
  462. style="width: 100%"
  463. ></div>
  464. <div
  465. class="chapter_upload_o"
  466. style="
  467. position: relative;
  468. display: flex;
  469. align-items: center;
  470. "
  471. >
  472. <div
  473. class="chapter_upload_l"
  474. style="padding: 1px 0 0 10px"
  475. >
  476. <div
  477. v-if="item1.type == 2"
  478. class="chapter_upload_l_i1"
  479. ></div>
  480. <div
  481. v-if="
  482. item1.type == 3 ||
  483. item1.type == 12 ||
  484. item1.type == 13 ||
  485. item1.type == 6 ||
  486. item1.type == 7
  487. "
  488. class="chapter_upload_l_i5"
  489. style="margin-left: 1px"
  490. ></div>
  491. <div
  492. v-if="item1.type == 8"
  493. class="chapter_upload_l_i8"
  494. style="margin-left: 1px"
  495. ></div>
  496. </div>
  497. <div
  498. class="chapter_upload_ic"
  499. style="
  500. cursor: pointer;
  501. position: absolute;
  502. width: 45px;
  503. right: 0;
  504. top: 0;
  505. "
  506. >
  507. <div class="chapter_upload_ic_l"></div>
  508. <div
  509. class="chapter_upload_ic_r"
  510. style="position: absolute"
  511. @click.stop="
  512. deleteChapterData(
  513. $event,
  514. unitIndex,
  515. index,
  516. index1,
  517. itemTaskIndex
  518. )
  519. "
  520. >
  521. <div></div>
  522. </div>
  523. </div>
  524. <div class="chapter_upload_n">
  525. <input
  526. v-if="
  527. item1.type == 2 ||
  528. item1.type == 3 ||
  529. item1.type == 12 ||
  530. item1.type == 13 ||
  531. item1.type == 7
  532. "
  533. :placeholder="item1.name"
  534. @change="
  535. updataVideoT(
  536. $event,
  537. unitIndex,
  538. chapterIndex,
  539. index1
  540. )
  541. "
  542. style="
  543. border: none;
  544. outline: none;
  545. width: 80%;
  546. minwidth: 215px;
  547. z-index: 99;
  548. font-size: 14px;
  549. white-space: nowrap;
  550. overflow: hidden;
  551. text-overflow: ellipsis;
  552. "
  553. />
  554. <input
  555. :placeholder="item1.name"
  556. v-if="item1.type == 6"
  557. style="
  558. border: none;
  559. outline: none;
  560. width: 80%;
  561. white-space: nowrap;
  562. overflow: hidden;
  563. text-overflow: ellipsis;
  564. "
  565. readonly="true"
  566. @click="
  567. selectAttText(itemTaskIndex, index1)
  568. "
  569. />
  570. <input
  571. :placeholder="
  572. item1.title ? item1.title : '链接'
  573. "
  574. v-if="item1.type == 8"
  575. style="
  576. border: none;
  577. outline: none;
  578. width: 80%;
  579. white-space: nowrap;
  580. overflow: hidden;
  581. text-overflow: ellipsis;
  582. "
  583. readonly="true"
  584. @click="selectLine(itemTaskIndex, index1)"
  585. />
  586. <div
  587. class="chapter_upload_ud"
  588. style="z-index: 99"
  589. >
  590. <div
  591. class="chapter_upload_up"
  592. @click="
  593. upCd(
  594. $event,
  595. unitIndex,
  596. index,
  597. itemTaskIndex,
  598. index1
  599. )
  600. "
  601. ></div>
  602. <div
  603. class="chapter_upload_down"
  604. @click="
  605. downCd(
  606. $event,
  607. unitIndex,
  608. index,
  609. itemTaskIndex,
  610. index1
  611. )
  612. "
  613. ></div>
  614. </div>
  615. </div>
  616. </div>
  617. </div>
  618. </div>
  619. </div>
  620. <div class="add_info_box">
  621. <button class="info_btn" @click="addImg($event)">
  622. 添加文件
  623. <input
  624. type="file"
  625. accept="*"
  626. style="display: none"
  627. v-if="inputShow"
  628. @change="
  629. beforeUpload2(
  630. $event,
  631. unitIndex,
  632. 13,
  633. itemTaskIndex
  634. )
  635. "
  636. />
  637. </button>
  638. <!-- <button class="info_btn" @click="addImg($event)">
  639. 添加视频
  640. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  641. v-if="inputShow" @change="beforeUpload2($event, unitIndex, 2, itemTaskIndex)
  642. " />
  643. </button>
  644. <button class="info_btn" @click="addImg($event)">
  645. 添加文档
  646. <input type="file"
  647. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  648. style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 3, itemTaskIndex)
  649. " />
  650. </button> -->
  651. <button
  652. class="info_btn"
  653. @click="addAttText(itemTaskIndex)"
  654. >
  655. 添加图文
  656. </button>
  657. <button
  658. class="info_btn"
  659. @click="openLine(itemTaskIndex)"
  660. >
  661. 添加链接
  662. </button>
  663. <button
  664. class="info_btn"
  665. @click="pasteLine(itemTaskIndex)"
  666. >
  667. 嵌入代码
  668. </button>
  669. <button
  670. class="info_btn"
  671. @click="openSource(itemTaskIndex)"
  672. >
  673. 添加资源
  674. </button>
  675. <!-- <button class="info_btn" @click="addImg($event)">
  676. 其他附件
  677. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  678. " />
  679. </button> -->
  680. </div>
  681. <div
  682. v-if="
  683. unitJson[unitIndex].chapterInfo[0].taskJson[
  684. itemTaskIndex
  685. ].proVisible
  686. "
  687. class="mask"
  688. >
  689. <div class="progressBox">
  690. <!-- <div id="closePro" class="closeCss">
  691. <img src="../../../../assets/icon/close.png" alt />
  692. </div> -->
  693. <div class="lbox">
  694. <img
  695. src="../../../assets/loading.gif"
  696. />上传中,请稍后
  697. </div>
  698. <div style="margin-bottom: 10px">
  699. <span
  700. >{{
  701. unitJson[unitIndex].chapterInfo[0].taskJson[
  702. itemTaskIndex
  703. ].isFinishSize
  704. }}M</span
  705. >
  706. /
  707. <span
  708. >{{
  709. unitJson[unitIndex].chapterInfo[0].taskJson[
  710. itemTaskIndex
  711. ].isAllSize
  712. }}M</span
  713. >
  714. </div>
  715. <el-progress
  716. :text-inside="true"
  717. :stroke-width="20"
  718. :percentage="
  719. unitJson[unitIndex].chapterInfo[0].taskJson[
  720. itemTaskIndex
  721. ].progress
  722. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  723. itemTaskIndex
  724. ].progress
  725. : 0
  726. "
  727. style="width: 80%"
  728. ></el-progress>
  729. </div>
  730. </div>
  731. </div>
  732. <div class="toolChoose" style="padding: 0 0 0 30px">
  733. <div class="tools">
  734. <div
  735. class="leftTools"
  736. style="
  737. width: 95%;
  738. padding: 0 0 15px 0;
  739. border-bottom: 1px solid #efefef;
  740. margin-bottom: 15px;
  741. "
  742. v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  743. :key="toolIndex"
  744. >
  745. <div>
  746. <textarea
  747. rows="3"
  748. type="text"
  749. placeholder="添加工具描述"
  750. class="binfo_input"
  751. style="
  752. margin: 0 0 20px 0;
  753. width: 71.5% !important;
  754. "
  755. v-model="itemTool.toolDetail"
  756. ></textarea>
  757. </div>
  758. <div
  759. style="
  760. display: flex;
  761. flex-direction: row;
  762. align-items: baseline;
  763. flex-wrap: nowrap;
  764. justify-content: flex-start;
  765. position: relative;
  766. "
  767. >
  768. <div
  769. style="margin-right: 20px; font-weight: bold"
  770. >
  771. 步骤 {{ toolIndex + 1 }} :
  772. </div>
  773. <div class="chooseWho">
  774. <!-- <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
  775. " @click="(itemTool.toolType = 0), $forceUpdate()">
  776. 互动类
  777. </div> -->
  778. <div
  779. :class="
  780. itemTool.toolType == 1
  781. ? 'isChooseActive'
  782. : ''
  783. "
  784. @click="
  785. (itemTool.toolType = 1), $forceUpdate()
  786. "
  787. >
  788. 思维类
  789. </div>
  790. <div
  791. :class="
  792. itemTool.toolType == 6
  793. ? 'isChooseActive'
  794. : ''
  795. "
  796. @click="
  797. (itemTool.toolType = 6), $forceUpdate()
  798. "
  799. >
  800. 协作类
  801. </div>
  802. <div
  803. :class="
  804. itemTool.toolType == 2
  805. ? 'isChooseActive'
  806. : ''
  807. "
  808. @click="
  809. (itemTool.toolType = 2), $forceUpdate()
  810. "
  811. >
  812. 测评类
  813. </div>
  814. <div
  815. :class="
  816. itemTool.toolType == 7
  817. ? 'isChooseActive'
  818. : ''
  819. "
  820. @click="
  821. (itemTool.toolType = 7), $forceUpdate()
  822. "
  823. >
  824. 评价类
  825. </div>
  826. <div
  827. :class="
  828. itemTool.toolType == 3
  829. ? 'isChooseActive'
  830. : ''
  831. "
  832. @click="
  833. (itemTool.toolType = 3), $forceUpdate()
  834. "
  835. >
  836. 学科类
  837. </div>
  838. <!-- <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
  839. " @click="(itemTool.toolType = 5), $forceUpdate()">
  840. 学科类
  841. </div>
  842. <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  843. " @click="(itemTool.toolType = 4), $forceUpdate()">
  844. 其他
  845. </div> -->
  846. </div>
  847. <div
  848. class="remove"
  849. @click="deleteTool(itemTaskIndex, toolIndex)"
  850. v-if="itemTask.toolChoose.length > 1"
  851. style="position: absolute; right: 55px"
  852. ></div>
  853. </div>
  854. <div style="min-height: 163px">
  855. <div
  856. class="toolSort"
  857. v-if="itemTool.toolType == 0"
  858. >
  859. <!-- <div class="tool">
  860. <div
  861. class="whiteBIcon"
  862. @click="addTools(8, itemTaskIndex, toolIndex)"
  863. >
  864. <img src="../../../assets/icon/secondToolList/library.png" alt />
  865. <div style="margin: 5px 0">素材库</div>
  866. </div>
  867. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  868. <img
  869. src="../../../assets/icon/checkNo.png"
  870. alt
  871. v-if="itemTool.tool.indexOf(8) == -1"
  872. />
  873. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  874. alt /><span>已选择</span></div>
  875. </div>
  876. </div>-->
  877. <!-- <div class="tool">
  878. <div
  879. class="whiteBIcon"
  880. @click="addTools(17, itemTaskIndex, toolIndex)"
  881. >
  882. <img
  883. src="../../../assets/icon/secondToolList/library.png"
  884. alt
  885. />
  886. <div style="margin: 5px 0">学习资料</div>
  887. </div>
  888. <div
  889. class="check"
  890. @click="addTools(17, itemTaskIndex, toolIndex)"
  891. >
  892. <img
  893. src="../../../assets/icon/checkNo.png"
  894. alt
  895. v-if="itemTool.tool.indexOf(17) == -1"
  896. />
  897. <img
  898. src="../../../assets/icon/checkedIs.png"
  899. alt
  900. v-else
  901. />
  902. </div>10
  903. </div> -->
  904. <div class="tool">
  905. <div
  906. class="whiteBIcon"
  907. @click="
  908. openTools(itemTaskIndex, 10, toolIndex)
  909. "
  910. >
  911. <img
  912. src="../../../assets/icon/thirdToolList/time.png"
  913. alt
  914. />
  915. <div style="margin: 5px 0">倒计时</div>
  916. </div>
  917. <div
  918. class="check"
  919. @click="
  920. addTools(10, itemTaskIndex, toolIndex)
  921. "
  922. >
  923. <img
  924. src="../../../assets/icon/checkNo.png"
  925. alt
  926. v-if="itemTool.tool.indexOf(10) == -1"
  927. />
  928. <div class="checkDiv" v-else>
  929. <img
  930. src="../../../assets/icon/checkedIs.png"
  931. alt
  932. /><span>已选择</span>
  933. </div>
  934. </div>
  935. </div>
  936. <!-- <div class="tool">
  937. <div
  938. class="whiteBIcon"
  939. @click="
  940. openTools(itemTaskIndex, 49, toolIndex)
  941. "
  942. >
  943. <img
  944. src="../../../assets/icon/fourthToolList/group.png"
  945. alt
  946. />
  947. <div style="margin: 5px 0">学生分组</div>
  948. </div>
  949. <div
  950. class="check"
  951. @click="
  952. addTools(49, itemTaskIndex, toolIndex)
  953. "
  954. >
  955. <img
  956. src="../../../assets/icon/checkNo.png"
  957. alt
  958. v-if="itemTool.tool.indexOf(49) == -1"
  959. />
  960. <div class="checkDiv" v-else>
  961. <img
  962. src="../../../assets/icon/checkedIs.png"
  963. alt
  964. /><span>已选择</span>
  965. </div>
  966. </div>
  967. </div> -->
  968. <div class="tool">
  969. <div
  970. class="whiteBIcon"
  971. @click="
  972. openTools(itemTaskIndex, 62, toolIndex)
  973. "
  974. >
  975. <img
  976. src="../../../assets/icon/fourthToolList/interVideo.png"
  977. alt
  978. />
  979. <div style="margin: 5px 0">交互视频</div>
  980. </div>
  981. <div
  982. class="check"
  983. @click="
  984. addTools(62, itemTaskIndex, toolIndex)
  985. "
  986. >
  987. <img
  988. src="../../../assets/icon/checkNo.png"
  989. alt
  990. v-if="itemTool.tool.indexOf(62) == -1"
  991. />
  992. <div class="checkDiv" v-else>
  993. <img
  994. src="../../../assets/icon/checkedIs.png"
  995. alt
  996. /><span>已选择</span>
  997. </div>
  998. </div>
  999. </div>
  1000. </div>
  1001. <div
  1002. class="toolSort"
  1003. v-if="itemTool.toolType == 1"
  1004. >
  1005. <div class="tool">
  1006. <div
  1007. class="whiteBIcon"
  1008. @click="
  1009. addTools(7, itemTaskIndex, toolIndex)
  1010. "
  1011. >
  1012. <img
  1013. src="../../../assets/icon/secondToolList/mindNetwork.png"
  1014. alt
  1015. />
  1016. <div style="margin: 5px 0">思维网格</div>
  1017. </div>
  1018. <div
  1019. class="check"
  1020. @click="
  1021. addTools(7, itemTaskIndex, toolIndex)
  1022. "
  1023. >
  1024. <img
  1025. src="../../../assets/icon/checkNo.png"
  1026. alt
  1027. v-if="itemTool.tool.indexOf(7) == -1"
  1028. />
  1029. <div class="checkDiv" v-else>
  1030. <img
  1031. src="../../../assets/icon/checkedIs.png"
  1032. alt
  1033. /><span>已选择</span>
  1034. </div>
  1035. </div>
  1036. </div>
  1037. <div class="tool">
  1038. <div
  1039. class="whiteBIcon"
  1040. @click="
  1041. openTools(itemTaskIndex, 1, toolIndex)
  1042. "
  1043. >
  1044. <img
  1045. src="../../../assets/icon/secondToolList/whiteBoard.png"
  1046. alt
  1047. />
  1048. <div style="margin: 5px 0">电子白板</div>
  1049. </div>
  1050. <div
  1051. class="check"
  1052. @click="
  1053. addTools(1, itemTaskIndex, toolIndex)
  1054. "
  1055. >
  1056. <img
  1057. src="../../../assets/icon/checkNo.png"
  1058. alt
  1059. v-if="itemTool.tool.indexOf(1) == -1"
  1060. />
  1061. <div class="checkDiv" v-else>
  1062. <img
  1063. src="../../../assets/icon/checkedIs.png"
  1064. alt
  1065. /><span>已选择</span>
  1066. </div>
  1067. </div>
  1068. </div>
  1069. <!-- <div class="tool">
  1070. <div
  1071. class="whiteBIcon"
  1072. @click="addTools(2, itemTaskIndex, toolIndex)"
  1073. >
  1074. <img
  1075. src="../../../assets/icon/secondToolList/note.png"
  1076. alt
  1077. />
  1078. <div style="margin: 5px 0">便签</div>
  1079. </div>
  1080. <div
  1081. class="check"
  1082. @click="addTools(2, itemTaskIndex, toolIndex)"
  1083. >
  1084. <img
  1085. src="../../../assets/icon/checkNo.png"
  1086. alt
  1087. v-if="itemTool.tool.indexOf(2) == -1"
  1088. />
  1089. <div class="checkDiv" v-else>
  1090. <img
  1091. src="../../../assets/icon/checkedIs.png"
  1092. alt
  1093. /><span>已选择</span>
  1094. </div>
  1095. </div>
  1096. </div> -->
  1097. <!-- <div class="tool">
  1098. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  1099. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  1100. <div style="margin: 5px 0">协同文档</div>
  1101. </div>
  1102. <div
  1103. class="check"
  1104. @click="addTools(6, itemTaskIndex, toolIndex)"
  1105. >
  1106. <img
  1107. src="../../../assets/icon/checkNo.png"
  1108. alt
  1109. v-if="itemTool.tool.indexOf(6) == -1"
  1110. />
  1111. <div class="checkDiv" v-else>
  1112. <img
  1113. src="../../../assets/icon/checkedIs.png"
  1114. alt
  1115. /><span>已选择</span>
  1116. </div>
  1117. </div>
  1118. </div> -->
  1119. <div class="tool">
  1120. <div
  1121. class="whiteBIcon"
  1122. @click="
  1123. openTools(itemTaskIndex, 52, toolIndex)
  1124. "
  1125. >
  1126. <img
  1127. src="../../../assets/icon/fourthToolList/text.png"
  1128. alt
  1129. />
  1130. <div style="margin: 5px 0">文档</div>
  1131. </div>
  1132. <div
  1133. class="check"
  1134. @click="
  1135. addTools(52, itemTaskIndex, toolIndex)
  1136. "
  1137. >
  1138. <img
  1139. src="../../../assets/icon/checkNo.png"
  1140. alt
  1141. v-if="itemTool.tool.indexOf(52) == -1"
  1142. />
  1143. <div class="checkDiv" v-else>
  1144. <img
  1145. src="../../../assets/icon/checkedIs.png"
  1146. alt
  1147. /><span>已选择</span>
  1148. </div>
  1149. </div>
  1150. </div>
  1151. <div class="tool">
  1152. <div
  1153. class="whiteBIcon"
  1154. @click="
  1155. openTools(itemTaskIndex, 3, toolIndex)
  1156. "
  1157. >
  1158. <img
  1159. src="../../../assets/icon/secondToolList/mindMapping.png"
  1160. alt
  1161. />
  1162. <div style="margin: 5px 0">思维导图</div>
  1163. </div>
  1164. <div
  1165. class="check"
  1166. @click="
  1167. addTools(3, itemTaskIndex, toolIndex)
  1168. "
  1169. >
  1170. <img
  1171. src="../../../assets/icon/checkNo.png"
  1172. alt
  1173. v-if="itemTool.tool.indexOf(3) == -1"
  1174. />
  1175. <div class="checkDiv" v-else>
  1176. <img
  1177. src="../../../assets/icon/checkedIs.png"
  1178. alt
  1179. /><span>已选择</span>
  1180. </div>
  1181. </div>
  1182. </div>
  1183. <div class="tool">
  1184. <div
  1185. class="whiteBIcon"
  1186. @click="
  1187. openTools(itemTaskIndex, 48, toolIndex)
  1188. "
  1189. >
  1190. <img
  1191. src="../../../assets/icon/fourthToolList/table.png"
  1192. alt
  1193. />
  1194. <div style="margin: 5px 0">表格</div>
  1195. </div>
  1196. <div
  1197. class="check"
  1198. @click="
  1199. addTools(48, itemTaskIndex, toolIndex)
  1200. "
  1201. >
  1202. <img
  1203. src="../../../assets/icon/checkNo.png"
  1204. alt
  1205. v-if="itemTool.tool.indexOf(48) == -1"
  1206. />
  1207. <div class="checkDiv" v-else>
  1208. <img
  1209. src="../../../assets/icon/checkedIs.png"
  1210. alt
  1211. /><span>已选择</span>
  1212. </div>
  1213. </div>
  1214. </div>
  1215. </div>
  1216. <div
  1217. class="toolSort"
  1218. v-if="itemTool.toolType == 6"
  1219. >
  1220. <div class="tool">
  1221. <div
  1222. class="whiteBIcon"
  1223. @click="
  1224. openTools(itemTaskIndex, 49, toolIndex)
  1225. "
  1226. >
  1227. <img
  1228. src="../../../assets/icon/fourthToolList/group.png"
  1229. alt
  1230. />
  1231. <div style="margin: 5px 0">学生分组</div>
  1232. </div>
  1233. <div
  1234. class="check"
  1235. @click="
  1236. addTools(49, itemTaskIndex, toolIndex)
  1237. "
  1238. >
  1239. <img
  1240. src="../../../assets/icon/checkNo.png"
  1241. alt
  1242. v-if="itemTool.tool.indexOf(49) == -1"
  1243. />
  1244. <div class="checkDiv" v-else>
  1245. <img
  1246. src="../../../assets/icon/checkedIs.png"
  1247. alt
  1248. /><span>已选择</span>
  1249. </div>
  1250. </div>
  1251. </div>
  1252. </div>
  1253. <div
  1254. class="toolSort"
  1255. v-if="itemTool.toolType == 2"
  1256. >
  1257. <!-- <div class="tool">
  1258. <div
  1259. class="whiteBIcon"
  1260. @click="addTools(5, itemTaskIndex, toolIndex)"
  1261. >
  1262. <img
  1263. src="../../../assets/icon/thirdToolList/score.png"
  1264. alt
  1265. />
  1266. <div style="margin: 5px 0">量规评分</div>
  1267. </div>
  1268. <div
  1269. class="check"
  1270. @click="addTools(5, itemTaskIndex, toolIndex)"
  1271. >
  1272. <img
  1273. src="../../../assets/icon/checkNo.png"
  1274. alt
  1275. v-if="itemTool.tool.indexOf(5) == -1"
  1276. />
  1277. <img
  1278. src="../../../assets/icon/checkedIs.png"
  1279. alt
  1280. v-else
  1281. />
  1282. </div>
  1283. </div>-->
  1284. <div class="tool">
  1285. <div
  1286. class="whiteBIcon"
  1287. @click="
  1288. openTools(itemTaskIndex, 4, toolIndex)
  1289. "
  1290. >
  1291. <img
  1292. src="../../../assets/icon/thirdToolList/ask.png"
  1293. alt
  1294. />
  1295. <div style="margin: 5px 0">问卷调查</div>
  1296. </div>
  1297. <div
  1298. class="check"
  1299. @click="
  1300. addTools(4, itemTaskIndex, toolIndex)
  1301. "
  1302. >
  1303. <img
  1304. src="../../../assets/icon/checkNo.png"
  1305. alt
  1306. v-if="itemTool.tool.indexOf(4) == -1"
  1307. />
  1308. <div class="checkDiv" v-else>
  1309. <img
  1310. src="../../../assets/icon/checkedIs.png"
  1311. alt
  1312. /><span>已选择</span>
  1313. </div>
  1314. </div>
  1315. </div>
  1316. <div class="tool">
  1317. <div
  1318. class="whiteBIcon"
  1319. @click="
  1320. openTools(itemTaskIndex, 45, toolIndex)
  1321. "
  1322. >
  1323. <img
  1324. src="../../../assets/icon/thirdToolList/choose.png"
  1325. alt
  1326. />
  1327. <div style="margin: 5px 0">选择题</div>
  1328. </div>
  1329. <div
  1330. class="check"
  1331. @click="
  1332. addTools(45, itemTaskIndex, toolIndex)
  1333. "
  1334. >
  1335. <img
  1336. src="../../../assets/icon/checkNo.png"
  1337. alt
  1338. v-if="itemTool.tool.indexOf(45) == -1"
  1339. />
  1340. <div class="checkDiv" v-else>
  1341. <img
  1342. src="../../../assets/icon/checkedIs.png"
  1343. alt
  1344. /><span>已选择</span>
  1345. </div>
  1346. </div>
  1347. </div>
  1348. <div class="tool">
  1349. <div
  1350. class="whiteBIcon"
  1351. @click="
  1352. openTools(itemTaskIndex, 15, toolIndex)
  1353. "
  1354. >
  1355. <img
  1356. src="../../../assets/icon/thirdToolList/answer.png"
  1357. alt
  1358. />
  1359. <div style="margin: 5px 0">问答工具</div>
  1360. </div>
  1361. <div
  1362. class="check"
  1363. @click="
  1364. addTools(15, itemTaskIndex, toolIndex)
  1365. "
  1366. >
  1367. <img
  1368. src="../../../assets/icon/checkNo.png"
  1369. alt
  1370. v-if="itemTool.tool.indexOf(15) == -1"
  1371. />
  1372. <div class="checkDiv" v-else>
  1373. <img
  1374. src="../../../assets/icon/checkedIs.png"
  1375. alt
  1376. /><span>已选择</span>
  1377. </div>
  1378. </div>
  1379. </div>
  1380. <div class="tool">
  1381. <div
  1382. class="whiteBIcon"
  1383. @click="
  1384. addTools(16, itemTaskIndex, toolIndex)
  1385. "
  1386. >
  1387. <img
  1388. src="../../../assets/icon/thirdToolList/work.png"
  1389. alt
  1390. />
  1391. <div style="margin: 5px 0">作业提交</div>
  1392. </div>
  1393. <div
  1394. class="check"
  1395. @click="
  1396. addTools(16, itemTaskIndex, toolIndex)
  1397. "
  1398. >
  1399. <img
  1400. src="../../../assets/icon/checkNo.png"
  1401. alt
  1402. v-if="itemTool.tool.indexOf(16) == -1"
  1403. />
  1404. <div class="checkDiv" v-else>
  1405. <img
  1406. src="../../../assets/icon/checkedIs.png"
  1407. alt
  1408. /><span>已选择</span>
  1409. </div>
  1410. </div>
  1411. </div>
  1412. <div class="tool">
  1413. <div
  1414. class="whiteBIcon"
  1415. @click="
  1416. addTools(50, itemTaskIndex, toolIndex)
  1417. "
  1418. >
  1419. <img
  1420. src="../../../assets/icon/thirdToolList/plwork.png"
  1421. alt
  1422. />
  1423. <div style="margin: 5px 0">批量上传</div>
  1424. </div>
  1425. <div
  1426. class="check"
  1427. @click="
  1428. addTools(50, itemTaskIndex, toolIndex)
  1429. "
  1430. >
  1431. <img
  1432. src="../../../assets/icon/checkNo.png"
  1433. alt
  1434. v-if="itemTool.tool.indexOf(50) == -1"
  1435. />
  1436. <div class="checkDiv" v-else>
  1437. <img
  1438. src="../../../assets/icon/checkedIs.png"
  1439. alt
  1440. /><span>已选择</span>
  1441. </div>
  1442. </div>
  1443. </div>
  1444. <!-- <div class="tool">
  1445. <div
  1446. class="whiteBIcon"
  1447. @click="
  1448. openTools(itemTaskIndex, 40, toolIndex)
  1449. "
  1450. >
  1451. <img
  1452. src="../../../assets/icon/thirdToolList/eval.png"
  1453. alt
  1454. />
  1455. <div style="margin: 5px 0">个人评价</div>
  1456. </div>
  1457. <div
  1458. class="check"
  1459. @click="
  1460. addTools(40, itemTaskIndex, toolIndex)
  1461. "
  1462. >
  1463. <img
  1464. src="../../../assets/icon/checkNo.png"
  1465. alt
  1466. v-if="itemTool.tool.indexOf(40) == -1"
  1467. />
  1468. <div class="checkDiv" v-else>
  1469. <img
  1470. src="../../../assets/icon/checkedIs.png"
  1471. alt
  1472. /><span>已选择</span>
  1473. </div>
  1474. </div>
  1475. </div> -->
  1476. <div class="tool">
  1477. <div
  1478. class="whiteBIcon"
  1479. @click="
  1480. openTools(itemTaskIndex, 41, toolIndex)
  1481. "
  1482. >
  1483. <img
  1484. src="../../../assets/icon/thirdToolList/select.png"
  1485. alt
  1486. />
  1487. <div style="margin: 5px 0">选择填空</div>
  1488. </div>
  1489. <div
  1490. class="check"
  1491. @click="
  1492. addTools(41, itemTaskIndex, toolIndex)
  1493. "
  1494. >
  1495. <img
  1496. src="../../../assets/icon/checkNo.png"
  1497. alt
  1498. v-if="itemTool.tool.indexOf(41) == -1"
  1499. />
  1500. <div class="checkDiv" v-else>
  1501. <img
  1502. src="../../../assets/icon/checkedIs.png"
  1503. alt
  1504. /><span>已选择</span>
  1505. </div>
  1506. </div>
  1507. </div>
  1508. <div class="tool">
  1509. <div
  1510. class="whiteBIcon"
  1511. @click="
  1512. openTools(itemTaskIndex, 47, toolIndex)
  1513. "
  1514. >
  1515. <img
  1516. src="../../../assets/icon/fourthToolList/conSentences.png"
  1517. alt
  1518. />
  1519. <div style="margin: 5px 0">连词成句</div>
  1520. </div>
  1521. <div
  1522. class="check"
  1523. @click="
  1524. addTools(47, itemTaskIndex, toolIndex)
  1525. "
  1526. >
  1527. <img
  1528. src="../../../assets/icon/checkNo.png"
  1529. alt
  1530. v-if="itemTool.tool.indexOf(47) == -1"
  1531. />
  1532. <div class="checkDiv" v-else>
  1533. <img
  1534. src="../../../assets/icon/checkedIs.png"
  1535. alt
  1536. /><span>已选择</span>
  1537. </div>
  1538. </div>
  1539. </div>
  1540. <!-- <div class="tool">
  1541. <div
  1542. class="whiteBIcon"
  1543. @click="openTools(itemTaskIndex, 42, toolIndex)"
  1544. >
  1545. <img
  1546. src="../../../assets/icon/thirdToolList/mp3.png"
  1547. alt
  1548. />
  1549. <div style="margin: 5px 0">上传音频</div>
  1550. </div>
  1551. <div
  1552. class="check"
  1553. @click="addTools(42, itemTaskIndex, toolIndex)"
  1554. >
  1555. <img
  1556. src="../../../assets/icon/checkNo.png"
  1557. alt
  1558. v-if="itemTool.tool.indexOf(42) == -1"
  1559. />
  1560. <img
  1561. src="../../../assets/icon/checkedIs.png"
  1562. alt
  1563. v-else
  1564. />
  1565. </div>
  1566. </div> -->
  1567. </div>
  1568. <div
  1569. class="toolSort"
  1570. v-if="itemTool.toolType == 3"
  1571. >
  1572. <div class="tool">
  1573. <div
  1574. class="whiteBIcon"
  1575. @click="
  1576. addTools(18, itemTaskIndex, toolIndex)
  1577. "
  1578. >
  1579. <img
  1580. src="../../../assets/icon/thirdToolList/trainPlatform.png"
  1581. alt
  1582. />
  1583. <div style="margin: 5px 0">训练平台</div>
  1584. </div>
  1585. <div
  1586. class="check"
  1587. @click="
  1588. addTools(18, itemTaskIndex, toolIndex)
  1589. "
  1590. >
  1591. <img
  1592. src="../../../assets/icon/checkNo.png"
  1593. alt
  1594. v-if="itemTool.tool.indexOf(18) == -1"
  1595. />
  1596. <div class="checkDiv" v-else>
  1597. <img
  1598. src="../../../assets/icon/checkedIs.png"
  1599. alt
  1600. /><span>已选择</span>
  1601. </div>
  1602. </div>
  1603. </div>
  1604. <div class="tool">
  1605. <div
  1606. class="whiteBIcon"
  1607. @click="
  1608. addTools(21, itemTaskIndex, toolIndex)
  1609. "
  1610. >
  1611. <img
  1612. src="../../../assets/icon/fourthToolList/program.png"
  1613. alt
  1614. />
  1615. <div style="margin: 5px 0">编程平台</div>
  1616. </div>
  1617. <div
  1618. class="check"
  1619. @click="
  1620. addTools(21, itemTaskIndex, toolIndex)
  1621. "
  1622. >
  1623. <img
  1624. src="../../../assets/icon/checkNo.png"
  1625. alt
  1626. v-if="itemTool.tool.indexOf(21) == -1"
  1627. />
  1628. <div class="checkDiv" v-else>
  1629. <img
  1630. src="../../../assets/icon/checkedIs.png"
  1631. alt
  1632. /><span>已选择</span>
  1633. </div>
  1634. </div>
  1635. </div>
  1636. <div class="tool">
  1637. <div
  1638. class="whiteBIcon"
  1639. @click="
  1640. addTools(22, itemTaskIndex, toolIndex)
  1641. "
  1642. >
  1643. <img
  1644. src="../../../assets/icon/fourthToolList/AIprogram2.png"
  1645. alt
  1646. />
  1647. <div style="margin: 5px 0">AI体验</div>
  1648. </div>
  1649. <div
  1650. class="check"
  1651. @click="
  1652. addTools(22, itemTaskIndex, toolIndex)
  1653. "
  1654. >
  1655. <img
  1656. src="../../../assets/icon/checkNo.png"
  1657. alt
  1658. v-if="itemTool.tool.indexOf(22) == -1"
  1659. />
  1660. <div class="checkDiv" v-else>
  1661. <img
  1662. src="../../../assets/icon/checkedIs.png"
  1663. alt
  1664. /><span>已选择</span>
  1665. </div>
  1666. </div>
  1667. </div>
  1668. <div class="tool">
  1669. <div
  1670. class="whiteBIcon"
  1671. @click="
  1672. addTools(23, itemTaskIndex, toolIndex)
  1673. "
  1674. >
  1675. <img
  1676. src="../../../assets/icon/fourthToolList/Pythonprogram.png"
  1677. alt
  1678. />
  1679. <div style="margin: 5px 0">Python</div>
  1680. </div>
  1681. <div
  1682. class="check"
  1683. @click="
  1684. addTools(23, itemTaskIndex, toolIndex)
  1685. "
  1686. >
  1687. <img
  1688. src="../../../assets/icon/checkNo.png"
  1689. alt
  1690. v-if="itemTool.tool.indexOf(23) == -1"
  1691. />
  1692. <div class="checkDiv" v-else>
  1693. <img
  1694. src="../../../assets/icon/checkedIs.png"
  1695. alt
  1696. /><span>已选择</span>
  1697. </div>
  1698. </div>
  1699. </div>
  1700. <div class="tool">
  1701. <div
  1702. class="whiteBIcon"
  1703. @click="
  1704. addTools(24, itemTaskIndex, toolIndex)
  1705. "
  1706. >
  1707. <img
  1708. src="../../../assets/icon/fourthToolList/AIprogram.png"
  1709. alt
  1710. />
  1711. <div style="margin: 5px 0">AI平台</div>
  1712. </div>
  1713. <div
  1714. class="check"
  1715. @click="
  1716. addTools(24, itemTaskIndex, toolIndex)
  1717. "
  1718. >
  1719. <img
  1720. src="../../../assets/icon/checkNo.png"
  1721. alt
  1722. v-if="itemTool.tool.indexOf(24) == -1"
  1723. />
  1724. <div class="checkDiv" v-else>
  1725. <img
  1726. src="../../../assets/icon/checkedIs.png"
  1727. alt
  1728. /><span>已选择</span>
  1729. </div>
  1730. </div>
  1731. </div>
  1732. <div class="tool">
  1733. <div
  1734. class="whiteBIcon"
  1735. @click="
  1736. addTools(32, itemTaskIndex, toolIndex)
  1737. "
  1738. >
  1739. <img
  1740. src="../../../assets/icon/thirdToolList/code.png"
  1741. alt
  1742. />
  1743. <div style="margin: 5px 0">源码编辑</div>
  1744. </div>
  1745. <div
  1746. class="check"
  1747. @click="
  1748. addTools(32, itemTaskIndex, toolIndex)
  1749. "
  1750. >
  1751. <img
  1752. src="../../../assets/icon/checkNo.png"
  1753. alt
  1754. v-if="itemTool.tool.indexOf(32) == -1"
  1755. />
  1756. <div class="checkDiv" v-else>
  1757. <img
  1758. src="../../../assets/icon/checkedIs.png"
  1759. alt
  1760. /><span>已选择</span>
  1761. </div>
  1762. </div>
  1763. </div>
  1764. <div class="tool">
  1765. <div
  1766. class="whiteBIcon"
  1767. @click="openTools(itemTaskIndex, 57, toolIndex)"
  1768. >
  1769. <img
  1770. src="../../../assets/icon/fourthToolList/cocopi.png"
  1771. alt
  1772. />
  1773. <div style="margin: 5px 0">CocoPi</div>
  1774. </div>
  1775. <div
  1776. class="check"
  1777. @click="
  1778. addTools(57, itemTaskIndex, toolIndex)
  1779. "
  1780. >
  1781. <img
  1782. src="../../../assets/icon/checkNo.png"
  1783. alt
  1784. v-if="itemTool.tool.indexOf(57) == -1"
  1785. />
  1786. <div class="checkDiv" v-else>
  1787. <img
  1788. src="../../../assets/icon/checkedIs.png"
  1789. alt
  1790. /><span>已选择</span>
  1791. </div>
  1792. </div>
  1793. </div>
  1794. <div class="tool">
  1795. <div
  1796. class="whiteBIcon"
  1797. @click="
  1798. addTools(63, itemTaskIndex, toolIndex)
  1799. "
  1800. >
  1801. <img
  1802. src="../../../assets/icon/fourthToolList/Wood.png"
  1803. alt
  1804. />
  1805. <div style="margin: 5px 0">海龟编程</div>
  1806. </div>
  1807. <div
  1808. class="check"
  1809. @click="
  1810. addTools(63, itemTaskIndex, toolIndex)
  1811. "
  1812. >
  1813. <img
  1814. src="../../../assets/icon/checkNo.png"
  1815. alt
  1816. v-if="itemTool.tool.indexOf(63) == -1"
  1817. />
  1818. <div class="checkDiv" v-else>
  1819. <img
  1820. src="../../../assets/icon/checkedIs.png"
  1821. alt
  1822. /><span>已选择</span>
  1823. </div>
  1824. </div>
  1825. </div>
  1826. </div>
  1827. <div
  1828. class="toolSort"
  1829. v-if="itemTool.toolType == 5"
  1830. >
  1831. <div class="tool">
  1832. <div
  1833. class="whiteBIcon"
  1834. @click="
  1835. addTools(28, itemTaskIndex, toolIndex)
  1836. "
  1837. >
  1838. <img
  1839. src="../../../assets/icon/secondToolList/translation.png"
  1840. alt
  1841. />
  1842. <div style="margin: 5px 0">翻译</div>
  1843. </div>
  1844. <div
  1845. class="check"
  1846. @click="
  1847. addTools(28, itemTaskIndex, toolIndex)
  1848. "
  1849. >
  1850. <img
  1851. src="../../../assets/icon/checkNo.png"
  1852. alt
  1853. v-if="itemTool.tool.indexOf(28) == -1"
  1854. />
  1855. <div class="checkDiv" v-else>
  1856. <img
  1857. src="../../../assets/icon/checkedIs.png"
  1858. alt
  1859. /><span>已选择</span>
  1860. </div>
  1861. </div>
  1862. </div>
  1863. <div class="tool">
  1864. <div
  1865. class="whiteBIcon"
  1866. @click="
  1867. addTools(37, itemTaskIndex, toolIndex)
  1868. "
  1869. >
  1870. <img
  1871. src="../../../assets/icon/secondToolList/mohe.png"
  1872. alt
  1873. />
  1874. <div style="margin: 5px 0">魔盒识字</div>
  1875. </div>
  1876. <div
  1877. class="check"
  1878. @click="
  1879. addTools(37, itemTaskIndex, toolIndex)
  1880. "
  1881. >
  1882. <img
  1883. src="../../../assets/icon/checkNo.png"
  1884. alt
  1885. v-if="itemTool.tool.indexOf(37) == -1"
  1886. />
  1887. <div class="checkDiv" v-else>
  1888. <img
  1889. src="../../../assets/icon/checkedIs.png"
  1890. alt
  1891. /><span>已选择</span>
  1892. </div>
  1893. </div>
  1894. </div>
  1895. <div class="tool">
  1896. <div
  1897. class="whiteBIcon"
  1898. @click="
  1899. addTools(38, itemTaskIndex, toolIndex)
  1900. "
  1901. >
  1902. <img
  1903. src="../../../assets/icon/secondToolList/24game.png"
  1904. alt
  1905. />
  1906. <div style="margin: 5px 0">24点</div>
  1907. </div>
  1908. <div
  1909. class="check"
  1910. @click="
  1911. addTools(38, itemTaskIndex, toolIndex)
  1912. "
  1913. >
  1914. <img
  1915. src="../../../assets/icon/checkNo.png"
  1916. alt
  1917. v-if="itemTool.tool.indexOf(38) == -1"
  1918. />
  1919. <div class="checkDiv" v-else>
  1920. <img
  1921. src="../../../assets/icon/checkedIs.png"
  1922. alt
  1923. /><span>已选择</span>
  1924. </div>
  1925. </div>
  1926. </div>
  1927. <div class="tool">
  1928. <div
  1929. class="whiteBIcon"
  1930. @click="
  1931. addTools(31, itemTaskIndex, toolIndex)
  1932. "
  1933. >
  1934. <img
  1935. src="../../../assets/icon/secondToolList/networkPanel.png"
  1936. alt
  1937. />
  1938. <div style="margin: 5px 0">数学画板</div>
  1939. </div>
  1940. <div
  1941. class="check"
  1942. @click="
  1943. addTools(31, itemTaskIndex, toolIndex)
  1944. "
  1945. >
  1946. <img
  1947. src="../../../assets/icon/checkNo.png"
  1948. alt
  1949. v-if="itemTool.tool.indexOf(31) == -1"
  1950. />
  1951. <div class="checkDiv" v-else>
  1952. <img
  1953. src="../../../assets/icon/checkedIs.png"
  1954. alt
  1955. /><span>已选择</span>
  1956. </div>
  1957. </div>
  1958. </div>
  1959. <div class="tool">
  1960. <div
  1961. class="whiteBIcon"
  1962. @click="
  1963. addTools(39, itemTaskIndex, toolIndex)
  1964. "
  1965. >
  1966. <img
  1967. src="../../../assets/icon/secondToolList/GeoGebra.png"
  1968. alt
  1969. />
  1970. <div style="margin: 5px 0">GeoGebra</div>
  1971. </div>
  1972. <div
  1973. class="check"
  1974. @click="
  1975. addTools(39, itemTaskIndex, toolIndex)
  1976. "
  1977. >
  1978. <img
  1979. src="../../../assets/icon/checkNo.png"
  1980. alt
  1981. v-if="itemTool.tool.indexOf(39) == -1"
  1982. />
  1983. <div class="checkDiv" v-else>
  1984. <img
  1985. src="../../../assets/icon/checkedIs.png"
  1986. alt
  1987. /><span>已选择</span>
  1988. </div>
  1989. </div>
  1990. </div>
  1991. <div class="tool">
  1992. <div
  1993. class="whiteBIcon"
  1994. @click="
  1995. addTools(58, itemTaskIndex, toolIndex)
  1996. "
  1997. >
  1998. <img
  1999. src="../../../assets/icon/fourthToolList/car.png"
  2000. alt
  2001. />
  2002. <div style="margin: 5px 0">模拟驾驶</div>
  2003. </div>
  2004. <div
  2005. class="check"
  2006. @click="
  2007. addTools(58, itemTaskIndex, toolIndex)
  2008. "
  2009. >
  2010. <img
  2011. src="../../../assets/icon/checkNo.png"
  2012. alt
  2013. v-if="itemTool.tool.indexOf(58) == -1"
  2014. />
  2015. <div class="checkDiv" v-else>
  2016. <img
  2017. src="../../../assets/icon/checkedIs.png"
  2018. alt
  2019. /><span>已选择</span>
  2020. </div>
  2021. </div>
  2022. </div>
  2023. <div class="tool">
  2024. <div
  2025. class="whiteBIcon"
  2026. @click="
  2027. addTools(59, itemTaskIndex, toolIndex)
  2028. "
  2029. >
  2030. <img
  2031. src="../../../assets/icon/fourthToolList/lineSearch.png"
  2032. alt
  2033. />
  2034. <div style="margin: 5px 0">路径搜索</div>
  2035. </div>
  2036. <div
  2037. class="check"
  2038. @click="
  2039. addTools(59, itemTaskIndex, toolIndex)
  2040. "
  2041. >
  2042. <img
  2043. src="../../../assets/icon/checkNo.png"
  2044. alt
  2045. v-if="itemTool.tool.indexOf(59) == -1"
  2046. />
  2047. <div class="checkDiv" v-else>
  2048. <img
  2049. src="../../../assets/icon/checkedIs.png"
  2050. alt
  2051. /><span>已选择</span>
  2052. </div>
  2053. </div>
  2054. </div>
  2055. <div class="tool">
  2056. <div
  2057. class="whiteBIcon"
  2058. @click="
  2059. addTools(60, itemTaskIndex, toolIndex)
  2060. "
  2061. >
  2062. <img
  2063. src="../../../assets/icon/fourthToolList/deepLearning.png"
  2064. alt
  2065. />
  2066. <div style="margin: 5px 0">深度学习</div>
  2067. </div>
  2068. <div
  2069. class="check"
  2070. @click="
  2071. addTools(60, itemTaskIndex, toolIndex)
  2072. "
  2073. >
  2074. <img
  2075. src="../../../assets/icon/checkNo.png"
  2076. alt
  2077. v-if="itemTool.tool.indexOf(60) == -1"
  2078. />
  2079. <div class="checkDiv" v-else>
  2080. <img
  2081. src="../../../assets/icon/checkedIs.png"
  2082. alt
  2083. /><span>已选择</span>
  2084. </div>
  2085. </div>
  2086. </div>
  2087. <div class="tool">
  2088. <div
  2089. class="whiteBIcon"
  2090. @click="
  2091. addTools(61, itemTaskIndex, toolIndex)
  2092. "
  2093. >
  2094. <img
  2095. src="../../../assets/icon/fourthToolList/allHistory.png"
  2096. alt
  2097. />
  2098. <div style="margin: 5px 0">全历史</div>
  2099. </div>
  2100. <div
  2101. class="check"
  2102. @click="
  2103. addTools(61, itemTaskIndex, toolIndex)
  2104. "
  2105. >
  2106. <img
  2107. src="../../../assets/icon/checkNo.png"
  2108. alt
  2109. v-if="itemTool.tool.indexOf(61) == -1"
  2110. />
  2111. <div class="checkDiv" v-else>
  2112. <img
  2113. src="../../../assets/icon/checkedIs.png"
  2114. alt
  2115. /><span>已选择</span>
  2116. </div>
  2117. </div>
  2118. </div>
  2119. </div>
  2120. <div
  2121. class="toolSort"
  2122. v-if="itemTool.toolType == 7"
  2123. >
  2124. <div class="tool">
  2125. <div
  2126. class="whiteBIcon"
  2127. @click="
  2128. openTools(itemTaskIndex, 40, toolIndex)
  2129. "
  2130. >
  2131. <img
  2132. src="../../../assets/icon/thirdToolList/eval.png"
  2133. alt
  2134. />
  2135. <div style="margin: 5px 0">个人评价</div>
  2136. </div>
  2137. <div
  2138. class="check"
  2139. @click="
  2140. addTools(40, itemTaskIndex, toolIndex)
  2141. "
  2142. >
  2143. <img
  2144. src="../../../assets/icon/checkNo.png"
  2145. alt
  2146. v-if="itemTool.tool.indexOf(40) == -1"
  2147. />
  2148. <div class="checkDiv" v-else>
  2149. <img
  2150. src="../../../assets/icon/checkedIs.png"
  2151. alt
  2152. /><span>已选择</span>
  2153. </div>
  2154. </div>
  2155. </div>
  2156. </div>
  2157. <div
  2158. class="toolSort"
  2159. v-if="itemTool.toolType == 4"
  2160. >
  2161. <div class="tool">
  2162. <div
  2163. class="whiteBIcon"
  2164. @click="
  2165. addTools(26, itemTaskIndex, toolIndex)
  2166. "
  2167. >
  2168. <img
  2169. src="../../../assets/icon/thirdToolList/courseDesign.png"
  2170. alt
  2171. />
  2172. <div style="margin: 5px 0">课程设计</div>
  2173. </div>
  2174. <div
  2175. class="check"
  2176. @click="
  2177. addTools(26, itemTaskIndex, toolIndex)
  2178. "
  2179. >
  2180. <img
  2181. src="../../../assets/icon/checkNo.png"
  2182. alt
  2183. v-if="itemTool.tool.indexOf(26) == -1"
  2184. />
  2185. <div class="checkDiv" v-else>
  2186. <img
  2187. src="../../../assets/icon/checkedIs.png"
  2188. alt
  2189. /><span>已选择</span>
  2190. </div>
  2191. </div>
  2192. </div>
  2193. <div class="tool">
  2194. <div
  2195. class="whiteBIcon"
  2196. @click="
  2197. addTools(25, itemTaskIndex, toolIndex)
  2198. "
  2199. >
  2200. <img
  2201. src="../../../assets/icon/thirdToolList/evalua.png"
  2202. alt
  2203. />
  2204. <div style="margin: 5px 0">目标管理</div>
  2205. </div>
  2206. <div
  2207. class="check"
  2208. @click="
  2209. addTools(25, itemTaskIndex, toolIndex)
  2210. "
  2211. >
  2212. <img
  2213. src="../../../assets/icon/checkNo.png"
  2214. alt
  2215. v-if="itemTool.tool.indexOf(25) == -1"
  2216. />
  2217. <div class="checkDiv" v-else>
  2218. <img
  2219. src="../../../assets/icon/checkedIs.png"
  2220. alt
  2221. /><span>已选择</span>
  2222. </div>
  2223. </div>
  2224. </div>
  2225. <!-- <div class="tool">
  2226. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  2227. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  2228. <div style="margin: 5px 0">汉字宫</div>
  2229. </div>
  2230. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  2231. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  2232. <div class="checkDiv" v-else>
  2233. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2234. </div>
  2235. </div>
  2236. </div> -->
  2237. </div>
  2238. </div>
  2239. </div>
  2240. <div
  2241. class="addToolFun"
  2242. @click="addToolFun(itemTaskIndex)"
  2243. >
  2244. <div class="addToolImg">
  2245. <img src="../../../assets/icon/add.png" alt />
  2246. </div>
  2247. <div>添加工具</div>
  2248. </div>
  2249. </div>
  2250. </div>
  2251. </div>
  2252. <div
  2253. class="addTaskBorder"
  2254. @click="addTaskBorder"
  2255. v-if="!unitJson[unitIndex].easy"
  2256. >
  2257. <div>
  2258. <img src="../../../assets/icon/addHw.png" alt />
  2259. <span>添加任务</span>
  2260. </div>
  2261. </div>
  2262. </div>
  2263. </div>
  2264. </div>
  2265. </div>
  2266. </div>
  2267. <div class="rightBox" v-if="this.steps == 2">
  2268. <div
  2269. class="basic_box"
  2270. style="padding: 20px 30px 0px !important; box-sizing: border-box"
  2271. >
  2272. <div
  2273. class="right_title"
  2274. style="border: none; margin: 0; padding: 0"
  2275. >
  2276. 请选择合适的课程模板
  2277. </div>
  2278. <div class="wordbox">
  2279. <div
  2280. class="wordTeacher"
  2281. v-for="(aa, indexF) in templateArray"
  2282. :key="indexF"
  2283. @click="checkTemplate(aa)"
  2284. >
  2285. <div class="wordPic">
  2286. <img src="../../../assets/icon/wordMub.png" alt />
  2287. </div>
  2288. <div
  2289. style="
  2290. margin-top: 10px;
  2291. line-height: 19px;
  2292. overflow: hidden;
  2293. text-overflow: ellipsis;
  2294. white-space: nowrap;
  2295. padding: 0 20px;
  2296. "
  2297. >
  2298. {{ aa.title }}
  2299. </div>
  2300. </div>
  2301. <div class="wordTeacher" @click="checkTemplate2()">
  2302. <div class="wordPic">
  2303. <img src="../../../assets/icon/wordMub.png" alt />
  2304. </div>
  2305. <div
  2306. style="
  2307. margin-top: 10px;
  2308. line-height: 19px;
  2309. overflow: hidden;
  2310. text-overflow: ellipsis;
  2311. white-space: nowrap;
  2312. padding: 0 20px;
  2313. "
  2314. >
  2315. 任务模式
  2316. </div>
  2317. </div>
  2318. <div class="wordTeacher" @click="checkTemplate3()">
  2319. <div class="wordPic">
  2320. <img src="../../../assets/icon/wordMub.png" alt />
  2321. </div>
  2322. <div
  2323. style="
  2324. margin-top: 10px;
  2325. line-height: 19px;
  2326. overflow: hidden;
  2327. text-overflow: ellipsis;
  2328. white-space: nowrap;
  2329. padding: 0 20px;
  2330. "
  2331. >
  2332. 简易模式
  2333. </div>
  2334. </div>
  2335. <div class="wordTeacher" @click="pasteStage()">
  2336. <div class="wordPic">
  2337. <img src="../../../assets/icon/wordMub.png" alt />
  2338. </div>
  2339. <div
  2340. style="
  2341. margin-top: 10px;
  2342. line-height: 19px;
  2343. overflow: hidden;
  2344. text-overflow: ellipsis;
  2345. white-space: nowrap;
  2346. padding: 0 20px;
  2347. "
  2348. >
  2349. 智能粘贴模式
  2350. </div>
  2351. </div>
  2352. <!-- <div class="wordTeacher" @click="checkTemplate4()">
  2353. <div class="wordPic">
  2354. <img src="../../../assets/icon/wordMub.png" alt />
  2355. </div>
  2356. <div style="
  2357. margin-top: 10px;
  2358. line-height: 19px;
  2359. overflow: hidden;
  2360. text-overflow: ellipsis;
  2361. white-space: nowrap;
  2362. padding: 0 20px;
  2363. ">
  2364. 未来小学课程设计
  2365. </div>
  2366. </div> -->
  2367. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  2368. <div class="wordPic">
  2369. <img src="../../../assets/icon/wordMub.png" alt />
  2370. </div>
  2371. <div style="
  2372. margin-top: 10px;
  2373. line-height: 19px;
  2374. overflow: hidden;
  2375. text-overflow: ellipsis;
  2376. white-space: nowrap;
  2377. padding: 0 20px;
  2378. ">
  2379. 我的课程
  2380. </div>
  2381. </div> -->
  2382. </div>
  2383. </div>
  2384. </div>
  2385. <div class="rightBox" v-if="this.steps == 3" ref="rightboxR">
  2386. <div class="basic_box">
  2387. <div
  2388. style="
  2389. display: flex;
  2390. flex-direction: row;
  2391. align-items: center;
  2392. position: sticky;
  2393. top: 0;
  2394. background: #fff;
  2395. z-index: 99;
  2396. width: 100%;
  2397. padding: 0 20px 0 20px;
  2398. box-sizing: border-box;
  2399. "
  2400. >
  2401. <div class="cru_selectBox">
  2402. <div
  2403. v-for="(item, index) in unitJson"
  2404. :key="index"
  2405. class="cru_select"
  2406. :class="unitIndex == index ? 'cru_selected' : ''"
  2407. @click="unitSet(index)"
  2408. >
  2409. <!-- item.dyName ? item.dyName : -->
  2410. {{ "第" + (index + 1) + "阶段" }}
  2411. </div>
  2412. <img
  2413. src="../../../assets/line.png"
  2414. class="cru_line"
  2415. :style="{
  2416. left: offsetLetfPx + 'px',
  2417. }"
  2418. />
  2419. </div>
  2420. <div
  2421. class="addStageImg"
  2422. @click="addunit()"
  2423. v-if="
  2424. !(unitJson[unitJson.length - 1].easy == 4) &&
  2425. !(unitJson[unitJson.length - 1].easy == 6)
  2426. "
  2427. >
  2428. <img src="../../../assets/icon/add.png" alt />
  2429. </div>
  2430. </div>
  2431. <div
  2432. style="margin: 0 0 40px 0; padding: 0 20px 0 20px"
  2433. v-for="(item, index) in unitJson[unitIndex].chapterInfo"
  2434. :key="index"
  2435. >
  2436. <div>
  2437. <div class="chapter_contentbox">
  2438. <div>第{{ unitIndex + 1 }}阶段</div>
  2439. <div>
  2440. <input
  2441. type="text"
  2442. placeholder="阶段标题"
  2443. class="binfo_input"
  2444. v-model="unitJson[unitIndex].dyName"
  2445. />
  2446. </div>
  2447. <div
  2448. v-if="
  2449. unitJson.length > 1 &&
  2450. !(unitJson[unitJson.length - 1].easy == 4) &&
  2451. !(unitJson[unitJson.length - 1].easy == 6)
  2452. "
  2453. @click="deleteUnit(unitIndex)"
  2454. ></div>
  2455. </div>
  2456. </div>
  2457. <div
  2458. v-if="!unitJson[unitIndex].easy"
  2459. style="
  2460. margin: 50px 0px 10px;
  2461. font-size: 1.5em;
  2462. font-weight: 700;
  2463. color: #0f7eff;
  2464. "
  2465. >
  2466. 添加任务
  2467. </div>
  2468. <div
  2469. class="taskBorder"
  2470. :style="{ minHeight: unitJson[unitIndex].easy && 'unset' }"
  2471. v-for="(itemTask, itemTaskIndex) in item.taskJson"
  2472. :key="itemTaskIndex"
  2473. >
  2474. <div v-if="unitJson[unitIndex].easy != 1">
  2475. <div
  2476. :style="{
  2477. marginBottom:
  2478. unitJson[unitIndex].easy == 3 ||
  2479. (unitJson[unitIndex].easy == 5 &&
  2480. itemTask.taskType == 1)
  2481. ? '75px'
  2482. : '0',
  2483. }"
  2484. >
  2485. <div
  2486. style="font-size: 22px; color: #8e8e8e"
  2487. :id="'task' + itemTaskIndex"
  2488. >
  2489. 任务{{ itemTaskIndex + 1 }}
  2490. </div>
  2491. <div
  2492. class="chapter_contentbox"
  2493. style="
  2494. flex-direction: row;
  2495. justify-content: flex-start;
  2496. align-items: center;
  2497. "
  2498. >
  2499. <div
  2500. style="
  2501. border-left: 6px solid #5699e8;
  2502. height: 20px;
  2503. padding-left: 10px;
  2504. line-height: 22px;
  2505. "
  2506. >
  2507. 任务名称
  2508. </div>
  2509. <div>
  2510. <input
  2511. type="text"
  2512. placeholder="输入任务名称"
  2513. class="binfo_input"
  2514. style="border-radius: 4px"
  2515. v-model="
  2516. unitJson[unitIndex].chapterInfo[0].taskJson[
  2517. itemTaskIndex
  2518. ].task
  2519. "
  2520. />
  2521. </div>
  2522. <div
  2523. class="remove"
  2524. v-if="
  2525. item.taskJson.length > 1 &&
  2526. (!unitJson[unitIndex].easy ||
  2527. unitJson[unitIndex].easy == 6)
  2528. "
  2529. @click="deleteTask(itemTaskIndex)"
  2530. style="position: absolute; right: 55px"
  2531. ></div>
  2532. </div>
  2533. <div
  2534. v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1"
  2535. style="
  2536. display: flex;
  2537. margin: 0 0 20px 0;
  2538. flex-direction: row;
  2539. justify-content: flex-start;
  2540. align-items: center;
  2541. width: 70.5% !important;
  2542. padding-top: 30px;
  2543. "
  2544. >
  2545. <div class="lineTitle">任务描述</div>
  2546. <div class="line"></div>
  2547. </div>
  2548. <div
  2549. v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1"
  2550. >
  2551. <editor-bar
  2552. style="width: 90% !important; margin: 0"
  2553. placeholder="请输入任务描述"
  2554. v-model="
  2555. unitJson[unitIndex].chapterInfo[0].taskJson[
  2556. itemTaskIndex
  2557. ].taskDetail
  2558. "
  2559. @change="change"
  2560. ></editor-bar>
  2561. <!-- <textarea
  2562. rows="6"
  2563. class="binfo_input"
  2564. placeholder="请输入任务描述"
  2565. cols
  2566. style="width: 70.5% !important; height: 120px"
  2567. v-model="
  2568. unitJson[unitIndex].chapterInfo[0].taskJson[
  2569. itemTaskIndex
  2570. ].taskDetail
  2571. "
  2572. ></textarea>-->
  2573. </div>
  2574. </div>
  2575. </div>
  2576. <div
  2577. v-if="
  2578. !unitJson[unitIndex].easy ||
  2579. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  2580. "
  2581. class="basic_box"
  2582. style="
  2583. margin: 0;
  2584. min-height: 0;
  2585. width: 90% !important;
  2586. padding-top: 10px !important;
  2587. "
  2588. >
  2589. <div
  2590. style="
  2591. display: flex;
  2592. margin: 0 0 20px 0;
  2593. flex-direction: row;
  2594. justify-content: flex-start;
  2595. align-items: center;
  2596. "
  2597. >
  2598. <div class="lineTitle">学习内容</div>
  2599. <div class="line"></div>
  2600. </div>
  2601. <div>
  2602. <div
  2603. class="add_chapters_box"
  2604. v-if="
  2605. itemTask.chapterData &&
  2606. itemTask.chapterData.length == 0
  2607. "
  2608. style="height: 185px"
  2609. ></div>
  2610. <div
  2611. v-else
  2612. class="add_chapters_box"
  2613. style="display: flex; flex-direction: column"
  2614. >
  2615. <div
  2616. class="chapter_upload"
  2617. v-for="(item1, index1) in itemTask.chapterData"
  2618. :key="item1.id"
  2619. @click="
  2620. getChapterData(
  2621. $event,
  2622. unitIndex,
  2623. index,
  2624. index1,
  2625. item1.type
  2626. )
  2627. "
  2628. >
  2629. <div
  2630. class="chapter_upload_t"
  2631. style="width: 100%"
  2632. ></div>
  2633. <div
  2634. class="chapter_upload_o"
  2635. style="
  2636. position: relative;
  2637. display: flex;
  2638. align-items: center;
  2639. "
  2640. >
  2641. <div
  2642. class="chapter_upload_l"
  2643. style="padding: 1px 0 0 10px"
  2644. >
  2645. <div
  2646. v-if="item1.type == 2"
  2647. class="chapter_upload_l_i1"
  2648. ></div>
  2649. <div
  2650. v-if="
  2651. item1.type == 3 ||
  2652. item1.type == 12 ||
  2653. item1.type == 13 ||
  2654. item1.type == 6 ||
  2655. item1.type == 7
  2656. "
  2657. class="chapter_upload_l_i5"
  2658. style="margin-left: 1px"
  2659. ></div>
  2660. <div
  2661. v-if="item1.type == 8"
  2662. class="chapter_upload_l_i8"
  2663. style="margin-left: 1px"
  2664. ></div>
  2665. </div>
  2666. <div
  2667. class="chapter_upload_ic"
  2668. style="
  2669. cursor: pointer;
  2670. position: absolute;
  2671. width: 45px;
  2672. right: 0;
  2673. top: 0;
  2674. "
  2675. >
  2676. <div class="chapter_upload_ic_l"></div>
  2677. <div
  2678. class="chapter_upload_ic_r"
  2679. style="position: absolute"
  2680. @click.stop="
  2681. deleteChapterData(
  2682. $event,
  2683. unitIndex,
  2684. index,
  2685. index1,
  2686. itemTaskIndex
  2687. )
  2688. "
  2689. >
  2690. <div></div>
  2691. </div>
  2692. </div>
  2693. <div class="chapter_upload_n">
  2694. <input
  2695. v-if="
  2696. item1.type == 2 ||
  2697. item1.type == 3 ||
  2698. item1.type == 12 ||
  2699. item1.type == 13 ||
  2700. item1.type == 7
  2701. "
  2702. :placeholder="item1.name"
  2703. @change="
  2704. updataVideoT(
  2705. $event,
  2706. unitIndex,
  2707. chapterIndex,
  2708. index1
  2709. )
  2710. "
  2711. style="
  2712. border: none;
  2713. outline: none;
  2714. width: 80%;
  2715. minwidth: 215px;
  2716. z-index: 99;
  2717. font-size: 14px;
  2718. white-space: nowrap;
  2719. overflow: hidden;
  2720. text-overflow: ellipsis;
  2721. "
  2722. />
  2723. <input
  2724. :placeholder="item1.name"
  2725. v-if="item1.type == 6"
  2726. style="
  2727. border: none;
  2728. outline: none;
  2729. width: 80%;
  2730. white-space: nowrap;
  2731. overflow: hidden;
  2732. text-overflow: ellipsis;
  2733. "
  2734. readonly="true"
  2735. @click="selectAttText(itemTaskIndex, index1)"
  2736. />
  2737. <input
  2738. :placeholder="
  2739. item1.title ? item1.title : '链接'
  2740. "
  2741. v-if="item1.type == 8"
  2742. style="
  2743. border: none;
  2744. outline: none;
  2745. width: 80%;
  2746. white-space: nowrap;
  2747. overflow: hidden;
  2748. text-overflow: ellipsis;
  2749. "
  2750. readonly="true"
  2751. @click="selectLine(itemTaskIndex, index1)"
  2752. />
  2753. <div
  2754. class="chapter_upload_ud"
  2755. style="z-index: 99"
  2756. >
  2757. <div
  2758. class="chapter_upload_up"
  2759. @click="
  2760. upCd(
  2761. $event,
  2762. unitIndex,
  2763. index,
  2764. itemTaskIndex,
  2765. index1
  2766. )
  2767. "
  2768. ></div>
  2769. <div
  2770. class="chapter_upload_down"
  2771. @click="
  2772. downCd(
  2773. $event,
  2774. unitIndex,
  2775. index,
  2776. itemTaskIndex,
  2777. index1
  2778. )
  2779. "
  2780. ></div>
  2781. </div>
  2782. </div>
  2783. </div>
  2784. </div>
  2785. </div>
  2786. </div>
  2787. <div class="add_info_box">
  2788. <button class="info_btn" @click="addImg($event)">
  2789. 添加文件
  2790. <input
  2791. type="file"
  2792. accept="*"
  2793. style="display: none"
  2794. v-if="inputShow"
  2795. @change="
  2796. beforeUpload2($event, unitIndex, 13, itemTaskIndex)
  2797. "
  2798. />
  2799. </button>
  2800. <!-- <button class="info_btn" @click="addImg($event)">
  2801. 添加视频
  2802. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  2803. v-if="inputShow" @change="beforeUpload2($event, unitIndex, 2, itemTaskIndex)
  2804. " />
  2805. </button>
  2806. <button class="info_btn" @click="addImg($event)">
  2807. 添加文档
  2808. <input type="file"
  2809. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2810. style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 3, itemTaskIndex)
  2811. " />
  2812. </button> -->
  2813. <button
  2814. class="info_btn"
  2815. @click="addAttText(itemTaskIndex)"
  2816. >
  2817. 添加图文
  2818. </button>
  2819. <button class="info_btn" @click="openLine(itemTaskIndex)">
  2820. 添加链接
  2821. </button>
  2822. <button
  2823. class="info_btn"
  2824. @click="pasteLine(itemTaskIndex)"
  2825. >
  2826. 嵌入代码
  2827. </button>
  2828. <button
  2829. class="info_btn"
  2830. @click="openSource(itemTaskIndex)"
  2831. >
  2832. 添加资源
  2833. </button>
  2834. <!-- <button class="info_btn" @click="addImg($event)">
  2835. 其他附件
  2836. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  2837. " />
  2838. </button> -->
  2839. </div>
  2840. <div
  2841. v-if="
  2842. unitJson[unitIndex].chapterInfo[0].taskJson[
  2843. itemTaskIndex
  2844. ].proVisible
  2845. "
  2846. class="mask"
  2847. >
  2848. <div class="progressBox">
  2849. <!-- <div id="closePro" class="closeCss">
  2850. <img src="../../../../assets/icon/close.png" alt />
  2851. </div> -->
  2852. <div class="lbox">
  2853. <img
  2854. src="../../../assets/loading.gif"
  2855. />上传中,请稍后
  2856. </div>
  2857. <div style="margin-bottom: 10px">
  2858. <span
  2859. >{{
  2860. unitJson[unitIndex].chapterInfo[0].taskJson[
  2861. itemTaskIndex
  2862. ].isFinishSize
  2863. }}M</span
  2864. >
  2865. /
  2866. <span
  2867. >{{
  2868. unitJson[unitIndex].chapterInfo[0].taskJson[
  2869. itemTaskIndex
  2870. ].isAllSize
  2871. }}M</span
  2872. >
  2873. </div>
  2874. <el-progress
  2875. :text-inside="true"
  2876. :stroke-width="20"
  2877. :percentage="
  2878. unitJson[unitIndex].chapterInfo[0].taskJson[
  2879. itemTaskIndex
  2880. ].progress
  2881. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  2882. itemTaskIndex
  2883. ].progress
  2884. : 0
  2885. "
  2886. style="width: 80%"
  2887. ></el-progress>
  2888. </div>
  2889. </div>
  2890. </div>
  2891. <div
  2892. v-if="
  2893. unitJson[unitIndex].easy == 1 ||
  2894. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  2895. "
  2896. class="basic_box"
  2897. style="
  2898. margin: 0 auto;
  2899. min-height: 0;
  2900. width: 95% !important;
  2901. padding: 20px 10px 10px;
  2902. "
  2903. >
  2904. <div>
  2905. <div
  2906. class="add_chapters_box"
  2907. v-if="
  2908. itemTask.chapterData &&
  2909. itemTask.chapterData.length == 0
  2910. "
  2911. style="height: 185px"
  2912. ></div>
  2913. <div
  2914. v-else
  2915. class="add_chapters_box"
  2916. style="display: flex; flex-direction: column"
  2917. >
  2918. <div
  2919. v-for="(item1, index1) in itemTask.chapterData"
  2920. :key="item1.id"
  2921. >
  2922. <div
  2923. class="chapter_upload"
  2924. @click="
  2925. getChapterData(
  2926. $event,
  2927. unitIndex,
  2928. index,
  2929. index1,
  2930. item1.type
  2931. )
  2932. "
  2933. >
  2934. <div
  2935. class="chapter_upload_t"
  2936. style="width: 100%"
  2937. ></div>
  2938. <div
  2939. class="chapter_upload_o"
  2940. style="
  2941. position: relative;
  2942. display: flex;
  2943. align-items: center;
  2944. "
  2945. >
  2946. <div
  2947. class="chapter_upload_l"
  2948. style="padding: 1px 0 0 10px"
  2949. >
  2950. <div
  2951. v-if="item1.type == 2"
  2952. class="chapter_upload_l_i1"
  2953. ></div>
  2954. <div
  2955. v-if="
  2956. item1.type == 3 ||
  2957. item1.type == 6 ||
  2958. item1.type == 7
  2959. "
  2960. class="chapter_upload_l_i5"
  2961. style="margin-left: 1px"
  2962. ></div>
  2963. <div
  2964. v-if="item1.type == 8"
  2965. class="chapter_upload_l_i8"
  2966. style="margin-left: 1px"
  2967. ></div>
  2968. </div>
  2969. <div
  2970. class="chapter_upload_ic"
  2971. style="
  2972. cursor: pointer;
  2973. position: absolute;
  2974. width: 45px;
  2975. right: 0;
  2976. top: 0;
  2977. "
  2978. >
  2979. <div class="chapter_upload_ic_l"></div>
  2980. <div
  2981. class="chapter_upload_ic_r"
  2982. style="position: absolute"
  2983. @click.stop="
  2984. deleteChapterData(
  2985. $event,
  2986. unitIndex,
  2987. index,
  2988. index1,
  2989. itemTaskIndex
  2990. )
  2991. "
  2992. >
  2993. <div></div>
  2994. </div>
  2995. </div>
  2996. <div class="chapter_upload_n">
  2997. <span
  2998. style="
  2999. font-size: 14px;
  3000. color: rgb(109, 109, 109);
  3001. height: 14px;
  3002. line-height: 12px;
  3003. "
  3004. v-if="
  3005. item1.type == 2 ||
  3006. item1.type == 3 ||
  3007. item1.type == 7
  3008. "
  3009. >{{ item1.text }}-</span
  3010. >
  3011. <input
  3012. v-if="
  3013. item1.type == 2 ||
  3014. item1.type == 3 ||
  3015. item1.type == 7
  3016. "
  3017. :placeholder="item1.name"
  3018. @change="
  3019. updataVideoT(
  3020. $event,
  3021. unitIndex,
  3022. chapterIndex,
  3023. index1
  3024. )
  3025. "
  3026. style="
  3027. border: none;
  3028. outline: none;
  3029. width: 80%;
  3030. minwidth: 215px;
  3031. z-index: 99;
  3032. font-size: 14px;
  3033. white-space: nowrap;
  3034. overflow: hidden;
  3035. text-overflow: ellipsis;
  3036. "
  3037. />
  3038. <input
  3039. :placeholder="item1.name"
  3040. v-if="item1.type == 6"
  3041. style="
  3042. border: none;
  3043. outline: none;
  3044. width: 80%;
  3045. white-space: nowrap;
  3046. overflow: hidden;
  3047. text-overflow: ellipsis;
  3048. "
  3049. readonly="true"
  3050. @click="selectAttText(itemTaskIndex, index1)"
  3051. />
  3052. <input
  3053. :placeholder="
  3054. item1.title ? item1.title : '链接'
  3055. "
  3056. v-if="item1.type == 8"
  3057. style="
  3058. border: none;
  3059. outline: none;
  3060. width: 80%;
  3061. white-space: nowrap;
  3062. overflow: hidden;
  3063. text-overflow: ellipsis;
  3064. "
  3065. readonly="true"
  3066. @click="selectLine(itemTaskIndex, index1)"
  3067. />
  3068. <div
  3069. class="chapter_upload_ud"
  3070. style="z-index: 99"
  3071. >
  3072. <div
  3073. class="chapter_upload_up"
  3074. @click="
  3075. upCd(
  3076. $event,
  3077. unitIndex,
  3078. index,
  3079. itemTaskIndex,
  3080. index1
  3081. )
  3082. "
  3083. ></div>
  3084. <div
  3085. class="chapter_upload_down"
  3086. @click="
  3087. downCd(
  3088. $event,
  3089. unitIndex,
  3090. index,
  3091. itemTaskIndex,
  3092. index1
  3093. )
  3094. "
  3095. ></div>
  3096. </div>
  3097. </div>
  3098. </div>
  3099. </div>
  3100. </div>
  3101. </div>
  3102. </div>
  3103. <div class="add_info_box" style="margin: 10px 0 0">
  3104. <button class="info_btn" @click="addImg($event)">
  3105. <span style="color: red">*</span>
  3106. 教学设计
  3107. <input
  3108. type="file"
  3109. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  3110. style="display: none"
  3111. v-if="inputShow"
  3112. @change="
  3113. beforeUpload3(
  3114. $event,
  3115. unitIndex,
  3116. 3,
  3117. itemTaskIndex,
  3118. '教学设计'
  3119. )
  3120. "
  3121. />
  3122. </button>
  3123. <button class="info_btn" @click="addImg($event)">
  3124. <span style="color: red">*</span>
  3125. 教学课件
  3126. <input
  3127. type="file"
  3128. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  3129. style="display: none"
  3130. v-if="inputShow"
  3131. @change="
  3132. beforeUpload3(
  3133. $event,
  3134. unitIndex,
  3135. 3,
  3136. itemTaskIndex,
  3137. '教学课件'
  3138. )
  3139. "
  3140. />
  3141. </button>
  3142. <button class="info_btn" @click="addImg($event)">
  3143. 教学视频
  3144. <input
  3145. type="file"
  3146. accept="video/mp4, video/quicktime, video/x-msvideo"
  3147. style="display: none"
  3148. v-if="inputShow"
  3149. @change="
  3150. beforeUpload3(
  3151. $event,
  3152. unitIndex,
  3153. 2,
  3154. itemTaskIndex,
  3155. '教学视频'
  3156. )
  3157. "
  3158. />
  3159. </button>
  3160. <button class="info_btn" @click="addImg($event)">
  3161. 教学音频
  3162. <input
  3163. type="file"
  3164. accept="audio/*"
  3165. style="display: none"
  3166. v-if="inputShow"
  3167. @change="
  3168. beforeUpload3(
  3169. $event,
  3170. unitIndex,
  3171. 2,
  3172. itemTaskIndex,
  3173. '教学音频'
  3174. )
  3175. "
  3176. />
  3177. </button>
  3178. <button class="info_btn" @click="addImg($event)">
  3179. 学习单
  3180. <input
  3181. type="file"
  3182. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  3183. style="display: none"
  3184. v-if="inputShow"
  3185. @change="
  3186. beforeUpload3(
  3187. $event,
  3188. unitIndex,
  3189. 3,
  3190. itemTaskIndex,
  3191. '学习单'
  3192. )
  3193. "
  3194. />
  3195. </button>
  3196. </div>
  3197. <div
  3198. v-if="
  3199. unitJson[unitIndex].chapterInfo[0].taskJson[
  3200. itemTaskIndex
  3201. ].proVisible
  3202. "
  3203. class="mask"
  3204. >
  3205. <div class="progressBox">
  3206. <!-- <div id="closePro" class="closeCss">
  3207. <img src="../../../../assets/icon/close.png" alt />
  3208. </div> -->
  3209. <div class="lbox">
  3210. <img
  3211. src="../../../assets/loading.gif"
  3212. />上传中,请稍后
  3213. </div>
  3214. <div style="margin-bottom: 10px">
  3215. <span
  3216. >{{
  3217. unitJson[unitIndex].chapterInfo[0].taskJson[
  3218. itemTaskIndex
  3219. ].isFinishSize
  3220. }}M</span
  3221. >
  3222. /
  3223. <span
  3224. >{{
  3225. unitJson[unitIndex].chapterInfo[0].taskJson[
  3226. itemTaskIndex
  3227. ].isAllSize
  3228. }}M</span
  3229. >
  3230. </div>
  3231. <el-progress
  3232. :text-inside="true"
  3233. :stroke-width="20"
  3234. :percentage="
  3235. unitJson[unitIndex].chapterInfo[0].taskJson[
  3236. itemTaskIndex
  3237. ].progress
  3238. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  3239. itemTaskIndex
  3240. ].progress
  3241. : 0
  3242. "
  3243. style="width: 80%"
  3244. ></el-progress>
  3245. </div>
  3246. </div>
  3247. </div>
  3248. <div
  3249. v-if="
  3250. unitJson[unitIndex].easy != 3 &&
  3251. !(unitJson[unitIndex].easy == 5 && itemTask.taskType == 1)
  3252. "
  3253. style="
  3254. flex-direction: row;
  3255. justify-content: flex-start;
  3256. align-items: center;
  3257. padding: 0 0 0 30px;
  3258. paddint-top: 10px !important;
  3259. "
  3260. >
  3261. <div
  3262. style="
  3263. display: flex;
  3264. flex-direction: row;
  3265. align-items: center;
  3266. margin-bottom: 20px;
  3267. "
  3268. >
  3269. <div class="lineTitle">
  3270. {{
  3271. !unitJson[unitIndex].easy ||
  3272. unitJson[unitIndex].easy == 6 ||
  3273. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  3274. ? "练习内容"
  3275. : "评价内容"
  3276. }}
  3277. </div>
  3278. <div class="line" style="width: 90%"></div>
  3279. </div>
  3280. </div>
  3281. <div
  3282. v-if="
  3283. unitJson[unitIndex].easy == 6 || !unitJson[unitIndex].easy
  3284. "
  3285. class="toolChoose"
  3286. style="padding: 0 0 0 30px"
  3287. >
  3288. <div class="tools">
  3289. <div
  3290. class="leftTools"
  3291. style="
  3292. width: 95%;
  3293. padding: 0 0 15px 0;
  3294. border-bottom: 1px solid #efefef;
  3295. margin-bottom: 15px;
  3296. "
  3297. v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  3298. :key="toolIndex"
  3299. >
  3300. <div>
  3301. <textarea
  3302. rows="3"
  3303. type="text"
  3304. placeholder="添加工具描述"
  3305. class="binfo_input"
  3306. style="margin: 0 0 20px 0; width: 71.5% !important"
  3307. v-model="itemTool.toolDetail"
  3308. ></textarea>
  3309. </div>
  3310. <div
  3311. style="
  3312. display: flex;
  3313. flex-direction: row;
  3314. align-items: baseline;
  3315. flex-wrap: nowrap;
  3316. justify-content: flex-start;
  3317. position: relative;
  3318. "
  3319. >
  3320. <div style="margin-right: 20px; font-weight: bold">
  3321. 步骤 {{ toolIndex + 1 }} :
  3322. </div>
  3323. <div class="chooseWho">
  3324. <!-- <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
  3325. " @click="(itemTool.toolType = 0), $forceUpdate()">
  3326. 互动类
  3327. </div> -->
  3328. <div
  3329. :class="
  3330. itemTool.toolType == 1 ? 'isChooseActive' : ''
  3331. "
  3332. @click="(itemTool.toolType = 1), $forceUpdate()"
  3333. >
  3334. 思维类
  3335. </div>
  3336. <div
  3337. :class="
  3338. itemTool.toolType == 6 ? 'isChooseActive' : ''
  3339. "
  3340. @click="(itemTool.toolType = 6), $forceUpdate()"
  3341. >
  3342. 协作类
  3343. </div>
  3344. <div
  3345. :class="
  3346. itemTool.toolType == 2 ? 'isChooseActive' : ''
  3347. "
  3348. @click="(itemTool.toolType = 2), $forceUpdate()"
  3349. >
  3350. 测评类
  3351. </div>
  3352. <div
  3353. :class="
  3354. itemTool.toolType == 7 ? 'isChooseActive' : ''
  3355. "
  3356. @click="(itemTool.toolType = 7), $forceUpdate()"
  3357. >
  3358. 评价类
  3359. </div>
  3360. <div
  3361. :class="
  3362. itemTool.toolType == 3 ? 'isChooseActive' : ''
  3363. "
  3364. @click="(itemTool.toolType = 3), $forceUpdate()"
  3365. >
  3366. 学科类
  3367. </div>
  3368. <!-- <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
  3369. " @click="(itemTool.toolType = 5), $forceUpdate()">
  3370. 学科类
  3371. </div>
  3372. <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  3373. " @click="(itemTool.toolType = 4), $forceUpdate()">
  3374. 其他
  3375. </div> -->
  3376. </div>
  3377. <div
  3378. class="remove"
  3379. @click="deleteTool(itemTaskIndex, toolIndex)"
  3380. v-if="itemTask.toolChoose.length > 1"
  3381. style="position: absolute; right: 55px"
  3382. ></div>
  3383. </div>
  3384. <div style="min-height: 163px">
  3385. <div class="toolSort" v-if="itemTool.toolType == 0">
  3386. <!-- <div class="tool">
  3387. <div
  3388. class="whiteBIcon"
  3389. @click="addTools(8, itemTaskIndex, toolIndex)"
  3390. >
  3391. <img src="../../../assets/icon/secondToolList/library.png" alt />
  3392. <div style="margin: 5px 0">素材库</div>
  3393. </div>
  3394. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  3395. <img
  3396. src="../../../assets/icon/checkNo.png"
  3397. alt
  3398. v-if="itemTool.tool.indexOf(8) == -1"
  3399. />
  3400. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  3401. alt /><span>已选择</span></div>
  3402. </div>
  3403. </div>-->
  3404. <!-- <div class="tool">
  3405. <div
  3406. class="whiteBIcon"
  3407. @click="addTools(17, itemTaskIndex, toolIndex)"
  3408. >
  3409. <img
  3410. src="../../../assets/icon/secondToolList/library.png"
  3411. alt
  3412. />
  3413. <div style="margin: 5px 0">学习资料</div>
  3414. </div>
  3415. <div
  3416. class="check"
  3417. @click="addTools(17, itemTaskIndex, toolIndex)"
  3418. >
  3419. <img
  3420. src="../../../assets/icon/checkNo.png"
  3421. alt
  3422. v-if="itemTool.tool.indexOf(17) == -1"
  3423. />
  3424. <img
  3425. src="../../../assets/icon/checkedIs.png"
  3426. alt
  3427. v-else
  3428. />
  3429. </div>10
  3430. </div> -->
  3431. <div class="tool">
  3432. <div
  3433. class="whiteBIcon"
  3434. @click="openTools(itemTaskIndex, 10, toolIndex)"
  3435. >
  3436. <img
  3437. src="../../../assets/icon/thirdToolList/time.png"
  3438. alt
  3439. />
  3440. <div style="margin: 5px 0">倒计时</div>
  3441. </div>
  3442. <div
  3443. class="check"
  3444. @click="addTools(10, itemTaskIndex, toolIndex)"
  3445. >
  3446. <img
  3447. src="../../../assets/icon/checkNo.png"
  3448. alt
  3449. v-if="itemTool.tool.indexOf(10) == -1"
  3450. />
  3451. <div class="checkDiv" v-else>
  3452. <img
  3453. src="../../../assets/icon/checkedIs.png"
  3454. alt
  3455. /><span>已选择</span>
  3456. </div>
  3457. </div>
  3458. </div>
  3459. <!-- <div class="tool">
  3460. <div
  3461. class="whiteBIcon"
  3462. @click="openTools(itemTaskIndex, 49, toolIndex)"
  3463. >
  3464. <img
  3465. src="../../../assets/icon/fourthToolList/group.png"
  3466. alt
  3467. />
  3468. <div style="margin: 5px 0">学生分组</div>
  3469. </div>
  3470. <div
  3471. class="check"
  3472. @click="addTools(49, itemTaskIndex, toolIndex)"
  3473. >
  3474. <img
  3475. src="../../../assets/icon/checkNo.png"
  3476. alt
  3477. v-if="itemTool.tool.indexOf(49) == -1"
  3478. />
  3479. <div class="checkDiv" v-else>
  3480. <img
  3481. src="../../../assets/icon/checkedIs.png"
  3482. alt
  3483. /><span>已选择</span>
  3484. </div>
  3485. </div>
  3486. </div> -->
  3487. <div class="tool">
  3488. <div
  3489. class="whiteBIcon"
  3490. @click="openTools(itemTaskIndex, 62, toolIndex)"
  3491. >
  3492. <img
  3493. src="../../../assets/icon/fourthToolList/interVideo.png"
  3494. alt
  3495. />
  3496. <div style="margin: 5px 0">交互视频</div>
  3497. </div>
  3498. <div
  3499. class="check"
  3500. @click="addTools(62, itemTaskIndex, toolIndex)"
  3501. >
  3502. <img
  3503. src="../../../assets/icon/checkNo.png"
  3504. alt
  3505. v-if="itemTool.tool.indexOf(62) == -1"
  3506. />
  3507. <div class="checkDiv" v-else>
  3508. <img
  3509. src="../../../assets/icon/checkedIs.png"
  3510. alt
  3511. /><span>已选择</span>
  3512. </div>
  3513. </div>
  3514. </div>
  3515. </div>
  3516. <div class="toolSort" v-if="itemTool.toolType == 1">
  3517. <div class="tool">
  3518. <div
  3519. class="whiteBIcon"
  3520. @click="addTools(7, itemTaskIndex, toolIndex)"
  3521. >
  3522. <img
  3523. src="../../../assets/icon/secondToolList/mindNetwork.png"
  3524. alt
  3525. />
  3526. <div style="margin: 5px 0">思维网格</div>
  3527. </div>
  3528. <div
  3529. class="check"
  3530. @click="addTools(7, itemTaskIndex, toolIndex)"
  3531. >
  3532. <img
  3533. src="../../../assets/icon/checkNo.png"
  3534. alt
  3535. v-if="itemTool.tool.indexOf(7) == -1"
  3536. />
  3537. <div class="checkDiv" v-else>
  3538. <img
  3539. src="../../../assets/icon/checkedIs.png"
  3540. alt
  3541. /><span>已选择</span>
  3542. </div>
  3543. </div>
  3544. </div>
  3545. <div class="tool">
  3546. <div
  3547. class="whiteBIcon"
  3548. @click="openTools(itemTaskIndex, 1, toolIndex)"
  3549. >
  3550. <img
  3551. src="../../../assets/icon/secondToolList/whiteBoard.png"
  3552. alt
  3553. />
  3554. <div style="margin: 5px 0">电子白板</div>
  3555. </div>
  3556. <div
  3557. class="check"
  3558. @click="addTools(1, itemTaskIndex, toolIndex)"
  3559. >
  3560. <img
  3561. src="../../../assets/icon/checkNo.png"
  3562. alt
  3563. v-if="itemTool.tool.indexOf(1) == -1"
  3564. />
  3565. <div class="checkDiv" v-else>
  3566. <img
  3567. src="../../../assets/icon/checkedIs.png"
  3568. alt
  3569. /><span>已选择</span>
  3570. </div>
  3571. </div>
  3572. </div>
  3573. <!-- <div class="tool">
  3574. <div
  3575. class="whiteBIcon"
  3576. @click="addTools(2, itemTaskIndex, toolIndex)"
  3577. >
  3578. <img
  3579. src="../../../assets/icon/secondToolList/note.png"
  3580. alt
  3581. />
  3582. <div style="margin: 5px 0">便签</div>
  3583. </div>
  3584. <div
  3585. class="check"
  3586. @click="addTools(2, itemTaskIndex, toolIndex)"
  3587. >
  3588. <img
  3589. src="../../../assets/icon/checkNo.png"
  3590. alt
  3591. v-if="itemTool.tool.indexOf(2) == -1"
  3592. />
  3593. <div class="checkDiv" v-else>
  3594. <img
  3595. src="../../../assets/icon/checkedIs.png"
  3596. alt
  3597. /><span>已选择</span>
  3598. </div>
  3599. </div>
  3600. </div> -->
  3601. <!-- <div class="tool">
  3602. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  3603. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  3604. <div style="margin: 5px 0">协同文档</div>
  3605. </div>
  3606. <div
  3607. class="check"
  3608. @click="addTools(6, itemTaskIndex, toolIndex)"
  3609. >
  3610. <img
  3611. src="../../../assets/icon/checkNo.png"
  3612. alt
  3613. v-if="itemTool.tool.indexOf(6) == -1"
  3614. />
  3615. <div class="checkDiv" v-else>
  3616. <img
  3617. src="../../../assets/icon/checkedIs.png"
  3618. alt
  3619. /><span>已选择</span>
  3620. </div>
  3621. </div>
  3622. </div> -->
  3623. <div class="tool">
  3624. <div
  3625. class="whiteBIcon"
  3626. @click="openTools(itemTaskIndex, 52, toolIndex)"
  3627. >
  3628. <img
  3629. src="../../../assets/icon/fourthToolList/text.png"
  3630. alt
  3631. />
  3632. <div style="margin: 5px 0">文档</div>
  3633. </div>
  3634. <div
  3635. class="check"
  3636. @click="addTools(52, itemTaskIndex, toolIndex)"
  3637. >
  3638. <img
  3639. src="../../../assets/icon/checkNo.png"
  3640. alt
  3641. v-if="itemTool.tool.indexOf(52) == -1"
  3642. />
  3643. <div class="checkDiv" v-else>
  3644. <img
  3645. src="../../../assets/icon/checkedIs.png"
  3646. alt
  3647. /><span>已选择</span>
  3648. </div>
  3649. </div>
  3650. </div>
  3651. <div class="tool">
  3652. <div
  3653. class="whiteBIcon"
  3654. @click="openTools(itemTaskIndex, 3, toolIndex)"
  3655. >
  3656. <img
  3657. src="../../../assets/icon/secondToolList/mindMapping.png"
  3658. alt
  3659. />
  3660. <div style="margin: 5px 0">思维导图</div>
  3661. </div>
  3662. <div
  3663. class="check"
  3664. @click="addTools(3, itemTaskIndex, toolIndex)"
  3665. >
  3666. <img
  3667. src="../../../assets/icon/checkNo.png"
  3668. alt
  3669. v-if="itemTool.tool.indexOf(3) == -1"
  3670. />
  3671. <div class="checkDiv" v-else>
  3672. <img
  3673. src="../../../assets/icon/checkedIs.png"
  3674. alt
  3675. /><span>已选择</span>
  3676. </div>
  3677. </div>
  3678. </div>
  3679. <div class="tool">
  3680. <div
  3681. class="whiteBIcon"
  3682. @click="openTools(itemTaskIndex, 48, toolIndex)"
  3683. >
  3684. <img
  3685. src="../../../assets/icon/fourthToolList/table.png"
  3686. alt
  3687. />
  3688. <div style="margin: 5px 0">表格</div>
  3689. </div>
  3690. <div
  3691. class="check"
  3692. @click="addTools(48, itemTaskIndex, toolIndex)"
  3693. >
  3694. <img
  3695. src="../../../assets/icon/checkNo.png"
  3696. alt
  3697. v-if="itemTool.tool.indexOf(48) == -1"
  3698. />
  3699. <div class="checkDiv" v-else>
  3700. <img
  3701. src="../../../assets/icon/checkedIs.png"
  3702. alt
  3703. /><span>已选择</span>
  3704. </div>
  3705. </div>
  3706. </div>
  3707. </div>
  3708. <div class="toolSort" v-if="itemTool.toolType == 6">
  3709. <div class="tool">
  3710. <div
  3711. class="whiteBIcon"
  3712. @click="openTools(itemTaskIndex, 49, toolIndex)"
  3713. >
  3714. <img
  3715. src="../../../assets/icon/fourthToolList/group.png"
  3716. alt
  3717. />
  3718. <div style="margin: 5px 0">学生分组</div>
  3719. </div>
  3720. <div
  3721. class="check"
  3722. @click="addTools(49, itemTaskIndex, toolIndex)"
  3723. >
  3724. <img
  3725. src="../../../assets/icon/checkNo.png"
  3726. alt
  3727. v-if="itemTool.tool.indexOf(49) == -1"
  3728. />
  3729. <div class="checkDiv" v-else>
  3730. <img
  3731. src="../../../assets/icon/checkedIs.png"
  3732. alt
  3733. /><span>已选择</span>
  3734. </div>
  3735. </div>
  3736. </div>
  3737. </div>
  3738. <div class="toolSort" v-if="itemTool.toolType == 2">
  3739. <!-- <div class="tool">
  3740. <div
  3741. class="whiteBIcon"
  3742. @click="addTools(5, itemTaskIndex, toolIndex)"
  3743. >
  3744. <img
  3745. src="../../../assets/icon/thirdToolList/score.png"
  3746. alt
  3747. />
  3748. <div style="margin: 5px 0">量规评分</div>
  3749. </div>
  3750. <div
  3751. class="check"
  3752. @click="addTools(5, itemTaskIndex, toolIndex)"
  3753. >
  3754. <img
  3755. src="../../../assets/icon/checkNo.png"
  3756. alt
  3757. v-if="itemTool.tool.indexOf(5) == -1"
  3758. />
  3759. <img
  3760. src="../../../assets/icon/checkedIs.png"
  3761. alt
  3762. v-else
  3763. />
  3764. </div>
  3765. </div>-->
  3766. <div class="tool">
  3767. <div
  3768. class="whiteBIcon"
  3769. @click="openTools(itemTaskIndex, 4, toolIndex)"
  3770. >
  3771. <img
  3772. src="../../../assets/icon/thirdToolList/ask.png"
  3773. alt
  3774. />
  3775. <div style="margin: 5px 0">问卷调查</div>
  3776. </div>
  3777. <div
  3778. class="check"
  3779. @click="addTools(4, itemTaskIndex, toolIndex)"
  3780. >
  3781. <img
  3782. src="../../../assets/icon/checkNo.png"
  3783. alt
  3784. v-if="itemTool.tool.indexOf(4) == -1"
  3785. />
  3786. <div class="checkDiv" v-else>
  3787. <img
  3788. src="../../../assets/icon/checkedIs.png"
  3789. alt
  3790. /><span>已选择</span>
  3791. </div>
  3792. </div>
  3793. </div>
  3794. <div class="tool">
  3795. <div
  3796. class="whiteBIcon"
  3797. @click="openTools(itemTaskIndex, 45, toolIndex)"
  3798. >
  3799. <img
  3800. src="../../../assets/icon/thirdToolList/choose.png"
  3801. alt
  3802. />
  3803. <div style="margin: 5px 0">选择题</div>
  3804. </div>
  3805. <div
  3806. class="check"
  3807. @click="addTools(45, itemTaskIndex, toolIndex)"
  3808. >
  3809. <img
  3810. src="../../../assets/icon/checkNo.png"
  3811. alt
  3812. v-if="itemTool.tool.indexOf(45) == -1"
  3813. />
  3814. <div class="checkDiv" v-else>
  3815. <img
  3816. src="../../../assets/icon/checkedIs.png"
  3817. alt
  3818. /><span>已选择</span>
  3819. </div>
  3820. </div>
  3821. </div>
  3822. <div class="tool">
  3823. <div
  3824. class="whiteBIcon"
  3825. @click="openTools(itemTaskIndex, 15, toolIndex)"
  3826. >
  3827. <img
  3828. src="../../../assets/icon/thirdToolList/answer.png"
  3829. alt
  3830. />
  3831. <div style="margin: 5px 0">问答工具</div>
  3832. </div>
  3833. <div
  3834. class="check"
  3835. @click="addTools(15, itemTaskIndex, toolIndex)"
  3836. >
  3837. <img
  3838. src="../../../assets/icon/checkNo.png"
  3839. alt
  3840. v-if="itemTool.tool.indexOf(15) == -1"
  3841. />
  3842. <div class="checkDiv" v-else>
  3843. <img
  3844. src="../../../assets/icon/checkedIs.png"
  3845. alt
  3846. /><span>已选择</span>
  3847. </div>
  3848. </div>
  3849. </div>
  3850. <div class="tool">
  3851. <div
  3852. class="whiteBIcon"
  3853. @click="addTools(16, itemTaskIndex, toolIndex)"
  3854. >
  3855. <img
  3856. src="../../../assets/icon/thirdToolList/work.png"
  3857. alt
  3858. />
  3859. <div style="margin: 5px 0">作业提交</div>
  3860. </div>
  3861. <div
  3862. class="check"
  3863. @click="addTools(16, itemTaskIndex, toolIndex)"
  3864. >
  3865. <img
  3866. src="../../../assets/icon/checkNo.png"
  3867. alt
  3868. v-if="itemTool.tool.indexOf(16) == -1"
  3869. />
  3870. <div class="checkDiv" v-else>
  3871. <img
  3872. src="../../../assets/icon/checkedIs.png"
  3873. alt
  3874. /><span>已选择</span>
  3875. </div>
  3876. </div>
  3877. </div>
  3878. <div class="tool">
  3879. <div
  3880. class="whiteBIcon"
  3881. @click="addTools(50, itemTaskIndex, toolIndex)"
  3882. >
  3883. <img
  3884. src="../../../assets/icon/thirdToolList/plwork.png"
  3885. alt
  3886. />
  3887. <div style="margin: 5px 0">批量上传</div>
  3888. </div>
  3889. <div
  3890. class="check"
  3891. @click="addTools(50, itemTaskIndex, toolIndex)"
  3892. >
  3893. <img
  3894. src="../../../assets/icon/checkNo.png"
  3895. alt
  3896. v-if="itemTool.tool.indexOf(50) == -1"
  3897. />
  3898. <div class="checkDiv" v-else>
  3899. <img
  3900. src="../../../assets/icon/checkedIs.png"
  3901. alt
  3902. /><span>已选择</span>
  3903. </div>
  3904. </div>
  3905. </div>
  3906. <!-- <div class="tool">
  3907. <div
  3908. class="whiteBIcon"
  3909. @click="openTools(itemTaskIndex, 40, toolIndex)"
  3910. >
  3911. <img
  3912. src="../../../assets/icon/thirdToolList/eval.png"
  3913. alt
  3914. />
  3915. <div style="margin: 5px 0">个人评价</div>
  3916. </div>
  3917. <div
  3918. class="check"
  3919. @click="addTools(40, itemTaskIndex, toolIndex)"
  3920. >
  3921. <img
  3922. src="../../../assets/icon/checkNo.png"
  3923. alt
  3924. v-if="itemTool.tool.indexOf(40) == -1"
  3925. />
  3926. <div class="checkDiv" v-else>
  3927. <img
  3928. src="../../../assets/icon/checkedIs.png"
  3929. alt
  3930. /><span>已选择</span>
  3931. </div>
  3932. </div>
  3933. </div> -->
  3934. <div class="tool">
  3935. <div
  3936. class="whiteBIcon"
  3937. @click="openTools(itemTaskIndex, 41, toolIndex)"
  3938. >
  3939. <img
  3940. src="../../../assets/icon/thirdToolList/select.png"
  3941. alt
  3942. />
  3943. <div style="margin: 5px 0">选择填空</div>
  3944. </div>
  3945. <div
  3946. class="check"
  3947. @click="addTools(41, itemTaskIndex, toolIndex)"
  3948. >
  3949. <img
  3950. src="../../../assets/icon/checkNo.png"
  3951. alt
  3952. v-if="itemTool.tool.indexOf(41) == -1"
  3953. />
  3954. <div class="checkDiv" v-else>
  3955. <img
  3956. src="../../../assets/icon/checkedIs.png"
  3957. alt
  3958. /><span>已选择</span>
  3959. </div>
  3960. </div>
  3961. </div>
  3962. <div class="tool">
  3963. <div
  3964. class="whiteBIcon"
  3965. @click="openTools(itemTaskIndex, 47, toolIndex)"
  3966. >
  3967. <img
  3968. src="../../../assets/icon/fourthToolList/conSentences.png"
  3969. alt
  3970. />
  3971. <div style="margin: 5px 0">连词成句</div>
  3972. </div>
  3973. <div
  3974. class="check"
  3975. @click="addTools(47, itemTaskIndex, toolIndex)"
  3976. >
  3977. <img
  3978. src="../../../assets/icon/checkNo.png"
  3979. alt
  3980. v-if="itemTool.tool.indexOf(47) == -1"
  3981. />
  3982. <div class="checkDiv" v-else>
  3983. <img
  3984. src="../../../assets/icon/checkedIs.png"
  3985. alt
  3986. /><span>已选择</span>
  3987. </div>
  3988. </div>
  3989. </div>
  3990. <!-- <div class="tool">
  3991. <div
  3992. class="whiteBIcon"
  3993. @click="openTools(itemTaskIndex, 42, toolIndex)"
  3994. >
  3995. <img
  3996. src="../../../assets/icon/thirdToolList/mp3.png"
  3997. alt
  3998. />
  3999. <div style="margin: 5px 0">上传音频</div>
  4000. </div>
  4001. <div
  4002. class="check"
  4003. @click="addTools(42, itemTaskIndex, toolIndex)"
  4004. >
  4005. <img
  4006. src="../../../assets/icon/checkNo.png"
  4007. alt
  4008. v-if="itemTool.tool.indexOf(42) == -1"
  4009. />
  4010. <img
  4011. src="../../../assets/icon/checkedIs.png"
  4012. alt
  4013. v-else
  4014. />
  4015. </div>
  4016. </div> -->
  4017. </div>
  4018. <div class="toolSort" v-if="itemTool.toolType == 3">
  4019. <div class="tool">
  4020. <div
  4021. class="whiteBIcon"
  4022. @click="addTools(18, itemTaskIndex, toolIndex)"
  4023. >
  4024. <img
  4025. src="../../../assets/icon/thirdToolList/trainPlatform.png"
  4026. alt
  4027. />
  4028. <div style="margin: 5px 0">训练平台</div>
  4029. </div>
  4030. <div
  4031. class="check"
  4032. @click="addTools(18, itemTaskIndex, toolIndex)"
  4033. >
  4034. <img
  4035. src="../../../assets/icon/checkNo.png"
  4036. alt
  4037. v-if="itemTool.tool.indexOf(18) == -1"
  4038. />
  4039. <div class="checkDiv" v-else>
  4040. <img
  4041. src="../../../assets/icon/checkedIs.png"
  4042. alt
  4043. /><span>已选择</span>
  4044. </div>
  4045. </div>
  4046. </div>
  4047. <div class="tool">
  4048. <div
  4049. class="whiteBIcon"
  4050. @click="addTools(21, itemTaskIndex, toolIndex)"
  4051. >
  4052. <img
  4053. src="../../../assets/icon/fourthToolList/program.png"
  4054. alt
  4055. />
  4056. <div style="margin: 5px 0">编程平台</div>
  4057. </div>
  4058. <div
  4059. class="check"
  4060. @click="addTools(21, itemTaskIndex, toolIndex)"
  4061. >
  4062. <img
  4063. src="../../../assets/icon/checkNo.png"
  4064. alt
  4065. v-if="itemTool.tool.indexOf(21) == -1"
  4066. />
  4067. <div class="checkDiv" v-else>
  4068. <img
  4069. src="../../../assets/icon/checkedIs.png"
  4070. alt
  4071. /><span>已选择</span>
  4072. </div>
  4073. </div>
  4074. </div>
  4075. <div class="tool">
  4076. <div
  4077. class="whiteBIcon"
  4078. @click="addTools(22, itemTaskIndex, toolIndex)"
  4079. >
  4080. <img
  4081. src="../../../assets/icon/fourthToolList/AIprogram2.png"
  4082. alt
  4083. />
  4084. <div style="margin: 5px 0">AI体验</div>
  4085. </div>
  4086. <div
  4087. class="check"
  4088. @click="addTools(22, itemTaskIndex, toolIndex)"
  4089. >
  4090. <img
  4091. src="../../../assets/icon/checkNo.png"
  4092. alt
  4093. v-if="itemTool.tool.indexOf(22) == -1"
  4094. />
  4095. <div class="checkDiv" v-else>
  4096. <img
  4097. src="../../../assets/icon/checkedIs.png"
  4098. alt
  4099. /><span>已选择</span>
  4100. </div>
  4101. </div>
  4102. </div>
  4103. <div class="tool">
  4104. <div
  4105. class="whiteBIcon"
  4106. @click="addTools(23, itemTaskIndex, toolIndex)"
  4107. >
  4108. <img
  4109. src="../../../assets/icon/fourthToolList/Pythonprogram.png"
  4110. alt
  4111. />
  4112. <div style="margin: 5px 0">Python</div>
  4113. </div>
  4114. <div
  4115. class="check"
  4116. @click="addTools(23, itemTaskIndex, toolIndex)"
  4117. >
  4118. <img
  4119. src="../../../assets/icon/checkNo.png"
  4120. alt
  4121. v-if="itemTool.tool.indexOf(23) == -1"
  4122. />
  4123. <div class="checkDiv" v-else>
  4124. <img
  4125. src="../../../assets/icon/checkedIs.png"
  4126. alt
  4127. /><span>已选择</span>
  4128. </div>
  4129. </div>
  4130. </div>
  4131. <div class="tool">
  4132. <div
  4133. class="whiteBIcon"
  4134. @click="addTools(24, itemTaskIndex, toolIndex)"
  4135. >
  4136. <img
  4137. src="../../../assets/icon/fourthToolList/AIprogram.png"
  4138. alt
  4139. />
  4140. <div style="margin: 5px 0">AI平台</div>
  4141. </div>
  4142. <div
  4143. class="check"
  4144. @click="addTools(24, itemTaskIndex, toolIndex)"
  4145. >
  4146. <img
  4147. src="../../../assets/icon/checkNo.png"
  4148. alt
  4149. v-if="itemTool.tool.indexOf(24) == -1"
  4150. />
  4151. <div class="checkDiv" v-else>
  4152. <img
  4153. src="../../../assets/icon/checkedIs.png"
  4154. alt
  4155. /><span>已选择</span>
  4156. </div>
  4157. </div>
  4158. </div>
  4159. <div class="tool">
  4160. <div
  4161. class="whiteBIcon"
  4162. @click="addTools(32, itemTaskIndex, toolIndex)"
  4163. >
  4164. <img
  4165. src="../../../assets/icon/thirdToolList/code.png"
  4166. alt
  4167. />
  4168. <div style="margin: 5px 0">源码编辑</div>
  4169. </div>
  4170. <div
  4171. class="check"
  4172. @click="addTools(32, itemTaskIndex, toolIndex)"
  4173. >
  4174. <img
  4175. src="../../../assets/icon/checkNo.png"
  4176. alt
  4177. v-if="itemTool.tool.indexOf(32) == -1"
  4178. />
  4179. <div class="checkDiv" v-else>
  4180. <img
  4181. src="../../../assets/icon/checkedIs.png"
  4182. alt
  4183. /><span>已选择</span>
  4184. </div>
  4185. </div>
  4186. </div>
  4187. <div class="tool">
  4188. <div
  4189. class="whiteBIcon"
  4190. @click="openTools(itemTaskIndex, 57, toolIndex)"
  4191. >
  4192. <img
  4193. src="../../../assets/icon/fourthToolList/cocopi.png"
  4194. alt
  4195. />
  4196. <div style="margin: 5px 0">CocoPi</div>
  4197. </div>
  4198. <div
  4199. class="check"
  4200. @click="addTools(57, itemTaskIndex, toolIndex)"
  4201. >
  4202. <img
  4203. src="../../../assets/icon/checkNo.png"
  4204. alt
  4205. v-if="itemTool.tool.indexOf(57) == -1"
  4206. />
  4207. <div class="checkDiv" v-else>
  4208. <img
  4209. src="../../../assets/icon/checkedIs.png"
  4210. alt
  4211. /><span>已选择</span>
  4212. </div>
  4213. </div>
  4214. </div>
  4215. <div class="tool">
  4216. <div
  4217. class="whiteBIcon"
  4218. @click="addTools(63, itemTaskIndex, toolIndex)"
  4219. >
  4220. <img
  4221. src="../../../assets/icon/fourthToolList/Wood.png"
  4222. alt
  4223. />
  4224. <div style="margin: 5px 0">海龟编程</div>
  4225. </div>
  4226. <div
  4227. class="check"
  4228. @click="addTools(63, itemTaskIndex, toolIndex)"
  4229. >
  4230. <img
  4231. src="../../../assets/icon/checkNo.png"
  4232. alt
  4233. v-if="itemTool.tool.indexOf(63) == -1"
  4234. />
  4235. <div class="checkDiv" v-else>
  4236. <img
  4237. src="../../../assets/icon/checkedIs.png"
  4238. alt
  4239. /><span>已选择</span>
  4240. </div>
  4241. </div>
  4242. </div>
  4243. </div>
  4244. <div class="toolSort" v-if="itemTool.toolType == 7">
  4245. <div class="tool">
  4246. <div
  4247. class="whiteBIcon"
  4248. @click="openTools(itemTaskIndex, 40, toolIndex)"
  4249. >
  4250. <img
  4251. src="../../../assets/icon/thirdToolList/eval.png"
  4252. alt
  4253. />
  4254. <div style="margin: 5px 0">个人评价</div>
  4255. </div>
  4256. <div
  4257. class="check"
  4258. @click="addTools(40, itemTaskIndex, toolIndex)"
  4259. >
  4260. <img
  4261. src="../../../assets/icon/checkNo.png"
  4262. alt
  4263. v-if="itemTool.tool.indexOf(40) == -1"
  4264. />
  4265. <div class="checkDiv" v-else>
  4266. <img
  4267. src="../../../assets/icon/checkedIs.png"
  4268. alt
  4269. /><span>已选择</span>
  4270. </div>
  4271. </div>
  4272. </div>
  4273. </div>
  4274. <div class="toolSort" v-if="itemTool.toolType == 5">
  4275. <div class="tool">
  4276. <div
  4277. class="whiteBIcon"
  4278. @click="addTools(28, itemTaskIndex, toolIndex)"
  4279. >
  4280. <img
  4281. src="../../../assets/icon/secondToolList/translation.png"
  4282. alt
  4283. />
  4284. <div style="margin: 5px 0">翻译</div>
  4285. </div>
  4286. <div
  4287. class="check"
  4288. @click="addTools(28, itemTaskIndex, toolIndex)"
  4289. >
  4290. <img
  4291. src="../../../assets/icon/checkNo.png"
  4292. alt
  4293. v-if="itemTool.tool.indexOf(28) == -1"
  4294. />
  4295. <div class="checkDiv" v-else>
  4296. <img
  4297. src="../../../assets/icon/checkedIs.png"
  4298. alt
  4299. /><span>已选择</span>
  4300. </div>
  4301. </div>
  4302. </div>
  4303. <div class="tool">
  4304. <div
  4305. class="whiteBIcon"
  4306. @click="addTools(37, itemTaskIndex, toolIndex)"
  4307. >
  4308. <img
  4309. src="../../../assets/icon/secondToolList/mohe.png"
  4310. alt
  4311. />
  4312. <div style="margin: 5px 0">魔盒识字</div>
  4313. </div>
  4314. <div
  4315. class="check"
  4316. @click="addTools(37, itemTaskIndex, toolIndex)"
  4317. >
  4318. <img
  4319. src="../../../assets/icon/checkNo.png"
  4320. alt
  4321. v-if="itemTool.tool.indexOf(37) == -1"
  4322. />
  4323. <div class="checkDiv" v-else>
  4324. <img
  4325. src="../../../assets/icon/checkedIs.png"
  4326. alt
  4327. /><span>已选择</span>
  4328. </div>
  4329. </div>
  4330. </div>
  4331. <div class="tool">
  4332. <div
  4333. class="whiteBIcon"
  4334. @click="addTools(38, itemTaskIndex, toolIndex)"
  4335. >
  4336. <img
  4337. src="../../../assets/icon/secondToolList/24game.png"
  4338. alt
  4339. />
  4340. <div style="margin: 5px 0">24点</div>
  4341. </div>
  4342. <div
  4343. class="check"
  4344. @click="addTools(38, itemTaskIndex, toolIndex)"
  4345. >
  4346. <img
  4347. src="../../../assets/icon/checkNo.png"
  4348. alt
  4349. v-if="itemTool.tool.indexOf(38) == -1"
  4350. />
  4351. <div class="checkDiv" v-else>
  4352. <img
  4353. src="../../../assets/icon/checkedIs.png"
  4354. alt
  4355. /><span>已选择</span>
  4356. </div>
  4357. </div>
  4358. </div>
  4359. <div class="tool">
  4360. <div
  4361. class="whiteBIcon"
  4362. @click="addTools(31, itemTaskIndex, toolIndex)"
  4363. >
  4364. <img
  4365. src="../../../assets/icon/secondToolList/networkPanel.png"
  4366. alt
  4367. />
  4368. <div style="margin: 5px 0">数学画板</div>
  4369. </div>
  4370. <div
  4371. class="check"
  4372. @click="addTools(31, itemTaskIndex, toolIndex)"
  4373. >
  4374. <img
  4375. src="../../../assets/icon/checkNo.png"
  4376. alt
  4377. v-if="itemTool.tool.indexOf(31) == -1"
  4378. />
  4379. <div class="checkDiv" v-else>
  4380. <img
  4381. src="../../../assets/icon/checkedIs.png"
  4382. alt
  4383. /><span>已选择</span>
  4384. </div>
  4385. </div>
  4386. </div>
  4387. <div class="tool">
  4388. <div
  4389. class="whiteBIcon"
  4390. @click="addTools(39, itemTaskIndex, toolIndex)"
  4391. >
  4392. <img
  4393. src="../../../assets/icon/secondToolList/GeoGebra.png"
  4394. alt
  4395. />
  4396. <div style="margin: 5px 0">GeoGebra</div>
  4397. </div>
  4398. <div
  4399. class="check"
  4400. @click="addTools(39, itemTaskIndex, toolIndex)"
  4401. >
  4402. <img
  4403. src="../../../assets/icon/checkNo.png"
  4404. alt
  4405. v-if="itemTool.tool.indexOf(39) == -1"
  4406. />
  4407. <div class="checkDiv" v-else>
  4408. <img
  4409. src="../../../assets/icon/checkedIs.png"
  4410. alt
  4411. /><span>已选择</span>
  4412. </div>
  4413. </div>
  4414. </div>
  4415. <div class="tool">
  4416. <div
  4417. class="whiteBIcon"
  4418. @click="addTools(58, itemTaskIndex, toolIndex)"
  4419. >
  4420. <img
  4421. src="../../../assets/icon/fourthToolList/car.png"
  4422. alt
  4423. />
  4424. <div style="margin: 5px 0">模拟驾驶</div>
  4425. </div>
  4426. <div
  4427. class="check"
  4428. @click="addTools(58, itemTaskIndex, toolIndex)"
  4429. >
  4430. <img
  4431. src="../../../assets/icon/checkNo.png"
  4432. alt
  4433. v-if="itemTool.tool.indexOf(58) == -1"
  4434. />
  4435. <div class="checkDiv" v-else>
  4436. <img
  4437. src="../../../assets/icon/checkedIs.png"
  4438. alt
  4439. /><span>已选择</span>
  4440. </div>
  4441. </div>
  4442. </div>
  4443. <div class="tool">
  4444. <div
  4445. class="whiteBIcon"
  4446. @click="addTools(59, itemTaskIndex, toolIndex)"
  4447. >
  4448. <img
  4449. src="../../../assets/icon/fourthToolList/lineSearch.png"
  4450. alt
  4451. />
  4452. <div style="margin: 5px 0">路径搜索</div>
  4453. </div>
  4454. <div
  4455. class="check"
  4456. @click="addTools(59, itemTaskIndex, toolIndex)"
  4457. >
  4458. <img
  4459. src="../../../assets/icon/checkNo.png"
  4460. alt
  4461. v-if="itemTool.tool.indexOf(59) == -1"
  4462. />
  4463. <div class="checkDiv" v-else>
  4464. <img
  4465. src="../../../assets/icon/checkedIs.png"
  4466. alt
  4467. /><span>已选择</span>
  4468. </div>
  4469. </div>
  4470. </div>
  4471. <div class="tool">
  4472. <div
  4473. class="whiteBIcon"
  4474. @click="addTools(60, itemTaskIndex, toolIndex)"
  4475. >
  4476. <img
  4477. src="../../../assets/icon/fourthToolList/deepLearning.png"
  4478. alt
  4479. />
  4480. <div style="margin: 5px 0">深度学习</div>
  4481. </div>
  4482. <div
  4483. class="check"
  4484. @click="addTools(60, itemTaskIndex, toolIndex)"
  4485. >
  4486. <img
  4487. src="../../../assets/icon/checkNo.png"
  4488. alt
  4489. v-if="itemTool.tool.indexOf(60) == -1"
  4490. />
  4491. <div class="checkDiv" v-else>
  4492. <img
  4493. src="../../../assets/icon/checkedIs.png"
  4494. alt
  4495. /><span>已选择</span>
  4496. </div>
  4497. </div>
  4498. </div>
  4499. <div class="tool">
  4500. <div
  4501. class="whiteBIcon"
  4502. @click="addTools(61, itemTaskIndex, toolIndex)"
  4503. >
  4504. <img
  4505. src="../../../assets/icon/fourthToolList/allHistory.png"
  4506. alt
  4507. />
  4508. <div style="margin: 5px 0">全历史</div>
  4509. </div>
  4510. <div
  4511. class="check"
  4512. @click="addTools(61, itemTaskIndex, toolIndex)"
  4513. >
  4514. <img
  4515. src="../../../assets/icon/checkNo.png"
  4516. alt
  4517. v-if="itemTool.tool.indexOf(61) == -1"
  4518. />
  4519. <div class="checkDiv" v-else>
  4520. <img
  4521. src="../../../assets/icon/checkedIs.png"
  4522. alt
  4523. /><span>已选择</span>
  4524. </div>
  4525. </div>
  4526. </div>
  4527. </div>
  4528. <div class="toolSort" v-if="itemTool.toolType == 4">
  4529. <div class="tool">
  4530. <div
  4531. class="whiteBIcon"
  4532. @click="addTools(26, itemTaskIndex, toolIndex)"
  4533. >
  4534. <img
  4535. src="../../../assets/icon/thirdToolList/courseDesign.png"
  4536. alt
  4537. />
  4538. <div style="margin: 5px 0">课程设计</div>
  4539. </div>
  4540. <div
  4541. class="check"
  4542. @click="addTools(26, itemTaskIndex, toolIndex)"
  4543. >
  4544. <img
  4545. src="../../../assets/icon/checkNo.png"
  4546. alt
  4547. v-if="itemTool.tool.indexOf(26) == -1"
  4548. />
  4549. <div class="checkDiv" v-else>
  4550. <img
  4551. src="../../../assets/icon/checkedIs.png"
  4552. alt
  4553. /><span>已选择</span>
  4554. </div>
  4555. </div>
  4556. </div>
  4557. <div class="tool">
  4558. <div
  4559. class="whiteBIcon"
  4560. @click="addTools(25, itemTaskIndex, toolIndex)"
  4561. >
  4562. <img
  4563. src="../../../assets/icon/thirdToolList/evalua.png"
  4564. alt
  4565. />
  4566. <div style="margin: 5px 0">目标管理</div>
  4567. </div>
  4568. <div
  4569. class="check"
  4570. @click="addTools(25, itemTaskIndex, toolIndex)"
  4571. >
  4572. <img
  4573. src="../../../assets/icon/checkNo.png"
  4574. alt
  4575. v-if="itemTool.tool.indexOf(25) == -1"
  4576. />
  4577. <div class="checkDiv" v-else>
  4578. <img
  4579. src="../../../assets/icon/checkedIs.png"
  4580. alt
  4581. /><span>已选择</span>
  4582. </div>
  4583. </div>
  4584. </div>
  4585. <!-- <div class="tool">
  4586. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  4587. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  4588. <div style="margin: 5px 0">汉字宫</div>
  4589. </div>
  4590. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  4591. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  4592. <div class="checkDiv" v-else>
  4593. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4594. </div>
  4595. </div>
  4596. </div> -->
  4597. </div>
  4598. </div>
  4599. </div>
  4600. <div
  4601. class="addToolFun"
  4602. @click="addToolFun(itemTaskIndex)"
  4603. >
  4604. <div class="addToolImg">
  4605. <img src="../../../assets/icon/add.png" alt />
  4606. </div>
  4607. <div>添加工具</div>
  4608. </div>
  4609. </div>
  4610. </div>
  4611. <div
  4612. v-else-if="
  4613. unitJson[unitIndex].easy == 2 ||
  4614. unitJson[unitIndex].easy == 4
  4615. "
  4616. class="toolChoose"
  4617. style="padding: 0 0 0 30px"
  4618. >
  4619. <div class="tools">
  4620. <div
  4621. class="leftTools"
  4622. style="width: 95%"
  4623. v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  4624. :key="toolIndex"
  4625. >
  4626. <div>
  4627. <textarea
  4628. rows="3"
  4629. type="text"
  4630. placeholder="添加工具描述"
  4631. class="binfo_input"
  4632. style="margin: 0 0 20px 0; width: 71.5% !important"
  4633. v-model="itemTool.toolDetail"
  4634. ></textarea>
  4635. </div>
  4636. <div
  4637. style="
  4638. display: flex;
  4639. flex-direction: row;
  4640. align-items: baseline;
  4641. flex-wrap: nowrap;
  4642. justify-content: flex-start;
  4643. position: relative;
  4644. "
  4645. >
  4646. <div style="margin-right: 20px; font-weight: bold">
  4647. 步骤 {{ toolIndex + 1 }} :
  4648. </div>
  4649. <div
  4650. class="remove"
  4651. @click="deleteTool(itemTaskIndex, toolIndex)"
  4652. v-if="itemTask.toolChoose.length > 1"
  4653. style="position: absolute; right: 55px"
  4654. ></div>
  4655. </div>
  4656. <div style="min-height: 163px">
  4657. <div class="toolSort">
  4658. <div class="tool">
  4659. <div
  4660. class="whiteBIcon"
  4661. @click="openTools(itemTaskIndex, 1, toolIndex)"
  4662. >
  4663. <img
  4664. src="../../../assets/icon/secondToolList/whiteBoard.png"
  4665. alt
  4666. />
  4667. <div style="margin: 5px 0">电子白板</div>
  4668. </div>
  4669. <div
  4670. class="check"
  4671. @click="addTools(1, itemTaskIndex, toolIndex)"
  4672. >
  4673. <img
  4674. src="../../../assets/icon/checkNo.png"
  4675. alt
  4676. v-if="itemTool.tool.indexOf(1) == -1"
  4677. />
  4678. <div class="checkDiv" v-else>
  4679. <img
  4680. src="../../../assets/icon/checkedIs.png"
  4681. alt
  4682. /><span>已选择</span>
  4683. </div>
  4684. </div>
  4685. </div>
  4686. <div class="tool">
  4687. <div
  4688. class="whiteBIcon"
  4689. @click="openTools(itemTaskIndex, 52, toolIndex)"
  4690. >
  4691. <img
  4692. src="../../../assets/icon/fourthToolList/text.png"
  4693. alt
  4694. />
  4695. <div style="margin: 5px 0">文档</div>
  4696. </div>
  4697. <div
  4698. class="check"
  4699. @click="addTools(52, itemTaskIndex, toolIndex)"
  4700. >
  4701. <img
  4702. src="../../../assets/icon/checkNo.png"
  4703. alt
  4704. v-if="itemTool.tool.indexOf(52) == -1"
  4705. />
  4706. <div class="checkDiv" v-else>
  4707. <img
  4708. src="../../../assets/icon/checkedIs.png"
  4709. alt
  4710. /><span>已选择</span>
  4711. </div>
  4712. </div>
  4713. </div>
  4714. <div class="tool">
  4715. <div
  4716. class="whiteBIcon"
  4717. @click="openTools(itemTaskIndex, 3, toolIndex)"
  4718. >
  4719. <img
  4720. src="../../../assets/icon/secondToolList/mindMapping.png"
  4721. alt
  4722. />
  4723. <div style="margin: 5px 0">思维导图</div>
  4724. </div>
  4725. <div
  4726. class="check"
  4727. @click="addTools(3, itemTaskIndex, toolIndex)"
  4728. >
  4729. <img
  4730. src="../../../assets/icon/checkNo.png"
  4731. alt
  4732. v-if="itemTool.tool.indexOf(3) == -1"
  4733. />
  4734. <div class="checkDiv" v-else>
  4735. <img
  4736. src="../../../assets/icon/checkedIs.png"
  4737. alt
  4738. /><span>已选择</span>
  4739. </div>
  4740. </div>
  4741. </div>
  4742. <div class="tool">
  4743. <div
  4744. class="whiteBIcon"
  4745. @click="openTools(itemTaskIndex, 4, toolIndex)"
  4746. >
  4747. <img
  4748. src="../../../assets/icon/thirdToolList/ask.png"
  4749. alt
  4750. />
  4751. <div style="margin: 5px 0">问卷调查</div>
  4752. </div>
  4753. <div
  4754. class="check"
  4755. @click="addTools(4, itemTaskIndex, toolIndex)"
  4756. >
  4757. <img
  4758. src="../../../assets/icon/checkNo.png"
  4759. alt
  4760. v-if="itemTool.tool.indexOf(4) == -1"
  4761. />
  4762. <div class="checkDiv" v-else>
  4763. <img
  4764. src="../../../assets/icon/checkedIs.png"
  4765. alt
  4766. /><span>已选择</span>
  4767. </div>
  4768. </div>
  4769. </div>
  4770. <div class="tool">
  4771. <div
  4772. class="whiteBIcon"
  4773. @click="openTools(itemTaskIndex, 45, toolIndex)"
  4774. >
  4775. <img
  4776. src="../../../assets/icon/thirdToolList/choose.png"
  4777. alt
  4778. />
  4779. <div style="margin: 5px 0">选择题</div>
  4780. </div>
  4781. <div
  4782. class="check"
  4783. @click="addTools(45, itemTaskIndex, toolIndex)"
  4784. >
  4785. <img
  4786. src="../../../assets/icon/checkNo.png"
  4787. alt
  4788. v-if="itemTool.tool.indexOf(45) == -1"
  4789. />
  4790. <div class="checkDiv" v-else>
  4791. <img
  4792. src="../../../assets/icon/checkedIs.png"
  4793. alt
  4794. /><span>已选择</span>
  4795. </div>
  4796. </div>
  4797. </div>
  4798. <div class="tool">
  4799. <div
  4800. class="whiteBIcon"
  4801. @click="openTools(itemTaskIndex, 15, toolIndex)"
  4802. >
  4803. <img
  4804. src="../../../assets/icon/thirdToolList/answer.png"
  4805. alt
  4806. />
  4807. <div style="margin: 5px 0">问答工具</div>
  4808. </div>
  4809. <div
  4810. class="check"
  4811. @click="addTools(15, itemTaskIndex, toolIndex)"
  4812. >
  4813. <img
  4814. src="../../../assets/icon/checkNo.png"
  4815. alt
  4816. v-if="itemTool.tool.indexOf(15) == -1"
  4817. />
  4818. <div class="checkDiv" v-else>
  4819. <img
  4820. src="../../../assets/icon/checkedIs.png"
  4821. alt
  4822. /><span>已选择</span>
  4823. </div>
  4824. </div>
  4825. </div>
  4826. <div class="tool">
  4827. <div
  4828. class="whiteBIcon"
  4829. @click="addTools(16, itemTaskIndex, toolIndex)"
  4830. >
  4831. <img
  4832. src="../../../assets/icon/thirdToolList/work.png"
  4833. alt
  4834. />
  4835. <div style="margin: 5px 0">作业提交</div>
  4836. </div>
  4837. <div
  4838. class="check"
  4839. @click="addTools(16, itemTaskIndex, toolIndex)"
  4840. >
  4841. <img
  4842. src="../../../assets/icon/checkNo.png"
  4843. alt
  4844. v-if="itemTool.tool.indexOf(16) == -1"
  4845. />
  4846. <div class="checkDiv" v-else>
  4847. <img
  4848. src="../../../assets/icon/checkedIs.png"
  4849. alt
  4850. /><span>已选择</span>
  4851. </div>
  4852. </div>
  4853. </div>
  4854. <div class="tool">
  4855. <div
  4856. class="whiteBIcon"
  4857. @click="openTools(itemTaskIndex, 50, toolIndex)"
  4858. >
  4859. <img
  4860. src="../../../assets/icon/thirdToolList/plwork.png"
  4861. alt
  4862. />
  4863. <div style="margin: 5px 0">批量上传</div>
  4864. </div>
  4865. <div
  4866. class="check"
  4867. @click="addTools(50, itemTaskIndex, toolIndex)"
  4868. >
  4869. <img
  4870. src="../../../assets/icon/checkNo.png"
  4871. alt
  4872. v-if="itemTool.tool.indexOf(50) == -1"
  4873. />
  4874. <div class="checkDiv" v-else>
  4875. <img
  4876. src="../../../assets/icon/checkedIs.png"
  4877. alt
  4878. /><span>已选择</span>
  4879. </div>
  4880. </div>
  4881. </div>
  4882. <div class="tool">
  4883. <div
  4884. class="whiteBIcon"
  4885. @click="openTools(itemTaskIndex, 41, toolIndex)"
  4886. >
  4887. <img
  4888. src="../../../assets/icon/thirdToolList/select.png"
  4889. alt
  4890. />
  4891. <div style="margin: 5px 0">选择填空</div>
  4892. </div>
  4893. <div
  4894. class="check"
  4895. @click="addTools(41, itemTaskIndex, toolIndex)"
  4896. >
  4897. <img
  4898. src="../../../assets/icon/checkNo.png"
  4899. alt
  4900. v-if="itemTool.tool.indexOf(41) == -1"
  4901. />
  4902. <div class="checkDiv" v-else>
  4903. <img
  4904. src="../../../assets/icon/checkedIs.png"
  4905. alt
  4906. /><span>已选择</span>
  4907. </div>
  4908. </div>
  4909. </div>
  4910. <div class="tool">
  4911. <div
  4912. class="whiteBIcon"
  4913. @click="openTools(itemTaskIndex, 47, toolIndex)"
  4914. >
  4915. <img
  4916. src="../../../assets/icon/fourthToolList/conSentences.png"
  4917. alt
  4918. />
  4919. <div style="margin: 5px 0">连词成句</div>
  4920. </div>
  4921. <div
  4922. class="check"
  4923. @click="addTools(47, itemTaskIndex, toolIndex)"
  4924. >
  4925. <img
  4926. src="../../../assets/icon/checkNo.png"
  4927. alt
  4928. v-if="itemTool.tool.indexOf(47) == -1"
  4929. />
  4930. <div class="checkDiv" v-else>
  4931. <img
  4932. src="../../../assets/icon/checkedIs.png"
  4933. alt
  4934. /><span>已选择</span>
  4935. </div>
  4936. </div>
  4937. </div>
  4938. <div class="tool">
  4939. <div
  4940. class="whiteBIcon"
  4941. @click="openTools(itemTaskIndex, 48, toolIndex)"
  4942. >
  4943. <img
  4944. src="../../../assets/icon/fourthToolList/table.png"
  4945. alt
  4946. />
  4947. <div style="margin: 5px 0">表格</div>
  4948. </div>
  4949. <div
  4950. class="check"
  4951. @click="addTools(48, itemTaskIndex, toolIndex)"
  4952. >
  4953. <img
  4954. src="../../../assets/icon/checkNo.png"
  4955. alt
  4956. v-if="itemTool.tool.indexOf(48) == -1"
  4957. />
  4958. <div class="checkDiv" v-else>
  4959. <img
  4960. src="../../../assets/icon/checkedIs.png"
  4961. alt
  4962. /><span>已选择</span>
  4963. </div>
  4964. </div>
  4965. </div>
  4966. </div>
  4967. </div>
  4968. </div>
  4969. <div
  4970. class="addToolFun"
  4971. style="margin-bottom: 20px"
  4972. @click="addToolFun(itemTaskIndex)"
  4973. >
  4974. <div class="addToolImg">
  4975. <img src="../../../assets/icon/add.png" alt />
  4976. </div>
  4977. <div>添加工具</div>
  4978. </div>
  4979. </div>
  4980. </div>
  4981. <div
  4982. v-else-if="
  4983. unitJson[unitIndex].easy == 1 ||
  4984. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  4985. "
  4986. class="toolChoose"
  4987. style="padding: 0 0 0 30px"
  4988. >
  4989. <div class="tools">
  4990. <div
  4991. class="leftTools"
  4992. style="
  4993. width: 95%;
  4994. padding: 0 0 15px 0;
  4995. margin-bottom: 15px;
  4996. "
  4997. v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  4998. :key="toolIndex"
  4999. >
  5000. <div style="min-height: 163px">
  5001. <div class="toolSort">
  5002. <div class="tool">
  5003. <div
  5004. class="whiteBIcon"
  5005. @click="openTools(itemTaskIndex, 50, toolIndex)"
  5006. >
  5007. <img
  5008. src="../../../assets/icon/thirdToolList/plwork.png"
  5009. alt
  5010. />
  5011. <div style="margin: 5px 0">批量上传</div>
  5012. </div>
  5013. <div
  5014. class="check"
  5015. @click="addTools(50, itemTaskIndex, toolIndex)"
  5016. >
  5017. <img
  5018. src="../../../assets/icon/checkNo.png"
  5019. alt
  5020. v-if="itemTool.tool.indexOf(50) == -1"
  5021. />
  5022. <div class="checkDiv" v-else>
  5023. <img
  5024. src="../../../assets/icon/checkedIs.png"
  5025. alt
  5026. /><span>已选择</span>
  5027. </div>
  5028. </div>
  5029. </div>
  5030. </div>
  5031. </div>
  5032. </div>
  5033. </div>
  5034. </div>
  5035. <div
  5036. class="elist_css"
  5037. v-if="!(unitJson[unitJson.length - 1].easy == 4)"
  5038. >
  5039. <div class="elist_title">
  5040. <div
  5041. style="
  5042. display: flex;
  5043. flex-direction: row;
  5044. align-items: center;
  5045. margin-bottom: 20px;
  5046. "
  5047. >
  5048. <div class="lineTitle">评价设置</div>
  5049. <div class="line" style="width: 90%"></div>
  5050. </div>
  5051. </div>
  5052. <div class="mbCss">
  5053. <div class="pjCss">
  5054. <div
  5055. v-if="itemTask.eList && itemTask.eList.length"
  5056. class="elist_input"
  5057. >
  5058. <div
  5059. v-for="(eItem, eIndex) in itemTask.eList"
  5060. :key="eIndex"
  5061. class="elist_input_box"
  5062. >
  5063. <span>评价名称:</span>
  5064. <input
  5065. type="input"
  5066. v-model="itemTask.eList[eIndex].value"
  5067. placeholder="填写评价名称"
  5068. />
  5069. <span>评星等级:</span>
  5070. <el-rate
  5071. v-model="itemTask.eList[eIndex].score"
  5072. @change="setEListStar()"
  5073. disabled
  5074. ></el-rate>
  5075. <div
  5076. class="remove"
  5077. @click="
  5078. deletEList(unitIndex, itemTaskIndex, eIndex)
  5079. "
  5080. ></div>
  5081. <div class="elist_inptu_text">
  5082. <span>评价描述:</span>
  5083. <input
  5084. type="input"
  5085. v-model="itemTask.eList[eIndex].detail"
  5086. placeholder="填写评价描述"
  5087. />
  5088. </div>
  5089. <div class="elist_inptu_text" v-if="evalua">
  5090. <span>目标:</span>
  5091. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写评价描述" /> -->
  5092. <!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
  5093. @change="forceUpdate()">
  5094. <el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
  5095. :value="e.name">
  5096. </el-option>
  5097. </el-select> -->
  5098. <el-cascader
  5099. :options="targetArray"
  5100. v-model="itemTask.eList[eIndex].target"
  5101. :props="{ checkStrictly: true }"
  5102. :show-all-levels="false"
  5103. clearable
  5104. ></el-cascader>
  5105. </div>
  5106. </div>
  5107. </div>
  5108. <div
  5109. class="addToolFun"
  5110. @click="addEList(unitIndex, itemTaskIndex)"
  5111. style="margin: 35px 35px 0 0"
  5112. >
  5113. <div class="addToolImg">
  5114. <img src="../../../assets/icon/add.png" alt />
  5115. </div>
  5116. <div>添加</div>
  5117. </div>
  5118. </div>
  5119. <div
  5120. v-if="evalua"
  5121. style="
  5122. border: 1px solid #e5e5e5;
  5123. width: 55%;
  5124. margin-top: 20px;
  5125. box-shadow: 3px 1px 15px 3px #e0e0e0;
  5126. "
  5127. class="evaCss"
  5128. >
  5129. <div class="e_add_top">
  5130. <div class="e_add_title">
  5131. <span>当前使用目标管理</span>
  5132. <span>{{ eTitle }}</span>
  5133. <img
  5134. src="../../../assets/line.png"
  5135. class="cru_line"
  5136. style="
  5137. width: 125px;
  5138. height: 20px;
  5139. bottom: -10px;
  5140. left: 155px;
  5141. "
  5142. />
  5143. </div>
  5144. </div>
  5145. <div class="e_add_content" style="width: 100%">
  5146. <div class="e_add_list_pbox" style="width: 100%">
  5147. <div class="e_add_list_pbox_title">
  5148. <span class="type_title">切换模式</span>
  5149. <div class="type_content">
  5150. <span
  5151. :class="{ active: typeMode == 1 }"
  5152. @click="OtherMb(1)"
  5153. >目标树</span
  5154. >
  5155. <span
  5156. :class="{ active: typeMode == 2 }"
  5157. @click="OtherMb(2)"
  5158. >目标罗盘</span
  5159. >
  5160. <span
  5161. :class="{ active: typeMode == 3 }"
  5162. @click="OtherMb(3)"
  5163. >目标看板</span
  5164. >
  5165. </div>
  5166. </div>
  5167. <div class="e_add_list_pbox_content">
  5168. <Mind
  5169. :showBar="false"
  5170. :mindData="data"
  5171. style="width: 100%"
  5172. :jsmindId="
  5173. unitIndex + '-' + itemTaskIndex + 'mind'
  5174. "
  5175. v-if="typeMode == 1"
  5176. ></Mind>
  5177. <Sunburst
  5178. :Josn="eJson"
  5179. :num="eJSONNum"
  5180. style="width: 100%"
  5181. v-if="typeMode == 2"
  5182. >
  5183. </Sunburst>
  5184. <SeeBoard
  5185. :Josn="eJson"
  5186. :num="eJSONNum"
  5187. :ename="eTitle"
  5188. style="width: 100%"
  5189. v-if="typeMode == 3"
  5190. ></SeeBoard>
  5191. </div>
  5192. </div>
  5193. </div>
  5194. </div>
  5195. </div>
  5196. </div>
  5197. <div class="funBlock" style="padding: 0">
  5198. <div class="fold" @click="fold(itemTaskIndex, $event, 1)">
  5199. <div>折叠</div>
  5200. <div class="arrow">
  5201. <img src="../../../assets/icon/fold.png" alt />
  5202. </div>
  5203. </div>
  5204. <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  5205. <div>展开</div>
  5206. <div class="arrow">
  5207. <img src="../../../assets/icon/expand.png" alt />
  5208. </div>
  5209. </div>
  5210. </div>
  5211. </div>
  5212. <div
  5213. class="addTaskBorder"
  5214. @click="addTaskBorder"
  5215. v-if="!unitJson[unitIndex].easy"
  5216. >
  5217. <div>
  5218. <img src="../../../assets/icon/addHw.png" alt />
  5219. <span>添加任务</span>
  5220. </div>
  5221. </div>
  5222. </div>
  5223. </div>
  5224. </div>
  5225. <div class="rightBox" v-if="this.steps == 4">
  5226. <div class="basic_box_success">
  5227. <div class="right_img">
  5228. <img src="../../../assets/icon/right.png" alt />
  5229. </div>
  5230. <div style="font-weight: bold">成功</div>
  5231. <!-- <div>您的课程编号</div>
  5232. <div class="number">{{ number }}</div>-->
  5233. <!-- <div class="success_button">
  5234. <div class="look_course" @click="isNoFinsh">
  5235. 邀请老师协同编辑
  5236. </div>
  5237. <div class="attend_others" @click="goCourse">预览课程</div>
  5238. </div> -->
  5239. </div>
  5240. </div>
  5241. <div class="info_btnBox">
  5242. <button
  5243. class="info_btn"
  5244. @click="
  5245. goTo(
  5246. '/course?userid=' +
  5247. userid +
  5248. '&oid=' +
  5249. oid +
  5250. '&org=' +
  5251. org +
  5252. '&role=' +
  5253. role
  5254. )
  5255. "
  5256. >
  5257. 返回课程
  5258. </button>
  5259. <button class="info_btn" @click="nextSteps" v-if="this.steps == 1">
  5260. 确认上传
  5261. </button>
  5262. </div>
  5263. </div>
  5264. </div>
  5265. </div>
  5266. <el-dialog
  5267. title="提示"
  5268. :visible.sync="dialogVisible"
  5269. :append-to-body="true"
  5270. width="25%"
  5271. :before-close="handleClose"
  5272. class="dialog_diy2 customWidth"
  5273. >
  5274. <div>请复制该链接邀请协同编辑</div>
  5275. <div>http://www.boomyon.com/index-zhang.com</div>
  5276. <span slot="footer" class="dialog-footer">
  5277. <el-button type="primary">复制链接分享</el-button>
  5278. <el-button @click="dialogVisible = false">取消</el-button>
  5279. </span>
  5280. </el-dialog>
  5281. <el-dialog
  5282. :title="updateBoolean2 ? '查看文档' : '添加文档'"
  5283. :visible.sync="dialogVisible1"
  5284. :append-to-body="true"
  5285. width="25%"
  5286. :before-close="handleClose"
  5287. class="dialog_diy2 customWidth"
  5288. >
  5289. <el-form>
  5290. <el-form-item label="文档标题">
  5291. <el-input
  5292. v-model="tTitle"
  5293. auto-complete="off"
  5294. placeholder="请输入文档标题名..."
  5295. ></el-input>
  5296. </el-form-item>
  5297. <div>文档简介</div>
  5298. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  5299. </el-form>
  5300. <span slot="footer" class="dialog-footer">
  5301. <el-button @click="dialogVisible1 = false">取 消</el-button>
  5302. <el-button type="primary" @click="addWord" v-if="!updateBoolean2"
  5303. >添加</el-button
  5304. >
  5305. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  5306. </span>
  5307. </el-dialog>
  5308. <el-dialog
  5309. title="添加文档"
  5310. :visible.sync="dialogVisible2"
  5311. :append-to-body="true"
  5312. width="500px"
  5313. :before-close="handleClose"
  5314. class="dialog_diy"
  5315. >
  5316. <el-form>
  5317. <el-form-item label="文档标题">
  5318. <el-input
  5319. v-model="templateC.title"
  5320. auto-complete="off"
  5321. placeholder="请输入文档标题名..."
  5322. ></el-input>
  5323. </el-form-item>
  5324. <div>文档内容</div>
  5325. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  5326. </el-form>
  5327. <span slot="footer" class="dialog-footer">
  5328. <el-button @click="clearChoose">取 消</el-button>
  5329. <el-button type="primary" @click="wordNext()">确定</el-button>
  5330. </span>
  5331. </el-dialog>
  5332. <el-dialog
  5333. title="添加富文本"
  5334. :visible.sync="dialogVisible6"
  5335. :append-to-body="true"
  5336. width="500px"
  5337. :before-close="handleClose"
  5338. class="dialog_diy"
  5339. >
  5340. <el-form>
  5341. <el-form-item label="文本标题">
  5342. <el-input
  5343. v-model="AttText.title"
  5344. auto-complete="off"
  5345. @input="change2"
  5346. placeholder="请输入文本标题..."
  5347. ></el-input>
  5348. </el-form-item>
  5349. <div>富文本内容</div>
  5350. <editor-bar
  5351. v-model="AttText.text"
  5352. @change="change"
  5353. v-if="dialogVisible6"
  5354. ></editor-bar>
  5355. </el-form>
  5356. <span slot="footer" class="dialog-footer">
  5357. <el-button @click="clearAttText">取 消</el-button>
  5358. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  5359. </span>
  5360. </el-dialog>
  5361. <el-dialog
  5362. title="添加链接"
  5363. :visible.sync="dialogVisible7"
  5364. :append-to-body="true"
  5365. width="500px"
  5366. :before-close="handleClose"
  5367. class="dialog_diy lineCss"
  5368. >
  5369. <el-form>
  5370. <el-form-item label="标题" :label-width="formLabelWidth">
  5371. <span>
  5372. <el-input
  5373. placeholder="请输入链接标题"
  5374. clearable
  5375. v-model="lineTitle"
  5376. class="add_input"
  5377. ></el-input>
  5378. </span>
  5379. </el-form-item>
  5380. <el-form-item label="链接" :label-width="formLabelWidth">
  5381. <span>
  5382. <el-input
  5383. placeholder="请输入链接"
  5384. clearable
  5385. v-model="line"
  5386. class="add_input"
  5387. ></el-input>
  5388. </span>
  5389. </el-form-item>
  5390. </el-form>
  5391. <span slot="footer" class="dialog-footer">
  5392. <el-button @click="clearLine">取 消</el-button>
  5393. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  5394. </span>
  5395. </el-dialog>
  5396. <el-dialog
  5397. title="添加资源"
  5398. :visible.sync="dialogVisibleSource"
  5399. :append-to-body="true"
  5400. width="100%"
  5401. :before-close="handleClose"
  5402. class="dialog_diy source_diy"
  5403. >
  5404. <div>
  5405. <sourceDialog :sourceData="sourceData"></sourceDialog>
  5406. </div>
  5407. <span slot="footer" class="dialog-footer">
  5408. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  5409. <el-button type="primary" @click="addSource">确定</el-button>
  5410. </span>
  5411. </el-dialog>
  5412. <el-dialog
  5413. title="添加课程成员"
  5414. :visible.sync="dialogVisible3"
  5415. :append-to-body="true"
  5416. width="25%"
  5417. height="80%"
  5418. :before-close="handleClose"
  5419. class="addNewPP customWidth"
  5420. >
  5421. <div class="people">
  5422. <div class="people_top">
  5423. <div class="people_nav">选择成员</div>
  5424. <div class="people_top_right">
  5425. <div class="people_search">
  5426. <el-input
  5427. style="height: 100%"
  5428. placeholder="搜索成员名称"
  5429. v-model="searchPeople"
  5430. ></el-input>
  5431. <div class="search_img" @click="searchStudent">
  5432. <img src="../../../assets/icon/search.png" alt />
  5433. </div>
  5434. </div>
  5435. </div>
  5436. </div>
  5437. <el-checkbox-group v-model="checkboxList" class="people_name">
  5438. <el-checkbox
  5439. v-for="item in studentJuri"
  5440. :key="item.userid"
  5441. :label="item.userid"
  5442. >{{ item.name ? item.name : "暂无学生可选" }}</el-checkbox
  5443. >
  5444. </el-checkbox-group>
  5445. </div>
  5446. <span slot="footer" class="dialog-footer">
  5447. <el-button @click="dialogVisible3 = false">取 消</el-button>
  5448. <el-button type="primary" @click="isAddPP">确定</el-button>
  5449. </span>
  5450. </el-dialog>
  5451. <el-dialog
  5452. title="添加班级"
  5453. :visible.sync="dialogVisibleClass"
  5454. :append-to-body="true"
  5455. width="400px"
  5456. height="80%"
  5457. :before-close="handleClose"
  5458. class="addNewPP"
  5459. >
  5460. <div class="people" style="height: 300px">
  5461. <div class="people_top">
  5462. <div class="people_top_right">
  5463. <div class="people_search">
  5464. <el-input
  5465. placeholder="搜索班级名称"
  5466. v-model="classSearch"
  5467. @input="getClass()"
  5468. ></el-input>
  5469. <!-- @click="getClass()"
  5470. @keyup.enter.native="getClass()"
  5471. -->
  5472. <div class="search_img">
  5473. <img src="../../../assets/icon/search.png" alt />
  5474. </div>
  5475. </div>
  5476. </div>
  5477. <div class="people_nav">选择班级</div>
  5478. </div>
  5479. <el-checkbox-group
  5480. v-model="checkboxList2"
  5481. class="people_name people_name2"
  5482. @change="InviteChange"
  5483. >
  5484. <div v-for="item in grade2" :key="item.id" class="p_box">
  5485. <el-checkbox :label="item.id">
  5486. {{ item.name }}
  5487. </el-checkbox>
  5488. <!-- <div class="inviteCode" :class="{ noneInvite: !isInvite(item.id) }" v-if="isInvite(item.id)">
  5489. 邀请码:{{ getInviteCodeC(item.id) }}</div> -->
  5490. <!-- <div class="inviteCode" :class="{ noneInvite: !isInvite(item.id) }" v-if="checkboxList2.indexOf(item.id) != -1"
  5491. @click="OpenInviteD(item.id)">随机码设置</div>
  5492. <img src="../../../assets/icon/rightInvite.png" class="inviteImg" v-if="isInvite(item.id)" /> -->
  5493. </div>
  5494. </el-checkbox-group>
  5495. </div>
  5496. <span slot="footer" class="dialog-footer">
  5497. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  5498. <el-button type="primary" @click="isAddClass">确定</el-button>
  5499. </span>
  5500. </el-dialog>
  5501. <el-dialog
  5502. title="添加协同成员"
  5503. :visible.sync="dialogVisibleMember"
  5504. :append-to-body="true"
  5505. width="25%"
  5506. height="80%"
  5507. :before-close="handleClose"
  5508. class="addNewPP customWidth"
  5509. >
  5510. <div class="people">
  5511. <div class="people_top">
  5512. <div class="people_top_right">
  5513. <div class="people_search">
  5514. <el-input
  5515. placeholder="搜索成员名称"
  5516. v-model="searchTN"
  5517. @keyup.enter.native="getTeacher"
  5518. ></el-input>
  5519. <div class="search_img" @click="getTeacher">
  5520. <img src="../../../assets/icon/search.png" alt />
  5521. </div>
  5522. </div>
  5523. </div>
  5524. <div class="people_nav">选择成员</div>
  5525. </div>
  5526. <el-checkbox-group
  5527. v-model="checkboxList3"
  5528. class="people_name"
  5529. v-if="teacherJuri.length"
  5530. >
  5531. <el-checkbox
  5532. v-for="item in teacherJuri"
  5533. :key="item.userid"
  5534. :label="item.userid"
  5535. >
  5536. <div class="t_j_box">
  5537. <el-tooltip
  5538. placement="top"
  5539. :content="item.name ? item.name : '暂无姓名'"
  5540. >
  5541. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  5542. </el-tooltip>
  5543. <el-tooltip placement="top" :content="item.username">
  5544. <span>{{ item.username }}</span>
  5545. </el-tooltip>
  5546. <el-tooltip placement="top" :content="item.school">
  5547. <span>{{ item.school }}</span>
  5548. </el-tooltip>
  5549. </div>
  5550. </el-checkbox>
  5551. </el-checkbox-group>
  5552. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  5553. </div>
  5554. <span slot="footer" class="dialog-footer">
  5555. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  5556. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  5557. </span>
  5558. </el-dialog>
  5559. <el-dialog
  5560. title="创建问卷"
  5561. :visible.sync="dialogVisible5"
  5562. :append-to-body="true"
  5563. width="800px"
  5564. :before-close="handleClose"
  5565. class="dialog_diy"
  5566. >
  5567. <div>
  5568. <div
  5569. class="a_add_title"
  5570. style="
  5571. display: flex;
  5572. flex-direction: row;
  5573. align-items: center;
  5574. justify-content: center;
  5575. "
  5576. >
  5577. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  5578. <el-input
  5579. v-model="askJson.askTitle"
  5580. placeholder="请输入标题"
  5581. style="width: 400px"
  5582. ></el-input>
  5583. </div>
  5584. <div class="a_addBox">
  5585. <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div>
  5586. <div
  5587. class="a_add_box"
  5588. v-for="(item1, index1) in askJson.askCount"
  5589. :key="index1"
  5590. >
  5591. <div class="a_add_checkType">
  5592. <span
  5593. :class="{
  5594. active:
  5595. askJson.askJson[index1].type == '1' ||
  5596. !askJson.askJson[index1].type,
  5597. }"
  5598. @click="checkAskType('1', askJson.askJson[index1])"
  5599. >单选题</span
  5600. >
  5601. <span
  5602. :class="{ active: askJson.askJson[index1].type == '2' }"
  5603. @click="checkAskType('2', askJson.askJson[index1])"
  5604. >多选题</span
  5605. >
  5606. </div>
  5607. <div class="a_add_head">
  5608. <div>
  5609. {{ index1 + 1 + "、" }}
  5610. <el-input
  5611. class="a_add_head_input"
  5612. v-model="askJson.askJson[index1].askstitle"
  5613. placeholder="请输入题目..."
  5614. >
  5615. </el-input>
  5616. </div>
  5617. <div class="a_add_head_div">
  5618. <el-button type="primary" size="small" @click="addAskList()"
  5619. >添加</el-button
  5620. >
  5621. <el-button
  5622. type="primary"
  5623. size="small"
  5624. @click="deleteAskList(index1)"
  5625. v-if="askJson.askCount != 1"
  5626. >删除
  5627. </el-button>
  5628. </div>
  5629. </div>
  5630. <div class="a_add_body">
  5631. <div class="a_add_input">
  5632. <el-input
  5633. v-for="(item2, checkIndex) in askJson.askJson[index1].askItem"
  5634. :key="checkIndex"
  5635. v-model="askJson.askJson[index1].checkList[checkIndex]"
  5636. placeholder="请输入选项..."
  5637. style="width: 150px; margin: 10px 10px 0 0"
  5638. ></el-input>
  5639. </div>
  5640. <div class="a_add_body_div">
  5641. <el-button
  5642. style="margin: 10px 0px 0 0"
  5643. type="primary"
  5644. size="small"
  5645. @click="addcheckList(askJson.askJson[index1])"
  5646. >添加</el-button
  5647. >
  5648. <el-button
  5649. type="primary"
  5650. size="small"
  5651. style="margin: 10px 0 0 10px"
  5652. @click="deletecheckList(askJson.askJson[index1])"
  5653. v-if="askJson.askJson[index1].askItem != 1"
  5654. >删除
  5655. </el-button>
  5656. </div>
  5657. </div>
  5658. </div>
  5659. </div>
  5660. </div>
  5661. <span slot="footer" class="dialog-footer">
  5662. <el-button @click="dialogVisible5 = false">取 消</el-button>
  5663. <el-button type="primary" @click="addAsk">确 定</el-button>
  5664. </span>
  5665. </el-dialog>
  5666. <el-dialog
  5667. title="创建选择题"
  5668. :visible.sync="dialogVisibleChoice"
  5669. :append-to-body="true"
  5670. width="800px"
  5671. :before-close="handleClose"
  5672. class="dialog_diy"
  5673. >
  5674. <div>
  5675. <!-- <div class="a_add_title" style="
  5676. display: flex;
  5677. flex-direction: row;
  5678. align-items: center;
  5679. justify-content: center;
  5680. ">
  5681. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  5682. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  5683. </div> -->
  5684. <div class="a_addBox">
  5685. <div style="font-size: 16px; color: #c7c7c7">
  5686. 请输入题目内容
  5687. <el-button
  5688. type="primary"
  5689. size="small"
  5690. @click="pasteOption"
  5691. style="margin-left: 10px"
  5692. >智能粘贴</el-button
  5693. >
  5694. </div>
  5695. <div
  5696. class="a_add_box"
  5697. v-for="(item1, index1) in testJson.testCount"
  5698. :key="index1"
  5699. >
  5700. <div class="a_add_checkType">
  5701. <span
  5702. :class="{ active: testJson.testJson[index1].type == '1' }"
  5703. @click="checkTestType('1', testJson.testJson[index1])"
  5704. >单选题</span
  5705. >
  5706. <span
  5707. :class="{ active: testJson.testJson[index1].type == '2' }"
  5708. @click="checkTestType('2', testJson.testJson[index1])"
  5709. >多选题</span
  5710. >
  5711. </div>
  5712. <div class="a_add_head">
  5713. <div class="timuUpImg">
  5714. <div>
  5715. {{ index1 + 1 + "、" }}
  5716. <el-input
  5717. class="a_add_head_input"
  5718. v-model="testJson.testJson[index1].teststitle"
  5719. placeholder="请输入题目..."
  5720. >
  5721. </el-input>
  5722. </div>
  5723. <div class="xzUpImg" @click.stop="addImg($event)">
  5724. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  5725. <input
  5726. type="file"
  5727. accept="image/*"
  5728. style="display: none"
  5729. @change="beforeUploadTiMu($event, index1)"
  5730. />
  5731. </div>
  5732. </div>
  5733. <div class="a_add_head_div">
  5734. <el-button type="primary" size="small" @click="addTestList()"
  5735. >添加</el-button
  5736. >
  5737. <el-button
  5738. type="primary"
  5739. size="small"
  5740. @click="deleteTestList(index1)"
  5741. v-if="testJson.testCount != 1"
  5742. >删除
  5743. </el-button>
  5744. </div>
  5745. </div>
  5746. <div
  5747. class="timuImgBox"
  5748. v-if="
  5749. testJson.testJson[index1].timuList &&
  5750. testJson.testJson[index1].timuList.length
  5751. "
  5752. >
  5753. <div
  5754. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  5755. :key="tIndex"
  5756. class="timuImg"
  5757. @click.stop="previewImg(timg.src)"
  5758. >
  5759. <img :src="timg.src" alt="" />
  5760. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  5761. <img src="../../../assets/icon/delete.png" alt="" />
  5762. </div>
  5763. </div>
  5764. </div>
  5765. <div class="a_add_body">
  5766. <div class="a_add_input a_add_input_choice">
  5767. <el-radio-group
  5768. v-model="testJson.testJson[index1].answer"
  5769. v-if="testJson.testJson[index1].type == 1"
  5770. >
  5771. <div class="radioBox">
  5772. <el-radio
  5773. v-for="(item2, checkIndex) in testJson.testJson[index1]
  5774. .testItem"
  5775. :key="checkIndex"
  5776. :label="checkIndex"
  5777. >
  5778. <div style="margin-right: 10px">
  5779. 选项{{ checkIndex + 1 }}
  5780. </div>
  5781. <div
  5782. style="margin-right: 10px; width: 300px"
  5783. v-if="
  5784. testJson.testJson[index1].checkList[checkIndex] &&
  5785. testJson.testJson[index1].checkList[checkIndex]
  5786. .imgType &&
  5787. testJson.testJson[index1].checkList[checkIndex]
  5788. .imgType == 1
  5789. "
  5790. >
  5791. <div
  5792. class="inImg"
  5793. @click.stop="
  5794. previewImg(
  5795. testJson.testJson[index1].checkList[checkIndex]
  5796. .src
  5797. )
  5798. "
  5799. >
  5800. <el-image
  5801. :src="
  5802. testJson.testJson[index1].checkList[checkIndex]
  5803. .src
  5804. "
  5805. lazy
  5806. />
  5807. <!-- <img :src="
  5808. testJson.testJson[index1].checkList[checkIndex]
  5809. .src
  5810. " alt="" /> -->
  5811. </div>
  5812. </div>
  5813. <el-input
  5814. v-else
  5815. v-model="
  5816. testJson.testJson[index1].checkList[checkIndex]
  5817. "
  5818. placeholder="请输入选项..."
  5819. style="width: 300px; margin-right: 10px"
  5820. ></el-input>
  5821. <div class="xzUpImg" @click.stop="addImg($event)">
  5822. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  5823. <input
  5824. type="file"
  5825. accept="image/*"
  5826. style="display: none"
  5827. @change="beforeUploadTi($event, index1, checkIndex)"
  5828. />
  5829. </div>
  5830. </el-radio>
  5831. </div>
  5832. </el-radio-group>
  5833. <el-checkbox-group
  5834. v-model="testJson.testJson[index1].answer"
  5835. v-if="testJson.testJson[index1].type == '2'"
  5836. >
  5837. <div class="radioBox">
  5838. <el-checkbox
  5839. v-for="(item2, checkIndex1) in testJson.testJson[index1]
  5840. .testItem"
  5841. :key="checkIndex1"
  5842. :label="checkIndex1"
  5843. >
  5844. <div style="margin-right: 10px">
  5845. 选项{{ checkIndex1 + 1 }}
  5846. </div>
  5847. <div
  5848. style="margin-right: 10px; width: 300px"
  5849. v-if="
  5850. testJson.testJson[index1].checkList[checkIndex1] &&
  5851. testJson.testJson[index1].checkList[checkIndex1]
  5852. .imgType &&
  5853. testJson.testJson[index1].checkList[checkIndex1]
  5854. .imgType == 1
  5855. "
  5856. >
  5857. <div
  5858. class="inImg"
  5859. @click.stop="
  5860. previewImg(
  5861. testJson.testJson[index1].checkList[checkIndex1]
  5862. .src
  5863. )
  5864. "
  5865. >
  5866. <el-image
  5867. :src="
  5868. testJson.testJson[index1].checkList[checkIndex1]
  5869. .src
  5870. "
  5871. lazy
  5872. />
  5873. <!-- <img :src="
  5874. testJson.testJson[index1].checkList[checkIndex1]
  5875. .src
  5876. " alt="" /> -->
  5877. </div>
  5878. </div>
  5879. <el-input
  5880. v-else
  5881. v-model="
  5882. testJson.testJson[index1].checkList[checkIndex1]
  5883. "
  5884. placeholder="请输入选项..."
  5885. style="width: 300px; margin-right: 10px"
  5886. ></el-input>
  5887. <div class="xzUpImg" @click.stop="addImg($event)">
  5888. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  5889. <input
  5890. type="file"
  5891. accept="image/*"
  5892. style="display: none"
  5893. @change="beforeUploadTi($event, index1, checkIndex1)"
  5894. />
  5895. </div>
  5896. </el-checkbox>
  5897. </div>
  5898. </el-checkbox-group>
  5899. </div>
  5900. <div class="a_add_body_div" style="margin-bottom: 3px">
  5901. <el-button
  5902. type="primary"
  5903. size="small"
  5904. @click="addTcheckList(testJson.testJson[index1])"
  5905. >添加</el-button
  5906. >
  5907. <el-button
  5908. type="primary"
  5909. size="small"
  5910. @click="deleteTcheckList(testJson.testJson[index1])"
  5911. v-if="testJson.testJson[index1].testItem != 1"
  5912. >删除
  5913. </el-button>
  5914. </div>
  5915. </div>
  5916. </div>
  5917. </div>
  5918. </div>
  5919. <span slot="footer" class="dialog-footer">
  5920. <el-button @click="dialogVisibleChoice = false">取 消</el-button>
  5921. <el-button type="primary" @click="addTest">确 定</el-button>
  5922. </span>
  5923. </el-dialog>
  5924. <el-dialog
  5925. title="添加工具"
  5926. :visible.sync="dialogVisible4"
  5927. :append-to-body="true"
  5928. width="600px"
  5929. :before-close="handleClose"
  5930. class="dialog_diy addToolsDia"
  5931. >
  5932. <div class="toolChoose" style="padding: 0 0 0 30px">
  5933. <div class="tools">
  5934. <div
  5935. class="leftTools"
  5936. style="
  5937. width: 95%;
  5938. padding: 0 0 15px 0;
  5939. border-bottom: 1px solid #efefef;
  5940. margin-bottom: 15px;
  5941. "
  5942. v-for="(itemTools, itemToolsIndex) in chapTools"
  5943. :key="itemToolsIndex"
  5944. >
  5945. <div
  5946. style="
  5947. display: flex;
  5948. flex-direction: row;
  5949. align-items: baseline;
  5950. flex-wrap: nowrap;
  5951. justify-content: flex-start;
  5952. position: relative;
  5953. "
  5954. >
  5955. <div class="chooseWho">
  5956. <div
  5957. :class="chapToolsType == 0 ? 'isChooseActive' : ''"
  5958. @click="chapToolsType = 0"
  5959. >
  5960. 互动类
  5961. </div>
  5962. <div
  5963. :class="chapToolsType == 1 ? 'isChooseActive' : ''"
  5964. @click="chapToolsType = 1"
  5965. >
  5966. 思维类
  5967. </div>
  5968. <div
  5969. :class="chapToolsType == 2 ? 'isChooseActive' : ''"
  5970. @click="chapToolsType = 2"
  5971. >
  5972. 评价类
  5973. </div>
  5974. <div
  5975. :class="chapToolsType == 2 ? 'isChooseActive' : ''"
  5976. @click="chapToolsType = 2"
  5977. >
  5978. 其他
  5979. </div>
  5980. </div>
  5981. </div>
  5982. <div style="min-height: 163px">
  5983. <div class="toolSort" v-if="chapToolsType == 0">
  5984. <div class="tool">
  5985. <div class="whiteBIcon" @click="chapAddTools(8)">
  5986. <img
  5987. src="../../../assets/icon/secondToolList/library.png"
  5988. alt
  5989. />
  5990. <div style="margin: 5px 0">素材库</div>
  5991. </div>
  5992. <div class="check" @click="chapAddTools(8)">
  5993. <img
  5994. src="../../../assets/icon/checkNo.png"
  5995. alt
  5996. v-if="itemTools.tools.indexOf(8) == -1"
  5997. />
  5998. <div class="checkDiv" v-else>
  5999. <img src="../../../assets/icon/checkedIs.png" alt /><span
  6000. >已选择</span
  6001. >
  6002. </div>
  6003. </div>
  6004. </div>
  6005. </div>
  6006. <div class="toolSort" v-if="chapToolsType == 1">
  6007. <div class="tool">
  6008. <div class="whiteBIcon" @click="chapAddTools(7)">
  6009. <img
  6010. src="../../../assets/icon/secondToolList/mindNetwork.png"
  6011. alt
  6012. />
  6013. <div style="margin: 5px 0">思维网格</div>
  6014. </div>
  6015. <div class="check" @click="chapAddTools(7)">
  6016. <img
  6017. src="../../../assets/icon/checkNo.png"
  6018. alt
  6019. v-if="itemTools.tools.indexOf(7) == -1"
  6020. />
  6021. <div class="checkDiv" v-else>
  6022. <img src="../../../assets/icon/checkedIs.png" alt /><span
  6023. >已选择</span
  6024. >
  6025. </div>
  6026. </div>
  6027. </div>
  6028. <div class="tool">
  6029. <div class="whiteBIcon" @click="chapAddTools(1)">
  6030. <img
  6031. src="../../../assets/icon/secondToolList/whiteBoard.png"
  6032. alt
  6033. />
  6034. <div style="margin: 5px 0">电子白板</div>
  6035. </div>
  6036. <div class="check" @click="chapAddTools(1)">
  6037. <img
  6038. src="../../../assets/icon/checkNo.png"
  6039. alt
  6040. v-if="itemTools.tools.indexOf(1) == -1"
  6041. />
  6042. <div class="checkDiv" v-else>
  6043. <img src="../../../assets/icon/checkedIs.png" alt /><span
  6044. >已选择</span
  6045. >
  6046. </div>
  6047. </div>
  6048. </div>
  6049. <div class="tool">
  6050. <div class="whiteBIcon" @click="chapAddTools(2)">
  6051. <img
  6052. src="../../../assets/icon/secondToolList/note.png"
  6053. alt
  6054. />
  6055. <div style="margin: 5px 0">便签</div>
  6056. </div>
  6057. <div class="check" @click="chapAddTools(2)">
  6058. <img
  6059. src="../../../assets/icon/checkNo.png"
  6060. alt
  6061. v-if="itemTools.tools.indexOf(2) == -1"
  6062. />
  6063. <div class="checkDiv" v-else>
  6064. <img src="../../../assets/icon/checkedIs.png" alt /><span
  6065. >已选择</span
  6066. >
  6067. </div>
  6068. </div>
  6069. </div>
  6070. <div class="tool">
  6071. <div class="whiteBIcon" @click="chapAddTools(6)">
  6072. <img
  6073. src="../../../assets/icon/secondToolList/doc.png"
  6074. alt
  6075. />
  6076. <div style="margin: 5px 0">协同文档</div>
  6077. </div>
  6078. <div class="check" @click="chapAddTools(6)">
  6079. <img
  6080. src="../../../assets/icon/checkNo.png"
  6081. alt
  6082. v-if="itemTools.tools.indexOf(6) == -1"
  6083. />
  6084. <div class="checkDiv" v-else>
  6085. <img src="../../../assets/icon/checkedIs.png" alt /><span
  6086. >已选择</span
  6087. >
  6088. </div>
  6089. </div>
  6090. </div>
  6091. <div class="tool">
  6092. <div class="whiteBIcon" @click="chapAddTools(3)">
  6093. <img
  6094. src="../../../assets/icon/secondToolList/mindMapping.png"
  6095. alt
  6096. />
  6097. <div style="margin: 5px 0">思维导图</div>
  6098. </div>
  6099. <div class="check" @click="chapAddTools(3)">
  6100. <img
  6101. src="../../../assets/icon/checkNo.png"
  6102. alt
  6103. v-if="itemTools.tools.indexOf(3) == -1"
  6104. />
  6105. <div class="checkDiv" v-else>
  6106. <img src="../../../assets/icon/checkedIs.png" alt /><span
  6107. >已选择</span
  6108. >
  6109. </div>
  6110. </div>
  6111. </div>
  6112. <div class="tool">
  6113. <div class="whiteBIcon" @click="chapAddTools(31)">
  6114. <img
  6115. src="../../../assets/icon/secondToolList/networkPanel.png"
  6116. alt
  6117. />
  6118. <div style="margin: 5px 0">数学画板</div>
  6119. </div>
  6120. <div class="check" @click="chapAddTools(31)">
  6121. <img
  6122. src="../../../assets/icon/checkNo.png"
  6123. alt
  6124. v-if="itemTools.tools.indexOf(31) == -1"
  6125. />
  6126. <div class="checkDiv" v-else>
  6127. <img src="../../../assets/icon/checkedIs.png" alt /><span
  6128. >已选择</span
  6129. >
  6130. </div>
  6131. </div>
  6132. </div>
  6133. </div>
  6134. <div class="toolSort" v-if="chapToolsType == 2">
  6135. <div class="tool">
  6136. <div class="whiteBIcon" @click="chapAddTools(5)">
  6137. <img
  6138. src="../../../assets/icon/thirdToolList/score.png"
  6139. alt
  6140. />
  6141. <div style="margin: 5px 0">量规评分</div>
  6142. </div>
  6143. <div class="check" @click="chapAddTools(5)">
  6144. <img
  6145. src="../../../assets/icon/checkNo.png"
  6146. alt
  6147. v-if="itemTools.tools.indexOf(5) == -1"
  6148. />
  6149. <div class="checkDiv" v-else>
  6150. <img src="../../../assets/icon/checkedIs.png" alt /><span
  6151. >已选择</span
  6152. >
  6153. </div>
  6154. </div>
  6155. </div>
  6156. <div class="tool">
  6157. <div
  6158. class="whiteBIcon"
  6159. @click="openTools(chapCount, 4, null)"
  6160. >
  6161. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  6162. <div style="margin: 5px 0">问卷调查</div>
  6163. </div>
  6164. <div class="check" @click="chapAddTools(4)">
  6165. <img
  6166. src="../../../assets/icon/checkNo.png"
  6167. alt
  6168. v-if="itemTools.tools.indexOf(4) == -1"
  6169. />
  6170. <div class="checkDiv" v-else>
  6171. <img src="../../../assets/icon/checkedIs.png" alt /><span
  6172. >已选择</span
  6173. >
  6174. </div>
  6175. </div>
  6176. </div>
  6177. </div>
  6178. </div>
  6179. <div>
  6180. <input
  6181. type="text"
  6182. placeholder="添加工具描述"
  6183. class="binfo_input"
  6184. style="margin: 20px 0; width: 71.5% !important"
  6185. v-model="itemTools.toolDetail"
  6186. />
  6187. </div>
  6188. </div>
  6189. </div>
  6190. </div>
  6191. <span slot="footer" class="dialog-footer">
  6192. <el-button @click="dialogVisible4 = false">取 消</el-button>
  6193. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  6194. </span>
  6195. </el-dialog>
  6196. <el-dialog
  6197. title="添加问答"
  6198. :visible.sync="dialogVisible8"
  6199. :append-to-body="true"
  6200. width="500px"
  6201. :before-close="handleClose"
  6202. class="dialog_diy"
  6203. >
  6204. <div>
  6205. <div
  6206. class="a_add_title"
  6207. style="
  6208. display: flex;
  6209. flex-direction: column;
  6210. align-items: flex-start;
  6211. justify-content: center;
  6212. "
  6213. >
  6214. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  6215. <el-input
  6216. v-model="answerQ"
  6217. placeholder="请输入您要问的问题"
  6218. ></el-input>
  6219. </div>
  6220. </div>
  6221. <span slot="footer" class="dialog-footer">
  6222. <el-button @click="dialogVisible8 = false">取 消</el-button>
  6223. <el-button type="primary" @click="addAnswer">确 定</el-button>
  6224. </span>
  6225. </el-dialog>
  6226. <el-dialog
  6227. title="添加问题"
  6228. :visible.sync="dialogVisibleMp3"
  6229. :append-to-body="true"
  6230. width="500px"
  6231. :before-close="handleClose"
  6232. class="dialog_diy"
  6233. >
  6234. <div>
  6235. <div
  6236. class="a_add_title"
  6237. style="
  6238. display: flex;
  6239. flex-direction: column;
  6240. align-items: flex-start;
  6241. justify-content: center;
  6242. "
  6243. >
  6244. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  6245. <el-input
  6246. v-model="answerQ"
  6247. placeholder="请输入您想要回答的问题"
  6248. ></el-input>
  6249. </div>
  6250. </div>
  6251. <span slot="footer" class="dialog-footer">
  6252. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  6253. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  6254. </span>
  6255. </el-dialog>
  6256. <el-dialog
  6257. title="上传图片"
  6258. :visible.sync="choosePicVisible"
  6259. :append-to-body="true"
  6260. width="500px"
  6261. :before-close="handleClose"
  6262. class="dialog_diy"
  6263. >
  6264. <div>
  6265. <div class="fileCss" style="padding-top: 20px">
  6266. <div>
  6267. <button class="info_btn" @click="addImg($event)">
  6268. 选择本地文件
  6269. <input
  6270. type="file"
  6271. accept="image/*"
  6272. style="display: none"
  6273. @change="beforeUpload1"
  6274. />
  6275. </button>
  6276. </div>
  6277. <div>
  6278. <el-button
  6279. @click="getAllBanner"
  6280. v-if="isSysPic == false && cover.length == 0"
  6281. >选择系统文件</el-button
  6282. >
  6283. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  6284. <img :src="cover[0].url" alt="" />
  6285. <div class="deletePic" @click="deleteSysPic">
  6286. <img src="../../../assets/icon/delete.png" alt="" />
  6287. </div>
  6288. </div>
  6289. </div>
  6290. </div>
  6291. <div class="fileCss">
  6292. <div>选择本地文件</div>
  6293. <div>选择系统文件</div>
  6294. </div>
  6295. </div>
  6296. <span slot="footer" class="dialog-footer">
  6297. <el-button @click="choosePicVisible = false">取 消</el-button>
  6298. <el-button type="primary" @click="choosePicVisible = false"
  6299. >确 定</el-button
  6300. >
  6301. </span>
  6302. </el-dialog>
  6303. <el-dialog
  6304. title="选择系统文件"
  6305. :visible.sync="sysPicVisible"
  6306. :append-to-body="true"
  6307. width="710px"
  6308. :before-close="handleClose"
  6309. class="dialog_diy"
  6310. >
  6311. <div class="cru_selectBox" style="margin: 0">
  6312. <div
  6313. @click="getChoosePic(1)"
  6314. class="cru_select"
  6315. :class="chooseType == 1 ? 'cru_selected' : ''"
  6316. >
  6317. 绘画
  6318. </div>
  6319. <div
  6320. @click="getChoosePic(2)"
  6321. class="cru_select"
  6322. :class="chooseType == 2 ? 'cru_selected' : ''"
  6323. >
  6324. 科技
  6325. </div>
  6326. <div
  6327. @click="getChoosePic(3)"
  6328. class="cru_select"
  6329. :class="chooseType == 3 ? 'cru_selected' : ''"
  6330. >
  6331. 人文
  6332. </div>
  6333. <div
  6334. @click="getChoosePic(4)"
  6335. class="cru_select"
  6336. :class="chooseType == 4 ? 'cru_selected' : ''"
  6337. >
  6338. 艺术
  6339. </div>
  6340. </div>
  6341. <div class="sysPicBox">
  6342. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  6343. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  6344. </div>
  6345. </div>
  6346. <span slot="footer" class="dialog-footer">
  6347. <el-button @click="sysPicVisible = false">取 消</el-button>
  6348. <el-button type="primary">确 定</el-button>
  6349. </span>
  6350. </el-dialog>
  6351. <el-dialog
  6352. title="选择填空"
  6353. :visible.sync="dialogVisibleSelect"
  6354. :append-to-body="true"
  6355. width="800px"
  6356. :before-close="handleClose"
  6357. class="dialog_diy dialog_diy3"
  6358. >
  6359. <div v-if="selectJson">
  6360. <div class="select_box1" v-if="selectSteps == 1">
  6361. <div class="select_box1_img">
  6362. <div class="select_box1_title">
  6363. <span>上传题目图片</span
  6364. ><span>提示:请将题目以图片的方式上传</span>
  6365. </div>
  6366. <div class="select_box1_add_img">
  6367. <div
  6368. class="uploadFm"
  6369. @click="addImg($event)"
  6370. v-if="!selectJson.url"
  6371. >
  6372. <input
  6373. type="file"
  6374. accept="image/*"
  6375. style="display: none"
  6376. @change="beforeUploadSelect"
  6377. />
  6378. <img src="../../../assets/icon/addPoster.png" alt="" />
  6379. </div>
  6380. <div class="isSysPic" v-else>
  6381. <img :src="selectJson.url" alt="" />
  6382. <div class="deletePic" @click="deleteSelectPic">
  6383. <img src="../../../assets/icon/delete.png" alt="" />
  6384. </div>
  6385. </div>
  6386. </div>
  6387. </div>
  6388. <div class="select_box1_select">
  6389. <div class="select_box1_title">
  6390. <span>添加选项</span><span>提示:请输入题目选项</span>
  6391. </div>
  6392. <div class="select_box1_select_box">
  6393. <el-input
  6394. v-for="(item2, checkIndex) in selectJson.select"
  6395. :key="checkIndex"
  6396. v-model="selectJson.select[checkIndex]"
  6397. placeholder="请输入选项..."
  6398. style="width: 150px; margin: 10px 10px 0 0"
  6399. ></el-input>
  6400. <div class="select_box1_select_box_add">
  6401. <el-button
  6402. style="margin: 10px 0px 0 0"
  6403. type="primary"
  6404. size="small"
  6405. @click="addSelectList(selectJson)"
  6406. >
  6407. 添加</el-button
  6408. >
  6409. <el-button
  6410. type="primary"
  6411. size="small"
  6412. style="margin: 10px 0 0 0"
  6413. @click="deleteSelectList(selectJson)"
  6414. v-if="selectJson.select && selectJson.select.length > 0"
  6415. >删除</el-button
  6416. >
  6417. </div>
  6418. </div>
  6419. </div>
  6420. </div>
  6421. <div v-if="selectSteps == 2">
  6422. <div class="select_box2">
  6423. <div class="select_box2_title">设置答案</div>
  6424. <div class="select_box2_box">
  6425. <div class="select_box2_img">
  6426. <img :src="selectJson.url" alt="" />
  6427. </div>
  6428. <div class="select_box2_answer">
  6429. <div class="select_answer_title">根据题目选择对应答案</div>
  6430. <div
  6431. class="select_box2_answer_box"
  6432. v-for="(item2, checkIndex) in selectJson.select"
  6433. :key="checkIndex"
  6434. >
  6435. <span>{{ checkIndex + 1 }}、</span>
  6436. <el-select
  6437. v-model="selectJson.answer[checkIndex]"
  6438. placeholder="请选择正确答案"
  6439. >
  6440. <el-option
  6441. v-for="(e, eIndex) in selectJson.select"
  6442. :key="eIndex"
  6443. :label="e"
  6444. :value="eIndex"
  6445. >
  6446. </el-option>
  6447. </el-select>
  6448. </div>
  6449. </div>
  6450. </div>
  6451. </div>
  6452. </div>
  6453. </div>
  6454. <span slot="footer" class="dialog-footer">
  6455. <el-button
  6456. type="primary"
  6457. @click="nextSelectSteps()"
  6458. v-if="selectSteps == 1"
  6459. >下一步</el-button
  6460. >
  6461. <el-button @click="selectSteps--" v-if="selectSteps == 2"
  6462. >上一步</el-button
  6463. >
  6464. <el-button
  6465. type="primary"
  6466. @click="addSelectAnswer"
  6467. v-if="selectSteps == 2"
  6468. >确 定</el-button
  6469. >
  6470. </span>
  6471. </el-dialog>
  6472. <el-dialog
  6473. title="添加评价"
  6474. :visible.sync="dialogVisibleRate"
  6475. :append-to-body="true"
  6476. width="650px"
  6477. :before-close="handleClose"
  6478. class="dialog_diy"
  6479. >
  6480. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  6481. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  6482. <div class="pjCss" style="width: 100%">
  6483. <div
  6484. v-if="rateJson.length"
  6485. class="elist_input"
  6486. style="height: 360px; overflow: auto"
  6487. >
  6488. <div
  6489. v-for="(eItem, eIndex) in rateJson"
  6490. :key="eIndex"
  6491. class="elist_input_box"
  6492. >
  6493. <span style="min-width: 100px; text-align: right"
  6494. >个人评价指标:</span
  6495. >
  6496. <input
  6497. type="input"
  6498. v-model="eItem.value"
  6499. placeholder="填写评价名称"
  6500. />
  6501. <div class="remove" @click="deletRateList(eIndex)"></div>
  6502. <div style="width: 100%; display: flex">
  6503. <span style="min-width: 100px; text-align: right"
  6504. >评星等级:</span
  6505. >
  6506. <el-rate v-model="eItem.score" disabled></el-rate>
  6507. </div>
  6508. <div class="elist_inptu_text" style="align-items: flex-start">
  6509. <span style="min-width: 100px; text-align: right">描述:</span>
  6510. <textarea
  6511. class="rate_textarea"
  6512. :rows="3"
  6513. v-model="eItem.detail"
  6514. placeholder="填写评价描述"
  6515. ></textarea>
  6516. </div>
  6517. </div>
  6518. </div>
  6519. <div class="addToolFun" @click="addRateList()">
  6520. <div class="addToolImg">
  6521. <img src="../../../assets/icon/add.png" alt />
  6522. </div>
  6523. <div>添加</div>
  6524. </div>
  6525. </div>
  6526. </div>
  6527. <span slot="footer" class="dialog-footer">
  6528. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  6529. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  6530. </span>
  6531. </el-dialog>
  6532. <el-dialog
  6533. title="连词成句设置"
  6534. :visible.sync="dialogVisibleSentence"
  6535. :append-to-body="true"
  6536. width="1000px"
  6537. :before-close="handleClose"
  6538. class="dialog_diy dialog_diy3"
  6539. >
  6540. <div>
  6541. <div class="sentenBox">
  6542. <div class="addSen" @click="addSt">添加题目</div>
  6543. <div
  6544. v-for="(st, stIndex) in sentenceList"
  6545. :key="stIndex"
  6546. style="padding-bottom: 20px"
  6547. >
  6548. <div class="sentenTopBox">
  6549. <div class="sentenTop">
  6550. <div>题目设置</div>
  6551. <div>
  6552. <el-input
  6553. placeholder="请输入卡片内容"
  6554. v-model="st.sentenceTitle"
  6555. ></el-input>
  6556. </div>
  6557. <div @click="addSen(stIndex)">添加</div>
  6558. </div>
  6559. <div
  6560. class="remove1"
  6561. v-if="sentenceList.length > 1"
  6562. @click="deleteSentence(stIndex)"
  6563. ></div>
  6564. </div>
  6565. <div class="cardList">
  6566. <div v-if="st.addSentence.length > 0" class="cardBox">
  6567. <div
  6568. class="isCard"
  6569. v-for="(s, sIndex) in st.addSentence"
  6570. :key="sIndex"
  6571. @click="setRightAnswer(s, stIndex, sIndex)"
  6572. >
  6573. <el-tooltip
  6574. class="item"
  6575. effect="light"
  6576. :content="s"
  6577. placement="top"
  6578. >
  6579. <div>{{ s }}</div>
  6580. </el-tooltip>
  6581. <div
  6582. class="deleteWord"
  6583. @click.stop="deleteS(s, stIndex, sIndex)"
  6584. >
  6585. <img src="../../../assets/icon/delete.png" alt="" />
  6586. </div>
  6587. </div>
  6588. </div>
  6589. <div class="card">
  6590. <img
  6591. src="../../../assets/icon/conSentences/noTitle.png"
  6592. alt=""
  6593. />
  6594. </div>
  6595. </div>
  6596. <div class="rightCardBox">
  6597. <div>正确顺序</div>
  6598. <div class="rightCardList">
  6599. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  6600. <div
  6601. v-for="(r, rIndex) in st.rightAnswer"
  6602. :key="rIndex"
  6603. class="cardCss"
  6604. >
  6605. <div
  6606. class="isCard1"
  6607. @click="returnCard(r, stIndex, rIndex)"
  6608. >
  6609. <el-tooltip
  6610. class="item"
  6611. effect="light"
  6612. :content="r"
  6613. placement="top"
  6614. >
  6615. <div>{{ r }}</div>
  6616. </el-tooltip>
  6617. </div>
  6618. <div>{{ rIndex + 1 }}</div>
  6619. </div>
  6620. </div>
  6621. <div class="card" v-if="st.rightAnswer.length == 0">
  6622. <img
  6623. src="../../../assets/icon/conSentences/noAnswer.png"
  6624. alt=""
  6625. />
  6626. </div>
  6627. </div>
  6628. </div>
  6629. </div>
  6630. </div>
  6631. </div>
  6632. <span slot="footer" class="dialog-footer">
  6633. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  6634. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  6635. </span>
  6636. </el-dialog>
  6637. <el-dialog
  6638. title="添加表格"
  6639. :visible.sync="dialogVisibleTable"
  6640. :append-to-body="true"
  6641. width="95%"
  6642. :before-close="handleClose"
  6643. class="dialog_diy"
  6644. >
  6645. <el-form>
  6646. <!-- <el-form-item label="文本标题">
  6647. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  6648. </el-form-item> -->
  6649. <div>表格内容</div>
  6650. <Table v-model="tableJson.text" @change="change"></Table>
  6651. </el-form>
  6652. <span slot="footer" class="dialog-footer">
  6653. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  6654. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  6655. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  6656. </span>
  6657. </el-dialog>
  6658. <el-dialog
  6659. title="添加文档"
  6660. :visible.sync="dialogVisibleWord"
  6661. :append-to-body="true"
  6662. width="800px"
  6663. :before-close="handleClose"
  6664. class="dialog_diy"
  6665. >
  6666. <el-form>
  6667. <!-- <el-form-item label="文本标题">
  6668. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  6669. </el-form-item> -->
  6670. <div>文档内容</div>
  6671. <editor-bar v-model="wordJson.text"></editor-bar>
  6672. </el-form>
  6673. <span slot="footer" class="dialog-footer">
  6674. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  6675. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  6676. </span>
  6677. </el-dialog>
  6678. <el-dialog
  6679. title="添加班级"
  6680. :visible.sync="dialogVisibleMoreUpload"
  6681. :append-to-body="true"
  6682. width="30%"
  6683. :before-close="handleClose"
  6684. class="dialog_diy"
  6685. >
  6686. <div
  6687. style="
  6688. width: 100%;
  6689. display: flex;
  6690. flex-direction: row;
  6691. flex-wrap: nowrap;
  6692. align-items: center;
  6693. justify-content: center;
  6694. "
  6695. >
  6696. <div>班级:</div>
  6697. <el-select multiple v-model="uploadJson" placeholder="请选择">
  6698. <el-option
  6699. v-for="item in classJuri"
  6700. :key="item.id"
  6701. :label="item.name"
  6702. :value="item.id"
  6703. >
  6704. </el-option>
  6705. </el-select>
  6706. </div>
  6707. <span slot="footer" class="dialog-footer">
  6708. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  6709. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  6710. </span>
  6711. </el-dialog>
  6712. <el-dialog
  6713. title="设置随机码"
  6714. :visible.sync="dialogVisibleInvite"
  6715. :append-to-body="true"
  6716. width="360px"
  6717. :before-close="handleClose"
  6718. class="dialog_diy"
  6719. >
  6720. <div
  6721. style="
  6722. width: 100%;
  6723. display: flex;
  6724. flex-direction: row;
  6725. flex-wrap: nowrap;
  6726. align-items: center;
  6727. justify-content: center;
  6728. "
  6729. >
  6730. <div>随机码:</div>
  6731. <el-input
  6732. v-model="icode"
  6733. style="width: 240px"
  6734. placeholder="请输入随机码"
  6735. ></el-input>
  6736. </div>
  6737. <span slot="footer" class="dialog-footer">
  6738. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  6739. <el-button type="primary" @click="addInvite">确定</el-button>
  6740. </span>
  6741. </el-dialog>
  6742. <el-dialog
  6743. title="添加预设时间"
  6744. :visible.sync="dialogVisiblePreTime"
  6745. :append-to-body="true"
  6746. width="30%"
  6747. :before-close="handleClose"
  6748. class="dialog_diy"
  6749. >
  6750. <div>
  6751. <Time
  6752. :preTime="preTime"
  6753. @updateTimeNum="updateTime"
  6754. v-if="dialogVisiblePreTime"
  6755. ></Time>
  6756. </div>
  6757. <span slot="footer" class="dialog-footer">
  6758. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  6759. <el-button type="primary" @click="addPreTime">确定</el-button>
  6760. </span>
  6761. </el-dialog>
  6762. <el-dialog
  6763. title="导入目标"
  6764. :visible.sync="dialogVisiblemb"
  6765. :append-to-body="true"
  6766. width="70%"
  6767. :before-close="handleClose"
  6768. class="dialog_diy"
  6769. >
  6770. <div>
  6771. <div
  6772. style="
  6773. width: 100%;
  6774. display: flex;
  6775. flex-direction: row;
  6776. flex-wrap: nowrap;
  6777. align-content: center;
  6778. align-items: center;
  6779. justify-content: space-between;
  6780. "
  6781. >
  6782. <div
  6783. style="
  6784. display: flex;
  6785. flex-flow: row nowrap;
  6786. align-items: flex-start;
  6787. width: 100%;
  6788. flex-direction: column;
  6789. flex-wrap: nowrap;
  6790. position: relative;
  6791. "
  6792. >
  6793. <div class="e_box">
  6794. <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  6795. <div class="e_card_picture">
  6796. <img src="../../../assets/e_picture.png" />
  6797. </div>
  6798. <div class="e_card_name">
  6799. <span>{{ item.title }}</span>
  6800. </div>
  6801. <div class="e_card_btn">
  6802. <span @click="checkEva(item.id, 2)">导入</span>
  6803. </div>
  6804. </div>
  6805. <div class="addEva" @click="openT">
  6806. <img src="../../../assets/icon/addEva.png" alt="" />
  6807. </div>
  6808. <div
  6809. v-if="evaJuri.length === 0"
  6810. style="margin: 0 auto; color: #6e6e6e"
  6811. >
  6812. 暂无数据
  6813. </div>
  6814. </div>
  6815. </div>
  6816. </div>
  6817. </div>
  6818. <span slot="footer" class="dialog-footer">
  6819. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  6820. </span>
  6821. </el-dialog>
  6822. <el-dialog
  6823. title="分组设置"
  6824. :visible.sync="dialogVisibleGroup"
  6825. :append-to-body="true"
  6826. width="650px"
  6827. :before-close="handleClose"
  6828. class="dialog_diy"
  6829. >
  6830. <div class="groupBox">
  6831. <div v-if="groupJson.group" class="groupContent">
  6832. <div class="groupTitle">请设置小组数量</div>
  6833. <div
  6834. v-for="(item, index) in groupJson.group"
  6835. :key="index"
  6836. class="groupName"
  6837. >
  6838. <span class="groupn">组{{ index + 1 }}名称:</span>
  6839. <el-input
  6840. v-model="item.name"
  6841. placeholder="请输入名称..."
  6842. style="width: 250px"
  6843. ></el-input>
  6844. <div class="groupBtn">
  6845. <el-button type="primary" size="small" @click="addGroup(index)">
  6846. 添加</el-button
  6847. >
  6848. <el-button
  6849. type="primary"
  6850. size="small"
  6851. @click="deleteGroup(index)"
  6852. v-if="groupJson.group && groupJson.group.length > 1"
  6853. >删除</el-button
  6854. >
  6855. </div>
  6856. </div>
  6857. </div>
  6858. <div class="groupContent">
  6859. <div class="groupTitle">请设置每组人数数量</div>
  6860. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  6861. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  6862. <el-input-number
  6863. v-model="groupJson.number"
  6864. :controls="false"
  6865. :min="2"
  6866. :max="10"
  6867. placeholder="2-10人以内"
  6868. ></el-input-number>
  6869. </div>
  6870. </div>
  6871. <span slot="footer" class="dialog-footer">
  6872. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  6873. <el-button type="primary" @click="addGroupJson">确定</el-button>
  6874. </span>
  6875. </el-dialog>
  6876. <interVideo
  6877. :dialogVisibleVideo.sync="dialogVisibleVideo"
  6878. :videoJson="videoJson"
  6879. @add="addVideoJson"
  6880. ></interVideo>
  6881. </div>
  6882. </template>
  6883. <script>
  6884. import "../../../common/aws-sdk-2.235.1.min.js";
  6885. import $ from "jquery";
  6886. import EditorBar from "../../../components/tools/wangEnduit";
  6887. import Table from "../../../components/tools/table";
  6888. import Mind from "../../tools/jsmind2";
  6889. import Time from "../../tools/time.vue";
  6890. import Sunburst from "../../tools/sunburst";
  6891. import SeeBoard from "../../tools/seeBoard";
  6892. import weilaiData from "../components/weilai.js";
  6893. import sourceDialog from "../teacherSource/dialog.vue";
  6894. import interVideo from "../interVideo/index.vue";
  6895. export default {
  6896. components: {
  6897. EditorBar,
  6898. Mind,
  6899. Time,
  6900. Sunburst,
  6901. SeeBoard,
  6902. Table,
  6903. sourceDialog,
  6904. interVideo,
  6905. },
  6906. data() {
  6907. return {
  6908. checkAll: false,
  6909. chooseType: 1,
  6910. checkedCities: [],
  6911. isIndeterminate: true,
  6912. isSysPic: false,
  6913. steps: 1,
  6914. nbOrder: 0,
  6915. courseId: "",
  6916. chapToolsType: 0,
  6917. chapTools: [
  6918. {
  6919. tools: [],
  6920. toolDetail: "",
  6921. },
  6922. ],
  6923. line: "",
  6924. lineTitle: "",
  6925. sysPic: [],
  6926. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  6927. isPushTitleList: [],
  6928. lineCount: 0,
  6929. lineType: 0,
  6930. chapCount: 0,
  6931. courseName: "",
  6932. isTeacherSee: true,
  6933. courseText: "",
  6934. preTime: 0,
  6935. formLabelWidth: "100px",
  6936. choosePicVisible: false,
  6937. sysPicVisible: false,
  6938. uploadLoading1: false,
  6939. noneBtnImg: false,
  6940. updateBoolean2: false,
  6941. unitIndex: 0,
  6942. taskCount: 0,
  6943. dialogVisible: false,
  6944. dialogVisible1: false,
  6945. dialogVisible2: false,
  6946. dialogVisible3: false,
  6947. dialogVisible4: false,
  6948. dialogVisible5: false,
  6949. dialogVisible6: false,
  6950. dialogVisible7: false,
  6951. dialogVisible8: false,
  6952. dialogVisible9: false,
  6953. dialogVisibleClass: false,
  6954. dialogVisibleMember: false,
  6955. dialogVisibleMp3: false,
  6956. dialogVisibleSelect: false,
  6957. dialogVisibleSentence: false,
  6958. dialogVisibleRate: false,
  6959. dialogVisibleChoice: false,
  6960. dialogVisiblemb: false,
  6961. dialogVisibleInvite: false,
  6962. dialogVisibleSource: false,
  6963. dialogVisibleVideo: false,
  6964. isClickColor: 0,
  6965. publicTool: 0,
  6966. searchPeople: "",
  6967. searchTN: "",
  6968. userid: this.$route.query.userid,
  6969. oid: this.$route.query.oid,
  6970. org: this.$route.query.org,
  6971. role: this.$route.query.role,
  6972. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  6973. dialogVisibleTable: false,
  6974. dialogVisibleWord: false,
  6975. tableJson: { text: "" },
  6976. wordJson: { text: "" },
  6977. dialogVisibleMoreUpload: false,
  6978. dialogVisiblePreTime: false,
  6979. uploadJson: [],
  6980. classJuri: [],
  6981. cover: [], //课程封面
  6982. myWord: [],
  6983. evaJuri: [],
  6984. evalua: "",
  6985. targetArray: [],
  6986. eTitle: "",
  6987. eJson: {},
  6988. fid: "", //一级
  6989. sid: "", //二级
  6990. tid: "", //二级
  6991. typeMode: 1,
  6992. eJSONNum: 0,
  6993. data: {
  6994. meta: {
  6995. name: "example",
  6996. author: "dd@163.com",
  6997. version: "0.2",
  6998. },
  6999. format: "node_array",
  7000. data: [{ id: "root", isroot: true, topic: "" }],
  7001. },
  7002. askJson: {
  7003. askCount: 1,
  7004. askTitle: "",
  7005. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7006. },
  7007. testJson: {},
  7008. selectJson: {},
  7009. rateJson: [],
  7010. unitJson2: [],
  7011. unitJson: [
  7012. {
  7013. dyName: "", //单元标题
  7014. chapterInfo: [
  7015. {
  7016. isread: false,
  7017. chapterid: this.guid(),
  7018. title: "",
  7019. courseName: "",
  7020. taskJson: [
  7021. {
  7022. task: "",
  7023. taskDetail: "",
  7024. chapterData: [],
  7025. toolChoose: [
  7026. {
  7027. tool: [],
  7028. toolDetail: "",
  7029. toolType: 1,
  7030. askCount: 1,
  7031. askTitle: "",
  7032. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7033. },
  7034. ],
  7035. toolText: "",
  7036. isShowTools: false,
  7037. askCount: 1,
  7038. isFold: 0,
  7039. askTitle: "",
  7040. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7041. checkJson: [{ checkCount: [], checkPerent: [] }],
  7042. homeworkList: [],
  7043. },
  7044. ],
  7045. itemCount: 1,
  7046. fileList1: [],
  7047. video: [],
  7048. testData: [],
  7049. pData: [],
  7050. templateArray: [],
  7051. },
  7052. ],
  7053. },
  7054. ],
  7055. studentJuri: [],
  7056. teacherJuri: [],
  7057. checkboxList: [],
  7058. checkboxList2: [],
  7059. checkboxList3: [],
  7060. classSearch: "",
  7061. number: "",
  7062. tTitle: "",
  7063. tdetail: "",
  7064. templateC: {},
  7065. AttText: {},
  7066. AttTextType: 0,
  7067. AttTextIndex: 0,
  7068. cTemplate: "",
  7069. CourseType: [],
  7070. CourseType2: [],
  7071. CourseTypeJson: {},
  7072. courseTypeId: [],
  7073. courseTypeSon: [],
  7074. clearArray: [],
  7075. pTypeCheck: [],
  7076. pTypeCheckName: [],
  7077. loading: false,
  7078. toolType: 1,
  7079. inputShow: true,
  7080. inputShow2: true,
  7081. toolIndex: 0,
  7082. cidType: 0,
  7083. answerQ: "",
  7084. grade: [],
  7085. grade2: [],
  7086. courseUserid: "",
  7087. timer: null,
  7088. timer2: null,
  7089. checkId: "",
  7090. isDelete: 1,
  7091. addindex: 0,
  7092. selectSteps: 1,
  7093. groupJson: {},
  7094. dialogVisibleGroup: false,
  7095. rightBoxHeight: 0,
  7096. ManAarray: [],
  7097. checkBoolean: false,
  7098. inviteCode: [],
  7099. inviteId: "",
  7100. icode: "",
  7101. easyArray: [2, 4],
  7102. sourceData: {},
  7103. videoJson: {},
  7104. };
  7105. },
  7106. computed: {
  7107. // rightBoxHeight: function () {
  7108. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  7109. // },
  7110. offsetLetfPx: function () {
  7111. //addnum可以直接在模板语法里面用,相当于data内的值
  7112. return (
  7113. $(".cru_select")[this.unitIndex] &&
  7114. $(".cru_select")[this.unitIndex].offsetLeft
  7115. );
  7116. },
  7117. getMan2() {
  7118. return function (people) {
  7119. let _people = people;
  7120. let _people2 = "";
  7121. if (this.ManAarray.length) {
  7122. for (var i = 0; i < this.ManAarray.length; i++) {
  7123. if (this.ManAarray[i].userid == people) {
  7124. _people2 = this.ManAarray[i].name;
  7125. break;
  7126. }
  7127. }
  7128. }
  7129. if (people == this.courseUserid) {
  7130. return "";
  7131. }
  7132. return this.ManAarray.length ? _people2 : "";
  7133. };
  7134. },
  7135. isInvite() {
  7136. return function (cid) {
  7137. let array = [];
  7138. for (var i = 0; i < this.inviteCode.length; i++) {
  7139. array.push(this.inviteCode[i].cid);
  7140. }
  7141. return array.indexOf(cid) != -1;
  7142. };
  7143. },
  7144. getInviteCodeC() {
  7145. return function (cid) {
  7146. let array = [];
  7147. for (var i = 0; i < this.inviteCode.length; i++) {
  7148. array.push(this.inviteCode[i].cid);
  7149. }
  7150. return this.inviteCode[array.indexOf(cid)].ic;
  7151. };
  7152. },
  7153. getClassC() {
  7154. return function (c) {
  7155. let _c2 = "";
  7156. if (this.grade.length) {
  7157. for (var i = 0; i < this.grade.length; i++) {
  7158. if (this.grade[i].id == c) {
  7159. _c2 = this.grade[i].name;
  7160. break;
  7161. }
  7162. }
  7163. }
  7164. return this.grade.length ? _c2 : "";
  7165. };
  7166. },
  7167. },
  7168. watch: {
  7169. unitIndex(newValue, oldValue) {
  7170. if (this.isDelete == 2) {
  7171. this.isDelete = 1;
  7172. return;
  7173. }
  7174. if (this.cid != "") {
  7175. let _unitIndex = oldValue;
  7176. if (
  7177. JSON.stringify(this.unitJson2[_unitIndex]) ==
  7178. JSON.stringify(this.unitJson[_unitIndex])
  7179. ) {
  7180. this.$refs.rightboxR.scrollTop = 0;
  7181. return;
  7182. }
  7183. let cPan = 1;
  7184. for (
  7185. var j = 0;
  7186. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  7187. j++
  7188. ) {
  7189. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  7190. j
  7191. ].proVisible = false;
  7192. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  7193. j
  7194. ].proVisible2 = false;
  7195. if (
  7196. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  7197. .length > 1
  7198. ) {
  7199. for (
  7200. var z = 0;
  7201. z <
  7202. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  7203. .length;
  7204. z++
  7205. ) {
  7206. if (
  7207. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  7208. .toolChoose[z].tool.length
  7209. ) {
  7210. this.$message.error("请把工具添加完整");
  7211. cPan = 2;
  7212. break;
  7213. }
  7214. }
  7215. }
  7216. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  7217. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  7218. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  7219. (ele) => {
  7220. return ele.value != "";
  7221. }
  7222. );
  7223. }
  7224. }
  7225. if (cPan == 2) {
  7226. this.unitIndex = oldValue;
  7227. return;
  7228. }
  7229. for (var i = 0; i < this.unitJson.length; i++) {
  7230. if (this.addindex != i) {
  7231. delete this.unitJson[i].isUpdate;
  7232. }
  7233. }
  7234. this.$refs.rightboxR.scrollTop = 0;
  7235. this.addindex = -1;
  7236. let params = [
  7237. {
  7238. cid: this.cid,
  7239. chapters: JSON.stringify(this.unitJson),
  7240. uid: this.userid,
  7241. unitIndex: _unitIndex,
  7242. },
  7243. ];
  7244. this.ajax
  7245. .post(this.$store.state.api + "updateWorkNew4", params)
  7246. .then((res) => {
  7247. // this.$message({
  7248. // message: "修改成功",
  7249. // type: "success",
  7250. // });
  7251. // this.courseId = this.cid;
  7252. })
  7253. .catch((err) => {
  7254. this.$message.error("网络不佳");
  7255. console.error(err);
  7256. });
  7257. }
  7258. },
  7259. steps(newValue) {
  7260. if (newValue == 4) {
  7261. this.goTo(
  7262. "/course?userid=" +
  7263. this.userid +
  7264. "&oid=" +
  7265. this.oid +
  7266. "&org=" +
  7267. this.org +
  7268. "&role=" +
  7269. this.role
  7270. );
  7271. }
  7272. },
  7273. },
  7274. methods: {
  7275. setMan() {
  7276. // let teacherJuri = this.teacherJuri2;
  7277. this.ManAarray = [];
  7278. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  7279. if (_user.indexOf(this.courseUserid || this.userid) == -1) {
  7280. _user.push(this.courseUserid || this.userid);
  7281. }
  7282. let params = {
  7283. uid: _user.join(","),
  7284. };
  7285. this.ajax
  7286. .get(this.$store.state.api + "getAllUserById", params)
  7287. .then((res) => {
  7288. let teacherJuri = res.data[0];
  7289. this.ManAarray = teacherJuri;
  7290. })
  7291. .catch((err) => {
  7292. console.error(err);
  7293. });
  7294. },
  7295. previewImg(url) {
  7296. this.$hevueImgPreview(url);
  7297. },
  7298. scrollChange() {
  7299. this.rightBoxHeight = $(".rightBox")[0].scrollHeight;
  7300. // document.querySelector('.course_left').scrollHeight
  7301. // document.querySelector('.stepsBottom2').scrollHeight
  7302. let stepsBottom2 = $(".stepsBottom2")[0].clientHeight;
  7303. // let client = $(".course_left")[0].clientHeight - stepsBottom2
  7304. let client = $(".course_left")[0].clientHeight - stepsBottom2;
  7305. let top = $(".rightBox")[0].scrollTop - 400 - stepsBottom2;
  7306. // if (top < client) {
  7307. // $('.stepsBottom2')[0].style.position = 'absolute'
  7308. // $('.stepsBottom2')[0].style.top = 0 + 'px'
  7309. // // $('.stepsBottom2')[0].style.top = client + 'px'
  7310. // } else
  7311. if (top > 0) {
  7312. let top = $(".rightBox")[0].offsetTop;
  7313. $(".stepsBottom2")[0].style.position = "fixed";
  7314. $(".stepsBottom2")[0].style.top = top + "px";
  7315. // $('.stepsBottom2')[0].style.top = top + 'px'
  7316. } else {
  7317. $(".stepsBottom2")[0].style.position = "absolute";
  7318. $(".stepsBottom2")[0].style.top = "0px";
  7319. }
  7320. },
  7321. handleCheckAllChange(val) {
  7322. this.checkedCities = val ? cityOptions : [];
  7323. this.isIndeterminate = false;
  7324. },
  7325. handleCheckedCitiesChange(value) {
  7326. let checkedCount = value.length;
  7327. this.checkAll = checkedCount === this.cities.length;
  7328. this.isIndeterminate =
  7329. checkedCount > 0 && checkedCount < this.cities.length;
  7330. },
  7331. addHw(e) {
  7332. var el = e.currentTarget;
  7333. el.getElementsByTagName("input")[0].click();
  7334. },
  7335. change(val) {
  7336. console.log(val);
  7337. },
  7338. change2(val) {
  7339. console.log(val);
  7340. this.$forceUpdate();
  7341. },
  7342. handleClose(done) {
  7343. done();
  7344. },
  7345. imgChange2(i, j) {
  7346. var _tmp = this.testJson.testJson[i].checkList[j];
  7347. this.noneBtnImg = _tmp.length >= 1;
  7348. },
  7349. imgChange3(i) {
  7350. var _tmp = this.testJson.testJson[i];
  7351. this.noneBtnImg = _tmp.length >= 1;
  7352. },
  7353. imgChange1(file, fileList, type, itemTaskIndex) {
  7354. if (type == 1) {
  7355. var _tmp = this.cover;
  7356. } else if (
  7357. type == 2 ||
  7358. type == 3 ||
  7359. type == 6 ||
  7360. type == 7 ||
  7361. type == 8
  7362. ) {
  7363. var _tmp =
  7364. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7365. .chapterData;
  7366. } else if (type == 4) {
  7367. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  7368. } else {
  7369. var _tmp =
  7370. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7371. .homeworkList;
  7372. }
  7373. this.noneBtnImg = _tmp.length >= 1;
  7374. },
  7375. goTo(path) {
  7376. this.$router.push(path);
  7377. },
  7378. guid() {
  7379. var _num,
  7380. i,
  7381. _guid = "";
  7382. for (i = 0; i < 32; i++) {
  7383. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  7384. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  7385. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  7386. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  7387. _guid += "-";
  7388. }
  7389. }
  7390. return _guid;
  7391. },
  7392. lastSteps() {
  7393. this.goTo(
  7394. "/course?userid=" +
  7395. this.userid +
  7396. "&oid=" +
  7397. this.oid +
  7398. "&org=" +
  7399. this.org +
  7400. "&role=" +
  7401. this.role
  7402. );
  7403. },
  7404. nextSteps() {
  7405. if (this.cid == "" || this.cid == undefined) {
  7406. if (this.courseName == "") {
  7407. this.$message.error("请将信息填写完整");
  7408. return;
  7409. } else {
  7410. this.addWork();
  7411. }
  7412. } else {
  7413. if (this.courseName == "") {
  7414. this.$message.error("请将信息填写完整");
  7415. return;
  7416. } else {
  7417. if (this.userid != this.courseUserid && this.role != "1") {
  7418. this.updateWork2();
  7419. } else {
  7420. this.updateWork();
  7421. }
  7422. }
  7423. }
  7424. this.$refs.stepBox.scrollTop = 0;
  7425. },
  7426. unitSet(i) {
  7427. this.unitIndex = i;
  7428. // this.$refs.rightboxR.scrollTop = 0;
  7429. },
  7430. time() {
  7431. if (!this.now) {
  7432. this.now = new Date().getTime();
  7433. return true;
  7434. } else {
  7435. let time = new Date().getTime();
  7436. if (time - this.now > 3000) {
  7437. this.now = time;
  7438. return true;
  7439. } else {
  7440. return false;
  7441. }
  7442. }
  7443. },
  7444. deleteUnit(i) {
  7445. var _this = this;
  7446. if (_this.time()) {
  7447. _this
  7448. .$confirm("确定删除此单元吗?", "提示", {
  7449. confirmButtonText: "确定",
  7450. cancelButtonText: "取消",
  7451. type: "warning",
  7452. })
  7453. .then(() => {
  7454. _this.isDelete = 2;
  7455. // _this.unitIndex = _this.unitIndex - 1;
  7456. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  7457. // _this.$message.success("删除成功");
  7458. })
  7459. .catch(() => {
  7460. return;
  7461. });
  7462. }
  7463. },
  7464. deleteWork(chapid) {
  7465. let params = [
  7466. {
  7467. cid: this.cid,
  7468. chapters: JSON.stringify(this.unitJson),
  7469. uid: this.userid,
  7470. chapid: chapid,
  7471. },
  7472. ];
  7473. this.ajax
  7474. .post(this.$store.state.api + "deleteWork", params)
  7475. .then((res) => {
  7476. this.$message({
  7477. message: "删除成功",
  7478. type: "success",
  7479. });
  7480. this.unitJson.splice(this.unitIndex, 1);
  7481. this.unitIndex = this.unitIndex - 1;
  7482. })
  7483. .catch((err) => {
  7484. this.$message.error("网络不佳");
  7485. console.error(err);
  7486. });
  7487. },
  7488. deleteTool(itemTaskIndex, i) {
  7489. var _this = this;
  7490. if (_this.time()) {
  7491. _this
  7492. .$confirm("确定删除此工具吗?", "提示", {
  7493. confirmButtonText: "确定",
  7494. cancelButtonText: "取消",
  7495. type: "warning",
  7496. })
  7497. .then(() => {
  7498. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  7499. itemTaskIndex
  7500. ].toolChoose.splice(i, 1);
  7501. _this.$message.success("删除成功");
  7502. })
  7503. .catch(() => {
  7504. return;
  7505. });
  7506. }
  7507. },
  7508. deleteSentence(i) {
  7509. var _this = this;
  7510. if (_this.time()) {
  7511. _this
  7512. .$confirm("确定删除此题目吗?", "提示", {
  7513. confirmButtonText: "确定",
  7514. cancelButtonText: "取消",
  7515. type: "warning",
  7516. })
  7517. .then(() => {
  7518. _this.sentenceList.splice(i, 1);
  7519. _this.$message.success("删除成功");
  7520. })
  7521. .catch(() => {
  7522. return;
  7523. });
  7524. }
  7525. },
  7526. deleteS(s, i, j) {
  7527. this.sentenceList[i].addSentence.splice(j, 1);
  7528. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  7529. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  7530. this.sentenceList[i].rightAnswer.splice(a, 1);
  7531. }
  7532. },
  7533. openT() {
  7534. window.parent.postMessage({ tools: "25" }, "*");
  7535. },
  7536. deleteTask(i) {
  7537. var _this = this;
  7538. //((_this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length - 1) == i) ? "确定删除此任务吗?" : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?"
  7539. _this
  7540. .$confirm("确定删除此任务吗?", "提示", {
  7541. confirmButtonText: "确定",
  7542. cancelButtonText: "取消",
  7543. type: "warning",
  7544. })
  7545. .then(() => {
  7546. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(i, 1);
  7547. _this.$message.success("删除成功");
  7548. // this.$nextTick(() => {
  7549. // $('.stepsBottom2')[0].style.transition = 'unset'
  7550. // setTimeout(() => {
  7551. // let stepsBottom2 = $(".stepsBottom2")[0].clientHeight
  7552. // let client = $(".basic_box2")[0].clientHeight - stepsBottom2 - 100
  7553. // let top = $('.stepsBottom2')[0].offsetTop - 20
  7554. // if (top > client) {
  7555. // $('.stepsBottom2')[0].style.top = client + 'px'
  7556. // }
  7557. // $('.stepsBottom2')[0].style.transition = 'all .5s'
  7558. // this.$forceUpdate()
  7559. // }, 500)
  7560. // })
  7561. })
  7562. .catch(() => {
  7563. return;
  7564. });
  7565. },
  7566. handlePictureCardPreview(file) {
  7567. this.dialogImageUrl = file.url;
  7568. },
  7569. clean(i, c) {
  7570. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  7571. },
  7572. handle_remove1(file, fileList, type) {
  7573. var _tmp = this.cover;
  7574. // for (var i = 0, len = _tmp.length; i < len; i++) {
  7575. // if (_tmp[i].uid == file.uid) {
  7576. // _tmp.splice(i, 1);
  7577. // break;
  7578. // }
  7579. // this.cover = _tmp;
  7580. // }
  7581. this.cover = [];
  7582. this.noneBtnImg = this.cover.length >= 1;
  7583. this.isSysPic = false;
  7584. this.$forceUpdate();
  7585. },
  7586. addImg(e) {
  7587. var el = e.currentTarget;
  7588. el.getElementsByTagName("input")[0].click();
  7589. e.target.value = "";
  7590. },
  7591. addChaptersTools(i) {
  7592. this.chapTools = [
  7593. {
  7594. tools: [],
  7595. toolDetail: "",
  7596. },
  7597. ];
  7598. this.chapCount = i;
  7599. this.dialogVisible4 = true;
  7600. },
  7601. isNoFinsh() {
  7602. this.$message.warning("功能正在开发中");
  7603. },
  7604. addAttText(i) {
  7605. this.AttText = {
  7606. title: "",
  7607. text: "",
  7608. };
  7609. this.taskCount = i;
  7610. this.AttTextType = 0;
  7611. this.$forceUpdate();
  7612. this.dialogVisible6 = true;
  7613. },
  7614. openLine(i) {
  7615. this.line = "";
  7616. this.lineCount = i;
  7617. this.lineType = 0;
  7618. this.$forceUpdate();
  7619. this.dialogVisible7 = true;
  7620. },
  7621. pasteLine(i) {
  7622. navigator.clipboard
  7623. .readText()
  7624. .then((v) => {
  7625. console.log("获取剪贴板成功:", v);
  7626. const html = v;
  7627. const regex = /src="(.*?)"/g;
  7628. const match = regex.exec(html);
  7629. if (match && match[1]) {
  7630. console.log(match[1]);
  7631. this.$message.success("粘贴成功");
  7632. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7633. i
  7634. ].chapterData.push({
  7635. name: "链接",
  7636. title: "嵌入代码",
  7637. url: match[1],
  7638. type: 8,
  7639. });
  7640. } else {
  7641. // console.log("未找到包含 src 属性的 iframe");
  7642. this.$message.error("没有找到粘贴的链接");
  7643. }
  7644. })
  7645. .catch((v) => {
  7646. console.log("获取剪贴板失败: ", v);
  7647. });
  7648. },
  7649. openSource(i) {
  7650. this.lineCount = i;
  7651. this.sourceData = {};
  7652. this.dialogVisibleSource = true;
  7653. },
  7654. addSource() {
  7655. if (!Object.keys(this.sourceData).length) {
  7656. this.$message.error("请选择要上传的资源");
  7657. return;
  7658. }
  7659. let keys = Object.keys(this.sourceData);
  7660. for (var i = 0; i < keys.length; i++) {
  7661. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7662. this.lineCount
  7663. ].chapterData.push({
  7664. name: "链接",
  7665. title: this.sourceData[keys[i]].name,
  7666. url: this.sourceData[keys[i]].url,
  7667. type: 8,
  7668. });
  7669. }
  7670. this.$forceUpdate();
  7671. this.dialogVisibleSource = false;
  7672. },
  7673. deleteM(i, j) {
  7674. this.testJson.testJson[i].timuList.splice(j, 1);
  7675. },
  7676. beforeUploadTiMu(event, i) {
  7677. const loading = this.openLoading();
  7678. var file = event.target.files[0];
  7679. var credentials = {
  7680. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7681. secretAccessKey: "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",
  7682. }; //秘钥形式的登录上传
  7683. window.AWS.config.update(credentials);
  7684. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7685. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7686. var _this = this;
  7687. if (file) {
  7688. var params = {
  7689. Key:
  7690. file.name.split(".")[0] +
  7691. new Date().getTime() +
  7692. "." +
  7693. file.name.split(".")[file.name.split(".").length - 1],
  7694. ContentType: file.type,
  7695. Body: file,
  7696. "Access-Control-Allow-Credentials": "*",
  7697. ACL: "public-read",
  7698. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7699. var options = {
  7700. partSize: 2048 * 1024 * 1024,
  7701. queueSize: 2,
  7702. leavePartsOnError: true,
  7703. };
  7704. bucket
  7705. .upload(params, options)
  7706. .on("httpUploadProgress", function (evt) {
  7707. //这里可以写进度条
  7708. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7709. })
  7710. .send(function (err, data) {
  7711. loading.close();
  7712. if (err) {
  7713. _this.$message.error("上传失败");
  7714. } else {
  7715. if (_this.testJson.testJson[i].timuList) {
  7716. _this.testJson.testJson[i].timuList.push({
  7717. src: data.Location,
  7718. });
  7719. } else {
  7720. _this.testJson.testJson[i].timuList = [];
  7721. _this.testJson.testJson[i].timuList.push({
  7722. src: data.Location,
  7723. });
  7724. }
  7725. _this.imgChange3(i);
  7726. _this.$forceUpdate();
  7727. }
  7728. });
  7729. }
  7730. },
  7731. beforeUploadTi(event, i, j) {
  7732. const loading = this.openLoading();
  7733. var file = event.target.files[0];
  7734. var credentials = {
  7735. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7736. secretAccessKey: "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",
  7737. }; //秘钥形式的登录上传
  7738. window.AWS.config.update(credentials);
  7739. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7740. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7741. var _this = this;
  7742. if (file) {
  7743. var params = {
  7744. Key:
  7745. file.name.split(".")[0] +
  7746. new Date().getTime() +
  7747. "." +
  7748. file.name.split(".")[file.name.split(".").length - 1],
  7749. ContentType: file.type,
  7750. Body: file,
  7751. "Access-Control-Allow-Credentials": "*",
  7752. ACL: "public-read",
  7753. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7754. var options = {
  7755. partSize: 2048 * 1024 * 1024,
  7756. queueSize: 2,
  7757. leavePartsOnError: true,
  7758. };
  7759. bucket
  7760. .upload(params, options)
  7761. .on("httpUploadProgress", function (evt) {
  7762. //这里可以写进度条
  7763. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7764. })
  7765. .send(function (err, data) {
  7766. loading.close();
  7767. if (err) {
  7768. _this.$message.error("上传失败");
  7769. } else {
  7770. _this.testJson.testJson[i].checkList[j] = {};
  7771. _this.testJson.testJson[i].checkList[j].src = data.Location;
  7772. _this.testJson.testJson[i].checkList[j].imgType = 1;
  7773. _this.imgChange2(i, j);
  7774. _this.$forceUpdate();
  7775. }
  7776. });
  7777. }
  7778. },
  7779. beforeUpload1(event, type) {
  7780. // const loading = this.openLoading();
  7781. var file = event.target.files[0];
  7782. var credentials = {
  7783. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7784. secretAccessKey: "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",
  7785. }; //秘钥形式的登录上传
  7786. window.AWS.config.update(credentials);
  7787. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7788. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7789. var _this = this;
  7790. if (file) {
  7791. var params = {
  7792. Key:
  7793. file.name.split(".")[0] +
  7794. new Date().getTime() +
  7795. "." +
  7796. file.name.split(".")[file.name.split(".").length - 1],
  7797. ContentType: file.type,
  7798. Body: file,
  7799. "Access-Control-Allow-Credentials": "*",
  7800. ACL: "public-read",
  7801. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7802. var options = {
  7803. partSize: 2048 * 1024 * 1024,
  7804. queueSize: 2,
  7805. leavePartsOnError: true,
  7806. };
  7807. bucket
  7808. .upload(params, options)
  7809. .on("httpUploadProgress", function (evt) {
  7810. //这里可以写进度条
  7811. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7812. })
  7813. .send(function (err, data) {
  7814. // loading.close();
  7815. if (err) {
  7816. // var a = _this.$refs.upload1.uploadFiles;
  7817. // a.splice(a.length - 1, a.length);
  7818. _this.$message.error("上传失败");
  7819. } else {
  7820. _this.cover.push({
  7821. name: file.name,
  7822. url: data.Location,
  7823. uid: file.uid,
  7824. });
  7825. _this.imgChange1(null, null, 1, null);
  7826. _this.choosePicVisible = false;
  7827. console.log(data.Location);
  7828. }
  7829. });
  7830. }
  7831. },
  7832. beforeUploadSelect(event, type) {
  7833. // const loading = this.openLoading();
  7834. var file = event.target.files[0];
  7835. var credentials = {
  7836. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7837. secretAccessKey: "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",
  7838. }; //秘钥形式的登录上传
  7839. window.AWS.config.update(credentials);
  7840. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7841. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7842. var _this = this;
  7843. if (file) {
  7844. var params = {
  7845. Key:
  7846. file.name.split(".")[0] +
  7847. new Date().getTime() +
  7848. "." +
  7849. file.name.split(".")[file.name.split(".").length - 1],
  7850. ContentType: file.type,
  7851. Body: file,
  7852. "Access-Control-Allow-Credentials": "*",
  7853. ACL: "public-read",
  7854. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7855. var options = {
  7856. partSize: 2048 * 1024 * 1024,
  7857. queueSize: 2,
  7858. leavePartsOnError: true,
  7859. };
  7860. bucket
  7861. .upload(params, options)
  7862. .on("httpUploadProgress", function (evt) {
  7863. //这里可以写进度条
  7864. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7865. })
  7866. .send(function (err, data) {
  7867. // loading.close();
  7868. if (err) {
  7869. _this.$message.error("上传失败");
  7870. } else {
  7871. _this.selectJson.url = data.Location;
  7872. console.log(data.Location);
  7873. }
  7874. });
  7875. }
  7876. },
  7877. chooseSysPic(p) {
  7878. this.cover.push({
  7879. name: "系统图片.png",
  7880. url: p,
  7881. });
  7882. this.imgChange1(null, null, 1, null);
  7883. this.isSysPic = true;
  7884. this.sysPicVisible = false;
  7885. },
  7886. beforeUpload(data) {
  7887. this.$refs.upload1.uploadFiles;
  7888. this.uploadLoading1 = true;
  7889. var file = data.file;
  7890. var credentials = {
  7891. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7892. secretAccessKey: "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",
  7893. }; //秘钥形式的登录上传
  7894. window.AWS.config.update(credentials);
  7895. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7896. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7897. var _this = this;
  7898. if (file) {
  7899. var params = {
  7900. Key:
  7901. file.name.split(".")[0] +
  7902. new Date().getTime() +
  7903. "." +
  7904. file.name.split(".")[file.name.split(".").length - 1],
  7905. ContentType: file.type,
  7906. Body: file,
  7907. "Access-Control-Allow-Credentials": "*",
  7908. ACL: "public-read",
  7909. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7910. var options = {
  7911. partSize: 2048 * 1024 * 1024,
  7912. queueSize: 2,
  7913. leavePartsOnError: true,
  7914. };
  7915. bucket
  7916. .upload(params, options)
  7917. .on("httpUploadProgress", function (evt) {
  7918. //这里可以写进度条
  7919. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7920. })
  7921. .send(function (err, data) {
  7922. _this.uploadLoading1 = false;
  7923. if (err) {
  7924. // var a = _this.$refs.upload1.uploadFiles;
  7925. // a.splice(a.length - 1, a.length);
  7926. _this.$message.error("上传失败");
  7927. } else {
  7928. //上传成功处理
  7929. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  7930. name: file.name,
  7931. url: data.Location,
  7932. uid: file.uid,
  7933. });
  7934. _this.imgChange();
  7935. console.log(data.Location);
  7936. }
  7937. });
  7938. }
  7939. },
  7940. onExceed() {
  7941. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  7942. },
  7943. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  7944. // const loading = this.openLoading();
  7945. var file = event.target.files[0];
  7946. var credentials = {
  7947. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7948. secretAccessKey: "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",
  7949. }; //秘钥形式的登录上传
  7950. window.AWS.config.update(credentials);
  7951. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7952. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7953. var _this = this;
  7954. if (type == 3) {
  7955. var b = [
  7956. "DOC",
  7957. "DOCX",
  7958. "DOCM",
  7959. "DOTM",
  7960. "DOTX",
  7961. "PPTX",
  7962. "PPSX",
  7963. "PPT",
  7964. "PPS",
  7965. "PPTM",
  7966. "POTM",
  7967. "PPAM",
  7968. "POTX",
  7969. "PPSM",
  7970. ];
  7971. if (
  7972. b.indexOf(
  7973. file.name
  7974. .split(".")
  7975. [file.name.split(".").length - 1].toLocaleUpperCase()
  7976. ) != -1
  7977. ) {
  7978. if (file.size / 1024 / 1024 > 80) {
  7979. this.$message.error("上传文件大于80兆,请重新选择文件!");
  7980. this.inputShow = true;
  7981. // var a = _this.$refs.upload1.uploadFiles;
  7982. // a.splice(a.length - 1, a.length);
  7983. // loading.close();
  7984. return;
  7985. }
  7986. } else if (
  7987. file.name
  7988. .split(".")
  7989. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  7990. ) {
  7991. if (file.size / 1024 / 1024 > 80) {
  7992. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  7993. this.inputShow = true;
  7994. // var a = _this.$refs.upload1.uploadFiles;
  7995. // a.splice(a.length - 1, a.length);
  7996. // loading.close();
  7997. return;
  7998. }
  7999. }
  8000. }
  8001. this.inputShow = false;
  8002. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8003. itemTaskIndex
  8004. ].progress = 0;
  8005. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8006. itemTaskIndex
  8007. ].proVisible = true;
  8008. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8009. itemTaskIndex
  8010. ].isFinishSize = 0;
  8011. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8012. itemTaskIndex
  8013. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  8014. _this.$forceUpdate();
  8015. if (file) {
  8016. var params = {
  8017. Key:
  8018. file.name.split(".")[0] +
  8019. new Date().getTime() +
  8020. "." +
  8021. file.name.split(".")[file.name.split(".").length - 1],
  8022. ContentType: file.type,
  8023. Body: file,
  8024. "Access-Control-Allow-Credentials": "*",
  8025. ACL: "public-read",
  8026. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  8027. var options = {
  8028. partSize: 2048 * 1024 * 1024,
  8029. queueSize: 2,
  8030. leavePartsOnError: true,
  8031. };
  8032. bucket
  8033. .upload(params, options)
  8034. .on("httpUploadProgress", function (evt) {
  8035. //这里可以写进度条
  8036. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  8037. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8038. itemTaskIndex
  8039. ].progress = parseInt((evt.loaded / evt.total) * 100);
  8040. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8041. itemTaskIndex
  8042. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  8043. _this.$forceUpdate();
  8044. })
  8045. .send(function (err, data) {
  8046. // loading.close();
  8047. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8048. itemTaskIndex
  8049. ].progress = 100;
  8050. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8051. itemTaskIndex
  8052. ].isFinishSize =
  8053. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8054. itemTaskIndex
  8055. ].isAllSize;
  8056. _this.$forceUpdate();
  8057. setTimeout(() => {
  8058. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8059. itemTaskIndex
  8060. ].proVisible = false;
  8061. _this.$forceUpdate();
  8062. }, 1000);
  8063. _this.inputShow = true;
  8064. if (err) {
  8065. // var a = _this.$refs.upload1.uploadFiles;
  8066. // a.splice(a.length - 1, a.length);
  8067. _this.$message.error("上传失败");
  8068. } else {
  8069. if (type == 13) {
  8070. let _type = 2;
  8071. var imgA = [
  8072. "png",
  8073. "jpg",
  8074. "jpeg",
  8075. "bmp",
  8076. "gif",
  8077. "webp",
  8078. "psd",
  8079. "svg",
  8080. "tiff",
  8081. ];
  8082. var fileA = [
  8083. "PDF",
  8084. "DOC",
  8085. "DOCX",
  8086. "DOCM",
  8087. "DOTM",
  8088. "DOTX",
  8089. "PPTX",
  8090. "PPSX",
  8091. "PPT",
  8092. "PPS",
  8093. "PPTM",
  8094. "POTM",
  8095. "PPAM",
  8096. "POTX",
  8097. "PPSM",
  8098. "XLSX",
  8099. "XLS",
  8100. ];
  8101. var videoA = [
  8102. "AVI",
  8103. "NAVI",
  8104. "MPEG",
  8105. "ASF",
  8106. "MOV",
  8107. "WMV",
  8108. "3GP",
  8109. "RM",
  8110. "RMVB",
  8111. "FLV",
  8112. "F4V",
  8113. "H.264",
  8114. "H.265",
  8115. "REAL VIDEO",
  8116. "MKV",
  8117. "WebM",
  8118. "HDDVD",
  8119. "MP4",
  8120. "MPG",
  8121. "M4V",
  8122. "MGV",
  8123. "OGV",
  8124. "QTM",
  8125. "STR",
  8126. "AMC",
  8127. "DVX",
  8128. "EVO",
  8129. "DAT",
  8130. "OGG",
  8131. "OGM",
  8132. ];
  8133. if (
  8134. fileA.indexOf(
  8135. data.Location.split(".")[
  8136. data.Location.split(".").length - 1
  8137. ].toLocaleUpperCase()
  8138. ) != -1
  8139. ) {
  8140. _type = 3;
  8141. } else if (
  8142. videoA.indexOf(
  8143. data.Location.split(".")[
  8144. data.Location.split(".").length - 1
  8145. ].toLocaleUpperCase()
  8146. ) != -1
  8147. ) {
  8148. _type = 2;
  8149. } else if (
  8150. imgA.indexOf(
  8151. data.Location.split(".")[
  8152. data.Location.split(".").length - 1
  8153. ].toLocaleLowerCase()
  8154. ) != -1
  8155. ) {
  8156. _type = 13;
  8157. } else {
  8158. _type = 12;
  8159. }
  8160. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8161. itemTaskIndex
  8162. ].chapterData.push({
  8163. name: file.name,
  8164. url: data.Location,
  8165. uid: file.uid,
  8166. type: _type,
  8167. });
  8168. _this.imgChange1(null, null, _type, itemTaskIndex);
  8169. } else if (type == 2 || type == 3 || type == 12) {
  8170. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8171. itemTaskIndex
  8172. ].chapterData.push({
  8173. name: file.name,
  8174. url: data.Location,
  8175. uid: file.uid,
  8176. type: type,
  8177. });
  8178. _this.imgChange1(null, null, type, itemTaskIndex);
  8179. } else if (type == 4) {
  8180. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  8181. itemTaskIndex
  8182. ].fileList1.push({
  8183. name: file.name,
  8184. url: data.Location,
  8185. uid: file.uid,
  8186. });
  8187. _this.imgChange1(null, null, type, itemTaskIndex);
  8188. } else if (type == 5) {
  8189. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  8190. itemTaskIndex
  8191. ].homeworkList.push({
  8192. name: file.name,
  8193. url: data.Location,
  8194. uid: file.uid,
  8195. });
  8196. _this.imgChange1(null, null, type, itemTaskIndex);
  8197. }
  8198. console.log(data.Location);
  8199. }
  8200. });
  8201. }
  8202. },
  8203. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  8204. // const loading = this.openLoading();
  8205. var file = event.target.files[0];
  8206. var credentials = {
  8207. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  8208. secretAccessKey: "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",
  8209. }; //秘钥形式的登录上传
  8210. window.AWS.config.update(credentials);
  8211. window.AWS.config.region = "cn-northwest-1"; //设置区域
  8212. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  8213. var _this = this;
  8214. if (type == 3) {
  8215. var b = [
  8216. "DOC",
  8217. "DOCX",
  8218. "DOCM",
  8219. "DOTM",
  8220. "DOTX",
  8221. "PPTX",
  8222. "PPSX",
  8223. "PPT",
  8224. "PPS",
  8225. "PPTM",
  8226. "POTM",
  8227. "PPAM",
  8228. "POTX",
  8229. "PPSM",
  8230. ];
  8231. if (
  8232. b.indexOf(
  8233. file.name
  8234. .split(".")
  8235. [file.name.split(".").length - 1].toLocaleUpperCase()
  8236. ) != -1
  8237. ) {
  8238. if (file.size / 1024 / 1024 > 80) {
  8239. this.$message.error("上传文件大于80兆,请重新选择文件!");
  8240. this.inputShow = true;
  8241. // var a = _this.$refs.upload1.uploadFiles;
  8242. // a.splice(a.length - 1, a.length);
  8243. // loading.close();
  8244. return;
  8245. }
  8246. } else if (
  8247. file.name
  8248. .split(".")
  8249. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  8250. ) {
  8251. if (file.size / 1024 / 1024 > 80) {
  8252. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  8253. this.inputShow = true;
  8254. // var a = _this.$refs.upload1.uploadFiles;
  8255. // a.splice(a.length - 1, a.length);
  8256. // loading.close();
  8257. return;
  8258. }
  8259. }
  8260. }
  8261. this.inputShow = false;
  8262. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8263. itemTaskIndex
  8264. ].progress = 0;
  8265. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8266. itemTaskIndex
  8267. ].proVisible = true;
  8268. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8269. itemTaskIndex
  8270. ].isFinishSize = 0;
  8271. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8272. itemTaskIndex
  8273. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  8274. _this.$forceUpdate();
  8275. if (file) {
  8276. var params = {
  8277. Key:
  8278. file.name.split(".")[0] +
  8279. new Date().getTime() +
  8280. "." +
  8281. file.name.split(".")[file.name.split(".").length - 1],
  8282. ContentType: file.type,
  8283. Body: file,
  8284. "Access-Control-Allow-Credentials": "*",
  8285. ACL: "public-read",
  8286. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  8287. var options = {
  8288. partSize: 2048 * 1024 * 1024,
  8289. queueSize: 2,
  8290. leavePartsOnError: true,
  8291. };
  8292. bucket
  8293. .upload(params, options)
  8294. .on("httpUploadProgress", function (evt) {
  8295. //这里可以写进度条
  8296. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  8297. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8298. itemTaskIndex
  8299. ].progress = parseInt((evt.loaded / evt.total) * 100);
  8300. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8301. itemTaskIndex
  8302. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  8303. _this.$forceUpdate();
  8304. })
  8305. .send(function (err, data) {
  8306. // loading.close();
  8307. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8308. itemTaskIndex
  8309. ].progress = 100;
  8310. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8311. itemTaskIndex
  8312. ].isFinishSize =
  8313. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8314. itemTaskIndex
  8315. ].isAllSize;
  8316. _this.$forceUpdate();
  8317. setTimeout(() => {
  8318. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8319. itemTaskIndex
  8320. ].proVisible = false;
  8321. _this.$forceUpdate();
  8322. }, 1000);
  8323. _this.inputShow = true;
  8324. if (err) {
  8325. // var a = _this.$refs.upload1.uploadFiles;
  8326. // a.splice(a.length - 1, a.length);
  8327. _this.$message.error("上传失败");
  8328. } else {
  8329. if (type == 2 || type == 3) {
  8330. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8331. itemTaskIndex
  8332. ].chapterData.push({
  8333. name: file.name,
  8334. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8335. // itemTaskIndex
  8336. // ].chapterData.length+1),
  8337. url: data.Location,
  8338. uid: file.uid,
  8339. type: type,
  8340. text: string,
  8341. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8342. // itemTaskIndex
  8343. // ].chapterData.length + 1),
  8344. });
  8345. _this.imgChange1(null, null, type, itemTaskIndex);
  8346. } else if (type == 4) {
  8347. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  8348. itemTaskIndex
  8349. ].fileList1.push({
  8350. name: file.name,
  8351. url: data.Location,
  8352. uid: file.uid,
  8353. });
  8354. _this.imgChange1(null, null, type, itemTaskIndex);
  8355. } else if (type == 5) {
  8356. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  8357. itemTaskIndex
  8358. ].homeworkList.push({
  8359. name: file.name,
  8360. url: data.Location,
  8361. uid: file.uid,
  8362. });
  8363. _this.imgChange1(null, null, type, itemTaskIndex);
  8364. }
  8365. console.log(data.Location);
  8366. }
  8367. });
  8368. }
  8369. },
  8370. addunit() {
  8371. this.unitJson.push({
  8372. dyName: "", //单元标题
  8373. isUpdate: 1,
  8374. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  8375. chapterInfo: [
  8376. {
  8377. isread: false,
  8378. chapterid: this.guid(),
  8379. title: "",
  8380. courseName: "",
  8381. taskJson: [
  8382. {
  8383. task: "",
  8384. taskDetail: "",
  8385. chapterData: [],
  8386. toolText: "",
  8387. toolChoose: [
  8388. {
  8389. tool: [],
  8390. toolDetail: "",
  8391. toolType: 1,
  8392. askCount: 1,
  8393. askTitle: "",
  8394. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8395. },
  8396. ],
  8397. isShowTools: false,
  8398. askCount: 1,
  8399. isFold: 0,
  8400. askTitle: "",
  8401. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8402. checkJson: [{ checkCount: [], checkPerent: [] }],
  8403. homeworkList: [],
  8404. },
  8405. ],
  8406. itemCount: 1,
  8407. fileList1: [],
  8408. video: [],
  8409. testData: [],
  8410. pData: [],
  8411. templateArray: [],
  8412. },
  8413. ],
  8414. });
  8415. this.addindex = this.unitJson.length - 1;
  8416. setTimeout(() => {
  8417. this.unitIndex = this.unitJson.length - 1;
  8418. this.unitSet(this.unitIndex);
  8419. }, 0);
  8420. },
  8421. addToolFun(itemTaskIndex) {
  8422. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8423. itemTaskIndex
  8424. ].toolChoose.push({
  8425. tool: [],
  8426. toolDetail: "",
  8427. toolType: 1,
  8428. askCount: 1,
  8429. askTitle: "",
  8430. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8431. });
  8432. },
  8433. addTaskBorder() {
  8434. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  8435. task: "",
  8436. taskDetail: "",
  8437. chapterData: [],
  8438. toolChoose: [
  8439. {
  8440. tool: [],
  8441. toolDetail: "",
  8442. toolType: 1,
  8443. askCount: 1,
  8444. askTitle: "",
  8445. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8446. },
  8447. ],
  8448. toolText: "",
  8449. isShowTools: false,
  8450. askCount: 1,
  8451. isFold: 0,
  8452. askTitle: "",
  8453. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8454. checkJson: [{ checkCount: [], checkPerent: [] }],
  8455. homeworkList: [],
  8456. });
  8457. },
  8458. add(e, i) {
  8459. var el = e.currentTarget;
  8460. el.getElementsByTagName("input")[0].click();
  8461. },
  8462. fold(i, e, type) {
  8463. var a = e.currentTarget.parentElement.parentElement;
  8464. var b = e.currentTarget.parentElement;
  8465. if (type == 1) {
  8466. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  8467. a.className += " smallTaskBorder";
  8468. b.className += " funBlockTop";
  8469. } else {
  8470. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  8471. a.className = "taskBorder";
  8472. b.className = "funBlock";
  8473. }
  8474. console.log(e);
  8475. },
  8476. deleteHomeworkBox(unitIndex, index, i) {
  8477. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  8478. this.taskCount
  8479. ].homeworkList.splice(i, 1);
  8480. },
  8481. getStudent() {
  8482. let params = {
  8483. oid: this.oid,
  8484. cu: "",
  8485. cn: this.searchPeople,
  8486. };
  8487. this.ajax
  8488. .get(this.$store.state.api + "selectStudentAdd", params)
  8489. .then((res) => {
  8490. this.studentJuri = res.data[0];
  8491. })
  8492. .catch((err) => {
  8493. this.isLoading = false;
  8494. console.error(err);
  8495. });
  8496. },
  8497. getTeacher() {
  8498. let params = {
  8499. oid:
  8500. this.org && this.org != "undefined" && this.org != "null"
  8501. ? this.org
  8502. : this.oid,
  8503. cu: "",
  8504. cn: this.searchTN,
  8505. };
  8506. this.ajax
  8507. .get(
  8508. this.$store.state.api +
  8509. (this.org && this.org != "undefined" && this.org != "null"
  8510. ? "selectTeacherAddOrg"
  8511. : "selectTeacherAdd"),
  8512. params
  8513. )
  8514. .then((res) => {
  8515. let teacherJuri = res.data[0];
  8516. for (var i = 0; i < teacherJuri.length; i++) {
  8517. if (teacherJuri[i].userid == this.userid) {
  8518. teacherJuri.splice(i, 1);
  8519. break;
  8520. }
  8521. }
  8522. this.teacherJuri = teacherJuri;
  8523. })
  8524. .catch((err) => {
  8525. console.error(err);
  8526. });
  8527. },
  8528. searchStudent() {
  8529. this.getStudent();
  8530. },
  8531. //获取班级列表
  8532. getClass() {
  8533. let params = {
  8534. oid: this.oid,
  8535. cn: this.classSearch,
  8536. };
  8537. this.ajax
  8538. .get(this.$store.state.api + "selectClassBySchoolSearch", params)
  8539. .then((res) => {
  8540. if (!this.grade.length) {
  8541. this.grade = res.data[0];
  8542. }
  8543. this.grade2 = res.data[0];
  8544. this.classJuri = res.data[0];
  8545. })
  8546. .catch((err) => {
  8547. this.isLoading = false;
  8548. console.error(err);
  8549. });
  8550. },
  8551. CourseType2Change(val) {
  8552. this.pTypeCheck = [];
  8553. for (var i = 0; i < this.CourseType2.length; i++) {
  8554. let typeA = this.CourseType2[i];
  8555. if (val.indexOf(typeA.name) != -1) {
  8556. this.pTypeCheck.push(...typeA.id);
  8557. }
  8558. }
  8559. },
  8560. getChapterData(e, i, j, ic, type) {
  8561. e.stopPropagation();
  8562. this.updataC = true;
  8563. this.icc = ic;
  8564. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  8565. console.log("还不能下载图片喔");
  8566. }
  8567. },
  8568. deleteChapterData(e, i, j, ic, taskI) {
  8569. e.stopPropagation();
  8570. this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(ic, 1);
  8571. },
  8572. updataVideoT(e, i, j, ic) {
  8573. e.stopPropagation();
  8574. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  8575. ic
  8576. ].name = e.target.value;
  8577. },
  8578. upCd(e, i, j, taskCount, ic) {
  8579. e.stopPropagation();
  8580. if (ic == 0) {
  8581. return;
  8582. }
  8583. var a =
  8584. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1];
  8585. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  8586. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic];
  8587. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  8588. this.$forceUpdate();
  8589. },
  8590. downCd(e, i, j, taskCount, ic) {
  8591. e.stopPropagation();
  8592. if (
  8593. ic ==
  8594. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  8595. 1
  8596. ) {
  8597. return;
  8598. }
  8599. var a =
  8600. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1];
  8601. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  8602. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic];
  8603. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  8604. this.$forceUpdate();
  8605. },
  8606. addWork() {
  8607. let cPan = 1;
  8608. for (var i = 0; i < this.unitJson.length; i++) {
  8609. for (
  8610. var j = 0;
  8611. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  8612. j++
  8613. ) {
  8614. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  8615. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  8616. if (
  8617. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  8618. ) {
  8619. for (
  8620. var z = 0;
  8621. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  8622. z++
  8623. ) {
  8624. if (
  8625. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  8626. .length
  8627. ) {
  8628. this.$message.error("请把工具添加完整");
  8629. cPan = 2;
  8630. break;
  8631. }
  8632. }
  8633. }
  8634. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  8635. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  8636. i
  8637. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  8638. return ele.value != "";
  8639. });
  8640. }
  8641. }
  8642. }
  8643. this.inputShow = true;
  8644. if (cPan == 2) {
  8645. return;
  8646. }
  8647. for (var i = 0; i < this.unitJson.length; i++) {
  8648. delete this.unitJson[i].isUpdate;
  8649. }
  8650. let params = [
  8651. {
  8652. uid: this.userid,
  8653. title: this.courseName.replace(/%/g, "%25"),
  8654. brief: this.courseText.replace(/%/g, "%25"),
  8655. cover:
  8656. this.cover.length > 0
  8657. ? JSON.stringify(this.cover)
  8658. : JSON.stringify([
  8659. {
  8660. name: "noBanner.jpg",
  8661. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  8662. uid: 1656409780264,
  8663. status: "success",
  8664. },
  8665. ]),
  8666. evaId: this.evalua,
  8667. astudent:
  8668. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  8669. see: this.isTeacherSee == true ? 1 : 0,
  8670. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  8671. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  8672. courseType: JSON.stringify(this.courseTypeId),
  8673. ateacher:
  8674. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  8675. inviteCode: JSON.stringify(this.inviteCode),
  8676. },
  8677. ];
  8678. this.ajax
  8679. .post(this.$store.state.api + "addWorkNew2E", params)
  8680. .then((res) => {
  8681. console.log(this.steps);
  8682. // if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  8683. this.$message({
  8684. message: "新增成功",
  8685. type: "success",
  8686. });
  8687. // }
  8688. this.number = res.data.ordernumber;
  8689. this.courseId = res.data.courseId;
  8690. this.cid = res.data.courseId;
  8691. this.courseUserid = this.userid;
  8692. this.islogin = true;
  8693. this.steps = 4;
  8694. })
  8695. .catch((err) => {
  8696. this.$message.error("网络不佳");
  8697. console.error(err);
  8698. });
  8699. },
  8700. goCourse() {
  8701. window.parent.postMessage({ cid: this.courseId, type: "1" }, "*");
  8702. },
  8703. updateWork2() {
  8704. let _unitIndex = this.unitIndex;
  8705. let cPan = 1;
  8706. for (
  8707. var j = 0;
  8708. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  8709. j++
  8710. ) {
  8711. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  8712. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  8713. j
  8714. ].proVisible2 = false;
  8715. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  8716. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  8717. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  8718. (ele) => {
  8719. return ele.value != "";
  8720. }
  8721. );
  8722. }
  8723. }
  8724. this.inputShow = true;
  8725. if (cPan == 2) {
  8726. return;
  8727. }
  8728. let params = [
  8729. {
  8730. cid: this.cid,
  8731. chapters: JSON.stringify(this.unitJson),
  8732. uid: this.userid,
  8733. unitIndex: _unitIndex,
  8734. },
  8735. ];
  8736. this.ajax
  8737. .post(this.$store.state.api + "updateWorkNew4", params)
  8738. .then((res) => {
  8739. this.$message({
  8740. message: "修改成功",
  8741. type: "success",
  8742. });
  8743. this.courseId = this.cid;
  8744. })
  8745. .catch((err) => {
  8746. this.$message.error("网络不佳");
  8747. console.error(err);
  8748. });
  8749. },
  8750. updateWork() {
  8751. let cPan = 1;
  8752. for (var i = 0; i < this.unitJson.length; i++) {
  8753. for (
  8754. var j = 0;
  8755. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  8756. j++
  8757. ) {
  8758. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  8759. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  8760. if (
  8761. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  8762. ) {
  8763. for (
  8764. var z = 0;
  8765. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  8766. z++
  8767. ) {
  8768. if (
  8769. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  8770. .length
  8771. ) {
  8772. this.$message.error("请把工具添加完整");
  8773. cPan = 2;
  8774. break;
  8775. }
  8776. }
  8777. }
  8778. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  8779. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  8780. i
  8781. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  8782. return ele.value != "";
  8783. });
  8784. }
  8785. }
  8786. }
  8787. this.inputShow = true;
  8788. if (cPan == 2) {
  8789. this.step--;
  8790. return;
  8791. }
  8792. for (var i = 0; i < this.unitJson.length; i++) {
  8793. delete this.unitJson[i].isUpdate;
  8794. }
  8795. let params = [
  8796. {
  8797. cid: this.cid,
  8798. title: this.courseName.replace(/%/g, "%25"),
  8799. brief: this.courseText.replace(/%/g, "%25"),
  8800. cover:
  8801. this.cover.length > 0
  8802. ? JSON.stringify(this.cover)
  8803. : JSON.stringify([
  8804. {
  8805. name: "noBanner.jpg",
  8806. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  8807. uid: 1656409780264,
  8808. status: "success",
  8809. },
  8810. ]),
  8811. evaId: this.evalua,
  8812. astudent:
  8813. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  8814. see: this.isTeacherSee == true ? 1 : 0,
  8815. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  8816. template: this.myWord != "undefined" ? this.myWord : [],
  8817. uid: this.userid,
  8818. courseType: JSON.stringify(this.courseTypeId),
  8819. ateacher:
  8820. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  8821. inviteCode: JSON.stringify(this.inviteCode),
  8822. },
  8823. ];
  8824. this.ajax
  8825. .post(this.$store.state.api + "updateWorkNew2", params)
  8826. .then((res) => {
  8827. // if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  8828. if (this.cidType == 1) {
  8829. this.$message({
  8830. message: "修改成功",
  8831. type: "success",
  8832. });
  8833. } else {
  8834. this.$message({
  8835. message: "新增成功",
  8836. type: "success",
  8837. });
  8838. }
  8839. // }
  8840. this.number = this.nbOrder;
  8841. this.courseId = this.cid;
  8842. this.steps = 4;
  8843. })
  8844. .catch((err) => {
  8845. this.$message.error("网络不佳");
  8846. console.error(err);
  8847. });
  8848. },
  8849. guid() {
  8850. var _num,
  8851. i,
  8852. _guid = "";
  8853. for (i = 0; i < 32; i++) {
  8854. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  8855. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  8856. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  8857. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  8858. _guid += "-";
  8859. }
  8860. }
  8861. return _guid;
  8862. },
  8863. insertWord() {
  8864. this.dialogVisible1 = true;
  8865. this.updateBoolean2 = false;
  8866. this.tTitle = "";
  8867. this.tdetail = "";
  8868. },
  8869. addWord() {
  8870. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  8871. name: this.tTitle,
  8872. content: this.tdetail,
  8873. uid: this.guid(),
  8874. });
  8875. this.dialogVisible1 = false;
  8876. },
  8877. upWord() {},
  8878. selectWord(uid, i, c) {
  8879. this.dialogVisible1 = true;
  8880. this.updateBoolean2 = true;
  8881. if (
  8882. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  8883. ) {
  8884. this.tTitle =
  8885. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  8886. this.tdetail =
  8887. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  8888. }
  8889. },
  8890. isAddPP() {
  8891. if (this.checkboxList.length > 0) {
  8892. this.$message({
  8893. message: "添加成功",
  8894. type: "success",
  8895. });
  8896. this.dialogVisible3 = false;
  8897. } else {
  8898. this.$message({
  8899. message: "请添加课程成员",
  8900. type: "error",
  8901. });
  8902. }
  8903. },
  8904. isAddClass() {
  8905. this.dialogVisibleClass = false;
  8906. },
  8907. isAddPPTeacher() {
  8908. this.dialogVisibleMember = false;
  8909. this.setMan();
  8910. },
  8911. getTemplate() {
  8912. this.ajax
  8913. .get(this.$store.state.api + "getCourseTemplateT", "")
  8914. .then((res) => {
  8915. this.templateArray = res.data[0];
  8916. this.getTemplateOid();
  8917. this.$forceUpdate();
  8918. })
  8919. .catch((err) => {});
  8920. },
  8921. getTemplateOid() {
  8922. let params = {
  8923. oid: this.oid,
  8924. };
  8925. this.ajax
  8926. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  8927. .then((res) => {
  8928. if (res.data[0].length) {
  8929. this.templateArray = [...res.data[0], ...this.templateArray];
  8930. }
  8931. this.getTemplateOrg();
  8932. this.$forceUpdate();
  8933. })
  8934. .catch((err) => {});
  8935. },
  8936. getTemplateOrg() {
  8937. let params = {
  8938. oid: this.org,
  8939. };
  8940. this.ajax
  8941. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  8942. .then((res) => {
  8943. if (res.data[0].length) {
  8944. this.templateArray = [...res.data[0], ...this.templateArray];
  8945. }
  8946. this.$forceUpdate();
  8947. })
  8948. .catch((err) => {});
  8949. },
  8950. clearChoose() {
  8951. this.clearArray.splice(this.templateC.id, 1);
  8952. this.dialogVisible2 = false;
  8953. },
  8954. clearAttText() {
  8955. this.AttText = {
  8956. title: "",
  8957. text: "",
  8958. };
  8959. this.dialogVisible6 = false;
  8960. },
  8961. clearLine() {
  8962. this.line = "";
  8963. this.dialogVisible7 = false;
  8964. },
  8965. checkTemplate(res) {
  8966. let _this = this;
  8967. _this
  8968. .$confirm("确定选择此模板吗?", "提示", {
  8969. confirmButtonText: "确定",
  8970. cancelButtonText: "取消",
  8971. type: "warning",
  8972. })
  8973. .then(() => {
  8974. _this.unitJson = JSON.parse(res.chapters);
  8975. _this.steps++;
  8976. setTimeout(() => {
  8977. this.checkEva(this.checkId);
  8978. }, 1000);
  8979. })
  8980. .catch(() => {
  8981. return;
  8982. });
  8983. },
  8984. checkTemplate1(w) {
  8985. this.steps++;
  8986. },
  8987. checkTemplate2() {
  8988. let _this = this;
  8989. _this
  8990. .$confirm("确定选择空模板吗?", "提示", {
  8991. confirmButtonText: "确定",
  8992. cancelButtonText: "取消",
  8993. type: "warning",
  8994. })
  8995. .then(() => {
  8996. _this.unitIndex = 0;
  8997. _this.unitJson = [
  8998. {
  8999. dyName: "", //单元标题
  9000. chapterInfo: [
  9001. {
  9002. isread: false,
  9003. chapterid: this.guid(),
  9004. title: "",
  9005. courseName: "",
  9006. taskJson: [
  9007. {
  9008. task: "",
  9009. taskDetail: "",
  9010. chapterData: [],
  9011. toolText: "",
  9012. toolChoose: [
  9013. {
  9014. tool: [],
  9015. toolDetail: "",
  9016. toolType: 1,
  9017. askCount: 1,
  9018. askTitle: "",
  9019. askJson: [
  9020. { askstitle: "", askItem: 1, checkList: [] },
  9021. ],
  9022. },
  9023. ],
  9024. isShowTools: false,
  9025. askCount: 1,
  9026. isFold: 0,
  9027. askTitle: "",
  9028. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9029. checkJson: [{ checkCount: [], checkPerent: [] }],
  9030. homeworkList: [],
  9031. },
  9032. ],
  9033. itemCount: 1,
  9034. fileList1: [],
  9035. video: [],
  9036. testData: [],
  9037. pData: [],
  9038. templateArray: [],
  9039. },
  9040. ],
  9041. },
  9042. ];
  9043. this.steps++;
  9044. this.updateWork();
  9045. })
  9046. .catch(() => {
  9047. return;
  9048. });
  9049. },
  9050. checkTemplate3() {
  9051. let _this = this;
  9052. _this
  9053. .$confirm("确定选择简易模式吗?", "提示", {
  9054. confirmButtonText: "确定",
  9055. cancelButtonText: "取消",
  9056. type: "warning",
  9057. })
  9058. .then(() => {
  9059. _this.unitIndex = 0;
  9060. _this.unitJson = [
  9061. {
  9062. dyName: "", //单元标题
  9063. easy: 1,
  9064. chapterInfo: [
  9065. {
  9066. isread: false,
  9067. chapterid: this.guid(),
  9068. title: "",
  9069. courseName: "",
  9070. taskJson: [
  9071. {
  9072. task: "",
  9073. taskDetail: "",
  9074. chapterData: [],
  9075. toolText: "",
  9076. toolChoose: [
  9077. {
  9078. tool: [],
  9079. toolDetail: "",
  9080. toolType: 1,
  9081. askCount: 1,
  9082. askTitle: "",
  9083. askJson: [
  9084. { askstitle: "", askItem: 1, checkList: [] },
  9085. ],
  9086. },
  9087. ],
  9088. isShowTools: false,
  9089. askCount: 1,
  9090. isFold: 0,
  9091. askTitle: "",
  9092. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9093. checkJson: [{ checkCount: [], checkPerent: [] }],
  9094. homeworkList: [],
  9095. },
  9096. ],
  9097. itemCount: 1,
  9098. fileList1: [],
  9099. video: [],
  9100. testData: [],
  9101. pData: [],
  9102. templateArray: [],
  9103. },
  9104. ],
  9105. },
  9106. ];
  9107. this.steps++;
  9108. this.updateWork();
  9109. })
  9110. .catch(() => {
  9111. return;
  9112. });
  9113. },
  9114. checkTemplate4() {
  9115. let _this = this;
  9116. _this
  9117. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  9118. confirmButtonText: "确定",
  9119. cancelButtonText: "取消",
  9120. type: "warning",
  9121. })
  9122. .then(() => {
  9123. _this.unitIndex = 0;
  9124. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  9125. this.steps++;
  9126. this.updateWork();
  9127. })
  9128. .catch(() => {
  9129. return;
  9130. });
  9131. },
  9132. wordNext() {
  9133. this.dialogVisible2 = false;
  9134. },
  9135. isAddOrUpdateAttText() {
  9136. if (this.AttTextType == 0) {
  9137. this.addAttTextMessage();
  9138. } else {
  9139. this.updateAttText();
  9140. }
  9141. },
  9142. isAddOrUpdateLine() {
  9143. if (!this.lineTitle) {
  9144. this.$message.error("请填写链接标题");
  9145. return;
  9146. }
  9147. if (this.lineType == 0) {
  9148. this.addLine();
  9149. } else {
  9150. this.updateLine();
  9151. }
  9152. },
  9153. addAttTextMessage() {
  9154. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9155. this.taskCount
  9156. ].chapterData.push({
  9157. name: this.AttText.title,
  9158. url: this.AttText.text,
  9159. type: 6,
  9160. });
  9161. this.imgChange1(null, null, 6, this.taskCount);
  9162. this.dialogVisible6 = false;
  9163. },
  9164. selectAttText(itemTaskIndex, i) {
  9165. this.AttText.title =
  9166. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9167. itemTaskIndex
  9168. ].chapterData[i].name;
  9169. this.AttText.text =
  9170. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9171. itemTaskIndex
  9172. ].chapterData[i].url;
  9173. this.taskCount = itemTaskIndex;
  9174. this.AttTextIndex = i;
  9175. this.AttTextType = 1;
  9176. this.dialogVisible6 = true;
  9177. },
  9178. updateAttText() {
  9179. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9180. this.taskCount
  9181. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  9182. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9183. this.taskCount
  9184. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  9185. this.dialogVisible6 = false;
  9186. },
  9187. addLine() {
  9188. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9189. this.lineCount
  9190. ].chapterData.push({
  9191. name: "链接",
  9192. title: this.lineTitle,
  9193. url: this.line,
  9194. type: 8,
  9195. });
  9196. this.imgChange1(null, null, 8, this.lineCount);
  9197. this.dialogVisible7 = false;
  9198. },
  9199. selectLine(itemTaskIndex, i) {
  9200. this.line =
  9201. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9202. itemTaskIndex
  9203. ].chapterData[i].url;
  9204. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9205. itemTaskIndex
  9206. ].chapterData[i].title
  9207. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9208. .chapterData[i].title
  9209. : "";
  9210. this.taskCount = itemTaskIndex;
  9211. this.lineCount = i;
  9212. this.lineType = 1;
  9213. this.dialogVisible7 = true;
  9214. },
  9215. updateLine() {
  9216. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9217. this.taskCount
  9218. ].chapterData[this.lineCount].url = this.line;
  9219. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9220. this.taskCount
  9221. ].chapterData[this.lineCount].title = this.lineTitle;
  9222. this.dialogVisible7 = false;
  9223. },
  9224. addPP() {
  9225. this.dialogVisible3 = true;
  9226. },
  9227. goTo(path) {
  9228. this.$router.push(path);
  9229. },
  9230. openTools(itemTaskIndex, i, toolIndex) {
  9231. this.toolIndex = toolIndex;
  9232. this.taskCount = itemTaskIndex;
  9233. if (i == 4) {
  9234. if (toolIndex == null) {
  9235. var a =
  9236. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9237. .chapterData;
  9238. for (var i = 0; i < a.length; i++) {
  9239. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  9240. this.askJson =
  9241. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9242. itemTaskIndex
  9243. ].chapterData[i].askJson;
  9244. }
  9245. }
  9246. } else {
  9247. this.askJson = JSON.parse(
  9248. JSON.stringify(
  9249. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9250. itemTaskIndex
  9251. ].toolChoose[toolIndex]
  9252. )
  9253. );
  9254. }
  9255. this.dialogVisible5 = true;
  9256. } else if (i == 45) {
  9257. if (
  9258. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9259. .toolChoose[toolIndex].testJson
  9260. ) {
  9261. this.testJson = JSON.parse(
  9262. JSON.stringify(
  9263. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9264. itemTaskIndex
  9265. ].toolChoose[toolIndex].testJson
  9266. )
  9267. );
  9268. } else {
  9269. var testJson = {
  9270. testCount: 1,
  9271. testTitle: "",
  9272. testJson: [
  9273. {
  9274. teststitle: "",
  9275. testItem: 1,
  9276. checkList: [],
  9277. timuList: [],
  9278. answer: [],
  9279. type: "1",
  9280. },
  9281. ],
  9282. };
  9283. this.testJson = testJson;
  9284. }
  9285. this.dialogVisibleChoice = true;
  9286. } else if (i == 47) {
  9287. if (
  9288. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9289. .toolChoose[toolIndex].sentenceList
  9290. ) {
  9291. this.sentenceList = JSON.parse(
  9292. JSON.stringify(
  9293. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9294. itemTaskIndex
  9295. ].toolChoose[toolIndex].sentenceList
  9296. )
  9297. );
  9298. } else {
  9299. var sentenceList = [
  9300. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  9301. ];
  9302. this.sentenceList = sentenceList;
  9303. }
  9304. this.dialogVisibleSentence = true;
  9305. } else if (i == 48) {
  9306. if (
  9307. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9308. .toolChoose[toolIndex].tableJson
  9309. ) {
  9310. this.tableJson = JSON.parse(
  9311. JSON.stringify(
  9312. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9313. itemTaskIndex
  9314. ].toolChoose[toolIndex].tableJson
  9315. )
  9316. );
  9317. } else {
  9318. var tableJson = { text: "" };
  9319. this.tableJson = tableJson;
  9320. }
  9321. this.dialogVisibleTable = true;
  9322. } else if (i == 52) {
  9323. if (
  9324. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9325. .toolChoose[toolIndex].wordJson
  9326. ) {
  9327. this.wordJson = JSON.parse(
  9328. JSON.stringify(
  9329. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9330. itemTaskIndex
  9331. ].toolChoose[toolIndex].wordJson
  9332. )
  9333. );
  9334. } else {
  9335. var wordJson = { text: "" };
  9336. this.wordJson = wordJson;
  9337. }
  9338. this.dialogVisibleWord = true;
  9339. // else if (i == 50) {
  9340. // if (
  9341. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9342. // .toolChoose[toolIndex].uploadJson
  9343. // ) {
  9344. // this.uploadJson = JSON.parse(
  9345. // JSON.stringify(
  9346. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9347. // itemTaskIndex
  9348. // ].toolChoose[toolIndex].uploadJson
  9349. // )
  9350. // );
  9351. // } else {
  9352. // var uploadJson = [];
  9353. // this.uploadJson = uploadJson;
  9354. // }
  9355. // this.dialogVisibleMoreUpload = true;
  9356. // }
  9357. } else if (i == 10) {
  9358. if (
  9359. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9360. .toolChoose[toolIndex].preTime
  9361. ) {
  9362. this.preTime = JSON.parse(
  9363. JSON.stringify(
  9364. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9365. itemTaskIndex
  9366. ].toolChoose[toolIndex].preTime
  9367. )
  9368. );
  9369. } else {
  9370. var preTime = 0;
  9371. this.preTime = preTime;
  9372. }
  9373. this.dialogVisiblePreTime = true;
  9374. } else if (i == 49) {
  9375. if (
  9376. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9377. .toolChoose[toolIndex].groupJson
  9378. ) {
  9379. this.groupJson = JSON.parse(
  9380. JSON.stringify(
  9381. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9382. itemTaskIndex
  9383. ].toolChoose[toolIndex].groupJson
  9384. )
  9385. );
  9386. } else {
  9387. var groupJson = {
  9388. group: [{ name: "第1组" }],
  9389. number: undefined,
  9390. islock: 1,
  9391. };
  9392. this.groupJson = groupJson;
  9393. }
  9394. this.dialogVisibleGroup = true;
  9395. } else if (i == 62) {
  9396. if (
  9397. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9398. .toolChoose[toolIndex].videoJson
  9399. ) {
  9400. this.videoJson = JSON.parse(
  9401. JSON.stringify(
  9402. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9403. itemTaskIndex
  9404. ].toolChoose[toolIndex].videoJson
  9405. )
  9406. );
  9407. } else {
  9408. var videoJson = {
  9409. video: "",
  9410. setting: [],
  9411. };
  9412. this.videoJson = videoJson;
  9413. }
  9414. this.dialogVisibleVideo = true;
  9415. } else if (i == 15) {
  9416. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9417. itemTaskIndex
  9418. ].toolChoose[toolIndex].answerQ
  9419. ? JSON.parse(
  9420. JSON.stringify(
  9421. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9422. itemTaskIndex
  9423. ].toolChoose[toolIndex].answerQ
  9424. )
  9425. )
  9426. : "";
  9427. this.dialogVisible8 = true;
  9428. } else if (i == 40) {
  9429. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9430. itemTaskIndex
  9431. ].toolChoose[toolIndex].rateJson
  9432. ? JSON.parse(
  9433. JSON.stringify(
  9434. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9435. itemTaskIndex
  9436. ].toolChoose[toolIndex].rateJson
  9437. )
  9438. )
  9439. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  9440. this.selectSteps = 1;
  9441. this.dialogVisibleRate = true;
  9442. } else if (i == 42) {
  9443. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9444. itemTaskIndex
  9445. ].toolChoose[toolIndex].answerQ
  9446. ? JSON.parse(
  9447. JSON.stringify(
  9448. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9449. itemTaskIndex
  9450. ].toolChoose[toolIndex].answerQ
  9451. )
  9452. )
  9453. : "";
  9454. this.dialogVisibleMp3 = true;
  9455. } else if (i == 41) {
  9456. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9457. itemTaskIndex
  9458. ].toolChoose[toolIndex].selectJson
  9459. ? JSON.parse(
  9460. JSON.stringify(
  9461. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9462. itemTaskIndex
  9463. ].toolChoose[toolIndex].selectJson
  9464. )
  9465. )
  9466. : { url: "", select: [], answer: [] };
  9467. this.selectSteps = 1;
  9468. this.dialogVisibleSelect = true;
  9469. } else if (i == 3) {
  9470. if (!this.cid) {
  9471. this.$message.error(
  9472. "任务模式添加时不能添加模板,请添加课程后在修改添加模板"
  9473. );
  9474. return;
  9475. }
  9476. window.parent.postMessage(
  9477. {
  9478. tools: "3y",
  9479. cid: this.cid,
  9480. stage: this.unitIndex,
  9481. task: itemTaskIndex,
  9482. tool: toolIndex,
  9483. },
  9484. "*"
  9485. );
  9486. } else if (i == 1) {
  9487. if (!this.cid) {
  9488. this.$message.error(
  9489. "任务模式添加时不能添加模板,请添加课程后在修改添加模板"
  9490. );
  9491. return;
  9492. }
  9493. window.parent.postMessage(
  9494. {
  9495. tools: "1y",
  9496. cid: this.cid,
  9497. stage: this.unitIndex,
  9498. task: itemTaskIndex,
  9499. tool: toolIndex,
  9500. },
  9501. "*"
  9502. );
  9503. } else if (i == 57) {
  9504. if (!this.cid) {
  9505. this.$message.error(
  9506. "任务模式添加时不能添加模板,请添加课程后在修改添加模板"
  9507. );
  9508. return;
  9509. }
  9510. window.parent.postMessage(
  9511. {
  9512. tools: "57y",
  9513. cid: this.cid,
  9514. stage: this.unitIndex,
  9515. task: itemTaskIndex,
  9516. tool: toolIndex,
  9517. },
  9518. "*"
  9519. );
  9520. }
  9521. },
  9522. chapAddTools(i) {
  9523. if (this.chapTools[0].tools.length == 0) {
  9524. this.chapTools[0].tools.push(i);
  9525. } else {
  9526. if (this.chapTools[0].tools.indexOf(i) != -1) {
  9527. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  9528. } else {
  9529. this.chapTools[0].tools.push(i);
  9530. }
  9531. }
  9532. this.$forceUpdate();
  9533. },
  9534. addChaptersDataTools() {
  9535. if (this.chapTools[0].tools.indexOf(4) != -1) {
  9536. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9537. this.chapCount
  9538. ].chapterData.push({
  9539. name: this.chapTools[0].toolDetail,
  9540. url: this.chapTools[0].tools,
  9541. type: 7,
  9542. askJson: this.askJson,
  9543. });
  9544. } else {
  9545. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9546. this.chapCount
  9547. ].chapterData.push({
  9548. name: this.chapTools[0].toolDetail,
  9549. url: this.chapTools[0].tools,
  9550. type: 7,
  9551. });
  9552. }
  9553. this.imgChange1(null, null, 7, this.chapCount);
  9554. this.dialogVisible4 = false;
  9555. },
  9556. addTools(i, itemTaskIndex, toolIndex) {
  9557. // if (
  9558. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9559. // .toolChoose[toolIndex].tool.length == 0
  9560. // ) {
  9561. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9562. // itemTaskIndex
  9563. // ].toolChoose[toolIndex].tool.push(i);
  9564. // } else {
  9565. // if (
  9566. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9567. // itemTaskIndex
  9568. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  9569. // ) {
  9570. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9571. // itemTaskIndex
  9572. // ].toolChoose[toolIndex].tool.splice(
  9573. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9574. // itemTaskIndex
  9575. // ].toolChoose[toolIndex].tool.indexOf(i),
  9576. // 1
  9577. // );
  9578. // } else {
  9579. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9580. // itemTaskIndex
  9581. // ].toolChoose[toolIndex].tool.push(i);
  9582. // }
  9583. // console.log(
  9584. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9585. // .toolChoose[toolIndex].tool
  9586. // );
  9587. // }
  9588. if (i == 4) {
  9589. if (
  9590. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9591. .toolChoose[toolIndex].askJson.askTitle == "" ||
  9592. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9593. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  9594. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9595. .toolChoose[toolIndex].askJson[0].checkList < 2
  9596. ) {
  9597. this.openTools(itemTaskIndex, 4, toolIndex);
  9598. // this.$message({
  9599. // message: "请填写完整问卷内容",
  9600. // type: "error",
  9601. // });
  9602. return;
  9603. }
  9604. }
  9605. if (i == 45) {
  9606. if (
  9607. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9608. .toolChoose[toolIndex].testJson ||
  9609. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9610. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  9611. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9612. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  9613. ) {
  9614. this.openTools(itemTaskIndex, 45, toolIndex);
  9615. // this.$message({
  9616. // message: "请填写完整问卷内容",
  9617. // type: "error",
  9618. // });
  9619. return;
  9620. }
  9621. }
  9622. if (i == 47) {
  9623. if (
  9624. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9625. .toolChoose[toolIndex].sentenceList ||
  9626. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9627. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  9628. ) {
  9629. this.openTools(itemTaskIndex, 47, toolIndex);
  9630. return;
  9631. }
  9632. }
  9633. // if (i == 48) {
  9634. // if (
  9635. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9636. // .toolChoose[toolIndex].tableJson
  9637. // ) {
  9638. // this.openTools(itemTaskIndex, 48, toolIndex);
  9639. // return;
  9640. // }
  9641. // }
  9642. // if (i == 50) {
  9643. // if (
  9644. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9645. // .toolChoose[toolIndex].uploadJson
  9646. // ) {
  9647. // this.openTools(itemTaskIndex, 50, toolIndex);
  9648. // return;
  9649. // }
  9650. // }
  9651. if (i == 49) {
  9652. if (
  9653. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9654. .toolChoose[toolIndex].groupJson
  9655. ) {
  9656. this.openTools(itemTaskIndex, 49, toolIndex);
  9657. return;
  9658. }
  9659. }
  9660. if (i == 62) {
  9661. if (
  9662. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9663. .toolChoose[toolIndex].videoJson
  9664. ) {
  9665. this.openTools(itemTaskIndex, 62, toolIndex);
  9666. return;
  9667. }
  9668. }
  9669. if (i == 15) {
  9670. if (
  9671. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9672. .toolChoose[toolIndex].answerQ ||
  9673. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9674. .toolChoose[toolIndex].answerQ == ""
  9675. ) {
  9676. this.openTools(itemTaskIndex, 15, toolIndex);
  9677. // this.$message({
  9678. // message: "请填写问答内容",
  9679. // type: "error",
  9680. // });
  9681. return;
  9682. }
  9683. }
  9684. if (i == 40) {
  9685. if (
  9686. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9687. .toolChoose[toolIndex].rateJson ||
  9688. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9689. .toolChoose[toolIndex].rateJson.length
  9690. ) {
  9691. this.openTools(itemTaskIndex, 40, toolIndex);
  9692. return;
  9693. }
  9694. }
  9695. if (i == 41) {
  9696. if (
  9697. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9698. .toolChoose[toolIndex].selectJson ||
  9699. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9700. .toolChoose[toolIndex].selectJson.url == "" ||
  9701. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9702. .toolChoose[toolIndex].selectJson.select.length ||
  9703. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9704. .toolChoose[toolIndex].selectJson.answer.length
  9705. ) {
  9706. this.openTools(itemTaskIndex, 41, toolIndex);
  9707. return;
  9708. }
  9709. }
  9710. if (i == 42) {
  9711. if (
  9712. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9713. .toolChoose[toolIndex].answerQ ||
  9714. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9715. .toolChoose[toolIndex].answerQ == ""
  9716. ) {
  9717. this.openTools(itemTaskIndex, 42, toolIndex);
  9718. return;
  9719. }
  9720. }
  9721. if (
  9722. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9723. .toolChoose[toolIndex].tool.length > 0
  9724. ) {
  9725. if (
  9726. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9727. itemTaskIndex
  9728. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  9729. ) {
  9730. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9731. itemTaskIndex
  9732. ].toolChoose[toolIndex].tool.splice(
  9733. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9734. itemTaskIndex
  9735. ].toolChoose[toolIndex].tool.indexOf(i),
  9736. 1
  9737. );
  9738. } else {
  9739. // this.$message({
  9740. // message: "每个工具只能添加一个",
  9741. // type: "error",
  9742. // });
  9743. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9744. itemTaskIndex
  9745. ].toolChoose[toolIndex].tool = [];
  9746. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9747. itemTaskIndex
  9748. ].toolChoose[toolIndex].tool.push(i);
  9749. }
  9750. } else {
  9751. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9752. itemTaskIndex
  9753. ].toolChoose[toolIndex].tool.push(i);
  9754. }
  9755. this.$forceUpdate();
  9756. },
  9757. addAskList() {
  9758. this.askJson.askJson.push({
  9759. askstitle: "",
  9760. askItem: 1,
  9761. checkList: [],
  9762. });
  9763. this.askJson.askCount++;
  9764. },
  9765. addTestList() {
  9766. this.testJson.testJson.push({
  9767. teststitle: "",
  9768. testItem: 1,
  9769. checkList: [],
  9770. timuList: [],
  9771. answer: [],
  9772. type: "1",
  9773. });
  9774. this.testJson.testCount++;
  9775. },
  9776. deleteAskList(index) {
  9777. this.askJson.askJson.splice(index, 1);
  9778. this.askJson.askCount--;
  9779. },
  9780. deleteTestList(index) {
  9781. this.testJson.testJson.splice(index, 1);
  9782. this.testJson.testCount--;
  9783. },
  9784. addcheckList(json) {
  9785. json.checkList.length++;
  9786. json.askItem++;
  9787. },
  9788. deletecheckList(json) {
  9789. json.checkList.length--;
  9790. json.askItem--;
  9791. },
  9792. addTcheckList(json) {
  9793. json.checkList.length++;
  9794. json.testItem++;
  9795. },
  9796. deleteTcheckList(json) {
  9797. json.checkList.length--;
  9798. json.testItem--;
  9799. },
  9800. checkTestType(type, json) {
  9801. json.type = type;
  9802. json.answer = [];
  9803. },
  9804. checkAskType(type, json) {
  9805. json.type = type;
  9806. json.checkList = [];
  9807. },
  9808. addSelectList(json) {
  9809. json.select.push("");
  9810. json.answer.push("");
  9811. },
  9812. deleteSelectList(json) {
  9813. // json.select.length--;
  9814. // json.answer.length--;
  9815. json.select.splice(json.select.length - 1, 1);
  9816. json.answer.splice(json.answer.length - 1, 1);
  9817. },
  9818. addAsk() {
  9819. if (this.askJson.askTitle === "") {
  9820. this.$message.error("标题不能为空!");
  9821. return;
  9822. }
  9823. var aj = this.askJson.askJson;
  9824. var b = 1;
  9825. for (var i = 0; i < aj.length; i++) {
  9826. if (aj[i].askstitle === "") {
  9827. var a = 1;
  9828. for (let index = 0; index < aj[i].askItem; index++) {
  9829. const element = aj[i].checkList[index]
  9830. ? aj[i].checkList[index]
  9831. : "";
  9832. if (element != "") {
  9833. b++;
  9834. this.$message.error("填写了选项,题目不能为空!");
  9835. return;
  9836. } else {
  9837. a++;
  9838. }
  9839. }
  9840. if (b == 1) {
  9841. this.$message.error("至少填写一个问题");
  9842. return;
  9843. }
  9844. } else if (aj[i].askstitle != "") {
  9845. for (let index = 0; index < aj[i].askItem; index++) {
  9846. const element = aj[i].checkList[index]
  9847. ? aj[i].checkList[index]
  9848. : "";
  9849. var index = 0;
  9850. for (var z = 0; z < aj[i].checkList.length; z++) {
  9851. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  9852. if (checkC != "") {
  9853. index++;
  9854. } else {
  9855. this.$message.error("选项不能为空!");
  9856. return;
  9857. }
  9858. }
  9859. b++;
  9860. if (index < 2) {
  9861. this.$message.error("填写了的题目,选项至少要有两项!");
  9862. return;
  9863. }
  9864. }
  9865. }
  9866. }
  9867. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  9868. var elc = el.checkList.filter((element) => {
  9869. return element != "";
  9870. });
  9871. return el.askstitle != "" && elc.length != 0;
  9872. });
  9873. if (!this.dialogVisible4) {
  9874. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9875. this.taskCount
  9876. ].toolChoose[this.toolIndex] = this.askJson;
  9877. }
  9878. this.dialogVisible5 = false;
  9879. if (
  9880. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9881. .toolChoose[this.toolIndex].tool != 4
  9882. ) {
  9883. this.addTools(4, this.taskCount, this.toolIndex);
  9884. }
  9885. },
  9886. addTest() {
  9887. // if (this.testJson.testTitle === "") {
  9888. // this.$message.error("标题不能为空!");
  9889. // return;
  9890. // }
  9891. var aj = this.testJson.testJson;
  9892. var b = 1;
  9893. for (var i = 0; i < aj.length; i++) {
  9894. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  9895. var a = 1;
  9896. for (let index = 0; index < aj[i].testItem; index++) {
  9897. const element = aj[i].checkList[index]
  9898. ? aj[i].checkList[index]
  9899. : "";
  9900. if (element != "") {
  9901. b++;
  9902. this.$message.error("填写了选项,题目不能为空!");
  9903. return;
  9904. } else {
  9905. a++;
  9906. }
  9907. }
  9908. if (b == 1) {
  9909. this.$message.error("至少填写一个问题");
  9910. return;
  9911. }
  9912. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  9913. for (let index = 0; index < aj[i].testItem; index++) {
  9914. const element = aj[i].checkList[index]
  9915. ? aj[i].checkList[index]
  9916. : "";
  9917. var index = 0;
  9918. for (var z = 0; z < aj[i].checkList.length; z++) {
  9919. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  9920. if (checkC != "") {
  9921. index++;
  9922. } else {
  9923. this.$message.error("选项不能为空!");
  9924. return;
  9925. }
  9926. }
  9927. b++;
  9928. if (index < 2) {
  9929. this.$message.error("填写了的题目,选项至少要有两项!");
  9930. return;
  9931. }
  9932. if (
  9933. (aj[i].type == "2" && !aj[i].answer.length) ||
  9934. (aj[i].type == "1" && aj[i].answer !== 0 && !aj[i].answer)
  9935. ) {
  9936. this.$message.error("有题目未选择答案请选择答案");
  9937. return;
  9938. }
  9939. }
  9940. }
  9941. }
  9942. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  9943. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  9944. var elc = el.checkList.filter((element) => {
  9945. return element != "";
  9946. });
  9947. return (
  9948. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  9949. );
  9950. });
  9951. isTestJson.testCount = isTestJson.testJson.length;
  9952. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9953. this.taskCount
  9954. ].toolChoose[this.toolIndex].testJson = isTestJson;
  9955. this.dialogVisibleChoice = false;
  9956. if (
  9957. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9958. .toolChoose[this.toolIndex].tool != 45
  9959. ) {
  9960. this.addTools(45, this.taskCount, this.toolIndex);
  9961. }
  9962. },
  9963. addVideoJson(videoJson) {
  9964. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9965. this.taskCount
  9966. ].toolChoose[this.toolIndex].videoJson = videoJson;
  9967. this.dialogVisibleVideo = false;
  9968. if (
  9969. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9970. .toolChoose[this.toolIndex].tool != 62
  9971. ) {
  9972. this.addTools(62, this.taskCount, this.toolIndex);
  9973. }
  9974. },
  9975. //自动获取剪贴板
  9976. pasteOption() {
  9977. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  9978. if (!iframe) {
  9979. this.$message.error("请使用AI共创生成题目");
  9980. return;
  9981. }
  9982. let copyData = iframe.contentWindow.copyData;
  9983. if (!copyData || !copyData.selectData.length) {
  9984. this.$message.error("请使用AI共创生成题目");
  9985. return;
  9986. }
  9987. let selectData = copyData.selectData;
  9988. for (var i = 0; i < selectData.length; i++) {
  9989. let answer = 0;
  9990. switch (selectData[i].answer[0]) {
  9991. case "A":
  9992. answer = 0;
  9993. break;
  9994. case "B":
  9995. answer = 1;
  9996. break;
  9997. case "C":
  9998. answer = 2;
  9999. break;
  10000. case "D":
  10001. answer = 3;
  10002. break;
  10003. case "E":
  10004. answer = 4;
  10005. break;
  10006. default:
  10007. break;
  10008. }
  10009. this.testJson.testJson.push({
  10010. teststitle: selectData[i].subject,
  10011. testItem: selectData[i].options.length,
  10012. checkList: selectData[i].options,
  10013. timuList: [],
  10014. answer: answer,
  10015. type: "1",
  10016. });
  10017. this.testJson.testCount++;
  10018. }
  10019. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  10020. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  10021. var elc = el.checkList.filter((element) => {
  10022. return element != "";
  10023. });
  10024. return (
  10025. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  10026. );
  10027. });
  10028. isTestJson.testCount = isTestJson.testJson.length;
  10029. this.testJson = isTestJson;
  10030. this.$forceUpdate();
  10031. },
  10032. pasteTask() {
  10033. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  10034. if (!iframe) {
  10035. this.$message.error("请使用AI共创生成");
  10036. return;
  10037. }
  10038. let copyData = iframe.contentWindow.copyData;
  10039. if (!copyData || !copyData.tasksData || !copyData.tasksData.length) {
  10040. this.$message.error("请使用AI共创生成");
  10041. return;
  10042. }
  10043. let stageTasksData = copyData.tasksData;
  10044. let taskA = [];
  10045. let tasks = stageTasksData;
  10046. for (var j = 0; j < tasks.length; j++) {
  10047. taskA.push({
  10048. task: tasks[j].taskName,
  10049. taskDetail: tasks[j].taskDecs,
  10050. chapterData: [],
  10051. toolText: "",
  10052. toolChoose: [
  10053. {
  10054. tool: [],
  10055. toolDetail: "",
  10056. toolType: 1,
  10057. askCount: 1,
  10058. askTitle: "",
  10059. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10060. },
  10061. ],
  10062. isShowTools: false,
  10063. askCount: 1,
  10064. isFold: 0,
  10065. askTitle: "",
  10066. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10067. checkJson: [{ checkCount: [], checkPerent: [] }],
  10068. homeworkList: [],
  10069. });
  10070. }
  10071. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA;
  10072. this.$forceUpdate();
  10073. },
  10074. pasteStage() {
  10075. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  10076. if (!iframe) {
  10077. this.$message.error("请使用AI共创生成");
  10078. return;
  10079. }
  10080. let copyData = iframe.contentWindow.copyData;
  10081. if (!copyData || !copyData.stageData || !copyData.stageData.length) {
  10082. this.$message.error("请使用AI共创生成");
  10083. return;
  10084. }
  10085. let stageData = copyData.stageData;
  10086. let stage = [];
  10087. for (var i = 0; i < stageData.length; i++) {
  10088. stage.push({
  10089. dyName: stageData[i], //单元标题
  10090. chapterInfo: [
  10091. {
  10092. isread: false,
  10093. chapterid: this.guid(),
  10094. title: "",
  10095. courseName: "",
  10096. taskJson: [
  10097. {
  10098. task: "",
  10099. taskDetail: "",
  10100. chapterData: [],
  10101. toolText: "",
  10102. toolChoose: [
  10103. {
  10104. tool: [],
  10105. toolDetail: "",
  10106. toolType: 1,
  10107. askCount: 1,
  10108. askTitle: "",
  10109. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10110. },
  10111. ],
  10112. isShowTools: false,
  10113. askCount: 1,
  10114. isFold: 0,
  10115. askTitle: "",
  10116. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10117. checkJson: [{ checkCount: [], checkPerent: [] }],
  10118. homeworkList: [],
  10119. },
  10120. ],
  10121. itemCount: 1,
  10122. fileList1: [],
  10123. video: [],
  10124. testData: [],
  10125. pData: [],
  10126. templateArray: [],
  10127. },
  10128. ],
  10129. });
  10130. }
  10131. let _this = this;
  10132. _this
  10133. .$confirm("确定选择智能粘贴模式吗?", "提示", {
  10134. confirmButtonText: "确定",
  10135. cancelButtonText: "取消",
  10136. type: "warning",
  10137. })
  10138. .then(() => {
  10139. _this.unitIndex = 0;
  10140. _this.unitJson = stage;
  10141. _this.steps++;
  10142. _this.updateWork();
  10143. })
  10144. .catch(() => {
  10145. return;
  10146. });
  10147. },
  10148. addAnswer() {
  10149. if (this.answerQ == "") {
  10150. this.$message.error("请输入您想要问的问题");
  10151. return;
  10152. }
  10153. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10154. this.taskCount
  10155. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  10156. this.dialogVisible8 = false;
  10157. if (
  10158. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10159. .toolChoose[this.toolIndex].tool != 15
  10160. ) {
  10161. this.addTools(15, this.taskCount, this.toolIndex);
  10162. }
  10163. },
  10164. addMp3Answer() {
  10165. if (this.answerQ == "") {
  10166. this.$message.error("请输入您想要回答的问题");
  10167. return;
  10168. }
  10169. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10170. this.taskCount
  10171. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  10172. this.dialogVisibleMp3 = false;
  10173. },
  10174. addRateAnswer() {
  10175. var a = 1;
  10176. for (var i = 0; i < this.rateJson.length; i++) {
  10177. if (this.rateJson[i].value == "") {
  10178. a = 2;
  10179. break;
  10180. }
  10181. }
  10182. if (a == 2) {
  10183. this.$message.error("请把评价信息填写完整");
  10184. return;
  10185. }
  10186. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10187. this.taskCount
  10188. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  10189. this.dialogVisibleRate = false;
  10190. if (
  10191. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10192. .toolChoose[this.toolIndex].tool != 40
  10193. ) {
  10194. this.addTools(40, this.taskCount, this.toolIndex);
  10195. }
  10196. },
  10197. addSelectAnswer() {
  10198. if (this.selectJson.url == "") {
  10199. this.$message.error("请上传题目");
  10200. return;
  10201. }
  10202. if (!this.selectJson.select.length) {
  10203. this.$message.error("请添加选项");
  10204. return;
  10205. }
  10206. if (!this.selectJson.answer.length) {
  10207. this.$message.error("请设置答案");
  10208. return;
  10209. }
  10210. var a = 1;
  10211. for (var i = 0; i < this.selectJson.answer.length; i++) {
  10212. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  10213. a = 2;
  10214. }
  10215. }
  10216. if (a == 2) {
  10217. this.$message.error("请设置答案");
  10218. return;
  10219. }
  10220. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10221. this.taskCount
  10222. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  10223. this.dialogVisibleSelect = false;
  10224. if (
  10225. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10226. .toolChoose[this.toolIndex].tool != 41
  10227. ) {
  10228. this.addTools(41, this.taskCount, this.toolIndex);
  10229. }
  10230. },
  10231. nextSelectSteps() {
  10232. if (this.selectJson.url == "") {
  10233. this.$message.error("请上传题目");
  10234. return;
  10235. }
  10236. if (!this.selectJson.select.length) {
  10237. this.$message.error("请添加选项");
  10238. return;
  10239. }
  10240. var a = 1;
  10241. for (var i = 0; i < this.selectJson.select.length; i++) {
  10242. if (!this.selectJson.select[i]) {
  10243. a = 2;
  10244. }
  10245. }
  10246. if (a == 2) {
  10247. this.$message.error("添加的选项不能为空");
  10248. return;
  10249. }
  10250. this.selectSteps++;
  10251. },
  10252. selectCourseDetail() {
  10253. if (this.cid == "" || this.cid == undefined) {
  10254. console.log("这是新增课程");
  10255. this.selectAllType();
  10256. } else {
  10257. this.cidType = 1;
  10258. let params = {
  10259. cid: this.cid,
  10260. };
  10261. this.ajax
  10262. .get(this.$store.state.api + "select_course_detail", params)
  10263. .then((res) => {
  10264. this.loading = true;
  10265. this.unitJson = JSON.parse(res.data[0][0].chapters);
  10266. for (var j = 0; j < this.unitJson.length; j++) {
  10267. for (
  10268. var k = 0;
  10269. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  10270. k++
  10271. ) {
  10272. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  10273. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  10274. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  10275. : [];
  10276. let _chapterData = [];
  10277. for (
  10278. var c = 0;
  10279. c <
  10280. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  10281. .length;
  10282. c++
  10283. ) {
  10284. if (
  10285. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  10286. ) {
  10287. _chapterData.push(
  10288. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  10289. );
  10290. }
  10291. }
  10292. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  10293. _chapterData;
  10294. }
  10295. }
  10296. this.$forceUpdate();
  10297. this.courseName = res.data[0][0].title;
  10298. this.courseText = res.data[0][0].brief;
  10299. this.evalua = res.data[0][0].evaId;
  10300. this.cover = JSON.parse(res.data[0][0].cover);
  10301. this.noneBtnImg = this.cover.length >= 1;
  10302. // this.checkboxList =
  10303. // res.data[0][0].course_student.length > 0
  10304. // ? JSON.parse(res.data[0][0].course_student)
  10305. // : [];
  10306. this.checkboxList2 = res.data[0][0].juri
  10307. ? res.data[0][0].juri.split(",")
  10308. : [];
  10309. this.inviteCode = [];
  10310. for (var i = 0; i < res.data[2].length; i++) {
  10311. this.inviteCode.push({
  10312. cid: res.data[2][i].classid,
  10313. ic: res.data[2][i].code,
  10314. });
  10315. }
  10316. this.checkboxList3 = res.data[0][0].course_teacher
  10317. ? res.data[0][0].course_teacher.split(",")
  10318. : [];
  10319. // this.isTeacherSee =
  10320. // res.data[0][0].is_teacher_look == 0 ? true : false;
  10321. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  10322. this.myWord = res.data[0][0].template;
  10323. this.templateC.id = "123";
  10324. this.courseUserid = res.data[0][0].userid;
  10325. // if(this.courseUserid == this.userid){
  10326. // this.InviteChange(this.checkboxList2)
  10327. // }
  10328. this.nbOrder = res.data[0][0].ordernumber;
  10329. this.courseTypeId = [];
  10330. for (var i = 0; i < res.data[1].length; i++) {
  10331. this.courseTypeId.push(res.data[1][i].typeid);
  10332. }
  10333. console.log(this.courseTypeId);
  10334. // if (this.timer) clearInterval(this.timer);
  10335. if (this.timer) clearTimeout(this.timer);
  10336. this.timer = null;
  10337. // this.timer = setInterval(() => {
  10338. // this.seleteCourseUpdate();
  10339. this.setMan();
  10340. this.selectAllType();
  10341. // }, 5000);
  10342. this.$forceUpdate();
  10343. setTimeout(() => {
  10344. this.checkEva(this.evalua);
  10345. }, 0);
  10346. })
  10347. .catch((err) => {
  10348. console.error(err);
  10349. });
  10350. }
  10351. },
  10352. seleteCourseUpdate() {
  10353. let params = {
  10354. cid: this.cid,
  10355. };
  10356. this.ajax
  10357. .get(this.$store.state.api + "select_course_detail", params)
  10358. .then((res) => {
  10359. // console.log(this.unitJson);
  10360. let unitJson = JSON.parse(res.data[0][0].chapters);
  10361. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  10362. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  10363. let _unitJson = [];
  10364. let _chapAarry = [];
  10365. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  10366. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  10367. let index = 1;
  10368. let chapindex;
  10369. if (_unitJson2.length > unitJson.length) {
  10370. for (let c = 0; c < _unitJson2.length; c++) {
  10371. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  10372. }
  10373. for (let j = 0; j < unitJson.length; j++) {
  10374. let count = 0;
  10375. for (let k = 0; k < _unitJson2.length; k++) {
  10376. if (
  10377. unitJson[j].chapterInfo[0].chapterid ==
  10378. _unitJson2[k].chapterInfo[0].chapterid
  10379. ) {
  10380. count++;
  10381. _chapAarry.splice(
  10382. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  10383. 1
  10384. );
  10385. _unitJson.push(unitJson[j]);
  10386. break;
  10387. }
  10388. }
  10389. // if(count === 0){
  10390. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  10391. // }
  10392. }
  10393. for (let k = 0; k < _unitJson2.length; k++) {
  10394. if (_unitJson2[k].isUpdate == 1) {
  10395. _chapAarry.splice(
  10396. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  10397. 1
  10398. );
  10399. _unitJson.push(_unitJson2[k]);
  10400. }
  10401. }
  10402. console.log(_chapAarry);
  10403. for (let d = 0; d < _unitJson2.length; d++) {
  10404. if (
  10405. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  10406. ) {
  10407. if (_unitIndex == d) {
  10408. index = 2;
  10409. }
  10410. chapindex = d;
  10411. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  10412. }
  10413. }
  10414. } else {
  10415. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  10416. }
  10417. for (let i = 0; i < unitJson.length; i++) {
  10418. if (
  10419. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  10420. _unitJson[i].chapterInfo[0].chapterid !=
  10421. unitJson[i].chapterInfo[0].chapterid
  10422. ) {
  10423. if (i == _unitJson.length - 1) {
  10424. // this.unitIndex++
  10425. _unitIndex2++;
  10426. }
  10427. _unitJson.splice(i, 0, unitJson[i]);
  10428. } else if (i > _unitJson.length - 1) {
  10429. _unitJson.push(unitJson[i]);
  10430. } else if (
  10431. _unitJson[i].chapterInfo[0].chapterid ==
  10432. unitJson[i].chapterInfo[0].chapterid
  10433. ) {
  10434. _unitJson[i] = unitJson[i];
  10435. }
  10436. // if (i == _unitIndex) {
  10437. // continue;
  10438. // } else
  10439. }
  10440. if (_chapAarry.length && index != 2) {
  10441. if (chapindex < _unitIndex) {
  10442. this.isDelete = 2;
  10443. // this.unitIndex--;
  10444. _unitIndex2--;
  10445. } else if (
  10446. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  10447. _unitJson[_unitIndex].chapterInfo[0].chapterid
  10448. ) {
  10449. this.isDelete = 2;
  10450. for (let n = 0; n < _unitJson.length; n++) {
  10451. if (
  10452. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  10453. _unitJson[n].chapterInfo[0].chapterid
  10454. ) {
  10455. // this.unitIndex = n;
  10456. _unitIndex2 = n;
  10457. _unitJson[n] = _unitJson2[_unitIndex];
  10458. break;
  10459. }
  10460. }
  10461. }
  10462. } else if (index != 2) {
  10463. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  10464. _unitJson2[_unitIndex];
  10465. for (
  10466. var ci = 0;
  10467. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  10468. ci++
  10469. ) {
  10470. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  10471. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  10472. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  10473. .toolChoose
  10474. : [];
  10475. let _chapterData = [];
  10476. for (
  10477. var c = 0;
  10478. c <
  10479. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  10480. .length;
  10481. c++
  10482. ) {
  10483. if (
  10484. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  10485. .chapterData[c]
  10486. ) {
  10487. _chapterData.push(
  10488. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  10489. .chapterData[c]
  10490. );
  10491. }
  10492. }
  10493. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  10494. _chapterData;
  10495. }
  10496. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  10497. }
  10498. if (index == 1) {
  10499. this.unitJson = _unitJson;
  10500. this.$forceUpdate();
  10501. setTimeout(() => {
  10502. if (this.unitIndex != _unitIndex2) {
  10503. this.isDelete = 2;
  10504. this.unitIndex = _unitIndex2;
  10505. }
  10506. }, 0);
  10507. this.timer = setTimeout(() => {
  10508. this.seleteCourseUpdate();
  10509. }, 1000);
  10510. } else if (index == 2) {
  10511. let _this = this;
  10512. _this
  10513. .$confirm(
  10514. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  10515. "提示",
  10516. {
  10517. confirmButtonText: "需要",
  10518. cancelButtonText: "取消",
  10519. type: "warning",
  10520. }
  10521. )
  10522. .then(() => {
  10523. if (_this.time()) {
  10524. _this.restoreWork(
  10525. _chapAarry[0],
  10526. _unitJson,
  10527. chapindex,
  10528. _unitJson2,
  10529. _unitIndex2
  10530. );
  10531. }
  10532. })
  10533. .catch(() => {
  10534. _this.unitJson = _unitJson;
  10535. _this.$forceUpdate();
  10536. setTimeout(() => {
  10537. if (this.unitIndex != _unitIndex2) {
  10538. this.isDelete = 2;
  10539. this.unitIndex = _unitIndex2;
  10540. }
  10541. }, 0);
  10542. _this.timer = setTimeout(() => {
  10543. _this.seleteCourseUpdate();
  10544. }, 1000);
  10545. });
  10546. }
  10547. })
  10548. .catch((err) => {
  10549. console.error(err);
  10550. });
  10551. },
  10552. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  10553. let params = [
  10554. {
  10555. cid: this.cid,
  10556. chapters: JSON.stringify(this.unitJson),
  10557. uid: this.userid,
  10558. chapid: chapid,
  10559. },
  10560. ];
  10561. this.ajax
  10562. .post(this.$store.state.api + "restoreWork", params)
  10563. .then((res) => {
  10564. this.$message({
  10565. message: "恢复成功",
  10566. type: "success",
  10567. });
  10568. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  10569. this.unitJson = unitJson;
  10570. this.$forceUpdate();
  10571. setTimeout(() => {
  10572. if (this.unitIndex != unitIndex2) {
  10573. this.isDelete = 2;
  10574. this.unitIndex = unitIndex2;
  10575. }
  10576. }, 0);
  10577. this.timer = setTimeout(() => {
  10578. this.seleteCourseUpdate();
  10579. }, 1000);
  10580. })
  10581. .catch((err) => {
  10582. this.$message.error("网络不佳");
  10583. console.error(err);
  10584. });
  10585. },
  10586. getTypeName() {
  10587. console.log(this.courseTypeId);
  10588. this.$forceUpdate();
  10589. },
  10590. selectAllType() {
  10591. let params = {
  10592. org: this.org && this.org != "" ? this.org : "",
  10593. oid: this.oid && this.oid != "" ? this.oid : "",
  10594. };
  10595. this.ajax
  10596. .get(this.$store.state.api + "selectAllType", params)
  10597. .then((res) => {
  10598. this.CourseType = res.data;
  10599. this.CourseType2 = [
  10600. { name: "智见课程", id: [] },
  10601. { name: "智行课程", id: [] },
  10602. { name: "智创课程", id: [] },
  10603. ];
  10604. for (var cti = 0; cti < res.data[0].length; cti++) {
  10605. if (
  10606. res.data[0][cti].name == "年级" ||
  10607. res.data[0][cti].name == "学科"
  10608. ) {
  10609. this.CourseType2[1].id.push(res.data[0][cti].id);
  10610. this.CourseType2[0].id.push(res.data[0][cti].id);
  10611. } else if (res.data[0][cti].name == "主题") {
  10612. this.CourseType2[2].id.push(res.data[0][cti].id);
  10613. }
  10614. }
  10615. let _courseTypeId = [];
  10616. for (var i = 0; i < res.data[0].length; i++) {
  10617. if (!this.cid) {
  10618. this.courseTypeId[res.data[0][i].id] = [];
  10619. }
  10620. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  10621. // }
  10622. this.CourseTypeJson[res.data[0][i].id] = [];
  10623. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  10624. if (res.data[0][i].name == "栏目") {
  10625. this.CourseType[0][i].name = "主题";
  10626. }
  10627. }
  10628. if (res.data[2].length == 0 && res.data[3].length == 0) {
  10629. for (var j = 0; j < res.data[1].length; j++) {
  10630. if (
  10631. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  10632. _courseTypeId.indexOf(res.data[1][j].id) == -1
  10633. ) {
  10634. _courseTypeId.push(res.data[1][j].id);
  10635. }
  10636. if (res.data[0][i].id == res.data[1][j].pid) {
  10637. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  10638. }
  10639. }
  10640. } else {
  10641. if (res.data[2].length > 0) {
  10642. for (var j = 0; j < res.data[2].length; j++) {
  10643. if (
  10644. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  10645. _courseTypeId.indexOf(res.data[2][j].id) == -1
  10646. ) {
  10647. _courseTypeId.push(res.data[2][j].id);
  10648. }
  10649. if (res.data[0][i].id == res.data[2][j].pid) {
  10650. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  10651. }
  10652. }
  10653. }
  10654. if (res.data[3].length > 0) {
  10655. for (var j = 0; j < res.data[3].length; j++) {
  10656. if (
  10657. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  10658. _courseTypeId.indexOf(res.data[3][j].id) == -1
  10659. ) {
  10660. _courseTypeId.push(res.data[3][j].id);
  10661. }
  10662. if (res.data[0][i].id == res.data[3][j].pid) {
  10663. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  10664. }
  10665. }
  10666. }
  10667. }
  10668. }
  10669. this.courseTypeId = _courseTypeId;
  10670. })
  10671. .catch((err) => {
  10672. console.error(err);
  10673. });
  10674. },
  10675. selectType() {
  10676. this.ajax
  10677. .get(this.$store.state.api + "selectType")
  10678. .then((res) => {
  10679. this.CourseType = res.data;
  10680. for (var i = 0; i < res.data[0].length; i++) {
  10681. if (!this.cid) {
  10682. this.courseTypeId[res.data[0][i].id] = "";
  10683. }
  10684. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  10685. if (res.data[0][i].name == "栏目") {
  10686. this.CourseType[0][i].name = "主题";
  10687. }
  10688. }
  10689. for (var j = 0; j < res.data[1].length; j++) {
  10690. if (res.data[0][i].id == res.data[1][j].pid) {
  10691. if (!this.CourseTypeJson[res.data[0][i].id]) {
  10692. this.CourseTypeJson[res.data[0][i].id] = [];
  10693. }
  10694. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  10695. }
  10696. }
  10697. }
  10698. this.selectTypeByOid();
  10699. this.selectTypeByOrg();
  10700. })
  10701. .catch((err) => {
  10702. console.error(err);
  10703. });
  10704. },
  10705. selectTypeByOid() {
  10706. let params = {
  10707. oid: this.oid,
  10708. };
  10709. this.ajax
  10710. .get(this.$store.state.api + "selectTypeByOid", params)
  10711. .then((res) => {
  10712. for (var i = 0; i < res.data[0].length; i++) {
  10713. for (var j = 0; j < res.data[1].length; j++) {
  10714. if (res.data[0][i].id == res.data[1][j].pid) {
  10715. if (!this.CourseTypeJson[res.data[0][i].id]) {
  10716. this.CourseTypeJson[res.data[0][i].id] = [];
  10717. }
  10718. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  10719. }
  10720. }
  10721. }
  10722. })
  10723. .catch((err) => {
  10724. console.error(err);
  10725. });
  10726. },
  10727. selectTypeByOrg() {
  10728. let params = {
  10729. oid: this.org,
  10730. };
  10731. this.ajax
  10732. .get(this.$store.state.api + "selectTypeByOrg", params)
  10733. .then((res) => {
  10734. for (var i = 0; i < res.data[0].length; i++) {
  10735. for (var j = 0; j < res.data[1].length; j++) {
  10736. if (res.data[0][i].id == res.data[1][j].pid) {
  10737. if (!this.CourseTypeJson[res.data[0][i].id]) {
  10738. this.CourseTypeJson[res.data[0][i].id] = [];
  10739. }
  10740. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  10741. }
  10742. }
  10743. }
  10744. this.$forceUpdate();
  10745. })
  10746. .catch((err) => {
  10747. console.error(err);
  10748. });
  10749. },
  10750. OtherMb(type) {
  10751. this.typeMode = type;
  10752. setTimeout(() => {
  10753. this.checkEva(this.checkId);
  10754. }, 0);
  10755. },
  10756. openMember() {
  10757. this.searchTN = "";
  10758. this.getTeacher();
  10759. this.dialogVisibleMember = true;
  10760. },
  10761. checkEva(id, type) {
  10762. this.dialogVisiblemb = false;
  10763. this.selectEva();
  10764. if (this.evalua != id && type == 2) {
  10765. this.$message.success("导入成功");
  10766. }
  10767. this.evalua = id;
  10768. this.checkId = id;
  10769. if (this.evalua != "") {
  10770. for (var i = 0; i < this.evaJuri.length; i++) {
  10771. if (this.evalua == this.evaJuri[i].id) {
  10772. this.eTitle = this.evaJuri[i].title;
  10773. this.eJson = JSON.parse(this.evaJuri[i].content);
  10774. }
  10775. }
  10776. this.data.data = [];
  10777. this.$forceUpdate();
  10778. setTimeout(() => {
  10779. this.setMindData();
  10780. }, 500);
  10781. }
  10782. },
  10783. deleteEva() {
  10784. let _this = this;
  10785. if (_this.evalua == "") {
  10786. this.$message.warning("内容已经清空了,请勿重复清空");
  10787. return;
  10788. }
  10789. _this
  10790. .$confirm("确定删除此目标吗?", "提示", {
  10791. confirmButtonText: "确定",
  10792. cancelButtonText: "取消",
  10793. type: "warning",
  10794. })
  10795. .then(() => {
  10796. _this.evalua = "";
  10797. _this.checkId = "";
  10798. _this.eTitle = "";
  10799. let _unitJson = _this.unitJson;
  10800. for (var i = 0; i < _unitJson.length; i++) {
  10801. let _task = _unitJson[i].chapterInfo[0].taskJson;
  10802. for (var j = 0; j < _task.length; j++) {
  10803. let _eList = _task[j].eList;
  10804. for (var k = 0; k < _eList.length; k++) {
  10805. delete _eList[k].target;
  10806. }
  10807. }
  10808. }
  10809. _this.$forceUpdate();
  10810. if (_this.cid) {
  10811. _this.updateWork();
  10812. }
  10813. })
  10814. .catch(() => {
  10815. return;
  10816. });
  10817. },
  10818. selectEva() {
  10819. let params = {
  10820. oid: this.oid,
  10821. };
  10822. this.ajax
  10823. .get(this.$store.state.api + "selectAllEvaluation", params)
  10824. .then((res) => {
  10825. this.evaJuri = res.data[0];
  10826. })
  10827. .catch((err) => {
  10828. console.error(err);
  10829. });
  10830. },
  10831. setMindData() {
  10832. let targetArray = [];
  10833. this.data.data = [];
  10834. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  10835. let _eJson = Object.keys(this.eJson);
  10836. let _e = this.eJson;
  10837. for (let i = 0; i < _eJson.length; i++) {
  10838. let element = _e[_eJson[i]];
  10839. this.data.data.push({
  10840. id: element.id,
  10841. parentid: "root",
  10842. topic: element.name,
  10843. });
  10844. // targetArray.push({
  10845. // id: element.id,
  10846. // parentid: "root",
  10847. // name: element.name,
  10848. // });
  10849. targetArray.push({
  10850. value: element.name,
  10851. label: element.name,
  10852. children: [],
  10853. });
  10854. let _eJsonc = Object.keys(element.child);
  10855. let _e2 = element.child;
  10856. for (let j = 0; j < _eJsonc.length; j++) {
  10857. let _ec = _e2[_eJsonc[j]];
  10858. this.data.data.push({
  10859. id: _ec.id,
  10860. parentid: element.id,
  10861. topic: _ec.name,
  10862. });
  10863. // targetArray.push({
  10864. // id: _ec.id,
  10865. // parentid: element.id,
  10866. // name: _ec.name,
  10867. // });
  10868. targetArray[i].children.push({
  10869. value: _ec.name,
  10870. label: _ec.name,
  10871. children: [],
  10872. });
  10873. let _eJsonz = Object.keys(_ec.child);
  10874. let _e3 = _ec.child;
  10875. for (let z = 0; z < _eJsonz.length; z++) {
  10876. let _ez = _e3[_eJsonz[z]];
  10877. this.data.data.push({
  10878. id: _ez.id,
  10879. parentid: _ec.id,
  10880. topic: _ez.name,
  10881. });
  10882. // targetArray.push({
  10883. // id: _ez.id,
  10884. // parentid: _ec.id,
  10885. // name: _ez.name,
  10886. // });
  10887. targetArray[i].children[j].children.push({
  10888. value: _ez.name,
  10889. label: _ez.name,
  10890. });
  10891. }
  10892. }
  10893. }
  10894. this.targetArray = targetArray;
  10895. this.$forceUpdate();
  10896. },
  10897. /*添加评价 */
  10898. addEList(index, tIndex) {
  10899. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  10900. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  10901. value: "",
  10902. detail: "",
  10903. score: 5,
  10904. })
  10905. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  10906. { value: "", detail: "", score: 5 },
  10907. ]);
  10908. this.$forceUpdate();
  10909. },
  10910. forceUpdate() {
  10911. this.$forceUpdate();
  10912. },
  10913. deletEList(index, tIndex, eIndex) {
  10914. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  10915. eIndex,
  10916. 1
  10917. );
  10918. this.$forceUpdate();
  10919. },
  10920. getChoosePic(t) {
  10921. this.chooseType = t;
  10922. this.getAllBanner();
  10923. },
  10924. getAllBanner() {
  10925. this.sysPicVisible = true;
  10926. let params = {
  10927. t: this.chooseType,
  10928. };
  10929. this.ajax
  10930. .get(this.$store.state.api + "selectAllBanner", params)
  10931. .then((res) => {
  10932. this.sysPic = res.data[0];
  10933. })
  10934. .catch((err) => {
  10935. console.error(err);
  10936. });
  10937. },
  10938. // getClass() {
  10939. // let params = {
  10940. // oid: this.oid,
  10941. // };
  10942. // this.ajax
  10943. // .get(this.$store.state.api + "selectClassBySchool", params)
  10944. // .then((res) => {
  10945. // this.classJuri = res.data[0];
  10946. // })
  10947. // .catch((err) => {
  10948. // console.error(err);
  10949. // });
  10950. // },
  10951. deleteSysPic() {
  10952. this.cover = [];
  10953. this.isSysPic = false;
  10954. },
  10955. deleteSelectPic() {
  10956. this.selectJson.url = "";
  10957. },
  10958. setEListStar() {
  10959. this.$forceUpdate();
  10960. },
  10961. deletRateList(i) {
  10962. this.rateJson.splice(i, 1);
  10963. },
  10964. addRateList() {
  10965. this.rateJson.push({ detail: "", score: 5, value: "" });
  10966. },
  10967. addSt() {
  10968. this.sentenceList.push({
  10969. sentenceTitle: "",
  10970. addSentence: [],
  10971. rightAnswer: [],
  10972. });
  10973. },
  10974. addSen(i) {
  10975. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  10976. // this.isPushTitleList.push(this.sentenceTitle);
  10977. this.sentenceList[i].sentenceTitle = "";
  10978. },
  10979. setRightAnswer(s, i, j) {
  10980. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  10981. this.sentenceList[i].rightAnswer.push(s);
  10982. }
  10983. },
  10984. returnCard(r, i, j) {
  10985. this.sentenceList[i].rightAnswer.splice(j, 1);
  10986. },
  10987. addSentenceTool() {
  10988. for (var i = 0; i < this.sentenceList.length; i++) {
  10989. if (this.sentenceList[i].rightAnswer.length == 0) {
  10990. this.$message.error("请将信息填写完整!");
  10991. return;
  10992. }
  10993. if (
  10994. this.sentenceList[i].addSentence.length !=
  10995. this.sentenceList[i].rightAnswer.length
  10996. ) {
  10997. this.$message.error("请将信息填写完整!");
  10998. return;
  10999. }
  11000. }
  11001. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11002. this.taskCount
  11003. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  11004. this.sentenceList = [
  11005. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  11006. ];
  11007. this.dialogVisibleSentence = false;
  11008. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11009. // itemTaskIndex
  11010. // ].toolChoose[toolIndex].tool = [];
  11011. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11012. // itemTaskIndex
  11013. // ].toolChoose[toolIndex].tool.push(i);
  11014. if (
  11015. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11016. .toolChoose[this.toolIndex].tool != 47
  11017. ) {
  11018. this.addTools(47, this.taskCount, this.toolIndex);
  11019. }
  11020. },
  11021. addTableJson() {
  11022. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  11023. // this.$message.error("请将信息填写完整!");
  11024. // return;
  11025. // }
  11026. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11027. this.taskCount
  11028. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  11029. // this.tableJson = [{ text: "" }];
  11030. // this.dialogVisibleTable = false;
  11031. this.$message.success("上传成功");
  11032. if (
  11033. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11034. .toolChoose[this.toolIndex].tool != 48
  11035. ) {
  11036. this.addTools(48, this.taskCount, this.toolIndex);
  11037. }
  11038. },
  11039. addWordJson() {
  11040. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11041. this.taskCount
  11042. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  11043. // this.wordJson = [{ text: "" }];
  11044. // this.dialogVisibleWord = false;
  11045. this.$message.success("上传成功");
  11046. if (
  11047. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11048. .toolChoose[this.toolIndex].tool != 52
  11049. ) {
  11050. this.addTools(52, this.taskCount, this.toolIndex);
  11051. }
  11052. },
  11053. addMoreUpload() {
  11054. if (this.uploadJson.length == 0) {
  11055. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11056. this.taskCount
  11057. ].toolChoose[this.toolIndex].uploadJson = [];
  11058. } else {
  11059. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11060. this.taskCount
  11061. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  11062. }
  11063. this.uploadJson = [];
  11064. this.dialogVisibleMoreUpload = false;
  11065. if (
  11066. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11067. .toolChoose[this.toolIndex].tool != 50
  11068. ) {
  11069. this.addTools(50, this.taskCount, this.toolIndex);
  11070. }
  11071. },
  11072. addPreTime() {
  11073. if (this.preTime == 0) {
  11074. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11075. this.taskCount
  11076. ].toolChoose[this.toolIndex].preTime = 0;
  11077. } else {
  11078. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11079. this.taskCount
  11080. ].toolChoose[this.toolIndex].preTime = this.preTime;
  11081. }
  11082. this.preTime = 0;
  11083. this.dialogVisiblePreTime = false;
  11084. if (
  11085. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11086. .toolChoose[this.toolIndex].tool != 10
  11087. ) {
  11088. this.addTools(10, this.taskCount, this.toolIndex);
  11089. }
  11090. },
  11091. goToTask(i) {
  11092. $(".rightBox")[0].scrollTop =
  11093. $(".taskBorder")[i].offsetTop +
  11094. $(".taskBorder")[i].parentElement.parentElement.offsetTop;
  11095. this.isClickColor = i + 1;
  11096. },
  11097. taskMove(type, index) {
  11098. // this
  11099. // .$confirm("切换任务顺序将删除所有工具的提交成果,是否继续此操作?", "提示", {
  11100. // confirmButtonText: "确定",
  11101. // cancelButtonText: "取消",
  11102. // type: "warning",
  11103. // })
  11104. // .then(() => {
  11105. if (type == 1) {
  11106. if (index > 0) {
  11107. let a = JSON.parse(
  11108. JSON.stringify(
  11109. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1]
  11110. )
  11111. );
  11112. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  11113. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  11114. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  11115. }
  11116. } else {
  11117. if (
  11118. index <
  11119. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  11120. ) {
  11121. let a = JSON.parse(
  11122. JSON.stringify(
  11123. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1]
  11124. )
  11125. );
  11126. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  11127. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  11128. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  11129. }
  11130. }
  11131. this.$forceUpdate();
  11132. // })
  11133. // .catch(() => {
  11134. // return;
  11135. // })
  11136. },
  11137. addGroup(i) {
  11138. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  11139. this.groupJson.group.push({
  11140. name: "第" + (this.groupJson.group.length + 1) + "组",
  11141. });
  11142. },
  11143. deleteGroup(i) {
  11144. this.groupJson.group.splice(i, 1);
  11145. },
  11146. addGroupJson() {
  11147. for (var i = 0; i < this.groupJson.group.length; i++) {
  11148. if (!this.groupJson.group[i].name) {
  11149. this.$message.error("请将信息填写完整!");
  11150. return;
  11151. }
  11152. }
  11153. if (!this.groupJson.number) {
  11154. this.$message.error("请将信息填写完整!");
  11155. return;
  11156. }
  11157. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11158. this.taskCount
  11159. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  11160. JSON.stringify(this.groupJson)
  11161. );
  11162. this.dialogVisibleGroup = false;
  11163. this.groupJson = {};
  11164. if (
  11165. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11166. .toolChoose[this.toolIndex].tool != 49
  11167. ) {
  11168. this.addTools(49, this.taskCount, this.toolIndex);
  11169. }
  11170. },
  11171. updateTime(preTime) {
  11172. this.preTime = preTime;
  11173. },
  11174. InviteChange(val) {
  11175. console.log(val);
  11176. return;
  11177. let array = JSON.parse(JSON.stringify(val));
  11178. this.inviteCode = this.inviteCode.filter((el) => {
  11179. if (val.indexOf(el.cid) != -1) {
  11180. array.splice(array.indexOf(el.cid), 1);
  11181. return el;
  11182. }
  11183. });
  11184. for (var i = 0; i < array.length; i++) {
  11185. this.getInviteCode(array[i]);
  11186. }
  11187. },
  11188. async getInviteCode(cid) {
  11189. let code = this.randomNumber();
  11190. let params = {
  11191. code: code,
  11192. oid: this.oid,
  11193. };
  11194. let type = 1;
  11195. for (var i = 0; i < this.inviteCode.length; i++) {
  11196. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  11197. type = 2;
  11198. }
  11199. }
  11200. if (type == 2) {
  11201. this.getInviteCode(cid);
  11202. return;
  11203. }
  11204. const res = await this.ajax.get(
  11205. this.$store.state.api + "selectInviteCode2",
  11206. params
  11207. );
  11208. if (
  11209. res.data.length &&
  11210. res.data[0].length &&
  11211. res.data[0][0].courseId != this.cid
  11212. ) {
  11213. this.getInviteCode(cid);
  11214. return;
  11215. }
  11216. let array = [];
  11217. for (var i = 0; i < this.inviteCode.length; i++) {
  11218. array.push(this.inviteCode[i].cid);
  11219. }
  11220. if (array.indexOf(cid) != -1) {
  11221. this.inviteCode[array.indexOf(cid)].ic = code;
  11222. } else {
  11223. this.inviteCode.push({ cid: cid, ic: code });
  11224. }
  11225. },
  11226. OpenInviteD(cid) {
  11227. let array = [];
  11228. this.icode = "";
  11229. for (var i = 0; i < this.inviteCode.length; i++) {
  11230. array.push(this.inviteCode[i].cid);
  11231. }
  11232. if (array.indexOf(cid) != -1) {
  11233. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  11234. }
  11235. this.inviteId = cid;
  11236. this.dialogVisibleInvite = true;
  11237. },
  11238. addInvite() {
  11239. let reg = /^[A-Za-z0-9]{4,}$/;
  11240. if (!reg.test(this.icode)) {
  11241. this.$message.error("请输入至少四位数字或英文组合的随机码");
  11242. return;
  11243. }
  11244. let type = 1;
  11245. for (var i = 0; i < this.inviteCode.length; i++) {
  11246. if (
  11247. this.inviteCode[i].cid != this.inviteId &&
  11248. this.icode == this.inviteCode[i].ic
  11249. ) {
  11250. type = 2;
  11251. }
  11252. }
  11253. if (type == 2) {
  11254. this.$message.error("已有此随机码,不能重复");
  11255. return;
  11256. }
  11257. let params = {
  11258. code: this.icode,
  11259. oid: this.oid,
  11260. };
  11261. this.ajax
  11262. .get(this.$store.state.api + "selectInviteCode", params)
  11263. .then((res) => {
  11264. if (
  11265. res.data.length &&
  11266. res.data[0].length &&
  11267. res.data[0][0].courseId != this.cid
  11268. ) {
  11269. this.$message.error("已有此随机码,不能重复");
  11270. return;
  11271. }
  11272. let array = [];
  11273. for (var i = 0; i < this.inviteCode.length; i++) {
  11274. array.push(this.inviteCode[i].cid);
  11275. }
  11276. if (array.indexOf(this.inviteId) != -1) {
  11277. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  11278. } else {
  11279. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  11280. }
  11281. this.icode = "";
  11282. this.dialogVisibleInvite = false;
  11283. })
  11284. .catch((err) => {
  11285. console.error(err);
  11286. });
  11287. },
  11288. randomNumber() {
  11289. // 随机生成两位数
  11290. // let num = Math.floor(Math.random() * 900) + 100;
  11291. // 生成 0 到 99 之间的随机整数
  11292. const randomNumber = Math.floor(Math.random() * 100);
  11293. // 如果随机数小于 10,补上前导零
  11294. const num =
  11295. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  11296. // 随机生成两个大写字母
  11297. let letters = "";
  11298. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  11299. for (let i = 0; i < 3; i++) {
  11300. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  11301. }
  11302. // 随机生成两位数字和字母的组合
  11303. let mix = "";
  11304. let chars =
  11305. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  11306. for (let i = 0; i < 3; i++) {
  11307. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  11308. mix += char;
  11309. }
  11310. // 随机选择一种类型
  11311. let type = Math.floor(Math.random() * 3);
  11312. return num;
  11313. // 根据类型输出结果
  11314. switch (type) {
  11315. case 0:
  11316. console.log(num); // 输出两位数
  11317. return num;
  11318. case 1:
  11319. console.log(letters); // 输出两个大写字母
  11320. return letters;
  11321. case 2:
  11322. console.log(mix); // 输出两位数字和字母的组合
  11323. return mix;
  11324. }
  11325. },
  11326. },
  11327. beforeDestroy() {
  11328. clearTimeout(this.timer);
  11329. this.timer = null;
  11330. clearInterval(this.timer2);
  11331. this.timer2 = null;
  11332. },
  11333. beforeRouteLeave(to, from, next) {
  11334. clearTimeout(this.timer);
  11335. this.timer = null;
  11336. clearInterval(this.timer2);
  11337. this.timer2 = null;
  11338. next();
  11339. },
  11340. created() {
  11341. this.getStudent();
  11342. this.getTeacher();
  11343. this.getClass();
  11344. this.getTemplate();
  11345. // this.selectType();
  11346. this.selectEva();
  11347. this.loading = false;
  11348. this.timer2 = setInterval(() => {
  11349. this.selectEva();
  11350. }, 5000);
  11351. setTimeout(() => {
  11352. this.selectCourseDetail();
  11353. }, 500);
  11354. },
  11355. mounted() {
  11356. this.$nextTick(() => {
  11357. //监听这个dom的scroll事件
  11358. $(".rightBox")[0].addEventListener("scroll", this.scrollChange);
  11359. });
  11360. },
  11361. };
  11362. </script>
  11363. <style scoped>
  11364. @media screen and (max-width: 1280px) {
  11365. .mbCss {
  11366. flex-direction: column !important;
  11367. }
  11368. .pjCss {
  11369. width: 100% !important;
  11370. }
  11371. .evaCss {
  11372. width: 100% !important;
  11373. }
  11374. }
  11375. .dialog_diy >>> .el-dialog__header {
  11376. background: #3c3c3c !important;
  11377. padding: 15px 20px;
  11378. }
  11379. .dialog_diy >>> .el-dialog__title {
  11380. color: #fff;
  11381. }
  11382. .dialog_diy >>> .el-dialog__headerbtn {
  11383. top: 19px;
  11384. }
  11385. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close {
  11386. color: #fff;
  11387. }
  11388. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover {
  11389. color: #fff;
  11390. }
  11391. .dialog_diy >>> .el-dialog__body,
  11392. .dialog_diy >>> .el-dialog__footer {
  11393. background: #fafafa;
  11394. }
  11395. .dialog_diy3 >>> .el-dialog__body,
  11396. .dialog_diy3 >>> .el-dialog__footer {
  11397. background: #eee !important;
  11398. }
  11399. .dialog_diy3 >>> .el-dialog__body {
  11400. padding: 20px 20px;
  11401. }
  11402. .source_diy >>> .el-dialog {
  11403. height: 100% !important;
  11404. margin: 0 auto !important;
  11405. }
  11406. .source_diy >>> .el-dialog__body {
  11407. height: calc(100% - 185px);
  11408. overflow: auto;
  11409. background: #e6eaf0;
  11410. }
  11411. .source_diy >>> .el-dialog__footer {
  11412. background: #e6eaf0 !important;
  11413. }
  11414. .left {
  11415. border-right: 1px solid rgb(60, 94, 143);
  11416. display: flex;
  11417. flex-direction: column;
  11418. align-items: center;
  11419. min-height: 600px;
  11420. width: 385px;
  11421. height: 80%;
  11422. }
  11423. .tips {
  11424. color: rgb(128, 128, 128);
  11425. font-size: 12px;
  11426. width: 270px;
  11427. margin: 40px;
  11428. }
  11429. .pb_content {
  11430. height: 100% !important;
  11431. /* margin: 0 20px 0 20px; */
  11432. }
  11433. .pb_content_body {
  11434. width: 100% !important;
  11435. height: 100%;
  11436. }
  11437. .info_solid {
  11438. width: 270px;
  11439. height: 30px;
  11440. border-left: 1px solid #bdbdbd;
  11441. margin: 10px 0px 10px 30px;
  11442. }
  11443. .info_steps {
  11444. width: 270px;
  11445. font-size: 0.875rem;
  11446. display: flex;
  11447. align-items: center;
  11448. }
  11449. .info_steps span:nth-child(1) {
  11450. width: 30px;
  11451. height: 30px;
  11452. background: rgba(0, 0, 0, 0.38);
  11453. display: block;
  11454. color: #fff;
  11455. border-radius: 40px;
  11456. text-align: center;
  11457. line-height: 30px;
  11458. }
  11459. .steps_active {
  11460. background: #3d67bc !important;
  11461. }
  11462. .info_steps span:nth-child(2) {
  11463. margin-left: 5px;
  11464. }
  11465. .right {
  11466. height: 100%;
  11467. width: 100%;
  11468. display: flex;
  11469. overflow: hidden;
  11470. }
  11471. .basic_box {
  11472. margin: 0 auto;
  11473. position: relative;
  11474. padding: 0 20px 0 20px;
  11475. }
  11476. .basic_box2 {
  11477. position: relative;
  11478. width: calc(100% - 300px);
  11479. }
  11480. .basic_box_success {
  11481. width: 100%;
  11482. height: 100%;
  11483. padding: 50px 0;
  11484. position: relative;
  11485. text-align: center;
  11486. /* border-bottom: 1px solid #bfbfbf; */
  11487. box-sizing: border-box;
  11488. display: flex;
  11489. align-items: center;
  11490. flex-direction: column;
  11491. justify-content: center;
  11492. }
  11493. .info_title {
  11494. font-size: 1.5em;
  11495. margin-right: 25px;
  11496. /* margin: 20px 30px 20px 30px; */
  11497. }
  11498. .bInfo_title {
  11499. text-align: left;
  11500. margin: 10px 0;
  11501. }
  11502. .small_title {
  11503. font-size: 14px;
  11504. line-height: 40px;
  11505. }
  11506. .chapter_beizhu {
  11507. font-size: 12px;
  11508. font-weight: bold;
  11509. float: right;
  11510. color: rgb(128, 128, 128);
  11511. margin-top: 5px;
  11512. }
  11513. .chapter_uploadBox1 {
  11514. text-align: left;
  11515. background-color: rgb(242, 242, 242);
  11516. width: 100%;
  11517. height: 67px;
  11518. padding: 0px 15px;
  11519. border-radius: 8px;
  11520. overflow: hidden;
  11521. font-size: 16px;
  11522. box-sizing: border-box;
  11523. position: relative;
  11524. }
  11525. .chapter_add {
  11526. width: 100%;
  11527. height: 32px;
  11528. margin-top: 15px;
  11529. cursor: pointer;
  11530. }
  11531. .chapter_add_l {
  11532. margin-left: 5px;
  11533. width: 30px;
  11534. height: 30px;
  11535. float: left;
  11536. border: 1px solid #aaa;
  11537. color: #aaa;
  11538. border-radius: 50%;
  11539. font-size: 25px;
  11540. text-align: center;
  11541. }
  11542. .chapter_add_r {
  11543. font-size: 18px;
  11544. height: 40px;
  11545. line-height: 30px;
  11546. text-indent: 10px;
  11547. color: #aaa;
  11548. }
  11549. .chapter_add_r span {
  11550. font-size: 12px;
  11551. color: rgb(204, 204, 204);
  11552. }
  11553. .chapter_add_input {
  11554. display: none;
  11555. }
  11556. .line {
  11557. width: 85%;
  11558. margin: 0 auto;
  11559. border-top: 1px solid #e5e5e5;
  11560. margin-top: 20px;
  11561. }
  11562. .info_btnBox {
  11563. width: 100%;
  11564. display: flex;
  11565. justify-content: space-evenly;
  11566. margin: 10px 0 10px 0;
  11567. }
  11568. .info_btn,
  11569. .teacherWord {
  11570. color: #fff;
  11571. background-color: #0f7eff;
  11572. padding: 8px 24px;
  11573. font-size: 0.9375rem;
  11574. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  11575. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  11576. min-width: 64px;
  11577. font-weight: 500;
  11578. border-radius: 4px;
  11579. box-sizing: border-box;
  11580. border: none;
  11581. cursor: pointer;
  11582. }
  11583. .teacherWord {
  11584. width: 105px !important;
  11585. text-align: center !important;
  11586. line-height: 36px !important;
  11587. padding: 0 !important;
  11588. font-size: 14px !important;
  11589. margin: 10px 0 !important;
  11590. }
  11591. .wordTeacher {
  11592. display: flex;
  11593. flex-direction: column;
  11594. width: 20%;
  11595. text-align: center;
  11596. font-size: 14px;
  11597. margin: 30px 30px 0 10px;
  11598. background: #fff;
  11599. position: relative;
  11600. border-radius: 5px;
  11601. padding: 25px 0px;
  11602. }
  11603. .wordPic {
  11604. margin: 0 auto;
  11605. width: 60px;
  11606. height: 60px;
  11607. cursor: pointer;
  11608. }
  11609. .deleteWord {
  11610. width: 22px;
  11611. height: 22px;
  11612. position: absolute;
  11613. right: 5px;
  11614. top: -15px;
  11615. cursor: pointer;
  11616. display: none;
  11617. z-index: 999;
  11618. }
  11619. .wordPic > img,
  11620. .deleteWord > img,
  11621. .addToolImg > img {
  11622. width: 100%;
  11623. height: 100%;
  11624. }
  11625. .info_btn:hover {
  11626. background-color: #4f7cd5 !important;
  11627. }
  11628. .cru_selectBox {
  11629. display: flex;
  11630. margin: 24px 0 10px;
  11631. flex-wrap: nowrap;
  11632. white-space: nowrap;
  11633. overflow: auto;
  11634. position: relative;
  11635. height: 47px;
  11636. }
  11637. .cru_selectBox::-webkit-scrollbar {
  11638. /*滚动条整体样式*/
  11639. width: 6px;
  11640. /*高宽分别对应横竖滚动条的尺寸*/
  11641. height: 6px;
  11642. }
  11643. /*定义滚动条轨道 内阴影+圆角*/
  11644. .cru_selectBox::-webkit-scrollbar-track {
  11645. border-radius: 10px;
  11646. background-color: #eee;
  11647. }
  11648. /*定义滑块 内阴影+圆角*/
  11649. .cru_selectBox::-webkit-scrollbar-thumb {
  11650. border-radius: 10px;
  11651. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  11652. background-color: rgba(0, 0, 0, 0.1);
  11653. }
  11654. .cru_line {
  11655. position: absolute;
  11656. bottom: 0px;
  11657. transition: all 0.5s;
  11658. left: 0px;
  11659. width: 125px;
  11660. margin-left: -25px;
  11661. }
  11662. .cru_select {
  11663. font-size: 21px;
  11664. margin-right: 37px;
  11665. margin-left: 5px;
  11666. cursor: pointer;
  11667. color: #a6a6a6;
  11668. }
  11669. .cru_selected {
  11670. color: #0b7fc2 !important;
  11671. }
  11672. .chapter_contentbox {
  11673. display: flex;
  11674. align-items: center;
  11675. margin-top: 15px;
  11676. }
  11677. .chapter_contentbox div:nth-child(1) {
  11678. /* width: 150px; */
  11679. margin: 0px;
  11680. /* font-size: 2em; */
  11681. color: black;
  11682. display: block;
  11683. white-space: nowrap;
  11684. overflow: hidden;
  11685. text-overflow: ellipsis;
  11686. /* font-weight: 600; */
  11687. margin-right: 20px;
  11688. font-size: 18px;
  11689. }
  11690. .chapter_contentbox div:nth-child(2) {
  11691. width: 380px;
  11692. }
  11693. .chapter_contentbox div:nth-child(3),
  11694. .remove {
  11695. background-image: url("../../../assets/remove.png");
  11696. cursor: pointer;
  11697. opacity: 0.5;
  11698. width: 40px;
  11699. height: 50px;
  11700. background-repeat: no-repeat;
  11701. background-position: 5px 10px;
  11702. }
  11703. .remove1 {
  11704. background-image: url("../../../assets/remove1.png");
  11705. background-repeat: no-repeat;
  11706. background-position: 5px 10px;
  11707. width: 40px;
  11708. height: 50px;
  11709. cursor: pointer;
  11710. }
  11711. .binfo_input {
  11712. font: inherit;
  11713. color: currentColor;
  11714. width: 100%;
  11715. margin: 0;
  11716. /* padding: 15px 14px; */
  11717. padding: 8px 14px;
  11718. display: block;
  11719. min-width: 0;
  11720. outline: none;
  11721. box-sizing: content-box;
  11722. background: none;
  11723. border: 1px solid rgba(0, 0, 0, 0.23);
  11724. border-radius: 4px;
  11725. box-sizing: border-box;
  11726. background: #fff;
  11727. font-size: 18px;
  11728. }
  11729. .binfo_input:focus-visible {
  11730. border: 1px solid rgba(61, 103, 188);
  11731. }
  11732. .time {
  11733. display: flex;
  11734. margin: 35px 0 80px 0;
  11735. }
  11736. .chapter_btnbox {
  11737. width: 160px;
  11738. border-radius: 5px;
  11739. border: 2px dashed gray;
  11740. display: flex;
  11741. padding: 8px 50px;
  11742. align-items: center;
  11743. justify-content: center;
  11744. margin: 30px auto 0;
  11745. cursor: pointer;
  11746. }
  11747. .icon_add {
  11748. position: relative;
  11749. width: 24px;
  11750. padding-top: 20px;
  11751. border-radius: 100%;
  11752. border-width: 2px;
  11753. border-style: solid;
  11754. border-color: gray;
  11755. }
  11756. .icon_add i:nth-child(1) {
  11757. position: absolute;
  11758. left: 50%;
  11759. top: 50%;
  11760. height: 60%;
  11761. transform: translate(-50%, -50%);
  11762. border-width: 1px;
  11763. border-style: solid;
  11764. border-color: inherit;
  11765. }
  11766. .icon_add i:nth-child(2) {
  11767. position: absolute;
  11768. top: 50%;
  11769. left: 50%;
  11770. width: 60%;
  11771. transform: translate(-50%, -50%);
  11772. border-width: 1px;
  11773. border-style: solid;
  11774. border-color: inherit;
  11775. }
  11776. .chapter_btn_w {
  11777. font-size: 0.9375rem;
  11778. font-weight: bold;
  11779. color: gray;
  11780. margin-left: 20px;
  11781. }
  11782. .disUoloadSty >>> .el-icon-plus {
  11783. display: none !important;
  11784. /* 上传按钮隐藏 */
  11785. }
  11786. .imgLeft {
  11787. margin: 15px 0;
  11788. }
  11789. .add_info_box {
  11790. margin: 20px 0;
  11791. }
  11792. .add_info_box button {
  11793. margin: 0 10px 10px 0;
  11794. }
  11795. .add_info_box2 {
  11796. display: flex;
  11797. align-items: center;
  11798. flex-wrap: wrap;
  11799. }
  11800. .add_info_box2::after {
  11801. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  11802. color: red;
  11803. font-size: 14px;
  11804. margin-bottom: 10px;
  11805. }
  11806. .add_chapters_box {
  11807. text-align: left;
  11808. background-color: rgb(232 234 237);
  11809. width: 100%;
  11810. padding: 0px 15px;
  11811. border-radius: 15px;
  11812. font-size: 16px;
  11813. box-sizing: border-box;
  11814. position: relative;
  11815. padding: 0 10px 5px 10px;
  11816. height: 185px;
  11817. overflow-y: auto;
  11818. overflow-x: hidden;
  11819. }
  11820. .homework_box {
  11821. display: flex;
  11822. align-items: flex-start;
  11823. flex-wrap: wrap;
  11824. margin: 15px 0 0 0;
  11825. flex-direction: column;
  11826. align-content: flex-start;
  11827. }
  11828. .course_homework {
  11829. display: flex;
  11830. justify-content: center;
  11831. flex-direction: row;
  11832. align-items: center;
  11833. margin: 0 10px 0 0;
  11834. }
  11835. .course_homework >>> .el-input__inner {
  11836. width: 140px;
  11837. margin-left: 15px;
  11838. }
  11839. .chapter_upload_move {
  11840. position: relative;
  11841. background-color: #fff;
  11842. position: absolute;
  11843. width: 100%;
  11844. top: 0px;
  11845. left: 0px;
  11846. border: 1px solid #eee;
  11847. border-radius: 5px;
  11848. transition: width 2s;
  11849. -moz-transition: width 2s;
  11850. -webkit-transition: width 2s;
  11851. -o-transition: width 2s;
  11852. }
  11853. .chapter_upload_l_i {
  11854. background-image: url("../../../assets/icon.png");
  11855. background-position: 3px -165px;
  11856. width: 30px;
  11857. height: 30px;
  11858. margin: 10px auto 0 auto;
  11859. }
  11860. .left_first {
  11861. display: flex;
  11862. flex-direction: column;
  11863. flex-wrap: nowrap;
  11864. }
  11865. .right_first {
  11866. width: 100%;
  11867. height: 100%;
  11868. margin-top: 15px;
  11869. }
  11870. .right_title {
  11871. height: 30px;
  11872. padding: 15px 20px 15px 20px;
  11873. border-bottom: 1px solid #f2f2f2;
  11874. font-size: 1.5em;
  11875. font-weight: bold;
  11876. color: #0f7eff;
  11877. margin: 0 auto;
  11878. display: flex;
  11879. /* justify-content: space-between; */
  11880. align-items: flex-end;
  11881. }
  11882. .people {
  11883. border: 1px solid rgb(229 229 229);
  11884. height: 495px;
  11885. border-radius: 5px;
  11886. width: 100%;
  11887. overflow: auto;
  11888. }
  11889. .people_top {
  11890. display: flex;
  11891. width: 100%;
  11892. /* justify-content: space-between; */
  11893. /* align-items: center; */
  11894. flex-direction: column;
  11895. padding: 10px 25px 0;
  11896. box-sizing: border-box;
  11897. }
  11898. .people_nav,
  11899. .people_top_right {
  11900. /* padding: 20px 0 0 20px; */
  11901. }
  11902. .people_top_right {
  11903. height: 40px;
  11904. margin-bottom: 10px;
  11905. }
  11906. .people_search {
  11907. display: flex;
  11908. position: relative;
  11909. }
  11910. .people_search >>> .el-input__inner {
  11911. /* height: 25px; */
  11912. width: 95%;
  11913. }
  11914. .search_img {
  11915. width: 20px;
  11916. height: 20px;
  11917. position: absolute;
  11918. right: 30px;
  11919. top: 50%;
  11920. transform: translateY(-50%);
  11921. }
  11922. .search_img > img {
  11923. width: 100%;
  11924. height: 100%;
  11925. }
  11926. .people_name {
  11927. display: flex;
  11928. justify-content: flex-start;
  11929. padding: 20px 0 0 25px;
  11930. flex-direction: column;
  11931. flex-wrap: wrap;
  11932. }
  11933. .p_box {
  11934. position: relative;
  11935. }
  11936. .people_name >>> .el-checkbox {
  11937. width: 100%;
  11938. display: flex;
  11939. align-items: center;
  11940. margin-bottom: 10px;
  11941. }
  11942. .people_name >>> .el-checkbox__label {
  11943. text-overflow: ellipsis;
  11944. overflow: hidden;
  11945. width: calc(100%);
  11946. }
  11947. .people_name2 >>> .el-checkbox__label {
  11948. width: calc(100% - 130px);
  11949. }
  11950. .inviteCode {
  11951. position: absolute;
  11952. right: 30px;
  11953. color: #237ade;
  11954. top: 0;
  11955. cursor: pointer;
  11956. font-size: 13px;
  11957. }
  11958. .noneInvite {
  11959. color: #a8a8a8;
  11960. }
  11961. .inviteImg {
  11962. position: absolute;
  11963. right: 5px;
  11964. top: 0;
  11965. width: 20px;
  11966. }
  11967. .right_img {
  11968. width: 150px;
  11969. height: 150px;
  11970. margin: 20px auto;
  11971. }
  11972. .right_img > img {
  11973. width: 100%;
  11974. height: 100%;
  11975. }
  11976. .number {
  11977. margin-top: 20px;
  11978. color: #4aa6ff;
  11979. text-decoration: underline;
  11980. }
  11981. .success_button {
  11982. display: flex;
  11983. text-align: center;
  11984. margin: 5% 0 auto;
  11985. flex-direction: row;
  11986. justify-content: center;
  11987. }
  11988. .look_course {
  11989. margin-right: 40px;
  11990. background: #3d67bc;
  11991. width: 200px;
  11992. height: 35px;
  11993. line-height: 35px;
  11994. color: #fff;
  11995. text-align: center;
  11996. font-size: 14px;
  11997. border-radius: 5px;
  11998. cursor: pointer;
  11999. }
  12000. .attend_others {
  12001. width: 250px;
  12002. background: #4fb13c;
  12003. height: 35px;
  12004. line-height: 35px;
  12005. color: #fff;
  12006. text-align: center;
  12007. font-size: 14px;
  12008. border-radius: 5px;
  12009. cursor: pointer;
  12010. }
  12011. .dialog_diy2 >>> .el-dialog__body {
  12012. text-align: center;
  12013. }
  12014. .write_togother {
  12015. position: absolute;
  12016. right: 45px;
  12017. display: flex;
  12018. top: 5%;
  12019. }
  12020. .write_people {
  12021. font-size: 14px;
  12022. line-height: 50px;
  12023. padding-right: 10px;
  12024. }
  12025. .end_write {
  12026. background: #3d67bc;
  12027. color: #fff;
  12028. width: 100px;
  12029. height: 35px;
  12030. line-height: 35px;
  12031. text-align: center;
  12032. font-size: 14px;
  12033. border-radius: 5px;
  12034. cursor: pointer;
  12035. }
  12036. .chapter_upload {
  12037. height: 50px;
  12038. margin-top: 12px;
  12039. position: relative;
  12040. display: flex;
  12041. align-items: center;
  12042. width: 100%;
  12043. min-height: 50px;
  12044. }
  12045. .chapter_upload_t {
  12046. background-color: #fff;
  12047. position: absolute;
  12048. height: 100%;
  12049. top: 0px;
  12050. left: 0px;
  12051. border-radius: 40px;
  12052. box-sizing: border-box;
  12053. box-shadow: 0 0 3px 3px #dfdfdf;
  12054. }
  12055. .chapter_upload_o {
  12056. width: 100%;
  12057. height: 100%;
  12058. position: relative;
  12059. z-index: 1;
  12060. }
  12061. .chapter_upload_ic {
  12062. height: 30px;
  12063. float: right;
  12064. }
  12065. .chapter_upload_ic_l {
  12066. width: 50px;
  12067. height: 50px;
  12068. float: left;
  12069. }
  12070. .chapter_upload_ic_l div {
  12071. width: 30px;
  12072. height: 35px;
  12073. background: url("../../../assets/icon/icon.png");
  12074. }
  12075. .chapter_upload_ic_r {
  12076. width: 50px;
  12077. height: 50px;
  12078. float: left;
  12079. margin-left: 0px;
  12080. display: flex;
  12081. align-items: center;
  12082. }
  12083. .chapter_upload_ic_r div {
  12084. width: 25px;
  12085. height: 25px;
  12086. background-image: url("../../../assets/delete.png");
  12087. background-size: 100% 100%;
  12088. }
  12089. .chapter_upload_n {
  12090. display: flex;
  12091. text-indent: 10px;
  12092. text-decoration: none;
  12093. text-overflow: ellipsis;
  12094. white-space: nowrap;
  12095. overflow: hidden;
  12096. width: 55%;
  12097. margin-left: 10px;
  12098. cursor: pointer;
  12099. margin-top: 2px;
  12100. align-items: center;
  12101. }
  12102. .chapter_upload_l_i1 {
  12103. background-image: url("../../../assets/icon/video.png");
  12104. width: 28px;
  12105. height: 28px;
  12106. background-size: 100% 100%;
  12107. }
  12108. .chapter_upload_l_i5 {
  12109. background-image: url("../../../assets/icon/word.png");
  12110. width: 24px;
  12111. height: 24px;
  12112. background-size: 100% 100%;
  12113. }
  12114. .chapter_upload_l_i8 {
  12115. background-image: url("../../../assets/icon/line.png");
  12116. width: 24px;
  12117. height: 24px;
  12118. background-size: 100% 100%;
  12119. }
  12120. .chapter_upload_ud {
  12121. display: flex;
  12122. flex-direction: column;
  12123. margin-left: 5px;
  12124. justify-content: center;
  12125. }
  12126. .chapter_upload_up {
  12127. background-image: url("../../../assets/icon/up.png");
  12128. width: 17px;
  12129. height: 15px;
  12130. background-size: 100% 100%;
  12131. cursor: pointer;
  12132. }
  12133. .chapter_upload_down {
  12134. background-image: url("../../../assets/icon/down.png");
  12135. width: 17px;
  12136. height: 15px;
  12137. margin: 2px auto 0 auto;
  12138. background-size: 100% 100%;
  12139. cursor: pointer;
  12140. }
  12141. .addWordStyle {
  12142. display: flex;
  12143. flex-direction: row;
  12144. justify-content: flex-start;
  12145. overflow-x: auto;
  12146. white-space: nowrap;
  12147. flex-wrap: wrap;
  12148. }
  12149. /* table 样式 */
  12150. .cont >>> table {
  12151. border-top: 1px solid #ccc;
  12152. border-left: 1px solid #ccc;
  12153. }
  12154. .cont >>> table td,
  12155. .cont >>> table th {
  12156. border-bottom: 1px solid #ccc;
  12157. border-right: 1px solid #ccc;
  12158. /* padding: 20px 5px; */
  12159. padding: 5px 10px;
  12160. max-width: 0px;
  12161. height: 30px;
  12162. vertical-align: baseline;
  12163. }
  12164. .cont >>> table th {
  12165. border-bottom: 2px solid #ccc;
  12166. text-align: center;
  12167. }
  12168. /* blockquote 样式 */
  12169. .cont >>> blockquote {
  12170. display: block;
  12171. border-left: 8px solid #d0e5f2;
  12172. padding: 5px 10px;
  12173. margin: 10px 0;
  12174. line-height: 1.4;
  12175. font-size: 100%;
  12176. background-color: #f1f1f1;
  12177. }
  12178. /* code 样式 */
  12179. .cont >>> code {
  12180. display: inline-block;
  12181. *display: inline;
  12182. *zoom: 1;
  12183. background-color: #f1f1f1;
  12184. border-radius: 3px;
  12185. padding: 3px 5px;
  12186. margin: 0 3px;
  12187. }
  12188. .cont >>> pre code {
  12189. display: block;
  12190. }
  12191. /* ul ol 样式 */
  12192. .cont >>> ul,
  12193. ol {
  12194. margin: 10px 0 10px 20px;
  12195. }
  12196. .wordbox {
  12197. display: flex;
  12198. flex-wrap: wrap;
  12199. cursor: pointer;
  12200. width: 100%;
  12201. }
  12202. .checkword {
  12203. width: 22px;
  12204. height: 22px;
  12205. margin: 10px auto 0;
  12206. cursor: pointer;
  12207. }
  12208. .checkword img {
  12209. width: 100%;
  12210. }
  12211. .stepBg {
  12212. display: flex;
  12213. flex-direction: column;
  12214. justify-content: space-between;
  12215. align-items: center;
  12216. background: #fff;
  12217. width: 300px;
  12218. margin: 0 25px 0 0;
  12219. }
  12220. .stepTop {
  12221. min-width: 300px;
  12222. width: 300px;
  12223. /* border-radius: 10px; */
  12224. display: flex;
  12225. flex-direction: column;
  12226. justify-content: flex-start;
  12227. align-items: center;
  12228. flex-wrap: nowrap;
  12229. background: #fff;
  12230. /* top: 18%; */
  12231. }
  12232. .stepTop > div {
  12233. height: 80px;
  12234. width: 85%;
  12235. cursor: pointer;
  12236. margin: 10px 0;
  12237. border-radius: 10px;
  12238. }
  12239. .first,
  12240. .second,
  12241. .third,
  12242. .four {
  12243. background: #4a83d0;
  12244. height: 90px;
  12245. color: #fff;
  12246. display: flex;
  12247. flex-direction: row;
  12248. align-items: center;
  12249. justify-content: center;
  12250. }
  12251. .first > div:nth-child(1),
  12252. .second > div:nth-child(1),
  12253. .third > div:nth-child(1),
  12254. .four > div:nth-child(1) {
  12255. margin: 5px 10px 0 0;
  12256. width: 2rem;
  12257. }
  12258. .firstNo,
  12259. .secondNo,
  12260. .thirdNo,
  12261. .fourNo {
  12262. background: #e7e7e7;
  12263. color: #adadad;
  12264. display: flex;
  12265. flex-direction: row;
  12266. align-items: center;
  12267. justify-content: center;
  12268. }
  12269. .firstNo > div:nth-child(1),
  12270. .secondNo > div:nth-child(1),
  12271. .thirdNo > div:nth-child(1),
  12272. .fourNo > div:nth-child(1) {
  12273. margin: 5px 10px 0 0;
  12274. width: 2rem;
  12275. }
  12276. .uploadWidth >>> .el-upload {
  12277. width: 60px;
  12278. height: 60px;
  12279. position: relative;
  12280. }
  12281. .addPeople {
  12282. background: #fa6060;
  12283. width: 150px;
  12284. height: 40px;
  12285. color: #fff;
  12286. border-radius: 5px;
  12287. text-align: center;
  12288. line-height: 40px;
  12289. font-size: 14px;
  12290. cursor: pointer;
  12291. margin-top: 20px;
  12292. }
  12293. .kcImg {
  12294. width: 60px;
  12295. margin-left: 10px;
  12296. }
  12297. .zyImg {
  12298. width: 55px;
  12299. margin: 0 10px;
  12300. }
  12301. .deleteZy {
  12302. width: 20px;
  12303. position: absolute;
  12304. top: 5px;
  12305. right: 5px;
  12306. cursor: pointer;
  12307. }
  12308. .kcImg > img,
  12309. .zyImg > img,
  12310. .deleteZy > img {
  12311. width: 100%;
  12312. height: 100%;
  12313. }
  12314. .zyBox {
  12315. display: flex;
  12316. flex-direction: row;
  12317. align-items: center;
  12318. background: #67d37d;
  12319. color: #fff;
  12320. width: 210px;
  12321. margin: 20px 20px 0 0;
  12322. border-radius: 10px;
  12323. height: 70px;
  12324. position: relative;
  12325. }
  12326. .upCss {
  12327. display: flex;
  12328. flex-direction: row;
  12329. justify-content: flex-start;
  12330. }
  12331. .upCss >>> .el-icon-plus {
  12332. position: none !important;
  12333. width: 200px;
  12334. height: 100px;
  12335. display: flex;
  12336. flex-wrap: nowrap;
  12337. flex-direction: column;
  12338. align-items: center;
  12339. justify-content: center;
  12340. border: 1px dashed #ccc;
  12341. min-width: 78px;
  12342. min-height: 100px;
  12343. z-index: 999;
  12344. }
  12345. .upCss >>> .el-upload-list__item-name {
  12346. width: 100px;
  12347. white-space: nowrap;
  12348. overflow: hidden;
  12349. text-overflow: ellipsis;
  12350. }
  12351. .addStageImg {
  12352. min-width: 25px;
  12353. min-height: 25px;
  12354. width: 25px;
  12355. height: 25px;
  12356. cursor: pointer;
  12357. }
  12358. .addHW {
  12359. width: 28px;
  12360. height: 28px;
  12361. cursor: pointer;
  12362. }
  12363. .addStageImg > img,
  12364. .addHW > img {
  12365. width: 100%;
  12366. height: 100%;
  12367. }
  12368. .addNewPP >>> .el-dialog__body {
  12369. padding: 5px 20px;
  12370. }
  12371. .isHeight {
  12372. height: 680px;
  12373. }
  12374. .toolChoose {
  12375. display: flex;
  12376. /* width: 100%; */
  12377. flex-direction: row;
  12378. flex-wrap: wrap;
  12379. }
  12380. .tool {
  12381. display: flex;
  12382. flex-direction: column;
  12383. flex-wrap: nowrap;
  12384. width: fit-content;
  12385. margin: 10px 0 10px 0;
  12386. align-items: center;
  12387. }
  12388. .tool + .tool {
  12389. margin-right: 45px;
  12390. }
  12391. .whiteBIcon {
  12392. width: 80px;
  12393. cursor: pointer;
  12394. display: flex;
  12395. flex-direction: column;
  12396. flex-wrap: nowrap;
  12397. align-items: center;
  12398. }
  12399. .whiteBIcon > img,
  12400. .toolIcon > img,
  12401. .arrow > img {
  12402. width: 100%;
  12403. height: 100%;
  12404. }
  12405. .check img {
  12406. width: 20px;
  12407. height: 20px;
  12408. }
  12409. .whiteBIcon > img {
  12410. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  12411. border-radius: 15px;
  12412. }
  12413. .check {
  12414. /* width: 20px;
  12415. height: 20px; */
  12416. cursor: pointer;
  12417. margin: 10px 0;
  12418. }
  12419. .checkDiv {
  12420. display: flex;
  12421. align-items: center;
  12422. }
  12423. .checkDiv span {
  12424. margin-left: 5px;
  12425. color: #858585;
  12426. }
  12427. .customWidth >>> .el-dialog {
  12428. min-width: 500px !important;
  12429. }
  12430. .a_addBox {
  12431. margin: 10px 0;
  12432. background: #fff;
  12433. padding: 15px;
  12434. max-height: 600px;
  12435. overflow: auto;
  12436. }
  12437. .a_add_box {
  12438. border-bottom: 2px solid #eee;
  12439. padding-bottom: 25px;
  12440. }
  12441. .a_add_head {
  12442. display: flex;
  12443. align-items: center;
  12444. justify-content: space-between;
  12445. margin: 10px 0 0 0;
  12446. font-size: 18px;
  12447. }
  12448. .a_add_checkType {
  12449. margin-top: 10px;
  12450. display: flex;
  12451. font-size: 16px;
  12452. align-items: center;
  12453. }
  12454. .a_add_checkType span {
  12455. box-sizing: border-box;
  12456. padding: 0 0 5px 0;
  12457. cursor: pointer;
  12458. }
  12459. .a_add_checkType span + span {
  12460. margin-left: 10px;
  12461. }
  12462. .a_add_checkType .active {
  12463. border-bottom: 2px solid #409eff;
  12464. color: #409eff;
  12465. }
  12466. .a_add_head .a_add_head_input {
  12467. width: 300px;
  12468. }
  12469. .a_add_head .a_add_head_div {
  12470. display: flex;
  12471. align-items: center;
  12472. justify-content: space-between;
  12473. }
  12474. .a_add_body {
  12475. display: flex;
  12476. /* align-items: center; */
  12477. align-items: flex-end;
  12478. }
  12479. .a_add_input {
  12480. display: flex;
  12481. align-items: center;
  12482. flex-wrap: wrap;
  12483. }
  12484. .a_add_input_choice {
  12485. flex-direction: column;
  12486. margin-right: 10px;
  12487. }
  12488. .a_add_input_choice >>> .el-radio {
  12489. display: flex;
  12490. align-items: center;
  12491. flex-direction: row-reverse;
  12492. margin: 30px 0 0 0;
  12493. }
  12494. .a_add_input_choice >>> .el-checkbox {
  12495. display: flex;
  12496. align-items: center;
  12497. flex-direction: row-reverse;
  12498. margin: 30px 0 0 0;
  12499. }
  12500. .width100 {
  12501. width: 100%;
  12502. }
  12503. .a_add_input .a_add_persent {
  12504. width: 100%;
  12505. }
  12506. .a_add_persent_div {
  12507. width: 100%;
  12508. display: flex;
  12509. align-items: center;
  12510. }
  12511. .a_add_persent_div span {
  12512. margin: 5px 0;
  12513. }
  12514. .a_add_persent_div span:nth-child(1) {
  12515. width: 30%;
  12516. }
  12517. .a_add_persent_div span:nth-child(2) {
  12518. width: 7%;
  12519. }
  12520. .a_add_persent_div span:nth-child(3) {
  12521. width: 40%;
  12522. }
  12523. .a_add_body_div {
  12524. display: flex;
  12525. align-items: center;
  12526. justify-content: center;
  12527. /* flex-direction: column; */
  12528. }
  12529. .all_choose {
  12530. display: flex;
  12531. flex-direction: row;
  12532. align-items: flex-start;
  12533. width: 100%;
  12534. }
  12535. .all_choose > span {
  12536. min-width: 100px;
  12537. display: block;
  12538. letter-spacing: 14px;
  12539. white-space: nowrap;
  12540. overflow: hidden;
  12541. text-overflow: ellipsis;
  12542. }
  12543. .all_choose >>> .el-checkbox-group {
  12544. display: flex;
  12545. flex-direction: row;
  12546. width: 100%;
  12547. flex-wrap: wrap;
  12548. align-content: center;
  12549. justify-content: flex-start;
  12550. align-items: center;
  12551. margin-top: 3px;
  12552. }
  12553. .all_choose > .el-checkbox-group >>> .el-checkbox {
  12554. margin-bottom: 10px;
  12555. display: flex;
  12556. flex-direction: row;
  12557. align-items: center;
  12558. }
  12559. .all_choose > .el-checkbox-group > .el-checkbox >>> .el-checkbox__label {
  12560. min-width: 80px;
  12561. overflow: hidden;
  12562. width: 80px;
  12563. text-overflow: ellipsis;
  12564. white-space: nowrap;
  12565. }
  12566. .all_choose > .el-checkbox-group > .el-checkbox >>> .el-checkbox__label:hover {
  12567. width: auto;
  12568. }
  12569. .choose > div:nth-child(3) > span {
  12570. /* letter-spacing: 0 !important; */
  12571. }
  12572. .choose {
  12573. display: flex;
  12574. flex-direction: column;
  12575. flex-wrap: nowrap;
  12576. height: 100%;
  12577. justify-content: space-evenly;
  12578. align-items: flex-start;
  12579. }
  12580. .both {
  12581. display: flex;
  12582. flex-direction: row;
  12583. flex-wrap: wrap;
  12584. width: 100%;
  12585. align-items: center;
  12586. justify-content: flex-start;
  12587. margin: 15px 0;
  12588. }
  12589. .notice >>> .el-dialog {
  12590. width: 500px !important;
  12591. text-align: center;
  12592. }
  12593. .notice >>> .el-button {
  12594. margin-top: 20px;
  12595. }
  12596. .whiteBg {
  12597. background: #fff;
  12598. border-radius: 10px;
  12599. }
  12600. .chooseWho {
  12601. display: flex;
  12602. width: 380px;
  12603. flex-direction: row;
  12604. flex-wrap: nowrap;
  12605. justify-content: space-between;
  12606. padding-bottom: 10px;
  12607. }
  12608. .chooseWho > div {
  12609. cursor: pointer;
  12610. padding-bottom: 10px;
  12611. font-weight: bold;
  12612. }
  12613. .isChooseActive {
  12614. color: #3e88f4;
  12615. border-bottom: 2px solid #2f80f3;
  12616. }
  12617. .toolSort {
  12618. display: flex;
  12619. flex-direction: row;
  12620. flex-wrap: wrap;
  12621. justify-content: flex-start;
  12622. align-items: flex-start;
  12623. }
  12624. .toolSort > div {
  12625. margin-right: 45px;
  12626. }
  12627. .tools {
  12628. width: 100%;
  12629. display: flex;
  12630. flex-direction: column;
  12631. flex-wrap: nowrap;
  12632. align-items: flex-start;
  12633. }
  12634. .leftTools,
  12635. .rightTools {
  12636. width: 50%;
  12637. }
  12638. .rightTools {
  12639. display: flex;
  12640. flex-direction: row;
  12641. flex-wrap: nowrap;
  12642. justify-content: space-around;
  12643. }
  12644. .firstToolList {
  12645. display: flex;
  12646. flex-direction: column;
  12647. flex-wrap: nowrap;
  12648. align-items: center;
  12649. }
  12650. .iconList {
  12651. display: flex;
  12652. flex-direction: row;
  12653. flex-wrap: wrap;
  12654. justify-content: flex-start;
  12655. align-items: center;
  12656. margin: 20px 0 5px 0;
  12657. width: 240px;
  12658. min-width: 240px;
  12659. }
  12660. .iconTool {
  12661. display: flex;
  12662. flex-direction: column;
  12663. flex-wrap: nowrap;
  12664. align-items: center;
  12665. justify-content: flex-start;
  12666. margin: 15px 10px;
  12667. }
  12668. .toolIcon {
  12669. width: 50px;
  12670. }
  12671. .taskBorder {
  12672. border: 1px solid #e1e1e1;
  12673. border-radius: 10px;
  12674. margin-top: 20px;
  12675. /* min-height: 1160px; */
  12676. position: relative;
  12677. background: #fbfbfb;
  12678. }
  12679. .smallTaskBorder {
  12680. height: 170px;
  12681. min-height: 170px !important;
  12682. overflow: hidden;
  12683. }
  12684. .taskBorder > div {
  12685. padding: 30px 0 10px 30px;
  12686. }
  12687. .addTaskBorder {
  12688. border: 2px solid #e1e1e1;
  12689. border-radius: 10px;
  12690. margin-top: 25px;
  12691. cursor: pointer;
  12692. }
  12693. .addTaskBorder > div {
  12694. margin: 0 auto;
  12695. display: flex;
  12696. align-items: center;
  12697. justify-content: center;
  12698. }
  12699. .addTaskBorder > div > img {
  12700. width: 100px;
  12701. }
  12702. .addTaskBorder > div > span {
  12703. font-size: 23px;
  12704. color: #dbdbdb;
  12705. }
  12706. .funBlock {
  12707. display: flex;
  12708. padding: 15px 0;
  12709. flex-direction: row;
  12710. justify-content: flex-end;
  12711. align-items: center;
  12712. position: absolute;
  12713. right: 15px;
  12714. bottom: 35px;
  12715. }
  12716. .fold {
  12717. display: flex;
  12718. margin: 0 10px;
  12719. flex-direction: row;
  12720. align-items: center;
  12721. cursor: pointer;
  12722. }
  12723. .arrow {
  12724. width: 15px;
  12725. height: 15px;
  12726. margin-left: 10px;
  12727. }
  12728. .addToolFun {
  12729. display: flex;
  12730. width: 150px;
  12731. flex-direction: row;
  12732. align-items: center;
  12733. justify-content: center;
  12734. border: 1px dashed;
  12735. border-radius: 5px;
  12736. height: 50px;
  12737. margin: 20px auto 35px;
  12738. cursor: pointer;
  12739. }
  12740. .addToolImg {
  12741. width: 30px;
  12742. height: 30px;
  12743. margin-right: 20px;
  12744. }
  12745. .addToolsDia >>> .el-dialog__body {
  12746. padding: 20px;
  12747. }
  12748. .addToolsDia >>> .el-dialog__body > .toolChoose {
  12749. padding: 0;
  12750. }
  12751. .addToolsDia >>> .el-dialog__body > .toolChoose > .leftTools {
  12752. padding: 0;
  12753. border-bottom: none;
  12754. margin-bottom: 0;
  12755. }
  12756. .addToolsDia >>> .el-dialog__body > .toolChoose > .leftTools > .chooseWho {
  12757. width: 100%;
  12758. }
  12759. .lineCss >>> .el-form-item__label {
  12760. width: auto !important;
  12761. }
  12762. .lineCss >>> .el-form-item__content {
  12763. margin-left: 50px !important;
  12764. }
  12765. .newSteps {
  12766. display: flex;
  12767. width: 100% !important;
  12768. height: 80px;
  12769. cursor: pointer;
  12770. margin: 10px 0;
  12771. border-radius: 10px;
  12772. flex-direction: row;
  12773. align-content: center;
  12774. justify-content: center;
  12775. align-items: center;
  12776. margin: 0 !important;
  12777. }
  12778. /* 评价样式 */
  12779. .elist_css {
  12780. padding-bottom: 60px !important;
  12781. }
  12782. .elist_title {
  12783. margin-bottom: 10px;
  12784. }
  12785. .elist_input {
  12786. }
  12787. .elist_input_box {
  12788. display: flex;
  12789. align-items: center;
  12790. flex-wrap: wrap;
  12791. }
  12792. .elist_input_box + .elist_input_box {
  12793. margin-top: 30px;
  12794. }
  12795. .elist_input .elist_input_box input {
  12796. font: inherit;
  12797. color: currentColor;
  12798. /* width: 200px; */
  12799. max-width: 200px;
  12800. padding: 8px 14px;
  12801. display: block;
  12802. min-width: 0;
  12803. outline: none;
  12804. border: 1px solid rgba(0, 0, 0, 0.23);
  12805. border-radius: 4px;
  12806. box-sizing: border-box;
  12807. background: #fff;
  12808. margin: 0 20px 0 0;
  12809. }
  12810. .elist_input .elist_input_box span {
  12811. height: 36px;
  12812. line-height: 36px;
  12813. color: rgb(82, 82, 82);
  12814. min-width: 80px;
  12815. }
  12816. .elist_input .elist_input_box .remove {
  12817. height: 20px;
  12818. width: 20px;
  12819. background-size: 100% 100%;
  12820. background-position: unset;
  12821. margin-left: 5px;
  12822. }
  12823. .elist_input_box >>> .el-rate {
  12824. display: flex;
  12825. height: 36px;
  12826. align-items: center;
  12827. }
  12828. .elist_input_box .elist_inptu_text {
  12829. width: 100%;
  12830. display: flex;
  12831. align-items: center;
  12832. margin-top: 10px;
  12833. }
  12834. .elist_input_box .elist_inptu_text input {
  12835. /* width: 500px; */
  12836. width: 100%;
  12837. max-width: unset;
  12838. }
  12839. .elist_input_box >>> .el-rate__icon {
  12840. font-size: 24px;
  12841. }
  12842. .elist_btn {
  12843. margin-top: 10px;
  12844. }
  12845. .lineTitle {
  12846. margin-top: 15px;
  12847. width: 110px;
  12848. }
  12849. .courseTop {
  12850. display: flex;
  12851. flex-direction: row;
  12852. justify-content: flex-start;
  12853. align-items: center;
  12854. width: calc(100% - 40px);
  12855. padding: 20px 0;
  12856. margin: 0 auto;
  12857. }
  12858. .stepsNav {
  12859. display: flex;
  12860. flex-direction: row;
  12861. justify-content: flex-start;
  12862. align-items: center;
  12863. }
  12864. .stepsWord {
  12865. font-size: 18px;
  12866. color: #fff;
  12867. font-weight: bold;
  12868. margin-left: auto;
  12869. background: rgb(15, 126, 255);
  12870. border-radius: 5px;
  12871. padding: 3px 25px;
  12872. box-sizing: border-box;
  12873. }
  12874. .rightBox {
  12875. width: calc(100% - 40px);
  12876. background: rgb(255, 255, 255);
  12877. border-radius: 10px;
  12878. overflow: auto;
  12879. height: calc(100% - 160px);
  12880. position: relative;
  12881. margin: 0px auto 0;
  12882. }
  12883. .e_add_top {
  12884. display: flex;
  12885. justify-content: space-between;
  12886. padding: 20px 20px 0 20px;
  12887. border-radius: 3px;
  12888. background: #fff;
  12889. }
  12890. .e_add_title2 {
  12891. display: flex;
  12892. align-items: center;
  12893. }
  12894. .e_add_title2 span {
  12895. width: 40px;
  12896. }
  12897. .e_add_title {
  12898. display: flex;
  12899. align-items: center;
  12900. color: #b8b8b8;
  12901. font-size: 18px;
  12902. position: relative;
  12903. height: 40px;
  12904. }
  12905. .e_add_title span {
  12906. margin-right: 10px;
  12907. }
  12908. .e_add_title .el_input {
  12909. width: 300px;
  12910. }
  12911. .e_add_title >>> .el-input__inner {
  12912. width: 400px;
  12913. }
  12914. .e_add_btn {
  12915. }
  12916. .e_add_content {
  12917. display: flex;
  12918. width: 100%;
  12919. }
  12920. .e_add_list {
  12921. background: #fff;
  12922. height: 500px;
  12923. width: 210px;
  12924. position: relative;
  12925. margin: 15px 5px 0 0;
  12926. flex-shrink: 0;
  12927. display: flex;
  12928. flex-direction: column;
  12929. }
  12930. .e_add_list_title {
  12931. font-size: 20px;
  12932. width: 100%;
  12933. box-sizing: border-box;
  12934. padding: 15px 40px;
  12935. text-align: center;
  12936. border-bottom: 1px solid #eaeaea;
  12937. position: relative;
  12938. display: flex;
  12939. align-items: center;
  12940. justify-content: center;
  12941. height: 57px;
  12942. background: #f6f6f6;
  12943. }
  12944. .e_add_list_title span {
  12945. overflow: hidden;
  12946. white-space: nowrap;
  12947. text-overflow: ellipsis;
  12948. }
  12949. .e_add_list_title img {
  12950. position: absolute;
  12951. right: 15px;
  12952. width: 25px;
  12953. cursor: pointer;
  12954. top: 50%;
  12955. transform: translateY(-50%);
  12956. }
  12957. .e_add_list_body {
  12958. height: calc(100% - 187px);
  12959. overflow: auto;
  12960. }
  12961. .e_add_list_child {
  12962. width: 100%;
  12963. display: flex;
  12964. align-items: center;
  12965. justify-content: center;
  12966. position: relative;
  12967. box-sizing: border-box;
  12968. padding: 15px 40px;
  12969. text-align: center;
  12970. }
  12971. .e_add_list_child span {
  12972. overflow: hidden;
  12973. white-space: nowrap;
  12974. text-overflow: ellipsis;
  12975. cursor: pointer;
  12976. }
  12977. .e_add_list_child img {
  12978. position: absolute;
  12979. right: 10px;
  12980. width: 21px;
  12981. cursor: pointer;
  12982. top: 50%;
  12983. transform: translateY(-50%);
  12984. }
  12985. .e_add_list_child + .e_add_list_child {
  12986. border-top: 1px solid #eaeaea;
  12987. }
  12988. .e_add_list_child .active {
  12989. color: #409eff;
  12990. }
  12991. .e_add_list_btn {
  12992. position: absolute;
  12993. bottom: 0;
  12994. height: 50px;
  12995. background: rgb(120, 120, 254);
  12996. width: 100%;
  12997. color: #fff;
  12998. font-size: 16px;
  12999. text-align: center;
  13000. line-height: 50px;
  13001. cursor: pointer;
  13002. }
  13003. .e_add_list_detail {
  13004. position: absolute;
  13005. bottom: 0;
  13006. height: 130px;
  13007. background: rgb(120, 120, 254);
  13008. width: 100%;
  13009. color: #fff;
  13010. font-size: 16px;
  13011. display: flex;
  13012. align-items: center;
  13013. justify-content: center;
  13014. }
  13015. .e_add_list_detail textarea {
  13016. height: 90%;
  13017. width: 95%;
  13018. border: none;
  13019. resize: none;
  13020. outline: none;
  13021. padding: 5px;
  13022. box-sizing: border-box;
  13023. }
  13024. .e_add_list_pbox {
  13025. width: 100%;
  13026. }
  13027. .e_add_list_pbox_title {
  13028. height: 50px;
  13029. background: #fff;
  13030. display: flex;
  13031. align-items: center;
  13032. width: 100%;
  13033. box-sizing: border-box;
  13034. padding: 0 20px;
  13035. flex-direction: row;
  13036. flex-wrap: wrap;
  13037. }
  13038. .type_title {
  13039. font-size: 18px;
  13040. font-weight: 700;
  13041. }
  13042. .type_content {
  13043. font-size: 16px;
  13044. margin-left: 30px;
  13045. }
  13046. .type_content span + span {
  13047. margin-left: 20px;
  13048. }
  13049. .type_content span {
  13050. cursor: pointer;
  13051. padding-bottom: 5px;
  13052. box-sizing: border-box;
  13053. }
  13054. .type_content .active {
  13055. color: #409eff;
  13056. border-bottom: 2px solid #409eff;
  13057. }
  13058. .e_add_list_pbox_content {
  13059. height: calc(100% - 50px);
  13060. display: flex;
  13061. align-items: center;
  13062. width: 100%;
  13063. background: #fff;
  13064. }
  13065. .mbCss {
  13066. width: 100%;
  13067. display: flex;
  13068. flex-direction: row;
  13069. flex-wrap: nowrap;
  13070. align-content: center;
  13071. align-items: flex-start;
  13072. justify-content: flex-start;
  13073. }
  13074. .pjCss {
  13075. /* width: 42%; */
  13076. width: calc(100% - 55%);
  13077. display: flex;
  13078. flex-direction: column;
  13079. flex-wrap: nowrap;
  13080. align-items: flex-start;
  13081. margin-top: 1.5%;
  13082. }
  13083. .e_box {
  13084. display: flex;
  13085. flex-wrap: wrap;
  13086. max-height: 500px;
  13087. align-items: flex-start;
  13088. overflow: auto;
  13089. }
  13090. .e_card {
  13091. border: 1px solid #ccc;
  13092. background: #fff;
  13093. margin-right: 20px;
  13094. width: 270px;
  13095. display: flex;
  13096. flex-direction: column;
  13097. align-items: center;
  13098. border-radius: 5px;
  13099. margin-top: 10px;
  13100. text-align: center;
  13101. }
  13102. .e_card_picture {
  13103. margin: 10px 0;
  13104. }
  13105. .e_card_picture > img {
  13106. width: 50px;
  13107. }
  13108. .e_card_name {
  13109. width: 100%;
  13110. padding: 0 10px;
  13111. box-sizing: border-box;
  13112. margin-bottom: 10px;
  13113. overflow: hidden;
  13114. text-overflow: ellipsis;
  13115. white-space: nowrap;
  13116. }
  13117. .e_card_time {
  13118. width: 100%;
  13119. padding: 0 10px;
  13120. box-sizing: border-box;
  13121. font-size: 15px;
  13122. color: #c3c3c3;
  13123. margin-bottom: 10px;
  13124. }
  13125. .e_card_btn {
  13126. height: 40px;
  13127. display: flex;
  13128. align-items: center;
  13129. width: 100%;
  13130. background: rgb(244, 244, 244);
  13131. }
  13132. .e_card_btn:hover {
  13133. background: rgb(221 221 221);
  13134. }
  13135. .e_card_btn span {
  13136. flex: 1 1 auto;
  13137. text-align: center;
  13138. cursor: pointer;
  13139. }
  13140. .addEva {
  13141. border: 1px solid #ccc;
  13142. background: #fff;
  13143. margin-right: 20px;
  13144. width: 270px;
  13145. height: 149px;
  13146. display: flex;
  13147. flex-direction: column;
  13148. align-items: center;
  13149. border-radius: 5px;
  13150. margin-top: 10px;
  13151. text-align: center;
  13152. cursor: pointer;
  13153. justify-content: center;
  13154. }
  13155. .addEva > img {
  13156. width: 50px;
  13157. object-fit: cover;
  13158. }
  13159. .uploadFm {
  13160. border: 1px dashed #ccc;
  13161. width: 202px;
  13162. height: 102px;
  13163. position: relative;
  13164. cursor: pointer;
  13165. }
  13166. .uploadFm > img {
  13167. position: absolute;
  13168. top: 25px;
  13169. left: 35%;
  13170. width: 50px;
  13171. }
  13172. .fileCss {
  13173. width: 100%;
  13174. display: flex;
  13175. flex-direction: row;
  13176. flex-wrap: nowrap;
  13177. justify-content: space-around;
  13178. align-items: center;
  13179. padding-top: 15px;
  13180. }
  13181. .sysPicBox {
  13182. display: flex;
  13183. flex-direction: row;
  13184. flex-wrap: wrap;
  13185. align-content: flex-start;
  13186. height: 435px;
  13187. overflow: auto;
  13188. }
  13189. .sysPic {
  13190. width: 200px;
  13191. height: 115px;
  13192. margin: 0 20px 20px 0;
  13193. cursor: pointer;
  13194. }
  13195. .sysPic > img,
  13196. .isSysPic > img,
  13197. .deletePic > img {
  13198. width: 100%;
  13199. height: 100%;
  13200. object-fit: cover;
  13201. }
  13202. .isSysPic {
  13203. width: 200px;
  13204. height: 115px;
  13205. position: relative;
  13206. }
  13207. .deletePic {
  13208. width: 20px;
  13209. height: 20px;
  13210. position: absolute;
  13211. top: 0;
  13212. right: 0;
  13213. cursor: pointer;
  13214. }
  13215. .select_box1 {
  13216. }
  13217. .select_box1_img {
  13218. background: #fff;
  13219. border-radius: 5px;
  13220. padding: 15px;
  13221. box-sizing: border-box;
  13222. margin-bottom: 20px;
  13223. }
  13224. .select_box1_title {
  13225. padding: 0 0 15px 0;
  13226. border-bottom: 1px solid #eee;
  13227. margin-bottom: 15px;
  13228. }
  13229. .select_box1_title span:nth-child(1) {
  13230. font-size: 16px;
  13231. margin-right: 20px;
  13232. color: #000;
  13233. }
  13234. .select_box1_title span:nth-child(2) {
  13235. font-size: 14px;
  13236. color: rgb(112, 112, 112);
  13237. }
  13238. .select_box1_add_img {
  13239. }
  13240. .select_box1_select {
  13241. background: #fff;
  13242. border-radius: 5px;
  13243. padding: 15px;
  13244. box-sizing: border-box;
  13245. }
  13246. .select_box2 {
  13247. }
  13248. .select_box2_title {
  13249. background: #fff;
  13250. border-radius: 5px;
  13251. padding: 5px 10px;
  13252. box-sizing: border-box;
  13253. margin-bottom: 10px;
  13254. }
  13255. .select_box2_box {
  13256. display: flex;
  13257. height: 500px;
  13258. }
  13259. .select_box2_img {
  13260. width: calc(100% - 310px);
  13261. height: 100%;
  13262. overflow: auto;
  13263. background: #fff;
  13264. border-radius: 5px;
  13265. }
  13266. .select_box2_img img {
  13267. width: 100%;
  13268. }
  13269. .select_box2_answer {
  13270. background: #fff;
  13271. margin-left: 10px;
  13272. border-radius: 5px;
  13273. width: 300px;
  13274. overflow: auto;
  13275. height: 100%;
  13276. display: flex;
  13277. flex-direction: column;
  13278. align-items: center;
  13279. padding-top: 10px;
  13280. box-sizing: border-box;
  13281. }
  13282. .select_box2_answer_box {
  13283. margin: 0 0 10px 0;
  13284. width: 85%;
  13285. }
  13286. .rate_textarea {
  13287. font: inherit;
  13288. color: currentColor;
  13289. width: 100%;
  13290. padding: 8px 14px;
  13291. display: block;
  13292. min-width: 0;
  13293. outline: none;
  13294. border: 1px solid rgba(0, 0, 0, 0.23);
  13295. border-radius: 4px;
  13296. box-sizing: border-box;
  13297. background: #fff;
  13298. margin: 0 20px 0 0;
  13299. resize: none;
  13300. }
  13301. .select_answer_title {
  13302. text-align: left;
  13303. width: 85%;
  13304. margin-bottom: 10px;
  13305. font-size: 18px;
  13306. color: #8e8e8e;
  13307. }
  13308. .mask {
  13309. background-color: rgb(0 0 0 / 30%);
  13310. /* position: fixed; */
  13311. position: absolute;
  13312. top: 0;
  13313. left: 0;
  13314. width: 100%;
  13315. height: 100%;
  13316. z-index: 90;
  13317. display: flex;
  13318. align-items: center;
  13319. justify-content: center;
  13320. }
  13321. .progressBox {
  13322. width: 300px;
  13323. height: 150px;
  13324. background: #fff;
  13325. border-radius: 10px;
  13326. box-shadow: 0 0 6px 1px #bfbfbf;
  13327. display: flex;
  13328. align-items: center;
  13329. justify-content: center;
  13330. flex-direction: column;
  13331. position: relative;
  13332. color: #6c6c6c;
  13333. }
  13334. .progressBox >>> .el-progress-bar__outer {
  13335. background-color: #d1dfff !important;
  13336. }
  13337. .progressBox .lbox {
  13338. height: 50px;
  13339. font-size: 19px;
  13340. display: flex;
  13341. align-items: center;
  13342. color: #747474;
  13343. }
  13344. .progressBox .lbox img {
  13345. width: 40px;
  13346. margin-right: 20px;
  13347. }
  13348. .closeCss {
  13349. position: absolute;
  13350. top: 8px;
  13351. right: 8px;
  13352. cursor: pointer;
  13353. width: 20px;
  13354. height: 20px;
  13355. }
  13356. .closeCss > img {
  13357. width: 100%;
  13358. height: 100%;
  13359. }
  13360. .updateTips::after {
  13361. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  13362. font-size: 14px;
  13363. margin-left: 20px;
  13364. font-weight: 400;
  13365. color: #ff3a3a;
  13366. }
  13367. .updateMask {
  13368. width: 100%;
  13369. z-index: 3;
  13370. top: 0;
  13371. position: absolute;
  13372. /* background-color: rgba(0,0,0,.3); */
  13373. }
  13374. .t_j_box {
  13375. display: flex;
  13376. }
  13377. .t_j_box span:nth-child(1) {
  13378. width: 15%;
  13379. overflow: hidden;
  13380. margin-right: 10px;
  13381. text-overflow: ellipsis;
  13382. white-space: nowrap;
  13383. }
  13384. .t_j_box span:nth-child(2) {
  13385. width: 30%;
  13386. overflow: hidden;
  13387. text-overflow: ellipsis;
  13388. margin-right: 10px;
  13389. }
  13390. .t_j_box span:nth-child(3) {
  13391. max-width: calc(55% - 20px);
  13392. overflow: hidden;
  13393. text-overflow: ellipsis;
  13394. }
  13395. .sentenBox {
  13396. background: #fff;
  13397. height: 600px;
  13398. overflow: auto;
  13399. background-image: url("../../../assets/icon/conSentences/csBg.png");
  13400. background-position: 102%;
  13401. background-repeat: no-repeat;
  13402. background-size: 60%;
  13403. }
  13404. .addSen {
  13405. background: #409efe;
  13406. width: 90px;
  13407. color: #fff;
  13408. height: 35px;
  13409. text-align: center;
  13410. line-height: 35px;
  13411. border-radius: 5px;
  13412. float: right;
  13413. margin: 10px 20px 0 0;
  13414. cursor: pointer;
  13415. }
  13416. .sentenTop {
  13417. display: flex;
  13418. flex-direction: row;
  13419. flex-wrap: nowrap;
  13420. align-items: center;
  13421. }
  13422. .sentenTop > div:nth-child(2) {
  13423. width: 300px;
  13424. margin: 0 15px;
  13425. }
  13426. .sentenTop > div:nth-child(3) {
  13427. background: #409efe;
  13428. color: #fff;
  13429. width: 65px;
  13430. height: 35px;
  13431. text-align: center;
  13432. line-height: 35px;
  13433. border-radius: 5px;
  13434. cursor: pointer;
  13435. }
  13436. .cardList {
  13437. padding: 30px 0 20px 0;
  13438. display: flex;
  13439. flex-direction: row;
  13440. flex-wrap: wrap;
  13441. align-items: center;
  13442. box-sizing: border-box;
  13443. border-bottom: 1px solid #f4f4f4;
  13444. width: 98%;
  13445. margin: 0 auto;
  13446. }
  13447. .cardBox {
  13448. display: flex;
  13449. flex-direction: row;
  13450. flex-wrap: wrap;
  13451. align-items: center;
  13452. align-content: center;
  13453. }
  13454. .isCard,
  13455. .isCard1 {
  13456. width: 140px;
  13457. height: 65px;
  13458. text-align: center;
  13459. line-height: 65px;
  13460. font-size: 20px;
  13461. cursor: pointer;
  13462. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  13463. background-size: cover;
  13464. position: relative;
  13465. z-index: 99;
  13466. }
  13467. .isCard1 {
  13468. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  13469. }
  13470. .isCard:hover .deleteWord {
  13471. display: block;
  13472. }
  13473. .isCard > div:nth-child(1),
  13474. .isCard1 > div:nth-child(1) {
  13475. white-space: nowrap;
  13476. overflow: hidden;
  13477. text-overflow: ellipsis;
  13478. width: 80%;
  13479. margin: 0 auto;
  13480. }
  13481. .card {
  13482. width: 140px;
  13483. height: 65px;
  13484. }
  13485. .card > img {
  13486. width: 100%;
  13487. height: 100%;
  13488. }
  13489. .rightCardBox {
  13490. margin: 10px 0 0 10px;
  13491. }
  13492. .rightCardBox > div:nth-child(1) {
  13493. margin-bottom: 10px;
  13494. }
  13495. .cardCss {
  13496. display: flex;
  13497. flex-direction: column;
  13498. flex-wrap: nowrap;
  13499. align-items: center;
  13500. border-bottom: 3px solid #b4c3d3;
  13501. padding: 0 0 5px 0;
  13502. margin-right: 10px;
  13503. }
  13504. .cardCss > div:nth-child(2) {
  13505. background: #5b7b9d;
  13506. color: #fff;
  13507. width: 20px;
  13508. height: 20px;
  13509. border-radius: 50%;
  13510. text-align: center;
  13511. line-height: 20px;
  13512. }
  13513. .sentenTopBox {
  13514. display: flex;
  13515. flex-direction: row;
  13516. flex-wrap: nowrap;
  13517. align-items: center;
  13518. justify-content: space-between;
  13519. padding: 55px 0 0 20px;
  13520. box-sizing: border-box;
  13521. width: 85%;
  13522. }
  13523. .stepsBottom {
  13524. width: 85%;
  13525. margin-bottom: 20px;
  13526. box-shadow: 0 0 10px 10px #f7f7f7;
  13527. background: #f7f7f7;
  13528. border-radius: 10px;
  13529. overflow: hidden;
  13530. }
  13531. .course_left {
  13532. width: 300px;
  13533. height: auto;
  13534. position: relative;
  13535. }
  13536. .stepsBottom2 {
  13537. width: 300px;
  13538. margin: 20px 0;
  13539. /* box-shadow: 0 0 10px 10px #f7f7f7; */
  13540. /* background: #f7f7f7; */
  13541. border-radius: 10px;
  13542. overflow: hidden;
  13543. height: fit-content;
  13544. position: relative;
  13545. /* transition: all .5s; */
  13546. }
  13547. .navTop {
  13548. background: #53749b;
  13549. color: #fff;
  13550. height: 40px;
  13551. line-height: 40px;
  13552. padding-left: 15px;
  13553. font-size: 18px;
  13554. }
  13555. .navBottom {
  13556. background: #6b91b7;
  13557. height: 300px;
  13558. overflow: auto;
  13559. }
  13560. .navTask {
  13561. display: flex;
  13562. flex-direction: row;
  13563. flex-wrap: nowrap;
  13564. align-items: center;
  13565. padding: 5px 5px 5px 0;
  13566. cursor: pointer;
  13567. background: #ffffff;
  13568. width: 95%;
  13569. margin: 10px auto;
  13570. box-sizing: border-box;
  13571. border-radius: 5px;
  13572. }
  13573. .isNavTask {
  13574. /* background: #7e9ebd; */
  13575. }
  13576. .navTask > div:nth-child(1) {
  13577. background: #468fe4;
  13578. color: #fff;
  13579. width: 65px;
  13580. height: 25px;
  13581. line-height: 25px;
  13582. text-align: center;
  13583. border-radius: 5px;
  13584. margin: 0 10px 0 5px;
  13585. font-size: 14px;
  13586. }
  13587. .navTask > div:nth-child(2) {
  13588. /* color: #fff; */
  13589. /* max-width: 130px; */
  13590. width: 130px;
  13591. white-space: nowrap;
  13592. overflow: hidden;
  13593. text-overflow: ellipsis;
  13594. font-size: 15px;
  13595. }
  13596. .groupBox {
  13597. }
  13598. .groupContent + .groupContent {
  13599. margin-top: 30px;
  13600. }
  13601. .groupTitle {
  13602. font-size: 24px;
  13603. color: rgb(80, 80, 80);
  13604. margin-bottom: 20px;
  13605. }
  13606. .groupName {
  13607. display: flex;
  13608. align-items: center;
  13609. }
  13610. .groupn {
  13611. font-size: 15px;
  13612. margin-right: 10px;
  13613. }
  13614. .groupName + .groupName {
  13615. margin-top: 15px;
  13616. }
  13617. .groupBtn {
  13618. margin-left: 10px;
  13619. }
  13620. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  13621. text-align: left;
  13622. }
  13623. .radioBox > div {
  13624. margin: 10px 0 0 10px;
  13625. }
  13626. .radioBox >>> .el-radio__input,
  13627. .radioBox >>> .el-checkbox__inner {
  13628. margin-left: 10px;
  13629. }
  13630. .radioBox >>> .el-radio__label,
  13631. .radioBox >>> .el-checkbox__label {
  13632. display: flex;
  13633. align-items: center;
  13634. }
  13635. .inImg {
  13636. width: 50px;
  13637. }
  13638. .inImg > img {
  13639. width: 100%;
  13640. height: 100%;
  13641. object-fit: cover;
  13642. }
  13643. .upCss >>> .el-upload-list--picture .el-upload-list__item {
  13644. height: auto;
  13645. }
  13646. .upCss >>> .el-upload-list--picture .el-upload-list__item-thumbnail {
  13647. width: 200px;
  13648. height: 100px;
  13649. object-fit: contain;
  13650. background: unset;
  13651. }
  13652. .upCss
  13653. >>> .el-upload-list--picture
  13654. .el-upload-list__item.is-success
  13655. .el-upload-list__item-name {
  13656. display: none;
  13657. }
  13658. .tcMember + .tcMember::before {
  13659. content: "、";
  13660. }
  13661. .xzUpImg {
  13662. width: 25px;
  13663. height: 25px;
  13664. cursor: pointer;
  13665. }
  13666. .xzUpImg > img {
  13667. width: 100%;
  13668. height: 100%;
  13669. }
  13670. .closeCss {
  13671. position: absolute;
  13672. top: 8px;
  13673. right: 8px;
  13674. cursor: pointer;
  13675. width: 20px;
  13676. height: 20px;
  13677. }
  13678. .closeCss > img {
  13679. width: 100%;
  13680. height: 100%;
  13681. }
  13682. .moveBtn {
  13683. display: flex;
  13684. flex-direction: column;
  13685. align-items: flex-end;
  13686. width: 40px;
  13687. }
  13688. .timuUpImg {
  13689. display: flex;
  13690. flex-direction: row;
  13691. align-items: center;
  13692. }
  13693. .timuUpImg > div:nth-child(1) {
  13694. margin-right: 10px;
  13695. }
  13696. .timuImgBox {
  13697. margin: 10px 0;
  13698. display: flex;
  13699. flex-direction: column;
  13700. flex-wrap: wrap;
  13701. align-items: flex-start;
  13702. }
  13703. .timuImg {
  13704. width: 100px;
  13705. margin: 5px 0;
  13706. cursor: pointer;
  13707. position: relative;
  13708. }
  13709. .timuImg:hover .deleteWord {
  13710. display: block;
  13711. }
  13712. .deleteWord {
  13713. width: 25px;
  13714. height: 25px;
  13715. position: absolute;
  13716. right: -5px;
  13717. top: -5px;
  13718. cursor: pointer;
  13719. display: none;
  13720. }
  13721. .timuImg > img,
  13722. .deleteWord > img {
  13723. width: 100%;
  13724. height: 100%;
  13725. object-fit: cover;
  13726. }
  13727. .e_add_delete {
  13728. cursor: pointer;
  13729. margin-left: 10px;
  13730. }
  13731. .pType_box {
  13732. margin-top: 30px;
  13733. align-items: flex-end;
  13734. }
  13735. .noneBox {
  13736. height: 100%;
  13737. width: 100%;
  13738. display: flex;
  13739. align-items: center;
  13740. justify-content: center;
  13741. margin-top: 150px;
  13742. }
  13743. .noneBox > img {
  13744. width: 300px;
  13745. }
  13746. </style>