addCourse.vue 484 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185
  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 class="info_btn" @click="openSource(itemTaskIndex)">
  670. 添加资源
  671. </button> -->
  672. <!-- <button class="info_btn" @click="addImg($event)">
  673. 其他附件
  674. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  675. " />
  676. </button> -->
  677. </div>
  678. <div
  679. v-if="
  680. unitJson[unitIndex].chapterInfo[0].taskJson[
  681. itemTaskIndex
  682. ].proVisible
  683. "
  684. class="mask"
  685. >
  686. <div class="progressBox">
  687. <!-- <div id="closePro" class="closeCss">
  688. <img src="../../../../assets/icon/close.png" alt />
  689. </div> -->
  690. <div class="lbox">
  691. <img
  692. src="../../../assets/loading.gif"
  693. />上传中,请稍后
  694. </div>
  695. <div style="margin-bottom: 10px">
  696. <span
  697. >{{
  698. unitJson[unitIndex].chapterInfo[0].taskJson[
  699. itemTaskIndex
  700. ].isFinishSize
  701. }}M</span
  702. >
  703. /
  704. <span
  705. >{{
  706. unitJson[unitIndex].chapterInfo[0].taskJson[
  707. itemTaskIndex
  708. ].isAllSize
  709. }}M</span
  710. >
  711. </div>
  712. <el-progress
  713. :text-inside="true"
  714. :stroke-width="20"
  715. :percentage="
  716. unitJson[unitIndex].chapterInfo[0].taskJson[
  717. itemTaskIndex
  718. ].progress
  719. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  720. itemTaskIndex
  721. ].progress
  722. : 0
  723. "
  724. style="width: 80%"
  725. ></el-progress>
  726. </div>
  727. </div>
  728. </div>
  729. <div class="toolChoose" style="padding: 0 0 0 30px">
  730. <div class="tools">
  731. <div
  732. class="leftTools"
  733. style="
  734. width: 95%;
  735. padding: 0 0 15px 0;
  736. border-bottom: 1px solid #efefef;
  737. margin-bottom: 15px;
  738. "
  739. v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  740. :key="toolIndex"
  741. >
  742. <div>
  743. <textarea
  744. rows="3"
  745. type="text"
  746. placeholder="添加工具描述"
  747. class="binfo_input"
  748. style="
  749. margin: 0 0 20px 0;
  750. width: 71.5% !important;
  751. "
  752. v-model="itemTool.toolDetail"
  753. ></textarea>
  754. </div>
  755. <div
  756. style="
  757. display: flex;
  758. flex-direction: row;
  759. align-items: baseline;
  760. flex-wrap: nowrap;
  761. justify-content: flex-start;
  762. position: relative;
  763. "
  764. >
  765. <div
  766. style="margin-right: 20px; font-weight: bold"
  767. >
  768. 步骤 {{ toolIndex + 1 }} :
  769. </div>
  770. <div class="chooseWho">
  771. <!-- <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
  772. " @click="(itemTool.toolType = 0), $forceUpdate()">
  773. 互动类
  774. </div> -->
  775. <div
  776. :class="
  777. itemTool.toolType == 1
  778. ? 'isChooseActive'
  779. : ''
  780. "
  781. @click="
  782. (itemTool.toolType = 1), $forceUpdate()
  783. "
  784. >
  785. 思维类
  786. </div>
  787. <div
  788. :class="
  789. itemTool.toolType == 6
  790. ? 'isChooseActive'
  791. : ''
  792. "
  793. @click="
  794. (itemTool.toolType = 6), $forceUpdate()
  795. "
  796. >
  797. 协作类
  798. </div>
  799. <div
  800. :class="
  801. itemTool.toolType == 2
  802. ? 'isChooseActive'
  803. : ''
  804. "
  805. @click="
  806. (itemTool.toolType = 2), $forceUpdate()
  807. "
  808. >
  809. 测评类
  810. </div>
  811. <div
  812. :class="
  813. itemTool.toolType == 7
  814. ? 'isChooseActive'
  815. : ''
  816. "
  817. @click="
  818. (itemTool.toolType = 7), $forceUpdate()
  819. "
  820. >
  821. 评价类
  822. </div>
  823. <div
  824. :class="
  825. itemTool.toolType == 3
  826. ? 'isChooseActive'
  827. : ''
  828. "
  829. @click="
  830. (itemTool.toolType = 3), $forceUpdate()
  831. "
  832. >
  833. 学科类
  834. </div>
  835. <!-- <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
  836. " @click="(itemTool.toolType = 5), $forceUpdate()">
  837. 学科类
  838. </div>
  839. <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  840. " @click="(itemTool.toolType = 4), $forceUpdate()">
  841. 其他
  842. </div> -->
  843. </div>
  844. <div
  845. class="remove"
  846. @click="deleteTool(itemTaskIndex, toolIndex)"
  847. v-if="itemTask.toolChoose.length > 1"
  848. style="position: absolute; right: 55px"
  849. ></div>
  850. </div>
  851. <div style="min-height: 163px">
  852. <div
  853. class="toolSort"
  854. v-if="itemTool.toolType == 0"
  855. >
  856. <!-- <div class="tool">
  857. <div
  858. class="whiteBIcon"
  859. @click="addTools(8, itemTaskIndex, toolIndex)"
  860. >
  861. <img src="../../../assets/icon/secondToolList/library.png" alt />
  862. <div style="margin: 5px 0">素材库</div>
  863. </div>
  864. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  865. <img
  866. src="../../../assets/icon/checkNo.png"
  867. alt
  868. v-if="itemTool.tool.indexOf(8) == -1"
  869. />
  870. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  871. alt /><span>已选择</span></div>
  872. </div>
  873. </div>-->
  874. <!-- <div class="tool">
  875. <div
  876. class="whiteBIcon"
  877. @click="addTools(17, itemTaskIndex, toolIndex)"
  878. >
  879. <img
  880. src="../../../assets/icon/secondToolList/library.png"
  881. alt
  882. />
  883. <div style="margin: 5px 0">学习资料</div>
  884. </div>
  885. <div
  886. class="check"
  887. @click="addTools(17, itemTaskIndex, toolIndex)"
  888. >
  889. <img
  890. src="../../../assets/icon/checkNo.png"
  891. alt
  892. v-if="itemTool.tool.indexOf(17) == -1"
  893. />
  894. <img
  895. src="../../../assets/icon/checkedIs.png"
  896. alt
  897. v-else
  898. />
  899. </div>10
  900. </div> -->
  901. <div class="tool">
  902. <div
  903. class="whiteBIcon"
  904. @click="
  905. openTools(itemTaskIndex, 10, toolIndex)
  906. "
  907. >
  908. <img
  909. src="../../../assets/icon/thirdToolList/time.png"
  910. alt
  911. />
  912. <div style="margin: 5px 0">倒计时</div>
  913. </div>
  914. <div
  915. class="check"
  916. @click="
  917. addTools(10, itemTaskIndex, toolIndex)
  918. "
  919. >
  920. <img
  921. src="../../../assets/icon/checkNo.png"
  922. alt
  923. v-if="itemTool.tool.indexOf(10) == -1"
  924. />
  925. <div class="checkDiv" v-else>
  926. <img
  927. src="../../../assets/icon/checkedIs.png"
  928. alt
  929. /><span>已选择</span>
  930. </div>
  931. </div>
  932. </div>
  933. <!-- <div class="tool">
  934. <div
  935. class="whiteBIcon"
  936. @click="
  937. openTools(itemTaskIndex, 49, toolIndex)
  938. "
  939. >
  940. <img
  941. src="../../../assets/icon/fourthToolList/group.png"
  942. alt
  943. />
  944. <div style="margin: 5px 0">学生分组</div>
  945. </div>
  946. <div
  947. class="check"
  948. @click="
  949. addTools(49, itemTaskIndex, toolIndex)
  950. "
  951. >
  952. <img
  953. src="../../../assets/icon/checkNo.png"
  954. alt
  955. v-if="itemTool.tool.indexOf(49) == -1"
  956. />
  957. <div class="checkDiv" v-else>
  958. <img
  959. src="../../../assets/icon/checkedIs.png"
  960. alt
  961. /><span>已选择</span>
  962. </div>
  963. </div>
  964. </div> -->
  965. <div class="tool">
  966. <div
  967. class="whiteBIcon"
  968. @click="
  969. openTools(itemTaskIndex, 62, toolIndex)
  970. "
  971. >
  972. <img
  973. src="../../../assets/icon/fourthToolList/interVideo.png"
  974. alt
  975. />
  976. <div style="margin: 5px 0">交互视频</div>
  977. </div>
  978. <div
  979. class="check"
  980. @click="
  981. addTools(62, itemTaskIndex, toolIndex)
  982. "
  983. >
  984. <img
  985. src="../../../assets/icon/checkNo.png"
  986. alt
  987. v-if="itemTool.tool.indexOf(62) == -1"
  988. />
  989. <div class="checkDiv" v-else>
  990. <img
  991. src="../../../assets/icon/checkedIs.png"
  992. alt
  993. /><span>已选择</span>
  994. </div>
  995. </div>
  996. </div>
  997. </div>
  998. <div
  999. class="toolSort"
  1000. v-if="itemTool.toolType == 1"
  1001. >
  1002. <div class="tool">
  1003. <div
  1004. class="whiteBIcon"
  1005. @click="
  1006. addTools(7, itemTaskIndex, toolIndex)
  1007. "
  1008. >
  1009. <img
  1010. src="../../../assets/icon/secondToolList/mindNetwork.png"
  1011. alt
  1012. />
  1013. <div style="margin: 5px 0">思维网格</div>
  1014. </div>
  1015. <div
  1016. class="check"
  1017. @click="
  1018. addTools(7, itemTaskIndex, toolIndex)
  1019. "
  1020. >
  1021. <img
  1022. src="../../../assets/icon/checkNo.png"
  1023. alt
  1024. v-if="itemTool.tool.indexOf(7) == -1"
  1025. />
  1026. <div class="checkDiv" v-else>
  1027. <img
  1028. src="../../../assets/icon/checkedIs.png"
  1029. alt
  1030. /><span>已选择</span>
  1031. </div>
  1032. </div>
  1033. </div>
  1034. <div class="tool">
  1035. <div
  1036. class="whiteBIcon"
  1037. @click="
  1038. openTools(itemTaskIndex, 1, toolIndex)
  1039. "
  1040. >
  1041. <img
  1042. src="../../../assets/icon/secondToolList/whiteBoard.png"
  1043. alt
  1044. />
  1045. <div style="margin: 5px 0">电子白板</div>
  1046. </div>
  1047. <div
  1048. class="check"
  1049. @click="
  1050. addTools(1, itemTaskIndex, toolIndex)
  1051. "
  1052. >
  1053. <img
  1054. src="../../../assets/icon/checkNo.png"
  1055. alt
  1056. v-if="itemTool.tool.indexOf(1) == -1"
  1057. />
  1058. <div class="checkDiv" v-else>
  1059. <img
  1060. src="../../../assets/icon/checkedIs.png"
  1061. alt
  1062. /><span>已选择</span>
  1063. </div>
  1064. </div>
  1065. </div>
  1066. <!-- <div class="tool">
  1067. <div
  1068. class="whiteBIcon"
  1069. @click="addTools(2, itemTaskIndex, toolIndex)"
  1070. >
  1071. <img
  1072. src="../../../assets/icon/secondToolList/note.png"
  1073. alt
  1074. />
  1075. <div style="margin: 5px 0">便签</div>
  1076. </div>
  1077. <div
  1078. class="check"
  1079. @click="addTools(2, itemTaskIndex, toolIndex)"
  1080. >
  1081. <img
  1082. src="../../../assets/icon/checkNo.png"
  1083. alt
  1084. v-if="itemTool.tool.indexOf(2) == -1"
  1085. />
  1086. <div class="checkDiv" v-else>
  1087. <img
  1088. src="../../../assets/icon/checkedIs.png"
  1089. alt
  1090. /><span>已选择</span>
  1091. </div>
  1092. </div>
  1093. </div> -->
  1094. <!-- <div class="tool">
  1095. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  1096. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  1097. <div style="margin: 5px 0">协同文档</div>
  1098. </div>
  1099. <div
  1100. class="check"
  1101. @click="addTools(6, itemTaskIndex, toolIndex)"
  1102. >
  1103. <img
  1104. src="../../../assets/icon/checkNo.png"
  1105. alt
  1106. v-if="itemTool.tool.indexOf(6) == -1"
  1107. />
  1108. <div class="checkDiv" v-else>
  1109. <img
  1110. src="../../../assets/icon/checkedIs.png"
  1111. alt
  1112. /><span>已选择</span>
  1113. </div>
  1114. </div>
  1115. </div> -->
  1116. <div class="tool">
  1117. <div
  1118. class="whiteBIcon"
  1119. @click="
  1120. openTools(itemTaskIndex, 52, toolIndex)
  1121. "
  1122. >
  1123. <img
  1124. src="../../../assets/icon/fourthToolList/text.png"
  1125. alt
  1126. />
  1127. <div style="margin: 5px 0">文档</div>
  1128. </div>
  1129. <div
  1130. class="check"
  1131. @click="
  1132. addTools(52, itemTaskIndex, toolIndex)
  1133. "
  1134. >
  1135. <img
  1136. src="../../../assets/icon/checkNo.png"
  1137. alt
  1138. v-if="itemTool.tool.indexOf(52) == -1"
  1139. />
  1140. <div class="checkDiv" v-else>
  1141. <img
  1142. src="../../../assets/icon/checkedIs.png"
  1143. alt
  1144. /><span>已选择</span>
  1145. </div>
  1146. </div>
  1147. </div>
  1148. <div class="tool">
  1149. <div
  1150. class="whiteBIcon"
  1151. @click="
  1152. openTools(itemTaskIndex, 3, toolIndex)
  1153. "
  1154. >
  1155. <img
  1156. src="../../../assets/icon/secondToolList/mindMapping.png"
  1157. alt
  1158. />
  1159. <div style="margin: 5px 0">思维导图</div>
  1160. </div>
  1161. <div
  1162. class="check"
  1163. @click="
  1164. addTools(3, itemTaskIndex, toolIndex)
  1165. "
  1166. >
  1167. <img
  1168. src="../../../assets/icon/checkNo.png"
  1169. alt
  1170. v-if="itemTool.tool.indexOf(3) == -1"
  1171. />
  1172. <div class="checkDiv" v-else>
  1173. <img
  1174. src="../../../assets/icon/checkedIs.png"
  1175. alt
  1176. /><span>已选择</span>
  1177. </div>
  1178. </div>
  1179. </div>
  1180. <div class="tool">
  1181. <div
  1182. class="whiteBIcon"
  1183. @click="
  1184. openTools(itemTaskIndex, 48, toolIndex)
  1185. "
  1186. >
  1187. <img
  1188. src="../../../assets/icon/fourthToolList/table.png"
  1189. alt
  1190. />
  1191. <div style="margin: 5px 0">表格</div>
  1192. </div>
  1193. <div
  1194. class="check"
  1195. @click="
  1196. addTools(48, itemTaskIndex, toolIndex)
  1197. "
  1198. >
  1199. <img
  1200. src="../../../assets/icon/checkNo.png"
  1201. alt
  1202. v-if="itemTool.tool.indexOf(48) == -1"
  1203. />
  1204. <div class="checkDiv" v-else>
  1205. <img
  1206. src="../../../assets/icon/checkedIs.png"
  1207. alt
  1208. /><span>已选择</span>
  1209. </div>
  1210. </div>
  1211. </div>
  1212. </div>
  1213. <div
  1214. class="toolSort"
  1215. v-if="itemTool.toolType == 6"
  1216. >
  1217. <div class="tool">
  1218. <div
  1219. class="whiteBIcon"
  1220. @click="
  1221. openTools(itemTaskIndex, 49, toolIndex)
  1222. "
  1223. >
  1224. <img
  1225. src="../../../assets/icon/fourthToolList/group.png"
  1226. alt
  1227. />
  1228. <div style="margin: 5px 0">学生分组</div>
  1229. </div>
  1230. <div
  1231. class="check"
  1232. @click="
  1233. addTools(49, itemTaskIndex, toolIndex)
  1234. "
  1235. >
  1236. <img
  1237. src="../../../assets/icon/checkNo.png"
  1238. alt
  1239. v-if="itemTool.tool.indexOf(49) == -1"
  1240. />
  1241. <div class="checkDiv" v-else>
  1242. <img
  1243. src="../../../assets/icon/checkedIs.png"
  1244. alt
  1245. /><span>已选择</span>
  1246. </div>
  1247. </div>
  1248. </div>
  1249. </div>
  1250. <div
  1251. class="toolSort"
  1252. v-if="itemTool.toolType == 2"
  1253. >
  1254. <!-- <div class="tool">
  1255. <div
  1256. class="whiteBIcon"
  1257. @click="addTools(5, itemTaskIndex, toolIndex)"
  1258. >
  1259. <img
  1260. src="../../../assets/icon/thirdToolList/score.png"
  1261. alt
  1262. />
  1263. <div style="margin: 5px 0">量规评分</div>
  1264. </div>
  1265. <div
  1266. class="check"
  1267. @click="addTools(5, itemTaskIndex, toolIndex)"
  1268. >
  1269. <img
  1270. src="../../../assets/icon/checkNo.png"
  1271. alt
  1272. v-if="itemTool.tool.indexOf(5) == -1"
  1273. />
  1274. <img
  1275. src="../../../assets/icon/checkedIs.png"
  1276. alt
  1277. v-else
  1278. />
  1279. </div>
  1280. </div>-->
  1281. <div class="tool">
  1282. <div
  1283. class="whiteBIcon"
  1284. @click="
  1285. openTools(itemTaskIndex, 4, toolIndex)
  1286. "
  1287. >
  1288. <img
  1289. src="../../../assets/icon/thirdToolList/ask.png"
  1290. alt
  1291. />
  1292. <div style="margin: 5px 0">问卷调查</div>
  1293. </div>
  1294. <div
  1295. class="check"
  1296. @click="
  1297. addTools(4, itemTaskIndex, toolIndex)
  1298. "
  1299. >
  1300. <img
  1301. src="../../../assets/icon/checkNo.png"
  1302. alt
  1303. v-if="itemTool.tool.indexOf(4) == -1"
  1304. />
  1305. <div class="checkDiv" v-else>
  1306. <img
  1307. src="../../../assets/icon/checkedIs.png"
  1308. alt
  1309. /><span>已选择</span>
  1310. </div>
  1311. </div>
  1312. </div>
  1313. <div class="tool">
  1314. <div
  1315. class="whiteBIcon"
  1316. @click="
  1317. openTools(itemTaskIndex, 45, toolIndex)
  1318. "
  1319. >
  1320. <img
  1321. src="../../../assets/icon/thirdToolList/choose.png"
  1322. alt
  1323. />
  1324. <div style="margin: 5px 0">选择题</div>
  1325. </div>
  1326. <div
  1327. class="check"
  1328. @click="
  1329. addTools(45, itemTaskIndex, toolIndex)
  1330. "
  1331. >
  1332. <img
  1333. src="../../../assets/icon/checkNo.png"
  1334. alt
  1335. v-if="itemTool.tool.indexOf(45) == -1"
  1336. />
  1337. <div class="checkDiv" v-else>
  1338. <img
  1339. src="../../../assets/icon/checkedIs.png"
  1340. alt
  1341. /><span>已选择</span>
  1342. </div>
  1343. </div>
  1344. </div>
  1345. <div class="tool">
  1346. <div
  1347. class="whiteBIcon"
  1348. @click="
  1349. openTools(itemTaskIndex, 15, toolIndex)
  1350. "
  1351. >
  1352. <img
  1353. src="../../../assets/icon/thirdToolList/answer.png"
  1354. alt
  1355. />
  1356. <div style="margin: 5px 0">问答工具</div>
  1357. </div>
  1358. <div
  1359. class="check"
  1360. @click="
  1361. addTools(15, itemTaskIndex, toolIndex)
  1362. "
  1363. >
  1364. <img
  1365. src="../../../assets/icon/checkNo.png"
  1366. alt
  1367. v-if="itemTool.tool.indexOf(15) == -1"
  1368. />
  1369. <div class="checkDiv" v-else>
  1370. <img
  1371. src="../../../assets/icon/checkedIs.png"
  1372. alt
  1373. /><span>已选择</span>
  1374. </div>
  1375. </div>
  1376. </div>
  1377. <div class="tool">
  1378. <div
  1379. class="whiteBIcon"
  1380. @click="
  1381. addTools(16, itemTaskIndex, toolIndex)
  1382. "
  1383. >
  1384. <img
  1385. src="../../../assets/icon/thirdToolList/work.png"
  1386. alt
  1387. />
  1388. <div style="margin: 5px 0">作业提交</div>
  1389. </div>
  1390. <div
  1391. class="check"
  1392. @click="
  1393. addTools(16, itemTaskIndex, toolIndex)
  1394. "
  1395. >
  1396. <img
  1397. src="../../../assets/icon/checkNo.png"
  1398. alt
  1399. v-if="itemTool.tool.indexOf(16) == -1"
  1400. />
  1401. <div class="checkDiv" v-else>
  1402. <img
  1403. src="../../../assets/icon/checkedIs.png"
  1404. alt
  1405. /><span>已选择</span>
  1406. </div>
  1407. </div>
  1408. </div>
  1409. <div class="tool">
  1410. <div
  1411. class="whiteBIcon"
  1412. @click="
  1413. addTools(50, itemTaskIndex, toolIndex)
  1414. "
  1415. >
  1416. <img
  1417. src="../../../assets/icon/thirdToolList/plwork.png"
  1418. alt
  1419. />
  1420. <div style="margin: 5px 0">批量上传</div>
  1421. </div>
  1422. <div
  1423. class="check"
  1424. @click="
  1425. addTools(50, itemTaskIndex, toolIndex)
  1426. "
  1427. >
  1428. <img
  1429. src="../../../assets/icon/checkNo.png"
  1430. alt
  1431. v-if="itemTool.tool.indexOf(50) == -1"
  1432. />
  1433. <div class="checkDiv" v-else>
  1434. <img
  1435. src="../../../assets/icon/checkedIs.png"
  1436. alt
  1437. /><span>已选择</span>
  1438. </div>
  1439. </div>
  1440. </div>
  1441. <!-- <div class="tool">
  1442. <div
  1443. class="whiteBIcon"
  1444. @click="
  1445. openTools(itemTaskIndex, 40, toolIndex)
  1446. "
  1447. >
  1448. <img
  1449. src="../../../assets/icon/thirdToolList/eval.png"
  1450. alt
  1451. />
  1452. <div style="margin: 5px 0">个人评价</div>
  1453. </div>
  1454. <div
  1455. class="check"
  1456. @click="
  1457. addTools(40, itemTaskIndex, toolIndex)
  1458. "
  1459. >
  1460. <img
  1461. src="../../../assets/icon/checkNo.png"
  1462. alt
  1463. v-if="itemTool.tool.indexOf(40) == -1"
  1464. />
  1465. <div class="checkDiv" v-else>
  1466. <img
  1467. src="../../../assets/icon/checkedIs.png"
  1468. alt
  1469. /><span>已选择</span>
  1470. </div>
  1471. </div>
  1472. </div> -->
  1473. <div class="tool">
  1474. <div
  1475. class="whiteBIcon"
  1476. @click="
  1477. openTools(itemTaskIndex, 41, toolIndex)
  1478. "
  1479. >
  1480. <img
  1481. src="../../../assets/icon/thirdToolList/select.png"
  1482. alt
  1483. />
  1484. <div style="margin: 5px 0">选择填空</div>
  1485. </div>
  1486. <div
  1487. class="check"
  1488. @click="
  1489. addTools(41, itemTaskIndex, toolIndex)
  1490. "
  1491. >
  1492. <img
  1493. src="../../../assets/icon/checkNo.png"
  1494. alt
  1495. v-if="itemTool.tool.indexOf(41) == -1"
  1496. />
  1497. <div class="checkDiv" v-else>
  1498. <img
  1499. src="../../../assets/icon/checkedIs.png"
  1500. alt
  1501. /><span>已选择</span>
  1502. </div>
  1503. </div>
  1504. </div>
  1505. <div class="tool">
  1506. <div
  1507. class="whiteBIcon"
  1508. @click="
  1509. openTools(itemTaskIndex, 47, toolIndex)
  1510. "
  1511. >
  1512. <img
  1513. src="../../../assets/icon/fourthToolList/conSentences.png"
  1514. alt
  1515. />
  1516. <div style="margin: 5px 0">连词成句</div>
  1517. </div>
  1518. <div
  1519. class="check"
  1520. @click="
  1521. addTools(47, itemTaskIndex, toolIndex)
  1522. "
  1523. >
  1524. <img
  1525. src="../../../assets/icon/checkNo.png"
  1526. alt
  1527. v-if="itemTool.tool.indexOf(47) == -1"
  1528. />
  1529. <div class="checkDiv" v-else>
  1530. <img
  1531. src="../../../assets/icon/checkedIs.png"
  1532. alt
  1533. /><span>已选择</span>
  1534. </div>
  1535. </div>
  1536. </div>
  1537. <!-- <div class="tool">
  1538. <div
  1539. class="whiteBIcon"
  1540. @click="openTools(itemTaskIndex, 42, toolIndex)"
  1541. >
  1542. <img
  1543. src="../../../assets/icon/thirdToolList/mp3.png"
  1544. alt
  1545. />
  1546. <div style="margin: 5px 0">上传音频</div>
  1547. </div>
  1548. <div
  1549. class="check"
  1550. @click="addTools(42, itemTaskIndex, toolIndex)"
  1551. >
  1552. <img
  1553. src="../../../assets/icon/checkNo.png"
  1554. alt
  1555. v-if="itemTool.tool.indexOf(42) == -1"
  1556. />
  1557. <img
  1558. src="../../../assets/icon/checkedIs.png"
  1559. alt
  1560. v-else
  1561. />
  1562. </div>
  1563. </div> -->
  1564. </div>
  1565. <div
  1566. class="toolSort"
  1567. v-if="itemTool.toolType == 3"
  1568. >
  1569. <div class="tool">
  1570. <div
  1571. class="whiteBIcon"
  1572. @click="
  1573. addTools(18, itemTaskIndex, toolIndex)
  1574. "
  1575. >
  1576. <img
  1577. src="../../../assets/icon/thirdToolList/trainPlatform.png"
  1578. alt
  1579. />
  1580. <div style="margin: 5px 0">训练平台</div>
  1581. </div>
  1582. <div
  1583. class="check"
  1584. @click="
  1585. addTools(18, itemTaskIndex, toolIndex)
  1586. "
  1587. >
  1588. <img
  1589. src="../../../assets/icon/checkNo.png"
  1590. alt
  1591. v-if="itemTool.tool.indexOf(18) == -1"
  1592. />
  1593. <div class="checkDiv" v-else>
  1594. <img
  1595. src="../../../assets/icon/checkedIs.png"
  1596. alt
  1597. /><span>已选择</span>
  1598. </div>
  1599. </div>
  1600. </div>
  1601. <div class="tool">
  1602. <div
  1603. class="whiteBIcon"
  1604. @click="
  1605. addTools(21, itemTaskIndex, toolIndex)
  1606. "
  1607. >
  1608. <img
  1609. src="../../../assets/icon/fourthToolList/program.png"
  1610. alt
  1611. />
  1612. <div style="margin: 5px 0">编程平台</div>
  1613. </div>
  1614. <div
  1615. class="check"
  1616. @click="
  1617. addTools(21, itemTaskIndex, toolIndex)
  1618. "
  1619. >
  1620. <img
  1621. src="../../../assets/icon/checkNo.png"
  1622. alt
  1623. v-if="itemTool.tool.indexOf(21) == -1"
  1624. />
  1625. <div class="checkDiv" v-else>
  1626. <img
  1627. src="../../../assets/icon/checkedIs.png"
  1628. alt
  1629. /><span>已选择</span>
  1630. </div>
  1631. </div>
  1632. </div>
  1633. <div class="tool">
  1634. <div
  1635. class="whiteBIcon"
  1636. @click="
  1637. addTools(22, itemTaskIndex, toolIndex)
  1638. "
  1639. >
  1640. <img
  1641. src="../../../assets/icon/fourthToolList/AIprogram2.png"
  1642. alt
  1643. />
  1644. <div style="margin: 5px 0">AI体验</div>
  1645. </div>
  1646. <div
  1647. class="check"
  1648. @click="
  1649. addTools(22, itemTaskIndex, toolIndex)
  1650. "
  1651. >
  1652. <img
  1653. src="../../../assets/icon/checkNo.png"
  1654. alt
  1655. v-if="itemTool.tool.indexOf(22) == -1"
  1656. />
  1657. <div class="checkDiv" v-else>
  1658. <img
  1659. src="../../../assets/icon/checkedIs.png"
  1660. alt
  1661. /><span>已选择</span>
  1662. </div>
  1663. </div>
  1664. </div>
  1665. <div class="tool">
  1666. <div
  1667. class="whiteBIcon"
  1668. @click="
  1669. addTools(23, itemTaskIndex, toolIndex)
  1670. "
  1671. >
  1672. <img
  1673. src="../../../assets/icon/fourthToolList/Pythonprogram.png"
  1674. alt
  1675. />
  1676. <div style="margin: 5px 0">Python</div>
  1677. </div>
  1678. <div
  1679. class="check"
  1680. @click="
  1681. addTools(23, itemTaskIndex, toolIndex)
  1682. "
  1683. >
  1684. <img
  1685. src="../../../assets/icon/checkNo.png"
  1686. alt
  1687. v-if="itemTool.tool.indexOf(23) == -1"
  1688. />
  1689. <div class="checkDiv" v-else>
  1690. <img
  1691. src="../../../assets/icon/checkedIs.png"
  1692. alt
  1693. /><span>已选择</span>
  1694. </div>
  1695. </div>
  1696. </div>
  1697. <div class="tool">
  1698. <div
  1699. class="whiteBIcon"
  1700. @click="
  1701. addTools(24, itemTaskIndex, toolIndex)
  1702. "
  1703. >
  1704. <img
  1705. src="../../../assets/icon/fourthToolList/AIprogram.png"
  1706. alt
  1707. />
  1708. <div style="margin: 5px 0">AI平台</div>
  1709. </div>
  1710. <div
  1711. class="check"
  1712. @click="
  1713. addTools(24, itemTaskIndex, toolIndex)
  1714. "
  1715. >
  1716. <img
  1717. src="../../../assets/icon/checkNo.png"
  1718. alt
  1719. v-if="itemTool.tool.indexOf(24) == -1"
  1720. />
  1721. <div class="checkDiv" v-else>
  1722. <img
  1723. src="../../../assets/icon/checkedIs.png"
  1724. alt
  1725. /><span>已选择</span>
  1726. </div>
  1727. </div>
  1728. </div>
  1729. <!-- <div class="tool">
  1730. <div
  1731. class="whiteBIcon"
  1732. @click="
  1733. addTools(32, itemTaskIndex, toolIndex)
  1734. "
  1735. >
  1736. <img
  1737. src="../../../assets/icon/thirdToolList/code.png"
  1738. alt
  1739. />
  1740. <div style="margin: 5px 0">源码编辑</div>
  1741. </div>
  1742. <div
  1743. class="check"
  1744. @click="
  1745. addTools(32, itemTaskIndex, toolIndex)
  1746. "
  1747. >
  1748. <img
  1749. src="../../../assets/icon/checkNo.png"
  1750. alt
  1751. v-if="itemTool.tool.indexOf(32) == -1"
  1752. />
  1753. <div class="checkDiv" v-else>
  1754. <img
  1755. src="../../../assets/icon/checkedIs.png"
  1756. alt
  1757. /><span>已选择</span>
  1758. </div>
  1759. </div>
  1760. </div> -->
  1761. <div class="tool">
  1762. <div
  1763. class="whiteBIcon"
  1764. @click="
  1765. addTools(57, itemTaskIndex, toolIndex)
  1766. "
  1767. >
  1768. <img
  1769. src="../../../assets/icon/fourthToolList/cocopi.png"
  1770. alt
  1771. />
  1772. <div style="margin: 5px 0">CocoPi</div>
  1773. </div>
  1774. <div
  1775. class="check"
  1776. @click="
  1777. addTools(57, itemTaskIndex, toolIndex)
  1778. "
  1779. >
  1780. <img
  1781. src="../../../assets/icon/checkNo.png"
  1782. alt
  1783. v-if="itemTool.tool.indexOf(57) == -1"
  1784. />
  1785. <div class="checkDiv" v-else>
  1786. <img
  1787. src="../../../assets/icon/checkedIs.png"
  1788. alt
  1789. /><span>已选择</span>
  1790. </div>
  1791. </div>
  1792. </div>
  1793. <div class="tool">
  1794. <div
  1795. class="whiteBIcon"
  1796. @click="
  1797. addTools(63, itemTaskIndex, toolIndex)
  1798. "
  1799. >
  1800. <img
  1801. src="../../../assets/icon/fourthToolList/Wood.png"
  1802. alt
  1803. />
  1804. <div style="margin: 5px 0">海龟编程</div>
  1805. </div>
  1806. <div
  1807. class="check"
  1808. @click="
  1809. addTools(63, itemTaskIndex, toolIndex)
  1810. "
  1811. >
  1812. <img
  1813. src="../../../assets/icon/checkNo.png"
  1814. alt
  1815. v-if="itemTool.tool.indexOf(63) == -1"
  1816. />
  1817. <div class="checkDiv" v-else>
  1818. <img
  1819. src="../../../assets/icon/checkedIs.png"
  1820. alt
  1821. /><span>已选择</span>
  1822. </div>
  1823. </div>
  1824. </div>
  1825. </div>
  1826. <div
  1827. class="toolSort"
  1828. v-if="itemTool.toolType == 5"
  1829. >
  1830. <div class="tool">
  1831. <div
  1832. class="whiteBIcon"
  1833. @click="
  1834. addTools(28, itemTaskIndex, toolIndex)
  1835. "
  1836. >
  1837. <img
  1838. src="../../../assets/icon/secondToolList/translation.png"
  1839. alt
  1840. />
  1841. <div style="margin: 5px 0">翻译</div>
  1842. </div>
  1843. <div
  1844. class="check"
  1845. @click="
  1846. addTools(28, itemTaskIndex, toolIndex)
  1847. "
  1848. >
  1849. <img
  1850. src="../../../assets/icon/checkNo.png"
  1851. alt
  1852. v-if="itemTool.tool.indexOf(28) == -1"
  1853. />
  1854. <div class="checkDiv" v-else>
  1855. <img
  1856. src="../../../assets/icon/checkedIs.png"
  1857. alt
  1858. /><span>已选择</span>
  1859. </div>
  1860. </div>
  1861. </div>
  1862. <div class="tool">
  1863. <div
  1864. class="whiteBIcon"
  1865. @click="
  1866. addTools(37, itemTaskIndex, toolIndex)
  1867. "
  1868. >
  1869. <img
  1870. src="../../../assets/icon/secondToolList/mohe.png"
  1871. alt
  1872. />
  1873. <div style="margin: 5px 0">魔盒识字</div>
  1874. </div>
  1875. <div
  1876. class="check"
  1877. @click="
  1878. addTools(37, itemTaskIndex, toolIndex)
  1879. "
  1880. >
  1881. <img
  1882. src="../../../assets/icon/checkNo.png"
  1883. alt
  1884. v-if="itemTool.tool.indexOf(37) == -1"
  1885. />
  1886. <div class="checkDiv" v-else>
  1887. <img
  1888. src="../../../assets/icon/checkedIs.png"
  1889. alt
  1890. /><span>已选择</span>
  1891. </div>
  1892. </div>
  1893. </div>
  1894. <div class="tool">
  1895. <div
  1896. class="whiteBIcon"
  1897. @click="
  1898. addTools(38, itemTaskIndex, toolIndex)
  1899. "
  1900. >
  1901. <img
  1902. src="../../../assets/icon/secondToolList/24game.png"
  1903. alt
  1904. />
  1905. <div style="margin: 5px 0">24点</div>
  1906. </div>
  1907. <div
  1908. class="check"
  1909. @click="
  1910. addTools(38, itemTaskIndex, toolIndex)
  1911. "
  1912. >
  1913. <img
  1914. src="../../../assets/icon/checkNo.png"
  1915. alt
  1916. v-if="itemTool.tool.indexOf(38) == -1"
  1917. />
  1918. <div class="checkDiv" v-else>
  1919. <img
  1920. src="../../../assets/icon/checkedIs.png"
  1921. alt
  1922. /><span>已选择</span>
  1923. </div>
  1924. </div>
  1925. </div>
  1926. <div class="tool">
  1927. <div
  1928. class="whiteBIcon"
  1929. @click="
  1930. addTools(31, itemTaskIndex, toolIndex)
  1931. "
  1932. >
  1933. <img
  1934. src="../../../assets/icon/secondToolList/networkPanel.png"
  1935. alt
  1936. />
  1937. <div style="margin: 5px 0">数学画板</div>
  1938. </div>
  1939. <div
  1940. class="check"
  1941. @click="
  1942. addTools(31, itemTaskIndex, toolIndex)
  1943. "
  1944. >
  1945. <img
  1946. src="../../../assets/icon/checkNo.png"
  1947. alt
  1948. v-if="itemTool.tool.indexOf(31) == -1"
  1949. />
  1950. <div class="checkDiv" v-else>
  1951. <img
  1952. src="../../../assets/icon/checkedIs.png"
  1953. alt
  1954. /><span>已选择</span>
  1955. </div>
  1956. </div>
  1957. </div>
  1958. <div class="tool">
  1959. <div
  1960. class="whiteBIcon"
  1961. @click="
  1962. addTools(39, itemTaskIndex, toolIndex)
  1963. "
  1964. >
  1965. <img
  1966. src="../../../assets/icon/secondToolList/GeoGebra.png"
  1967. alt
  1968. />
  1969. <div style="margin: 5px 0">GeoGebra</div>
  1970. </div>
  1971. <div
  1972. class="check"
  1973. @click="
  1974. addTools(39, itemTaskIndex, toolIndex)
  1975. "
  1976. >
  1977. <img
  1978. src="../../../assets/icon/checkNo.png"
  1979. alt
  1980. v-if="itemTool.tool.indexOf(39) == -1"
  1981. />
  1982. <div class="checkDiv" v-else>
  1983. <img
  1984. src="../../../assets/icon/checkedIs.png"
  1985. alt
  1986. /><span>已选择</span>
  1987. </div>
  1988. </div>
  1989. </div>
  1990. <div class="tool">
  1991. <div
  1992. class="whiteBIcon"
  1993. @click="
  1994. addTools(58, itemTaskIndex, toolIndex)
  1995. "
  1996. >
  1997. <img
  1998. src="../../../assets/icon/fourthToolList/car.png"
  1999. alt
  2000. />
  2001. <div style="margin: 5px 0">模拟驾驶</div>
  2002. </div>
  2003. <div
  2004. class="check"
  2005. @click="
  2006. addTools(58, itemTaskIndex, toolIndex)
  2007. "
  2008. >
  2009. <img
  2010. src="../../../assets/icon/checkNo.png"
  2011. alt
  2012. v-if="itemTool.tool.indexOf(58) == -1"
  2013. />
  2014. <div class="checkDiv" v-else>
  2015. <img
  2016. src="../../../assets/icon/checkedIs.png"
  2017. alt
  2018. /><span>已选择</span>
  2019. </div>
  2020. </div>
  2021. </div>
  2022. <div class="tool">
  2023. <div
  2024. class="whiteBIcon"
  2025. @click="
  2026. addTools(59, itemTaskIndex, toolIndex)
  2027. "
  2028. >
  2029. <img
  2030. src="../../../assets/icon/fourthToolList/lineSearch.png"
  2031. alt
  2032. />
  2033. <div style="margin: 5px 0">路径搜索</div>
  2034. </div>
  2035. <div
  2036. class="check"
  2037. @click="
  2038. addTools(59, itemTaskIndex, toolIndex)
  2039. "
  2040. >
  2041. <img
  2042. src="../../../assets/icon/checkNo.png"
  2043. alt
  2044. v-if="itemTool.tool.indexOf(59) == -1"
  2045. />
  2046. <div class="checkDiv" v-else>
  2047. <img
  2048. src="../../../assets/icon/checkedIs.png"
  2049. alt
  2050. /><span>已选择</span>
  2051. </div>
  2052. </div>
  2053. </div>
  2054. <div class="tool">
  2055. <div
  2056. class="whiteBIcon"
  2057. @click="
  2058. addTools(60, itemTaskIndex, toolIndex)
  2059. "
  2060. >
  2061. <img
  2062. src="../../../assets/icon/fourthToolList/deepLearning.png"
  2063. alt
  2064. />
  2065. <div style="margin: 5px 0">深度学习</div>
  2066. </div>
  2067. <div
  2068. class="check"
  2069. @click="
  2070. addTools(60, itemTaskIndex, toolIndex)
  2071. "
  2072. >
  2073. <img
  2074. src="../../../assets/icon/checkNo.png"
  2075. alt
  2076. v-if="itemTool.tool.indexOf(60) == -1"
  2077. />
  2078. <div class="checkDiv" v-else>
  2079. <img
  2080. src="../../../assets/icon/checkedIs.png"
  2081. alt
  2082. /><span>已选择</span>
  2083. </div>
  2084. </div>
  2085. </div>
  2086. <div class="tool">
  2087. <div
  2088. class="whiteBIcon"
  2089. @click="
  2090. addTools(61, itemTaskIndex, toolIndex)
  2091. "
  2092. >
  2093. <img
  2094. src="../../../assets/icon/fourthToolList/allHistory.png"
  2095. alt
  2096. />
  2097. <div style="margin: 5px 0">全历史</div>
  2098. </div>
  2099. <div
  2100. class="check"
  2101. @click="
  2102. addTools(61, itemTaskIndex, toolIndex)
  2103. "
  2104. >
  2105. <img
  2106. src="../../../assets/icon/checkNo.png"
  2107. alt
  2108. v-if="itemTool.tool.indexOf(61) == -1"
  2109. />
  2110. <div class="checkDiv" v-else>
  2111. <img
  2112. src="../../../assets/icon/checkedIs.png"
  2113. alt
  2114. /><span>已选择</span>
  2115. </div>
  2116. </div>
  2117. </div>
  2118. </div>
  2119. <div
  2120. class="toolSort"
  2121. v-if="itemTool.toolType == 7"
  2122. >
  2123. <div class="tool">
  2124. <div
  2125. class="whiteBIcon"
  2126. @click="
  2127. openTools(itemTaskIndex, 40, toolIndex)
  2128. "
  2129. >
  2130. <img
  2131. src="../../../assets/icon/thirdToolList/eval.png"
  2132. alt
  2133. />
  2134. <div style="margin: 5px 0">个人评价</div>
  2135. </div>
  2136. <div
  2137. class="check"
  2138. @click="
  2139. addTools(40, itemTaskIndex, toolIndex)
  2140. "
  2141. >
  2142. <img
  2143. src="../../../assets/icon/checkNo.png"
  2144. alt
  2145. v-if="itemTool.tool.indexOf(40) == -1"
  2146. />
  2147. <div class="checkDiv" v-else>
  2148. <img
  2149. src="../../../assets/icon/checkedIs.png"
  2150. alt
  2151. /><span>已选择</span>
  2152. </div>
  2153. </div>
  2154. </div>
  2155. </div>
  2156. <div
  2157. class="toolSort"
  2158. v-if="itemTool.toolType == 4"
  2159. >
  2160. <div class="tool">
  2161. <div
  2162. class="whiteBIcon"
  2163. @click="
  2164. addTools(26, itemTaskIndex, toolIndex)
  2165. "
  2166. >
  2167. <img
  2168. src="../../../assets/icon/thirdToolList/courseDesign.png"
  2169. alt
  2170. />
  2171. <div style="margin: 5px 0">课程设计</div>
  2172. </div>
  2173. <div
  2174. class="check"
  2175. @click="
  2176. addTools(26, itemTaskIndex, toolIndex)
  2177. "
  2178. >
  2179. <img
  2180. src="../../../assets/icon/checkNo.png"
  2181. alt
  2182. v-if="itemTool.tool.indexOf(26) == -1"
  2183. />
  2184. <div class="checkDiv" v-else>
  2185. <img
  2186. src="../../../assets/icon/checkedIs.png"
  2187. alt
  2188. /><span>已选择</span>
  2189. </div>
  2190. </div>
  2191. </div>
  2192. <div class="tool">
  2193. <div
  2194. class="whiteBIcon"
  2195. @click="
  2196. addTools(25, itemTaskIndex, toolIndex)
  2197. "
  2198. >
  2199. <img
  2200. src="../../../assets/icon/thirdToolList/evalua.png"
  2201. alt
  2202. />
  2203. <div style="margin: 5px 0">目标管理</div>
  2204. </div>
  2205. <div
  2206. class="check"
  2207. @click="
  2208. addTools(25, itemTaskIndex, toolIndex)
  2209. "
  2210. >
  2211. <img
  2212. src="../../../assets/icon/checkNo.png"
  2213. alt
  2214. v-if="itemTool.tool.indexOf(25) == -1"
  2215. />
  2216. <div class="checkDiv" v-else>
  2217. <img
  2218. src="../../../assets/icon/checkedIs.png"
  2219. alt
  2220. /><span>已选择</span>
  2221. </div>
  2222. </div>
  2223. </div>
  2224. <!-- <div class="tool">
  2225. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  2226. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  2227. <div style="margin: 5px 0">汉字宫</div>
  2228. </div>
  2229. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  2230. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  2231. <div class="checkDiv" v-else>
  2232. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2233. </div>
  2234. </div>
  2235. </div> -->
  2236. </div>
  2237. </div>
  2238. </div>
  2239. <div
  2240. class="addToolFun"
  2241. @click="addToolFun(itemTaskIndex)"
  2242. >
  2243. <div class="addToolImg">
  2244. <img src="../../../assets/icon/add.png" alt />
  2245. </div>
  2246. <div>添加工具</div>
  2247. </div>
  2248. </div>
  2249. </div>
  2250. </div>
  2251. <div
  2252. class="addTaskBorder"
  2253. @click="addTaskBorder"
  2254. v-if="!unitJson[unitIndex].easy"
  2255. >
  2256. <div>
  2257. <img src="../../../assets/icon/addHw.png" alt />
  2258. <span>添加任务</span>
  2259. </div>
  2260. </div>
  2261. </div>
  2262. </div>
  2263. </div>
  2264. </div>
  2265. </div>
  2266. <div class="rightBox" v-if="this.steps == 2">
  2267. <div
  2268. class="basic_box"
  2269. style="padding: 20px 30px 0px !important; box-sizing: border-box"
  2270. >
  2271. <div
  2272. class="right_title"
  2273. style="border: none; margin: 0; padding: 0"
  2274. >
  2275. 请选择合适的课程模板
  2276. </div>
  2277. <div class="wordbox">
  2278. <div
  2279. class="wordTeacher"
  2280. v-for="(aa, indexF) in templateArray"
  2281. :key="indexF"
  2282. @click="checkTemplate(aa)"
  2283. >
  2284. <div class="wordPic">
  2285. <img src="../../../assets/icon/wordMub.png" alt />
  2286. </div>
  2287. <div
  2288. style="
  2289. margin-top: 10px;
  2290. line-height: 19px;
  2291. overflow: hidden;
  2292. text-overflow: ellipsis;
  2293. white-space: nowrap;
  2294. padding: 0 20px;
  2295. "
  2296. >
  2297. {{ aa.title }}
  2298. </div>
  2299. </div>
  2300. <div class="wordTeacher" @click="checkTemplate2()">
  2301. <div class="wordPic">
  2302. <img src="../../../assets/icon/wordMub.png" alt />
  2303. </div>
  2304. <div
  2305. style="
  2306. margin-top: 10px;
  2307. line-height: 19px;
  2308. overflow: hidden;
  2309. text-overflow: ellipsis;
  2310. white-space: nowrap;
  2311. padding: 0 20px;
  2312. "
  2313. >
  2314. 任务模式
  2315. </div>
  2316. </div>
  2317. <div class="wordTeacher" @click="checkTemplate3()">
  2318. <div class="wordPic">
  2319. <img src="../../../assets/icon/wordMub.png" alt />
  2320. </div>
  2321. <div
  2322. style="
  2323. margin-top: 10px;
  2324. line-height: 19px;
  2325. overflow: hidden;
  2326. text-overflow: ellipsis;
  2327. white-space: nowrap;
  2328. padding: 0 20px;
  2329. "
  2330. >
  2331. 简易模式
  2332. </div>
  2333. </div>
  2334. <div class="wordTeacher" @click="pasteStage()">
  2335. <div class="wordPic">
  2336. <img src="../../../assets/icon/wordMub.png" alt />
  2337. </div>
  2338. <div
  2339. style="
  2340. margin-top: 10px;
  2341. line-height: 19px;
  2342. overflow: hidden;
  2343. text-overflow: ellipsis;
  2344. white-space: nowrap;
  2345. padding: 0 20px;
  2346. "
  2347. >
  2348. 智能粘贴模式
  2349. </div>
  2350. </div>
  2351. <!-- <div class="wordTeacher" @click="checkTemplate4()">
  2352. <div class="wordPic">
  2353. <img src="../../../assets/icon/wordMub.png" alt />
  2354. </div>
  2355. <div style="
  2356. margin-top: 10px;
  2357. line-height: 19px;
  2358. overflow: hidden;
  2359. text-overflow: ellipsis;
  2360. white-space: nowrap;
  2361. padding: 0 20px;
  2362. ">
  2363. 未来小学课程设计
  2364. </div>
  2365. </div> -->
  2366. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  2367. <div class="wordPic">
  2368. <img src="../../../assets/icon/wordMub.png" alt />
  2369. </div>
  2370. <div style="
  2371. margin-top: 10px;
  2372. line-height: 19px;
  2373. overflow: hidden;
  2374. text-overflow: ellipsis;
  2375. white-space: nowrap;
  2376. padding: 0 20px;
  2377. ">
  2378. 我的课程
  2379. </div>
  2380. </div> -->
  2381. </div>
  2382. </div>
  2383. </div>
  2384. <div class="rightBox" v-if="this.steps == 3" ref="rightboxR">
  2385. <div class="basic_box">
  2386. <div
  2387. style="
  2388. display: flex;
  2389. flex-direction: row;
  2390. align-items: center;
  2391. position: sticky;
  2392. top: 0;
  2393. background: #fff;
  2394. z-index: 99;
  2395. width: 100%;
  2396. padding: 0 20px 0 20px;
  2397. box-sizing: border-box;
  2398. "
  2399. >
  2400. <div class="cru_selectBox">
  2401. <div
  2402. v-for="(item, index) in unitJson"
  2403. :key="index"
  2404. class="cru_select"
  2405. :class="unitIndex == index ? 'cru_selected' : ''"
  2406. @click="unitSet(index)"
  2407. >
  2408. <!-- item.dyName ? item.dyName : -->
  2409. {{ "第" + (index + 1) + "阶段" }}
  2410. </div>
  2411. <img
  2412. src="../../../assets/line.png"
  2413. class="cru_line"
  2414. :style="{
  2415. left: offsetLetfPx + 'px',
  2416. }"
  2417. />
  2418. </div>
  2419. <div
  2420. class="addStageImg"
  2421. @click="addunit()"
  2422. v-if="
  2423. !(unitJson[unitJson.length - 1].easy == 4) &&
  2424. !(unitJson[unitJson.length - 1].easy == 6)
  2425. "
  2426. >
  2427. <img src="../../../assets/icon/add.png" alt />
  2428. </div>
  2429. </div>
  2430. <div
  2431. style="margin: 0 0 40px 0; padding: 0 20px 0 20px"
  2432. v-for="(item, index) in unitJson[unitIndex].chapterInfo"
  2433. :key="index"
  2434. >
  2435. <div>
  2436. <div class="chapter_contentbox">
  2437. <div>第{{ unitIndex + 1 }}阶段</div>
  2438. <div>
  2439. <input
  2440. type="text"
  2441. placeholder="阶段标题"
  2442. class="binfo_input"
  2443. v-model="unitJson[unitIndex].dyName"
  2444. />
  2445. </div>
  2446. <div
  2447. v-if="
  2448. unitJson.length > 1 &&
  2449. !(unitJson[unitJson.length - 1].easy == 4) &&
  2450. !(unitJson[unitJson.length - 1].easy == 6)
  2451. "
  2452. @click="deleteUnit(unitIndex)"
  2453. ></div>
  2454. </div>
  2455. </div>
  2456. <div
  2457. v-if="!unitJson[unitIndex].easy"
  2458. style="
  2459. margin: 50px 0px 10px;
  2460. font-size: 1.5em;
  2461. font-weight: 700;
  2462. color: #0f7eff;
  2463. "
  2464. >
  2465. 添加任务
  2466. </div>
  2467. <div
  2468. class="taskBorder"
  2469. :style="{ minHeight: unitJson[unitIndex].easy && 'unset' }"
  2470. v-for="(itemTask, itemTaskIndex) in item.taskJson"
  2471. :key="itemTaskIndex"
  2472. >
  2473. <div v-if="unitJson[unitIndex].easy != 1">
  2474. <div
  2475. :style="{
  2476. marginBottom:
  2477. unitJson[unitIndex].easy == 3 ||
  2478. (unitJson[unitIndex].easy == 5 &&
  2479. itemTask.taskType == 1)
  2480. ? '75px'
  2481. : '0',
  2482. }"
  2483. >
  2484. <div
  2485. style="font-size: 22px; color: #8e8e8e"
  2486. :id="'task' + itemTaskIndex"
  2487. >
  2488. 任务{{ itemTaskIndex + 1 }}
  2489. </div>
  2490. <div
  2491. class="chapter_contentbox"
  2492. style="
  2493. flex-direction: row;
  2494. justify-content: flex-start;
  2495. align-items: center;
  2496. "
  2497. >
  2498. <div
  2499. style="
  2500. border-left: 6px solid #5699e8;
  2501. height: 20px;
  2502. padding-left: 10px;
  2503. line-height: 22px;
  2504. "
  2505. >
  2506. 任务名称
  2507. </div>
  2508. <div>
  2509. <input
  2510. type="text"
  2511. placeholder="输入任务名称"
  2512. class="binfo_input"
  2513. style="border-radius: 4px"
  2514. v-model="
  2515. unitJson[unitIndex].chapterInfo[0].taskJson[
  2516. itemTaskIndex
  2517. ].task
  2518. "
  2519. />
  2520. </div>
  2521. <div
  2522. class="remove"
  2523. v-if="
  2524. item.taskJson.length > 1 &&
  2525. (!unitJson[unitIndex].easy ||
  2526. unitJson[unitIndex].easy == 6)
  2527. "
  2528. @click="deleteTask(itemTaskIndex)"
  2529. style="position: absolute; right: 55px"
  2530. ></div>
  2531. </div>
  2532. <div
  2533. v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1"
  2534. style="
  2535. display: flex;
  2536. margin: 0 0 20px 0;
  2537. flex-direction: row;
  2538. justify-content: flex-start;
  2539. align-items: center;
  2540. width: 70.5% !important;
  2541. padding-top: 30px;
  2542. "
  2543. >
  2544. <div class="lineTitle">任务描述</div>
  2545. <div class="line"></div>
  2546. </div>
  2547. <div
  2548. v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1"
  2549. >
  2550. <editor-bar
  2551. style="width: 90% !important; margin: 0"
  2552. placeholder="请输入任务描述"
  2553. v-model="
  2554. unitJson[unitIndex].chapterInfo[0].taskJson[
  2555. itemTaskIndex
  2556. ].taskDetail
  2557. "
  2558. @change="change"
  2559. ></editor-bar>
  2560. <!-- <textarea
  2561. rows="6"
  2562. class="binfo_input"
  2563. placeholder="请输入任务描述"
  2564. cols
  2565. style="width: 70.5% !important; height: 120px"
  2566. v-model="
  2567. unitJson[unitIndex].chapterInfo[0].taskJson[
  2568. itemTaskIndex
  2569. ].taskDetail
  2570. "
  2571. ></textarea>-->
  2572. </div>
  2573. </div>
  2574. </div>
  2575. <div
  2576. v-if="
  2577. !unitJson[unitIndex].easy ||
  2578. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  2579. "
  2580. class="basic_box"
  2581. style="
  2582. margin: 0;
  2583. min-height: 0;
  2584. width: 90% !important;
  2585. padding-top: 10px !important;
  2586. "
  2587. >
  2588. <div
  2589. style="
  2590. display: flex;
  2591. margin: 0 0 20px 0;
  2592. flex-direction: row;
  2593. justify-content: flex-start;
  2594. align-items: center;
  2595. "
  2596. >
  2597. <div class="lineTitle">学习内容</div>
  2598. <div class="line"></div>
  2599. </div>
  2600. <div>
  2601. <div
  2602. class="add_chapters_box"
  2603. v-if="
  2604. itemTask.chapterData &&
  2605. itemTask.chapterData.length == 0
  2606. "
  2607. style="height: 185px"
  2608. ></div>
  2609. <div
  2610. v-else
  2611. class="add_chapters_box"
  2612. style="display: flex; flex-direction: column"
  2613. >
  2614. <div
  2615. class="chapter_upload"
  2616. v-for="(item1, index1) in itemTask.chapterData"
  2617. :key="item1.id"
  2618. @click="
  2619. getChapterData(
  2620. $event,
  2621. unitIndex,
  2622. index,
  2623. index1,
  2624. item1.type
  2625. )
  2626. "
  2627. >
  2628. <div
  2629. class="chapter_upload_t"
  2630. style="width: 100%"
  2631. ></div>
  2632. <div
  2633. class="chapter_upload_o"
  2634. style="
  2635. position: relative;
  2636. display: flex;
  2637. align-items: center;
  2638. "
  2639. >
  2640. <div
  2641. class="chapter_upload_l"
  2642. style="padding: 1px 0 0 10px"
  2643. >
  2644. <div
  2645. v-if="item1.type == 2"
  2646. class="chapter_upload_l_i1"
  2647. ></div>
  2648. <div
  2649. v-if="
  2650. item1.type == 3 ||
  2651. item1.type == 12 ||
  2652. item1.type == 13 ||
  2653. item1.type == 6 ||
  2654. item1.type == 7
  2655. "
  2656. class="chapter_upload_l_i5"
  2657. style="margin-left: 1px"
  2658. ></div>
  2659. <div
  2660. v-if="item1.type == 8"
  2661. class="chapter_upload_l_i8"
  2662. style="margin-left: 1px"
  2663. ></div>
  2664. </div>
  2665. <div
  2666. class="chapter_upload_ic"
  2667. style="
  2668. cursor: pointer;
  2669. position: absolute;
  2670. width: 45px;
  2671. right: 0;
  2672. top: 0;
  2673. "
  2674. >
  2675. <div class="chapter_upload_ic_l"></div>
  2676. <div
  2677. class="chapter_upload_ic_r"
  2678. style="position: absolute"
  2679. @click.stop="
  2680. deleteChapterData(
  2681. $event,
  2682. unitIndex,
  2683. index,
  2684. index1,
  2685. itemTaskIndex
  2686. )
  2687. "
  2688. >
  2689. <div></div>
  2690. </div>
  2691. </div>
  2692. <div class="chapter_upload_n">
  2693. <input
  2694. v-if="
  2695. item1.type == 2 ||
  2696. item1.type == 3 ||
  2697. item1.type == 12 ||
  2698. item1.type == 13 ||
  2699. item1.type == 7
  2700. "
  2701. :placeholder="item1.name"
  2702. @change="
  2703. updataVideoT(
  2704. $event,
  2705. unitIndex,
  2706. chapterIndex,
  2707. index1
  2708. )
  2709. "
  2710. style="
  2711. border: none;
  2712. outline: none;
  2713. width: 80%;
  2714. minwidth: 215px;
  2715. z-index: 99;
  2716. font-size: 14px;
  2717. white-space: nowrap;
  2718. overflow: hidden;
  2719. text-overflow: ellipsis;
  2720. "
  2721. />
  2722. <input
  2723. :placeholder="item1.name"
  2724. v-if="item1.type == 6"
  2725. style="
  2726. border: none;
  2727. outline: none;
  2728. width: 80%;
  2729. white-space: nowrap;
  2730. overflow: hidden;
  2731. text-overflow: ellipsis;
  2732. "
  2733. readonly="true"
  2734. @click="selectAttText(itemTaskIndex, index1)"
  2735. />
  2736. <input
  2737. :placeholder="
  2738. item1.title ? item1.title : '链接'
  2739. "
  2740. v-if="item1.type == 8"
  2741. style="
  2742. border: none;
  2743. outline: none;
  2744. width: 80%;
  2745. white-space: nowrap;
  2746. overflow: hidden;
  2747. text-overflow: ellipsis;
  2748. "
  2749. readonly="true"
  2750. @click="selectLine(itemTaskIndex, index1)"
  2751. />
  2752. <div
  2753. class="chapter_upload_ud"
  2754. style="z-index: 99"
  2755. >
  2756. <div
  2757. class="chapter_upload_up"
  2758. @click="
  2759. upCd(
  2760. $event,
  2761. unitIndex,
  2762. index,
  2763. itemTaskIndex,
  2764. index1
  2765. )
  2766. "
  2767. ></div>
  2768. <div
  2769. class="chapter_upload_down"
  2770. @click="
  2771. downCd(
  2772. $event,
  2773. unitIndex,
  2774. index,
  2775. itemTaskIndex,
  2776. index1
  2777. )
  2778. "
  2779. ></div>
  2780. </div>
  2781. </div>
  2782. </div>
  2783. </div>
  2784. </div>
  2785. </div>
  2786. <div class="add_info_box">
  2787. <button class="info_btn" @click="addImg($event)">
  2788. 添加文件
  2789. <input
  2790. type="file"
  2791. accept="*"
  2792. style="display: none"
  2793. v-if="inputShow"
  2794. @change="
  2795. beforeUpload2($event, unitIndex, 13, itemTaskIndex)
  2796. "
  2797. />
  2798. </button>
  2799. <!-- <button class="info_btn" @click="addImg($event)">
  2800. 添加视频
  2801. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  2802. v-if="inputShow" @change="beforeUpload2($event, unitIndex, 2, itemTaskIndex)
  2803. " />
  2804. </button>
  2805. <button class="info_btn" @click="addImg($event)">
  2806. 添加文档
  2807. <input type="file"
  2808. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2809. style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 3, itemTaskIndex)
  2810. " />
  2811. </button> -->
  2812. <button
  2813. class="info_btn"
  2814. @click="addAttText(itemTaskIndex)"
  2815. >
  2816. 添加图文
  2817. </button>
  2818. <button class="info_btn" @click="openLine(itemTaskIndex)">
  2819. 添加链接
  2820. </button>
  2821. <button
  2822. class="info_btn"
  2823. @click="pasteLine(itemTaskIndex)"
  2824. >
  2825. 嵌入代码
  2826. </button>
  2827. <button
  2828. class="info_btn"
  2829. @click="openSource(itemTaskIndex)"
  2830. >
  2831. 添加资源
  2832. </button>
  2833. <!-- <button class="info_btn" @click="addImg($event)">
  2834. 其他附件
  2835. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  2836. " />
  2837. </button> -->
  2838. </div>
  2839. <div
  2840. v-if="
  2841. unitJson[unitIndex].chapterInfo[0].taskJson[
  2842. itemTaskIndex
  2843. ].proVisible
  2844. "
  2845. class="mask"
  2846. >
  2847. <div class="progressBox">
  2848. <!-- <div id="closePro" class="closeCss">
  2849. <img src="../../../../assets/icon/close.png" alt />
  2850. </div> -->
  2851. <div class="lbox">
  2852. <img
  2853. src="../../../assets/loading.gif"
  2854. />上传中,请稍后
  2855. </div>
  2856. <div style="margin-bottom: 10px">
  2857. <span
  2858. >{{
  2859. unitJson[unitIndex].chapterInfo[0].taskJson[
  2860. itemTaskIndex
  2861. ].isFinishSize
  2862. }}M</span
  2863. >
  2864. /
  2865. <span
  2866. >{{
  2867. unitJson[unitIndex].chapterInfo[0].taskJson[
  2868. itemTaskIndex
  2869. ].isAllSize
  2870. }}M</span
  2871. >
  2872. </div>
  2873. <el-progress
  2874. :text-inside="true"
  2875. :stroke-width="20"
  2876. :percentage="
  2877. unitJson[unitIndex].chapterInfo[0].taskJson[
  2878. itemTaskIndex
  2879. ].progress
  2880. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  2881. itemTaskIndex
  2882. ].progress
  2883. : 0
  2884. "
  2885. style="width: 80%"
  2886. ></el-progress>
  2887. </div>
  2888. </div>
  2889. </div>
  2890. <div
  2891. v-if="
  2892. unitJson[unitIndex].easy == 1 ||
  2893. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  2894. "
  2895. class="basic_box"
  2896. style="
  2897. margin: 0 auto;
  2898. min-height: 0;
  2899. width: 95% !important;
  2900. padding: 20px 10px 10px;
  2901. "
  2902. >
  2903. <div>
  2904. <div
  2905. class="add_chapters_box"
  2906. v-if="
  2907. itemTask.chapterData &&
  2908. itemTask.chapterData.length == 0
  2909. "
  2910. style="height: 185px"
  2911. ></div>
  2912. <div
  2913. v-else
  2914. class="add_chapters_box"
  2915. style="display: flex; flex-direction: column"
  2916. >
  2917. <div
  2918. v-for="(item1, index1) in itemTask.chapterData"
  2919. :key="item1.id"
  2920. >
  2921. <div
  2922. class="chapter_upload"
  2923. @click="
  2924. getChapterData(
  2925. $event,
  2926. unitIndex,
  2927. index,
  2928. index1,
  2929. item1.type
  2930. )
  2931. "
  2932. >
  2933. <div
  2934. class="chapter_upload_t"
  2935. style="width: 100%"
  2936. ></div>
  2937. <div
  2938. class="chapter_upload_o"
  2939. style="
  2940. position: relative;
  2941. display: flex;
  2942. align-items: center;
  2943. "
  2944. >
  2945. <div
  2946. class="chapter_upload_l"
  2947. style="padding: 1px 0 0 10px"
  2948. >
  2949. <div
  2950. v-if="item1.type == 2"
  2951. class="chapter_upload_l_i1"
  2952. ></div>
  2953. <div
  2954. v-if="
  2955. item1.type == 3 ||
  2956. item1.type == 6 ||
  2957. item1.type == 7
  2958. "
  2959. class="chapter_upload_l_i5"
  2960. style="margin-left: 1px"
  2961. ></div>
  2962. <div
  2963. v-if="item1.type == 8"
  2964. class="chapter_upload_l_i8"
  2965. style="margin-left: 1px"
  2966. ></div>
  2967. </div>
  2968. <div
  2969. class="chapter_upload_ic"
  2970. style="
  2971. cursor: pointer;
  2972. position: absolute;
  2973. width: 45px;
  2974. right: 0;
  2975. top: 0;
  2976. "
  2977. >
  2978. <div class="chapter_upload_ic_l"></div>
  2979. <div
  2980. class="chapter_upload_ic_r"
  2981. style="position: absolute"
  2982. @click.stop="
  2983. deleteChapterData(
  2984. $event,
  2985. unitIndex,
  2986. index,
  2987. index1,
  2988. itemTaskIndex
  2989. )
  2990. "
  2991. >
  2992. <div></div>
  2993. </div>
  2994. </div>
  2995. <div class="chapter_upload_n">
  2996. <span
  2997. style="
  2998. font-size: 14px;
  2999. color: rgb(109, 109, 109);
  3000. height: 14px;
  3001. line-height: 12px;
  3002. "
  3003. v-if="
  3004. item1.type == 2 ||
  3005. item1.type == 3 ||
  3006. item1.type == 7
  3007. "
  3008. >{{ item1.text }}-</span
  3009. >
  3010. <input
  3011. v-if="
  3012. item1.type == 2 ||
  3013. item1.type == 3 ||
  3014. item1.type == 7
  3015. "
  3016. :placeholder="item1.name"
  3017. @change="
  3018. updataVideoT(
  3019. $event,
  3020. unitIndex,
  3021. chapterIndex,
  3022. index1
  3023. )
  3024. "
  3025. style="
  3026. border: none;
  3027. outline: none;
  3028. width: 80%;
  3029. minwidth: 215px;
  3030. z-index: 99;
  3031. font-size: 14px;
  3032. white-space: nowrap;
  3033. overflow: hidden;
  3034. text-overflow: ellipsis;
  3035. "
  3036. />
  3037. <input
  3038. :placeholder="item1.name"
  3039. v-if="item1.type == 6"
  3040. style="
  3041. border: none;
  3042. outline: none;
  3043. width: 80%;
  3044. white-space: nowrap;
  3045. overflow: hidden;
  3046. text-overflow: ellipsis;
  3047. "
  3048. readonly="true"
  3049. @click="selectAttText(itemTaskIndex, index1)"
  3050. />
  3051. <input
  3052. :placeholder="
  3053. item1.title ? item1.title : '链接'
  3054. "
  3055. v-if="item1.type == 8"
  3056. style="
  3057. border: none;
  3058. outline: none;
  3059. width: 80%;
  3060. white-space: nowrap;
  3061. overflow: hidden;
  3062. text-overflow: ellipsis;
  3063. "
  3064. readonly="true"
  3065. @click="selectLine(itemTaskIndex, index1)"
  3066. />
  3067. <div
  3068. class="chapter_upload_ud"
  3069. style="z-index: 99"
  3070. >
  3071. <div
  3072. class="chapter_upload_up"
  3073. @click="
  3074. upCd(
  3075. $event,
  3076. unitIndex,
  3077. index,
  3078. itemTaskIndex,
  3079. index1
  3080. )
  3081. "
  3082. ></div>
  3083. <div
  3084. class="chapter_upload_down"
  3085. @click="
  3086. downCd(
  3087. $event,
  3088. unitIndex,
  3089. index,
  3090. itemTaskIndex,
  3091. index1
  3092. )
  3093. "
  3094. ></div>
  3095. </div>
  3096. </div>
  3097. </div>
  3098. </div>
  3099. </div>
  3100. </div>
  3101. </div>
  3102. <div class="add_info_box" style="margin: 10px 0 0">
  3103. <button class="info_btn" @click="addImg($event)">
  3104. <span style="color: red">*</span>
  3105. 教学设计
  3106. <input
  3107. type="file"
  3108. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  3109. style="display: none"
  3110. v-if="inputShow"
  3111. @change="
  3112. beforeUpload3(
  3113. $event,
  3114. unitIndex,
  3115. 3,
  3116. itemTaskIndex,
  3117. '教学设计'
  3118. )
  3119. "
  3120. />
  3121. </button>
  3122. <button class="info_btn" @click="addImg($event)">
  3123. <span style="color: red">*</span>
  3124. 教学课件
  3125. <input
  3126. type="file"
  3127. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  3128. style="display: none"
  3129. v-if="inputShow"
  3130. @change="
  3131. beforeUpload3(
  3132. $event,
  3133. unitIndex,
  3134. 3,
  3135. itemTaskIndex,
  3136. '教学课件'
  3137. )
  3138. "
  3139. />
  3140. </button>
  3141. <button class="info_btn" @click="addImg($event)">
  3142. 教学视频
  3143. <input
  3144. type="file"
  3145. accept="video/mp4, video/quicktime, video/x-msvideo"
  3146. style="display: none"
  3147. v-if="inputShow"
  3148. @change="
  3149. beforeUpload3(
  3150. $event,
  3151. unitIndex,
  3152. 2,
  3153. itemTaskIndex,
  3154. '教学视频'
  3155. )
  3156. "
  3157. />
  3158. </button>
  3159. <button class="info_btn" @click="addImg($event)">
  3160. 教学音频
  3161. <input
  3162. type="file"
  3163. accept="audio/*"
  3164. style="display: none"
  3165. v-if="inputShow"
  3166. @change="
  3167. beforeUpload3(
  3168. $event,
  3169. unitIndex,
  3170. 2,
  3171. itemTaskIndex,
  3172. '教学音频'
  3173. )
  3174. "
  3175. />
  3176. </button>
  3177. <button class="info_btn" @click="addImg($event)">
  3178. 学习单
  3179. <input
  3180. type="file"
  3181. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  3182. style="display: none"
  3183. v-if="inputShow"
  3184. @change="
  3185. beforeUpload3(
  3186. $event,
  3187. unitIndex,
  3188. 3,
  3189. itemTaskIndex,
  3190. '学习单'
  3191. )
  3192. "
  3193. />
  3194. </button>
  3195. </div>
  3196. <div
  3197. v-if="
  3198. unitJson[unitIndex].chapterInfo[0].taskJson[
  3199. itemTaskIndex
  3200. ].proVisible
  3201. "
  3202. class="mask"
  3203. >
  3204. <div class="progressBox">
  3205. <!-- <div id="closePro" class="closeCss">
  3206. <img src="../../../../assets/icon/close.png" alt />
  3207. </div> -->
  3208. <div class="lbox">
  3209. <img
  3210. src="../../../assets/loading.gif"
  3211. />上传中,请稍后
  3212. </div>
  3213. <div style="margin-bottom: 10px">
  3214. <span
  3215. >{{
  3216. unitJson[unitIndex].chapterInfo[0].taskJson[
  3217. itemTaskIndex
  3218. ].isFinishSize
  3219. }}M</span
  3220. >
  3221. /
  3222. <span
  3223. >{{
  3224. unitJson[unitIndex].chapterInfo[0].taskJson[
  3225. itemTaskIndex
  3226. ].isAllSize
  3227. }}M</span
  3228. >
  3229. </div>
  3230. <el-progress
  3231. :text-inside="true"
  3232. :stroke-width="20"
  3233. :percentage="
  3234. unitJson[unitIndex].chapterInfo[0].taskJson[
  3235. itemTaskIndex
  3236. ].progress
  3237. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  3238. itemTaskIndex
  3239. ].progress
  3240. : 0
  3241. "
  3242. style="width: 80%"
  3243. ></el-progress>
  3244. </div>
  3245. </div>
  3246. </div>
  3247. <div
  3248. v-if="
  3249. unitJson[unitIndex].easy != 3 &&
  3250. !(unitJson[unitIndex].easy == 5 && itemTask.taskType == 1)
  3251. "
  3252. style="
  3253. flex-direction: row;
  3254. justify-content: flex-start;
  3255. align-items: center;
  3256. padding: 0 0 0 30px;
  3257. paddint-top: 10px !important;
  3258. "
  3259. >
  3260. <div
  3261. style="
  3262. display: flex;
  3263. flex-direction: row;
  3264. align-items: center;
  3265. margin-bottom: 20px;
  3266. "
  3267. >
  3268. <div class="lineTitle">
  3269. {{
  3270. !unitJson[unitIndex].easy ||
  3271. unitJson[unitIndex].easy == 6 ||
  3272. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  3273. ? "练习内容"
  3274. : "评价内容"
  3275. }}
  3276. </div>
  3277. <div class="line" style="width: 90%"></div>
  3278. </div>
  3279. </div>
  3280. <div
  3281. v-if="
  3282. unitJson[unitIndex].easy == 6 || !unitJson[unitIndex].easy
  3283. "
  3284. class="toolChoose"
  3285. style="padding: 0 0 0 30px"
  3286. >
  3287. <div class="tools">
  3288. <div
  3289. class="leftTools"
  3290. style="
  3291. width: 95%;
  3292. padding: 0 0 15px 0;
  3293. border-bottom: 1px solid #efefef;
  3294. margin-bottom: 15px;
  3295. "
  3296. v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  3297. :key="toolIndex"
  3298. >
  3299. <div>
  3300. <textarea
  3301. rows="3"
  3302. type="text"
  3303. placeholder="添加工具描述"
  3304. class="binfo_input"
  3305. style="margin: 0 0 20px 0; width: 71.5% !important"
  3306. v-model="itemTool.toolDetail"
  3307. ></textarea>
  3308. </div>
  3309. <div
  3310. style="
  3311. display: flex;
  3312. flex-direction: row;
  3313. align-items: baseline;
  3314. flex-wrap: nowrap;
  3315. justify-content: flex-start;
  3316. position: relative;
  3317. "
  3318. >
  3319. <div style="margin-right: 20px; font-weight: bold">
  3320. 步骤 {{ toolIndex + 1 }} :
  3321. </div>
  3322. <div class="chooseWho">
  3323. <!-- <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
  3324. " @click="(itemTool.toolType = 0), $forceUpdate()">
  3325. 互动类
  3326. </div> -->
  3327. <div
  3328. :class="
  3329. itemTool.toolType == 1 ? 'isChooseActive' : ''
  3330. "
  3331. @click="(itemTool.toolType = 1), $forceUpdate()"
  3332. >
  3333. 思维类
  3334. </div>
  3335. <div
  3336. :class="
  3337. itemTool.toolType == 6 ? 'isChooseActive' : ''
  3338. "
  3339. @click="(itemTool.toolType = 6), $forceUpdate()"
  3340. >
  3341. 协作类
  3342. </div>
  3343. <div
  3344. :class="
  3345. itemTool.toolType == 2 ? 'isChooseActive' : ''
  3346. "
  3347. @click="(itemTool.toolType = 2), $forceUpdate()"
  3348. >
  3349. 测评类
  3350. </div>
  3351. <div
  3352. :class="
  3353. itemTool.toolType == 7 ? 'isChooseActive' : ''
  3354. "
  3355. @click="(itemTool.toolType = 7), $forceUpdate()"
  3356. >
  3357. 评价类
  3358. </div>
  3359. <div
  3360. :class="
  3361. itemTool.toolType == 3 ? 'isChooseActive' : ''
  3362. "
  3363. @click="(itemTool.toolType = 3), $forceUpdate()"
  3364. >
  3365. 学科类
  3366. </div>
  3367. <!-- <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
  3368. " @click="(itemTool.toolType = 5), $forceUpdate()">
  3369. 学科类
  3370. </div>
  3371. <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  3372. " @click="(itemTool.toolType = 4), $forceUpdate()">
  3373. 其他
  3374. </div> -->
  3375. </div>
  3376. <div
  3377. class="remove"
  3378. @click="deleteTool(itemTaskIndex, toolIndex)"
  3379. v-if="itemTask.toolChoose.length > 1"
  3380. style="position: absolute; right: 55px"
  3381. ></div>
  3382. </div>
  3383. <div style="min-height: 163px">
  3384. <div class="toolSort" v-if="itemTool.toolType == 0">
  3385. <!-- <div class="tool">
  3386. <div
  3387. class="whiteBIcon"
  3388. @click="addTools(8, itemTaskIndex, toolIndex)"
  3389. >
  3390. <img src="../../../assets/icon/secondToolList/library.png" alt />
  3391. <div style="margin: 5px 0">素材库</div>
  3392. </div>
  3393. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  3394. <img
  3395. src="../../../assets/icon/checkNo.png"
  3396. alt
  3397. v-if="itemTool.tool.indexOf(8) == -1"
  3398. />
  3399. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  3400. alt /><span>已选择</span></div>
  3401. </div>
  3402. </div>-->
  3403. <!-- <div class="tool">
  3404. <div
  3405. class="whiteBIcon"
  3406. @click="addTools(17, itemTaskIndex, toolIndex)"
  3407. >
  3408. <img
  3409. src="../../../assets/icon/secondToolList/library.png"
  3410. alt
  3411. />
  3412. <div style="margin: 5px 0">学习资料</div>
  3413. </div>
  3414. <div
  3415. class="check"
  3416. @click="addTools(17, itemTaskIndex, toolIndex)"
  3417. >
  3418. <img
  3419. src="../../../assets/icon/checkNo.png"
  3420. alt
  3421. v-if="itemTool.tool.indexOf(17) == -1"
  3422. />
  3423. <img
  3424. src="../../../assets/icon/checkedIs.png"
  3425. alt
  3426. v-else
  3427. />
  3428. </div>10
  3429. </div> -->
  3430. <div class="tool">
  3431. <div
  3432. class="whiteBIcon"
  3433. @click="openTools(itemTaskIndex, 10, toolIndex)"
  3434. >
  3435. <img
  3436. src="../../../assets/icon/thirdToolList/time.png"
  3437. alt
  3438. />
  3439. <div style="margin: 5px 0">倒计时</div>
  3440. </div>
  3441. <div
  3442. class="check"
  3443. @click="addTools(10, itemTaskIndex, toolIndex)"
  3444. >
  3445. <img
  3446. src="../../../assets/icon/checkNo.png"
  3447. alt
  3448. v-if="itemTool.tool.indexOf(10) == -1"
  3449. />
  3450. <div class="checkDiv" v-else>
  3451. <img
  3452. src="../../../assets/icon/checkedIs.png"
  3453. alt
  3454. /><span>已选择</span>
  3455. </div>
  3456. </div>
  3457. </div>
  3458. <!-- <div class="tool">
  3459. <div
  3460. class="whiteBIcon"
  3461. @click="openTools(itemTaskIndex, 49, toolIndex)"
  3462. >
  3463. <img
  3464. src="../../../assets/icon/fourthToolList/group.png"
  3465. alt
  3466. />
  3467. <div style="margin: 5px 0">学生分组</div>
  3468. </div>
  3469. <div
  3470. class="check"
  3471. @click="addTools(49, itemTaskIndex, toolIndex)"
  3472. >
  3473. <img
  3474. src="../../../assets/icon/checkNo.png"
  3475. alt
  3476. v-if="itemTool.tool.indexOf(49) == -1"
  3477. />
  3478. <div class="checkDiv" v-else>
  3479. <img
  3480. src="../../../assets/icon/checkedIs.png"
  3481. alt
  3482. /><span>已选择</span>
  3483. </div>
  3484. </div>
  3485. </div> -->
  3486. <div class="tool">
  3487. <div
  3488. class="whiteBIcon"
  3489. @click="openTools(itemTaskIndex, 62, toolIndex)"
  3490. >
  3491. <img
  3492. src="../../../assets/icon/fourthToolList/interVideo.png"
  3493. alt
  3494. />
  3495. <div style="margin: 5px 0">交互视频</div>
  3496. </div>
  3497. <div
  3498. class="check"
  3499. @click="addTools(62, itemTaskIndex, toolIndex)"
  3500. >
  3501. <img
  3502. src="../../../assets/icon/checkNo.png"
  3503. alt
  3504. v-if="itemTool.tool.indexOf(62) == -1"
  3505. />
  3506. <div class="checkDiv" v-else>
  3507. <img
  3508. src="../../../assets/icon/checkedIs.png"
  3509. alt
  3510. /><span>已选择</span>
  3511. </div>
  3512. </div>
  3513. </div>
  3514. </div>
  3515. <div class="toolSort" v-if="itemTool.toolType == 1">
  3516. <div class="tool">
  3517. <div
  3518. class="whiteBIcon"
  3519. @click="addTools(7, itemTaskIndex, toolIndex)"
  3520. >
  3521. <img
  3522. src="../../../assets/icon/secondToolList/mindNetwork.png"
  3523. alt
  3524. />
  3525. <div style="margin: 5px 0">思维网格</div>
  3526. </div>
  3527. <div
  3528. class="check"
  3529. @click="addTools(7, itemTaskIndex, toolIndex)"
  3530. >
  3531. <img
  3532. src="../../../assets/icon/checkNo.png"
  3533. alt
  3534. v-if="itemTool.tool.indexOf(7) == -1"
  3535. />
  3536. <div class="checkDiv" v-else>
  3537. <img
  3538. src="../../../assets/icon/checkedIs.png"
  3539. alt
  3540. /><span>已选择</span>
  3541. </div>
  3542. </div>
  3543. </div>
  3544. <div class="tool">
  3545. <div
  3546. class="whiteBIcon"
  3547. @click="openTools(itemTaskIndex, 1, toolIndex)"
  3548. >
  3549. <img
  3550. src="../../../assets/icon/secondToolList/whiteBoard.png"
  3551. alt
  3552. />
  3553. <div style="margin: 5px 0">电子白板</div>
  3554. </div>
  3555. <div
  3556. class="check"
  3557. @click="addTools(1, itemTaskIndex, toolIndex)"
  3558. >
  3559. <img
  3560. src="../../../assets/icon/checkNo.png"
  3561. alt
  3562. v-if="itemTool.tool.indexOf(1) == -1"
  3563. />
  3564. <div class="checkDiv" v-else>
  3565. <img
  3566. src="../../../assets/icon/checkedIs.png"
  3567. alt
  3568. /><span>已选择</span>
  3569. </div>
  3570. </div>
  3571. </div>
  3572. <!-- <div class="tool">
  3573. <div
  3574. class="whiteBIcon"
  3575. @click="addTools(2, itemTaskIndex, toolIndex)"
  3576. >
  3577. <img
  3578. src="../../../assets/icon/secondToolList/note.png"
  3579. alt
  3580. />
  3581. <div style="margin: 5px 0">便签</div>
  3582. </div>
  3583. <div
  3584. class="check"
  3585. @click="addTools(2, itemTaskIndex, toolIndex)"
  3586. >
  3587. <img
  3588. src="../../../assets/icon/checkNo.png"
  3589. alt
  3590. v-if="itemTool.tool.indexOf(2) == -1"
  3591. />
  3592. <div class="checkDiv" v-else>
  3593. <img
  3594. src="../../../assets/icon/checkedIs.png"
  3595. alt
  3596. /><span>已选择</span>
  3597. </div>
  3598. </div>
  3599. </div> -->
  3600. <!-- <div class="tool">
  3601. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  3602. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  3603. <div style="margin: 5px 0">协同文档</div>
  3604. </div>
  3605. <div
  3606. class="check"
  3607. @click="addTools(6, itemTaskIndex, toolIndex)"
  3608. >
  3609. <img
  3610. src="../../../assets/icon/checkNo.png"
  3611. alt
  3612. v-if="itemTool.tool.indexOf(6) == -1"
  3613. />
  3614. <div class="checkDiv" v-else>
  3615. <img
  3616. src="../../../assets/icon/checkedIs.png"
  3617. alt
  3618. /><span>已选择</span>
  3619. </div>
  3620. </div>
  3621. </div> -->
  3622. <div class="tool">
  3623. <div
  3624. class="whiteBIcon"
  3625. @click="openTools(itemTaskIndex, 52, toolIndex)"
  3626. >
  3627. <img
  3628. src="../../../assets/icon/fourthToolList/text.png"
  3629. alt
  3630. />
  3631. <div style="margin: 5px 0">文档</div>
  3632. </div>
  3633. <div
  3634. class="check"
  3635. @click="addTools(52, itemTaskIndex, toolIndex)"
  3636. >
  3637. <img
  3638. src="../../../assets/icon/checkNo.png"
  3639. alt
  3640. v-if="itemTool.tool.indexOf(52) == -1"
  3641. />
  3642. <div class="checkDiv" v-else>
  3643. <img
  3644. src="../../../assets/icon/checkedIs.png"
  3645. alt
  3646. /><span>已选择</span>
  3647. </div>
  3648. </div>
  3649. </div>
  3650. <div class="tool">
  3651. <div
  3652. class="whiteBIcon"
  3653. @click="openTools(itemTaskIndex, 3, toolIndex)"
  3654. >
  3655. <img
  3656. src="../../../assets/icon/secondToolList/mindMapping.png"
  3657. alt
  3658. />
  3659. <div style="margin: 5px 0">思维导图</div>
  3660. </div>
  3661. <div
  3662. class="check"
  3663. @click="addTools(3, itemTaskIndex, toolIndex)"
  3664. >
  3665. <img
  3666. src="../../../assets/icon/checkNo.png"
  3667. alt
  3668. v-if="itemTool.tool.indexOf(3) == -1"
  3669. />
  3670. <div class="checkDiv" v-else>
  3671. <img
  3672. src="../../../assets/icon/checkedIs.png"
  3673. alt
  3674. /><span>已选择</span>
  3675. </div>
  3676. </div>
  3677. </div>
  3678. <div class="tool">
  3679. <div
  3680. class="whiteBIcon"
  3681. @click="openTools(itemTaskIndex, 48, toolIndex)"
  3682. >
  3683. <img
  3684. src="../../../assets/icon/fourthToolList/table.png"
  3685. alt
  3686. />
  3687. <div style="margin: 5px 0">表格</div>
  3688. </div>
  3689. <div
  3690. class="check"
  3691. @click="addTools(48, itemTaskIndex, toolIndex)"
  3692. >
  3693. <img
  3694. src="../../../assets/icon/checkNo.png"
  3695. alt
  3696. v-if="itemTool.tool.indexOf(48) == -1"
  3697. />
  3698. <div class="checkDiv" v-else>
  3699. <img
  3700. src="../../../assets/icon/checkedIs.png"
  3701. alt
  3702. /><span>已选择</span>
  3703. </div>
  3704. </div>
  3705. </div>
  3706. </div>
  3707. <div class="toolSort" v-if="itemTool.toolType == 6">
  3708. <div class="tool">
  3709. <div
  3710. class="whiteBIcon"
  3711. @click="openTools(itemTaskIndex, 49, toolIndex)"
  3712. >
  3713. <img
  3714. src="../../../assets/icon/fourthToolList/group.png"
  3715. alt
  3716. />
  3717. <div style="margin: 5px 0">学生分组</div>
  3718. </div>
  3719. <div
  3720. class="check"
  3721. @click="addTools(49, itemTaskIndex, toolIndex)"
  3722. >
  3723. <img
  3724. src="../../../assets/icon/checkNo.png"
  3725. alt
  3726. v-if="itemTool.tool.indexOf(49) == -1"
  3727. />
  3728. <div class="checkDiv" v-else>
  3729. <img
  3730. src="../../../assets/icon/checkedIs.png"
  3731. alt
  3732. /><span>已选择</span>
  3733. </div>
  3734. </div>
  3735. </div>
  3736. </div>
  3737. <div class="toolSort" v-if="itemTool.toolType == 2">
  3738. <!-- <div class="tool">
  3739. <div
  3740. class="whiteBIcon"
  3741. @click="addTools(5, itemTaskIndex, toolIndex)"
  3742. >
  3743. <img
  3744. src="../../../assets/icon/thirdToolList/score.png"
  3745. alt
  3746. />
  3747. <div style="margin: 5px 0">量规评分</div>
  3748. </div>
  3749. <div
  3750. class="check"
  3751. @click="addTools(5, itemTaskIndex, toolIndex)"
  3752. >
  3753. <img
  3754. src="../../../assets/icon/checkNo.png"
  3755. alt
  3756. v-if="itemTool.tool.indexOf(5) == -1"
  3757. />
  3758. <img
  3759. src="../../../assets/icon/checkedIs.png"
  3760. alt
  3761. v-else
  3762. />
  3763. </div>
  3764. </div>-->
  3765. <div class="tool">
  3766. <div
  3767. class="whiteBIcon"
  3768. @click="openTools(itemTaskIndex, 4, toolIndex)"
  3769. >
  3770. <img
  3771. src="../../../assets/icon/thirdToolList/ask.png"
  3772. alt
  3773. />
  3774. <div style="margin: 5px 0">问卷调查</div>
  3775. </div>
  3776. <div
  3777. class="check"
  3778. @click="addTools(4, itemTaskIndex, toolIndex)"
  3779. >
  3780. <img
  3781. src="../../../assets/icon/checkNo.png"
  3782. alt
  3783. v-if="itemTool.tool.indexOf(4) == -1"
  3784. />
  3785. <div class="checkDiv" v-else>
  3786. <img
  3787. src="../../../assets/icon/checkedIs.png"
  3788. alt
  3789. /><span>已选择</span>
  3790. </div>
  3791. </div>
  3792. </div>
  3793. <div class="tool">
  3794. <div
  3795. class="whiteBIcon"
  3796. @click="openTools(itemTaskIndex, 45, toolIndex)"
  3797. >
  3798. <img
  3799. src="../../../assets/icon/thirdToolList/choose.png"
  3800. alt
  3801. />
  3802. <div style="margin: 5px 0">选择题</div>
  3803. </div>
  3804. <div
  3805. class="check"
  3806. @click="addTools(45, itemTaskIndex, toolIndex)"
  3807. >
  3808. <img
  3809. src="../../../assets/icon/checkNo.png"
  3810. alt
  3811. v-if="itemTool.tool.indexOf(45) == -1"
  3812. />
  3813. <div class="checkDiv" v-else>
  3814. <img
  3815. src="../../../assets/icon/checkedIs.png"
  3816. alt
  3817. /><span>已选择</span>
  3818. </div>
  3819. </div>
  3820. </div>
  3821. <div class="tool">
  3822. <div
  3823. class="whiteBIcon"
  3824. @click="openTools(itemTaskIndex, 15, toolIndex)"
  3825. >
  3826. <img
  3827. src="../../../assets/icon/thirdToolList/answer.png"
  3828. alt
  3829. />
  3830. <div style="margin: 5px 0">问答工具</div>
  3831. </div>
  3832. <div
  3833. class="check"
  3834. @click="addTools(15, itemTaskIndex, toolIndex)"
  3835. >
  3836. <img
  3837. src="../../../assets/icon/checkNo.png"
  3838. alt
  3839. v-if="itemTool.tool.indexOf(15) == -1"
  3840. />
  3841. <div class="checkDiv" v-else>
  3842. <img
  3843. src="../../../assets/icon/checkedIs.png"
  3844. alt
  3845. /><span>已选择</span>
  3846. </div>
  3847. </div>
  3848. </div>
  3849. <div class="tool">
  3850. <div
  3851. class="whiteBIcon"
  3852. @click="addTools(16, itemTaskIndex, toolIndex)"
  3853. >
  3854. <img
  3855. src="../../../assets/icon/thirdToolList/work.png"
  3856. alt
  3857. />
  3858. <div style="margin: 5px 0">作业提交</div>
  3859. </div>
  3860. <div
  3861. class="check"
  3862. @click="addTools(16, itemTaskIndex, toolIndex)"
  3863. >
  3864. <img
  3865. src="../../../assets/icon/checkNo.png"
  3866. alt
  3867. v-if="itemTool.tool.indexOf(16) == -1"
  3868. />
  3869. <div class="checkDiv" v-else>
  3870. <img
  3871. src="../../../assets/icon/checkedIs.png"
  3872. alt
  3873. /><span>已选择</span>
  3874. </div>
  3875. </div>
  3876. </div>
  3877. <div class="tool">
  3878. <div
  3879. class="whiteBIcon"
  3880. @click="addTools(50, itemTaskIndex, toolIndex)"
  3881. >
  3882. <img
  3883. src="../../../assets/icon/thirdToolList/plwork.png"
  3884. alt
  3885. />
  3886. <div style="margin: 5px 0">批量上传</div>
  3887. </div>
  3888. <div
  3889. class="check"
  3890. @click="addTools(50, itemTaskIndex, toolIndex)"
  3891. >
  3892. <img
  3893. src="../../../assets/icon/checkNo.png"
  3894. alt
  3895. v-if="itemTool.tool.indexOf(50) == -1"
  3896. />
  3897. <div class="checkDiv" v-else>
  3898. <img
  3899. src="../../../assets/icon/checkedIs.png"
  3900. alt
  3901. /><span>已选择</span>
  3902. </div>
  3903. </div>
  3904. </div>
  3905. <!-- <div class="tool">
  3906. <div
  3907. class="whiteBIcon"
  3908. @click="openTools(itemTaskIndex, 40, toolIndex)"
  3909. >
  3910. <img
  3911. src="../../../assets/icon/thirdToolList/eval.png"
  3912. alt
  3913. />
  3914. <div style="margin: 5px 0">个人评价</div>
  3915. </div>
  3916. <div
  3917. class="check"
  3918. @click="addTools(40, itemTaskIndex, toolIndex)"
  3919. >
  3920. <img
  3921. src="../../../assets/icon/checkNo.png"
  3922. alt
  3923. v-if="itemTool.tool.indexOf(40) == -1"
  3924. />
  3925. <div class="checkDiv" v-else>
  3926. <img
  3927. src="../../../assets/icon/checkedIs.png"
  3928. alt
  3929. /><span>已选择</span>
  3930. </div>
  3931. </div>
  3932. </div> -->
  3933. <div class="tool">
  3934. <div
  3935. class="whiteBIcon"
  3936. @click="openTools(itemTaskIndex, 41, toolIndex)"
  3937. >
  3938. <img
  3939. src="../../../assets/icon/thirdToolList/select.png"
  3940. alt
  3941. />
  3942. <div style="margin: 5px 0">选择填空</div>
  3943. </div>
  3944. <div
  3945. class="check"
  3946. @click="addTools(41, itemTaskIndex, toolIndex)"
  3947. >
  3948. <img
  3949. src="../../../assets/icon/checkNo.png"
  3950. alt
  3951. v-if="itemTool.tool.indexOf(41) == -1"
  3952. />
  3953. <div class="checkDiv" v-else>
  3954. <img
  3955. src="../../../assets/icon/checkedIs.png"
  3956. alt
  3957. /><span>已选择</span>
  3958. </div>
  3959. </div>
  3960. </div>
  3961. <div class="tool">
  3962. <div
  3963. class="whiteBIcon"
  3964. @click="openTools(itemTaskIndex, 47, toolIndex)"
  3965. >
  3966. <img
  3967. src="../../../assets/icon/fourthToolList/conSentences.png"
  3968. alt
  3969. />
  3970. <div style="margin: 5px 0">连词成句</div>
  3971. </div>
  3972. <div
  3973. class="check"
  3974. @click="addTools(47, itemTaskIndex, toolIndex)"
  3975. >
  3976. <img
  3977. src="../../../assets/icon/checkNo.png"
  3978. alt
  3979. v-if="itemTool.tool.indexOf(47) == -1"
  3980. />
  3981. <div class="checkDiv" v-else>
  3982. <img
  3983. src="../../../assets/icon/checkedIs.png"
  3984. alt
  3985. /><span>已选择</span>
  3986. </div>
  3987. </div>
  3988. </div>
  3989. <!-- <div class="tool">
  3990. <div
  3991. class="whiteBIcon"
  3992. @click="openTools(itemTaskIndex, 42, toolIndex)"
  3993. >
  3994. <img
  3995. src="../../../assets/icon/thirdToolList/mp3.png"
  3996. alt
  3997. />
  3998. <div style="margin: 5px 0">上传音频</div>
  3999. </div>
  4000. <div
  4001. class="check"
  4002. @click="addTools(42, itemTaskIndex, toolIndex)"
  4003. >
  4004. <img
  4005. src="../../../assets/icon/checkNo.png"
  4006. alt
  4007. v-if="itemTool.tool.indexOf(42) == -1"
  4008. />
  4009. <img
  4010. src="../../../assets/icon/checkedIs.png"
  4011. alt
  4012. v-else
  4013. />
  4014. </div>
  4015. </div> -->
  4016. </div>
  4017. <div class="toolSort" v-if="itemTool.toolType == 3">
  4018. <div class="tool">
  4019. <div
  4020. class="whiteBIcon"
  4021. @click="addTools(18, itemTaskIndex, toolIndex)"
  4022. >
  4023. <img
  4024. src="../../../assets/icon/thirdToolList/trainPlatform.png"
  4025. alt
  4026. />
  4027. <div style="margin: 5px 0">训练平台</div>
  4028. </div>
  4029. <div
  4030. class="check"
  4031. @click="addTools(18, itemTaskIndex, toolIndex)"
  4032. >
  4033. <img
  4034. src="../../../assets/icon/checkNo.png"
  4035. alt
  4036. v-if="itemTool.tool.indexOf(18) == -1"
  4037. />
  4038. <div class="checkDiv" v-else>
  4039. <img
  4040. src="../../../assets/icon/checkedIs.png"
  4041. alt
  4042. /><span>已选择</span>
  4043. </div>
  4044. </div>
  4045. </div>
  4046. <div class="tool">
  4047. <div
  4048. class="whiteBIcon"
  4049. @click="addTools(21, itemTaskIndex, toolIndex)"
  4050. >
  4051. <img
  4052. src="../../../assets/icon/fourthToolList/program.png"
  4053. alt
  4054. />
  4055. <div style="margin: 5px 0">编程平台</div>
  4056. </div>
  4057. <div
  4058. class="check"
  4059. @click="addTools(21, itemTaskIndex, toolIndex)"
  4060. >
  4061. <img
  4062. src="../../../assets/icon/checkNo.png"
  4063. alt
  4064. v-if="itemTool.tool.indexOf(21) == -1"
  4065. />
  4066. <div class="checkDiv" v-else>
  4067. <img
  4068. src="../../../assets/icon/checkedIs.png"
  4069. alt
  4070. /><span>已选择</span>
  4071. </div>
  4072. </div>
  4073. </div>
  4074. <div class="tool">
  4075. <div
  4076. class="whiteBIcon"
  4077. @click="addTools(22, itemTaskIndex, toolIndex)"
  4078. >
  4079. <img
  4080. src="../../../assets/icon/fourthToolList/AIprogram2.png"
  4081. alt
  4082. />
  4083. <div style="margin: 5px 0">AI体验</div>
  4084. </div>
  4085. <div
  4086. class="check"
  4087. @click="addTools(22, itemTaskIndex, toolIndex)"
  4088. >
  4089. <img
  4090. src="../../../assets/icon/checkNo.png"
  4091. alt
  4092. v-if="itemTool.tool.indexOf(22) == -1"
  4093. />
  4094. <div class="checkDiv" v-else>
  4095. <img
  4096. src="../../../assets/icon/checkedIs.png"
  4097. alt
  4098. /><span>已选择</span>
  4099. </div>
  4100. </div>
  4101. </div>
  4102. <div class="tool">
  4103. <div
  4104. class="whiteBIcon"
  4105. @click="addTools(23, itemTaskIndex, toolIndex)"
  4106. >
  4107. <img
  4108. src="../../../assets/icon/fourthToolList/Pythonprogram.png"
  4109. alt
  4110. />
  4111. <div style="margin: 5px 0">Python</div>
  4112. </div>
  4113. <div
  4114. class="check"
  4115. @click="addTools(23, itemTaskIndex, toolIndex)"
  4116. >
  4117. <img
  4118. src="../../../assets/icon/checkNo.png"
  4119. alt
  4120. v-if="itemTool.tool.indexOf(23) == -1"
  4121. />
  4122. <div class="checkDiv" v-else>
  4123. <img
  4124. src="../../../assets/icon/checkedIs.png"
  4125. alt
  4126. /><span>已选择</span>
  4127. </div>
  4128. </div>
  4129. </div>
  4130. <div class="tool">
  4131. <div
  4132. class="whiteBIcon"
  4133. @click="addTools(24, itemTaskIndex, toolIndex)"
  4134. >
  4135. <img
  4136. src="../../../assets/icon/fourthToolList/AIprogram.png"
  4137. alt
  4138. />
  4139. <div style="margin: 5px 0">AI平台</div>
  4140. </div>
  4141. <div
  4142. class="check"
  4143. @click="addTools(24, itemTaskIndex, toolIndex)"
  4144. >
  4145. <img
  4146. src="../../../assets/icon/checkNo.png"
  4147. alt
  4148. v-if="itemTool.tool.indexOf(24) == -1"
  4149. />
  4150. <div class="checkDiv" v-else>
  4151. <img
  4152. src="../../../assets/icon/checkedIs.png"
  4153. alt
  4154. /><span>已选择</span>
  4155. </div>
  4156. </div>
  4157. </div>
  4158. <!-- <div class="tool">
  4159. <div
  4160. class="whiteBIcon"
  4161. @click="addTools(32, itemTaskIndex, toolIndex)"
  4162. >
  4163. <img
  4164. src="../../../assets/icon/thirdToolList/code.png"
  4165. alt
  4166. />
  4167. <div style="margin: 5px 0">源码编辑</div>
  4168. </div>
  4169. <div
  4170. class="check"
  4171. @click="addTools(32, itemTaskIndex, toolIndex)"
  4172. >
  4173. <img
  4174. src="../../../assets/icon/checkNo.png"
  4175. alt
  4176. v-if="itemTool.tool.indexOf(32) == -1"
  4177. />
  4178. <div class="checkDiv" v-else>
  4179. <img
  4180. src="../../../assets/icon/checkedIs.png"
  4181. alt
  4182. /><span>已选择</span>
  4183. </div>
  4184. </div>
  4185. </div> -->
  4186. <div class="tool">
  4187. <div
  4188. class="whiteBIcon"
  4189. @click="addTools(57, itemTaskIndex, toolIndex)"
  4190. >
  4191. <img
  4192. src="../../../assets/icon/fourthToolList/cocopi.png"
  4193. alt
  4194. />
  4195. <div style="margin: 5px 0">CocoPi</div>
  4196. </div>
  4197. <div
  4198. class="check"
  4199. @click="addTools(57, itemTaskIndex, toolIndex)"
  4200. >
  4201. <img
  4202. src="../../../assets/icon/checkNo.png"
  4203. alt
  4204. v-if="itemTool.tool.indexOf(57) == -1"
  4205. />
  4206. <div class="checkDiv" v-else>
  4207. <img
  4208. src="../../../assets/icon/checkedIs.png"
  4209. alt
  4210. /><span>已选择</span>
  4211. </div>
  4212. </div>
  4213. </div>
  4214. <div class="tool">
  4215. <div
  4216. class="whiteBIcon"
  4217. @click="addTools(63, itemTaskIndex, toolIndex)"
  4218. >
  4219. <img
  4220. src="../../../assets/icon/fourthToolList/Wood.png"
  4221. alt
  4222. />
  4223. <div style="margin: 5px 0">海龟编程</div>
  4224. </div>
  4225. <div
  4226. class="check"
  4227. @click="addTools(63, itemTaskIndex, toolIndex)"
  4228. >
  4229. <img
  4230. src="../../../assets/icon/checkNo.png"
  4231. alt
  4232. v-if="itemTool.tool.indexOf(63) == -1"
  4233. />
  4234. <div class="checkDiv" v-else>
  4235. <img
  4236. src="../../../assets/icon/checkedIs.png"
  4237. alt
  4238. /><span>已选择</span>
  4239. </div>
  4240. </div>
  4241. </div>
  4242. </div>
  4243. <div class="toolSort" v-if="itemTool.toolType == 7">
  4244. <div class="tool">
  4245. <div
  4246. class="whiteBIcon"
  4247. @click="openTools(itemTaskIndex, 40, toolIndex)"
  4248. >
  4249. <img
  4250. src="../../../assets/icon/thirdToolList/eval.png"
  4251. alt
  4252. />
  4253. <div style="margin: 5px 0">个人评价</div>
  4254. </div>
  4255. <div
  4256. class="check"
  4257. @click="addTools(40, itemTaskIndex, toolIndex)"
  4258. >
  4259. <img
  4260. src="../../../assets/icon/checkNo.png"
  4261. alt
  4262. v-if="itemTool.tool.indexOf(40) == -1"
  4263. />
  4264. <div class="checkDiv" v-else>
  4265. <img
  4266. src="../../../assets/icon/checkedIs.png"
  4267. alt
  4268. /><span>已选择</span>
  4269. </div>
  4270. </div>
  4271. </div>
  4272. </div>
  4273. <div class="toolSort" v-if="itemTool.toolType == 5">
  4274. <div class="tool">
  4275. <div
  4276. class="whiteBIcon"
  4277. @click="addTools(28, itemTaskIndex, toolIndex)"
  4278. >
  4279. <img
  4280. src="../../../assets/icon/secondToolList/translation.png"
  4281. alt
  4282. />
  4283. <div style="margin: 5px 0">翻译</div>
  4284. </div>
  4285. <div
  4286. class="check"
  4287. @click="addTools(28, itemTaskIndex, toolIndex)"
  4288. >
  4289. <img
  4290. src="../../../assets/icon/checkNo.png"
  4291. alt
  4292. v-if="itemTool.tool.indexOf(28) == -1"
  4293. />
  4294. <div class="checkDiv" v-else>
  4295. <img
  4296. src="../../../assets/icon/checkedIs.png"
  4297. alt
  4298. /><span>已选择</span>
  4299. </div>
  4300. </div>
  4301. </div>
  4302. <div class="tool">
  4303. <div
  4304. class="whiteBIcon"
  4305. @click="addTools(37, itemTaskIndex, toolIndex)"
  4306. >
  4307. <img
  4308. src="../../../assets/icon/secondToolList/mohe.png"
  4309. alt
  4310. />
  4311. <div style="margin: 5px 0">魔盒识字</div>
  4312. </div>
  4313. <div
  4314. class="check"
  4315. @click="addTools(37, itemTaskIndex, toolIndex)"
  4316. >
  4317. <img
  4318. src="../../../assets/icon/checkNo.png"
  4319. alt
  4320. v-if="itemTool.tool.indexOf(37) == -1"
  4321. />
  4322. <div class="checkDiv" v-else>
  4323. <img
  4324. src="../../../assets/icon/checkedIs.png"
  4325. alt
  4326. /><span>已选择</span>
  4327. </div>
  4328. </div>
  4329. </div>
  4330. <div class="tool">
  4331. <div
  4332. class="whiteBIcon"
  4333. @click="addTools(38, itemTaskIndex, toolIndex)"
  4334. >
  4335. <img
  4336. src="../../../assets/icon/secondToolList/24game.png"
  4337. alt
  4338. />
  4339. <div style="margin: 5px 0">24点</div>
  4340. </div>
  4341. <div
  4342. class="check"
  4343. @click="addTools(38, itemTaskIndex, toolIndex)"
  4344. >
  4345. <img
  4346. src="../../../assets/icon/checkNo.png"
  4347. alt
  4348. v-if="itemTool.tool.indexOf(38) == -1"
  4349. />
  4350. <div class="checkDiv" v-else>
  4351. <img
  4352. src="../../../assets/icon/checkedIs.png"
  4353. alt
  4354. /><span>已选择</span>
  4355. </div>
  4356. </div>
  4357. </div>
  4358. <div class="tool">
  4359. <div
  4360. class="whiteBIcon"
  4361. @click="addTools(31, itemTaskIndex, toolIndex)"
  4362. >
  4363. <img
  4364. src="../../../assets/icon/secondToolList/networkPanel.png"
  4365. alt
  4366. />
  4367. <div style="margin: 5px 0">数学画板</div>
  4368. </div>
  4369. <div
  4370. class="check"
  4371. @click="addTools(31, itemTaskIndex, toolIndex)"
  4372. >
  4373. <img
  4374. src="../../../assets/icon/checkNo.png"
  4375. alt
  4376. v-if="itemTool.tool.indexOf(31) == -1"
  4377. />
  4378. <div class="checkDiv" v-else>
  4379. <img
  4380. src="../../../assets/icon/checkedIs.png"
  4381. alt
  4382. /><span>已选择</span>
  4383. </div>
  4384. </div>
  4385. </div>
  4386. <div class="tool">
  4387. <div
  4388. class="whiteBIcon"
  4389. @click="addTools(39, itemTaskIndex, toolIndex)"
  4390. >
  4391. <img
  4392. src="../../../assets/icon/secondToolList/GeoGebra.png"
  4393. alt
  4394. />
  4395. <div style="margin: 5px 0">GeoGebra</div>
  4396. </div>
  4397. <div
  4398. class="check"
  4399. @click="addTools(39, itemTaskIndex, toolIndex)"
  4400. >
  4401. <img
  4402. src="../../../assets/icon/checkNo.png"
  4403. alt
  4404. v-if="itemTool.tool.indexOf(39) == -1"
  4405. />
  4406. <div class="checkDiv" v-else>
  4407. <img
  4408. src="../../../assets/icon/checkedIs.png"
  4409. alt
  4410. /><span>已选择</span>
  4411. </div>
  4412. </div>
  4413. </div>
  4414. <div class="tool">
  4415. <div
  4416. class="whiteBIcon"
  4417. @click="addTools(58, itemTaskIndex, toolIndex)"
  4418. >
  4419. <img
  4420. src="../../../assets/icon/fourthToolList/car.png"
  4421. alt
  4422. />
  4423. <div style="margin: 5px 0">模拟驾驶</div>
  4424. </div>
  4425. <div
  4426. class="check"
  4427. @click="addTools(58, itemTaskIndex, toolIndex)"
  4428. >
  4429. <img
  4430. src="../../../assets/icon/checkNo.png"
  4431. alt
  4432. v-if="itemTool.tool.indexOf(58) == -1"
  4433. />
  4434. <div class="checkDiv" v-else>
  4435. <img
  4436. src="../../../assets/icon/checkedIs.png"
  4437. alt
  4438. /><span>已选择</span>
  4439. </div>
  4440. </div>
  4441. </div>
  4442. <div class="tool">
  4443. <div
  4444. class="whiteBIcon"
  4445. @click="addTools(59, itemTaskIndex, toolIndex)"
  4446. >
  4447. <img
  4448. src="../../../assets/icon/fourthToolList/lineSearch.png"
  4449. alt
  4450. />
  4451. <div style="margin: 5px 0">路径搜索</div>
  4452. </div>
  4453. <div
  4454. class="check"
  4455. @click="addTools(59, itemTaskIndex, toolIndex)"
  4456. >
  4457. <img
  4458. src="../../../assets/icon/checkNo.png"
  4459. alt
  4460. v-if="itemTool.tool.indexOf(59) == -1"
  4461. />
  4462. <div class="checkDiv" v-else>
  4463. <img
  4464. src="../../../assets/icon/checkedIs.png"
  4465. alt
  4466. /><span>已选择</span>
  4467. </div>
  4468. </div>
  4469. </div>
  4470. <div class="tool">
  4471. <div
  4472. class="whiteBIcon"
  4473. @click="addTools(60, itemTaskIndex, toolIndex)"
  4474. >
  4475. <img
  4476. src="../../../assets/icon/fourthToolList/deepLearning.png"
  4477. alt
  4478. />
  4479. <div style="margin: 5px 0">深度学习</div>
  4480. </div>
  4481. <div
  4482. class="check"
  4483. @click="addTools(60, itemTaskIndex, toolIndex)"
  4484. >
  4485. <img
  4486. src="../../../assets/icon/checkNo.png"
  4487. alt
  4488. v-if="itemTool.tool.indexOf(60) == -1"
  4489. />
  4490. <div class="checkDiv" v-else>
  4491. <img
  4492. src="../../../assets/icon/checkedIs.png"
  4493. alt
  4494. /><span>已选择</span>
  4495. </div>
  4496. </div>
  4497. </div>
  4498. <div class="tool">
  4499. <div
  4500. class="whiteBIcon"
  4501. @click="addTools(61, itemTaskIndex, toolIndex)"
  4502. >
  4503. <img
  4504. src="../../../assets/icon/fourthToolList/allHistory.png"
  4505. alt
  4506. />
  4507. <div style="margin: 5px 0">全历史</div>
  4508. </div>
  4509. <div
  4510. class="check"
  4511. @click="addTools(61, itemTaskIndex, toolIndex)"
  4512. >
  4513. <img
  4514. src="../../../assets/icon/checkNo.png"
  4515. alt
  4516. v-if="itemTool.tool.indexOf(61) == -1"
  4517. />
  4518. <div class="checkDiv" v-else>
  4519. <img
  4520. src="../../../assets/icon/checkedIs.png"
  4521. alt
  4522. /><span>已选择</span>
  4523. </div>
  4524. </div>
  4525. </div>
  4526. </div>
  4527. <div class="toolSort" v-if="itemTool.toolType == 4">
  4528. <div class="tool">
  4529. <div
  4530. class="whiteBIcon"
  4531. @click="addTools(26, itemTaskIndex, toolIndex)"
  4532. >
  4533. <img
  4534. src="../../../assets/icon/thirdToolList/courseDesign.png"
  4535. alt
  4536. />
  4537. <div style="margin: 5px 0">课程设计</div>
  4538. </div>
  4539. <div
  4540. class="check"
  4541. @click="addTools(26, itemTaskIndex, toolIndex)"
  4542. >
  4543. <img
  4544. src="../../../assets/icon/checkNo.png"
  4545. alt
  4546. v-if="itemTool.tool.indexOf(26) == -1"
  4547. />
  4548. <div class="checkDiv" v-else>
  4549. <img
  4550. src="../../../assets/icon/checkedIs.png"
  4551. alt
  4552. /><span>已选择</span>
  4553. </div>
  4554. </div>
  4555. </div>
  4556. <div class="tool">
  4557. <div
  4558. class="whiteBIcon"
  4559. @click="addTools(25, itemTaskIndex, toolIndex)"
  4560. >
  4561. <img
  4562. src="../../../assets/icon/thirdToolList/evalua.png"
  4563. alt
  4564. />
  4565. <div style="margin: 5px 0">目标管理</div>
  4566. </div>
  4567. <div
  4568. class="check"
  4569. @click="addTools(25, itemTaskIndex, toolIndex)"
  4570. >
  4571. <img
  4572. src="../../../assets/icon/checkNo.png"
  4573. alt
  4574. v-if="itemTool.tool.indexOf(25) == -1"
  4575. />
  4576. <div class="checkDiv" v-else>
  4577. <img
  4578. src="../../../assets/icon/checkedIs.png"
  4579. alt
  4580. /><span>已选择</span>
  4581. </div>
  4582. </div>
  4583. </div>
  4584. <!-- <div class="tool">
  4585. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  4586. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  4587. <div style="margin: 5px 0">汉字宫</div>
  4588. </div>
  4589. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  4590. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  4591. <div class="checkDiv" v-else>
  4592. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4593. </div>
  4594. </div>
  4595. </div> -->
  4596. </div>
  4597. </div>
  4598. </div>
  4599. <div
  4600. class="addToolFun"
  4601. @click="addToolFun(itemTaskIndex)"
  4602. >
  4603. <div class="addToolImg">
  4604. <img src="../../../assets/icon/add.png" alt />
  4605. </div>
  4606. <div>添加工具</div>
  4607. </div>
  4608. </div>
  4609. </div>
  4610. <div
  4611. v-else-if="
  4612. unitJson[unitIndex].easy == 2 ||
  4613. unitJson[unitIndex].easy == 4
  4614. "
  4615. class="toolChoose"
  4616. style="padding: 0 0 0 30px"
  4617. >
  4618. <div class="tools">
  4619. <div
  4620. class="leftTools"
  4621. style="width: 95%"
  4622. v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  4623. :key="toolIndex"
  4624. >
  4625. <div>
  4626. <textarea
  4627. rows="3"
  4628. type="text"
  4629. placeholder="添加工具描述"
  4630. class="binfo_input"
  4631. style="margin: 0 0 20px 0; width: 71.5% !important"
  4632. v-model="itemTool.toolDetail"
  4633. ></textarea>
  4634. </div>
  4635. <div
  4636. style="
  4637. display: flex;
  4638. flex-direction: row;
  4639. align-items: baseline;
  4640. flex-wrap: nowrap;
  4641. justify-content: flex-start;
  4642. position: relative;
  4643. "
  4644. >
  4645. <div style="margin-right: 20px; font-weight: bold">
  4646. 步骤 {{ toolIndex + 1 }} :
  4647. </div>
  4648. <div
  4649. class="remove"
  4650. @click="deleteTool(itemTaskIndex, toolIndex)"
  4651. v-if="itemTask.toolChoose.length > 1"
  4652. style="position: absolute; right: 55px"
  4653. ></div>
  4654. </div>
  4655. <div style="min-height: 163px">
  4656. <div class="toolSort">
  4657. <div class="tool">
  4658. <div
  4659. class="whiteBIcon"
  4660. @click="openTools(itemTaskIndex, 1, toolIndex)"
  4661. >
  4662. <img
  4663. src="../../../assets/icon/secondToolList/whiteBoard.png"
  4664. alt
  4665. />
  4666. <div style="margin: 5px 0">电子白板</div>
  4667. </div>
  4668. <div
  4669. class="check"
  4670. @click="addTools(1, itemTaskIndex, toolIndex)"
  4671. >
  4672. <img
  4673. src="../../../assets/icon/checkNo.png"
  4674. alt
  4675. v-if="itemTool.tool.indexOf(1) == -1"
  4676. />
  4677. <div class="checkDiv" v-else>
  4678. <img
  4679. src="../../../assets/icon/checkedIs.png"
  4680. alt
  4681. /><span>已选择</span>
  4682. </div>
  4683. </div>
  4684. </div>
  4685. <div class="tool">
  4686. <div
  4687. class="whiteBIcon"
  4688. @click="openTools(itemTaskIndex, 52, toolIndex)"
  4689. >
  4690. <img
  4691. src="../../../assets/icon/fourthToolList/text.png"
  4692. alt
  4693. />
  4694. <div style="margin: 5px 0">文档</div>
  4695. </div>
  4696. <div
  4697. class="check"
  4698. @click="addTools(52, itemTaskIndex, toolIndex)"
  4699. >
  4700. <img
  4701. src="../../../assets/icon/checkNo.png"
  4702. alt
  4703. v-if="itemTool.tool.indexOf(52) == -1"
  4704. />
  4705. <div class="checkDiv" v-else>
  4706. <img
  4707. src="../../../assets/icon/checkedIs.png"
  4708. alt
  4709. /><span>已选择</span>
  4710. </div>
  4711. </div>
  4712. </div>
  4713. <div class="tool">
  4714. <div
  4715. class="whiteBIcon"
  4716. @click="openTools(itemTaskIndex, 3, toolIndex)"
  4717. >
  4718. <img
  4719. src="../../../assets/icon/secondToolList/mindMapping.png"
  4720. alt
  4721. />
  4722. <div style="margin: 5px 0">思维导图</div>
  4723. </div>
  4724. <div
  4725. class="check"
  4726. @click="addTools(3, itemTaskIndex, toolIndex)"
  4727. >
  4728. <img
  4729. src="../../../assets/icon/checkNo.png"
  4730. alt
  4731. v-if="itemTool.tool.indexOf(3) == -1"
  4732. />
  4733. <div class="checkDiv" v-else>
  4734. <img
  4735. src="../../../assets/icon/checkedIs.png"
  4736. alt
  4737. /><span>已选择</span>
  4738. </div>
  4739. </div>
  4740. </div>
  4741. <div class="tool">
  4742. <div
  4743. class="whiteBIcon"
  4744. @click="openTools(itemTaskIndex, 4, toolIndex)"
  4745. >
  4746. <img
  4747. src="../../../assets/icon/thirdToolList/ask.png"
  4748. alt
  4749. />
  4750. <div style="margin: 5px 0">问卷调查</div>
  4751. </div>
  4752. <div
  4753. class="check"
  4754. @click="addTools(4, itemTaskIndex, toolIndex)"
  4755. >
  4756. <img
  4757. src="../../../assets/icon/checkNo.png"
  4758. alt
  4759. v-if="itemTool.tool.indexOf(4) == -1"
  4760. />
  4761. <div class="checkDiv" v-else>
  4762. <img
  4763. src="../../../assets/icon/checkedIs.png"
  4764. alt
  4765. /><span>已选择</span>
  4766. </div>
  4767. </div>
  4768. </div>
  4769. <div class="tool">
  4770. <div
  4771. class="whiteBIcon"
  4772. @click="openTools(itemTaskIndex, 45, toolIndex)"
  4773. >
  4774. <img
  4775. src="../../../assets/icon/thirdToolList/choose.png"
  4776. alt
  4777. />
  4778. <div style="margin: 5px 0">选择题</div>
  4779. </div>
  4780. <div
  4781. class="check"
  4782. @click="addTools(45, itemTaskIndex, toolIndex)"
  4783. >
  4784. <img
  4785. src="../../../assets/icon/checkNo.png"
  4786. alt
  4787. v-if="itemTool.tool.indexOf(45) == -1"
  4788. />
  4789. <div class="checkDiv" v-else>
  4790. <img
  4791. src="../../../assets/icon/checkedIs.png"
  4792. alt
  4793. /><span>已选择</span>
  4794. </div>
  4795. </div>
  4796. </div>
  4797. <div class="tool">
  4798. <div
  4799. class="whiteBIcon"
  4800. @click="openTools(itemTaskIndex, 15, toolIndex)"
  4801. >
  4802. <img
  4803. src="../../../assets/icon/thirdToolList/answer.png"
  4804. alt
  4805. />
  4806. <div style="margin: 5px 0">问答工具</div>
  4807. </div>
  4808. <div
  4809. class="check"
  4810. @click="addTools(15, itemTaskIndex, toolIndex)"
  4811. >
  4812. <img
  4813. src="../../../assets/icon/checkNo.png"
  4814. alt
  4815. v-if="itemTool.tool.indexOf(15) == -1"
  4816. />
  4817. <div class="checkDiv" v-else>
  4818. <img
  4819. src="../../../assets/icon/checkedIs.png"
  4820. alt
  4821. /><span>已选择</span>
  4822. </div>
  4823. </div>
  4824. </div>
  4825. <div class="tool">
  4826. <div
  4827. class="whiteBIcon"
  4828. @click="addTools(16, itemTaskIndex, toolIndex)"
  4829. >
  4830. <img
  4831. src="../../../assets/icon/thirdToolList/work.png"
  4832. alt
  4833. />
  4834. <div style="margin: 5px 0">作业提交</div>
  4835. </div>
  4836. <div
  4837. class="check"
  4838. @click="addTools(16, itemTaskIndex, toolIndex)"
  4839. >
  4840. <img
  4841. src="../../../assets/icon/checkNo.png"
  4842. alt
  4843. v-if="itemTool.tool.indexOf(16) == -1"
  4844. />
  4845. <div class="checkDiv" v-else>
  4846. <img
  4847. src="../../../assets/icon/checkedIs.png"
  4848. alt
  4849. /><span>已选择</span>
  4850. </div>
  4851. </div>
  4852. </div>
  4853. <div class="tool">
  4854. <div
  4855. class="whiteBIcon"
  4856. @click="openTools(itemTaskIndex, 50, toolIndex)"
  4857. >
  4858. <img
  4859. src="../../../assets/icon/thirdToolList/plwork.png"
  4860. alt
  4861. />
  4862. <div style="margin: 5px 0">批量上传</div>
  4863. </div>
  4864. <div
  4865. class="check"
  4866. @click="addTools(50, itemTaskIndex, toolIndex)"
  4867. >
  4868. <img
  4869. src="../../../assets/icon/checkNo.png"
  4870. alt
  4871. v-if="itemTool.tool.indexOf(50) == -1"
  4872. />
  4873. <div class="checkDiv" v-else>
  4874. <img
  4875. src="../../../assets/icon/checkedIs.png"
  4876. alt
  4877. /><span>已选择</span>
  4878. </div>
  4879. </div>
  4880. </div>
  4881. <div class="tool">
  4882. <div
  4883. class="whiteBIcon"
  4884. @click="openTools(itemTaskIndex, 41, toolIndex)"
  4885. >
  4886. <img
  4887. src="../../../assets/icon/thirdToolList/select.png"
  4888. alt
  4889. />
  4890. <div style="margin: 5px 0">选择填空</div>
  4891. </div>
  4892. <div
  4893. class="check"
  4894. @click="addTools(41, itemTaskIndex, toolIndex)"
  4895. >
  4896. <img
  4897. src="../../../assets/icon/checkNo.png"
  4898. alt
  4899. v-if="itemTool.tool.indexOf(41) == -1"
  4900. />
  4901. <div class="checkDiv" v-else>
  4902. <img
  4903. src="../../../assets/icon/checkedIs.png"
  4904. alt
  4905. /><span>已选择</span>
  4906. </div>
  4907. </div>
  4908. </div>
  4909. <div class="tool">
  4910. <div
  4911. class="whiteBIcon"
  4912. @click="openTools(itemTaskIndex, 47, toolIndex)"
  4913. >
  4914. <img
  4915. src="../../../assets/icon/fourthToolList/conSentences.png"
  4916. alt
  4917. />
  4918. <div style="margin: 5px 0">连词成句</div>
  4919. </div>
  4920. <div
  4921. class="check"
  4922. @click="addTools(47, itemTaskIndex, toolIndex)"
  4923. >
  4924. <img
  4925. src="../../../assets/icon/checkNo.png"
  4926. alt
  4927. v-if="itemTool.tool.indexOf(47) == -1"
  4928. />
  4929. <div class="checkDiv" v-else>
  4930. <img
  4931. src="../../../assets/icon/checkedIs.png"
  4932. alt
  4933. /><span>已选择</span>
  4934. </div>
  4935. </div>
  4936. </div>
  4937. <div class="tool">
  4938. <div
  4939. class="whiteBIcon"
  4940. @click="openTools(itemTaskIndex, 48, toolIndex)"
  4941. >
  4942. <img
  4943. src="../../../assets/icon/fourthToolList/table.png"
  4944. alt
  4945. />
  4946. <div style="margin: 5px 0">表格</div>
  4947. </div>
  4948. <div
  4949. class="check"
  4950. @click="addTools(48, itemTaskIndex, toolIndex)"
  4951. >
  4952. <img
  4953. src="../../../assets/icon/checkNo.png"
  4954. alt
  4955. v-if="itemTool.tool.indexOf(48) == -1"
  4956. />
  4957. <div class="checkDiv" v-else>
  4958. <img
  4959. src="../../../assets/icon/checkedIs.png"
  4960. alt
  4961. /><span>已选择</span>
  4962. </div>
  4963. </div>
  4964. </div>
  4965. </div>
  4966. </div>
  4967. </div>
  4968. <div
  4969. class="addToolFun"
  4970. style="margin-bottom: 20px"
  4971. @click="addToolFun(itemTaskIndex)"
  4972. >
  4973. <div class="addToolImg">
  4974. <img src="../../../assets/icon/add.png" alt />
  4975. </div>
  4976. <div>添加工具</div>
  4977. </div>
  4978. </div>
  4979. </div>
  4980. <div
  4981. v-else-if="
  4982. unitJson[unitIndex].easy == 1 ||
  4983. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  4984. "
  4985. class="toolChoose"
  4986. style="padding: 0 0 0 30px"
  4987. >
  4988. <div class="tools">
  4989. <div
  4990. class="leftTools"
  4991. style="
  4992. width: 95%;
  4993. padding: 0 0 15px 0;
  4994. margin-bottom: 15px;
  4995. "
  4996. v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  4997. :key="toolIndex"
  4998. >
  4999. <div style="min-height: 163px">
  5000. <div class="toolSort">
  5001. <div class="tool">
  5002. <div
  5003. class="whiteBIcon"
  5004. @click="openTools(itemTaskIndex, 50, toolIndex)"
  5005. >
  5006. <img
  5007. src="../../../assets/icon/thirdToolList/plwork.png"
  5008. alt
  5009. />
  5010. <div style="margin: 5px 0">批量上传</div>
  5011. </div>
  5012. <div
  5013. class="check"
  5014. @click="addTools(50, itemTaskIndex, toolIndex)"
  5015. >
  5016. <img
  5017. src="../../../assets/icon/checkNo.png"
  5018. alt
  5019. v-if="itemTool.tool.indexOf(50) == -1"
  5020. />
  5021. <div class="checkDiv" v-else>
  5022. <img
  5023. src="../../../assets/icon/checkedIs.png"
  5024. alt
  5025. /><span>已选择</span>
  5026. </div>
  5027. </div>
  5028. </div>
  5029. </div>
  5030. </div>
  5031. </div>
  5032. </div>
  5033. </div>
  5034. <div
  5035. class="elist_css"
  5036. v-if="!(unitJson[unitJson.length - 1].easy == 4)"
  5037. >
  5038. <div class="elist_title">
  5039. <div
  5040. style="
  5041. display: flex;
  5042. flex-direction: row;
  5043. align-items: center;
  5044. margin-bottom: 20px;
  5045. "
  5046. >
  5047. <div class="lineTitle">评价设置</div>
  5048. <div class="line" style="width: 90%"></div>
  5049. </div>
  5050. </div>
  5051. <div class="mbCss">
  5052. <div class="pjCss">
  5053. <div
  5054. v-if="itemTask.eList && itemTask.eList.length"
  5055. class="elist_input"
  5056. >
  5057. <div
  5058. v-for="(eItem, eIndex) in itemTask.eList"
  5059. :key="eIndex"
  5060. class="elist_input_box"
  5061. >
  5062. <span>评价名称:</span>
  5063. <input
  5064. type="input"
  5065. v-model="itemTask.eList[eIndex].value"
  5066. placeholder="填写评价名称"
  5067. />
  5068. <span>评星等级:</span>
  5069. <el-rate
  5070. v-model="itemTask.eList[eIndex].score"
  5071. @change="setEListStar()"
  5072. disabled
  5073. ></el-rate>
  5074. <div
  5075. class="remove"
  5076. @click="
  5077. deletEList(unitIndex, itemTaskIndex, eIndex)
  5078. "
  5079. ></div>
  5080. <div class="elist_inptu_text">
  5081. <span>评价描述:</span>
  5082. <input
  5083. type="input"
  5084. v-model="itemTask.eList[eIndex].detail"
  5085. placeholder="填写评价描述"
  5086. />
  5087. </div>
  5088. <div class="elist_inptu_text" v-if="evalua">
  5089. <span>目标:</span>
  5090. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写评价描述" /> -->
  5091. <!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
  5092. @change="forceUpdate()">
  5093. <el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
  5094. :value="e.name">
  5095. </el-option>
  5096. </el-select> -->
  5097. <el-cascader
  5098. :options="targetArray"
  5099. v-model="itemTask.eList[eIndex].target"
  5100. :props="{ checkStrictly: true }"
  5101. :show-all-levels="false"
  5102. clearable
  5103. ></el-cascader>
  5104. </div>
  5105. </div>
  5106. </div>
  5107. <div
  5108. class="addToolFun"
  5109. @click="addEList(unitIndex, itemTaskIndex)"
  5110. style="margin: 35px 35px 0 0"
  5111. >
  5112. <div class="addToolImg">
  5113. <img src="../../../assets/icon/add.png" alt />
  5114. </div>
  5115. <div>添加</div>
  5116. </div>
  5117. </div>
  5118. <div
  5119. v-if="evalua"
  5120. style="
  5121. border: 1px solid #e5e5e5;
  5122. width: 55%;
  5123. margin-top: 20px;
  5124. box-shadow: 3px 1px 15px 3px #e0e0e0;
  5125. "
  5126. class="evaCss"
  5127. >
  5128. <div class="e_add_top">
  5129. <div class="e_add_title">
  5130. <span>当前使用目标管理</span>
  5131. <span>{{ eTitle }}</span>
  5132. <img
  5133. src="../../../assets/line.png"
  5134. class="cru_line"
  5135. style="
  5136. width: 125px;
  5137. height: 20px;
  5138. bottom: -10px;
  5139. left: 155px;
  5140. "
  5141. />
  5142. </div>
  5143. </div>
  5144. <div class="e_add_content" style="width: 100%">
  5145. <div class="e_add_list_pbox" style="width: 100%">
  5146. <div class="e_add_list_pbox_title">
  5147. <span class="type_title">切换模式</span>
  5148. <div class="type_content">
  5149. <span
  5150. :class="{ active: typeMode == 1 }"
  5151. @click="OtherMb(1)"
  5152. >目标树</span
  5153. >
  5154. <span
  5155. :class="{ active: typeMode == 2 }"
  5156. @click="OtherMb(2)"
  5157. >目标罗盘</span
  5158. >
  5159. <span
  5160. :class="{ active: typeMode == 3 }"
  5161. @click="OtherMb(3)"
  5162. >目标看板</span
  5163. >
  5164. </div>
  5165. </div>
  5166. <div class="e_add_list_pbox_content">
  5167. <Mind
  5168. :showBar="false"
  5169. :mindData="data"
  5170. style="width: 100%"
  5171. :jsmindId="
  5172. unitIndex + '-' + itemTaskIndex + 'mind'
  5173. "
  5174. v-if="typeMode == 1"
  5175. ></Mind>
  5176. <Sunburst
  5177. :Josn="eJson"
  5178. :num="eJSONNum"
  5179. style="width: 100%"
  5180. v-if="typeMode == 2"
  5181. >
  5182. </Sunburst>
  5183. <SeeBoard
  5184. :Josn="eJson"
  5185. :num="eJSONNum"
  5186. :ename="eTitle"
  5187. style="width: 100%"
  5188. v-if="typeMode == 3"
  5189. ></SeeBoard>
  5190. </div>
  5191. </div>
  5192. </div>
  5193. </div>
  5194. </div>
  5195. </div>
  5196. <div class="funBlock" style="padding: 0">
  5197. <div class="fold" @click="fold(itemTaskIndex, $event, 1)">
  5198. <div>折叠</div>
  5199. <div class="arrow">
  5200. <img src="../../../assets/icon/fold.png" alt />
  5201. </div>
  5202. </div>
  5203. <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  5204. <div>展开</div>
  5205. <div class="arrow">
  5206. <img src="../../../assets/icon/expand.png" alt />
  5207. </div>
  5208. </div>
  5209. </div>
  5210. </div>
  5211. <div
  5212. class="addTaskBorder"
  5213. @click="addTaskBorder"
  5214. v-if="!unitJson[unitIndex].easy"
  5215. >
  5216. <div>
  5217. <img src="../../../assets/icon/addHw.png" alt />
  5218. <span>添加任务</span>
  5219. </div>
  5220. </div>
  5221. </div>
  5222. </div>
  5223. </div>
  5224. <div class="rightBox" v-if="this.steps == 4">
  5225. <div class="basic_box_success">
  5226. <div class="right_img">
  5227. <img src="../../../assets/icon/right.png" alt />
  5228. </div>
  5229. <div style="font-weight: bold">成功</div>
  5230. <!-- <div>您的课程编号</div>
  5231. <div class="number">{{ number }}</div>-->
  5232. <!-- <div class="success_button">
  5233. <div class="look_course" @click="isNoFinsh">
  5234. 邀请老师协同编辑
  5235. </div>
  5236. <div class="attend_others" @click="goCourse">预览课程</div>
  5237. </div> -->
  5238. </div>
  5239. </div>
  5240. <div class="info_btnBox">
  5241. <button
  5242. class="info_btn"
  5243. @click="
  5244. goTo(
  5245. '/course?userid=' +
  5246. userid +
  5247. '&oid=' +
  5248. oid +
  5249. '&org=' +
  5250. org +
  5251. '&role=' +
  5252. role
  5253. )
  5254. "
  5255. >
  5256. 返回课程
  5257. </button>
  5258. <button class="info_btn" @click="nextSteps" v-if="this.steps == 1">
  5259. 确认上传
  5260. </button>
  5261. </div>
  5262. </div>
  5263. </div>
  5264. </div>
  5265. <el-dialog
  5266. title="提示"
  5267. :visible.sync="dialogVisible"
  5268. :append-to-body="true"
  5269. width="25%"
  5270. :before-close="handleClose"
  5271. class="dialog_diy2 customWidth"
  5272. >
  5273. <div>请复制该链接邀请协同编辑</div>
  5274. <div>http://www.boomyon.com/index-zhang.com</div>
  5275. <span slot="footer" class="dialog-footer">
  5276. <el-button type="primary">复制链接分享</el-button>
  5277. <el-button @click="dialogVisible = false">取消</el-button>
  5278. </span>
  5279. </el-dialog>
  5280. <el-dialog
  5281. :title="updateBoolean2 ? '查看文档' : '添加文档'"
  5282. :visible.sync="dialogVisible1"
  5283. :append-to-body="true"
  5284. width="25%"
  5285. :before-close="handleClose"
  5286. class="dialog_diy2 customWidth"
  5287. >
  5288. <el-form>
  5289. <el-form-item label="文档标题">
  5290. <el-input
  5291. v-model="tTitle"
  5292. auto-complete="off"
  5293. placeholder="请输入文档标题名..."
  5294. ></el-input>
  5295. </el-form-item>
  5296. <div>文档简介</div>
  5297. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  5298. </el-form>
  5299. <span slot="footer" class="dialog-footer">
  5300. <el-button @click="dialogVisible1 = false">取 消</el-button>
  5301. <el-button type="primary" @click="addWord" v-if="!updateBoolean2"
  5302. >添加</el-button
  5303. >
  5304. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  5305. </span>
  5306. </el-dialog>
  5307. <el-dialog
  5308. title="添加文档"
  5309. :visible.sync="dialogVisible2"
  5310. :append-to-body="true"
  5311. width="500px"
  5312. :before-close="handleClose"
  5313. class="dialog_diy"
  5314. >
  5315. <el-form>
  5316. <el-form-item label="文档标题">
  5317. <el-input
  5318. v-model="templateC.title"
  5319. auto-complete="off"
  5320. placeholder="请输入文档标题名..."
  5321. ></el-input>
  5322. </el-form-item>
  5323. <div>文档内容</div>
  5324. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  5325. </el-form>
  5326. <span slot="footer" class="dialog-footer">
  5327. <el-button @click="clearChoose">取 消</el-button>
  5328. <el-button type="primary" @click="wordNext()">确定</el-button>
  5329. </span>
  5330. </el-dialog>
  5331. <el-dialog
  5332. title="添加富文本"
  5333. :visible.sync="dialogVisible6"
  5334. :append-to-body="true"
  5335. width="500px"
  5336. :before-close="handleClose"
  5337. class="dialog_diy"
  5338. >
  5339. <el-form>
  5340. <el-form-item label="文本标题">
  5341. <el-input
  5342. v-model="AttText.title"
  5343. auto-complete="off"
  5344. @input="change2"
  5345. placeholder="请输入文本标题..."
  5346. ></el-input>
  5347. </el-form-item>
  5348. <div>富文本内容</div>
  5349. <editor-bar
  5350. v-model="AttText.text"
  5351. @change="change"
  5352. v-if="dialogVisible6"
  5353. ></editor-bar>
  5354. </el-form>
  5355. <span slot="footer" class="dialog-footer">
  5356. <el-button @click="clearAttText">取 消</el-button>
  5357. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  5358. </span>
  5359. </el-dialog>
  5360. <el-dialog
  5361. title="添加链接"
  5362. :visible.sync="dialogVisible7"
  5363. :append-to-body="true"
  5364. width="500px"
  5365. :before-close="handleClose"
  5366. class="dialog_diy lineCss"
  5367. >
  5368. <el-form>
  5369. <el-form-item label="标题" :label-width="formLabelWidth">
  5370. <span>
  5371. <el-input
  5372. placeholder="请输入链接标题"
  5373. clearable
  5374. v-model="lineTitle"
  5375. class="add_input"
  5376. ></el-input>
  5377. </span>
  5378. </el-form-item>
  5379. <el-form-item label="链接" :label-width="formLabelWidth">
  5380. <span>
  5381. <el-input
  5382. placeholder="请输入链接"
  5383. clearable
  5384. v-model="line"
  5385. class="add_input"
  5386. ></el-input>
  5387. </span>
  5388. </el-form-item>
  5389. </el-form>
  5390. <span slot="footer" class="dialog-footer">
  5391. <el-button @click="clearLine">取 消</el-button>
  5392. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  5393. </span>
  5394. </el-dialog>
  5395. <el-dialog
  5396. title="添加资源"
  5397. :visible.sync="dialogVisibleSource"
  5398. :append-to-body="true"
  5399. width="100%"
  5400. :before-close="handleClose"
  5401. class="dialog_diy source_diy"
  5402. >
  5403. <div>
  5404. <sourceDialog :sourceData="sourceData"></sourceDialog>
  5405. </div>
  5406. <span slot="footer" class="dialog-footer">
  5407. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  5408. <el-button type="primary" @click="addSource">确定</el-button>
  5409. </span>
  5410. </el-dialog>
  5411. <el-dialog
  5412. title="添加课程成员"
  5413. :visible.sync="dialogVisible3"
  5414. :append-to-body="true"
  5415. width="25%"
  5416. height="80%"
  5417. :before-close="handleClose"
  5418. class="addNewPP customWidth"
  5419. >
  5420. <div class="people">
  5421. <div class="people_top">
  5422. <div class="people_nav">选择成员</div>
  5423. <div class="people_top_right">
  5424. <div class="people_search">
  5425. <el-input
  5426. style="height: 100%"
  5427. placeholder="搜索成员名称"
  5428. v-model="searchPeople"
  5429. ></el-input>
  5430. <div class="search_img" @click="searchStudent">
  5431. <img src="../../../assets/icon/search.png" alt />
  5432. </div>
  5433. </div>
  5434. </div>
  5435. </div>
  5436. <el-checkbox-group v-model="checkboxList" class="people_name">
  5437. <el-checkbox
  5438. v-for="item in studentJuri"
  5439. :key="item.userid"
  5440. :label="item.userid"
  5441. >{{ item.name ? item.name : "暂无学生可选" }}</el-checkbox
  5442. >
  5443. </el-checkbox-group>
  5444. </div>
  5445. <span slot="footer" class="dialog-footer">
  5446. <el-button @click="dialogVisible3 = false">取 消</el-button>
  5447. <el-button type="primary" @click="isAddPP">确定</el-button>
  5448. </span>
  5449. </el-dialog>
  5450. <el-dialog
  5451. title="添加班级"
  5452. :visible.sync="dialogVisibleClass"
  5453. :append-to-body="true"
  5454. width="400px"
  5455. height="80%"
  5456. :before-close="handleClose"
  5457. class="addNewPP"
  5458. >
  5459. <div class="people" style="height: 300px">
  5460. <div class="people_top">
  5461. <div class="people_top_right">
  5462. <div class="people_search">
  5463. <el-input
  5464. placeholder="搜索班级名称"
  5465. v-model="classSearch"
  5466. @input="getClass()"
  5467. ></el-input>
  5468. <!-- @click="getClass()"
  5469. @keyup.enter.native="getClass()"
  5470. -->
  5471. <div class="search_img">
  5472. <img src="../../../assets/icon/search.png" alt />
  5473. </div>
  5474. </div>
  5475. </div>
  5476. <div class="people_nav">选择班级</div>
  5477. </div>
  5478. <el-checkbox-group
  5479. v-model="checkboxList2"
  5480. class="people_name people_name2"
  5481. @change="InviteChange"
  5482. >
  5483. <div v-for="item in grade2" :key="item.id" class="p_box">
  5484. <el-checkbox :label="item.id">
  5485. {{ item.name }}
  5486. </el-checkbox>
  5487. <!-- <div class="inviteCode" :class="{ noneInvite: !isInvite(item.id) }" v-if="isInvite(item.id)">
  5488. 邀请码:{{ getInviteCodeC(item.id) }}</div> -->
  5489. <!-- <div class="inviteCode" :class="{ noneInvite: !isInvite(item.id) }" v-if="checkboxList2.indexOf(item.id) != -1"
  5490. @click="OpenInviteD(item.id)">随机码设置</div>
  5491. <img src="../../../assets/icon/rightInvite.png" class="inviteImg" v-if="isInvite(item.id)" /> -->
  5492. </div>
  5493. </el-checkbox-group>
  5494. </div>
  5495. <span slot="footer" class="dialog-footer">
  5496. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  5497. <el-button type="primary" @click="isAddClass">确定</el-button>
  5498. </span>
  5499. </el-dialog>
  5500. <el-dialog
  5501. title="添加协同成员"
  5502. :visible.sync="dialogVisibleMember"
  5503. :append-to-body="true"
  5504. width="25%"
  5505. height="80%"
  5506. :before-close="handleClose"
  5507. class="addNewPP customWidth"
  5508. >
  5509. <div class="people">
  5510. <div class="people_top">
  5511. <div class="people_top_right">
  5512. <div class="people_search">
  5513. <el-input
  5514. placeholder="搜索成员名称"
  5515. v-model="searchTN"
  5516. @keyup.enter.native="getTeacher"
  5517. ></el-input>
  5518. <div class="search_img" @click="getTeacher">
  5519. <img src="../../../assets/icon/search.png" alt />
  5520. </div>
  5521. </div>
  5522. </div>
  5523. <div class="people_nav">选择成员</div>
  5524. </div>
  5525. <el-checkbox-group
  5526. v-model="checkboxList3"
  5527. class="people_name"
  5528. v-if="teacherJuri.length"
  5529. >
  5530. <el-checkbox
  5531. v-for="item in teacherJuri"
  5532. :key="item.userid"
  5533. :label="item.userid"
  5534. >
  5535. <div class="t_j_box">
  5536. <el-tooltip
  5537. placement="top"
  5538. :content="item.name ? item.name : '暂无姓名'"
  5539. >
  5540. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  5541. </el-tooltip>
  5542. <el-tooltip placement="top" :content="item.username">
  5543. <span>{{ item.username }}</span>
  5544. </el-tooltip>
  5545. <el-tooltip placement="top" :content="item.school">
  5546. <span>{{ item.school }}</span>
  5547. </el-tooltip>
  5548. </div>
  5549. </el-checkbox>
  5550. </el-checkbox-group>
  5551. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  5552. </div>
  5553. <span slot="footer" class="dialog-footer">
  5554. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  5555. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  5556. </span>
  5557. </el-dialog>
  5558. <el-dialog
  5559. title="创建问卷"
  5560. :visible.sync="dialogVisible5"
  5561. :append-to-body="true"
  5562. width="800px"
  5563. :before-close="handleClose"
  5564. class="dialog_diy"
  5565. >
  5566. <div>
  5567. <div
  5568. class="a_add_title"
  5569. style="
  5570. display: flex;
  5571. flex-direction: row;
  5572. align-items: center;
  5573. justify-content: center;
  5574. "
  5575. >
  5576. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  5577. <el-input
  5578. v-model="askJson.askTitle"
  5579. placeholder="请输入标题"
  5580. style="width: 400px"
  5581. ></el-input>
  5582. </div>
  5583. <div class="a_addBox">
  5584. <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div>
  5585. <div
  5586. class="a_add_box"
  5587. v-for="(item1, index1) in askJson.askCount"
  5588. :key="index1"
  5589. >
  5590. <div class="a_add_checkType">
  5591. <span
  5592. :class="{
  5593. active:
  5594. askJson.askJson[index1].type == '1' ||
  5595. !askJson.askJson[index1].type,
  5596. }"
  5597. @click="checkAskType('1', askJson.askJson[index1])"
  5598. >单选题</span
  5599. >
  5600. <span
  5601. :class="{ active: askJson.askJson[index1].type == '2' }"
  5602. @click="checkAskType('2', askJson.askJson[index1])"
  5603. >多选题</span
  5604. >
  5605. </div>
  5606. <div class="a_add_head">
  5607. <div>
  5608. {{ index1 + 1 + "、" }}
  5609. <el-input
  5610. class="a_add_head_input"
  5611. v-model="askJson.askJson[index1].askstitle"
  5612. placeholder="请输入题目..."
  5613. >
  5614. </el-input>
  5615. </div>
  5616. <div class="a_add_head_div">
  5617. <el-button type="primary" size="small" @click="addAskList()"
  5618. >添加</el-button
  5619. >
  5620. <el-button
  5621. type="primary"
  5622. size="small"
  5623. @click="deleteAskList(index1)"
  5624. v-if="askJson.askCount != 1"
  5625. >删除
  5626. </el-button>
  5627. </div>
  5628. </div>
  5629. <div class="a_add_body">
  5630. <div class="a_add_input">
  5631. <el-input
  5632. v-for="(item2, checkIndex) in askJson.askJson[index1].askItem"
  5633. :key="checkIndex"
  5634. v-model="askJson.askJson[index1].checkList[checkIndex]"
  5635. placeholder="请输入选项..."
  5636. style="width: 150px; margin: 10px 10px 0 0"
  5637. ></el-input>
  5638. </div>
  5639. <div class="a_add_body_div">
  5640. <el-button
  5641. style="margin: 10px 0px 0 0"
  5642. type="primary"
  5643. size="small"
  5644. @click="addcheckList(askJson.askJson[index1])"
  5645. >添加</el-button
  5646. >
  5647. <el-button
  5648. type="primary"
  5649. size="small"
  5650. style="margin: 10px 0 0 10px"
  5651. @click="deletecheckList(askJson.askJson[index1])"
  5652. v-if="askJson.askJson[index1].askItem != 1"
  5653. >删除
  5654. </el-button>
  5655. </div>
  5656. </div>
  5657. </div>
  5658. </div>
  5659. </div>
  5660. <span slot="footer" class="dialog-footer">
  5661. <el-button @click="dialogVisible5 = false">取 消</el-button>
  5662. <el-button type="primary" @click="addAsk">确 定</el-button>
  5663. </span>
  5664. </el-dialog>
  5665. <el-dialog
  5666. title="创建选择题"
  5667. :visible.sync="dialogVisibleChoice"
  5668. :append-to-body="true"
  5669. width="800px"
  5670. :before-close="handleClose"
  5671. class="dialog_diy"
  5672. >
  5673. <div>
  5674. <!-- <div class="a_add_title" style="
  5675. display: flex;
  5676. flex-direction: row;
  5677. align-items: center;
  5678. justify-content: center;
  5679. ">
  5680. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  5681. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  5682. </div> -->
  5683. <div class="a_addBox">
  5684. <div style="font-size: 16px; color: #c7c7c7">
  5685. 请输入题目内容
  5686. <el-button
  5687. type="primary"
  5688. size="small"
  5689. @click="pasteOption"
  5690. style="margin-left: 10px"
  5691. >智能粘贴</el-button
  5692. >
  5693. </div>
  5694. <div
  5695. class="a_add_box"
  5696. v-for="(item1, index1) in testJson.testCount"
  5697. :key="index1"
  5698. >
  5699. <div class="a_add_checkType">
  5700. <span
  5701. :class="{ active: testJson.testJson[index1].type == '1' }"
  5702. @click="checkTestType('1', testJson.testJson[index1])"
  5703. >单选题</span
  5704. >
  5705. <span
  5706. :class="{ active: testJson.testJson[index1].type == '2' }"
  5707. @click="checkTestType('2', testJson.testJson[index1])"
  5708. >多选题</span
  5709. >
  5710. </div>
  5711. <div class="a_add_head">
  5712. <div class="timuUpImg">
  5713. <div>
  5714. {{ index1 + 1 + "、" }}
  5715. <el-input
  5716. class="a_add_head_input"
  5717. v-model="testJson.testJson[index1].teststitle"
  5718. placeholder="请输入题目..."
  5719. >
  5720. </el-input>
  5721. </div>
  5722. <div class="xzUpImg" @click.stop="addImg($event)">
  5723. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  5724. <input
  5725. type="file"
  5726. accept="image/*"
  5727. style="display: none"
  5728. @change="beforeUploadTiMu($event, index1)"
  5729. />
  5730. </div>
  5731. </div>
  5732. <div class="a_add_head_div">
  5733. <el-button type="primary" size="small" @click="addTestList()"
  5734. >添加</el-button
  5735. >
  5736. <el-button
  5737. type="primary"
  5738. size="small"
  5739. @click="deleteTestList(index1)"
  5740. v-if="testJson.testCount != 1"
  5741. >删除
  5742. </el-button>
  5743. </div>
  5744. </div>
  5745. <div
  5746. class="timuImgBox"
  5747. v-if="
  5748. testJson.testJson[index1].timuList &&
  5749. testJson.testJson[index1].timuList.length
  5750. "
  5751. >
  5752. <div
  5753. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  5754. :key="tIndex"
  5755. class="timuImg"
  5756. @click.stop="previewImg(timg.src)"
  5757. >
  5758. <img :src="timg.src" alt="" />
  5759. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  5760. <img src="../../../assets/icon/delete.png" alt="" />
  5761. </div>
  5762. </div>
  5763. </div>
  5764. <div class="a_add_body">
  5765. <div class="a_add_input a_add_input_choice">
  5766. <el-radio-group
  5767. v-model="testJson.testJson[index1].answer"
  5768. v-if="testJson.testJson[index1].type == 1"
  5769. >
  5770. <div class="radioBox">
  5771. <el-radio
  5772. v-for="(item2, checkIndex) in testJson.testJson[index1]
  5773. .testItem"
  5774. :key="checkIndex"
  5775. :label="checkIndex"
  5776. >
  5777. <div style="margin-right: 10px">
  5778. 选项{{ checkIndex + 1 }}
  5779. </div>
  5780. <div
  5781. style="margin-right: 10px; width: 300px"
  5782. v-if="
  5783. testJson.testJson[index1].checkList[checkIndex] &&
  5784. testJson.testJson[index1].checkList[checkIndex]
  5785. .imgType &&
  5786. testJson.testJson[index1].checkList[checkIndex]
  5787. .imgType == 1
  5788. "
  5789. >
  5790. <div
  5791. class="inImg"
  5792. @click.stop="
  5793. previewImg(
  5794. testJson.testJson[index1].checkList[checkIndex]
  5795. .src
  5796. )
  5797. "
  5798. >
  5799. <el-image
  5800. :src="
  5801. testJson.testJson[index1].checkList[checkIndex]
  5802. .src
  5803. "
  5804. lazy
  5805. />
  5806. <!-- <img :src="
  5807. testJson.testJson[index1].checkList[checkIndex]
  5808. .src
  5809. " alt="" /> -->
  5810. </div>
  5811. </div>
  5812. <el-input
  5813. v-else
  5814. v-model="
  5815. testJson.testJson[index1].checkList[checkIndex]
  5816. "
  5817. placeholder="请输入选项..."
  5818. style="width: 300px; margin-right: 10px"
  5819. ></el-input>
  5820. <div class="xzUpImg" @click.stop="addImg($event)">
  5821. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  5822. <input
  5823. type="file"
  5824. accept="image/*"
  5825. style="display: none"
  5826. @change="beforeUploadTi($event, index1, checkIndex)"
  5827. />
  5828. </div>
  5829. </el-radio>
  5830. </div>
  5831. </el-radio-group>
  5832. <el-checkbox-group
  5833. v-model="testJson.testJson[index1].answer"
  5834. v-if="testJson.testJson[index1].type == '2'"
  5835. >
  5836. <div class="radioBox">
  5837. <el-checkbox
  5838. v-for="(item2, checkIndex1) in testJson.testJson[index1]
  5839. .testItem"
  5840. :key="checkIndex1"
  5841. :label="checkIndex1"
  5842. >
  5843. <div style="margin-right: 10px">
  5844. 选项{{ checkIndex1 + 1 }}
  5845. </div>
  5846. <div
  5847. style="margin-right: 10px; width: 300px"
  5848. v-if="
  5849. testJson.testJson[index1].checkList[checkIndex1] &&
  5850. testJson.testJson[index1].checkList[checkIndex1]
  5851. .imgType &&
  5852. testJson.testJson[index1].checkList[checkIndex1]
  5853. .imgType == 1
  5854. "
  5855. >
  5856. <div
  5857. class="inImg"
  5858. @click.stop="
  5859. previewImg(
  5860. testJson.testJson[index1].checkList[checkIndex1]
  5861. .src
  5862. )
  5863. "
  5864. >
  5865. <el-image
  5866. :src="
  5867. testJson.testJson[index1].checkList[checkIndex1]
  5868. .src
  5869. "
  5870. lazy
  5871. />
  5872. <!-- <img :src="
  5873. testJson.testJson[index1].checkList[checkIndex1]
  5874. .src
  5875. " alt="" /> -->
  5876. </div>
  5877. </div>
  5878. <el-input
  5879. v-else
  5880. v-model="
  5881. testJson.testJson[index1].checkList[checkIndex1]
  5882. "
  5883. placeholder="请输入选项..."
  5884. style="width: 300px; margin-right: 10px"
  5885. ></el-input>
  5886. <div class="xzUpImg" @click.stop="addImg($event)">
  5887. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  5888. <input
  5889. type="file"
  5890. accept="image/*"
  5891. style="display: none"
  5892. @change="beforeUploadTi($event, index1, checkIndex1)"
  5893. />
  5894. </div>
  5895. </el-checkbox>
  5896. </div>
  5897. </el-checkbox-group>
  5898. </div>
  5899. <div class="a_add_body_div" style="margin-bottom: 3px">
  5900. <el-button
  5901. type="primary"
  5902. size="small"
  5903. @click="addTcheckList(testJson.testJson[index1])"
  5904. >添加</el-button
  5905. >
  5906. <el-button
  5907. type="primary"
  5908. size="small"
  5909. @click="deleteTcheckList(testJson.testJson[index1])"
  5910. v-if="testJson.testJson[index1].testItem != 1"
  5911. >删除
  5912. </el-button>
  5913. </div>
  5914. </div>
  5915. </div>
  5916. </div>
  5917. </div>
  5918. <span slot="footer" class="dialog-footer">
  5919. <el-button @click="dialogVisibleChoice = false">取 消</el-button>
  5920. <el-button type="primary" @click="addTest">确 定</el-button>
  5921. </span>
  5922. </el-dialog>
  5923. <el-dialog
  5924. title="添加工具"
  5925. :visible.sync="dialogVisible4"
  5926. :append-to-body="true"
  5927. width="600px"
  5928. :before-close="handleClose"
  5929. class="dialog_diy addToolsDia"
  5930. >
  5931. <div class="toolChoose" style="padding: 0 0 0 30px">
  5932. <div class="tools">
  5933. <div
  5934. class="leftTools"
  5935. style="
  5936. width: 95%;
  5937. padding: 0 0 15px 0;
  5938. border-bottom: 1px solid #efefef;
  5939. margin-bottom: 15px;
  5940. "
  5941. v-for="(itemTools, itemToolsIndex) in chapTools"
  5942. :key="itemToolsIndex"
  5943. >
  5944. <div
  5945. style="
  5946. display: flex;
  5947. flex-direction: row;
  5948. align-items: baseline;
  5949. flex-wrap: nowrap;
  5950. justify-content: flex-start;
  5951. position: relative;
  5952. "
  5953. >
  5954. <div class="chooseWho">
  5955. <div
  5956. :class="chapToolsType == 0 ? 'isChooseActive' : ''"
  5957. @click="chapToolsType = 0"
  5958. >
  5959. 互动类
  5960. </div>
  5961. <div
  5962. :class="chapToolsType == 1 ? 'isChooseActive' : ''"
  5963. @click="chapToolsType = 1"
  5964. >
  5965. 思维类
  5966. </div>
  5967. <div
  5968. :class="chapToolsType == 2 ? 'isChooseActive' : ''"
  5969. @click="chapToolsType = 2"
  5970. >
  5971. 评价类
  5972. </div>
  5973. <div
  5974. :class="chapToolsType == 2 ? 'isChooseActive' : ''"
  5975. @click="chapToolsType = 2"
  5976. >
  5977. 其他
  5978. </div>
  5979. </div>
  5980. </div>
  5981. <div style="min-height: 163px">
  5982. <div class="toolSort" v-if="chapToolsType == 0">
  5983. <div class="tool">
  5984. <div class="whiteBIcon" @click="chapAddTools(8)">
  5985. <img
  5986. src="../../../assets/icon/secondToolList/library.png"
  5987. alt
  5988. />
  5989. <div style="margin: 5px 0">素材库</div>
  5990. </div>
  5991. <div class="check" @click="chapAddTools(8)">
  5992. <img
  5993. src="../../../assets/icon/checkNo.png"
  5994. alt
  5995. v-if="itemTools.tools.indexOf(8) == -1"
  5996. />
  5997. <div class="checkDiv" v-else>
  5998. <img src="../../../assets/icon/checkedIs.png" alt /><span
  5999. >已选择</span
  6000. >
  6001. </div>
  6002. </div>
  6003. </div>
  6004. </div>
  6005. <div class="toolSort" v-if="chapToolsType == 1">
  6006. <div class="tool">
  6007. <div class="whiteBIcon" @click="chapAddTools(7)">
  6008. <img
  6009. src="../../../assets/icon/secondToolList/mindNetwork.png"
  6010. alt
  6011. />
  6012. <div style="margin: 5px 0">思维网格</div>
  6013. </div>
  6014. <div class="check" @click="chapAddTools(7)">
  6015. <img
  6016. src="../../../assets/icon/checkNo.png"
  6017. alt
  6018. v-if="itemTools.tools.indexOf(7) == -1"
  6019. />
  6020. <div class="checkDiv" v-else>
  6021. <img src="../../../assets/icon/checkedIs.png" alt /><span
  6022. >已选择</span
  6023. >
  6024. </div>
  6025. </div>
  6026. </div>
  6027. <div class="tool">
  6028. <div class="whiteBIcon" @click="chapAddTools(1)">
  6029. <img
  6030. src="../../../assets/icon/secondToolList/whiteBoard.png"
  6031. alt
  6032. />
  6033. <div style="margin: 5px 0">电子白板</div>
  6034. </div>
  6035. <div class="check" @click="chapAddTools(1)">
  6036. <img
  6037. src="../../../assets/icon/checkNo.png"
  6038. alt
  6039. v-if="itemTools.tools.indexOf(1) == -1"
  6040. />
  6041. <div class="checkDiv" v-else>
  6042. <img src="../../../assets/icon/checkedIs.png" alt /><span
  6043. >已选择</span
  6044. >
  6045. </div>
  6046. </div>
  6047. </div>
  6048. <div class="tool">
  6049. <div class="whiteBIcon" @click="chapAddTools(2)">
  6050. <img
  6051. src="../../../assets/icon/secondToolList/note.png"
  6052. alt
  6053. />
  6054. <div style="margin: 5px 0">便签</div>
  6055. </div>
  6056. <div class="check" @click="chapAddTools(2)">
  6057. <img
  6058. src="../../../assets/icon/checkNo.png"
  6059. alt
  6060. v-if="itemTools.tools.indexOf(2) == -1"
  6061. />
  6062. <div class="checkDiv" v-else>
  6063. <img src="../../../assets/icon/checkedIs.png" alt /><span
  6064. >已选择</span
  6065. >
  6066. </div>
  6067. </div>
  6068. </div>
  6069. <div class="tool">
  6070. <div class="whiteBIcon" @click="chapAddTools(6)">
  6071. <img
  6072. src="../../../assets/icon/secondToolList/doc.png"
  6073. alt
  6074. />
  6075. <div style="margin: 5px 0">协同文档</div>
  6076. </div>
  6077. <div class="check" @click="chapAddTools(6)">
  6078. <img
  6079. src="../../../assets/icon/checkNo.png"
  6080. alt
  6081. v-if="itemTools.tools.indexOf(6) == -1"
  6082. />
  6083. <div class="checkDiv" v-else>
  6084. <img src="../../../assets/icon/checkedIs.png" alt /><span
  6085. >已选择</span
  6086. >
  6087. </div>
  6088. </div>
  6089. </div>
  6090. <div class="tool">
  6091. <div class="whiteBIcon" @click="chapAddTools(3)">
  6092. <img
  6093. src="../../../assets/icon/secondToolList/mindMapping.png"
  6094. alt
  6095. />
  6096. <div style="margin: 5px 0">思维导图</div>
  6097. </div>
  6098. <div class="check" @click="chapAddTools(3)">
  6099. <img
  6100. src="../../../assets/icon/checkNo.png"
  6101. alt
  6102. v-if="itemTools.tools.indexOf(3) == -1"
  6103. />
  6104. <div class="checkDiv" v-else>
  6105. <img src="../../../assets/icon/checkedIs.png" alt /><span
  6106. >已选择</span
  6107. >
  6108. </div>
  6109. </div>
  6110. </div>
  6111. <div class="tool">
  6112. <div class="whiteBIcon" @click="chapAddTools(31)">
  6113. <img
  6114. src="../../../assets/icon/secondToolList/networkPanel.png"
  6115. alt
  6116. />
  6117. <div style="margin: 5px 0">数学画板</div>
  6118. </div>
  6119. <div class="check" @click="chapAddTools(31)">
  6120. <img
  6121. src="../../../assets/icon/checkNo.png"
  6122. alt
  6123. v-if="itemTools.tools.indexOf(31) == -1"
  6124. />
  6125. <div class="checkDiv" v-else>
  6126. <img src="../../../assets/icon/checkedIs.png" alt /><span
  6127. >已选择</span
  6128. >
  6129. </div>
  6130. </div>
  6131. </div>
  6132. </div>
  6133. <div class="toolSort" v-if="chapToolsType == 2">
  6134. <div class="tool">
  6135. <div class="whiteBIcon" @click="chapAddTools(5)">
  6136. <img
  6137. src="../../../assets/icon/thirdToolList/score.png"
  6138. alt
  6139. />
  6140. <div style="margin: 5px 0">量规评分</div>
  6141. </div>
  6142. <div class="check" @click="chapAddTools(5)">
  6143. <img
  6144. src="../../../assets/icon/checkNo.png"
  6145. alt
  6146. v-if="itemTools.tools.indexOf(5) == -1"
  6147. />
  6148. <div class="checkDiv" v-else>
  6149. <img src="../../../assets/icon/checkedIs.png" alt /><span
  6150. >已选择</span
  6151. >
  6152. </div>
  6153. </div>
  6154. </div>
  6155. <div class="tool">
  6156. <div
  6157. class="whiteBIcon"
  6158. @click="openTools(chapCount, 4, null)"
  6159. >
  6160. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  6161. <div style="margin: 5px 0">问卷调查</div>
  6162. </div>
  6163. <div class="check" @click="chapAddTools(4)">
  6164. <img
  6165. src="../../../assets/icon/checkNo.png"
  6166. alt
  6167. v-if="itemTools.tools.indexOf(4) == -1"
  6168. />
  6169. <div class="checkDiv" v-else>
  6170. <img src="../../../assets/icon/checkedIs.png" alt /><span
  6171. >已选择</span
  6172. >
  6173. </div>
  6174. </div>
  6175. </div>
  6176. </div>
  6177. </div>
  6178. <div>
  6179. <input
  6180. type="text"
  6181. placeholder="添加工具描述"
  6182. class="binfo_input"
  6183. style="margin: 20px 0; width: 71.5% !important"
  6184. v-model="itemTools.toolDetail"
  6185. />
  6186. </div>
  6187. </div>
  6188. </div>
  6189. </div>
  6190. <span slot="footer" class="dialog-footer">
  6191. <el-button @click="dialogVisible4 = false">取 消</el-button>
  6192. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  6193. </span>
  6194. </el-dialog>
  6195. <el-dialog
  6196. title="添加问答"
  6197. :visible.sync="dialogVisible8"
  6198. :append-to-body="true"
  6199. width="500px"
  6200. :before-close="handleClose"
  6201. class="dialog_diy"
  6202. >
  6203. <div>
  6204. <div
  6205. class="a_add_title"
  6206. style="
  6207. display: flex;
  6208. flex-direction: column;
  6209. align-items: flex-start;
  6210. justify-content: center;
  6211. "
  6212. >
  6213. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  6214. <el-input
  6215. v-model="answerQ"
  6216. placeholder="请输入您要问的问题"
  6217. ></el-input>
  6218. </div>
  6219. </div>
  6220. <span slot="footer" class="dialog-footer">
  6221. <el-button @click="dialogVisible8 = false">取 消</el-button>
  6222. <el-button type="primary" @click="addAnswer">确 定</el-button>
  6223. </span>
  6224. </el-dialog>
  6225. <el-dialog
  6226. title="添加问题"
  6227. :visible.sync="dialogVisibleMp3"
  6228. :append-to-body="true"
  6229. width="500px"
  6230. :before-close="handleClose"
  6231. class="dialog_diy"
  6232. >
  6233. <div>
  6234. <div
  6235. class="a_add_title"
  6236. style="
  6237. display: flex;
  6238. flex-direction: column;
  6239. align-items: flex-start;
  6240. justify-content: center;
  6241. "
  6242. >
  6243. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  6244. <el-input
  6245. v-model="answerQ"
  6246. placeholder="请输入您想要回答的问题"
  6247. ></el-input>
  6248. </div>
  6249. </div>
  6250. <span slot="footer" class="dialog-footer">
  6251. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  6252. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  6253. </span>
  6254. </el-dialog>
  6255. <el-dialog
  6256. title="上传图片"
  6257. :visible.sync="choosePicVisible"
  6258. :append-to-body="true"
  6259. width="500px"
  6260. :before-close="handleClose"
  6261. class="dialog_diy"
  6262. >
  6263. <div>
  6264. <div class="fileCss" style="padding-top: 20px">
  6265. <div>
  6266. <button class="info_btn" @click="addImg($event)">
  6267. 选择本地文件
  6268. <input
  6269. type="file"
  6270. accept="image/*"
  6271. style="display: none"
  6272. @change="beforeUpload1"
  6273. />
  6274. </button>
  6275. </div>
  6276. <div>
  6277. <el-button
  6278. @click="getAllBanner"
  6279. v-if="isSysPic == false && cover.length == 0"
  6280. >选择系统文件</el-button
  6281. >
  6282. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  6283. <img :src="cover[0].url" alt="" />
  6284. <div class="deletePic" @click="deleteSysPic">
  6285. <img src="../../../assets/icon/delete.png" alt="" />
  6286. </div>
  6287. </div>
  6288. </div>
  6289. </div>
  6290. <div class="fileCss">
  6291. <div>选择本地文件</div>
  6292. <div>选择系统文件</div>
  6293. </div>
  6294. </div>
  6295. <span slot="footer" class="dialog-footer">
  6296. <el-button @click="choosePicVisible = false">取 消</el-button>
  6297. <el-button type="primary" @click="choosePicVisible = false"
  6298. >确 定</el-button
  6299. >
  6300. </span>
  6301. </el-dialog>
  6302. <el-dialog
  6303. title="选择系统文件"
  6304. :visible.sync="sysPicVisible"
  6305. :append-to-body="true"
  6306. width="710px"
  6307. :before-close="handleClose"
  6308. class="dialog_diy"
  6309. >
  6310. <div class="cru_selectBox" style="margin: 0">
  6311. <div
  6312. @click="getChoosePic(1)"
  6313. class="cru_select"
  6314. :class="chooseType == 1 ? 'cru_selected' : ''"
  6315. >
  6316. 绘画
  6317. </div>
  6318. <div
  6319. @click="getChoosePic(2)"
  6320. class="cru_select"
  6321. :class="chooseType == 2 ? 'cru_selected' : ''"
  6322. >
  6323. 科技
  6324. </div>
  6325. <div
  6326. @click="getChoosePic(3)"
  6327. class="cru_select"
  6328. :class="chooseType == 3 ? 'cru_selected' : ''"
  6329. >
  6330. 人文
  6331. </div>
  6332. <div
  6333. @click="getChoosePic(4)"
  6334. class="cru_select"
  6335. :class="chooseType == 4 ? 'cru_selected' : ''"
  6336. >
  6337. 艺术
  6338. </div>
  6339. </div>
  6340. <div class="sysPicBox">
  6341. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  6342. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  6343. </div>
  6344. </div>
  6345. <span slot="footer" class="dialog-footer">
  6346. <el-button @click="sysPicVisible = false">取 消</el-button>
  6347. <el-button type="primary">确 定</el-button>
  6348. </span>
  6349. </el-dialog>
  6350. <el-dialog
  6351. title="选择填空"
  6352. :visible.sync="dialogVisibleSelect"
  6353. :append-to-body="true"
  6354. width="800px"
  6355. :before-close="handleClose"
  6356. class="dialog_diy dialog_diy3"
  6357. >
  6358. <div v-if="selectJson">
  6359. <div class="select_box1" v-if="selectSteps == 1">
  6360. <div class="select_box1_img">
  6361. <div class="select_box1_title">
  6362. <span>上传题目图片</span
  6363. ><span>提示:请将题目以图片的方式上传</span>
  6364. </div>
  6365. <div class="select_box1_add_img">
  6366. <div
  6367. class="uploadFm"
  6368. @click="addImg($event)"
  6369. v-if="!selectJson.url"
  6370. >
  6371. <input
  6372. type="file"
  6373. accept="image/*"
  6374. style="display: none"
  6375. @change="beforeUploadSelect"
  6376. />
  6377. <img src="../../../assets/icon/addPoster.png" alt="" />
  6378. </div>
  6379. <div class="isSysPic" v-else>
  6380. <img :src="selectJson.url" alt="" />
  6381. <div class="deletePic" @click="deleteSelectPic">
  6382. <img src="../../../assets/icon/delete.png" alt="" />
  6383. </div>
  6384. </div>
  6385. </div>
  6386. </div>
  6387. <div class="select_box1_select">
  6388. <div class="select_box1_title">
  6389. <span>添加选项</span><span>提示:请输入题目选项</span>
  6390. </div>
  6391. <div class="select_box1_select_box">
  6392. <el-input
  6393. v-for="(item2, checkIndex) in selectJson.select"
  6394. :key="checkIndex"
  6395. v-model="selectJson.select[checkIndex]"
  6396. placeholder="请输入选项..."
  6397. style="width: 150px; margin: 10px 10px 0 0"
  6398. ></el-input>
  6399. <div class="select_box1_select_box_add">
  6400. <el-button
  6401. style="margin: 10px 0px 0 0"
  6402. type="primary"
  6403. size="small"
  6404. @click="addSelectList(selectJson)"
  6405. >
  6406. 添加</el-button
  6407. >
  6408. <el-button
  6409. type="primary"
  6410. size="small"
  6411. style="margin: 10px 0 0 0"
  6412. @click="deleteSelectList(selectJson)"
  6413. v-if="selectJson.select && selectJson.select.length > 0"
  6414. >删除</el-button
  6415. >
  6416. </div>
  6417. </div>
  6418. </div>
  6419. </div>
  6420. <div v-if="selectSteps == 2">
  6421. <div class="select_box2">
  6422. <div class="select_box2_title">设置答案</div>
  6423. <div class="select_box2_box">
  6424. <div class="select_box2_img">
  6425. <img :src="selectJson.url" alt="" />
  6426. </div>
  6427. <div class="select_box2_answer">
  6428. <div class="select_answer_title">根据题目选择对应答案</div>
  6429. <div
  6430. class="select_box2_answer_box"
  6431. v-for="(item2, checkIndex) in selectJson.select"
  6432. :key="checkIndex"
  6433. >
  6434. <span>{{ checkIndex + 1 }}、</span>
  6435. <el-select
  6436. v-model="selectJson.answer[checkIndex]"
  6437. placeholder="请选择正确答案"
  6438. >
  6439. <el-option
  6440. v-for="(e, eIndex) in selectJson.select"
  6441. :key="eIndex"
  6442. :label="e"
  6443. :value="eIndex"
  6444. >
  6445. </el-option>
  6446. </el-select>
  6447. </div>
  6448. </div>
  6449. </div>
  6450. </div>
  6451. </div>
  6452. </div>
  6453. <span slot="footer" class="dialog-footer">
  6454. <el-button
  6455. type="primary"
  6456. @click="nextSelectSteps()"
  6457. v-if="selectSteps == 1"
  6458. >下一步</el-button
  6459. >
  6460. <el-button @click="selectSteps--" v-if="selectSteps == 2"
  6461. >上一步</el-button
  6462. >
  6463. <el-button
  6464. type="primary"
  6465. @click="addSelectAnswer"
  6466. v-if="selectSteps == 2"
  6467. >确 定</el-button
  6468. >
  6469. </span>
  6470. </el-dialog>
  6471. <el-dialog
  6472. title="添加评价"
  6473. :visible.sync="dialogVisibleRate"
  6474. :append-to-body="true"
  6475. width="650px"
  6476. :before-close="handleClose"
  6477. class="dialog_diy"
  6478. >
  6479. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  6480. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  6481. <div class="pjCss" style="width: 100%">
  6482. <div
  6483. v-if="rateJson.length"
  6484. class="elist_input"
  6485. style="height: 360px; overflow: auto"
  6486. >
  6487. <div
  6488. v-for="(eItem, eIndex) in rateJson"
  6489. :key="eIndex"
  6490. class="elist_input_box"
  6491. >
  6492. <span style="min-width: 100px; text-align: right"
  6493. >个人评价指标:</span
  6494. >
  6495. <input
  6496. type="input"
  6497. v-model="eItem.value"
  6498. placeholder="填写评价名称"
  6499. />
  6500. <div class="remove" @click="deletRateList(eIndex)"></div>
  6501. <div style="width: 100%; display: flex">
  6502. <span style="min-width: 100px; text-align: right"
  6503. >评星等级:</span
  6504. >
  6505. <el-rate v-model="eItem.score" disabled></el-rate>
  6506. </div>
  6507. <div class="elist_inptu_text" style="align-items: flex-start">
  6508. <span style="min-width: 100px; text-align: right">描述:</span>
  6509. <textarea
  6510. class="rate_textarea"
  6511. :rows="3"
  6512. v-model="eItem.detail"
  6513. placeholder="填写评价描述"
  6514. ></textarea>
  6515. </div>
  6516. </div>
  6517. </div>
  6518. <div class="addToolFun" @click="addRateList()">
  6519. <div class="addToolImg">
  6520. <img src="../../../assets/icon/add.png" alt />
  6521. </div>
  6522. <div>添加</div>
  6523. </div>
  6524. </div>
  6525. </div>
  6526. <span slot="footer" class="dialog-footer">
  6527. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  6528. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  6529. </span>
  6530. </el-dialog>
  6531. <el-dialog
  6532. title="连词成句设置"
  6533. :visible.sync="dialogVisibleSentence"
  6534. :append-to-body="true"
  6535. width="1000px"
  6536. :before-close="handleClose"
  6537. class="dialog_diy dialog_diy3"
  6538. >
  6539. <div>
  6540. <div class="sentenBox">
  6541. <div class="addSen" @click="addSt">添加题目</div>
  6542. <div
  6543. v-for="(st, stIndex) in sentenceList"
  6544. :key="stIndex"
  6545. style="padding-bottom: 20px"
  6546. >
  6547. <div class="sentenTopBox">
  6548. <div class="sentenTop">
  6549. <div>题目设置</div>
  6550. <div>
  6551. <el-input
  6552. placeholder="请输入卡片内容"
  6553. v-model="st.sentenceTitle"
  6554. ></el-input>
  6555. </div>
  6556. <div @click="addSen(stIndex)">添加</div>
  6557. </div>
  6558. <div
  6559. class="remove1"
  6560. v-if="sentenceList.length > 1"
  6561. @click="deleteSentence(stIndex)"
  6562. ></div>
  6563. </div>
  6564. <div class="cardList">
  6565. <div v-if="st.addSentence.length > 0" class="cardBox">
  6566. <div
  6567. class="isCard"
  6568. v-for="(s, sIndex) in st.addSentence"
  6569. :key="sIndex"
  6570. @click="setRightAnswer(s, stIndex, sIndex)"
  6571. >
  6572. <el-tooltip
  6573. class="item"
  6574. effect="light"
  6575. :content="s"
  6576. placement="top"
  6577. >
  6578. <div>{{ s }}</div>
  6579. </el-tooltip>
  6580. <div
  6581. class="deleteWord"
  6582. @click.stop="deleteS(s, stIndex, sIndex)"
  6583. >
  6584. <img src="../../../assets/icon/delete.png" alt="" />
  6585. </div>
  6586. </div>
  6587. </div>
  6588. <div class="card">
  6589. <img
  6590. src="../../../assets/icon/conSentences/noTitle.png"
  6591. alt=""
  6592. />
  6593. </div>
  6594. </div>
  6595. <div class="rightCardBox">
  6596. <div>正确顺序</div>
  6597. <div class="rightCardList">
  6598. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  6599. <div
  6600. v-for="(r, rIndex) in st.rightAnswer"
  6601. :key="rIndex"
  6602. class="cardCss"
  6603. >
  6604. <div
  6605. class="isCard1"
  6606. @click="returnCard(r, stIndex, rIndex)"
  6607. >
  6608. <el-tooltip
  6609. class="item"
  6610. effect="light"
  6611. :content="r"
  6612. placement="top"
  6613. >
  6614. <div>{{ r }}</div>
  6615. </el-tooltip>
  6616. </div>
  6617. <div>{{ rIndex + 1 }}</div>
  6618. </div>
  6619. </div>
  6620. <div class="card" v-if="st.rightAnswer.length == 0">
  6621. <img
  6622. src="../../../assets/icon/conSentences/noAnswer.png"
  6623. alt=""
  6624. />
  6625. </div>
  6626. </div>
  6627. </div>
  6628. </div>
  6629. </div>
  6630. </div>
  6631. <span slot="footer" class="dialog-footer">
  6632. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  6633. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  6634. </span>
  6635. </el-dialog>
  6636. <el-dialog
  6637. title="添加表格"
  6638. :visible.sync="dialogVisibleTable"
  6639. :append-to-body="true"
  6640. width="95%"
  6641. :before-close="handleClose"
  6642. class="dialog_diy"
  6643. >
  6644. <el-form>
  6645. <!-- <el-form-item label="文本标题">
  6646. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  6647. </el-form-item> -->
  6648. <div>表格内容</div>
  6649. <Table v-model="tableJson.text" @change="change"></Table>
  6650. </el-form>
  6651. <span slot="footer" class="dialog-footer">
  6652. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  6653. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  6654. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  6655. </span>
  6656. </el-dialog>
  6657. <el-dialog
  6658. title="添加文档"
  6659. :visible.sync="dialogVisibleWord"
  6660. :append-to-body="true"
  6661. width="800px"
  6662. :before-close="handleClose"
  6663. class="dialog_diy"
  6664. >
  6665. <el-form>
  6666. <!-- <el-form-item label="文本标题">
  6667. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  6668. </el-form-item> -->
  6669. <div>文档内容</div>
  6670. <editor-bar v-model="wordJson.text"></editor-bar>
  6671. </el-form>
  6672. <span slot="footer" class="dialog-footer">
  6673. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  6674. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  6675. </span>
  6676. </el-dialog>
  6677. <el-dialog
  6678. title="添加班级"
  6679. :visible.sync="dialogVisibleMoreUpload"
  6680. :append-to-body="true"
  6681. width="30%"
  6682. :before-close="handleClose"
  6683. class="dialog_diy"
  6684. >
  6685. <div
  6686. style="
  6687. width: 100%;
  6688. display: flex;
  6689. flex-direction: row;
  6690. flex-wrap: nowrap;
  6691. align-items: center;
  6692. justify-content: center;
  6693. "
  6694. >
  6695. <div>班级:</div>
  6696. <el-select multiple v-model="uploadJson" placeholder="请选择">
  6697. <el-option
  6698. v-for="item in classJuri"
  6699. :key="item.id"
  6700. :label="item.name"
  6701. :value="item.id"
  6702. >
  6703. </el-option>
  6704. </el-select>
  6705. </div>
  6706. <span slot="footer" class="dialog-footer">
  6707. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  6708. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  6709. </span>
  6710. </el-dialog>
  6711. <el-dialog
  6712. title="设置随机码"
  6713. :visible.sync="dialogVisibleInvite"
  6714. :append-to-body="true"
  6715. width="360px"
  6716. :before-close="handleClose"
  6717. class="dialog_diy"
  6718. >
  6719. <div
  6720. style="
  6721. width: 100%;
  6722. display: flex;
  6723. flex-direction: row;
  6724. flex-wrap: nowrap;
  6725. align-items: center;
  6726. justify-content: center;
  6727. "
  6728. >
  6729. <div>随机码:</div>
  6730. <el-input
  6731. v-model="icode"
  6732. style="width: 240px"
  6733. placeholder="请输入随机码"
  6734. ></el-input>
  6735. </div>
  6736. <span slot="footer" class="dialog-footer">
  6737. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  6738. <el-button type="primary" @click="addInvite">确定</el-button>
  6739. </span>
  6740. </el-dialog>
  6741. <el-dialog
  6742. title="添加预设时间"
  6743. :visible.sync="dialogVisiblePreTime"
  6744. :append-to-body="true"
  6745. width="30%"
  6746. :before-close="handleClose"
  6747. class="dialog_diy"
  6748. >
  6749. <div>
  6750. <Time
  6751. :preTime="preTime"
  6752. @updateTimeNum="updateTime"
  6753. v-if="dialogVisiblePreTime"
  6754. ></Time>
  6755. </div>
  6756. <span slot="footer" class="dialog-footer">
  6757. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  6758. <el-button type="primary" @click="addPreTime">确定</el-button>
  6759. </span>
  6760. </el-dialog>
  6761. <el-dialog
  6762. title="导入目标"
  6763. :visible.sync="dialogVisiblemb"
  6764. :append-to-body="true"
  6765. width="70%"
  6766. :before-close="handleClose"
  6767. class="dialog_diy"
  6768. >
  6769. <div>
  6770. <div
  6771. style="
  6772. width: 100%;
  6773. display: flex;
  6774. flex-direction: row;
  6775. flex-wrap: nowrap;
  6776. align-content: center;
  6777. align-items: center;
  6778. justify-content: space-between;
  6779. "
  6780. >
  6781. <div
  6782. style="
  6783. display: flex;
  6784. flex-flow: row nowrap;
  6785. align-items: flex-start;
  6786. width: 100%;
  6787. flex-direction: column;
  6788. flex-wrap: nowrap;
  6789. position: relative;
  6790. "
  6791. >
  6792. <div class="e_box">
  6793. <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  6794. <div class="e_card_picture">
  6795. <img src="../../../assets/e_picture.png" />
  6796. </div>
  6797. <div class="e_card_name">
  6798. <span>{{ item.title }}</span>
  6799. </div>
  6800. <div class="e_card_btn">
  6801. <span @click="checkEva(item.id, 2)">导入</span>
  6802. </div>
  6803. </div>
  6804. <div class="addEva" @click="openT">
  6805. <img src="../../../assets/icon/addEva.png" alt="" />
  6806. </div>
  6807. <div
  6808. v-if="evaJuri.length === 0"
  6809. style="margin: 0 auto; color: #6e6e6e"
  6810. >
  6811. 暂无数据
  6812. </div>
  6813. </div>
  6814. </div>
  6815. </div>
  6816. </div>
  6817. <span slot="footer" class="dialog-footer">
  6818. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  6819. </span>
  6820. </el-dialog>
  6821. <el-dialog
  6822. title="分组设置"
  6823. :visible.sync="dialogVisibleGroup"
  6824. :append-to-body="true"
  6825. width="650px"
  6826. :before-close="handleClose"
  6827. class="dialog_diy"
  6828. >
  6829. <div class="groupBox">
  6830. <div v-if="groupJson.group" class="groupContent">
  6831. <div class="groupTitle">请设置小组数量</div>
  6832. <div
  6833. v-for="(item, index) in groupJson.group"
  6834. :key="index"
  6835. class="groupName"
  6836. >
  6837. <span class="groupn">组{{ index + 1 }}名称:</span>
  6838. <el-input
  6839. v-model="item.name"
  6840. placeholder="请输入名称..."
  6841. style="width: 250px"
  6842. ></el-input>
  6843. <div class="groupBtn">
  6844. <el-button type="primary" size="small" @click="addGroup(index)">
  6845. 添加</el-button
  6846. >
  6847. <el-button
  6848. type="primary"
  6849. size="small"
  6850. @click="deleteGroup(index)"
  6851. v-if="groupJson.group && groupJson.group.length > 1"
  6852. >删除</el-button
  6853. >
  6854. </div>
  6855. </div>
  6856. </div>
  6857. <div class="groupContent">
  6858. <div class="groupTitle">请设置每组人数数量</div>
  6859. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  6860. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  6861. <el-input-number
  6862. v-model="groupJson.number"
  6863. :controls="false"
  6864. :min="2"
  6865. :max="10"
  6866. placeholder="2-10人以内"
  6867. ></el-input-number>
  6868. </div>
  6869. </div>
  6870. <span slot="footer" class="dialog-footer">
  6871. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  6872. <el-button type="primary" @click="addGroupJson">确定</el-button>
  6873. </span>
  6874. </el-dialog>
  6875. <interVideo
  6876. :dialogVisibleVideo.sync="dialogVisibleVideo"
  6877. :videoJson="videoJson"
  6878. @add="addVideoJson"
  6879. ></interVideo>
  6880. </div>
  6881. </template>
  6882. <script>
  6883. import "../../../common/aws-sdk-2.235.1.min.js";
  6884. import $ from "jquery";
  6885. import EditorBar from "../../../components/tools/wangEnduit";
  6886. import Table from "../../../components/tools/table";
  6887. import Mind from "../../tools/jsmind2";
  6888. import Time from "../../tools/time.vue";
  6889. import Sunburst from "../../tools/sunburst";
  6890. import SeeBoard from "../../tools/seeBoard";
  6891. import weilaiData from "../components/weilai.js";
  6892. import sourceDialog from "../teacherSource/dialog.vue";
  6893. import interVideo from "../interVideo/index.vue";
  6894. export default {
  6895. components: {
  6896. EditorBar,
  6897. Mind,
  6898. Time,
  6899. Sunburst,
  6900. SeeBoard,
  6901. Table,
  6902. sourceDialog,
  6903. interVideo,
  6904. },
  6905. data() {
  6906. return {
  6907. checkAll: false,
  6908. chooseType: 1,
  6909. checkedCities: [],
  6910. isIndeterminate: true,
  6911. isSysPic: false,
  6912. steps: 1,
  6913. nbOrder: 0,
  6914. courseId: "",
  6915. chapToolsType: 0,
  6916. chapTools: [
  6917. {
  6918. tools: [],
  6919. toolDetail: "",
  6920. },
  6921. ],
  6922. line: "",
  6923. lineTitle: "",
  6924. sysPic: [],
  6925. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  6926. isPushTitleList: [],
  6927. lineCount: 0,
  6928. lineType: 0,
  6929. chapCount: 0,
  6930. courseName: "",
  6931. isTeacherSee: true,
  6932. courseText: "",
  6933. preTime: 0,
  6934. formLabelWidth: "100px",
  6935. choosePicVisible: false,
  6936. sysPicVisible: false,
  6937. uploadLoading1: false,
  6938. noneBtnImg: false,
  6939. updateBoolean2: false,
  6940. unitIndex: 0,
  6941. taskCount: 0,
  6942. dialogVisible: false,
  6943. dialogVisible1: false,
  6944. dialogVisible2: false,
  6945. dialogVisible3: false,
  6946. dialogVisible4: false,
  6947. dialogVisible5: false,
  6948. dialogVisible6: false,
  6949. dialogVisible7: false,
  6950. dialogVisible8: false,
  6951. dialogVisible9: false,
  6952. dialogVisibleClass: false,
  6953. dialogVisibleMember: false,
  6954. dialogVisibleMp3: false,
  6955. dialogVisibleSelect: false,
  6956. dialogVisibleSentence: false,
  6957. dialogVisibleRate: false,
  6958. dialogVisibleChoice: false,
  6959. dialogVisiblemb: false,
  6960. dialogVisibleInvite: false,
  6961. dialogVisibleSource: false,
  6962. dialogVisibleVideo: false,
  6963. isClickColor: 0,
  6964. publicTool: 0,
  6965. searchPeople: "",
  6966. searchTN: "",
  6967. userid: this.$route.query.userid,
  6968. oid: this.$route.query.oid,
  6969. org: this.$route.query.org,
  6970. role: this.$route.query.role,
  6971. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  6972. dialogVisibleTable: false,
  6973. dialogVisibleWord: false,
  6974. tableJson: { text: "" },
  6975. wordJson: { text: "" },
  6976. dialogVisibleMoreUpload: false,
  6977. dialogVisiblePreTime: false,
  6978. uploadJson: [],
  6979. classJuri: [],
  6980. cover: [], //课程封面
  6981. myWord: [],
  6982. evaJuri: [],
  6983. evalua: "",
  6984. targetArray: [],
  6985. eTitle: "",
  6986. eJson: {},
  6987. fid: "", //一级
  6988. sid: "", //二级
  6989. tid: "", //二级
  6990. typeMode: 1,
  6991. eJSONNum: 0,
  6992. data: {
  6993. meta: {
  6994. name: "example",
  6995. author: "dd@163.com",
  6996. version: "0.2",
  6997. },
  6998. format: "node_array",
  6999. data: [{ id: "root", isroot: true, topic: "" }],
  7000. },
  7001. askJson: {
  7002. askCount: 1,
  7003. askTitle: "",
  7004. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7005. },
  7006. testJson: {},
  7007. selectJson: {},
  7008. rateJson: [],
  7009. unitJson2: [],
  7010. unitJson: [
  7011. {
  7012. dyName: "", //单元标题
  7013. chapterInfo: [
  7014. {
  7015. isread: false,
  7016. chapterid: this.guid(),
  7017. title: "",
  7018. courseName: "",
  7019. taskJson: [
  7020. {
  7021. task: "",
  7022. taskDetail: "",
  7023. chapterData: [],
  7024. toolChoose: [
  7025. {
  7026. tool: [],
  7027. toolDetail: "",
  7028. toolType: 1,
  7029. askCount: 1,
  7030. askTitle: "",
  7031. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7032. },
  7033. ],
  7034. toolText: "",
  7035. isShowTools: false,
  7036. askCount: 1,
  7037. isFold: 0,
  7038. askTitle: "",
  7039. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7040. checkJson: [{ checkCount: [], checkPerent: [] }],
  7041. homeworkList: [],
  7042. },
  7043. ],
  7044. itemCount: 1,
  7045. fileList1: [],
  7046. video: [],
  7047. testData: [],
  7048. pData: [],
  7049. templateArray: [],
  7050. },
  7051. ],
  7052. },
  7053. ],
  7054. studentJuri: [],
  7055. teacherJuri: [],
  7056. checkboxList: [],
  7057. checkboxList2: [],
  7058. checkboxList3: [],
  7059. classSearch: "",
  7060. number: "",
  7061. tTitle: "",
  7062. tdetail: "",
  7063. templateC: {},
  7064. AttText: {},
  7065. AttTextType: 0,
  7066. AttTextIndex: 0,
  7067. cTemplate: "",
  7068. CourseType: [],
  7069. CourseType2: [],
  7070. CourseTypeJson: {},
  7071. courseTypeId: [],
  7072. courseTypeSon: [],
  7073. clearArray: [],
  7074. pTypeCheck: [],
  7075. pTypeCheckName: [],
  7076. loading: false,
  7077. toolType: 1,
  7078. inputShow: true,
  7079. inputShow2: true,
  7080. toolIndex: 0,
  7081. cidType: 0,
  7082. answerQ: "",
  7083. grade: [],
  7084. grade2: [],
  7085. courseUserid: "",
  7086. timer: null,
  7087. timer2: null,
  7088. checkId: "",
  7089. isDelete: 1,
  7090. addindex: 0,
  7091. selectSteps: 1,
  7092. groupJson: {},
  7093. dialogVisibleGroup: false,
  7094. rightBoxHeight: 0,
  7095. ManAarray: [],
  7096. checkBoolean: false,
  7097. inviteCode: [],
  7098. inviteId: "",
  7099. icode: "",
  7100. easyArray: [2, 4],
  7101. sourceData: {},
  7102. videoJson: {},
  7103. };
  7104. },
  7105. computed: {
  7106. // rightBoxHeight: function () {
  7107. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  7108. // },
  7109. offsetLetfPx: function () {
  7110. //addnum可以直接在模板语法里面用,相当于data内的值
  7111. return (
  7112. $(".cru_select")[this.unitIndex] &&
  7113. $(".cru_select")[this.unitIndex].offsetLeft
  7114. );
  7115. },
  7116. getMan2() {
  7117. return function (people) {
  7118. let _people = people;
  7119. let _people2 = "";
  7120. if (this.ManAarray.length) {
  7121. for (var i = 0; i < this.ManAarray.length; i++) {
  7122. if (this.ManAarray[i].userid == people) {
  7123. _people2 = this.ManAarray[i].name;
  7124. break;
  7125. }
  7126. }
  7127. }
  7128. if (people == this.courseUserid) {
  7129. return "";
  7130. }
  7131. return this.ManAarray.length ? _people2 : "";
  7132. };
  7133. },
  7134. isInvite() {
  7135. return function (cid) {
  7136. let array = [];
  7137. for (var i = 0; i < this.inviteCode.length; i++) {
  7138. array.push(this.inviteCode[i].cid);
  7139. }
  7140. return array.indexOf(cid) != -1;
  7141. };
  7142. },
  7143. getInviteCodeC() {
  7144. return function (cid) {
  7145. let array = [];
  7146. for (var i = 0; i < this.inviteCode.length; i++) {
  7147. array.push(this.inviteCode[i].cid);
  7148. }
  7149. return this.inviteCode[array.indexOf(cid)].ic;
  7150. };
  7151. },
  7152. getClassC() {
  7153. return function (c) {
  7154. let _c2 = "";
  7155. if (this.grade.length) {
  7156. for (var i = 0; i < this.grade.length; i++) {
  7157. if (this.grade[i].id == c) {
  7158. _c2 = this.grade[i].name;
  7159. break;
  7160. }
  7161. }
  7162. }
  7163. return this.grade.length ? _c2 : "";
  7164. };
  7165. },
  7166. },
  7167. watch: {
  7168. unitIndex(newValue, oldValue) {
  7169. if (this.isDelete == 2) {
  7170. this.isDelete = 1;
  7171. return;
  7172. }
  7173. if (this.cid != "") {
  7174. let _unitIndex = oldValue;
  7175. if (
  7176. JSON.stringify(this.unitJson2[_unitIndex]) ==
  7177. JSON.stringify(this.unitJson[_unitIndex])
  7178. ) {
  7179. this.$refs.rightboxR.scrollTop = 0;
  7180. return;
  7181. }
  7182. let cPan = 1;
  7183. for (
  7184. var j = 0;
  7185. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  7186. j++
  7187. ) {
  7188. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  7189. j
  7190. ].proVisible = false;
  7191. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  7192. j
  7193. ].proVisible2 = false;
  7194. if (
  7195. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  7196. .length > 1
  7197. ) {
  7198. for (
  7199. var z = 0;
  7200. z <
  7201. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  7202. .length;
  7203. z++
  7204. ) {
  7205. if (
  7206. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  7207. .toolChoose[z].tool.length
  7208. ) {
  7209. this.$message.error("请把工具添加完整");
  7210. cPan = 2;
  7211. break;
  7212. }
  7213. }
  7214. }
  7215. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  7216. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  7217. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  7218. (ele) => {
  7219. return ele.value != "";
  7220. }
  7221. );
  7222. }
  7223. }
  7224. if (cPan == 2) {
  7225. this.unitIndex = oldValue;
  7226. return;
  7227. }
  7228. for (var i = 0; i < this.unitJson.length; i++) {
  7229. if (this.addindex != i) {
  7230. delete this.unitJson[i].isUpdate;
  7231. }
  7232. }
  7233. this.$refs.rightboxR.scrollTop = 0;
  7234. this.addindex = -1;
  7235. let params = [
  7236. {
  7237. cid: this.cid,
  7238. chapters: JSON.stringify(this.unitJson),
  7239. uid: this.userid,
  7240. unitIndex: _unitIndex,
  7241. },
  7242. ];
  7243. this.ajax
  7244. .post(this.$store.state.api + "updateWorkNew4", params)
  7245. .then((res) => {
  7246. // this.$message({
  7247. // message: "修改成功",
  7248. // type: "success",
  7249. // });
  7250. // this.courseId = this.cid;
  7251. })
  7252. .catch((err) => {
  7253. this.$message.error("网络不佳");
  7254. console.error(err);
  7255. });
  7256. }
  7257. },
  7258. steps(newValue) {
  7259. if (newValue == 4) {
  7260. this.goTo(
  7261. "/course?userid=" +
  7262. this.userid +
  7263. "&oid=" +
  7264. this.oid +
  7265. "&org=" +
  7266. this.org +
  7267. "&role=" +
  7268. this.role
  7269. );
  7270. }
  7271. },
  7272. },
  7273. methods: {
  7274. setMan() {
  7275. // let teacherJuri = this.teacherJuri2;
  7276. this.ManAarray = [];
  7277. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  7278. if (_user.indexOf(this.courseUserid || this.userid) == -1) {
  7279. _user.push(this.courseUserid || this.userid);
  7280. }
  7281. let params = {
  7282. uid: _user.join(","),
  7283. };
  7284. this.ajax
  7285. .get(this.$store.state.api + "getAllUserById", params)
  7286. .then((res) => {
  7287. let teacherJuri = res.data[0];
  7288. this.ManAarray = teacherJuri;
  7289. })
  7290. .catch((err) => {
  7291. console.error(err);
  7292. });
  7293. },
  7294. previewImg(url) {
  7295. this.$hevueImgPreview(url);
  7296. },
  7297. scrollChange() {
  7298. this.rightBoxHeight = $(".rightBox")[0].scrollHeight;
  7299. // document.querySelector('.course_left').scrollHeight
  7300. // document.querySelector('.stepsBottom2').scrollHeight
  7301. let stepsBottom2 = $(".stepsBottom2")[0].clientHeight;
  7302. // let client = $(".course_left")[0].clientHeight - stepsBottom2
  7303. let client = $(".course_left")[0].clientHeight - stepsBottom2;
  7304. let top = $(".rightBox")[0].scrollTop - 400 - stepsBottom2;
  7305. // if (top < client) {
  7306. // $('.stepsBottom2')[0].style.position = 'absolute'
  7307. // $('.stepsBottom2')[0].style.top = 0 + 'px'
  7308. // // $('.stepsBottom2')[0].style.top = client + 'px'
  7309. // } else
  7310. if (top > 0) {
  7311. let top = $(".rightBox")[0].offsetTop;
  7312. $(".stepsBottom2")[0].style.position = "fixed";
  7313. $(".stepsBottom2")[0].style.top = top + "px";
  7314. // $('.stepsBottom2')[0].style.top = top + 'px'
  7315. } else {
  7316. $(".stepsBottom2")[0].style.position = "absolute";
  7317. $(".stepsBottom2")[0].style.top = "0px";
  7318. }
  7319. },
  7320. handleCheckAllChange(val) {
  7321. this.checkedCities = val ? cityOptions : [];
  7322. this.isIndeterminate = false;
  7323. },
  7324. handleCheckedCitiesChange(value) {
  7325. let checkedCount = value.length;
  7326. this.checkAll = checkedCount === this.cities.length;
  7327. this.isIndeterminate =
  7328. checkedCount > 0 && checkedCount < this.cities.length;
  7329. },
  7330. addHw(e) {
  7331. var el = e.currentTarget;
  7332. el.getElementsByTagName("input")[0].click();
  7333. },
  7334. change(val) {
  7335. console.log(val);
  7336. },
  7337. change2(val) {
  7338. console.log(val);
  7339. this.$forceUpdate();
  7340. },
  7341. handleClose(done) {
  7342. done();
  7343. },
  7344. imgChange2(i, j) {
  7345. var _tmp = this.testJson.testJson[i].checkList[j];
  7346. this.noneBtnImg = _tmp.length >= 1;
  7347. },
  7348. imgChange3(i) {
  7349. var _tmp = this.testJson.testJson[i];
  7350. this.noneBtnImg = _tmp.length >= 1;
  7351. },
  7352. imgChange1(file, fileList, type, itemTaskIndex) {
  7353. if (type == 1) {
  7354. var _tmp = this.cover;
  7355. } else if (
  7356. type == 2 ||
  7357. type == 3 ||
  7358. type == 6 ||
  7359. type == 7 ||
  7360. type == 8
  7361. ) {
  7362. var _tmp =
  7363. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7364. .chapterData;
  7365. } else if (type == 4) {
  7366. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  7367. } else {
  7368. var _tmp =
  7369. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7370. .homeworkList;
  7371. }
  7372. this.noneBtnImg = _tmp.length >= 1;
  7373. },
  7374. goTo(path) {
  7375. this.$router.push(path);
  7376. },
  7377. guid() {
  7378. var _num,
  7379. i,
  7380. _guid = "";
  7381. for (i = 0; i < 32; i++) {
  7382. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  7383. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  7384. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  7385. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  7386. _guid += "-";
  7387. }
  7388. }
  7389. return _guid;
  7390. },
  7391. lastSteps() {
  7392. this.goTo(
  7393. "/course?userid=" +
  7394. this.userid +
  7395. "&oid=" +
  7396. this.oid +
  7397. "&org=" +
  7398. this.org +
  7399. "&role=" +
  7400. this.role
  7401. );
  7402. },
  7403. nextSteps() {
  7404. if (this.cid == "" || this.cid == undefined) {
  7405. if (this.courseName == "") {
  7406. this.$message.error("请将信息填写完整");
  7407. return;
  7408. } else {
  7409. this.addWork();
  7410. }
  7411. } else {
  7412. if (this.courseName == "") {
  7413. this.$message.error("请将信息填写完整");
  7414. return;
  7415. } else {
  7416. if (this.userid != this.courseUserid && this.role != "1") {
  7417. this.updateWork2();
  7418. } else {
  7419. this.updateWork();
  7420. }
  7421. }
  7422. }
  7423. this.$refs.stepBox.scrollTop = 0;
  7424. },
  7425. unitSet(i) {
  7426. this.unitIndex = i;
  7427. // this.$refs.rightboxR.scrollTop = 0;
  7428. },
  7429. time() {
  7430. if (!this.now) {
  7431. this.now = new Date().getTime();
  7432. return true;
  7433. } else {
  7434. let time = new Date().getTime();
  7435. if (time - this.now > 3000) {
  7436. this.now = time;
  7437. return true;
  7438. } else {
  7439. return false;
  7440. }
  7441. }
  7442. },
  7443. deleteUnit(i) {
  7444. var _this = this;
  7445. if (_this.time()) {
  7446. _this
  7447. .$confirm("确定删除此单元吗?", "提示", {
  7448. confirmButtonText: "确定",
  7449. cancelButtonText: "取消",
  7450. type: "warning",
  7451. })
  7452. .then(() => {
  7453. _this.isDelete = 2;
  7454. // _this.unitIndex = _this.unitIndex - 1;
  7455. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  7456. // _this.$message.success("删除成功");
  7457. })
  7458. .catch(() => {
  7459. return;
  7460. });
  7461. }
  7462. },
  7463. deleteWork(chapid) {
  7464. let params = [
  7465. {
  7466. cid: this.cid,
  7467. chapters: JSON.stringify(this.unitJson),
  7468. uid: this.userid,
  7469. chapid: chapid,
  7470. },
  7471. ];
  7472. this.ajax
  7473. .post(this.$store.state.api + "deleteWork", params)
  7474. .then((res) => {
  7475. this.$message({
  7476. message: "删除成功",
  7477. type: "success",
  7478. });
  7479. this.unitJson.splice(this.unitIndex, 1);
  7480. this.unitIndex = this.unitIndex - 1;
  7481. })
  7482. .catch((err) => {
  7483. this.$message.error("网络不佳");
  7484. console.error(err);
  7485. });
  7486. },
  7487. deleteTool(itemTaskIndex, i) {
  7488. var _this = this;
  7489. if (_this.time()) {
  7490. _this
  7491. .$confirm("确定删除此工具吗?", "提示", {
  7492. confirmButtonText: "确定",
  7493. cancelButtonText: "取消",
  7494. type: "warning",
  7495. })
  7496. .then(() => {
  7497. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  7498. itemTaskIndex
  7499. ].toolChoose.splice(i, 1);
  7500. _this.$message.success("删除成功");
  7501. })
  7502. .catch(() => {
  7503. return;
  7504. });
  7505. }
  7506. },
  7507. deleteSentence(i) {
  7508. var _this = this;
  7509. if (_this.time()) {
  7510. _this
  7511. .$confirm("确定删除此题目吗?", "提示", {
  7512. confirmButtonText: "确定",
  7513. cancelButtonText: "取消",
  7514. type: "warning",
  7515. })
  7516. .then(() => {
  7517. _this.sentenceList.splice(i, 1);
  7518. _this.$message.success("删除成功");
  7519. })
  7520. .catch(() => {
  7521. return;
  7522. });
  7523. }
  7524. },
  7525. deleteS(s, i, j) {
  7526. this.sentenceList[i].addSentence.splice(j, 1);
  7527. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  7528. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  7529. this.sentenceList[i].rightAnswer.splice(a, 1);
  7530. }
  7531. },
  7532. openT() {
  7533. window.parent.postMessage({ tools: "25" }, "*");
  7534. },
  7535. deleteTask(i) {
  7536. var _this = this;
  7537. //((_this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length - 1) == i) ? "确定删除此任务吗?" : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?"
  7538. _this
  7539. .$confirm("确定删除此任务吗?", "提示", {
  7540. confirmButtonText: "确定",
  7541. cancelButtonText: "取消",
  7542. type: "warning",
  7543. })
  7544. .then(() => {
  7545. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(i, 1);
  7546. _this.$message.success("删除成功");
  7547. // this.$nextTick(() => {
  7548. // $('.stepsBottom2')[0].style.transition = 'unset'
  7549. // setTimeout(() => {
  7550. // let stepsBottom2 = $(".stepsBottom2")[0].clientHeight
  7551. // let client = $(".basic_box2")[0].clientHeight - stepsBottom2 - 100
  7552. // let top = $('.stepsBottom2')[0].offsetTop - 20
  7553. // if (top > client) {
  7554. // $('.stepsBottom2')[0].style.top = client + 'px'
  7555. // }
  7556. // $('.stepsBottom2')[0].style.transition = 'all .5s'
  7557. // this.$forceUpdate()
  7558. // }, 500)
  7559. // })
  7560. })
  7561. .catch(() => {
  7562. return;
  7563. });
  7564. },
  7565. handlePictureCardPreview(file) {
  7566. this.dialogImageUrl = file.url;
  7567. },
  7568. clean(i, c) {
  7569. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  7570. },
  7571. handle_remove1(file, fileList, type) {
  7572. var _tmp = this.cover;
  7573. // for (var i = 0, len = _tmp.length; i < len; i++) {
  7574. // if (_tmp[i].uid == file.uid) {
  7575. // _tmp.splice(i, 1);
  7576. // break;
  7577. // }
  7578. // this.cover = _tmp;
  7579. // }
  7580. this.cover = [];
  7581. this.noneBtnImg = this.cover.length >= 1;
  7582. this.isSysPic = false;
  7583. this.$forceUpdate();
  7584. },
  7585. addImg(e) {
  7586. var el = e.currentTarget;
  7587. el.getElementsByTagName("input")[0].click();
  7588. e.target.value = "";
  7589. },
  7590. addChaptersTools(i) {
  7591. this.chapTools = [
  7592. {
  7593. tools: [],
  7594. toolDetail: "",
  7595. },
  7596. ];
  7597. this.chapCount = i;
  7598. this.dialogVisible4 = true;
  7599. },
  7600. isNoFinsh() {
  7601. this.$message.warning("功能正在开发中");
  7602. },
  7603. addAttText(i) {
  7604. this.AttText = {
  7605. title: "",
  7606. text: "",
  7607. };
  7608. this.taskCount = i;
  7609. this.AttTextType = 0;
  7610. this.$forceUpdate();
  7611. this.dialogVisible6 = true;
  7612. },
  7613. openLine(i) {
  7614. this.line = "";
  7615. this.lineCount = i;
  7616. this.lineType = 0;
  7617. this.$forceUpdate();
  7618. this.dialogVisible7 = true;
  7619. },
  7620. pasteLine(i) {
  7621. navigator.clipboard
  7622. .readText()
  7623. .then((v) => {
  7624. console.log("获取剪贴板成功:", v);
  7625. const html = v;
  7626. const regex = /src="(.*?)"/g;
  7627. const match = regex.exec(html);
  7628. if (match && match[1]) {
  7629. console.log(match[1]);
  7630. this.$message.success("粘贴成功");
  7631. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7632. i
  7633. ].chapterData.push({
  7634. name: "链接",
  7635. title: "嵌入代码",
  7636. url: match[1],
  7637. type: 8,
  7638. });
  7639. } else {
  7640. // console.log("未找到包含 src 属性的 iframe");
  7641. this.$message.error("没有找到粘贴的链接");
  7642. }
  7643. })
  7644. .catch((v) => {
  7645. console.log("获取剪贴板失败: ", v);
  7646. });
  7647. },
  7648. openSource(i) {
  7649. this.lineCount = i;
  7650. this.sourceData = {};
  7651. this.dialogVisibleSource = true;
  7652. },
  7653. addSource() {
  7654. if (!Object.keys(this.sourceData).length) {
  7655. this.$message.error("请选择要上传的资源");
  7656. return;
  7657. }
  7658. let keys = Object.keys(this.sourceData);
  7659. for (var i = 0; i < keys.length; i++) {
  7660. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7661. this.lineCount
  7662. ].chapterData.push({
  7663. name: "链接",
  7664. title: this.sourceData[keys[i]].name,
  7665. url: this.sourceData[keys[i]].url,
  7666. type: 8,
  7667. });
  7668. }
  7669. this.$forceUpdate();
  7670. this.dialogVisibleSource = false;
  7671. },
  7672. deleteM(i, j) {
  7673. this.testJson.testJson[i].timuList.splice(j, 1);
  7674. },
  7675. beforeUploadTiMu(event, i) {
  7676. const loading = this.openLoading();
  7677. var file = event.target.files[0];
  7678. var credentials = {
  7679. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7680. secretAccessKey: "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",
  7681. }; //秘钥形式的登录上传
  7682. window.AWS.config.update(credentials);
  7683. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7684. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7685. var _this = this;
  7686. if (file) {
  7687. var params = {
  7688. Key:
  7689. file.name.split(".")[0] +
  7690. new Date().getTime() +
  7691. "." +
  7692. file.name.split(".")[file.name.split(".").length - 1],
  7693. ContentType: file.type,
  7694. Body: file,
  7695. "Access-Control-Allow-Credentials": "*",
  7696. ACL: "public-read",
  7697. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7698. var options = {
  7699. partSize: 2048 * 1024 * 1024,
  7700. queueSize: 2,
  7701. leavePartsOnError: true,
  7702. };
  7703. bucket
  7704. .upload(params, options)
  7705. .on("httpUploadProgress", function (evt) {
  7706. //这里可以写进度条
  7707. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7708. })
  7709. .send(function (err, data) {
  7710. loading.close();
  7711. if (err) {
  7712. _this.$message.error("上传失败");
  7713. } else {
  7714. if (_this.testJson.testJson[i].timuList) {
  7715. _this.testJson.testJson[i].timuList.push({
  7716. src: data.Location,
  7717. });
  7718. } else {
  7719. _this.testJson.testJson[i].timuList = [];
  7720. _this.testJson.testJson[i].timuList.push({
  7721. src: data.Location,
  7722. });
  7723. }
  7724. _this.imgChange3(i);
  7725. _this.$forceUpdate();
  7726. }
  7727. });
  7728. }
  7729. },
  7730. beforeUploadTi(event, i, j) {
  7731. const loading = this.openLoading();
  7732. var file = event.target.files[0];
  7733. var credentials = {
  7734. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7735. secretAccessKey: "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",
  7736. }; //秘钥形式的登录上传
  7737. window.AWS.config.update(credentials);
  7738. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7739. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7740. var _this = this;
  7741. if (file) {
  7742. var params = {
  7743. Key:
  7744. file.name.split(".")[0] +
  7745. new Date().getTime() +
  7746. "." +
  7747. file.name.split(".")[file.name.split(".").length - 1],
  7748. ContentType: file.type,
  7749. Body: file,
  7750. "Access-Control-Allow-Credentials": "*",
  7751. ACL: "public-read",
  7752. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7753. var options = {
  7754. partSize: 2048 * 1024 * 1024,
  7755. queueSize: 2,
  7756. leavePartsOnError: true,
  7757. };
  7758. bucket
  7759. .upload(params, options)
  7760. .on("httpUploadProgress", function (evt) {
  7761. //这里可以写进度条
  7762. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7763. })
  7764. .send(function (err, data) {
  7765. loading.close();
  7766. if (err) {
  7767. _this.$message.error("上传失败");
  7768. } else {
  7769. _this.testJson.testJson[i].checkList[j] = {};
  7770. _this.testJson.testJson[i].checkList[j].src = data.Location;
  7771. _this.testJson.testJson[i].checkList[j].imgType = 1;
  7772. _this.imgChange2(i, j);
  7773. _this.$forceUpdate();
  7774. }
  7775. });
  7776. }
  7777. },
  7778. beforeUpload1(event, type) {
  7779. // const loading = this.openLoading();
  7780. var file = event.target.files[0];
  7781. var credentials = {
  7782. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7783. secretAccessKey: "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",
  7784. }; //秘钥形式的登录上传
  7785. window.AWS.config.update(credentials);
  7786. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7787. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7788. var _this = this;
  7789. if (file) {
  7790. var params = {
  7791. Key:
  7792. file.name.split(".")[0] +
  7793. new Date().getTime() +
  7794. "." +
  7795. file.name.split(".")[file.name.split(".").length - 1],
  7796. ContentType: file.type,
  7797. Body: file,
  7798. "Access-Control-Allow-Credentials": "*",
  7799. ACL: "public-read",
  7800. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7801. var options = {
  7802. partSize: 2048 * 1024 * 1024,
  7803. queueSize: 2,
  7804. leavePartsOnError: true,
  7805. };
  7806. bucket
  7807. .upload(params, options)
  7808. .on("httpUploadProgress", function (evt) {
  7809. //这里可以写进度条
  7810. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7811. })
  7812. .send(function (err, data) {
  7813. // loading.close();
  7814. if (err) {
  7815. // var a = _this.$refs.upload1.uploadFiles;
  7816. // a.splice(a.length - 1, a.length);
  7817. _this.$message.error("上传失败");
  7818. } else {
  7819. _this.cover.push({
  7820. name: file.name,
  7821. url: data.Location,
  7822. uid: file.uid,
  7823. });
  7824. _this.imgChange1(null, null, 1, null);
  7825. _this.choosePicVisible = false;
  7826. console.log(data.Location);
  7827. }
  7828. });
  7829. }
  7830. },
  7831. beforeUploadSelect(event, type) {
  7832. // const loading = this.openLoading();
  7833. var file = event.target.files[0];
  7834. var credentials = {
  7835. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7836. secretAccessKey: "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",
  7837. }; //秘钥形式的登录上传
  7838. window.AWS.config.update(credentials);
  7839. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7840. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7841. var _this = this;
  7842. if (file) {
  7843. var params = {
  7844. Key:
  7845. file.name.split(".")[0] +
  7846. new Date().getTime() +
  7847. "." +
  7848. file.name.split(".")[file.name.split(".").length - 1],
  7849. ContentType: file.type,
  7850. Body: file,
  7851. "Access-Control-Allow-Credentials": "*",
  7852. ACL: "public-read",
  7853. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7854. var options = {
  7855. partSize: 2048 * 1024 * 1024,
  7856. queueSize: 2,
  7857. leavePartsOnError: true,
  7858. };
  7859. bucket
  7860. .upload(params, options)
  7861. .on("httpUploadProgress", function (evt) {
  7862. //这里可以写进度条
  7863. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7864. })
  7865. .send(function (err, data) {
  7866. // loading.close();
  7867. if (err) {
  7868. _this.$message.error("上传失败");
  7869. } else {
  7870. _this.selectJson.url = data.Location;
  7871. console.log(data.Location);
  7872. }
  7873. });
  7874. }
  7875. },
  7876. chooseSysPic(p) {
  7877. this.cover.push({
  7878. name: "系统图片.png",
  7879. url: p,
  7880. });
  7881. this.imgChange1(null, null, 1, null);
  7882. this.isSysPic = true;
  7883. this.sysPicVisible = false;
  7884. },
  7885. beforeUpload(data) {
  7886. this.$refs.upload1.uploadFiles;
  7887. this.uploadLoading1 = true;
  7888. var file = data.file;
  7889. var credentials = {
  7890. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7891. secretAccessKey: "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",
  7892. }; //秘钥形式的登录上传
  7893. window.AWS.config.update(credentials);
  7894. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7895. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7896. var _this = this;
  7897. if (file) {
  7898. var params = {
  7899. Key:
  7900. file.name.split(".")[0] +
  7901. new Date().getTime() +
  7902. "." +
  7903. file.name.split(".")[file.name.split(".").length - 1],
  7904. ContentType: file.type,
  7905. Body: file,
  7906. "Access-Control-Allow-Credentials": "*",
  7907. ACL: "public-read",
  7908. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7909. var options = {
  7910. partSize: 2048 * 1024 * 1024,
  7911. queueSize: 2,
  7912. leavePartsOnError: true,
  7913. };
  7914. bucket
  7915. .upload(params, options)
  7916. .on("httpUploadProgress", function (evt) {
  7917. //这里可以写进度条
  7918. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7919. })
  7920. .send(function (err, data) {
  7921. _this.uploadLoading1 = false;
  7922. if (err) {
  7923. // var a = _this.$refs.upload1.uploadFiles;
  7924. // a.splice(a.length - 1, a.length);
  7925. _this.$message.error("上传失败");
  7926. } else {
  7927. //上传成功处理
  7928. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  7929. name: file.name,
  7930. url: data.Location,
  7931. uid: file.uid,
  7932. });
  7933. _this.imgChange();
  7934. console.log(data.Location);
  7935. }
  7936. });
  7937. }
  7938. },
  7939. onExceed() {
  7940. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  7941. },
  7942. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  7943. // const loading = this.openLoading();
  7944. var file = event.target.files[0];
  7945. var credentials = {
  7946. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7947. secretAccessKey: "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",
  7948. }; //秘钥形式的登录上传
  7949. window.AWS.config.update(credentials);
  7950. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7951. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7952. var _this = this;
  7953. if (type == 3) {
  7954. var b = [
  7955. "DOC",
  7956. "DOCX",
  7957. "DOCM",
  7958. "DOTM",
  7959. "DOTX",
  7960. "PPTX",
  7961. "PPSX",
  7962. "PPT",
  7963. "PPS",
  7964. "PPTM",
  7965. "POTM",
  7966. "PPAM",
  7967. "POTX",
  7968. "PPSM",
  7969. ];
  7970. if (
  7971. b.indexOf(
  7972. file.name
  7973. .split(".")
  7974. [file.name.split(".").length - 1].toLocaleUpperCase()
  7975. ) != -1
  7976. ) {
  7977. if (file.size / 1024 / 1024 > 80) {
  7978. this.$message.error("上传文件大于80兆,请重新选择文件!");
  7979. this.inputShow = true;
  7980. // var a = _this.$refs.upload1.uploadFiles;
  7981. // a.splice(a.length - 1, a.length);
  7982. // loading.close();
  7983. return;
  7984. }
  7985. } else if (
  7986. file.name
  7987. .split(".")
  7988. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  7989. ) {
  7990. if (file.size / 1024 / 1024 > 80) {
  7991. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  7992. this.inputShow = true;
  7993. // var a = _this.$refs.upload1.uploadFiles;
  7994. // a.splice(a.length - 1, a.length);
  7995. // loading.close();
  7996. return;
  7997. }
  7998. }
  7999. }
  8000. this.inputShow = false;
  8001. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8002. itemTaskIndex
  8003. ].progress = 0;
  8004. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8005. itemTaskIndex
  8006. ].proVisible = true;
  8007. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8008. itemTaskIndex
  8009. ].isFinishSize = 0;
  8010. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8011. itemTaskIndex
  8012. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  8013. _this.$forceUpdate();
  8014. if (file) {
  8015. var params = {
  8016. Key:
  8017. file.name.split(".")[0] +
  8018. new Date().getTime() +
  8019. "." +
  8020. file.name.split(".")[file.name.split(".").length - 1],
  8021. ContentType: file.type,
  8022. Body: file,
  8023. "Access-Control-Allow-Credentials": "*",
  8024. ACL: "public-read",
  8025. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  8026. var options = {
  8027. partSize: 2048 * 1024 * 1024,
  8028. queueSize: 2,
  8029. leavePartsOnError: true,
  8030. };
  8031. bucket
  8032. .upload(params, options)
  8033. .on("httpUploadProgress", function (evt) {
  8034. //这里可以写进度条
  8035. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  8036. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8037. itemTaskIndex
  8038. ].progress = parseInt((evt.loaded / evt.total) * 100);
  8039. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8040. itemTaskIndex
  8041. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  8042. _this.$forceUpdate();
  8043. })
  8044. .send(function (err, data) {
  8045. // loading.close();
  8046. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8047. itemTaskIndex
  8048. ].progress = 100;
  8049. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8050. itemTaskIndex
  8051. ].isFinishSize =
  8052. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8053. itemTaskIndex
  8054. ].isAllSize;
  8055. _this.$forceUpdate();
  8056. setTimeout(() => {
  8057. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8058. itemTaskIndex
  8059. ].proVisible = false;
  8060. _this.$forceUpdate();
  8061. }, 1000);
  8062. _this.inputShow = true;
  8063. if (err) {
  8064. // var a = _this.$refs.upload1.uploadFiles;
  8065. // a.splice(a.length - 1, a.length);
  8066. _this.$message.error("上传失败");
  8067. } else {
  8068. if (type == 13) {
  8069. let _type = 2;
  8070. var imgA = [
  8071. "png",
  8072. "jpg",
  8073. "jpeg",
  8074. "bmp",
  8075. "gif",
  8076. "webp",
  8077. "psd",
  8078. "svg",
  8079. "tiff",
  8080. ];
  8081. var fileA = [
  8082. "PDF",
  8083. "DOC",
  8084. "DOCX",
  8085. "DOCM",
  8086. "DOTM",
  8087. "DOTX",
  8088. "PPTX",
  8089. "PPSX",
  8090. "PPT",
  8091. "PPS",
  8092. "PPTM",
  8093. "POTM",
  8094. "PPAM",
  8095. "POTX",
  8096. "PPSM",
  8097. "XLSX",
  8098. "XLS",
  8099. ];
  8100. var videoA = [
  8101. "AVI",
  8102. "NAVI",
  8103. "MPEG",
  8104. "ASF",
  8105. "MOV",
  8106. "WMV",
  8107. "3GP",
  8108. "RM",
  8109. "RMVB",
  8110. "FLV",
  8111. "F4V",
  8112. "H.264",
  8113. "H.265",
  8114. "REAL VIDEO",
  8115. "MKV",
  8116. "WebM",
  8117. "HDDVD",
  8118. "MP4",
  8119. "MPG",
  8120. "M4V",
  8121. "MGV",
  8122. "OGV",
  8123. "QTM",
  8124. "STR",
  8125. "AMC",
  8126. "DVX",
  8127. "EVO",
  8128. "DAT",
  8129. "OGG",
  8130. "OGM",
  8131. ];
  8132. if (
  8133. fileA.indexOf(
  8134. data.Location.split(".")[
  8135. data.Location.split(".").length - 1
  8136. ].toLocaleUpperCase()
  8137. ) != -1
  8138. ) {
  8139. _type = 3;
  8140. } else if (
  8141. videoA.indexOf(
  8142. data.Location.split(".")[
  8143. data.Location.split(".").length - 1
  8144. ].toLocaleUpperCase()
  8145. ) != -1
  8146. ) {
  8147. _type = 2;
  8148. } else if (
  8149. imgA.indexOf(
  8150. data.Location.split(".")[
  8151. data.Location.split(".").length - 1
  8152. ].toLocaleLowerCase()
  8153. ) != -1
  8154. ) {
  8155. _type = 13;
  8156. } else {
  8157. _type = 12;
  8158. }
  8159. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8160. itemTaskIndex
  8161. ].chapterData.push({
  8162. name: file.name,
  8163. url: data.Location,
  8164. uid: file.uid,
  8165. type: _type,
  8166. });
  8167. _this.imgChange1(null, null, _type, itemTaskIndex);
  8168. } else if (type == 2 || type == 3 || type == 12) {
  8169. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8170. itemTaskIndex
  8171. ].chapterData.push({
  8172. name: file.name,
  8173. url: data.Location,
  8174. uid: file.uid,
  8175. type: type,
  8176. });
  8177. _this.imgChange1(null, null, type, itemTaskIndex);
  8178. } else if (type == 4) {
  8179. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  8180. itemTaskIndex
  8181. ].fileList1.push({
  8182. name: file.name,
  8183. url: data.Location,
  8184. uid: file.uid,
  8185. });
  8186. _this.imgChange1(null, null, type, itemTaskIndex);
  8187. } else if (type == 5) {
  8188. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  8189. itemTaskIndex
  8190. ].homeworkList.push({
  8191. name: file.name,
  8192. url: data.Location,
  8193. uid: file.uid,
  8194. });
  8195. _this.imgChange1(null, null, type, itemTaskIndex);
  8196. }
  8197. console.log(data.Location);
  8198. }
  8199. });
  8200. }
  8201. },
  8202. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  8203. // const loading = this.openLoading();
  8204. var file = event.target.files[0];
  8205. var credentials = {
  8206. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  8207. secretAccessKey: "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",
  8208. }; //秘钥形式的登录上传
  8209. window.AWS.config.update(credentials);
  8210. window.AWS.config.region = "cn-northwest-1"; //设置区域
  8211. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  8212. var _this = this;
  8213. if (type == 3) {
  8214. var b = [
  8215. "DOC",
  8216. "DOCX",
  8217. "DOCM",
  8218. "DOTM",
  8219. "DOTX",
  8220. "PPTX",
  8221. "PPSX",
  8222. "PPT",
  8223. "PPS",
  8224. "PPTM",
  8225. "POTM",
  8226. "PPAM",
  8227. "POTX",
  8228. "PPSM",
  8229. ];
  8230. if (
  8231. b.indexOf(
  8232. file.name
  8233. .split(".")
  8234. [file.name.split(".").length - 1].toLocaleUpperCase()
  8235. ) != -1
  8236. ) {
  8237. if (file.size / 1024 / 1024 > 80) {
  8238. this.$message.error("上传文件大于80兆,请重新选择文件!");
  8239. this.inputShow = true;
  8240. // var a = _this.$refs.upload1.uploadFiles;
  8241. // a.splice(a.length - 1, a.length);
  8242. // loading.close();
  8243. return;
  8244. }
  8245. } else if (
  8246. file.name
  8247. .split(".")
  8248. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  8249. ) {
  8250. if (file.size / 1024 / 1024 > 80) {
  8251. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  8252. this.inputShow = true;
  8253. // var a = _this.$refs.upload1.uploadFiles;
  8254. // a.splice(a.length - 1, a.length);
  8255. // loading.close();
  8256. return;
  8257. }
  8258. }
  8259. }
  8260. this.inputShow = false;
  8261. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8262. itemTaskIndex
  8263. ].progress = 0;
  8264. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8265. itemTaskIndex
  8266. ].proVisible = true;
  8267. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8268. itemTaskIndex
  8269. ].isFinishSize = 0;
  8270. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8271. itemTaskIndex
  8272. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  8273. _this.$forceUpdate();
  8274. if (file) {
  8275. var params = {
  8276. Key:
  8277. file.name.split(".")[0] +
  8278. new Date().getTime() +
  8279. "." +
  8280. file.name.split(".")[file.name.split(".").length - 1],
  8281. ContentType: file.type,
  8282. Body: file,
  8283. "Access-Control-Allow-Credentials": "*",
  8284. ACL: "public-read",
  8285. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  8286. var options = {
  8287. partSize: 2048 * 1024 * 1024,
  8288. queueSize: 2,
  8289. leavePartsOnError: true,
  8290. };
  8291. bucket
  8292. .upload(params, options)
  8293. .on("httpUploadProgress", function (evt) {
  8294. //这里可以写进度条
  8295. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  8296. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8297. itemTaskIndex
  8298. ].progress = parseInt((evt.loaded / evt.total) * 100);
  8299. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8300. itemTaskIndex
  8301. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  8302. _this.$forceUpdate();
  8303. })
  8304. .send(function (err, data) {
  8305. // loading.close();
  8306. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8307. itemTaskIndex
  8308. ].progress = 100;
  8309. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8310. itemTaskIndex
  8311. ].isFinishSize =
  8312. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8313. itemTaskIndex
  8314. ].isAllSize;
  8315. _this.$forceUpdate();
  8316. setTimeout(() => {
  8317. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8318. itemTaskIndex
  8319. ].proVisible = false;
  8320. _this.$forceUpdate();
  8321. }, 1000);
  8322. _this.inputShow = true;
  8323. if (err) {
  8324. // var a = _this.$refs.upload1.uploadFiles;
  8325. // a.splice(a.length - 1, a.length);
  8326. _this.$message.error("上传失败");
  8327. } else {
  8328. if (type == 2 || type == 3) {
  8329. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8330. itemTaskIndex
  8331. ].chapterData.push({
  8332. name: file.name,
  8333. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8334. // itemTaskIndex
  8335. // ].chapterData.length+1),
  8336. url: data.Location,
  8337. uid: file.uid,
  8338. type: type,
  8339. text: string,
  8340. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8341. // itemTaskIndex
  8342. // ].chapterData.length + 1),
  8343. });
  8344. _this.imgChange1(null, null, type, itemTaskIndex);
  8345. } else if (type == 4) {
  8346. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  8347. itemTaskIndex
  8348. ].fileList1.push({
  8349. name: file.name,
  8350. url: data.Location,
  8351. uid: file.uid,
  8352. });
  8353. _this.imgChange1(null, null, type, itemTaskIndex);
  8354. } else if (type == 5) {
  8355. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  8356. itemTaskIndex
  8357. ].homeworkList.push({
  8358. name: file.name,
  8359. url: data.Location,
  8360. uid: file.uid,
  8361. });
  8362. _this.imgChange1(null, null, type, itemTaskIndex);
  8363. }
  8364. console.log(data.Location);
  8365. }
  8366. });
  8367. }
  8368. },
  8369. addunit() {
  8370. this.unitJson.push({
  8371. dyName: "", //单元标题
  8372. isUpdate: 1,
  8373. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  8374. chapterInfo: [
  8375. {
  8376. isread: false,
  8377. chapterid: this.guid(),
  8378. title: "",
  8379. courseName: "",
  8380. taskJson: [
  8381. {
  8382. task: "",
  8383. taskDetail: "",
  8384. chapterData: [],
  8385. toolText: "",
  8386. toolChoose: [
  8387. {
  8388. tool: [],
  8389. toolDetail: "",
  8390. toolType: 1,
  8391. askCount: 1,
  8392. askTitle: "",
  8393. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8394. },
  8395. ],
  8396. isShowTools: false,
  8397. askCount: 1,
  8398. isFold: 0,
  8399. askTitle: "",
  8400. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8401. checkJson: [{ checkCount: [], checkPerent: [] }],
  8402. homeworkList: [],
  8403. },
  8404. ],
  8405. itemCount: 1,
  8406. fileList1: [],
  8407. video: [],
  8408. testData: [],
  8409. pData: [],
  8410. templateArray: [],
  8411. },
  8412. ],
  8413. });
  8414. this.addindex = this.unitJson.length - 1;
  8415. setTimeout(() => {
  8416. this.unitIndex = this.unitJson.length - 1;
  8417. this.unitSet(this.unitIndex);
  8418. }, 0);
  8419. },
  8420. addToolFun(itemTaskIndex) {
  8421. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8422. itemTaskIndex
  8423. ].toolChoose.push({
  8424. tool: [],
  8425. toolDetail: "",
  8426. toolType: 1,
  8427. askCount: 1,
  8428. askTitle: "",
  8429. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8430. });
  8431. },
  8432. addTaskBorder() {
  8433. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  8434. task: "",
  8435. taskDetail: "",
  8436. chapterData: [],
  8437. toolChoose: [
  8438. {
  8439. tool: [],
  8440. toolDetail: "",
  8441. toolType: 1,
  8442. askCount: 1,
  8443. askTitle: "",
  8444. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8445. },
  8446. ],
  8447. toolText: "",
  8448. isShowTools: false,
  8449. askCount: 1,
  8450. isFold: 0,
  8451. askTitle: "",
  8452. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8453. checkJson: [{ checkCount: [], checkPerent: [] }],
  8454. homeworkList: [],
  8455. });
  8456. },
  8457. add(e, i) {
  8458. var el = e.currentTarget;
  8459. el.getElementsByTagName("input")[0].click();
  8460. },
  8461. fold(i, e, type) {
  8462. var a = e.currentTarget.parentElement.parentElement;
  8463. var b = e.currentTarget.parentElement;
  8464. if (type == 1) {
  8465. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  8466. a.className += " smallTaskBorder";
  8467. b.className += " funBlockTop";
  8468. } else {
  8469. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  8470. a.className = "taskBorder";
  8471. b.className = "funBlock";
  8472. }
  8473. console.log(e);
  8474. },
  8475. deleteHomeworkBox(unitIndex, index, i) {
  8476. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  8477. this.taskCount
  8478. ].homeworkList.splice(i, 1);
  8479. },
  8480. getStudent() {
  8481. let params = {
  8482. oid: this.oid,
  8483. cu: "",
  8484. cn: this.searchPeople,
  8485. };
  8486. this.ajax
  8487. .get(this.$store.state.api + "selectStudentAdd", params)
  8488. .then((res) => {
  8489. this.studentJuri = res.data[0];
  8490. })
  8491. .catch((err) => {
  8492. this.isLoading = false;
  8493. console.error(err);
  8494. });
  8495. },
  8496. getTeacher() {
  8497. let params = {
  8498. oid:
  8499. this.org && this.org != "undefined" && this.org != "null"
  8500. ? this.org
  8501. : this.oid,
  8502. cu: "",
  8503. cn: this.searchTN,
  8504. };
  8505. this.ajax
  8506. .get(
  8507. this.$store.state.api +
  8508. (this.org && this.org != "undefined" && this.org != "null"
  8509. ? "selectTeacherAddOrg"
  8510. : "selectTeacherAdd"),
  8511. params
  8512. )
  8513. .then((res) => {
  8514. let teacherJuri = res.data[0];
  8515. for (var i = 0; i < teacherJuri.length; i++) {
  8516. if (teacherJuri[i].userid == this.userid) {
  8517. teacherJuri.splice(i, 1);
  8518. break;
  8519. }
  8520. }
  8521. this.teacherJuri = teacherJuri;
  8522. })
  8523. .catch((err) => {
  8524. console.error(err);
  8525. });
  8526. },
  8527. searchStudent() {
  8528. this.getStudent();
  8529. },
  8530. //获取班级列表
  8531. getClass() {
  8532. let params = {
  8533. oid: this.oid,
  8534. cn: this.classSearch,
  8535. };
  8536. this.ajax
  8537. .get(this.$store.state.api + "selectClassBySchoolSearch", params)
  8538. .then((res) => {
  8539. if (!this.grade.length) {
  8540. this.grade = res.data[0];
  8541. }
  8542. this.grade2 = res.data[0];
  8543. this.classJuri = res.data[0];
  8544. })
  8545. .catch((err) => {
  8546. this.isLoading = false;
  8547. console.error(err);
  8548. });
  8549. },
  8550. CourseType2Change(val) {
  8551. this.pTypeCheck = [];
  8552. for (var i = 0; i < this.CourseType2.length; i++) {
  8553. let typeA = this.CourseType2[i];
  8554. if (val.indexOf(typeA.name) != -1) {
  8555. this.pTypeCheck.push(...typeA.id);
  8556. }
  8557. }
  8558. },
  8559. getChapterData(e, i, j, ic, type) {
  8560. e.stopPropagation();
  8561. this.updataC = true;
  8562. this.icc = ic;
  8563. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  8564. console.log("还不能下载图片喔");
  8565. }
  8566. },
  8567. deleteChapterData(e, i, j, ic, taskI) {
  8568. e.stopPropagation();
  8569. this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(ic, 1);
  8570. },
  8571. updataVideoT(e, i, j, ic) {
  8572. e.stopPropagation();
  8573. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  8574. ic
  8575. ].name = e.target.value;
  8576. },
  8577. upCd(e, i, j, taskCount, ic) {
  8578. e.stopPropagation();
  8579. if (ic == 0) {
  8580. return;
  8581. }
  8582. var a =
  8583. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1];
  8584. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  8585. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic];
  8586. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  8587. this.$forceUpdate();
  8588. },
  8589. downCd(e, i, j, taskCount, ic) {
  8590. e.stopPropagation();
  8591. if (
  8592. ic ==
  8593. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  8594. 1
  8595. ) {
  8596. return;
  8597. }
  8598. var a =
  8599. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1];
  8600. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  8601. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic];
  8602. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  8603. this.$forceUpdate();
  8604. },
  8605. addWork() {
  8606. let cPan = 1;
  8607. for (var i = 0; i < this.unitJson.length; i++) {
  8608. for (
  8609. var j = 0;
  8610. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  8611. j++
  8612. ) {
  8613. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  8614. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  8615. if (
  8616. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  8617. ) {
  8618. for (
  8619. var z = 0;
  8620. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  8621. z++
  8622. ) {
  8623. if (
  8624. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  8625. .length
  8626. ) {
  8627. this.$message.error("请把工具添加完整");
  8628. cPan = 2;
  8629. break;
  8630. }
  8631. }
  8632. }
  8633. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  8634. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  8635. i
  8636. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  8637. return ele.value != "";
  8638. });
  8639. }
  8640. }
  8641. }
  8642. this.inputShow = true;
  8643. if (cPan == 2) {
  8644. return;
  8645. }
  8646. for (var i = 0; i < this.unitJson.length; i++) {
  8647. delete this.unitJson[i].isUpdate;
  8648. }
  8649. let params = [
  8650. {
  8651. uid: this.userid,
  8652. title: this.courseName.replace(/%/g, "%25"),
  8653. brief: this.courseText.replace(/%/g, "%25"),
  8654. cover:
  8655. this.cover.length > 0
  8656. ? JSON.stringify(this.cover)
  8657. : JSON.stringify([
  8658. {
  8659. name: "noBanner.jpg",
  8660. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  8661. uid: 1656409780264,
  8662. status: "success",
  8663. },
  8664. ]),
  8665. evaId: this.evalua,
  8666. astudent:
  8667. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  8668. see: this.isTeacherSee == true ? 1 : 0,
  8669. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  8670. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  8671. courseType: JSON.stringify(this.courseTypeId),
  8672. ateacher:
  8673. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  8674. inviteCode: JSON.stringify(this.inviteCode),
  8675. },
  8676. ];
  8677. this.ajax
  8678. .post(this.$store.state.api + "addWorkNew2E", params)
  8679. .then((res) => {
  8680. console.log(this.steps);
  8681. // if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  8682. this.$message({
  8683. message: "新增成功",
  8684. type: "success",
  8685. });
  8686. // }
  8687. this.number = res.data.ordernumber;
  8688. this.courseId = res.data.courseId;
  8689. this.cid = res.data.courseId;
  8690. this.courseUserid = this.userid;
  8691. this.islogin = true;
  8692. })
  8693. .catch((err) => {
  8694. this.$message.error("网络不佳");
  8695. console.error(err);
  8696. });
  8697. },
  8698. goCourse() {
  8699. window.parent.postMessage({ cid: this.courseId, type: "1" }, "*");
  8700. },
  8701. updateWork2() {
  8702. let _unitIndex = this.unitIndex;
  8703. let cPan = 1;
  8704. for (
  8705. var j = 0;
  8706. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  8707. j++
  8708. ) {
  8709. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  8710. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  8711. j
  8712. ].proVisible2 = false;
  8713. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  8714. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  8715. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  8716. (ele) => {
  8717. return ele.value != "";
  8718. }
  8719. );
  8720. }
  8721. }
  8722. this.inputShow = true;
  8723. if (cPan == 2) {
  8724. return;
  8725. }
  8726. let params = [
  8727. {
  8728. cid: this.cid,
  8729. chapters: JSON.stringify(this.unitJson),
  8730. uid: this.userid,
  8731. unitIndex: _unitIndex,
  8732. },
  8733. ];
  8734. this.ajax
  8735. .post(this.$store.state.api + "updateWorkNew4", params)
  8736. .then((res) => {
  8737. this.$message({
  8738. message: "修改成功",
  8739. type: "success",
  8740. });
  8741. this.courseId = this.cid;
  8742. })
  8743. .catch((err) => {
  8744. this.$message.error("网络不佳");
  8745. console.error(err);
  8746. });
  8747. },
  8748. updateWork() {
  8749. let cPan = 1;
  8750. for (var i = 0; i < this.unitJson.length; i++) {
  8751. for (
  8752. var j = 0;
  8753. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  8754. j++
  8755. ) {
  8756. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  8757. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  8758. if (
  8759. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  8760. ) {
  8761. for (
  8762. var z = 0;
  8763. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  8764. z++
  8765. ) {
  8766. if (
  8767. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  8768. .length
  8769. ) {
  8770. this.$message.error("请把工具添加完整");
  8771. cPan = 2;
  8772. break;
  8773. }
  8774. }
  8775. }
  8776. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  8777. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  8778. i
  8779. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  8780. return ele.value != "";
  8781. });
  8782. }
  8783. }
  8784. }
  8785. this.inputShow = true;
  8786. if (cPan == 2) {
  8787. this.step--;
  8788. return;
  8789. }
  8790. for (var i = 0; i < this.unitJson.length; i++) {
  8791. delete this.unitJson[i].isUpdate;
  8792. }
  8793. let params = [
  8794. {
  8795. cid: this.cid,
  8796. title: this.courseName.replace(/%/g, "%25"),
  8797. brief: this.courseText.replace(/%/g, "%25"),
  8798. cover:
  8799. this.cover.length > 0
  8800. ? JSON.stringify(this.cover)
  8801. : JSON.stringify([
  8802. {
  8803. name: "noBanner.jpg",
  8804. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  8805. uid: 1656409780264,
  8806. status: "success",
  8807. },
  8808. ]),
  8809. evaId: this.evalua,
  8810. astudent:
  8811. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  8812. see: this.isTeacherSee == true ? 1 : 0,
  8813. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  8814. template: this.myWord != "undefined" ? this.myWord : [],
  8815. uid: this.userid,
  8816. courseType: JSON.stringify(this.courseTypeId),
  8817. ateacher:
  8818. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  8819. inviteCode: JSON.stringify(this.inviteCode),
  8820. },
  8821. ];
  8822. this.ajax
  8823. .post(this.$store.state.api + "updateWorkNew2", params)
  8824. .then((res) => {
  8825. // if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  8826. if (this.cidType == 1) {
  8827. this.$message({
  8828. message: "修改成功",
  8829. type: "success",
  8830. });
  8831. } else {
  8832. this.$message({
  8833. message: "新增成功",
  8834. type: "success",
  8835. });
  8836. }
  8837. // }
  8838. this.number = this.nbOrder;
  8839. this.courseId = this.cid;
  8840. this.steps = 4;
  8841. })
  8842. .catch((err) => {
  8843. this.$message.error("网络不佳");
  8844. console.error(err);
  8845. });
  8846. },
  8847. guid() {
  8848. var _num,
  8849. i,
  8850. _guid = "";
  8851. for (i = 0; i < 32; i++) {
  8852. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  8853. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  8854. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  8855. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  8856. _guid += "-";
  8857. }
  8858. }
  8859. return _guid;
  8860. },
  8861. insertWord() {
  8862. this.dialogVisible1 = true;
  8863. this.updateBoolean2 = false;
  8864. this.tTitle = "";
  8865. this.tdetail = "";
  8866. },
  8867. addWord() {
  8868. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  8869. name: this.tTitle,
  8870. content: this.tdetail,
  8871. uid: this.guid(),
  8872. });
  8873. this.dialogVisible1 = false;
  8874. },
  8875. upWord() {},
  8876. selectWord(uid, i, c) {
  8877. this.dialogVisible1 = true;
  8878. this.updateBoolean2 = true;
  8879. if (
  8880. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  8881. ) {
  8882. this.tTitle =
  8883. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  8884. this.tdetail =
  8885. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  8886. }
  8887. },
  8888. isAddPP() {
  8889. if (this.checkboxList.length > 0) {
  8890. this.$message({
  8891. message: "添加成功",
  8892. type: "success",
  8893. });
  8894. this.dialogVisible3 = false;
  8895. } else {
  8896. this.$message({
  8897. message: "请添加课程成员",
  8898. type: "error",
  8899. });
  8900. }
  8901. },
  8902. isAddClass() {
  8903. this.dialogVisibleClass = false;
  8904. },
  8905. isAddPPTeacher() {
  8906. this.dialogVisibleMember = false;
  8907. this.setMan();
  8908. },
  8909. getTemplate() {
  8910. this.ajax
  8911. .get(this.$store.state.api + "getCourseTemplateT", "")
  8912. .then((res) => {
  8913. this.templateArray = res.data[0];
  8914. this.getTemplateOid();
  8915. this.$forceUpdate();
  8916. })
  8917. .catch((err) => {});
  8918. },
  8919. getTemplateOid() {
  8920. let params = {
  8921. oid: this.oid,
  8922. };
  8923. this.ajax
  8924. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  8925. .then((res) => {
  8926. if (res.data[0].length) {
  8927. this.templateArray = [...res.data[0], ...this.templateArray];
  8928. }
  8929. this.getTemplateOrg();
  8930. this.$forceUpdate();
  8931. })
  8932. .catch((err) => {});
  8933. },
  8934. getTemplateOrg() {
  8935. let params = {
  8936. oid: this.org,
  8937. };
  8938. this.ajax
  8939. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  8940. .then((res) => {
  8941. if (res.data[0].length) {
  8942. this.templateArray = [...res.data[0], ...this.templateArray];
  8943. }
  8944. this.$forceUpdate();
  8945. })
  8946. .catch((err) => {});
  8947. },
  8948. clearChoose() {
  8949. this.clearArray.splice(this.templateC.id, 1);
  8950. this.dialogVisible2 = false;
  8951. },
  8952. clearAttText() {
  8953. this.AttText = {
  8954. title: "",
  8955. text: "",
  8956. };
  8957. this.dialogVisible6 = false;
  8958. },
  8959. clearLine() {
  8960. this.line = "";
  8961. this.dialogVisible7 = false;
  8962. },
  8963. checkTemplate(res) {
  8964. let _this = this;
  8965. _this
  8966. .$confirm("确定选择此模板吗?", "提示", {
  8967. confirmButtonText: "确定",
  8968. cancelButtonText: "取消",
  8969. type: "warning",
  8970. })
  8971. .then(() => {
  8972. _this.unitJson = JSON.parse(res.chapters);
  8973. _this.steps++;
  8974. setTimeout(() => {
  8975. this.checkEva(this.checkId);
  8976. }, 1000);
  8977. })
  8978. .catch(() => {
  8979. return;
  8980. });
  8981. },
  8982. checkTemplate1(w) {
  8983. this.steps++;
  8984. },
  8985. checkTemplate2() {
  8986. let _this = this;
  8987. _this
  8988. .$confirm("确定选择空模板吗?", "提示", {
  8989. confirmButtonText: "确定",
  8990. cancelButtonText: "取消",
  8991. type: "warning",
  8992. })
  8993. .then(() => {
  8994. _this.unitIndex = 0;
  8995. _this.unitJson = [
  8996. {
  8997. dyName: "", //单元标题
  8998. chapterInfo: [
  8999. {
  9000. isread: false,
  9001. chapterid: this.guid(),
  9002. title: "",
  9003. courseName: "",
  9004. taskJson: [
  9005. {
  9006. task: "",
  9007. taskDetail: "",
  9008. chapterData: [],
  9009. toolText: "",
  9010. toolChoose: [
  9011. {
  9012. tool: [],
  9013. toolDetail: "",
  9014. toolType: 1,
  9015. askCount: 1,
  9016. askTitle: "",
  9017. askJson: [
  9018. { askstitle: "", askItem: 1, checkList: [] },
  9019. ],
  9020. },
  9021. ],
  9022. isShowTools: false,
  9023. askCount: 1,
  9024. isFold: 0,
  9025. askTitle: "",
  9026. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9027. checkJson: [{ checkCount: [], checkPerent: [] }],
  9028. homeworkList: [],
  9029. },
  9030. ],
  9031. itemCount: 1,
  9032. fileList1: [],
  9033. video: [],
  9034. testData: [],
  9035. pData: [],
  9036. templateArray: [],
  9037. },
  9038. ],
  9039. },
  9040. ];
  9041. this.steps++;
  9042. this.updateWork();
  9043. })
  9044. .catch(() => {
  9045. return;
  9046. });
  9047. },
  9048. checkTemplate3() {
  9049. let _this = this;
  9050. _this
  9051. .$confirm("确定选择简易模式吗?", "提示", {
  9052. confirmButtonText: "确定",
  9053. cancelButtonText: "取消",
  9054. type: "warning",
  9055. })
  9056. .then(() => {
  9057. _this.unitIndex = 0;
  9058. _this.unitJson = [
  9059. {
  9060. dyName: "", //单元标题
  9061. easy: 1,
  9062. chapterInfo: [
  9063. {
  9064. isread: false,
  9065. chapterid: this.guid(),
  9066. title: "",
  9067. courseName: "",
  9068. taskJson: [
  9069. {
  9070. task: "",
  9071. taskDetail: "",
  9072. chapterData: [],
  9073. toolText: "",
  9074. toolChoose: [
  9075. {
  9076. tool: [],
  9077. toolDetail: "",
  9078. toolType: 1,
  9079. askCount: 1,
  9080. askTitle: "",
  9081. askJson: [
  9082. { askstitle: "", askItem: 1, checkList: [] },
  9083. ],
  9084. },
  9085. ],
  9086. isShowTools: false,
  9087. askCount: 1,
  9088. isFold: 0,
  9089. askTitle: "",
  9090. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9091. checkJson: [{ checkCount: [], checkPerent: [] }],
  9092. homeworkList: [],
  9093. },
  9094. ],
  9095. itemCount: 1,
  9096. fileList1: [],
  9097. video: [],
  9098. testData: [],
  9099. pData: [],
  9100. templateArray: [],
  9101. },
  9102. ],
  9103. },
  9104. ];
  9105. this.steps++;
  9106. this.updateWork();
  9107. })
  9108. .catch(() => {
  9109. return;
  9110. });
  9111. },
  9112. checkTemplate4() {
  9113. let _this = this;
  9114. _this
  9115. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  9116. confirmButtonText: "确定",
  9117. cancelButtonText: "取消",
  9118. type: "warning",
  9119. })
  9120. .then(() => {
  9121. _this.unitIndex = 0;
  9122. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  9123. this.steps++;
  9124. this.updateWork();
  9125. })
  9126. .catch(() => {
  9127. return;
  9128. });
  9129. },
  9130. wordNext() {
  9131. this.dialogVisible2 = false;
  9132. },
  9133. isAddOrUpdateAttText() {
  9134. if (this.AttTextType == 0) {
  9135. this.addAttTextMessage();
  9136. } else {
  9137. this.updateAttText();
  9138. }
  9139. },
  9140. isAddOrUpdateLine() {
  9141. if (!this.lineTitle) {
  9142. this.$message.error("请填写链接标题");
  9143. return;
  9144. }
  9145. if (this.lineType == 0) {
  9146. this.addLine();
  9147. } else {
  9148. this.updateLine();
  9149. }
  9150. },
  9151. addAttTextMessage() {
  9152. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9153. this.taskCount
  9154. ].chapterData.push({
  9155. name: this.AttText.title,
  9156. url: this.AttText.text,
  9157. type: 6,
  9158. });
  9159. this.imgChange1(null, null, 6, this.taskCount);
  9160. this.dialogVisible6 = false;
  9161. },
  9162. selectAttText(itemTaskIndex, i) {
  9163. this.AttText.title =
  9164. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9165. itemTaskIndex
  9166. ].chapterData[i].name;
  9167. this.AttText.text =
  9168. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9169. itemTaskIndex
  9170. ].chapterData[i].url;
  9171. this.taskCount = itemTaskIndex;
  9172. this.AttTextIndex = i;
  9173. this.AttTextType = 1;
  9174. this.dialogVisible6 = true;
  9175. },
  9176. updateAttText() {
  9177. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9178. this.taskCount
  9179. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  9180. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9181. this.taskCount
  9182. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  9183. this.dialogVisible6 = false;
  9184. },
  9185. addLine() {
  9186. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9187. this.lineCount
  9188. ].chapterData.push({
  9189. name: "链接",
  9190. title: this.lineTitle,
  9191. url: this.line,
  9192. type: 8,
  9193. });
  9194. this.imgChange1(null, null, 8, this.lineCount);
  9195. this.dialogVisible7 = false;
  9196. },
  9197. selectLine(itemTaskIndex, i) {
  9198. this.line =
  9199. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9200. itemTaskIndex
  9201. ].chapterData[i].url;
  9202. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9203. itemTaskIndex
  9204. ].chapterData[i].title
  9205. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9206. .chapterData[i].title
  9207. : "";
  9208. this.taskCount = itemTaskIndex;
  9209. this.lineCount = i;
  9210. this.lineType = 1;
  9211. this.dialogVisible7 = true;
  9212. },
  9213. updateLine() {
  9214. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9215. this.taskCount
  9216. ].chapterData[this.lineCount].url = this.line;
  9217. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9218. this.taskCount
  9219. ].chapterData[this.lineCount].title = this.lineTitle;
  9220. this.dialogVisible7 = false;
  9221. },
  9222. addPP() {
  9223. this.dialogVisible3 = true;
  9224. },
  9225. goTo(path) {
  9226. this.$router.push(path);
  9227. },
  9228. openTools(itemTaskIndex, i, toolIndex) {
  9229. this.toolIndex = toolIndex;
  9230. this.taskCount = itemTaskIndex;
  9231. if (i == 4) {
  9232. if (toolIndex == null) {
  9233. var a =
  9234. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9235. .chapterData;
  9236. for (var i = 0; i < a.length; i++) {
  9237. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  9238. this.askJson =
  9239. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9240. itemTaskIndex
  9241. ].chapterData[i].askJson;
  9242. }
  9243. }
  9244. } else {
  9245. this.askJson = JSON.parse(
  9246. JSON.stringify(
  9247. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9248. itemTaskIndex
  9249. ].toolChoose[toolIndex]
  9250. )
  9251. );
  9252. }
  9253. this.dialogVisible5 = true;
  9254. } else if (i == 45) {
  9255. if (
  9256. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9257. .toolChoose[toolIndex].testJson
  9258. ) {
  9259. this.testJson = JSON.parse(
  9260. JSON.stringify(
  9261. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9262. itemTaskIndex
  9263. ].toolChoose[toolIndex].testJson
  9264. )
  9265. );
  9266. } else {
  9267. var testJson = {
  9268. testCount: 1,
  9269. testTitle: "",
  9270. testJson: [
  9271. {
  9272. teststitle: "",
  9273. testItem: 1,
  9274. checkList: [],
  9275. timuList: [],
  9276. answer: [],
  9277. type: "1",
  9278. },
  9279. ],
  9280. };
  9281. this.testJson = testJson;
  9282. }
  9283. this.dialogVisibleChoice = true;
  9284. } else if (i == 47) {
  9285. if (
  9286. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9287. .toolChoose[toolIndex].sentenceList
  9288. ) {
  9289. this.sentenceList = JSON.parse(
  9290. JSON.stringify(
  9291. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9292. itemTaskIndex
  9293. ].toolChoose[toolIndex].sentenceList
  9294. )
  9295. );
  9296. } else {
  9297. var sentenceList = [
  9298. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  9299. ];
  9300. this.sentenceList = sentenceList;
  9301. }
  9302. this.dialogVisibleSentence = true;
  9303. } else if (i == 48) {
  9304. if (
  9305. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9306. .toolChoose[toolIndex].tableJson
  9307. ) {
  9308. this.tableJson = JSON.parse(
  9309. JSON.stringify(
  9310. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9311. itemTaskIndex
  9312. ].toolChoose[toolIndex].tableJson
  9313. )
  9314. );
  9315. } else {
  9316. var tableJson = { text: "" };
  9317. this.tableJson = tableJson;
  9318. }
  9319. this.dialogVisibleTable = true;
  9320. } else if (i == 52) {
  9321. if (
  9322. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9323. .toolChoose[toolIndex].wordJson
  9324. ) {
  9325. this.wordJson = JSON.parse(
  9326. JSON.stringify(
  9327. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9328. itemTaskIndex
  9329. ].toolChoose[toolIndex].wordJson
  9330. )
  9331. );
  9332. } else {
  9333. var wordJson = { text: "" };
  9334. this.wordJson = wordJson;
  9335. }
  9336. this.dialogVisibleWord = true;
  9337. // else if (i == 50) {
  9338. // if (
  9339. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9340. // .toolChoose[toolIndex].uploadJson
  9341. // ) {
  9342. // this.uploadJson = JSON.parse(
  9343. // JSON.stringify(
  9344. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9345. // itemTaskIndex
  9346. // ].toolChoose[toolIndex].uploadJson
  9347. // )
  9348. // );
  9349. // } else {
  9350. // var uploadJson = [];
  9351. // this.uploadJson = uploadJson;
  9352. // }
  9353. // this.dialogVisibleMoreUpload = true;
  9354. // }
  9355. } else if (i == 10) {
  9356. if (
  9357. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9358. .toolChoose[toolIndex].preTime
  9359. ) {
  9360. this.preTime = JSON.parse(
  9361. JSON.stringify(
  9362. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9363. itemTaskIndex
  9364. ].toolChoose[toolIndex].preTime
  9365. )
  9366. );
  9367. } else {
  9368. var preTime = 0;
  9369. this.preTime = preTime;
  9370. }
  9371. this.dialogVisiblePreTime = true;
  9372. } else if (i == 49) {
  9373. if (
  9374. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9375. .toolChoose[toolIndex].groupJson
  9376. ) {
  9377. this.groupJson = JSON.parse(
  9378. JSON.stringify(
  9379. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9380. itemTaskIndex
  9381. ].toolChoose[toolIndex].groupJson
  9382. )
  9383. );
  9384. } else {
  9385. var groupJson = {
  9386. group: [{ name: "第1组" }],
  9387. number: undefined,
  9388. islock: 1,
  9389. };
  9390. this.groupJson = groupJson;
  9391. }
  9392. this.dialogVisibleGroup = true;
  9393. } else if (i == 62) {
  9394. if (
  9395. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9396. .toolChoose[toolIndex].videoJson
  9397. ) {
  9398. this.videoJson = JSON.parse(
  9399. JSON.stringify(
  9400. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9401. itemTaskIndex
  9402. ].toolChoose[toolIndex].videoJson
  9403. )
  9404. );
  9405. } else {
  9406. var videoJson = {
  9407. video: "",
  9408. setting: [],
  9409. };
  9410. this.videoJson = videoJson;
  9411. }
  9412. this.dialogVisibleVideo = true;
  9413. } else if (i == 15) {
  9414. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9415. itemTaskIndex
  9416. ].toolChoose[toolIndex].answerQ
  9417. ? JSON.parse(
  9418. JSON.stringify(
  9419. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9420. itemTaskIndex
  9421. ].toolChoose[toolIndex].answerQ
  9422. )
  9423. )
  9424. : "";
  9425. this.dialogVisible8 = true;
  9426. } else if (i == 40) {
  9427. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9428. itemTaskIndex
  9429. ].toolChoose[toolIndex].rateJson
  9430. ? JSON.parse(
  9431. JSON.stringify(
  9432. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9433. itemTaskIndex
  9434. ].toolChoose[toolIndex].rateJson
  9435. )
  9436. )
  9437. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  9438. this.selectSteps = 1;
  9439. this.dialogVisibleRate = true;
  9440. } else if (i == 42) {
  9441. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9442. itemTaskIndex
  9443. ].toolChoose[toolIndex].answerQ
  9444. ? JSON.parse(
  9445. JSON.stringify(
  9446. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9447. itemTaskIndex
  9448. ].toolChoose[toolIndex].answerQ
  9449. )
  9450. )
  9451. : "";
  9452. this.dialogVisibleMp3 = true;
  9453. } else if (i == 41) {
  9454. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9455. itemTaskIndex
  9456. ].toolChoose[toolIndex].selectJson
  9457. ? JSON.parse(
  9458. JSON.stringify(
  9459. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9460. itemTaskIndex
  9461. ].toolChoose[toolIndex].selectJson
  9462. )
  9463. )
  9464. : { url: "", select: [], answer: [] };
  9465. this.selectSteps = 1;
  9466. this.dialogVisibleSelect = true;
  9467. } else if (i == 3) {
  9468. if (!this.cid) {
  9469. this.$message.error(
  9470. "如果您需要在内容中添加模板,请在修改模式下进行添加。"
  9471. );
  9472. return;
  9473. }
  9474. window.parent.postMessage(
  9475. {
  9476. tools: "3y",
  9477. cid: this.cid,
  9478. stage: this.unitIndex,
  9479. task: itemTaskIndex,
  9480. tool: toolIndex,
  9481. },
  9482. "*"
  9483. );
  9484. } else if (i == 1) {
  9485. if (!this.cid) {
  9486. this.$message.error(
  9487. "如果您需要在内容中添加模板,请在修改模式下进行添加。"
  9488. );
  9489. return;
  9490. }
  9491. window.parent.postMessage(
  9492. {
  9493. tools: "1y",
  9494. cid: this.cid,
  9495. stage: this.unitIndex,
  9496. task: itemTaskIndex,
  9497. tool: toolIndex,
  9498. },
  9499. "*"
  9500. );
  9501. }
  9502. },
  9503. chapAddTools(i) {
  9504. if (this.chapTools[0].tools.length == 0) {
  9505. this.chapTools[0].tools.push(i);
  9506. } else {
  9507. if (this.chapTools[0].tools.indexOf(i) != -1) {
  9508. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  9509. } else {
  9510. this.chapTools[0].tools.push(i);
  9511. }
  9512. }
  9513. this.$forceUpdate();
  9514. },
  9515. addChaptersDataTools() {
  9516. if (this.chapTools[0].tools.indexOf(4) != -1) {
  9517. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9518. this.chapCount
  9519. ].chapterData.push({
  9520. name: this.chapTools[0].toolDetail,
  9521. url: this.chapTools[0].tools,
  9522. type: 7,
  9523. askJson: this.askJson,
  9524. });
  9525. } else {
  9526. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9527. this.chapCount
  9528. ].chapterData.push({
  9529. name: this.chapTools[0].toolDetail,
  9530. url: this.chapTools[0].tools,
  9531. type: 7,
  9532. });
  9533. }
  9534. this.imgChange1(null, null, 7, this.chapCount);
  9535. this.dialogVisible4 = false;
  9536. },
  9537. addTools(i, itemTaskIndex, toolIndex) {
  9538. // if (
  9539. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9540. // .toolChoose[toolIndex].tool.length == 0
  9541. // ) {
  9542. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9543. // itemTaskIndex
  9544. // ].toolChoose[toolIndex].tool.push(i);
  9545. // } else {
  9546. // if (
  9547. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9548. // itemTaskIndex
  9549. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  9550. // ) {
  9551. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9552. // itemTaskIndex
  9553. // ].toolChoose[toolIndex].tool.splice(
  9554. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9555. // itemTaskIndex
  9556. // ].toolChoose[toolIndex].tool.indexOf(i),
  9557. // 1
  9558. // );
  9559. // } else {
  9560. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9561. // itemTaskIndex
  9562. // ].toolChoose[toolIndex].tool.push(i);
  9563. // }
  9564. // console.log(
  9565. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9566. // .toolChoose[toolIndex].tool
  9567. // );
  9568. // }
  9569. if (i == 4) {
  9570. if (
  9571. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9572. .toolChoose[toolIndex].askJson.askTitle == "" ||
  9573. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9574. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  9575. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9576. .toolChoose[toolIndex].askJson[0].checkList < 2
  9577. ) {
  9578. this.openTools(itemTaskIndex, 4, toolIndex);
  9579. // this.$message({
  9580. // message: "请填写完整问卷内容",
  9581. // type: "error",
  9582. // });
  9583. return;
  9584. }
  9585. }
  9586. if (i == 45) {
  9587. if (
  9588. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9589. .toolChoose[toolIndex].testJson ||
  9590. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9591. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  9592. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9593. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  9594. ) {
  9595. this.openTools(itemTaskIndex, 45, toolIndex);
  9596. // this.$message({
  9597. // message: "请填写完整问卷内容",
  9598. // type: "error",
  9599. // });
  9600. return;
  9601. }
  9602. }
  9603. if (i == 47) {
  9604. if (
  9605. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9606. .toolChoose[toolIndex].sentenceList ||
  9607. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9608. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  9609. ) {
  9610. this.openTools(itemTaskIndex, 47, toolIndex);
  9611. return;
  9612. }
  9613. }
  9614. // if (i == 48) {
  9615. // if (
  9616. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9617. // .toolChoose[toolIndex].tableJson
  9618. // ) {
  9619. // this.openTools(itemTaskIndex, 48, toolIndex);
  9620. // return;
  9621. // }
  9622. // }
  9623. // if (i == 50) {
  9624. // if (
  9625. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9626. // .toolChoose[toolIndex].uploadJson
  9627. // ) {
  9628. // this.openTools(itemTaskIndex, 50, toolIndex);
  9629. // return;
  9630. // }
  9631. // }
  9632. if (i == 49) {
  9633. if (
  9634. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9635. .toolChoose[toolIndex].groupJson
  9636. ) {
  9637. this.openTools(itemTaskIndex, 49, toolIndex);
  9638. return;
  9639. }
  9640. }
  9641. if (i == 62) {
  9642. if (
  9643. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9644. .toolChoose[toolIndex].videoJson
  9645. ) {
  9646. this.openTools(itemTaskIndex, 62, toolIndex);
  9647. return;
  9648. }
  9649. }
  9650. if (i == 15) {
  9651. if (
  9652. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9653. .toolChoose[toolIndex].answerQ ||
  9654. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9655. .toolChoose[toolIndex].answerQ == ""
  9656. ) {
  9657. this.openTools(itemTaskIndex, 15, toolIndex);
  9658. // this.$message({
  9659. // message: "请填写问答内容",
  9660. // type: "error",
  9661. // });
  9662. return;
  9663. }
  9664. }
  9665. if (i == 40) {
  9666. if (
  9667. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9668. .toolChoose[toolIndex].rateJson ||
  9669. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9670. .toolChoose[toolIndex].rateJson.length
  9671. ) {
  9672. this.openTools(itemTaskIndex, 40, toolIndex);
  9673. return;
  9674. }
  9675. }
  9676. if (i == 41) {
  9677. if (
  9678. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9679. .toolChoose[toolIndex].selectJson ||
  9680. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9681. .toolChoose[toolIndex].selectJson.url == "" ||
  9682. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9683. .toolChoose[toolIndex].selectJson.select.length ||
  9684. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9685. .toolChoose[toolIndex].selectJson.answer.length
  9686. ) {
  9687. this.openTools(itemTaskIndex, 41, toolIndex);
  9688. return;
  9689. }
  9690. }
  9691. if (i == 42) {
  9692. if (
  9693. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9694. .toolChoose[toolIndex].answerQ ||
  9695. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9696. .toolChoose[toolIndex].answerQ == ""
  9697. ) {
  9698. this.openTools(itemTaskIndex, 42, toolIndex);
  9699. return;
  9700. }
  9701. }
  9702. if (
  9703. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9704. .toolChoose[toolIndex].tool.length > 0
  9705. ) {
  9706. if (
  9707. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9708. itemTaskIndex
  9709. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  9710. ) {
  9711. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9712. itemTaskIndex
  9713. ].toolChoose[toolIndex].tool.splice(
  9714. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9715. itemTaskIndex
  9716. ].toolChoose[toolIndex].tool.indexOf(i),
  9717. 1
  9718. );
  9719. } else {
  9720. // this.$message({
  9721. // message: "每个工具只能添加一个",
  9722. // type: "error",
  9723. // });
  9724. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9725. itemTaskIndex
  9726. ].toolChoose[toolIndex].tool = [];
  9727. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9728. itemTaskIndex
  9729. ].toolChoose[toolIndex].tool.push(i);
  9730. }
  9731. } else {
  9732. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9733. itemTaskIndex
  9734. ].toolChoose[toolIndex].tool.push(i);
  9735. }
  9736. this.$forceUpdate();
  9737. },
  9738. addAskList() {
  9739. this.askJson.askJson.push({
  9740. askstitle: "",
  9741. askItem: 1,
  9742. checkList: [],
  9743. });
  9744. this.askJson.askCount++;
  9745. },
  9746. addTestList() {
  9747. this.testJson.testJson.push({
  9748. teststitle: "",
  9749. testItem: 1,
  9750. checkList: [],
  9751. timuList: [],
  9752. answer: [],
  9753. type: "1",
  9754. });
  9755. this.testJson.testCount++;
  9756. },
  9757. deleteAskList(index) {
  9758. this.askJson.askJson.splice(index, 1);
  9759. this.askJson.askCount--;
  9760. },
  9761. deleteTestList(index) {
  9762. this.testJson.testJson.splice(index, 1);
  9763. this.testJson.testCount--;
  9764. },
  9765. addcheckList(json) {
  9766. json.checkList.length++;
  9767. json.askItem++;
  9768. },
  9769. deletecheckList(json) {
  9770. json.checkList.length--;
  9771. json.askItem--;
  9772. },
  9773. addTcheckList(json) {
  9774. json.checkList.length++;
  9775. json.testItem++;
  9776. },
  9777. deleteTcheckList(json) {
  9778. json.checkList.length--;
  9779. json.testItem--;
  9780. },
  9781. checkTestType(type, json) {
  9782. json.type = type;
  9783. json.answer = [];
  9784. },
  9785. checkAskType(type, json) {
  9786. json.type = type;
  9787. json.checkList = [];
  9788. },
  9789. addSelectList(json) {
  9790. json.select.push("");
  9791. json.answer.push("");
  9792. },
  9793. deleteSelectList(json) {
  9794. // json.select.length--;
  9795. // json.answer.length--;
  9796. json.select.splice(json.select.length - 1, 1);
  9797. json.answer.splice(json.answer.length - 1, 1);
  9798. },
  9799. addAsk() {
  9800. if (this.askJson.askTitle === "") {
  9801. this.$message.error("标题不能为空!");
  9802. return;
  9803. }
  9804. var aj = this.askJson.askJson;
  9805. var b = 1;
  9806. for (var i = 0; i < aj.length; i++) {
  9807. if (aj[i].askstitle === "") {
  9808. var a = 1;
  9809. for (let index = 0; index < aj[i].askItem; index++) {
  9810. const element = aj[i].checkList[index]
  9811. ? aj[i].checkList[index]
  9812. : "";
  9813. if (element != "") {
  9814. b++;
  9815. this.$message.error("填写了选项,题目不能为空!");
  9816. return;
  9817. } else {
  9818. a++;
  9819. }
  9820. }
  9821. if (b == 1) {
  9822. this.$message.error("至少填写一个问题");
  9823. return;
  9824. }
  9825. } else if (aj[i].askstitle != "") {
  9826. for (let index = 0; index < aj[i].askItem; index++) {
  9827. const element = aj[i].checkList[index]
  9828. ? aj[i].checkList[index]
  9829. : "";
  9830. var index = 0;
  9831. for (var z = 0; z < aj[i].checkList.length; z++) {
  9832. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  9833. if (checkC != "") {
  9834. index++;
  9835. } else {
  9836. this.$message.error("选项不能为空!");
  9837. return;
  9838. }
  9839. }
  9840. b++;
  9841. if (index < 2) {
  9842. this.$message.error("填写了的题目,选项至少要有两项!");
  9843. return;
  9844. }
  9845. }
  9846. }
  9847. }
  9848. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  9849. var elc = el.checkList.filter((element) => {
  9850. return element != "";
  9851. });
  9852. return el.askstitle != "" && elc.length != 0;
  9853. });
  9854. if (!this.dialogVisible4) {
  9855. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9856. this.taskCount
  9857. ].toolChoose[this.toolIndex] = this.askJson;
  9858. }
  9859. this.dialogVisible5 = false;
  9860. if (
  9861. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9862. .toolChoose[this.toolIndex].tool != 4
  9863. ) {
  9864. this.addTools(4, this.taskCount, this.toolIndex);
  9865. }
  9866. },
  9867. addTest() {
  9868. // if (this.testJson.testTitle === "") {
  9869. // this.$message.error("标题不能为空!");
  9870. // return;
  9871. // }
  9872. var aj = this.testJson.testJson;
  9873. var b = 1;
  9874. for (var i = 0; i < aj.length; i++) {
  9875. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  9876. var a = 1;
  9877. for (let index = 0; index < aj[i].testItem; index++) {
  9878. const element = aj[i].checkList[index]
  9879. ? aj[i].checkList[index]
  9880. : "";
  9881. if (element != "") {
  9882. b++;
  9883. this.$message.error("填写了选项,题目不能为空!");
  9884. return;
  9885. } else {
  9886. a++;
  9887. }
  9888. }
  9889. if (b == 1) {
  9890. this.$message.error("至少填写一个问题");
  9891. return;
  9892. }
  9893. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  9894. for (let index = 0; index < aj[i].testItem; index++) {
  9895. const element = aj[i].checkList[index]
  9896. ? aj[i].checkList[index]
  9897. : "";
  9898. var index = 0;
  9899. for (var z = 0; z < aj[i].checkList.length; z++) {
  9900. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  9901. if (checkC != "") {
  9902. index++;
  9903. } else {
  9904. this.$message.error("选项不能为空!");
  9905. return;
  9906. }
  9907. }
  9908. b++;
  9909. if (index < 2) {
  9910. this.$message.error("填写了的题目,选项至少要有两项!");
  9911. return;
  9912. }
  9913. if (
  9914. (aj[i].type == "2" && !aj[i].answer.length) ||
  9915. (aj[i].type == "1" && aj[i].answer !== 0 && !aj[i].answer)
  9916. ) {
  9917. this.$message.error("有题目未选择答案请选择答案");
  9918. return;
  9919. }
  9920. }
  9921. }
  9922. }
  9923. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  9924. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  9925. var elc = el.checkList.filter((element) => {
  9926. return element != "";
  9927. });
  9928. return (
  9929. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  9930. );
  9931. });
  9932. isTestJson.testCount = isTestJson.testJson.length;
  9933. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9934. this.taskCount
  9935. ].toolChoose[this.toolIndex].testJson = isTestJson;
  9936. this.dialogVisibleChoice = false;
  9937. if (
  9938. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9939. .toolChoose[this.toolIndex].tool != 45
  9940. ) {
  9941. this.addTools(45, this.taskCount, this.toolIndex);
  9942. }
  9943. },
  9944. addVideoJson(videoJson) {
  9945. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9946. this.taskCount
  9947. ].toolChoose[this.toolIndex].videoJson = videoJson;
  9948. this.dialogVisibleVideo = false;
  9949. if (
  9950. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9951. .toolChoose[this.toolIndex].tool != 62
  9952. ) {
  9953. this.addTools(62, this.taskCount, this.toolIndex);
  9954. }
  9955. },
  9956. //自动获取剪贴板
  9957. pasteOption() {
  9958. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  9959. if (!iframe) {
  9960. this.$message.error("请使用AI共创生成题目");
  9961. return;
  9962. }
  9963. let copyData = iframe.contentWindow.copyData;
  9964. if (!copyData || !copyData.selectData.length) {
  9965. this.$message.error("请使用AI共创生成题目");
  9966. return;
  9967. }
  9968. let selectData = copyData.selectData;
  9969. for (var i = 0; i < selectData.length; i++) {
  9970. let answer = 0;
  9971. switch (selectData[i].answer[0]) {
  9972. case "A":
  9973. answer = 0;
  9974. break;
  9975. case "B":
  9976. answer = 1;
  9977. break;
  9978. case "C":
  9979. answer = 2;
  9980. break;
  9981. case "D":
  9982. answer = 3;
  9983. break;
  9984. case "E":
  9985. answer = 4;
  9986. break;
  9987. default:
  9988. break;
  9989. }
  9990. this.testJson.testJson.push({
  9991. teststitle: selectData[i].subject,
  9992. testItem: selectData[i].options.length,
  9993. checkList: selectData[i].options,
  9994. timuList: [],
  9995. answer: answer,
  9996. type: "1",
  9997. });
  9998. this.testJson.testCount++;
  9999. }
  10000. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  10001. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  10002. var elc = el.checkList.filter((element) => {
  10003. return element != "";
  10004. });
  10005. return (
  10006. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  10007. );
  10008. });
  10009. isTestJson.testCount = isTestJson.testJson.length;
  10010. this.testJson = isTestJson;
  10011. this.$forceUpdate();
  10012. },
  10013. pasteTask() {
  10014. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  10015. if (!iframe) {
  10016. this.$message.error("请使用AI共创生成");
  10017. return;
  10018. }
  10019. let copyData = iframe.contentWindow.copyData;
  10020. if (!copyData || !copyData.tasksData || !copyData.tasksData.length) {
  10021. this.$message.error("请使用AI共创生成");
  10022. return;
  10023. }
  10024. let stageTasksData = copyData.tasksData;
  10025. let taskA = [];
  10026. let tasks = stageTasksData;
  10027. for (var j = 0; j < tasks.length; j++) {
  10028. taskA.push({
  10029. task: tasks[j].taskName,
  10030. taskDetail: tasks[j].taskDecs,
  10031. chapterData: [],
  10032. toolText: "",
  10033. toolChoose: [
  10034. {
  10035. tool: [],
  10036. toolDetail: "",
  10037. toolType: 1,
  10038. askCount: 1,
  10039. askTitle: "",
  10040. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10041. },
  10042. ],
  10043. isShowTools: false,
  10044. askCount: 1,
  10045. isFold: 0,
  10046. askTitle: "",
  10047. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10048. checkJson: [{ checkCount: [], checkPerent: [] }],
  10049. homeworkList: [],
  10050. });
  10051. }
  10052. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA;
  10053. this.$forceUpdate();
  10054. },
  10055. pasteStage() {
  10056. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  10057. if (!iframe) {
  10058. this.$message.error("请使用AI共创生成");
  10059. return;
  10060. }
  10061. let copyData = iframe.contentWindow.copyData;
  10062. if (!copyData || !copyData.stageData || !copyData.stageData.length) {
  10063. this.$message.error("请使用AI共创生成");
  10064. return;
  10065. }
  10066. let stageData = copyData.stageData;
  10067. let stage = [];
  10068. for (var i = 0; i < stageData.length; i++) {
  10069. stage.push({
  10070. dyName: stageData[i], //单元标题
  10071. chapterInfo: [
  10072. {
  10073. isread: false,
  10074. chapterid: this.guid(),
  10075. title: "",
  10076. courseName: "",
  10077. taskJson: [
  10078. {
  10079. task: "",
  10080. taskDetail: "",
  10081. chapterData: [],
  10082. toolText: "",
  10083. toolChoose: [
  10084. {
  10085. tool: [],
  10086. toolDetail: "",
  10087. toolType: 1,
  10088. askCount: 1,
  10089. askTitle: "",
  10090. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10091. },
  10092. ],
  10093. isShowTools: false,
  10094. askCount: 1,
  10095. isFold: 0,
  10096. askTitle: "",
  10097. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10098. checkJson: [{ checkCount: [], checkPerent: [] }],
  10099. homeworkList: [],
  10100. },
  10101. ],
  10102. itemCount: 1,
  10103. fileList1: [],
  10104. video: [],
  10105. testData: [],
  10106. pData: [],
  10107. templateArray: [],
  10108. },
  10109. ],
  10110. });
  10111. }
  10112. let _this = this;
  10113. _this
  10114. .$confirm("确定选择智能粘贴模式吗?", "提示", {
  10115. confirmButtonText: "确定",
  10116. cancelButtonText: "取消",
  10117. type: "warning",
  10118. })
  10119. .then(() => {
  10120. _this.unitIndex = 0;
  10121. _this.unitJson = stage;
  10122. _this.steps++;
  10123. _this.updateWork();
  10124. })
  10125. .catch(() => {
  10126. return;
  10127. });
  10128. },
  10129. addAnswer() {
  10130. if (this.answerQ == "") {
  10131. this.$message.error("请输入您想要问的问题");
  10132. return;
  10133. }
  10134. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10135. this.taskCount
  10136. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  10137. this.dialogVisible8 = false;
  10138. if (
  10139. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10140. .toolChoose[this.toolIndex].tool != 15
  10141. ) {
  10142. this.addTools(15, this.taskCount, this.toolIndex);
  10143. }
  10144. },
  10145. addMp3Answer() {
  10146. if (this.answerQ == "") {
  10147. this.$message.error("请输入您想要回答的问题");
  10148. return;
  10149. }
  10150. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10151. this.taskCount
  10152. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  10153. this.dialogVisibleMp3 = false;
  10154. },
  10155. addRateAnswer() {
  10156. var a = 1;
  10157. for (var i = 0; i < this.rateJson.length; i++) {
  10158. if (this.rateJson[i].value == "") {
  10159. a = 2;
  10160. break;
  10161. }
  10162. }
  10163. if (a == 2) {
  10164. this.$message.error("请把评价信息填写完整");
  10165. return;
  10166. }
  10167. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10168. this.taskCount
  10169. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  10170. this.dialogVisibleRate = false;
  10171. if (
  10172. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10173. .toolChoose[this.toolIndex].tool != 40
  10174. ) {
  10175. this.addTools(40, this.taskCount, this.toolIndex);
  10176. }
  10177. },
  10178. addSelectAnswer() {
  10179. if (this.selectJson.url == "") {
  10180. this.$message.error("请上传题目");
  10181. return;
  10182. }
  10183. if (!this.selectJson.select.length) {
  10184. this.$message.error("请添加选项");
  10185. return;
  10186. }
  10187. if (!this.selectJson.answer.length) {
  10188. this.$message.error("请设置答案");
  10189. return;
  10190. }
  10191. var a = 1;
  10192. for (var i = 0; i < this.selectJson.answer.length; i++) {
  10193. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  10194. a = 2;
  10195. }
  10196. }
  10197. if (a == 2) {
  10198. this.$message.error("请设置答案");
  10199. return;
  10200. }
  10201. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10202. this.taskCount
  10203. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  10204. this.dialogVisibleSelect = false;
  10205. if (
  10206. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10207. .toolChoose[this.toolIndex].tool != 41
  10208. ) {
  10209. this.addTools(41, this.taskCount, this.toolIndex);
  10210. }
  10211. },
  10212. nextSelectSteps() {
  10213. if (this.selectJson.url == "") {
  10214. this.$message.error("请上传题目");
  10215. return;
  10216. }
  10217. if (!this.selectJson.select.length) {
  10218. this.$message.error("请添加选项");
  10219. return;
  10220. }
  10221. var a = 1;
  10222. for (var i = 0; i < this.selectJson.select.length; i++) {
  10223. if (!this.selectJson.select[i]) {
  10224. a = 2;
  10225. }
  10226. }
  10227. if (a == 2) {
  10228. this.$message.error("添加的选项不能为空");
  10229. return;
  10230. }
  10231. this.selectSteps++;
  10232. },
  10233. selectCourseDetail() {
  10234. if (this.cid == "" || this.cid == undefined) {
  10235. console.log("这是新增课程");
  10236. this.selectAllType();
  10237. } else {
  10238. this.cidType = 1;
  10239. let params = {
  10240. cid: this.cid,
  10241. };
  10242. this.ajax
  10243. .get(this.$store.state.api + "select_course_detail", params)
  10244. .then((res) => {
  10245. this.loading = true;
  10246. this.unitJson = JSON.parse(res.data[0][0].chapters);
  10247. for (var j = 0; j < this.unitJson.length; j++) {
  10248. for (
  10249. var k = 0;
  10250. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  10251. k++
  10252. ) {
  10253. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  10254. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  10255. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  10256. : [];
  10257. let _chapterData = [];
  10258. for (
  10259. var c = 0;
  10260. c <
  10261. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  10262. .length;
  10263. c++
  10264. ) {
  10265. if (
  10266. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  10267. ) {
  10268. _chapterData.push(
  10269. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  10270. );
  10271. }
  10272. }
  10273. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  10274. _chapterData;
  10275. }
  10276. }
  10277. this.$forceUpdate();
  10278. this.courseName = res.data[0][0].title;
  10279. this.courseText = res.data[0][0].brief;
  10280. this.evalua = res.data[0][0].evaId;
  10281. this.cover = JSON.parse(res.data[0][0].cover);
  10282. this.noneBtnImg = this.cover.length >= 1;
  10283. // this.checkboxList =
  10284. // res.data[0][0].course_student.length > 0
  10285. // ? JSON.parse(res.data[0][0].course_student)
  10286. // : [];
  10287. this.checkboxList2 = res.data[0][0].juri
  10288. ? res.data[0][0].juri.split(",")
  10289. : [];
  10290. this.inviteCode = [];
  10291. for (var i = 0; i < res.data[2].length; i++) {
  10292. this.inviteCode.push({
  10293. cid: res.data[2][i].classid,
  10294. ic: res.data[2][i].code,
  10295. });
  10296. }
  10297. this.checkboxList3 = res.data[0][0].course_teacher
  10298. ? res.data[0][0].course_teacher.split(",")
  10299. : [];
  10300. // this.isTeacherSee =
  10301. // res.data[0][0].is_teacher_look == 0 ? true : false;
  10302. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  10303. this.myWord = res.data[0][0].template;
  10304. this.templateC.id = "123";
  10305. this.courseUserid = res.data[0][0].userid;
  10306. // if(this.courseUserid == this.userid){
  10307. // this.InviteChange(this.checkboxList2)
  10308. // }
  10309. this.nbOrder = res.data[0][0].ordernumber;
  10310. this.courseTypeId = [];
  10311. for (var i = 0; i < res.data[1].length; i++) {
  10312. this.courseTypeId.push(res.data[1][i].typeid);
  10313. }
  10314. console.log(this.courseTypeId);
  10315. // if (this.timer) clearInterval(this.timer);
  10316. if (this.timer) clearTimeout(this.timer);
  10317. this.timer = null;
  10318. // this.timer = setInterval(() => {
  10319. // this.seleteCourseUpdate();
  10320. this.setMan();
  10321. this.selectAllType();
  10322. // }, 5000);
  10323. this.$forceUpdate();
  10324. setTimeout(() => {
  10325. this.checkEva(this.evalua);
  10326. }, 0);
  10327. })
  10328. .catch((err) => {
  10329. console.error(err);
  10330. });
  10331. }
  10332. },
  10333. seleteCourseUpdate() {
  10334. let params = {
  10335. cid: this.cid,
  10336. };
  10337. this.ajax
  10338. .get(this.$store.state.api + "select_course_detail", params)
  10339. .then((res) => {
  10340. // console.log(this.unitJson);
  10341. let unitJson = JSON.parse(res.data[0][0].chapters);
  10342. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  10343. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  10344. let _unitJson = [];
  10345. let _chapAarry = [];
  10346. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  10347. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  10348. let index = 1;
  10349. let chapindex;
  10350. if (_unitJson2.length > unitJson.length) {
  10351. for (let c = 0; c < _unitJson2.length; c++) {
  10352. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  10353. }
  10354. for (let j = 0; j < unitJson.length; j++) {
  10355. let count = 0;
  10356. for (let k = 0; k < _unitJson2.length; k++) {
  10357. if (
  10358. unitJson[j].chapterInfo[0].chapterid ==
  10359. _unitJson2[k].chapterInfo[0].chapterid
  10360. ) {
  10361. count++;
  10362. _chapAarry.splice(
  10363. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  10364. 1
  10365. );
  10366. _unitJson.push(unitJson[j]);
  10367. break;
  10368. }
  10369. }
  10370. // if(count === 0){
  10371. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  10372. // }
  10373. }
  10374. for (let k = 0; k < _unitJson2.length; k++) {
  10375. if (_unitJson2[k].isUpdate == 1) {
  10376. _chapAarry.splice(
  10377. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  10378. 1
  10379. );
  10380. _unitJson.push(_unitJson2[k]);
  10381. }
  10382. }
  10383. console.log(_chapAarry);
  10384. for (let d = 0; d < _unitJson2.length; d++) {
  10385. if (
  10386. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  10387. ) {
  10388. if (_unitIndex == d) {
  10389. index = 2;
  10390. }
  10391. chapindex = d;
  10392. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  10393. }
  10394. }
  10395. } else {
  10396. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  10397. }
  10398. for (let i = 0; i < unitJson.length; i++) {
  10399. if (
  10400. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  10401. _unitJson[i].chapterInfo[0].chapterid !=
  10402. unitJson[i].chapterInfo[0].chapterid
  10403. ) {
  10404. if (i == _unitJson.length - 1) {
  10405. // this.unitIndex++
  10406. _unitIndex2++;
  10407. }
  10408. _unitJson.splice(i, 0, unitJson[i]);
  10409. } else if (i > _unitJson.length - 1) {
  10410. _unitJson.push(unitJson[i]);
  10411. } else if (
  10412. _unitJson[i].chapterInfo[0].chapterid ==
  10413. unitJson[i].chapterInfo[0].chapterid
  10414. ) {
  10415. _unitJson[i] = unitJson[i];
  10416. }
  10417. // if (i == _unitIndex) {
  10418. // continue;
  10419. // } else
  10420. }
  10421. if (_chapAarry.length && index != 2) {
  10422. if (chapindex < _unitIndex) {
  10423. this.isDelete = 2;
  10424. // this.unitIndex--;
  10425. _unitIndex2--;
  10426. } else if (
  10427. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  10428. _unitJson[_unitIndex].chapterInfo[0].chapterid
  10429. ) {
  10430. this.isDelete = 2;
  10431. for (let n = 0; n < _unitJson.length; n++) {
  10432. if (
  10433. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  10434. _unitJson[n].chapterInfo[0].chapterid
  10435. ) {
  10436. // this.unitIndex = n;
  10437. _unitIndex2 = n;
  10438. _unitJson[n] = _unitJson2[_unitIndex];
  10439. break;
  10440. }
  10441. }
  10442. }
  10443. } else if (index != 2) {
  10444. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  10445. _unitJson2[_unitIndex];
  10446. for (
  10447. var ci = 0;
  10448. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  10449. ci++
  10450. ) {
  10451. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  10452. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  10453. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  10454. .toolChoose
  10455. : [];
  10456. let _chapterData = [];
  10457. for (
  10458. var c = 0;
  10459. c <
  10460. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  10461. .length;
  10462. c++
  10463. ) {
  10464. if (
  10465. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  10466. .chapterData[c]
  10467. ) {
  10468. _chapterData.push(
  10469. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  10470. .chapterData[c]
  10471. );
  10472. }
  10473. }
  10474. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  10475. _chapterData;
  10476. }
  10477. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  10478. }
  10479. if (index == 1) {
  10480. this.unitJson = _unitJson;
  10481. this.$forceUpdate();
  10482. setTimeout(() => {
  10483. if (this.unitIndex != _unitIndex2) {
  10484. this.isDelete = 2;
  10485. this.unitIndex = _unitIndex2;
  10486. }
  10487. }, 0);
  10488. this.timer = setTimeout(() => {
  10489. this.seleteCourseUpdate();
  10490. }, 1000);
  10491. } else if (index == 2) {
  10492. let _this = this;
  10493. _this
  10494. .$confirm(
  10495. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  10496. "提示",
  10497. {
  10498. confirmButtonText: "需要",
  10499. cancelButtonText: "取消",
  10500. type: "warning",
  10501. }
  10502. )
  10503. .then(() => {
  10504. if (_this.time()) {
  10505. _this.restoreWork(
  10506. _chapAarry[0],
  10507. _unitJson,
  10508. chapindex,
  10509. _unitJson2,
  10510. _unitIndex2
  10511. );
  10512. }
  10513. })
  10514. .catch(() => {
  10515. _this.unitJson = _unitJson;
  10516. _this.$forceUpdate();
  10517. setTimeout(() => {
  10518. if (this.unitIndex != _unitIndex2) {
  10519. this.isDelete = 2;
  10520. this.unitIndex = _unitIndex2;
  10521. }
  10522. }, 0);
  10523. _this.timer = setTimeout(() => {
  10524. _this.seleteCourseUpdate();
  10525. }, 1000);
  10526. });
  10527. }
  10528. })
  10529. .catch((err) => {
  10530. console.error(err);
  10531. });
  10532. },
  10533. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  10534. let params = [
  10535. {
  10536. cid: this.cid,
  10537. chapters: JSON.stringify(this.unitJson),
  10538. uid: this.userid,
  10539. chapid: chapid,
  10540. },
  10541. ];
  10542. this.ajax
  10543. .post(this.$store.state.api + "restoreWork", params)
  10544. .then((res) => {
  10545. this.$message({
  10546. message: "恢复成功",
  10547. type: "success",
  10548. });
  10549. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  10550. this.unitJson = unitJson;
  10551. this.$forceUpdate();
  10552. setTimeout(() => {
  10553. if (this.unitIndex != unitIndex2) {
  10554. this.isDelete = 2;
  10555. this.unitIndex = unitIndex2;
  10556. }
  10557. }, 0);
  10558. this.timer = setTimeout(() => {
  10559. this.seleteCourseUpdate();
  10560. }, 1000);
  10561. })
  10562. .catch((err) => {
  10563. this.$message.error("网络不佳");
  10564. console.error(err);
  10565. });
  10566. },
  10567. getTypeName() {
  10568. console.log(this.courseTypeId);
  10569. this.$forceUpdate();
  10570. },
  10571. selectAllType() {
  10572. let params = {
  10573. org: this.org && this.org != "" ? this.org : "",
  10574. oid: this.oid && this.oid != "" ? this.oid : "",
  10575. };
  10576. this.ajax
  10577. .get(this.$store.state.api + "selectAllType", params)
  10578. .then((res) => {
  10579. this.CourseType = res.data;
  10580. this.CourseType2 = [
  10581. { name: "智见课程", id: [] },
  10582. { name: "智行课程", id: [] },
  10583. { name: "智创课程", id: [] },
  10584. ];
  10585. for (var cti = 0; cti < res.data[0].length; cti++) {
  10586. if (
  10587. res.data[0][cti].name == "年级" ||
  10588. res.data[0][cti].name == "学科"
  10589. ) {
  10590. this.CourseType2[1].id.push(res.data[0][cti].id);
  10591. this.CourseType2[0].id.push(res.data[0][cti].id);
  10592. } else if (res.data[0][cti].name == "主题") {
  10593. this.CourseType2[2].id.push(res.data[0][cti].id);
  10594. }
  10595. if(res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5"){
  10596. res.data[0][cti].name = "年级";
  10597. }else if(res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"){
  10598. res.data[0][cti].name = "学科";
  10599. }else if(res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5"){
  10600. res.data[0][cti].name = "主题";
  10601. }
  10602. }
  10603. let _courseTypeId = [];
  10604. for (var i = 0; i < res.data[0].length; i++) {
  10605. if (!this.cid) {
  10606. this.courseTypeId[res.data[0][i].id] = [];
  10607. }
  10608. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  10609. // }
  10610. this.CourseTypeJson[res.data[0][i].id] = [];
  10611. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  10612. if (res.data[0][i].name == "栏目") {
  10613. this.CourseType[0][i].name = "主题";
  10614. }
  10615. }
  10616. if (res.data[2].length == 0 && res.data[3].length == 0) {
  10617. for (var j = 0; j < res.data[1].length; j++) {
  10618. if (
  10619. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  10620. _courseTypeId.indexOf(res.data[1][j].id) == -1
  10621. ) {
  10622. _courseTypeId.push(res.data[1][j].id);
  10623. }
  10624. if (res.data[0][i].id == res.data[1][j].pid) {
  10625. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  10626. }
  10627. }
  10628. } else {
  10629. if (res.data[2].length > 0) {
  10630. for (var j = 0; j < res.data[2].length; j++) {
  10631. if (
  10632. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  10633. _courseTypeId.indexOf(res.data[2][j].id) == -1
  10634. ) {
  10635. _courseTypeId.push(res.data[2][j].id);
  10636. }
  10637. if (res.data[0][i].id == res.data[2][j].pid) {
  10638. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  10639. }
  10640. }
  10641. }
  10642. if (res.data[3].length > 0) {
  10643. for (var j = 0; j < res.data[3].length; j++) {
  10644. if (
  10645. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  10646. _courseTypeId.indexOf(res.data[3][j].id) == -1
  10647. ) {
  10648. _courseTypeId.push(res.data[3][j].id);
  10649. }
  10650. if (res.data[0][i].id == res.data[3][j].pid) {
  10651. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  10652. }
  10653. }
  10654. }
  10655. }
  10656. }
  10657. this.courseTypeId = _courseTypeId;
  10658. })
  10659. .catch((err) => {
  10660. console.error(err);
  10661. });
  10662. },
  10663. selectType() {
  10664. this.ajax
  10665. .get(this.$store.state.api + "selectType")
  10666. .then((res) => {
  10667. this.CourseType = res.data;
  10668. for (var i = 0; i < res.data[0].length; i++) {
  10669. if (!this.cid) {
  10670. this.courseTypeId[res.data[0][i].id] = "";
  10671. }
  10672. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  10673. if (res.data[0][i].name == "栏目") {
  10674. this.CourseType[0][i].name = "主题";
  10675. }
  10676. }
  10677. for (var j = 0; j < res.data[1].length; j++) {
  10678. if (res.data[0][i].id == res.data[1][j].pid) {
  10679. if (!this.CourseTypeJson[res.data[0][i].id]) {
  10680. this.CourseTypeJson[res.data[0][i].id] = [];
  10681. }
  10682. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  10683. }
  10684. }
  10685. }
  10686. this.selectTypeByOid();
  10687. this.selectTypeByOrg();
  10688. })
  10689. .catch((err) => {
  10690. console.error(err);
  10691. });
  10692. },
  10693. selectTypeByOid() {
  10694. let params = {
  10695. oid: this.oid,
  10696. };
  10697. this.ajax
  10698. .get(this.$store.state.api + "selectTypeByOid", params)
  10699. .then((res) => {
  10700. for (var i = 0; i < res.data[0].length; i++) {
  10701. for (var j = 0; j < res.data[1].length; j++) {
  10702. if (res.data[0][i].id == res.data[1][j].pid) {
  10703. if (!this.CourseTypeJson[res.data[0][i].id]) {
  10704. this.CourseTypeJson[res.data[0][i].id] = [];
  10705. }
  10706. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  10707. }
  10708. }
  10709. }
  10710. })
  10711. .catch((err) => {
  10712. console.error(err);
  10713. });
  10714. },
  10715. selectTypeByOrg() {
  10716. let params = {
  10717. oid: this.org,
  10718. };
  10719. this.ajax
  10720. .get(this.$store.state.api + "selectTypeByOrg", params)
  10721. .then((res) => {
  10722. for (var i = 0; i < res.data[0].length; i++) {
  10723. for (var j = 0; j < res.data[1].length; j++) {
  10724. if (res.data[0][i].id == res.data[1][j].pid) {
  10725. if (!this.CourseTypeJson[res.data[0][i].id]) {
  10726. this.CourseTypeJson[res.data[0][i].id] = [];
  10727. }
  10728. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  10729. }
  10730. }
  10731. }
  10732. this.$forceUpdate();
  10733. })
  10734. .catch((err) => {
  10735. console.error(err);
  10736. });
  10737. },
  10738. OtherMb(type) {
  10739. this.typeMode = type;
  10740. setTimeout(() => {
  10741. this.checkEva(this.checkId);
  10742. }, 0);
  10743. },
  10744. openMember() {
  10745. this.searchTN = "";
  10746. this.getTeacher();
  10747. this.dialogVisibleMember = true;
  10748. },
  10749. checkEva(id, type) {
  10750. this.dialogVisiblemb = false;
  10751. this.selectEva();
  10752. if (this.evalua != id && type == 2) {
  10753. this.$message.success("导入成功");
  10754. }
  10755. this.evalua = id;
  10756. this.checkId = id;
  10757. if (this.evalua != "") {
  10758. for (var i = 0; i < this.evaJuri.length; i++) {
  10759. if (this.evalua == this.evaJuri[i].id) {
  10760. this.eTitle = this.evaJuri[i].title;
  10761. this.eJson = JSON.parse(this.evaJuri[i].content);
  10762. }
  10763. }
  10764. this.data.data = [];
  10765. this.$forceUpdate();
  10766. setTimeout(() => {
  10767. this.setMindData();
  10768. }, 500);
  10769. }
  10770. },
  10771. deleteEva() {
  10772. let _this = this;
  10773. if (_this.evalua == "") {
  10774. this.$message.warning("内容已经清空了,请勿重复清空");
  10775. return;
  10776. }
  10777. _this
  10778. .$confirm("确定删除此目标吗?", "提示", {
  10779. confirmButtonText: "确定",
  10780. cancelButtonText: "取消",
  10781. type: "warning",
  10782. })
  10783. .then(() => {
  10784. _this.evalua = "";
  10785. _this.checkId = "";
  10786. _this.eTitle = "";
  10787. let _unitJson = _this.unitJson;
  10788. for (var i = 0; i < _unitJson.length; i++) {
  10789. let _task = _unitJson[i].chapterInfo[0].taskJson;
  10790. for (var j = 0; j < _task.length; j++) {
  10791. let _eList = _task[j].eList;
  10792. for (var k = 0; k < _eList.length; k++) {
  10793. delete _eList[k].target;
  10794. }
  10795. }
  10796. }
  10797. _this.$forceUpdate();
  10798. if (_this.cid) {
  10799. _this.updateWork();
  10800. }
  10801. })
  10802. .catch(() => {
  10803. return;
  10804. });
  10805. },
  10806. selectEva() {
  10807. let params = {
  10808. oid: this.oid,
  10809. };
  10810. this.ajax
  10811. .get(this.$store.state.api + "selectAllEvaluation", params)
  10812. .then((res) => {
  10813. this.evaJuri = res.data[0];
  10814. })
  10815. .catch((err) => {
  10816. console.error(err);
  10817. });
  10818. },
  10819. setMindData() {
  10820. let targetArray = [];
  10821. this.data.data = [];
  10822. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  10823. let _eJson = Object.keys(this.eJson);
  10824. let _e = this.eJson;
  10825. for (let i = 0; i < _eJson.length; i++) {
  10826. let element = _e[_eJson[i]];
  10827. this.data.data.push({
  10828. id: element.id,
  10829. parentid: "root",
  10830. topic: element.name,
  10831. });
  10832. // targetArray.push({
  10833. // id: element.id,
  10834. // parentid: "root",
  10835. // name: element.name,
  10836. // });
  10837. targetArray.push({
  10838. value: element.name,
  10839. label: element.name,
  10840. children: [],
  10841. });
  10842. let _eJsonc = Object.keys(element.child);
  10843. let _e2 = element.child;
  10844. for (let j = 0; j < _eJsonc.length; j++) {
  10845. let _ec = _e2[_eJsonc[j]];
  10846. this.data.data.push({
  10847. id: _ec.id,
  10848. parentid: element.id,
  10849. topic: _ec.name,
  10850. });
  10851. // targetArray.push({
  10852. // id: _ec.id,
  10853. // parentid: element.id,
  10854. // name: _ec.name,
  10855. // });
  10856. targetArray[i].children.push({
  10857. value: _ec.name,
  10858. label: _ec.name,
  10859. children: [],
  10860. });
  10861. let _eJsonz = Object.keys(_ec.child);
  10862. let _e3 = _ec.child;
  10863. for (let z = 0; z < _eJsonz.length; z++) {
  10864. let _ez = _e3[_eJsonz[z]];
  10865. this.data.data.push({
  10866. id: _ez.id,
  10867. parentid: _ec.id,
  10868. topic: _ez.name,
  10869. });
  10870. // targetArray.push({
  10871. // id: _ez.id,
  10872. // parentid: _ec.id,
  10873. // name: _ez.name,
  10874. // });
  10875. targetArray[i].children[j].children.push({
  10876. value: _ez.name,
  10877. label: _ez.name,
  10878. });
  10879. }
  10880. }
  10881. }
  10882. this.targetArray = targetArray;
  10883. this.$forceUpdate();
  10884. },
  10885. /*添加评价 */
  10886. addEList(index, tIndex) {
  10887. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  10888. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  10889. value: "",
  10890. detail: "",
  10891. score: 5,
  10892. })
  10893. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  10894. { value: "", detail: "", score: 5 },
  10895. ]);
  10896. this.$forceUpdate();
  10897. },
  10898. forceUpdate() {
  10899. this.$forceUpdate();
  10900. },
  10901. deletEList(index, tIndex, eIndex) {
  10902. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  10903. eIndex,
  10904. 1
  10905. );
  10906. this.$forceUpdate();
  10907. },
  10908. getChoosePic(t) {
  10909. this.chooseType = t;
  10910. this.getAllBanner();
  10911. },
  10912. getAllBanner() {
  10913. this.sysPicVisible = true;
  10914. let params = {
  10915. t: this.chooseType,
  10916. };
  10917. this.ajax
  10918. .get(this.$store.state.api + "selectAllBanner", params)
  10919. .then((res) => {
  10920. this.sysPic = res.data[0];
  10921. })
  10922. .catch((err) => {
  10923. console.error(err);
  10924. });
  10925. },
  10926. // getClass() {
  10927. // let params = {
  10928. // oid: this.oid,
  10929. // };
  10930. // this.ajax
  10931. // .get(this.$store.state.api + "selectClassBySchool", params)
  10932. // .then((res) => {
  10933. // this.classJuri = res.data[0];
  10934. // })
  10935. // .catch((err) => {
  10936. // console.error(err);
  10937. // });
  10938. // },
  10939. deleteSysPic() {
  10940. this.cover = [];
  10941. this.isSysPic = false;
  10942. },
  10943. deleteSelectPic() {
  10944. this.selectJson.url = "";
  10945. },
  10946. setEListStar() {
  10947. this.$forceUpdate();
  10948. },
  10949. deletRateList(i) {
  10950. this.rateJson.splice(i, 1);
  10951. },
  10952. addRateList() {
  10953. this.rateJson.push({ detail: "", score: 5, value: "" });
  10954. },
  10955. addSt() {
  10956. this.sentenceList.push({
  10957. sentenceTitle: "",
  10958. addSentence: [],
  10959. rightAnswer: [],
  10960. });
  10961. },
  10962. addSen(i) {
  10963. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  10964. // this.isPushTitleList.push(this.sentenceTitle);
  10965. this.sentenceList[i].sentenceTitle = "";
  10966. },
  10967. setRightAnswer(s, i, j) {
  10968. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  10969. this.sentenceList[i].rightAnswer.push(s);
  10970. }
  10971. },
  10972. returnCard(r, i, j) {
  10973. this.sentenceList[i].rightAnswer.splice(j, 1);
  10974. },
  10975. addSentenceTool() {
  10976. for (var i = 0; i < this.sentenceList.length; i++) {
  10977. if (this.sentenceList[i].rightAnswer.length == 0) {
  10978. this.$message.error("请将信息填写完整!");
  10979. return;
  10980. }
  10981. if (
  10982. this.sentenceList[i].addSentence.length !=
  10983. this.sentenceList[i].rightAnswer.length
  10984. ) {
  10985. this.$message.error("请将信息填写完整!");
  10986. return;
  10987. }
  10988. }
  10989. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10990. this.taskCount
  10991. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  10992. this.sentenceList = [
  10993. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  10994. ];
  10995. this.dialogVisibleSentence = false;
  10996. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10997. // itemTaskIndex
  10998. // ].toolChoose[toolIndex].tool = [];
  10999. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11000. // itemTaskIndex
  11001. // ].toolChoose[toolIndex].tool.push(i);
  11002. if (
  11003. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11004. .toolChoose[this.toolIndex].tool != 47
  11005. ) {
  11006. this.addTools(47, this.taskCount, this.toolIndex);
  11007. }
  11008. },
  11009. addTableJson() {
  11010. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  11011. // this.$message.error("请将信息填写完整!");
  11012. // return;
  11013. // }
  11014. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11015. this.taskCount
  11016. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  11017. // this.tableJson = [{ text: "" }];
  11018. // this.dialogVisibleTable = false;
  11019. this.$message.success("上传成功");
  11020. if (
  11021. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11022. .toolChoose[this.toolIndex].tool != 48
  11023. ) {
  11024. this.addTools(48, this.taskCount, this.toolIndex);
  11025. }
  11026. },
  11027. addWordJson() {
  11028. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11029. this.taskCount
  11030. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  11031. // this.wordJson = [{ text: "" }];
  11032. // this.dialogVisibleWord = false;
  11033. this.$message.success("上传成功");
  11034. if (
  11035. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11036. .toolChoose[this.toolIndex].tool != 52
  11037. ) {
  11038. this.addTools(52, this.taskCount, this.toolIndex);
  11039. }
  11040. },
  11041. addMoreUpload() {
  11042. if (this.uploadJson.length == 0) {
  11043. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11044. this.taskCount
  11045. ].toolChoose[this.toolIndex].uploadJson = [];
  11046. } else {
  11047. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11048. this.taskCount
  11049. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  11050. }
  11051. this.uploadJson = [];
  11052. this.dialogVisibleMoreUpload = false;
  11053. if (
  11054. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11055. .toolChoose[this.toolIndex].tool != 50
  11056. ) {
  11057. this.addTools(50, this.taskCount, this.toolIndex);
  11058. }
  11059. },
  11060. addPreTime() {
  11061. if (this.preTime == 0) {
  11062. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11063. this.taskCount
  11064. ].toolChoose[this.toolIndex].preTime = 0;
  11065. } else {
  11066. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11067. this.taskCount
  11068. ].toolChoose[this.toolIndex].preTime = this.preTime;
  11069. }
  11070. this.preTime = 0;
  11071. this.dialogVisiblePreTime = false;
  11072. if (
  11073. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11074. .toolChoose[this.toolIndex].tool != 10
  11075. ) {
  11076. this.addTools(10, this.taskCount, this.toolIndex);
  11077. }
  11078. },
  11079. goToTask(i) {
  11080. $(".rightBox")[0].scrollTop =
  11081. $(".taskBorder")[i].offsetTop +
  11082. $(".taskBorder")[i].parentElement.parentElement.offsetTop;
  11083. this.isClickColor = i + 1;
  11084. },
  11085. taskMove(type, index) {
  11086. // this
  11087. // .$confirm("切换任务顺序将删除所有工具的提交成果,是否继续此操作?", "提示", {
  11088. // confirmButtonText: "确定",
  11089. // cancelButtonText: "取消",
  11090. // type: "warning",
  11091. // })
  11092. // .then(() => {
  11093. if (type == 1) {
  11094. if (index > 0) {
  11095. let a = JSON.parse(
  11096. JSON.stringify(
  11097. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1]
  11098. )
  11099. );
  11100. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  11101. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  11102. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  11103. }
  11104. } else {
  11105. if (
  11106. index <
  11107. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  11108. ) {
  11109. let a = JSON.parse(
  11110. JSON.stringify(
  11111. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1]
  11112. )
  11113. );
  11114. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  11115. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  11116. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  11117. }
  11118. }
  11119. this.$forceUpdate();
  11120. // })
  11121. // .catch(() => {
  11122. // return;
  11123. // })
  11124. },
  11125. addGroup(i) {
  11126. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  11127. this.groupJson.group.push({
  11128. name: "第" + (this.groupJson.group.length + 1) + "组",
  11129. });
  11130. },
  11131. deleteGroup(i) {
  11132. this.groupJson.group.splice(i, 1);
  11133. },
  11134. addGroupJson() {
  11135. for (var i = 0; i < this.groupJson.group.length; i++) {
  11136. if (!this.groupJson.group[i].name) {
  11137. this.$message.error("请将信息填写完整!");
  11138. return;
  11139. }
  11140. }
  11141. if (!this.groupJson.number) {
  11142. this.$message.error("请将信息填写完整!");
  11143. return;
  11144. }
  11145. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11146. this.taskCount
  11147. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  11148. JSON.stringify(this.groupJson)
  11149. );
  11150. this.dialogVisibleGroup = false;
  11151. this.groupJson = {};
  11152. if (
  11153. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11154. .toolChoose[this.toolIndex].tool != 49
  11155. ) {
  11156. this.addTools(49, this.taskCount, this.toolIndex);
  11157. }
  11158. },
  11159. updateTime(preTime) {
  11160. this.preTime = preTime;
  11161. },
  11162. InviteChange(val) {
  11163. console.log(val);
  11164. return;
  11165. let array = JSON.parse(JSON.stringify(val));
  11166. this.inviteCode = this.inviteCode.filter((el) => {
  11167. if (val.indexOf(el.cid) != -1) {
  11168. array.splice(array.indexOf(el.cid), 1);
  11169. return el;
  11170. }
  11171. });
  11172. for (var i = 0; i < array.length; i++) {
  11173. this.getInviteCode(array[i]);
  11174. }
  11175. },
  11176. async getInviteCode(cid) {
  11177. let code = this.randomNumber();
  11178. let params = {
  11179. code: code,
  11180. oid: this.oid,
  11181. };
  11182. let type = 1;
  11183. for (var i = 0; i < this.inviteCode.length; i++) {
  11184. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  11185. type = 2;
  11186. }
  11187. }
  11188. if (type == 2) {
  11189. this.getInviteCode(cid);
  11190. return;
  11191. }
  11192. const res = await this.ajax.get(
  11193. this.$store.state.api + "selectInviteCode2",
  11194. params
  11195. );
  11196. if (
  11197. res.data.length &&
  11198. res.data[0].length &&
  11199. res.data[0][0].courseId != this.cid
  11200. ) {
  11201. this.getInviteCode(cid);
  11202. return;
  11203. }
  11204. let array = [];
  11205. for (var i = 0; i < this.inviteCode.length; i++) {
  11206. array.push(this.inviteCode[i].cid);
  11207. }
  11208. if (array.indexOf(cid) != -1) {
  11209. this.inviteCode[array.indexOf(cid)].ic = code;
  11210. } else {
  11211. this.inviteCode.push({ cid: cid, ic: code });
  11212. }
  11213. },
  11214. OpenInviteD(cid) {
  11215. let array = [];
  11216. this.icode = "";
  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.icode = this.inviteCode[array.indexOf(cid)].ic;
  11222. }
  11223. this.inviteId = cid;
  11224. this.dialogVisibleInvite = true;
  11225. },
  11226. addInvite() {
  11227. let reg = /^[A-Za-z0-9]{4,}$/;
  11228. if (!reg.test(this.icode)) {
  11229. this.$message.error("请输入至少四位数字或英文组合的随机码");
  11230. return;
  11231. }
  11232. let type = 1;
  11233. for (var i = 0; i < this.inviteCode.length; i++) {
  11234. if (
  11235. this.inviteCode[i].cid != this.inviteId &&
  11236. this.icode == this.inviteCode[i].ic
  11237. ) {
  11238. type = 2;
  11239. }
  11240. }
  11241. if (type == 2) {
  11242. this.$message.error("已有此随机码,不能重复");
  11243. return;
  11244. }
  11245. let params = {
  11246. code: this.icode,
  11247. oid: this.oid,
  11248. };
  11249. this.ajax
  11250. .get(this.$store.state.api + "selectInviteCode", params)
  11251. .then((res) => {
  11252. if (
  11253. res.data.length &&
  11254. res.data[0].length &&
  11255. res.data[0][0].courseId != this.cid
  11256. ) {
  11257. this.$message.error("已有此随机码,不能重复");
  11258. return;
  11259. }
  11260. let array = [];
  11261. for (var i = 0; i < this.inviteCode.length; i++) {
  11262. array.push(this.inviteCode[i].cid);
  11263. }
  11264. if (array.indexOf(this.inviteId) != -1) {
  11265. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  11266. } else {
  11267. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  11268. }
  11269. this.icode = "";
  11270. this.dialogVisibleInvite = false;
  11271. })
  11272. .catch((err) => {
  11273. console.error(err);
  11274. });
  11275. },
  11276. randomNumber() {
  11277. // 随机生成两位数
  11278. // let num = Math.floor(Math.random() * 900) + 100;
  11279. // 生成 0 到 99 之间的随机整数
  11280. const randomNumber = Math.floor(Math.random() * 100);
  11281. // 如果随机数小于 10,补上前导零
  11282. const num =
  11283. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  11284. // 随机生成两个大写字母
  11285. let letters = "";
  11286. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  11287. for (let i = 0; i < 3; i++) {
  11288. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  11289. }
  11290. // 随机生成两位数字和字母的组合
  11291. let mix = "";
  11292. let chars =
  11293. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  11294. for (let i = 0; i < 3; i++) {
  11295. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  11296. mix += char;
  11297. }
  11298. // 随机选择一种类型
  11299. let type = Math.floor(Math.random() * 3);
  11300. return num;
  11301. // 根据类型输出结果
  11302. switch (type) {
  11303. case 0:
  11304. console.log(num); // 输出两位数
  11305. return num;
  11306. case 1:
  11307. console.log(letters); // 输出两个大写字母
  11308. return letters;
  11309. case 2:
  11310. console.log(mix); // 输出两位数字和字母的组合
  11311. return mix;
  11312. }
  11313. },
  11314. },
  11315. beforeDestroy() {
  11316. clearTimeout(this.timer);
  11317. this.timer = null;
  11318. clearInterval(this.timer2);
  11319. this.timer2 = null;
  11320. },
  11321. beforeRouteLeave(to, from, next) {
  11322. clearTimeout(this.timer);
  11323. this.timer = null;
  11324. clearInterval(this.timer2);
  11325. this.timer2 = null;
  11326. next();
  11327. },
  11328. created() {
  11329. this.getStudent();
  11330. this.getTeacher();
  11331. this.getClass();
  11332. this.getTemplate();
  11333. // this.selectType();
  11334. this.selectEva();
  11335. this.loading = false;
  11336. this.timer2 = setInterval(() => {
  11337. this.selectEva();
  11338. }, 5000);
  11339. setTimeout(() => {
  11340. this.selectCourseDetail();
  11341. }, 500);
  11342. },
  11343. mounted() {
  11344. this.$nextTick(() => {
  11345. //监听这个dom的scroll事件
  11346. $(".rightBox")[0].addEventListener("scroll", this.scrollChange);
  11347. });
  11348. },
  11349. };
  11350. </script>
  11351. <style scoped>
  11352. @media screen and (max-width: 1280px) {
  11353. .mbCss {
  11354. flex-direction: column !important;
  11355. }
  11356. .pjCss {
  11357. width: 100% !important;
  11358. }
  11359. .evaCss {
  11360. width: 100% !important;
  11361. }
  11362. }
  11363. .dialog_diy >>> .el-dialog__header {
  11364. background: #3c3c3c !important;
  11365. padding: 15px 20px;
  11366. }
  11367. .dialog_diy >>> .el-dialog__title {
  11368. color: #fff;
  11369. }
  11370. .dialog_diy >>> .el-dialog__headerbtn {
  11371. top: 19px;
  11372. }
  11373. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close {
  11374. color: #fff;
  11375. }
  11376. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover {
  11377. color: #fff;
  11378. }
  11379. .dialog_diy >>> .el-dialog__body,
  11380. .dialog_diy >>> .el-dialog__footer {
  11381. background: #fafafa;
  11382. }
  11383. .dialog_diy3 >>> .el-dialog__body,
  11384. .dialog_diy3 >>> .el-dialog__footer {
  11385. background: #eee !important;
  11386. }
  11387. .dialog_diy3 >>> .el-dialog__body {
  11388. padding: 20px 20px;
  11389. }
  11390. .source_diy >>> .el-dialog {
  11391. height: 100% !important;
  11392. margin: 0 auto !important;
  11393. }
  11394. .source_diy >>> .el-dialog__body {
  11395. height: calc(100% - 185px);
  11396. overflow: auto;
  11397. background: #e6eaf0;
  11398. }
  11399. .source_diy >>> .el-dialog__footer {
  11400. background: #e6eaf0 !important;
  11401. }
  11402. .left {
  11403. border-right: 1px solid rgb(60, 94, 143);
  11404. display: flex;
  11405. flex-direction: column;
  11406. align-items: center;
  11407. min-height: 600px;
  11408. width: 385px;
  11409. height: 80%;
  11410. }
  11411. .tips {
  11412. color: rgb(128, 128, 128);
  11413. font-size: 12px;
  11414. width: 270px;
  11415. margin: 40px;
  11416. }
  11417. .pb_content {
  11418. height: 100% !important;
  11419. /* margin: 0 20px 0 20px; */
  11420. }
  11421. .pb_content_body {
  11422. width: 100% !important;
  11423. height: 100%;
  11424. }
  11425. .info_solid {
  11426. width: 270px;
  11427. height: 30px;
  11428. border-left: 1px solid #bdbdbd;
  11429. margin: 10px 0px 10px 30px;
  11430. }
  11431. .info_steps {
  11432. width: 270px;
  11433. font-size: 0.875rem;
  11434. display: flex;
  11435. align-items: center;
  11436. }
  11437. .info_steps span:nth-child(1) {
  11438. width: 30px;
  11439. height: 30px;
  11440. background: rgba(0, 0, 0, 0.38);
  11441. display: block;
  11442. color: #fff;
  11443. border-radius: 40px;
  11444. text-align: center;
  11445. line-height: 30px;
  11446. }
  11447. .steps_active {
  11448. background: #3d67bc !important;
  11449. }
  11450. .info_steps span:nth-child(2) {
  11451. margin-left: 5px;
  11452. }
  11453. .right {
  11454. height: 100%;
  11455. width: 100%;
  11456. display: flex;
  11457. overflow: hidden;
  11458. }
  11459. .basic_box {
  11460. margin: 0 auto;
  11461. position: relative;
  11462. padding: 0 20px 0 20px;
  11463. }
  11464. .basic_box2 {
  11465. position: relative;
  11466. width: calc(100% - 300px);
  11467. }
  11468. .basic_box_success {
  11469. width: 100%;
  11470. height: 100%;
  11471. padding: 50px 0;
  11472. position: relative;
  11473. text-align: center;
  11474. /* border-bottom: 1px solid #bfbfbf; */
  11475. box-sizing: border-box;
  11476. display: flex;
  11477. align-items: center;
  11478. flex-direction: column;
  11479. justify-content: center;
  11480. }
  11481. .info_title {
  11482. font-size: 1.5em;
  11483. margin-right: 25px;
  11484. /* margin: 20px 30px 20px 30px; */
  11485. }
  11486. .bInfo_title {
  11487. text-align: left;
  11488. margin: 10px 0;
  11489. }
  11490. .small_title {
  11491. font-size: 14px;
  11492. line-height: 40px;
  11493. }
  11494. .chapter_beizhu {
  11495. font-size: 12px;
  11496. font-weight: bold;
  11497. float: right;
  11498. color: rgb(128, 128, 128);
  11499. margin-top: 5px;
  11500. }
  11501. .chapter_uploadBox1 {
  11502. text-align: left;
  11503. background-color: rgb(242, 242, 242);
  11504. width: 100%;
  11505. height: 67px;
  11506. padding: 0px 15px;
  11507. border-radius: 8px;
  11508. overflow: hidden;
  11509. font-size: 16px;
  11510. box-sizing: border-box;
  11511. position: relative;
  11512. }
  11513. .chapter_add {
  11514. width: 100%;
  11515. height: 32px;
  11516. margin-top: 15px;
  11517. cursor: pointer;
  11518. }
  11519. .chapter_add_l {
  11520. margin-left: 5px;
  11521. width: 30px;
  11522. height: 30px;
  11523. float: left;
  11524. border: 1px solid #aaa;
  11525. color: #aaa;
  11526. border-radius: 50%;
  11527. font-size: 25px;
  11528. text-align: center;
  11529. }
  11530. .chapter_add_r {
  11531. font-size: 18px;
  11532. height: 40px;
  11533. line-height: 30px;
  11534. text-indent: 10px;
  11535. color: #aaa;
  11536. }
  11537. .chapter_add_r span {
  11538. font-size: 12px;
  11539. color: rgb(204, 204, 204);
  11540. }
  11541. .chapter_add_input {
  11542. display: none;
  11543. }
  11544. .line {
  11545. width: 85%;
  11546. margin: 0 auto;
  11547. border-top: 1px solid #e5e5e5;
  11548. margin-top: 20px;
  11549. }
  11550. .info_btnBox {
  11551. width: 100%;
  11552. display: flex;
  11553. justify-content: space-evenly;
  11554. margin: 10px 0 10px 0;
  11555. }
  11556. .info_btn,
  11557. .teacherWord {
  11558. color: #fff;
  11559. background-color: #0f7eff;
  11560. padding: 8px 24px;
  11561. font-size: 0.9375rem;
  11562. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  11563. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  11564. min-width: 64px;
  11565. font-weight: 500;
  11566. border-radius: 4px;
  11567. box-sizing: border-box;
  11568. border: none;
  11569. cursor: pointer;
  11570. }
  11571. .teacherWord {
  11572. width: 105px !important;
  11573. text-align: center !important;
  11574. line-height: 36px !important;
  11575. padding: 0 !important;
  11576. font-size: 14px !important;
  11577. margin: 10px 0 !important;
  11578. }
  11579. .wordTeacher {
  11580. display: flex;
  11581. flex-direction: column;
  11582. width: 20%;
  11583. text-align: center;
  11584. font-size: 14px;
  11585. margin: 30px 30px 0 10px;
  11586. background: #fff;
  11587. position: relative;
  11588. border-radius: 5px;
  11589. padding: 25px 0px;
  11590. }
  11591. .wordPic {
  11592. margin: 0 auto;
  11593. width: 60px;
  11594. height: 60px;
  11595. cursor: pointer;
  11596. }
  11597. .deleteWord {
  11598. width: 22px;
  11599. height: 22px;
  11600. position: absolute;
  11601. right: 5px;
  11602. top: -15px;
  11603. cursor: pointer;
  11604. display: none;
  11605. z-index: 999;
  11606. }
  11607. .wordPic > img,
  11608. .deleteWord > img,
  11609. .addToolImg > img {
  11610. width: 100%;
  11611. height: 100%;
  11612. }
  11613. .info_btn:hover {
  11614. background-color: #4f7cd5 !important;
  11615. }
  11616. .cru_selectBox {
  11617. display: flex;
  11618. margin: 24px 0 10px;
  11619. flex-wrap: nowrap;
  11620. white-space: nowrap;
  11621. overflow: auto;
  11622. position: relative;
  11623. height: 47px;
  11624. }
  11625. .cru_selectBox::-webkit-scrollbar {
  11626. /*滚动条整体样式*/
  11627. width: 6px;
  11628. /*高宽分别对应横竖滚动条的尺寸*/
  11629. height: 6px;
  11630. }
  11631. /*定义滚动条轨道 内阴影+圆角*/
  11632. .cru_selectBox::-webkit-scrollbar-track {
  11633. border-radius: 10px;
  11634. background-color: #eee;
  11635. }
  11636. /*定义滑块 内阴影+圆角*/
  11637. .cru_selectBox::-webkit-scrollbar-thumb {
  11638. border-radius: 10px;
  11639. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  11640. background-color: rgba(0, 0, 0, 0.1);
  11641. }
  11642. .cru_line {
  11643. position: absolute;
  11644. bottom: 0px;
  11645. transition: all 0.5s;
  11646. left: 0px;
  11647. width: 125px;
  11648. margin-left: -25px;
  11649. }
  11650. .cru_select {
  11651. font-size: 21px;
  11652. margin-right: 37px;
  11653. margin-left: 5px;
  11654. cursor: pointer;
  11655. color: #a6a6a6;
  11656. }
  11657. .cru_selected {
  11658. color: #0b7fc2 !important;
  11659. }
  11660. .chapter_contentbox {
  11661. display: flex;
  11662. align-items: center;
  11663. margin-top: 15px;
  11664. }
  11665. .chapter_contentbox div:nth-child(1) {
  11666. /* width: 150px; */
  11667. margin: 0px;
  11668. /* font-size: 2em; */
  11669. color: black;
  11670. display: block;
  11671. white-space: nowrap;
  11672. overflow: hidden;
  11673. text-overflow: ellipsis;
  11674. /* font-weight: 600; */
  11675. margin-right: 20px;
  11676. font-size: 18px;
  11677. }
  11678. .chapter_contentbox div:nth-child(2) {
  11679. width: 380px;
  11680. }
  11681. .chapter_contentbox div:nth-child(3),
  11682. .remove {
  11683. background-image: url("../../../assets/remove.png");
  11684. cursor: pointer;
  11685. opacity: 0.5;
  11686. width: 40px;
  11687. height: 50px;
  11688. background-repeat: no-repeat;
  11689. background-position: 5px 10px;
  11690. }
  11691. .remove1 {
  11692. background-image: url("../../../assets/remove1.png");
  11693. background-repeat: no-repeat;
  11694. background-position: 5px 10px;
  11695. width: 40px;
  11696. height: 50px;
  11697. cursor: pointer;
  11698. }
  11699. .binfo_input {
  11700. font: inherit;
  11701. color: currentColor;
  11702. width: 100%;
  11703. margin: 0;
  11704. /* padding: 15px 14px; */
  11705. padding: 8px 14px;
  11706. display: block;
  11707. min-width: 0;
  11708. outline: none;
  11709. box-sizing: content-box;
  11710. background: none;
  11711. border: 1px solid rgba(0, 0, 0, 0.23);
  11712. border-radius: 4px;
  11713. box-sizing: border-box;
  11714. background: #fff;
  11715. font-size: 14px;
  11716. }
  11717. .binfo_input:focus-visible {
  11718. border: 1px solid rgba(61, 103, 188);
  11719. }
  11720. .time {
  11721. display: flex;
  11722. margin: 35px 0 80px 0;
  11723. }
  11724. .chapter_btnbox {
  11725. width: 160px;
  11726. border-radius: 5px;
  11727. border: 2px dashed gray;
  11728. display: flex;
  11729. padding: 8px 50px;
  11730. align-items: center;
  11731. justify-content: center;
  11732. margin: 30px auto 0;
  11733. cursor: pointer;
  11734. }
  11735. .icon_add {
  11736. position: relative;
  11737. width: 24px;
  11738. padding-top: 20px;
  11739. border-radius: 100%;
  11740. border-width: 2px;
  11741. border-style: solid;
  11742. border-color: gray;
  11743. }
  11744. .icon_add i:nth-child(1) {
  11745. position: absolute;
  11746. left: 50%;
  11747. top: 50%;
  11748. height: 60%;
  11749. transform: translate(-50%, -50%);
  11750. border-width: 1px;
  11751. border-style: solid;
  11752. border-color: inherit;
  11753. }
  11754. .icon_add i:nth-child(2) {
  11755. position: absolute;
  11756. top: 50%;
  11757. left: 50%;
  11758. width: 60%;
  11759. transform: translate(-50%, -50%);
  11760. border-width: 1px;
  11761. border-style: solid;
  11762. border-color: inherit;
  11763. }
  11764. .chapter_btn_w {
  11765. font-size: 0.9375rem;
  11766. font-weight: bold;
  11767. color: gray;
  11768. margin-left: 20px;
  11769. }
  11770. .disUoloadSty >>> .el-icon-plus {
  11771. display: none !important;
  11772. /* 上传按钮隐藏 */
  11773. }
  11774. .imgLeft {
  11775. margin: 15px 0;
  11776. }
  11777. .add_info_box {
  11778. margin: 20px 0;
  11779. }
  11780. .add_info_box button {
  11781. margin: 0 10px 10px 0;
  11782. }
  11783. .add_info_box2 {
  11784. display: flex;
  11785. align-items: center;
  11786. flex-wrap: wrap;
  11787. }
  11788. .add_info_box2::after {
  11789. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  11790. color: red;
  11791. font-size: 14px;
  11792. margin-bottom: 10px;
  11793. }
  11794. .add_chapters_box {
  11795. text-align: left;
  11796. background-color: rgb(232 234 237);
  11797. width: 100%;
  11798. padding: 0px 15px;
  11799. border-radius: 15px;
  11800. font-size: 16px;
  11801. box-sizing: border-box;
  11802. position: relative;
  11803. padding: 0 10px 5px 10px;
  11804. height: 185px;
  11805. overflow-y: auto;
  11806. overflow-x: hidden;
  11807. }
  11808. .homework_box {
  11809. display: flex;
  11810. align-items: flex-start;
  11811. flex-wrap: wrap;
  11812. margin: 15px 0 0 0;
  11813. flex-direction: column;
  11814. align-content: flex-start;
  11815. }
  11816. .course_homework {
  11817. display: flex;
  11818. justify-content: center;
  11819. flex-direction: row;
  11820. align-items: center;
  11821. margin: 0 10px 0 0;
  11822. }
  11823. .course_homework >>> .el-input__inner {
  11824. width: 140px;
  11825. margin-left: 15px;
  11826. }
  11827. .chapter_upload_move {
  11828. position: relative;
  11829. background-color: #fff;
  11830. position: absolute;
  11831. width: 100%;
  11832. top: 0px;
  11833. left: 0px;
  11834. border: 1px solid #eee;
  11835. border-radius: 5px;
  11836. transition: width 2s;
  11837. -moz-transition: width 2s;
  11838. -webkit-transition: width 2s;
  11839. -o-transition: width 2s;
  11840. }
  11841. .chapter_upload_l_i {
  11842. background-image: url("../../../assets/icon.png");
  11843. background-position: 3px -165px;
  11844. width: 30px;
  11845. height: 30px;
  11846. margin: 10px auto 0 auto;
  11847. }
  11848. .left_first {
  11849. display: flex;
  11850. flex-direction: column;
  11851. flex-wrap: nowrap;
  11852. }
  11853. .right_first {
  11854. width: 100%;
  11855. height: 100%;
  11856. margin-top: 15px;
  11857. }
  11858. .right_title {
  11859. height: 30px;
  11860. padding: 15px 20px 15px 20px;
  11861. border-bottom: 1px solid #f2f2f2;
  11862. font-size: 1.5em;
  11863. font-weight: bold;
  11864. color: #0f7eff;
  11865. margin: 0 auto;
  11866. display: flex;
  11867. /* justify-content: space-between; */
  11868. align-items: flex-end;
  11869. }
  11870. .people {
  11871. border: 1px solid rgb(229 229 229);
  11872. height: 495px;
  11873. border-radius: 5px;
  11874. width: 100%;
  11875. overflow: auto;
  11876. }
  11877. .people_top {
  11878. display: flex;
  11879. width: 100%;
  11880. /* justify-content: space-between; */
  11881. /* align-items: center; */
  11882. flex-direction: column;
  11883. padding: 10px 25px 0;
  11884. box-sizing: border-box;
  11885. }
  11886. .people_nav,
  11887. .people_top_right {
  11888. /* padding: 20px 0 0 20px; */
  11889. }
  11890. .people_top_right {
  11891. height: 40px;
  11892. margin-bottom: 10px;
  11893. }
  11894. .people_search {
  11895. display: flex;
  11896. position: relative;
  11897. }
  11898. .people_search >>> .el-input__inner {
  11899. /* height: 25px; */
  11900. width: 95%;
  11901. }
  11902. .search_img {
  11903. width: 20px;
  11904. height: 20px;
  11905. position: absolute;
  11906. right: 30px;
  11907. top: 50%;
  11908. transform: translateY(-50%);
  11909. }
  11910. .search_img > img {
  11911. width: 100%;
  11912. height: 100%;
  11913. }
  11914. .people_name {
  11915. display: flex;
  11916. justify-content: flex-start;
  11917. padding: 20px 0 0 25px;
  11918. flex-direction: column;
  11919. flex-wrap: wrap;
  11920. }
  11921. .p_box {
  11922. position: relative;
  11923. }
  11924. .people_name >>> .el-checkbox {
  11925. width: 100%;
  11926. display: flex;
  11927. align-items: center;
  11928. margin-bottom: 10px;
  11929. }
  11930. .people_name >>> .el-checkbox__label {
  11931. text-overflow: ellipsis;
  11932. overflow: hidden;
  11933. width: calc(100%);
  11934. }
  11935. .people_name2 >>> .el-checkbox__label {
  11936. width: calc(100% - 130px);
  11937. }
  11938. .inviteCode {
  11939. position: absolute;
  11940. right: 30px;
  11941. color: #237ade;
  11942. top: 0;
  11943. cursor: pointer;
  11944. font-size: 13px;
  11945. }
  11946. .noneInvite {
  11947. color: #a8a8a8;
  11948. }
  11949. .inviteImg {
  11950. position: absolute;
  11951. right: 5px;
  11952. top: 0;
  11953. width: 20px;
  11954. }
  11955. .right_img {
  11956. width: 150px;
  11957. height: 150px;
  11958. margin: 20px auto;
  11959. }
  11960. .right_img > img {
  11961. width: 100%;
  11962. height: 100%;
  11963. }
  11964. .number {
  11965. margin-top: 20px;
  11966. color: #4aa6ff;
  11967. text-decoration: underline;
  11968. }
  11969. .success_button {
  11970. display: flex;
  11971. text-align: center;
  11972. margin: 5% 0 auto;
  11973. flex-direction: row;
  11974. justify-content: center;
  11975. }
  11976. .look_course {
  11977. margin-right: 40px;
  11978. background: #3d67bc;
  11979. width: 200px;
  11980. height: 35px;
  11981. line-height: 35px;
  11982. color: #fff;
  11983. text-align: center;
  11984. font-size: 14px;
  11985. border-radius: 5px;
  11986. cursor: pointer;
  11987. }
  11988. .attend_others {
  11989. width: 250px;
  11990. background: #4fb13c;
  11991. height: 35px;
  11992. line-height: 35px;
  11993. color: #fff;
  11994. text-align: center;
  11995. font-size: 14px;
  11996. border-radius: 5px;
  11997. cursor: pointer;
  11998. }
  11999. .dialog_diy2 >>> .el-dialog__body {
  12000. text-align: center;
  12001. }
  12002. .write_togother {
  12003. position: absolute;
  12004. right: 45px;
  12005. display: flex;
  12006. top: 5%;
  12007. }
  12008. .write_people {
  12009. font-size: 14px;
  12010. line-height: 50px;
  12011. padding-right: 10px;
  12012. }
  12013. .end_write {
  12014. background: #3d67bc;
  12015. color: #fff;
  12016. width: 100px;
  12017. height: 35px;
  12018. line-height: 35px;
  12019. text-align: center;
  12020. font-size: 14px;
  12021. border-radius: 5px;
  12022. cursor: pointer;
  12023. }
  12024. .chapter_upload {
  12025. height: 50px;
  12026. margin-top: 12px;
  12027. position: relative;
  12028. display: flex;
  12029. align-items: center;
  12030. width: 100%;
  12031. min-height: 50px;
  12032. }
  12033. .chapter_upload_t {
  12034. background-color: #fff;
  12035. position: absolute;
  12036. height: 100%;
  12037. top: 0px;
  12038. left: 0px;
  12039. border-radius: 40px;
  12040. box-sizing: border-box;
  12041. box-shadow: 0 0 3px 3px #dfdfdf;
  12042. }
  12043. .chapter_upload_o {
  12044. width: 100%;
  12045. height: 100%;
  12046. position: relative;
  12047. z-index: 1;
  12048. }
  12049. .chapter_upload_ic {
  12050. height: 30px;
  12051. float: right;
  12052. }
  12053. .chapter_upload_ic_l {
  12054. width: 50px;
  12055. height: 50px;
  12056. float: left;
  12057. }
  12058. .chapter_upload_ic_l div {
  12059. width: 30px;
  12060. height: 35px;
  12061. background: url("../../../assets/icon/icon.png");
  12062. }
  12063. .chapter_upload_ic_r {
  12064. width: 50px;
  12065. height: 50px;
  12066. float: left;
  12067. margin-left: 0px;
  12068. display: flex;
  12069. align-items: center;
  12070. }
  12071. .chapter_upload_ic_r div {
  12072. width: 25px;
  12073. height: 25px;
  12074. background-image: url("../../../assets/delete.png");
  12075. background-size: 100% 100%;
  12076. }
  12077. .chapter_upload_n {
  12078. display: flex;
  12079. text-indent: 10px;
  12080. text-decoration: none;
  12081. text-overflow: ellipsis;
  12082. white-space: nowrap;
  12083. overflow: hidden;
  12084. width: 55%;
  12085. margin-left: 10px;
  12086. cursor: pointer;
  12087. margin-top: 2px;
  12088. align-items: center;
  12089. }
  12090. .chapter_upload_l_i1 {
  12091. background-image: url("../../../assets/icon/video.png");
  12092. width: 28px;
  12093. height: 28px;
  12094. background-size: 100% 100%;
  12095. }
  12096. .chapter_upload_l_i5 {
  12097. background-image: url("../../../assets/icon/word.png");
  12098. width: 24px;
  12099. height: 24px;
  12100. background-size: 100% 100%;
  12101. }
  12102. .chapter_upload_l_i8 {
  12103. background-image: url("../../../assets/icon/line.png");
  12104. width: 24px;
  12105. height: 24px;
  12106. background-size: 100% 100%;
  12107. }
  12108. .chapter_upload_ud {
  12109. display: flex;
  12110. flex-direction: column;
  12111. margin-left: 5px;
  12112. justify-content: center;
  12113. }
  12114. .chapter_upload_up {
  12115. background-image: url("../../../assets/icon/up.png");
  12116. width: 17px;
  12117. height: 15px;
  12118. background-size: 100% 100%;
  12119. cursor: pointer;
  12120. }
  12121. .chapter_upload_down {
  12122. background-image: url("../../../assets/icon/down.png");
  12123. width: 17px;
  12124. height: 15px;
  12125. margin: 2px auto 0 auto;
  12126. background-size: 100% 100%;
  12127. cursor: pointer;
  12128. }
  12129. .addWordStyle {
  12130. display: flex;
  12131. flex-direction: row;
  12132. justify-content: flex-start;
  12133. overflow-x: auto;
  12134. white-space: nowrap;
  12135. flex-wrap: wrap;
  12136. }
  12137. /* table 样式 */
  12138. .cont >>> table {
  12139. border-top: 1px solid #ccc;
  12140. border-left: 1px solid #ccc;
  12141. }
  12142. .cont >>> table td,
  12143. .cont >>> table th {
  12144. border-bottom: 1px solid #ccc;
  12145. border-right: 1px solid #ccc;
  12146. /* padding: 20px 5px; */
  12147. padding: 5px 10px;
  12148. max-width: 0px;
  12149. height: 30px;
  12150. vertical-align: baseline;
  12151. }
  12152. .cont >>> table th {
  12153. border-bottom: 2px solid #ccc;
  12154. text-align: center;
  12155. }
  12156. /* blockquote 样式 */
  12157. .cont >>> blockquote {
  12158. display: block;
  12159. border-left: 8px solid #d0e5f2;
  12160. padding: 5px 10px;
  12161. margin: 10px 0;
  12162. line-height: 1.4;
  12163. font-size: 100%;
  12164. background-color: #f1f1f1;
  12165. }
  12166. /* code 样式 */
  12167. .cont >>> code {
  12168. display: inline-block;
  12169. *display: inline;
  12170. *zoom: 1;
  12171. background-color: #f1f1f1;
  12172. border-radius: 3px;
  12173. padding: 3px 5px;
  12174. margin: 0 3px;
  12175. }
  12176. .cont >>> pre code {
  12177. display: block;
  12178. }
  12179. /* ul ol 样式 */
  12180. .cont >>> ul,
  12181. ol {
  12182. margin: 10px 0 10px 20px;
  12183. }
  12184. .wordbox {
  12185. display: flex;
  12186. flex-wrap: wrap;
  12187. cursor: pointer;
  12188. width: 100%;
  12189. }
  12190. .checkword {
  12191. width: 22px;
  12192. height: 22px;
  12193. margin: 10px auto 0;
  12194. cursor: pointer;
  12195. }
  12196. .checkword img {
  12197. width: 100%;
  12198. }
  12199. .stepBg {
  12200. display: flex;
  12201. flex-direction: column;
  12202. justify-content: space-between;
  12203. align-items: center;
  12204. background: #fff;
  12205. width: 300px;
  12206. margin: 0 25px 0 0;
  12207. }
  12208. .stepTop {
  12209. min-width: 300px;
  12210. width: 300px;
  12211. /* border-radius: 10px; */
  12212. display: flex;
  12213. flex-direction: column;
  12214. justify-content: flex-start;
  12215. align-items: center;
  12216. flex-wrap: nowrap;
  12217. background: #fff;
  12218. /* top: 18%; */
  12219. }
  12220. .stepTop > div {
  12221. height: 80px;
  12222. width: 85%;
  12223. cursor: pointer;
  12224. margin: 10px 0;
  12225. border-radius: 10px;
  12226. }
  12227. .first,
  12228. .second,
  12229. .third,
  12230. .four {
  12231. background: #4a83d0;
  12232. height: 90px;
  12233. color: #fff;
  12234. display: flex;
  12235. flex-direction: row;
  12236. align-items: center;
  12237. justify-content: center;
  12238. }
  12239. .first > div:nth-child(1),
  12240. .second > div:nth-child(1),
  12241. .third > div:nth-child(1),
  12242. .four > div:nth-child(1) {
  12243. margin: 5px 10px 0 0;
  12244. width: 2rem;
  12245. }
  12246. .firstNo,
  12247. .secondNo,
  12248. .thirdNo,
  12249. .fourNo {
  12250. background: #e7e7e7;
  12251. color: #adadad;
  12252. display: flex;
  12253. flex-direction: row;
  12254. align-items: center;
  12255. justify-content: center;
  12256. }
  12257. .firstNo > div:nth-child(1),
  12258. .secondNo > div:nth-child(1),
  12259. .thirdNo > div:nth-child(1),
  12260. .fourNo > div:nth-child(1) {
  12261. margin: 5px 10px 0 0;
  12262. width: 2rem;
  12263. }
  12264. .uploadWidth >>> .el-upload {
  12265. width: 60px;
  12266. height: 60px;
  12267. position: relative;
  12268. }
  12269. .addPeople {
  12270. background: #fa6060;
  12271. width: 150px;
  12272. height: 40px;
  12273. color: #fff;
  12274. border-radius: 5px;
  12275. text-align: center;
  12276. line-height: 40px;
  12277. font-size: 14px;
  12278. cursor: pointer;
  12279. margin-top: 20px;
  12280. }
  12281. .kcImg {
  12282. width: 60px;
  12283. margin-left: 10px;
  12284. }
  12285. .zyImg {
  12286. width: 55px;
  12287. margin: 0 10px;
  12288. }
  12289. .deleteZy {
  12290. width: 20px;
  12291. position: absolute;
  12292. top: 5px;
  12293. right: 5px;
  12294. cursor: pointer;
  12295. }
  12296. .kcImg > img,
  12297. .zyImg > img,
  12298. .deleteZy > img {
  12299. width: 100%;
  12300. height: 100%;
  12301. }
  12302. .zyBox {
  12303. display: flex;
  12304. flex-direction: row;
  12305. align-items: center;
  12306. background: #67d37d;
  12307. color: #fff;
  12308. width: 210px;
  12309. margin: 20px 20px 0 0;
  12310. border-radius: 10px;
  12311. height: 70px;
  12312. position: relative;
  12313. }
  12314. .upCss {
  12315. display: flex;
  12316. flex-direction: row;
  12317. justify-content: flex-start;
  12318. }
  12319. .upCss >>> .el-icon-plus {
  12320. position: none !important;
  12321. width: 200px;
  12322. height: 100px;
  12323. display: flex;
  12324. flex-wrap: nowrap;
  12325. flex-direction: column;
  12326. align-items: center;
  12327. justify-content: center;
  12328. border: 1px dashed #ccc;
  12329. min-width: 78px;
  12330. min-height: 100px;
  12331. z-index: 999;
  12332. }
  12333. .upCss >>> .el-upload-list__item-name {
  12334. width: 100px;
  12335. white-space: nowrap;
  12336. overflow: hidden;
  12337. text-overflow: ellipsis;
  12338. }
  12339. .addStageImg {
  12340. min-width: 25px;
  12341. min-height: 25px;
  12342. width: 25px;
  12343. height: 25px;
  12344. cursor: pointer;
  12345. }
  12346. .addHW {
  12347. width: 28px;
  12348. height: 28px;
  12349. cursor: pointer;
  12350. }
  12351. .addStageImg > img,
  12352. .addHW > img {
  12353. width: 100%;
  12354. height: 100%;
  12355. }
  12356. .addNewPP >>> .el-dialog__body {
  12357. padding: 5px 20px;
  12358. }
  12359. .isHeight {
  12360. height: 680px;
  12361. }
  12362. .toolChoose {
  12363. display: flex;
  12364. /* width: 100%; */
  12365. flex-direction: row;
  12366. flex-wrap: wrap;
  12367. }
  12368. .tool {
  12369. display: flex;
  12370. flex-direction: column;
  12371. flex-wrap: nowrap;
  12372. width: fit-content;
  12373. margin: 10px 0 10px 0;
  12374. align-items: center;
  12375. }
  12376. .tool + .tool {
  12377. margin-right: 45px;
  12378. }
  12379. .whiteBIcon {
  12380. width: 80px;
  12381. cursor: pointer;
  12382. display: flex;
  12383. flex-direction: column;
  12384. flex-wrap: nowrap;
  12385. align-items: center;
  12386. }
  12387. .whiteBIcon > img,
  12388. .toolIcon > img,
  12389. .arrow > img {
  12390. width: 100%;
  12391. height: 100%;
  12392. }
  12393. .check img {
  12394. width: 20px;
  12395. height: 20px;
  12396. }
  12397. .whiteBIcon > img {
  12398. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  12399. border-radius: 15px;
  12400. }
  12401. .check {
  12402. /* width: 20px;
  12403. height: 20px; */
  12404. cursor: pointer;
  12405. margin: 10px 0;
  12406. }
  12407. .checkDiv {
  12408. display: flex;
  12409. align-items: center;
  12410. }
  12411. .checkDiv span {
  12412. margin-left: 5px;
  12413. color: #858585;
  12414. }
  12415. .customWidth >>> .el-dialog {
  12416. min-width: 500px !important;
  12417. }
  12418. .a_addBox {
  12419. margin: 10px 0;
  12420. background: #fff;
  12421. padding: 15px;
  12422. max-height: 600px;
  12423. overflow: auto;
  12424. }
  12425. .a_add_box {
  12426. border-bottom: 2px solid #eee;
  12427. padding-bottom: 25px;
  12428. }
  12429. .a_add_head {
  12430. display: flex;
  12431. align-items: center;
  12432. justify-content: space-between;
  12433. margin: 10px 0 0 0;
  12434. font-size: 18px;
  12435. }
  12436. .a_add_checkType {
  12437. margin-top: 10px;
  12438. display: flex;
  12439. font-size: 16px;
  12440. align-items: center;
  12441. }
  12442. .a_add_checkType span {
  12443. box-sizing: border-box;
  12444. padding: 0 0 5px 0;
  12445. cursor: pointer;
  12446. }
  12447. .a_add_checkType span + span {
  12448. margin-left: 10px;
  12449. }
  12450. .a_add_checkType .active {
  12451. border-bottom: 2px solid #409eff;
  12452. color: #409eff;
  12453. }
  12454. .a_add_head .a_add_head_input {
  12455. width: 300px;
  12456. }
  12457. .a_add_head .a_add_head_div {
  12458. display: flex;
  12459. align-items: center;
  12460. justify-content: space-between;
  12461. }
  12462. .a_add_body {
  12463. display: flex;
  12464. /* align-items: center; */
  12465. align-items: flex-end;
  12466. }
  12467. .a_add_input {
  12468. display: flex;
  12469. align-items: center;
  12470. flex-wrap: wrap;
  12471. }
  12472. .a_add_input_choice {
  12473. flex-direction: column;
  12474. margin-right: 10px;
  12475. }
  12476. .a_add_input_choice >>> .el-radio {
  12477. display: flex;
  12478. align-items: center;
  12479. flex-direction: row-reverse;
  12480. margin: 30px 0 0 0;
  12481. }
  12482. .a_add_input_choice >>> .el-checkbox {
  12483. display: flex;
  12484. align-items: center;
  12485. flex-direction: row-reverse;
  12486. margin: 30px 0 0 0;
  12487. }
  12488. .width100 {
  12489. width: 100%;
  12490. }
  12491. .a_add_input .a_add_persent {
  12492. width: 100%;
  12493. }
  12494. .a_add_persent_div {
  12495. width: 100%;
  12496. display: flex;
  12497. align-items: center;
  12498. }
  12499. .a_add_persent_div span {
  12500. margin: 5px 0;
  12501. }
  12502. .a_add_persent_div span:nth-child(1) {
  12503. width: 30%;
  12504. }
  12505. .a_add_persent_div span:nth-child(2) {
  12506. width: 7%;
  12507. }
  12508. .a_add_persent_div span:nth-child(3) {
  12509. width: 40%;
  12510. }
  12511. .a_add_body_div {
  12512. display: flex;
  12513. align-items: center;
  12514. justify-content: center;
  12515. /* flex-direction: column; */
  12516. }
  12517. .all_choose {
  12518. display: flex;
  12519. flex-direction: row;
  12520. align-items: flex-start;
  12521. width: 100%;
  12522. }
  12523. .all_choose > span {
  12524. min-width: 100px;
  12525. display: block;
  12526. letter-spacing: 14px;
  12527. white-space: nowrap;
  12528. overflow: hidden;
  12529. text-overflow: ellipsis;
  12530. }
  12531. .all_choose >>> .el-checkbox-group {
  12532. display: flex;
  12533. flex-direction: row;
  12534. width: 100%;
  12535. flex-wrap: wrap;
  12536. align-content: center;
  12537. justify-content: flex-start;
  12538. align-items: center;
  12539. margin-top: 3px;
  12540. }
  12541. .all_choose > .el-checkbox-group >>> .el-checkbox {
  12542. margin-bottom: 10px;
  12543. display: flex;
  12544. flex-direction: row;
  12545. align-items: center;
  12546. }
  12547. .all_choose > .el-checkbox-group > .el-checkbox >>> .el-checkbox__label {
  12548. min-width: 80px;
  12549. overflow: hidden;
  12550. width: 80px;
  12551. text-overflow: ellipsis;
  12552. white-space: nowrap;
  12553. }
  12554. .all_choose > .el-checkbox-group > .el-checkbox >>> .el-checkbox__label:hover {
  12555. width: auto;
  12556. }
  12557. .choose > div:nth-child(3) > span {
  12558. /* letter-spacing: 0 !important; */
  12559. }
  12560. .choose {
  12561. display: flex;
  12562. flex-direction: column;
  12563. flex-wrap: nowrap;
  12564. height: 100%;
  12565. justify-content: space-evenly;
  12566. align-items: flex-start;
  12567. }
  12568. .both {
  12569. display: flex;
  12570. flex-direction: row;
  12571. flex-wrap: wrap;
  12572. width: 100%;
  12573. align-items: center;
  12574. justify-content: flex-start;
  12575. margin: 15px 0;
  12576. }
  12577. .notice >>> .el-dialog {
  12578. width: 500px !important;
  12579. text-align: center;
  12580. }
  12581. .notice >>> .el-button {
  12582. margin-top: 20px;
  12583. }
  12584. .whiteBg {
  12585. background: #fff;
  12586. border-radius: 10px;
  12587. }
  12588. .chooseWho {
  12589. display: flex;
  12590. width: 380px;
  12591. flex-direction: row;
  12592. flex-wrap: nowrap;
  12593. justify-content: space-between;
  12594. padding-bottom: 10px;
  12595. }
  12596. .chooseWho > div {
  12597. cursor: pointer;
  12598. padding-bottom: 10px;
  12599. font-weight: bold;
  12600. }
  12601. .isChooseActive {
  12602. color: #3e88f4;
  12603. border-bottom: 2px solid #2f80f3;
  12604. }
  12605. .toolSort {
  12606. display: flex;
  12607. flex-direction: row;
  12608. flex-wrap: wrap;
  12609. justify-content: flex-start;
  12610. align-items: flex-start;
  12611. }
  12612. .toolSort > div {
  12613. margin-right: 45px;
  12614. }
  12615. .tools {
  12616. width: 100%;
  12617. display: flex;
  12618. flex-direction: column;
  12619. flex-wrap: nowrap;
  12620. align-items: flex-start;
  12621. }
  12622. .leftTools,
  12623. .rightTools {
  12624. width: 50%;
  12625. }
  12626. .rightTools {
  12627. display: flex;
  12628. flex-direction: row;
  12629. flex-wrap: nowrap;
  12630. justify-content: space-around;
  12631. }
  12632. .firstToolList {
  12633. display: flex;
  12634. flex-direction: column;
  12635. flex-wrap: nowrap;
  12636. align-items: center;
  12637. }
  12638. .iconList {
  12639. display: flex;
  12640. flex-direction: row;
  12641. flex-wrap: wrap;
  12642. justify-content: flex-start;
  12643. align-items: center;
  12644. margin: 20px 0 5px 0;
  12645. width: 240px;
  12646. min-width: 240px;
  12647. }
  12648. .iconTool {
  12649. display: flex;
  12650. flex-direction: column;
  12651. flex-wrap: nowrap;
  12652. align-items: center;
  12653. justify-content: flex-start;
  12654. margin: 15px 10px;
  12655. }
  12656. .toolIcon {
  12657. width: 50px;
  12658. }
  12659. .taskBorder {
  12660. border: 1px solid #e1e1e1;
  12661. border-radius: 10px;
  12662. margin-top: 20px;
  12663. /* min-height: 1160px; */
  12664. position: relative;
  12665. background: #fbfbfb;
  12666. }
  12667. .smallTaskBorder {
  12668. height: 170px;
  12669. min-height: 170px !important;
  12670. overflow: hidden;
  12671. }
  12672. .taskBorder > div {
  12673. padding: 30px 0 10px 30px;
  12674. }
  12675. .addTaskBorder {
  12676. border: 2px solid #e1e1e1;
  12677. border-radius: 10px;
  12678. margin-top: 25px;
  12679. cursor: pointer;
  12680. }
  12681. .addTaskBorder > div {
  12682. margin: 0 auto;
  12683. display: flex;
  12684. align-items: center;
  12685. justify-content: center;
  12686. }
  12687. .addTaskBorder > div > img {
  12688. width: 100px;
  12689. }
  12690. .addTaskBorder > div > span {
  12691. font-size: 23px;
  12692. color: #dbdbdb;
  12693. }
  12694. .funBlock {
  12695. display: flex;
  12696. padding: 15px 0;
  12697. flex-direction: row;
  12698. justify-content: flex-end;
  12699. align-items: center;
  12700. position: absolute;
  12701. right: 15px;
  12702. bottom: 35px;
  12703. }
  12704. .fold {
  12705. display: flex;
  12706. margin: 0 10px;
  12707. flex-direction: row;
  12708. align-items: center;
  12709. cursor: pointer;
  12710. }
  12711. .arrow {
  12712. width: 15px;
  12713. height: 15px;
  12714. margin-left: 10px;
  12715. }
  12716. .addToolFun {
  12717. display: flex;
  12718. width: 150px;
  12719. flex-direction: row;
  12720. align-items: center;
  12721. justify-content: center;
  12722. border: 1px dashed;
  12723. border-radius: 5px;
  12724. height: 50px;
  12725. margin: 20px auto 35px;
  12726. cursor: pointer;
  12727. }
  12728. .addToolImg {
  12729. width: 30px;
  12730. height: 30px;
  12731. margin-right: 20px;
  12732. }
  12733. .addToolsDia >>> .el-dialog__body {
  12734. padding: 20px;
  12735. }
  12736. .addToolsDia >>> .el-dialog__body > .toolChoose {
  12737. padding: 0;
  12738. }
  12739. .addToolsDia >>> .el-dialog__body > .toolChoose > .leftTools {
  12740. padding: 0;
  12741. border-bottom: none;
  12742. margin-bottom: 0;
  12743. }
  12744. .addToolsDia >>> .el-dialog__body > .toolChoose > .leftTools > .chooseWho {
  12745. width: 100%;
  12746. }
  12747. .lineCss >>> .el-form-item__label {
  12748. width: auto !important;
  12749. }
  12750. .lineCss >>> .el-form-item__content {
  12751. margin-left: 50px !important;
  12752. }
  12753. .newSteps {
  12754. display: flex;
  12755. width: 100% !important;
  12756. height: 80px;
  12757. cursor: pointer;
  12758. margin: 10px 0;
  12759. border-radius: 10px;
  12760. flex-direction: row;
  12761. align-content: center;
  12762. justify-content: center;
  12763. align-items: center;
  12764. margin: 0 !important;
  12765. }
  12766. /* 评价样式 */
  12767. .elist_css {
  12768. padding-bottom: 60px !important;
  12769. }
  12770. .elist_title {
  12771. margin-bottom: 10px;
  12772. }
  12773. .elist_input {
  12774. }
  12775. .elist_input_box {
  12776. display: flex;
  12777. align-items: center;
  12778. flex-wrap: wrap;
  12779. }
  12780. .elist_input_box + .elist_input_box {
  12781. margin-top: 30px;
  12782. }
  12783. .elist_input .elist_input_box input {
  12784. font: inherit;
  12785. color: currentColor;
  12786. /* width: 200px; */
  12787. max-width: 200px;
  12788. padding: 8px 14px;
  12789. display: block;
  12790. min-width: 0;
  12791. outline: none;
  12792. border: 1px solid rgba(0, 0, 0, 0.23);
  12793. border-radius: 4px;
  12794. box-sizing: border-box;
  12795. background: #fff;
  12796. margin: 0 20px 0 0;
  12797. }
  12798. .elist_input .elist_input_box span {
  12799. height: 36px;
  12800. line-height: 36px;
  12801. color: rgb(82, 82, 82);
  12802. min-width: 80px;
  12803. }
  12804. .elist_input .elist_input_box .remove {
  12805. height: 20px;
  12806. width: 20px;
  12807. background-size: 100% 100%;
  12808. background-position: unset;
  12809. margin-left: 5px;
  12810. }
  12811. .elist_input_box >>> .el-rate {
  12812. display: flex;
  12813. height: 36px;
  12814. align-items: center;
  12815. }
  12816. .elist_input_box .elist_inptu_text {
  12817. width: 100%;
  12818. display: flex;
  12819. align-items: center;
  12820. margin-top: 10px;
  12821. }
  12822. .elist_input_box .elist_inptu_text input {
  12823. /* width: 500px; */
  12824. width: 100%;
  12825. max-width: unset;
  12826. }
  12827. .elist_input_box >>> .el-rate__icon {
  12828. font-size: 24px;
  12829. }
  12830. .elist_btn {
  12831. margin-top: 10px;
  12832. }
  12833. .lineTitle {
  12834. margin-top: 15px;
  12835. width: 110px;
  12836. }
  12837. .courseTop {
  12838. display: flex;
  12839. flex-direction: row;
  12840. justify-content: flex-start;
  12841. align-items: center;
  12842. width: calc(100% - 40px);
  12843. padding: 20px 0;
  12844. margin: 0 auto;
  12845. }
  12846. .stepsNav {
  12847. display: flex;
  12848. flex-direction: row;
  12849. justify-content: flex-start;
  12850. align-items: center;
  12851. }
  12852. .stepsWord {
  12853. font-size: 18px;
  12854. color: #fff;
  12855. font-weight: bold;
  12856. margin-left: auto;
  12857. background: rgb(15, 126, 255);
  12858. border-radius: 5px;
  12859. padding: 3px 25px;
  12860. box-sizing: border-box;
  12861. }
  12862. .rightBox {
  12863. width: calc(100% - 40px);
  12864. background: rgb(255, 255, 255);
  12865. border-radius: 10px;
  12866. overflow: auto;
  12867. height: calc(100% - 160px);
  12868. position: relative;
  12869. margin: 0px auto 0;
  12870. }
  12871. .e_add_top {
  12872. display: flex;
  12873. justify-content: space-between;
  12874. padding: 20px 20px 0 20px;
  12875. border-radius: 3px;
  12876. background: #fff;
  12877. }
  12878. .e_add_title2 {
  12879. display: flex;
  12880. align-items: center;
  12881. }
  12882. .e_add_title2 span {
  12883. width: 40px;
  12884. }
  12885. .e_add_title {
  12886. display: flex;
  12887. align-items: center;
  12888. color: #b8b8b8;
  12889. font-size: 18px;
  12890. position: relative;
  12891. height: 40px;
  12892. }
  12893. .e_add_title span {
  12894. margin-right: 10px;
  12895. }
  12896. .e_add_title .el_input {
  12897. width: 300px;
  12898. }
  12899. .e_add_title >>> .el-input__inner {
  12900. width: 400px;
  12901. }
  12902. .e_add_btn {
  12903. }
  12904. .e_add_content {
  12905. display: flex;
  12906. width: 100%;
  12907. }
  12908. .e_add_list {
  12909. background: #fff;
  12910. height: 500px;
  12911. width: 210px;
  12912. position: relative;
  12913. margin: 15px 5px 0 0;
  12914. flex-shrink: 0;
  12915. display: flex;
  12916. flex-direction: column;
  12917. }
  12918. .e_add_list_title {
  12919. font-size: 20px;
  12920. width: 100%;
  12921. box-sizing: border-box;
  12922. padding: 15px 40px;
  12923. text-align: center;
  12924. border-bottom: 1px solid #eaeaea;
  12925. position: relative;
  12926. display: flex;
  12927. align-items: center;
  12928. justify-content: center;
  12929. height: 57px;
  12930. background: #f6f6f6;
  12931. }
  12932. .e_add_list_title span {
  12933. overflow: hidden;
  12934. white-space: nowrap;
  12935. text-overflow: ellipsis;
  12936. }
  12937. .e_add_list_title img {
  12938. position: absolute;
  12939. right: 15px;
  12940. width: 25px;
  12941. cursor: pointer;
  12942. top: 50%;
  12943. transform: translateY(-50%);
  12944. }
  12945. .e_add_list_body {
  12946. height: calc(100% - 187px);
  12947. overflow: auto;
  12948. }
  12949. .e_add_list_child {
  12950. width: 100%;
  12951. display: flex;
  12952. align-items: center;
  12953. justify-content: center;
  12954. position: relative;
  12955. box-sizing: border-box;
  12956. padding: 15px 40px;
  12957. text-align: center;
  12958. }
  12959. .e_add_list_child span {
  12960. overflow: hidden;
  12961. white-space: nowrap;
  12962. text-overflow: ellipsis;
  12963. cursor: pointer;
  12964. }
  12965. .e_add_list_child img {
  12966. position: absolute;
  12967. right: 10px;
  12968. width: 21px;
  12969. cursor: pointer;
  12970. top: 50%;
  12971. transform: translateY(-50%);
  12972. }
  12973. .e_add_list_child + .e_add_list_child {
  12974. border-top: 1px solid #eaeaea;
  12975. }
  12976. .e_add_list_child .active {
  12977. color: #409eff;
  12978. }
  12979. .e_add_list_btn {
  12980. position: absolute;
  12981. bottom: 0;
  12982. height: 50px;
  12983. background: rgb(120, 120, 254);
  12984. width: 100%;
  12985. color: #fff;
  12986. font-size: 16px;
  12987. text-align: center;
  12988. line-height: 50px;
  12989. cursor: pointer;
  12990. }
  12991. .e_add_list_detail {
  12992. position: absolute;
  12993. bottom: 0;
  12994. height: 130px;
  12995. background: rgb(120, 120, 254);
  12996. width: 100%;
  12997. color: #fff;
  12998. font-size: 16px;
  12999. display: flex;
  13000. align-items: center;
  13001. justify-content: center;
  13002. }
  13003. .e_add_list_detail textarea {
  13004. height: 90%;
  13005. width: 95%;
  13006. border: none;
  13007. resize: none;
  13008. outline: none;
  13009. padding: 5px;
  13010. box-sizing: border-box;
  13011. }
  13012. .e_add_list_pbox {
  13013. width: 100%;
  13014. }
  13015. .e_add_list_pbox_title {
  13016. height: 50px;
  13017. background: #fff;
  13018. display: flex;
  13019. align-items: center;
  13020. width: 100%;
  13021. box-sizing: border-box;
  13022. padding: 0 20px;
  13023. flex-direction: row;
  13024. flex-wrap: wrap;
  13025. }
  13026. .type_title {
  13027. font-size: 18px;
  13028. font-weight: 700;
  13029. }
  13030. .type_content {
  13031. font-size: 16px;
  13032. margin-left: 30px;
  13033. }
  13034. .type_content span + span {
  13035. margin-left: 20px;
  13036. }
  13037. .type_content span {
  13038. cursor: pointer;
  13039. padding-bottom: 5px;
  13040. box-sizing: border-box;
  13041. }
  13042. .type_content .active {
  13043. color: #409eff;
  13044. border-bottom: 2px solid #409eff;
  13045. }
  13046. .e_add_list_pbox_content {
  13047. height: calc(100% - 50px);
  13048. display: flex;
  13049. align-items: center;
  13050. width: 100%;
  13051. background: #fff;
  13052. }
  13053. .mbCss {
  13054. width: 100%;
  13055. display: flex;
  13056. flex-direction: row;
  13057. flex-wrap: nowrap;
  13058. align-content: center;
  13059. align-items: flex-start;
  13060. justify-content: flex-start;
  13061. }
  13062. .pjCss {
  13063. /* width: 42%; */
  13064. width: calc(100% - 55%);
  13065. display: flex;
  13066. flex-direction: column;
  13067. flex-wrap: nowrap;
  13068. align-items: flex-start;
  13069. margin-top: 1.5%;
  13070. }
  13071. .e_box {
  13072. display: flex;
  13073. flex-wrap: wrap;
  13074. max-height: 500px;
  13075. align-items: flex-start;
  13076. overflow: auto;
  13077. }
  13078. .e_card {
  13079. border: 1px solid #ccc;
  13080. background: #fff;
  13081. margin-right: 20px;
  13082. width: 270px;
  13083. display: flex;
  13084. flex-direction: column;
  13085. align-items: center;
  13086. border-radius: 5px;
  13087. margin-top: 10px;
  13088. text-align: center;
  13089. }
  13090. .e_card_picture {
  13091. margin: 10px 0;
  13092. }
  13093. .e_card_picture > img {
  13094. width: 50px;
  13095. }
  13096. .e_card_name {
  13097. width: 100%;
  13098. padding: 0 10px;
  13099. box-sizing: border-box;
  13100. margin-bottom: 10px;
  13101. overflow: hidden;
  13102. text-overflow: ellipsis;
  13103. white-space: nowrap;
  13104. }
  13105. .e_card_time {
  13106. width: 100%;
  13107. padding: 0 10px;
  13108. box-sizing: border-box;
  13109. font-size: 15px;
  13110. color: #c3c3c3;
  13111. margin-bottom: 10px;
  13112. }
  13113. .e_card_btn {
  13114. height: 40px;
  13115. display: flex;
  13116. align-items: center;
  13117. width: 100%;
  13118. background: rgb(244, 244, 244);
  13119. }
  13120. .e_card_btn:hover {
  13121. background: rgb(221 221 221);
  13122. }
  13123. .e_card_btn span {
  13124. flex: 1 1 auto;
  13125. text-align: center;
  13126. cursor: pointer;
  13127. }
  13128. .addEva {
  13129. border: 1px solid #ccc;
  13130. background: #fff;
  13131. margin-right: 20px;
  13132. width: 270px;
  13133. height: 149px;
  13134. display: flex;
  13135. flex-direction: column;
  13136. align-items: center;
  13137. border-radius: 5px;
  13138. margin-top: 10px;
  13139. text-align: center;
  13140. cursor: pointer;
  13141. justify-content: center;
  13142. }
  13143. .addEva > img {
  13144. width: 50px;
  13145. object-fit: cover;
  13146. }
  13147. .uploadFm {
  13148. border: 1px dashed #ccc;
  13149. width: 202px;
  13150. height: 102px;
  13151. position: relative;
  13152. cursor: pointer;
  13153. }
  13154. .uploadFm > img {
  13155. position: absolute;
  13156. top: 25px;
  13157. left: 35%;
  13158. width: 50px;
  13159. }
  13160. .fileCss {
  13161. width: 100%;
  13162. display: flex;
  13163. flex-direction: row;
  13164. flex-wrap: nowrap;
  13165. justify-content: space-around;
  13166. align-items: center;
  13167. padding-top: 15px;
  13168. }
  13169. .sysPicBox {
  13170. display: flex;
  13171. flex-direction: row;
  13172. flex-wrap: wrap;
  13173. align-content: flex-start;
  13174. height: 435px;
  13175. overflow: auto;
  13176. }
  13177. .sysPic {
  13178. width: 200px;
  13179. height: 115px;
  13180. margin: 0 20px 20px 0;
  13181. cursor: pointer;
  13182. }
  13183. .sysPic > img,
  13184. .isSysPic > img,
  13185. .deletePic > img {
  13186. width: 100%;
  13187. height: 100%;
  13188. object-fit: cover;
  13189. }
  13190. .isSysPic {
  13191. width: 200px;
  13192. height: 115px;
  13193. position: relative;
  13194. }
  13195. .deletePic {
  13196. width: 20px;
  13197. height: 20px;
  13198. position: absolute;
  13199. top: 0;
  13200. right: 0;
  13201. cursor: pointer;
  13202. }
  13203. .select_box1 {
  13204. }
  13205. .select_box1_img {
  13206. background: #fff;
  13207. border-radius: 5px;
  13208. padding: 15px;
  13209. box-sizing: border-box;
  13210. margin-bottom: 20px;
  13211. }
  13212. .select_box1_title {
  13213. padding: 0 0 15px 0;
  13214. border-bottom: 1px solid #eee;
  13215. margin-bottom: 15px;
  13216. }
  13217. .select_box1_title span:nth-child(1) {
  13218. font-size: 16px;
  13219. margin-right: 20px;
  13220. color: #000;
  13221. }
  13222. .select_box1_title span:nth-child(2) {
  13223. font-size: 14px;
  13224. color: rgb(112, 112, 112);
  13225. }
  13226. .select_box1_add_img {
  13227. }
  13228. .select_box1_select {
  13229. background: #fff;
  13230. border-radius: 5px;
  13231. padding: 15px;
  13232. box-sizing: border-box;
  13233. }
  13234. .select_box2 {
  13235. }
  13236. .select_box2_title {
  13237. background: #fff;
  13238. border-radius: 5px;
  13239. padding: 5px 10px;
  13240. box-sizing: border-box;
  13241. margin-bottom: 10px;
  13242. }
  13243. .select_box2_box {
  13244. display: flex;
  13245. height: 500px;
  13246. }
  13247. .select_box2_img {
  13248. width: calc(100% - 310px);
  13249. height: 100%;
  13250. overflow: auto;
  13251. background: #fff;
  13252. border-radius: 5px;
  13253. }
  13254. .select_box2_img img {
  13255. width: 100%;
  13256. }
  13257. .select_box2_answer {
  13258. background: #fff;
  13259. margin-left: 10px;
  13260. border-radius: 5px;
  13261. width: 300px;
  13262. overflow: auto;
  13263. height: 100%;
  13264. display: flex;
  13265. flex-direction: column;
  13266. align-items: center;
  13267. padding-top: 10px;
  13268. box-sizing: border-box;
  13269. }
  13270. .select_box2_answer_box {
  13271. margin: 0 0 10px 0;
  13272. width: 85%;
  13273. }
  13274. .rate_textarea {
  13275. font: inherit;
  13276. color: currentColor;
  13277. width: 100%;
  13278. padding: 8px 14px;
  13279. display: block;
  13280. min-width: 0;
  13281. outline: none;
  13282. border: 1px solid rgba(0, 0, 0, 0.23);
  13283. border-radius: 4px;
  13284. box-sizing: border-box;
  13285. background: #fff;
  13286. margin: 0 20px 0 0;
  13287. resize: none;
  13288. }
  13289. .select_answer_title {
  13290. text-align: left;
  13291. width: 85%;
  13292. margin-bottom: 10px;
  13293. font-size: 18px;
  13294. color: #8e8e8e;
  13295. }
  13296. .mask {
  13297. background-color: rgb(0 0 0 / 30%);
  13298. /* position: fixed; */
  13299. position: absolute;
  13300. top: 0;
  13301. left: 0;
  13302. width: 100%;
  13303. height: 100%;
  13304. z-index: 90;
  13305. display: flex;
  13306. align-items: center;
  13307. justify-content: center;
  13308. }
  13309. .progressBox {
  13310. width: 300px;
  13311. height: 150px;
  13312. background: #fff;
  13313. border-radius: 10px;
  13314. box-shadow: 0 0 6px 1px #bfbfbf;
  13315. display: flex;
  13316. align-items: center;
  13317. justify-content: center;
  13318. flex-direction: column;
  13319. position: relative;
  13320. color: #6c6c6c;
  13321. }
  13322. .progressBox >>> .el-progress-bar__outer {
  13323. background-color: #d1dfff !important;
  13324. }
  13325. .progressBox .lbox {
  13326. height: 50px;
  13327. font-size: 19px;
  13328. display: flex;
  13329. align-items: center;
  13330. color: #747474;
  13331. }
  13332. .progressBox .lbox img {
  13333. width: 40px;
  13334. margin-right: 20px;
  13335. }
  13336. .closeCss {
  13337. position: absolute;
  13338. top: 8px;
  13339. right: 8px;
  13340. cursor: pointer;
  13341. width: 20px;
  13342. height: 20px;
  13343. }
  13344. .closeCss > img {
  13345. width: 100%;
  13346. height: 100%;
  13347. }
  13348. .updateTips::after {
  13349. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  13350. font-size: 14px;
  13351. margin-left: 20px;
  13352. font-weight: 400;
  13353. color: #ff3a3a;
  13354. }
  13355. .updateMask {
  13356. width: 100%;
  13357. z-index: 3;
  13358. top: 0;
  13359. position: absolute;
  13360. /* background-color: rgba(0,0,0,.3); */
  13361. }
  13362. .t_j_box {
  13363. display: flex;
  13364. }
  13365. .t_j_box span:nth-child(1) {
  13366. width: 15%;
  13367. overflow: hidden;
  13368. margin-right: 10px;
  13369. text-overflow: ellipsis;
  13370. white-space: nowrap;
  13371. }
  13372. .t_j_box span:nth-child(2) {
  13373. width: 30%;
  13374. overflow: hidden;
  13375. text-overflow: ellipsis;
  13376. margin-right: 10px;
  13377. }
  13378. .t_j_box span:nth-child(3) {
  13379. max-width: calc(55% - 20px);
  13380. overflow: hidden;
  13381. text-overflow: ellipsis;
  13382. }
  13383. .sentenBox {
  13384. background: #fff;
  13385. height: 600px;
  13386. overflow: auto;
  13387. background-image: url("../../../assets/icon/conSentences/csBg.png");
  13388. background-position: 102%;
  13389. background-repeat: no-repeat;
  13390. background-size: 60%;
  13391. }
  13392. .addSen {
  13393. background: #409efe;
  13394. width: 90px;
  13395. color: #fff;
  13396. height: 35px;
  13397. text-align: center;
  13398. line-height: 35px;
  13399. border-radius: 5px;
  13400. float: right;
  13401. margin: 10px 20px 0 0;
  13402. cursor: pointer;
  13403. }
  13404. .sentenTop {
  13405. display: flex;
  13406. flex-direction: row;
  13407. flex-wrap: nowrap;
  13408. align-items: center;
  13409. }
  13410. .sentenTop > div:nth-child(2) {
  13411. width: 300px;
  13412. margin: 0 15px;
  13413. }
  13414. .sentenTop > div:nth-child(3) {
  13415. background: #409efe;
  13416. color: #fff;
  13417. width: 65px;
  13418. height: 35px;
  13419. text-align: center;
  13420. line-height: 35px;
  13421. border-radius: 5px;
  13422. cursor: pointer;
  13423. }
  13424. .cardList {
  13425. padding: 30px 0 20px 0;
  13426. display: flex;
  13427. flex-direction: row;
  13428. flex-wrap: wrap;
  13429. align-items: center;
  13430. box-sizing: border-box;
  13431. border-bottom: 1px solid #f4f4f4;
  13432. width: 98%;
  13433. margin: 0 auto;
  13434. }
  13435. .cardBox {
  13436. display: flex;
  13437. flex-direction: row;
  13438. flex-wrap: wrap;
  13439. align-items: center;
  13440. align-content: center;
  13441. }
  13442. .isCard,
  13443. .isCard1 {
  13444. width: 140px;
  13445. height: 65px;
  13446. text-align: center;
  13447. line-height: 65px;
  13448. font-size: 20px;
  13449. cursor: pointer;
  13450. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  13451. background-size: cover;
  13452. position: relative;
  13453. z-index: 99;
  13454. }
  13455. .isCard1 {
  13456. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  13457. }
  13458. .isCard:hover .deleteWord {
  13459. display: block;
  13460. }
  13461. .isCard > div:nth-child(1),
  13462. .isCard1 > div:nth-child(1) {
  13463. white-space: nowrap;
  13464. overflow: hidden;
  13465. text-overflow: ellipsis;
  13466. width: 80%;
  13467. margin: 0 auto;
  13468. }
  13469. .card {
  13470. width: 140px;
  13471. height: 65px;
  13472. }
  13473. .card > img {
  13474. width: 100%;
  13475. height: 100%;
  13476. }
  13477. .rightCardBox {
  13478. margin: 10px 0 0 10px;
  13479. }
  13480. .rightCardBox > div:nth-child(1) {
  13481. margin-bottom: 10px;
  13482. }
  13483. .cardCss {
  13484. display: flex;
  13485. flex-direction: column;
  13486. flex-wrap: nowrap;
  13487. align-items: center;
  13488. border-bottom: 3px solid #b4c3d3;
  13489. padding: 0 0 5px 0;
  13490. margin-right: 10px;
  13491. }
  13492. .cardCss > div:nth-child(2) {
  13493. background: #5b7b9d;
  13494. color: #fff;
  13495. width: 20px;
  13496. height: 20px;
  13497. border-radius: 50%;
  13498. text-align: center;
  13499. line-height: 20px;
  13500. }
  13501. .sentenTopBox {
  13502. display: flex;
  13503. flex-direction: row;
  13504. flex-wrap: nowrap;
  13505. align-items: center;
  13506. justify-content: space-between;
  13507. padding: 55px 0 0 20px;
  13508. box-sizing: border-box;
  13509. width: 85%;
  13510. }
  13511. .stepsBottom {
  13512. width: 85%;
  13513. margin-bottom: 20px;
  13514. box-shadow: 0 0 10px 10px #f7f7f7;
  13515. background: #f7f7f7;
  13516. border-radius: 10px;
  13517. overflow: hidden;
  13518. }
  13519. .course_left {
  13520. width: 300px;
  13521. height: auto;
  13522. position: relative;
  13523. }
  13524. .stepsBottom2 {
  13525. width: 300px;
  13526. margin: 20px 0;
  13527. /* box-shadow: 0 0 10px 10px #f7f7f7; */
  13528. /* background: #f7f7f7; */
  13529. border-radius: 10px;
  13530. overflow: hidden;
  13531. height: fit-content;
  13532. position: relative;
  13533. /* transition: all .5s; */
  13534. }
  13535. .navTop {
  13536. background: #53749b;
  13537. color: #fff;
  13538. height: 40px;
  13539. line-height: 40px;
  13540. padding-left: 15px;
  13541. font-size: 18px;
  13542. }
  13543. .navBottom {
  13544. background: #6b91b7;
  13545. height: 300px;
  13546. overflow: auto;
  13547. }
  13548. .navTask {
  13549. display: flex;
  13550. flex-direction: row;
  13551. flex-wrap: nowrap;
  13552. align-items: center;
  13553. padding: 5px 5px 5px 0;
  13554. cursor: pointer;
  13555. background: #ffffff;
  13556. width: 95%;
  13557. margin: 10px auto;
  13558. box-sizing: border-box;
  13559. border-radius: 5px;
  13560. }
  13561. .isNavTask {
  13562. /* background: #7e9ebd; */
  13563. }
  13564. .navTask > div:nth-child(1) {
  13565. background: #468fe4;
  13566. color: #fff;
  13567. width: 65px;
  13568. height: 25px;
  13569. line-height: 25px;
  13570. text-align: center;
  13571. border-radius: 5px;
  13572. margin: 0 10px 0 5px;
  13573. font-size: 14px;
  13574. }
  13575. .navTask > div:nth-child(2) {
  13576. /* color: #fff; */
  13577. /* max-width: 130px; */
  13578. width: 130px;
  13579. white-space: nowrap;
  13580. overflow: hidden;
  13581. text-overflow: ellipsis;
  13582. font-size: 15px;
  13583. }
  13584. .groupBox {
  13585. }
  13586. .groupContent + .groupContent {
  13587. margin-top: 30px;
  13588. }
  13589. .groupTitle {
  13590. font-size: 24px;
  13591. color: rgb(80, 80, 80);
  13592. margin-bottom: 20px;
  13593. }
  13594. .groupName {
  13595. display: flex;
  13596. align-items: center;
  13597. }
  13598. .groupn {
  13599. font-size: 15px;
  13600. margin-right: 10px;
  13601. }
  13602. .groupName + .groupName {
  13603. margin-top: 15px;
  13604. }
  13605. .groupBtn {
  13606. margin-left: 10px;
  13607. }
  13608. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  13609. text-align: left;
  13610. }
  13611. .radioBox > div {
  13612. margin: 10px 0 0 10px;
  13613. }
  13614. .radioBox >>> .el-radio__input,
  13615. .radioBox >>> .el-checkbox__inner {
  13616. margin-left: 10px;
  13617. }
  13618. .radioBox >>> .el-radio__label,
  13619. .radioBox >>> .el-checkbox__label {
  13620. display: flex;
  13621. align-items: center;
  13622. }
  13623. .inImg {
  13624. width: 50px;
  13625. }
  13626. .inImg > img {
  13627. width: 100%;
  13628. height: 100%;
  13629. object-fit: cover;
  13630. }
  13631. .upCss >>> .el-upload-list--picture .el-upload-list__item {
  13632. height: auto;
  13633. }
  13634. .upCss >>> .el-upload-list--picture .el-upload-list__item-thumbnail {
  13635. width: 200px;
  13636. height: 100px;
  13637. object-fit: contain;
  13638. background: unset;
  13639. }
  13640. .upCss
  13641. >>> .el-upload-list--picture
  13642. .el-upload-list__item.is-success
  13643. .el-upload-list__item-name {
  13644. display: none;
  13645. }
  13646. .tcMember + .tcMember::before {
  13647. content: "、";
  13648. }
  13649. .xzUpImg {
  13650. width: 25px;
  13651. height: 25px;
  13652. cursor: pointer;
  13653. }
  13654. .xzUpImg > img {
  13655. width: 100%;
  13656. height: 100%;
  13657. }
  13658. .closeCss {
  13659. position: absolute;
  13660. top: 8px;
  13661. right: 8px;
  13662. cursor: pointer;
  13663. width: 20px;
  13664. height: 20px;
  13665. }
  13666. .closeCss > img {
  13667. width: 100%;
  13668. height: 100%;
  13669. }
  13670. .moveBtn {
  13671. display: flex;
  13672. flex-direction: column;
  13673. align-items: flex-end;
  13674. width: 40px;
  13675. }
  13676. .timuUpImg {
  13677. display: flex;
  13678. flex-direction: row;
  13679. align-items: center;
  13680. }
  13681. .timuUpImg > div:nth-child(1) {
  13682. margin-right: 10px;
  13683. }
  13684. .timuImgBox {
  13685. margin: 10px 0;
  13686. display: flex;
  13687. flex-direction: column;
  13688. flex-wrap: wrap;
  13689. align-items: flex-start;
  13690. }
  13691. .timuImg {
  13692. width: 100px;
  13693. margin: 5px 0;
  13694. cursor: pointer;
  13695. position: relative;
  13696. }
  13697. .timuImg:hover .deleteWord {
  13698. display: block;
  13699. }
  13700. .deleteWord {
  13701. width: 25px;
  13702. height: 25px;
  13703. position: absolute;
  13704. right: -5px;
  13705. top: -5px;
  13706. cursor: pointer;
  13707. display: none;
  13708. }
  13709. .timuImg > img,
  13710. .deleteWord > img {
  13711. width: 100%;
  13712. height: 100%;
  13713. object-fit: cover;
  13714. }
  13715. .e_add_delete {
  13716. cursor: pointer;
  13717. margin-left: 10px;
  13718. }
  13719. .pType_box {
  13720. margin-top: 30px;
  13721. align-items: flex-end;
  13722. }
  13723. .noneBox {
  13724. height: 100%;
  13725. width: 100%;
  13726. display: flex;
  13727. align-items: center;
  13728. justify-content: center;
  13729. margin-top: 150px;
  13730. }
  13731. .noneBox > img {
  13732. width: 300px;
  13733. }
  13734. </style>